${project_loc} doesn't expand in Debug Configurations settings

cancel
Showing results for 
Search instead for 
Did you mean: 

${project_loc} doesn't expand in Debug Configurations settings

205 Views
giusloq
Contributor III

I'd like to add an option in Debug Configurations-><my debug configuration>->JLink Debugger->Oher server options.

The option is -JLinkDevicesXMLPath and it wants an absolute path. Now I'd like to use Eclipse/MCUXpresso variables to avoid writing directly the path. What I'd like to do is:

-JLinkDevicesXMLPath ${project_loc}

However this doesn't work, because JLink emits and error saying it can't find the file in ${project_loc}. This means the variable isn't correctly expanded.

0 Kudos
2 Replies

186 Views
ErichS
Senior Contributor III

Hi @giusloq ,

no, this is not supported from what I can tell. It would require that the CDT command line parser would resolve first any build variables. But this is not the case: that command line string is passed 'as is' to the SEGGER J-Link server.

The only solution which comes to my mind would be to write a small script which parses the .launch XML file and replaces the variables you need.

I hope this helps,

Erich

0 Kudos

190 Views
nxf58474
NXP Employee
NXP Employee

Hi,

 

Hope you are doing well. Have you tried with this: ${workspace_loc:/${ProjName}/?

 

This is how we include relative paths in MCUXpresso.

 

Best Regards,

Ricardo

0 Kudos