I am currently working with M52259demo board and I have a question.
Can M52259 flash itself?
If I loading new program via Ethernet or USB, can I update the program to flash?
Also take a look at the uTasker proejct for the Coldfire V2 (including M5225X) http://www.utasker.com/kirin3.html
It includes loading via Ethernet (FTP, HTTP POST and TFTP), USB and UART, with optional encryption support:
epl wrote:Can M52259 flash itself?
Yes, it can.
epl wrote:If I loading new program via Ethernet or USB, can I update the program to flash?
Of course you can, provided the firmware implements such functionality.
I'm using MQX on a 52259 board and have developped the required software to update the MQX image running in internal flash flash from MQX itself, using only C code.
The new image is download through FTP or serial line while the system is running
Tthen a command is run to update : the flash image is updated and the board is restarted; this takes only 3 seconds.
I post some tips on that in the thread named "Building a relocatable C program that can be run out of SRAM in MQX"
I guess the tips also apply to non MQX software.
U-Boot also has support for this, but it may be overkill for your project:
It is also a lot of work to port to your CPU and your development board (then your working board) if someone hasn't done so already. There's support for "MCF5227x" in there.
I'm using the MCF52255 in a project, and I need to be able to save and change a few calibration constants in flash from time to time. Is there an easy way to do this, or would I have to hack boot loader code?
Your help would be appreciated.
What you need is a "Flash Driver". That's a module that knows how to erase and write to the FLASH in your particular chip.
If U-Boot can write to the FLASH in that chip, then there should be a small number of files that you should be able to reuse to do the same thing.
Doesn't CodeWarrior or the Processor Expert come with this, or come with code samples that do this?
We wrote our own (for external Spansion FLASH on an MCF5329) but that doesn't mean you should have to.
Thanks for pointing me in the right direction. I'll look into that.
Retrieving data ...