S32K312 standby ram initialized data

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

S32K312 standby ram initialized data

跳至解决方案
2,011 次查看
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?

标记 (2)
0 项奖励
回复
1 解答
1,978 次查看
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 项奖励
回复
1 回复
1,979 次查看
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 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-1887660%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32K312%E5%A4%87%E7%94%A8RAM%E5%88%9D%E5%A7%8B%E5%8C%96%E6%95%B0%E6%8D%AE%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1887660%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%88%91%E6%AD%A3%E5%9C%A8%E4%BD%BF%E7%94%A8S32K312%EF%BC%88RTD%203.0.0P07)%E3%80%82%3CBR%20%2F%3E%E5%9C%A8ghs%5Clinker_flash_s32k312.ld%E6%96%87%E4%BB%B6%E4%B8%AD%3CBR%20%2F%3EStandby_data%20%E9%83%A8%E5%88%86%E8%A2%AB%E6%B3%A8%E9%87%8A%E4%B8%BA%E4%BB%85%E5%8C%85%E5%90%AB%E6%9C%AA%E5%88%9D%E5%A7%8B%E5%8C%96%E7%9A%84%E6%95%B0%E6%8D%AE%E3%80%82%3CBR%20%2F%3EStandby_bss%20%E9%83%A8%E5%88%86%E4%B8%8D%E5%8F%AF%E8%A7%81%E3%80%82%3CBR%20%2F%3E%E5%88%9D%E5%A7%8B%E5%8C%96%E6%95%B0%E6%8D%AE%E4%B8%8D%E8%83%BD%E5%88%86%E9%85%8D%E7%BB%99%E5%BE%85%E6%9C%BARAM%E5%90%97%EF%BC%9F%3C%2FP%3E%3C%2FLINGO-BODY%3E