This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS570Ls3137 Stack reset

Other Parts Discussed in Thread: TMS570LS3137, HALCOGEN

Hi,

I have a requirement where I need to reset the stack after certain functionality in my code is executed. So I would like to know if there is any code snippet I can refer to reset my Stack pointer for TMS570LS3137. 

Thanks

  • Rohini,

    The stack pointer is just a register, by convention R13.

    You can look at the HalCoGen startup code and see how the stack pointers are initialized for each mode if you want to see a reference, but basically it's an LDR instruction ..

    BTW: There is a stack pointer for each mode of the CPU (Supervisor, Abort, Undefined, IRQ, FIQ, [User, System])

    [User,System] share the same registers actually..

    -Anthony