2023-09-14 1:28 AM
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).
Thank you,
Carlo
2025-04-02 3:58 AM
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.