This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Moving stack from TCM to external DDR2 SDRAM

Parents
  • Note: This was originally posted on 23rd November 2011 at http://forums.arm.com

    SP points to the last thing that was allocated on the stack, unless the stack is empty, in which case it points right past the stack. So if you allocate 3 words in a function they'll be accessible at [ sp ], [ sp + 4 ], and [ sp + 8 ]. The allocation itself will be performed by subtracting 12 from the stack pointer. Unallocated memory starts immediately at addresses below the stack pointer.
Reply
  • Note: This was originally posted on 23rd November 2011 at http://forums.arm.com

    SP points to the last thing that was allocated on the stack, unless the stack is empty, in which case it points right past the stack. So if you allocate 3 words in a function they'll be accessible at [ sp ], [ sp + 4 ], and [ sp + 8 ]. The allocation itself will be performed by subtracting 12 from the stack pointer. Unallocated memory starts immediately at addresses below the stack pointer.
Children
No data