S32K312 standby ram initialized data

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

S32K312 standby ram initialized data

ソリューションへジャンプ
2,025件の閲覧回数
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,992件の閲覧回数
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.pnglukaszadrapa_0-1718686528499.png

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

lukaszadrapa_1-1718686553370.pnglukaszadrapa_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,993件の閲覧回数
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.pnglukaszadrapa_0-1718686528499.png

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

lukaszadrapa_1-1718686553370.pnglukaszadrapa_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%3E%E3%82%B9%E3%82%BF%E3%83%B3%E3%83%90%E3%82%A4RAM%E3%81%AE%E5%88%9D%E6%9C%9F%E5%8C%96%E3%83%87%E3%83%BC%E3%82%BFS32K312%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1887660%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E7%A7%81%E3%81%AFS32K312(RTD%203.0.0P07)%E3%80%82%3CBR%20%2F%3Eghs%5Clinker_flash_s32k312.ld%20%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E5%86%85%3CBR%20%2F%3EStandby_data%E3%82%BB%E3%82%AF%E3%82%B7%E3%83%A7%E3%83%B3%E3%81%AB%E3%81%AF%E3%80%81%E5%88%9D%E6%9C%9F%E5%8C%96%E3%81%95%E3%82%8C%E3%81%A6%E3%81%84%E3%81%AA%E3%81%84%E3%83%87%E3%83%BC%E3%82%BF%E3%81%AE%E3%81%BF%E3%82%92%E5%90%AB%E3%82%81%E3%82%8B%E3%82%88%E3%81%86%E3%81%AB%E3%82%B3%E3%83%A1%E3%83%B3%E3%83%88%E5%8C%96%E3%81%95%E3%82%8C%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%3CBR%20%2F%3Estandby_bss%E3%82%BB%E3%82%AF%E3%82%B7%E3%83%A7%E3%83%B3%E3%81%AF%E8%A1%A8%E7%A4%BA%E3%81%95%E3%82%8C%E3%81%BE%E3%81%9B%E3%82%93%E3%80%82%3CBR%20%2F%3E%E5%88%9D%E6%9C%9F%E5%8C%96%E3%81%97%E3%81%9F%E3%83%87%E3%83%BC%E3%82%BF%E3%82%92%E3%82%B9%E3%82%BF%E3%83%B3%E3%83%90%E3%82%A4RAM%E3%81%AB%E5%89%B2%E3%82%8A%E5%BD%93%E3%81%A6%E3%82%8B%E3%81%93%E3%81%A8%E3%81%AF%E3%81%A7%E3%81%8D%E3%81%BE%E3%81%9B%E3%82%93%E3%81%8B%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E