M52259 Can it flash itself

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

M52259 Can it flash itself

ソリューションへジャンプ
2,117件の閲覧回数
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 解決策
666件の閲覧回数
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 返答(返信)
666件の閲覧回数
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 件の賞賛
667件の閲覧回数
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 件の賞賛
667件の閲覧回数
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 件の賞賛
667件の閲覧回数
trusc
Contributor II

Hi Tom

 

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

 

Chris

0 件の賞賛
667件の閲覧回数
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 件の賞賛
666件の閲覧回数
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 件の賞賛
667件の閲覧回数
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 件の賞賛