Access to RAM outside section

cancel
Showing results for 
Search instead for 
Did you mean: 

Access to RAM outside section

Jump to solution
733 Views
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 Kudos
1 Solution
569 Views
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

View solution in original post

2 Replies
569 Views
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 Kudos
570 Views
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