Instructions to flash the pre-compiled demo on the TWR-MCF51JG Tower Module

   The simplest method to establish the correct connection settings for the TWR-MCF51JG is to create a new bareboard 
   project in CodeWarrior.  You can then use the flash programmer to download the s-record file to the target.

1. Open Freescale CodeWarrior for MCUs.  Choose any workspace you like.

2. Go to FileNewBareboard Project.

3. Give the project a name.  Click Next.

4. Choose the device.  Select ColdFire+ V1MCF51JG FamilyMCF51JG256.  Click Next.

5. Choose the connection.  Select Open Source BDM.  Unselect all others.  
   Note: If you have another debug interface pod, you can select it here.  Just plug it into J17 (51JG BDM) header.

6. Click Finish.  
   Note: no changes are necessary to the remaining settings, so instead of clicking Next, you can just click Finish.  

7. Now you have a bareboard project complete with main function and interrupt handling. 

8. Next, on the top toolbar, right click on the arrow next to the lightning bolt (Flash Programmer). 
   Select "Flash File to Target".

9. At File Options, click Browse... chose File System.  

10. Browse for the file: twr-mcf51jg_demo_precompiled.S19
 
11. Click Erase and Program
 
12. Wait until the erase and program operations are complete.
 
13. Press the Reset button on the board.  The demo is now programmed and running!

