Hello there,
I am using a custom script to program my ARM device:
#include "slick.sh"
_command at91load() name_info(','VSARG2_MACRO|VSARG2_MARK|VSARG2_REQUIRES_MDI_EDITORCTL)
{
shell("JLink.exe M:\\10.10.10.5\\Software\\trunk\\Embedded\\AutomaticFeeders_v2\\Controller_v4\\loadscript.txt");
}
In the loadscript.txt is a fixed path to my Debug output file.bin. I was wondering, is it possible to know in the macro section, what is my active configuration. Thanks to that, I could use different loadscripts. What would be the construction? I would like to get this functionality:
#include "slick.sh"
_command at91load() name_info(','VSARG2_MACRO|VSARG2_MARK|VSARG2_REQUIRES_MDI_EDITORCTL)
{
if (active configuration == "Debug")
shell("JLink.exe M:\\10.10.10.5\\Software\\trunk\\Embedded\\AutomaticFeeders_v2\\Controller_v4\\loadscript_debug.txt");
else if (active configuration == "Release")
shell("JLink.exe M:\\10.10.10.5\\Software\\trunk\\Embedded\\AutomaticFeeders_v2\\Controller_v4\\loadscript_release.txt");
}
I would aprichiate all help.