M52259 Can it flash itself

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

M52259 Can it flash itself

跳至解决方案
2,137 次查看
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

标签 (1)
0 项奖励
1 解答
686 次查看
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 项奖励
7 回复数
686 次查看
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 项奖励
687 次查看
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 项奖励
687 次查看
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 项奖励
687 次查看
trusc
Contributor II

Hi Tom

 

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

 

Chris

0 项奖励
687 次查看
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 项奖励
686 次查看
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 项奖励
687 次查看
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 项奖励