Software Reset + retain RAM content

Hi,

I’m trying to do a software reset while retaining a portion of RAM values (collected fault data). The linker script is modified and the data is placed in a NOLOAD section. I’ve verified that the data is not initialized by the software by manually jumping to the reset_vector.

Unfortunately the complete RAM gets cleared when I execute either

NVIC_SystemReset()

or

am_hal_reset_control(AM_HAL_RESET_CONTROL_SWPOR)

or

am_hal_reset_control(AM_HAL_RESET_CONTROL_SWPOI)

Does anyone have an idea how to prevent the RAM clear?

Thanks in advance,

Andreas

not that I am aware of. You could try to save the values in EEPROM, which is actually flash on the Apollo3, and there are some areas are saved (some information on viewtopic.php?f=169&t=56854&hilit=ROM)