2195981_en-US

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

2195981_en-US

2195981_en-US

Reallocation FlexRAM

Hi
I'm trying to reallocate the FlexRam to be DTC = 128KB, ITC = 64KB, OC = 64KB on i.mxrt 1024
I did these changes 
 config.pngboard.pngboot.pngstartup2.png

I also modified the linker file to fit with these changes.
Now it works, but my question is about these two lines

"LDR R0, =0x20001fff\n" // load initial value of stack pointer into R0

"MSR MSP, R0\n" // Reinitialize stack pointer by new value

Why without these lines it doesn’t work even if I modified the linker so _vStackTop must be up to date!

i.MXRT 102xRe: Reallocation FlexRAM

Please refer to this post for more details on why SP is reset: RT1176 ROM code does not set stack pointer correctly - NXP Community

BR,
Omar

标记 (1)
无评分
版本历史
最后更新:
‎11-21-2025 05:12 AM
更新人: