SparkFun Forums 

Where electronics enthusiasts find answers.

Everything with the AmbiqSuite SDK tools and software are welcome here.
User avatar
By beanbox
#231189
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
 Topic permissions

You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum