S32K311 has any software reset APIs keep ram value?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

S32K311 has any software reset APIs keep ram value?

1,021 次查看
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 项奖励
回复
3 回复数

994 次查看
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 项奖励
回复

972 次查看
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 项奖励
回复

955 次查看
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 项奖励
回复