Skip to main content
CTabo.1
Senior
September 14, 2023
Question

.launch file and Debug/Release configurations

  • September 14, 2023
  • 1 reply
  • 2057 views

 

Hello,
is there a way to configure the .launch file to download automatically the .elf file corresponding to the active build configuration (es. Debug or Release)?
Or should I create two .launch files, one for Debug and on for Release?

I tried to play with some of the build setting in the window below, without success (es. the Release .efw file is still downloaded, even if I have selected as active configuration, the Debug one).

CTabo1_1-1694679847286.png

Thank you,
Carlo

    1 reply

    Associate III
    April 2, 2025

    The same problem. I resolved it this way:

    I have placed this command:

    ln -f -s "${ConfigName}" ${ProjDirPath}/ActiveTargetLink

    in all configurations of C/C++ Build/Settings/Build Steps/Post-build steps/Command.

     

    This command creates symbolic link to Release or Debug subdirectory depending on current build configuration.
    I have changed C/C++ Application in run/debug configuration to ActiveTargetLink/<binary name>.elf

    This launches a binary from last built setup.