CCSTUDIO: ccstudio multi device_linker.cmd

Part Number: CCSTUDIO
Other Parts Discussed in Thread: MSPM0G3519

use ccstudio20.2.0 multi device_linker.cmd

i want to build configurations add apponly

but the device_linker.cmd needs defference

for apponly build
MEMORY
{
    FLASH           (RX)  : origin = 0x00000000, length = 0x00040000
    SRAM_BANK0      (RWX) : origin = 0x20200000, length = 0x00010000
    SRAM_BANK1      (RWX) : origin = 0x20210000, length = 0x00010000
    BCR_CONFIG      (R)   : origin = 0x41C00000, length = 0x000000FF
    BSL_CONFIG      (R)   : origin = 0x41C00100, length = 0x00000080
    DATA            (R)   : origin = 0x41D00000, length = 0x00004000
}
 
Debug build
MEMORY
{
    FLASH           (RX)  : origin = 0x00000000, length = 0x00080000
    SRAM_BANK0      (RWX) : origin = 0x20200000, length = 0x00010000
    SRAM_BANK1      (RWX) : origin = 0x20210000, length = 0x00010000
    BCR_CONFIG      (R)   : origin = 0x41C00000, length = 0x000000FF
    BSL_CONFIG      (R)   : origin = 0x41C00100, length = 0x00000080
    DATA            (R)   : origin = 0x41D00000, length = 0x00004000
}
how to set the path to device_linker.cmd

image.png

  • Hi Juares,

    This can be done by adding predefined symbols to each of the build configurations and creating defines for the fields that are build dependent in the linker. 

    For example, here I have two build configurations with predefined symbols GREEN and BLUE:

    GREEN is a predefined symbol for one build, and BLUE is a predefined symbol for the second build.

    Best Regards,
    Brian

  • i know use define to predefined for change the compiler address.

    but the Debug\gpio_toggle_output_LP_MSPM0G3519_jaures.out same as bootloader start 0x0000

    one for no bootloader start 0x00000,gpio_toggle_output_LP_MSPM0G3519_jaures.out

    for bootloader app start 

    FLASH           (RX)  : origin = 0x0004000, length = 0x00040000
    .out name app_gpio_toggle_output_LP_MSPM0G3519_jaures.out
    use difference name to know the .out start 0x0000 or 0x4000

    the for no bootloader

    but can't change .out name

    like c2000 select linkxx.com the use diffrence name one for app start oxoooo ,one for boot start 0x4000,diff compiler name

  • Hi Juares,

    You can use a post build script to create custom output files to be made upon each build of the application. For reference, this is done in our SDK BIM examples.

    The attached is our bim_sample_image example for the L1306, and also has separate linker configurations depending on the build configuration:

    bim_sample_image_LP_MSPM0L1306_nortos_ticlang.zip

    Best Regards,
    Brian