Dear Experts,
Is there anyway to set the stack to another address in SRAM.
Truly, I want to change the SP to specific memory region that differ with current address that SP points to.
Regards,
Fitz
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.
Dear Experts,
Is there anyway to set the stack to another address in SRAM.
Truly, I want to change the SP to specific memory region that differ with current address that SP points to.
Regards,
Fitz
Thank for your answer Christopher.
I've already changed the address of .stack section to larger space in SRAM (RAML4).
But this change is static.
I would change the SP during the run time after saving it into some where.
I'm using TMS320F28069.
I tried to do that with ASM code like this:
__asm(" MOV AR0, SP")
__asm(" MOV SP, AR1")
But when I compile that code, assembler gave me an error: illegal combination.
So, could you please share how to change SP during the run time with TMS320F28069?
Thank you so much for your support.
Regards,
Fitz