S32K3 can not run without multilink universiral while acessing sram using pointer

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

S32K3 can not run without multilink universiral while acessing sram using pointer

ソリューションへジャンプ
117件の閲覧回数
zhangzhixing
Contributor III

the tested code is:
pVal =(uint8*)0x20410000;
vval=*pVal;
*pVal = vval;

i put the code before #endif /* #ifdef XCP ENABLE SEEDNKEY */ ,the mcu run well,but put the code after  “ XcpApp CalMem DownloadBuffer cnt=0“   i find a problem which is it can run well in debug,when i take off the MULTILINK UNIVERSAL, and reset the board ,it cannot work normal,can you help me?  

 

微信图片_20251014184902_92_91.png

タグ(1)
0 件の賞賛
返信
1 解決策
85件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @zhangzhixing,

The issue may be caused by the DTCM not being initialized during the MCU's startup when running in stand-alone mode.
Debuggers like Multilink Universal often automatically initialize volatile memory regions, including DTCM, during a debug session. This can mask problems that occur during normal boot. To avoid accessing uninitialized memory, try writing to the DTCM location before reading from it.

danielmartynek_0-1760513119342.png

 

Regards,

Daniel

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
86件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @zhangzhixing,

The issue may be caused by the DTCM not being initialized during the MCU's startup when running in stand-alone mode.
Debuggers like Multilink Universal often automatically initialize volatile memory regions, including DTCM, during a debug session. This can mask problems that occur during normal boot. To avoid accessing uninitialized memory, try writing to the DTCM location before reading from it.

danielmartynek_0-1760513119342.png

 

Regards,

Daniel

0 件の賞賛
返信