Writing to the flash ROM on M52233Demo Board

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Writing to the flash ROM on M52233Demo Board

2,081 Views
Eggmania
Contributor I
Hello-
 
I'm confused as to how I am supposed to get code into the flash ROM on the M52233Demo Board.  I have the board and the USB & the serial cables that came with it and can debug code sitting in RAM just fine.  In the CodeWarrior IDE I can set 'Internal ROM' as a build target and compile, but I see no options to tell it to start downlaoding the code into the device.  Under the 'Tools' menu there is a place to select what flash programmer to use, but these all appear to be devices I do not have.  Do I really need to buy a tool to program the flash ROM or is the USB cable running from my laptop to the demo board all I should need?  If I have everything already in hand, where do I go to find the resources that explain how to get CW to download the code once I've done an 'Internal ROM' build?
Labels (1)
0 Kudos
Reply
2 Replies

600 Views
mjbcswitzerland
Specialist V
Hi

Here is a step-by step from the M5223X uTasker tutorial to programming to the demo board using CW6.3 (note that it is also possible using CF Flasher V3.3.1 - available on the Freescale web site).

Complete tutorial here: http://www.utasker.com/docs/M5223X/uTaskerV1.2-Tutorial-M5223X.PDF

Regards

Mark Butcher

Downloading the code to the target
The evaluation and demo boards are thankfully delivered with a BDM which can be used to program the target.
It can be performed within the Coldwarrior environment by following these steps – V6.3.
Step 1: Compile the ROM project.
Step 2: Connect the BDM between the target board and your PC according to the manufacturer’s instructions.
Step 3: Power on the evaluation board – its power LED should light.
Step 4: In the tools menu start the FLASH programmer.
Step 5: Load settings – fortunately there are preconfigured files in the Codewarrior program directory called M52235EVB_25MHz.xml or M52233EVB_25MHz.xml which are also suitable for the DEMO boards. This will prepare everything for the next steps.
Step 6: First delete the FLASH contents using “Erase / Blank Check”. The first time you use this and in the case that you want to reset everything, you can delete all sectors which are available, which is the default erase setting. If you want to delete the demo program without also deleting any loaded web pages and other parameter settings, select the sectors up to 0x17fff. This will leave the file system block, starting at 0x18000 intact.
Alternatively if you should want to delete the contents of the file system and reset FLASH parameters then all sectors from 0x18000 can be deleted…
Step 7: Program / Verify. Here the actual code download is performed. If the file is already entered, the download can be started simply by pressing “Program” button. If a different file is to be programmed then this should first be prepared by enabling “Use Selected File” and setting the path.
0 Kudos
Reply

600 Views
PopsStack
Contributor I
I am having the same difficulty except with the M52223EVB. I am trying to get the CMX USB Mass Storage demo onto FLASH. I have followed your steps and used the Targetting ColdFire literature as a guide to step me through the process.
 
I continuously get :
 
" Flash Programmer : PE MicroProtocol Plugin: Error occured while tryng to write memory"
 
I have done a hardare diagnistics run and cannot get any joy here.
 
Using the COnsole Debug with Coldfire stationery for demo progs I have no probs.
 
Any ideas.
 
Nic
0 Kudos
Reply