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

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

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

Jump to solution
79 Views
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

Tags (1)
0 Kudos
Reply
1 Solution
47 Views
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

View solution in original post

0 Kudos
Reply
1 Reply
48 Views
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 Kudos
Reply