Access to RAM outside section

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

Access to RAM outside section

ソリューションへジャンプ
777件の閲覧回数
markus1
Contributor II

Hello,

I would like to keep some information in RAM during a reset to handle the issue that caused the reset. Therefore, I reduced the section of m_data_2 of my S32K116 by 0x20 bytes.

Accessing those bytes with a debugger attached and handling SW-resets works fine.

Anyway, if I remove the debugger, the MCU cannot pass the line where the memory outside the section is accessed.

Can someone please give me a hint what causes this behaviour?

Is there some kind of protection that the debugger disables?

Thanks,

Markus

0 件の賞賛
1 解決策
613件の閲覧回数
dianabatrlova
NXP TechSupport
NXP TechSupport

Hi Markus,

I would like to recommend the proper way to retain data in the RAM after reset, please refer to the section "31.3.4 SRAM retention: power modes and resets" in the RM rev. 9.

Or you can look at the simple example for the S32K144 https://community.nxp.com/docs/DOC-342503 

I hope it helps you. 

Best Regards,

Diana

元の投稿で解決策を見る

2 返答(返信)
613件の閲覧回数
markus1
Contributor II

I figured out, that the ECC module causes the error.

Anyway, I could not figure out how to disable it for reading the reset data without getting an ECC fault.

0 件の賞賛
614件の閲覧回数
dianabatrlova
NXP TechSupport
NXP TechSupport

Hi Markus,

I would like to recommend the proper way to retain data in the RAM after reset, please refer to the section "31.3.4 SRAM retention: power modes and resets" in the RM rev. 9.

Or you can look at the simple example for the S32K144 https://community.nxp.com/docs/DOC-342503 

I hope it helps you. 

Best Regards,

Diana