S32K312 standby ram initialized data

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K312 standby ram initialized data

Jump to solution
2,012 Views
kjy106906
Contributor IV

I am using S32K312 (RTD 3.0.0 P07).
In the ghs\linker_flash_s32k312.ld file
The Standby_data section is commented to include only uninitialized data.
The standby_bss section is not visible.
Can't initialized data be assigned to standby RAM?

Tags (2)
0 Kudos
Reply
1 Solution
1,979 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @kjy106906 

the linker file and startup code is prepared to use standby RAM feature which can keep the content of RAM during standby mode. So, it makes sense to not include initialized data to this section. The linker file explicitly mentions that:

lukaszadrapa_0-1718686528499.png

And you can find in startup code that this RAM is initialized only after POR:

lukaszadrapa_1-1718686553370.png

Of course, if you don't want to use this feature, you can update the linker file and startup code as needed.

Regards,

Lukas

 

View solution in original post

0 Kudos
Reply
1 Reply
1,980 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @kjy106906 

the linker file and startup code is prepared to use standby RAM feature which can keep the content of RAM during standby mode. So, it makes sense to not include initialized data to this section. The linker file explicitly mentions that:

lukaszadrapa_0-1718686528499.png

And you can find in startup code that this RAM is initialized only after POR:

lukaszadrapa_1-1718686553370.png

Of course, if you don't want to use this feature, you can update the linker file and startup code as needed.

Regards,

Lukas

 

0 Kudos
Reply