S32K311 has any software reset APIs keep ram value?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K311 has any software reset APIs keep ram value?

963 Views
EvaKi
Contributor I

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 

Power_Ip_MC_ME_SocTriggerResetEvent(POWER_IP_FUNC_RESET_MODE); or
Power_Ip_MC_ME_SocTriggerResetEvent(POWER_IP_DEST_RESET_MODE);
 
RAM array loss value
0 Kudos
Reply
3 Replies

936 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

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.

Julin_AragnM_0-1724435272916.png

Best regards,
Julián

0 Kudos
Reply

914 Views
EvaKi
Contributor I

Hi @Julián_AragónM 

Does NXP have any demo codes for solving this startup code for S32K3 SRAM ECC initialization?

RAM retention across functional reset

0 Kudos
Reply

897 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

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

0 Kudos
Reply