2418253_en-US

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

2418253_en-US

2418253_en-US

MCUXpresso IDE v24.12 [Build 148] [2025-01-10] doesn't suppoert Debug Confguration "Variables"

Hello everyone,

I am using MCUXpresso IDE v24.12.148 with a SEGGER J-Link debugger. My project, RSR1138_OSRAM_CONFIGURABLE, has two build configurations: Debug and Release.

My goal is to have a single Debug Configuration that automatically points to the correct .axf file based on the active build configuration. Currently, I have two separate Debug Configurations, each pointing to a fixed path (Debug\...axf or Release\...axf), and I want to merge them into one.

I noticed that in the Debug Configurations -> Main tab, next to the "C/C++ Application" field, there is a "Variables..." button. Among the available variables, I found active_core_build_dir, whose description is: "The build directory for the active Core Build configuration for the given project".

Based on this, I modified the "C/C++ Application" field as follows:

text
${active_core_build_dir}/RSR1138_OSRAM_CONFIGURABLE.axf

I also set the "Build (if required) before launching" -> Build Configuration to "Use Active".

However, when I launch this Debug Configuration, I get the following error:

text
'Launching RSR1138_OSRAM_CONFIGURABLE JLink Debug' has encountered a problem.
Program file does not exist
\RSR1138_OSRAM_CONFIGURABLE.axf not found
\RSR1138_OSRAM_CONFIGURABLE.axf not found
\RSR1138_OSRAM_CONFIGURABLE.axf not found

It seems that the variable ${active_core_build_dir} is not being expanded correctly in the "C/C++ Application" field, resulting in a malformed path.

My questions:

  1. Is it possible to use ${active_core_build_dir} or a similar variable in the "C/C++ Application" field of a Debug Configuration to create a dynamic path?

  2. If yes, what is the correct syntax or configuration to make it work?

  3. If not, what is the recommended way to achieve a single Debug Configuration that automatically selects the correct .axf file based on the active build configuration?

I have attached two screenshots:

  • One showing the Debug Configuration with the variable inserted and the resulting error.

  • One showing the "Select Variable" dialog with the list of available variables.

Thank you for your support.

Best regards,
Paolo Bernasconi

pberna67_0-1791023596109.pngpberna67_1-1791023623006.png

pberna67_3-1791023736252.png

Error

pberna67_4-1791023767750.png





Tags (1)
No ratings
Version history
Last update:
yesterday
Updated by: