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.

TMS320F280037: .stack section not showing in memory map file.

Part Number: TMS320F280037


Tool/software:

Hello,

I have a modified .cmd file that has MEMORY and SECTIONS as shown below.

I have no errors when I build the code, but the .stack section does not get added to the memory map file and the xml file shows <run_address>0x0</run_address> under .stack

I have configured the correct cmd file to use in CCS properties/CGS General. Is there something else that needs to be configured?

More info: At the end of the build, I see the message "Invoking:C2000 Hex Utility and then it shows all the sections but not .stack under Translating to ASCII-Hex format and generating .txt file secondary target.

The memory has several RAM and Flash address definitions. I am only listing the relevant below.

I have tried using other RAM sections besides RAMGSnP but the stack symbol is never added to the map file. The SP register seems to always be 0x0178 at startup.

MEMORY
{

   ...

   RAMGSnP          : origin = 0x00C000, length = 0x001000

   ...

}

then in SECTIONS

SECTIONS
{
  ...
.stack : > RAMGSnP

  ...

}

Thank you.