cancel
Showing results for 
Search instead for 
Did you mean: 

.launch file and Debug/Release configurations

CTabo.1
Senior

 

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 1
trzeci
Associate III

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.