Need help: How to read on the CodeFlash and DataFlash of MPC504B?

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

Need help: How to read on the CodeFlash and DataFlash of MPC504B?

1,683件の閲覧回数
NewbieMCULover
Contributor II

hi,

 

I need help. I am working on a routine to read from the DataFlash and CodeFlash... But I can't extract  any information on the datasheet about reading to the DataFlash and CodeFlash... Been searching here for codes on how to read the flash for PPC but I can't find any.

 

(I am currently using Codewarrior for MPC55xx version 2.5)

 

Many Thanks

ラベル(1)
タグ(1)
0 件の賞賛
返信
2 返答(返信)

847件の閲覧回数
J2MEJediMaster
Specialist I

You should be able to read data from flash like you do for variables and other objects. That is, just read from an address. To write to flash is more complicated, and this topic had been discussed a lot. Try using the forum search feature (the text box in the upper right on this forum page) and enter the phrase "program flash".

 

---Tom

0 件の賞賛
返信

847件の閲覧回数
NewbieMCULover
Contributor II

hi! yes, I managed to read the codeflash using pointers yesterday. and I found out today that writing to the flash is very simple. I just need to setup the password for the registers and disable the locks...

0 件の賞賛
返信