Access to RAM outside section

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

Access to RAM outside section

跳至解决方案
1,285 次查看
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 解答
1,121 次查看
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 回复数
1,121 次查看
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 项奖励
1,122 次查看
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