I want to use software reset function to reset MCU(not watchDOG timeout),
After the reset, I want to keep the values in the RAM array.
I use
Hi @EvaKi,
Functional resets will keep SRAM data unchanged by the hardware mechanism. Destructive resets cannot guarantee the SRAM data integrity.
In the default startup code for S32DS SRAM ECC initialization will be performed regardless of the reset source, so the SRAM data is overwritten after each reset. This is why you see the RAM array lose its values.
Best regards,
Julián
Does NXP have any demo codes for solving this startup code for S32K3 SRAM ECC initialization?
RAM retention across functional reset
Hi @EvaKi,
I'm not aware of any example, but please take a look at the following community post: SRAM ECC Initialization for S32K344 - NXP Community.
Best regards,
Julián