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.

TMS320F28075: Does TI RTS initialize stack pointer SP?

Part Number: TMS320F28075


Tool/software:

Hi champs,

I am asking this for our customer.

1. The user want to confirm if TI RTS will always initialize stack pointer SP.

I notice in

C:\ti\ccs1281\ccs\tools\compiler\ti-cgt-c2000_22.6.1.LTS\lib\src

boot28.asm

This means _c_int00 called by codestartbranch.asm always initialize SP right after jumping to  _c_int00.

Would you please confirm if our understanding is correct?

If not, please correct and show us if and where to do it explicitly.

2. Besides, this applies too all these F28x devices, including gen-2 and gen-3 devices.

Is it right?

  • Hello,

    The expert for this question is out of office until next Monday, please expect a reply then.

    Best,

    Matt

  • Hi Wayne,

    Yes, your understanding is correct. The TI RTS will initialize the stack pointer (SP) as part of the startup sequence. 

    • Boot Sequence and Stack Initialization:
      • The startup sequence begins with codestartbranch.asm
      • codestartbranch.asm disables the watchdog and jumps to _c_int00
      • _c_int00 is found in boot28.asm and is responsible for setting up the C environment, including initializing the Stack Pointer

    This is true for all F28x devices using the TI RTS and _c_int00 entry.

    Best Regards,

    Allison