Retention of the flash for Erase command

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

Retention of the flash for Erase command

1,333 Views
ranjithshanbhag
Contributor III

In LPC824 last page is used as Emulated EEPROM. Found during firmware update through Flash Magic with CRP = 1 or CRP = 2, found Emulated EEPROM also getting erased. Please suggest me how prevent this?

In Emulated EEPROM is used to save critical data and want to retain during Firmware Upgrade.

Labels (1)
Tags (1)
0 Kudos
7 Replies

915 Views
hparracho
Contributor II

I guess you can only do what you want if your firmware doesn't use the entire last sector of flash memory. If that's the case, select the option to only "erase blocks used by firmware" in flashmagic.

If it's not the case, unless you have a bootloader able to read the last page prior to update firmware and then restore it, I don't see how you can preserve only the last page of your flash.

0 Kudos

915 Views
jeremyzhou
NXP Employee
NXP Employee

Hi  Ranjith Shanbhag

Thank you for your interest in NXP Semiconductor products and 
the opportunity to serve you.
I'm afraid partial flash pages would be affected after execute erase commands for particular sector which contains these pages.
It's no way to avoid this affection.

TIC

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!

0 Kudos

915 Views
ranjithshanbhag
Contributor III

Thanks jeremyzhou for our quick reply.

I understand, Emulated EEPROM is sitting in last page, erasing this page can be prevented with above mentioned setting?

0 Kudos

915 Views
jeremyzhou
NXP Employee
NXP Employee

Hi Ranjith Shanbhag

Thanks for your reply.

Sorry, I'm not clear with the meaning of "Emulated EEPROM is sitting in last page, erasing this page can be prevented with above mentioned setting?" Whether you can clarify it.

TIC

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!

0 Kudos

915 Views
ranjithshanbhag
Contributor III

Hi Jeremy,

Last page of the Flash is configured as EEPROM, During Firmware upgrade with above mentioned setting whether erasing can be prevented?

0 Kudos

915 Views
jeremyzhou
NXP Employee
NXP Employee

Hi Ranjith Shanbhag,

Thanks for your reply.

1) During Firmware upgrade with above mentioned setting whether erasing can be prevented?

    No, I'm afraid not.

TIC

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!

0 Kudos

915 Views
ranjithshanbhag
Contributor III

Hi Jeremy,

Thanks for your reply.

i convinced with your response.

With CRP1 or CRP2 setting, if we design a GUI for firmware upgrade by using ISP commands, whether it is possible to erase required sectors? Ultimate goal is EEPROM has to be retained which is there in last page.

0 Kudos