Using a part of The Flash as NVM to store application parameters in MCP5634M

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

Using a part of The Flash as NVM to store application parameters in MCP5634M

380 Views
eslamsamireissa
Contributor I

Hello!

I'm using TRK-MPC5634M board and I understand that MPC5634M doesn't have a dedicated EEPROM, so I want to use the block at address 0x00160000 in the flash to store these parameters. My question is:

How can I store delivery values at this address so when I flash I get these values? I'm using CodeWarrior v2.10 and It generates a .elf file not .srec. I believe I might be able to change these values directly if I had the .srec but I don't. 

What do you suggest?

Thanks!

0 Kudos
1 Reply

372 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,


@eslamsamireissa wrote:

How can I store delivery values at this address so when I flash I get these values?


What do you mean by this sentence?

Do you mean when you reprogram the device or when you reset the programmed device?

You can store in flash by common write to the flash from debugger or from SW. (you can use our SSD driver to do so)

https://www.nxp.com/webapp/Download?colCode=MPC56XX_C90LC_JDP_SSD_100_DEVD

You can use also EEPROM emulation:

https://www.nxp.com/docs/en/application-note/AN4868.pdf

https://www.nxp.com/webapp/Download?colCode=MPC5XXX_EEE_DRIVER

If you are doing some calibration, have in mind that flash has limited number of erase/write cycles (see datasheet)

 

best regards,

Peter

0 Kudos