how to access FLASHBAR

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

how to access FLASHBAR

3,309件の閲覧回数
fire
Contributor I
Hai.
  I amworking with MCF5282.In this how we can set FLASHBAR.
Actually internal memory is write protected by default.I want to change that bit.
how i can do that.
thanks in advance.
 
ラベル(1)
0 件の賞賛
返信
3 返答(返信)

1,046件の閲覧回数
DavidS
NXP Employee
NXP Employee

Hi fire,

By definition flash is a write protected device that requires a flash programming algorythm to program/write to it.

Examples of flash routines on the ColdFire MCF5282/1/0 product web pages.

Specific ex: http://www.freescale.com/files/netcomm/software/app_software/code_examples/MCF5282SC.zip 

Regards, DavidS

0 件の賞賛
返信

1,046件の閲覧回数
alexod
Contributor I
That was a nice example, but seems to address external flash.  What about the internal flash in an MCF5213?  The WP bit in FLASHBAR is a read only bit, and set at reset.  How do I use the internal flash as non volatile memory?  Do I need some magic pullups on the board?  The only pertinent signals I could find would be TEST and RCON#.

I'm not talking re-flashing the firmware.  I would like to know how to save user config there, same as I would on an external flash. This is especially important since I'm a low power app, and the battery backed SRAM is not implemented (correctly) on the MCF5213.

Thanks

Alex
0 件の賞賛
返信

1,046件の閲覧回数
mccPaul
Contributor I
Hi
 
Why do you think that the WP bit in FLASHBAR is read only? The dox I have seen (for 5216 and 5282) say it is write only (5282) or read/write (5216).
 
There are various write protect and security bits in the configuration register that are set on boot according to the values of various magic words in the flash. It took me some time to work out what the documentation was trying to say so I admit that it ain't simple!
 
Post back if you'd like to see an example for 5282, but I may not have time to post it until tomorrow.
 
Cheers,
 
Paul.
0 件の賞賛
返信