s32k344 loss RAM data after functional reset

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

s32k344 loss RAM data after functional reset

2,668件の閲覧回数
liwenchao
Contributor I

Hello , I am trying to retention RAM data in s32k344 after functional reset , and my MCAL version is : SW32K3_RTD_4.4_R21-11_3.0.0_P01_HF02. 

when flash bootloader complete application update , My code call function "Mcu_PerformReset()" , and I want to retention some information in RAM . but  However, the data in this RAM is lost after reset.

liwenchao_0-1695360043186.png

I read MC_RGM registers by debug as flow

liwenchao_1-1695360132150.png

 

Did I miss any preconditions before functional reset ???

 

 

0 件の賞賛
返信
5 返答(返信)

1,917件の閲覧回数
YanyiQiu
Contributor III

hello liwenchao,

do you have solved this problem?

the data in this RAM is lost after reset. (question mark in this ram use emulator)

 

thanks a lot

0 件の賞賛
返信

2,590件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi

I'm sorry for the delay.

Functional resets will keep SRAM data unchanged by hardware mechanism.
Destructive resets cannot guarrantee the SRAM data integrity.

For the S32DS default startup code, the SRAM ECC initialization will be performed no matter what reset source it is. So the SRAM data is overwritten after each reset.

You need modify the startup code to check the reset source and perform SRAM ECC initialization only for some reset sources.


Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 件の賞賛
返信

2,581件の閲覧回数
liwenchao
Contributor I

Thanks for your reply .

I My startup code , I read FES / DES to validate if program is start from power on. and only power on , the SRAM initialization will be performed.

 

So , Are there any missing configurations when using functional reset? 

0 件の賞賛
返信

2,534件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport

Please refer to the issue mentioned in the S32K344 reset reason, which resulted in the reset reason being incorrectly read as power on reset.

0 件の賞賛
返信

2,486件の閲覧回数
liwenchao
Contributor I

I check reset reason in boot manager , When I call Functional reset in MCAL by application , It works Ok , and My SRAM can keep success . but When I call the save Function reset in MCAL by FBL , the SRAM losted

0 件の賞賛
返信