Reallocation FlexRAM

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

Reallocation FlexRAM

1,337 Views
KhaledG
Contributor II

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
2 Replies

1,273 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

677 Views
KhaledG
Contributor II

Thank you for your response,
It worked but when i try to set DTCram = 192KB, OCram = 64KB and ITCram = 0KB, i cant find the define ARM_MPU_REGION_SIZE_192KB !
Thank you.

0 Kudos
Reply