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.
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.
Hi Ranjith Shanbhag,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
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?
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!
Hi Jeremy,
Last page of the Flash is configured as EEPROM, During Firmware upgrade with above mentioned setting whether erasing can be prevented?
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!
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.