SPRAD49 January   2023 TMS320F2800132 , TMS320F2800133 , TMS320F2800135 , TMS320F2800137 , TMS320F2800152-Q1 , TMS320F2800153-Q1 , TMS320F2800154-Q1 , TMS320F2800155 , TMS320F2800155-Q1 , TMS320F2800156-Q1 , TMS320F2800157 , TMS320F2800157-Q1 , TMS320F280021 , TMS320F280021-Q1 , TMS320F280023 , TMS320F280023-Q1 , TMS320F280023C , TMS320F280025 , TMS320F280025-Q1 , TMS320F280025C , TMS320F280025C-Q1 , TMS320F280033 , TMS320F280034 , TMS320F280034-Q1 , TMS320F280036-Q1 , TMS320F280036C-Q1 , TMS320F280037 , TMS320F280037-Q1 , TMS320F280037C , TMS320F280037C-Q1 , TMS320F280038-Q1 , TMS320F280038C-Q1 , TMS320F280039 , TMS320F280039-Q1 , TMS320F280039C , TMS320F280039C-Q1 , TMS320F280040-Q1 , TMS320F280040C-Q1 , TMS320F280041 , TMS320F280041-Q1 , TMS320F280041C , TMS320F280041C-Q1 , TMS320F280045 , TMS320F280048-Q1 , TMS320F280048C-Q1 , TMS320F280049 , TMS320F280049-Q1 , TMS320F28374D , TMS320F28375D , TMS320F28376D , TMS320F28377D , TMS320F28377D-EP , TMS320F28377D-Q1 , TMS320F28378D , TMS320F28379D , TMS320F28379D-Q1 , TMS320F28384D , TMS320F28384D-Q1 , TMS320F28384S , TMS320F28384S-Q1 , TMS320F28386D , TMS320F28386D-Q1 , TMS320F28386S , TMS320F28386S-Q1 , TMS320F28388D , TMS320F28388S , TMS320F28P650DH , TMS320F28P650DK , TMS320F28P650SH , TMS320F28P650SK , TMS320F28P659DH-Q1 , TMS320F28P659DK-Q1 , TMS320F28P659SH-Q1

 

  1.   Abstract
  2.   Trademarks
  3. 1Introduction
  4. 2C2000 Linker Command Tool – GUI Configurations
    1. 2.1 Memory Combination
    2. 2.2 Memory Sections
    3. 2.3 CLA Sections
  5. 3C2000 Linker Command Tool – Code Generation
    1. 3.1 device_cmd.cmd File
    2. 3.2 Supporting Files
  6. 4Migration Across Device Families
  7. 5Summary
  8. 6References

Supporting Files

The additional device_cmd.c, device_cmd.h, device_cmd.opt and device_cmd.cmd.genlibs are supporting files generated by the tool.

The code generation includes a LIVE DIFF tool which showcases how the changes in the GUI cause changed in the generated code.

If you decide that a section must be loaded and run from a different address, then the generated format of the entries in the linker cmd file automatically change.

Figure 3-3 Generated Files - CMD File Diff

Once the Place copy table in BINIT section is deactivated, the .c and .h files are also updated and the initialization code needed is automatically generated.

Figure 3-4 Generated Files - Copy Table

You need to call the CMD_init function in your application code to initialize such sections. The device.c for C2000 devices includes a Device_init function that can call this function, if needed.

Figure 3-5 Generated Files - C File

device_cmd.opt and device_cmd.cmd.genlibs automatically setup the Code Composer Studio project properties.

The OPT file creates a predefined symbol for CMDTOOL and the active CMD module instance name.

Figure 3-6 Generated Files - OPT File

These predefined symbols are used in application C code: device.c and device.h files.

The device_cmd.cmd.genlibs file follows a similar path.

Figure 3-7 Generated Files - Genlibs File