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.

TMS320F28386S: Linker Not Putting Data Into Sections

Part Number: TMS320F28386S
Other Parts Discussed in Thread: TMS320F28379D,

Greetings,

I am porting code from our TMS320F28379D projects to the TMS320F28386S.  Some of the code defines sections which contain some type of data.  All of them, except for one, are failing to show up in the map file and the output of the linker.  The one exception is a section from an assembly file which contains code.  The missing sections are from cpp files.  I am generating list files, so I can see that the missing data is there.  So I’m assuming that the files have compiled correctly, and the data is in the object files.

In the map file, the sections’ space can be seen in the MEMORY_CONFIGURATION  area.  But the section names and their associated object files don’t show up in the SECTION_ALLOCATION_MAP.  To determine that they are really not in the output, I am having the C2000 Hex Utility generate a TI-TXT file.  The resulting file does not contain the data.

I am using CCS 10.4.0.0006 with compiler version TI v20.2.5.LTS.

The cpp files look like this, with some being arrays:

#pragma DATA_SECTION("<MySection>")

const struct <STRUCT_TYPE> StructName =

   {

   <ELEMENT_VALUE_1>,

   <ELEMENT_VALUE_2>,

   <ELEMENT_VALUE_3>

   };

The cmd file looks like this:

MEMORY

{

   PAGE 0:

      <MY_MEM_DEF> : origin=0x12345, length=6

}

SECTION

{

   <MySection>  : >   <MY_MEM_DEF>, PAGE = 0

}

Is there something else I need to be doing to have the show up in the output?

Thank you,

Ed