Programming on-chip flash with mcf52223evb

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

Programming on-chip flash with mcf52223evb

1,935 Views
GPS
Contributor I
I'm new to the CodeWarrior toolset and the mcf52223evb. My problem is that I have not been able to get code into the on-chip flash of the device (MCF52223 cpu). My application is too large to fit into SRAM alone (which is necessary to run in the debugger without programming the flash). To eliminate all variables with the code I am trying to get the "Hello World" application that comes with the board into flash (modified to blink the LEDs so I can tell it is running - works fine when run out of SRAM on the board with the "M52223EVB Console Debug" build).

When I use the CF Flasher application I get nowhere - it complains that it cannot talk to the PE_USB_ML puck.

When I use the flash programmer (with the "M52223EVB Internal ROM.elf.S19" build) within CodeWarrior I get the following error:

"Flash Programmer: Flash driver reports the following error(s): Chip reported error during program"

I'm using the P&E config file that came with the board and all default linker map files, etc. It looks like things are reasonably correctly configured because the flash code gets downloaded, initialized and executes.

This is probably something simple, but as the saying goes "everything is easy once you understand it" - anyone out there understand this one?

It almost seems like the flash is write protected or something but I cannot find any documentation to that effect. I would appreciate any/all comments.

Thanks,
Greg
Labels (1)
0 Kudos
Reply
1 Reply

830 Views
mjbcswitzerland
Specialist V
Hi Greg

I don't know what the problem is but you could look at a step-for-step guide to progamming using the CF and CW. http://www.utasker.com/docs/M5223X/uTaskerV1.2-Tutorial-M5223X.PDF
page 6..8. Maybe you will see something there.

See also the main web site http://www.utasker.com/ for target software which will run on your board. A complete operating system and TCP/IP stack with device drivers is available free of charge for non-commercial use - including A M5223X simulator. It even supports safe SW uploads to the board via the Internet once a 2k boot loader is installed.

Regards

Mark Butcher
www.mjbc.ch / www.uTasker.com
0 Kudos
Reply