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

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

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

1,157 Views
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

Labels (1)
0 Kudos
2 Replies

321 Views
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 Kudos

321 Views
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 Kudos