Reallocation FlexRAM

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

Reallocation FlexRAM

566 Views
KhaledG
Contributor I

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!

Labels (1)
0 Kudos
Reply
1 Reply

502 Views
Omar_Anguiano
NXP TechSupport
NXP TechSupport

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

0 Kudos
Reply