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.

TMS570LS3137-EP: Release and Debug build config using diffrent start address

Part Number: TMS570LS3137-EP

Hi

I'd like to be able to do a debug version and a release version of my code.

They need to use either 2 different linker script or better same linker script where the start address of the SW changes depending build configuration ie debug starting at 0x00 and release starting 0x60000 for example.

I did not find a way so far to either link a linker script file to a particualr build configuration or define the start address symbol of the linker script depending on the build configuration.

Ideally the release build configuration should also allow to enable optimisations.

Is there a way to do this in CCS10 ?

If yes, can you detail how ?

Many thanks in advance for your help.

Regards

Seb

  • Hi Seb,

    The Debug and Release configurations may have different compilation configuration such as the optimization level, and may use a different linker command file,  and may or may not include certain source files.

    For example, you can have two linker cmd files: sys_linker_debug.cmd, and sys_linker_release.cmd. In release mode, the sys_linker_release.cmd is used, and the  sys_linker_debug.cmd is excluded from the build.

    When the project is built, the output files generated by the build are placed in a different subdirectory (\Debug or \Release).

  • That's perfect. Thanks a lot for your feedback.