- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is it possible to prevent my EEPROM data from getting erased when I reprogram the chip?
Since the component has a specific flash area for Emulated EEPROM, I would think it would not erase it when erasing the rest of the flash, or at least make it easy to choose.
From the datasheet:
Use Emulated EEPROM
Applicable only for PSoC 6 devices. Selects if Emulated EEPROM flash area or User flash will be used for the EEPROM storage.
Solved! Go to Solution.
- Labels:
-
PSoC 6 MCU
- Tags:
- em_eeprom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @ZhangSteven_IFX ,
EEPROM content can be retained by setting the EEPROM section in the linker script as NOLOAD and then recompiling the application. Kindly refer the below linker script section example with NOLOAD parameter:
.cy_em_eeprom (NOLOAD):
{
KEEP(*(.cy_em_eeprom))
} > em_eeprom
Best regards
Bhamy Narasimha Shenoy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
If you are using auxillary flash or dedicated flash, the memory will not be erased after programming.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am testing Emulated_EEPROM example in MTB2.3 with CY8CKIT-062S2-43012, auxiliary flash is used for EEPROM, the memory will not be erased after I launch programming, but the memory will be erased if I launch debug, it seems like launching debug will erase entire flash.
If customer wants to debug the whole project code with EEPROM data, how to retain EEPROM data when debugging?
BR.
Steven
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @ZhangSteven_IFX ,
EEPROM content can be retained by setting the EEPROM section in the linker script as NOLOAD and then recompiling the application. Kindly refer the below linker script section example with NOLOAD parameter:
.cy_em_eeprom (NOLOAD):
{
KEEP(*(.cy_em_eeprom))
} > em_eeprom
Best regards
Bhamy Narasimha Shenoy