M52259 Can it flash itself

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

M52259 Can it flash itself

Jump to solution
2,045 Views
epl
Contributor I

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?

Thanks

Labels (1)
0 Kudos
1 Solution
594 Views
mjbcswitzerland
Specialist V

Hi

 

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:

http://www.utasker.com/docs/uTasker/uTaskerBoot_003.PDF

http://www.utasker.com/docs/M5223X/uTaskerV1.3_Kirin3_demo.PDF

http://www.utasker.com/docs/uTasker/uTaskerSerialLoader.PDF

 

Regards

 

Mark

 

 

View solution in original post

0 Kudos
7 Replies
594 Views
trailman
Contributor V

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"

https://community.freescale.com/message/73480#73480

 

I guess the tips also apply to non MQX software.

0 Kudos
595 Views
trusc
Contributor II

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.

0 Kudos
595 Views
TomE
Specialist II

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.

 

Tom

 

0 Kudos
595 Views
trusc
Contributor II

Hi Tom

 

Thanks for pointing me in the right direction. I'll look into that.

 

Chris

0 Kudos
595 Views
TomE
Specialist II

U-Boot also has support for this, but it may be overkill for your project:

 

http://www.denx.de/wiki/U-Boot

 

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.

 

Tom

 

0 Kudos
594 Views
scifi
Senior Contributor I

 


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.

 

0 Kudos
595 Views
mjbcswitzerland
Specialist V

Hi

 

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:

http://www.utasker.com/docs/uTasker/uTaskerBoot_003.PDF

http://www.utasker.com/docs/M5223X/uTaskerV1.3_Kirin3_demo.PDF

http://www.utasker.com/docs/uTasker/uTaskerSerialLoader.PDF

 

Regards

 

Mark

 

 

0 Kudos