Extension of this file can be either bin or hex. this will not contain debugging information. The executable file in this case will be pure binary file i.e. Rom run application will be downloaded to flash memory and it will start executing from there only. So, I created a workspace variable in the IDE, found the file it created to store the variable and then cut/pasted from that file into my jUnitOut.Before going through in details of working of IAR workbench, let me explain basics of ARM application project. Regarding #4 I didn't find any documentation on how to format the argvarfile. IDE builds use the global and workspace variables while iarbuild will use the -varfile This file can be added to source control so global variables can be avoided. These are stored in a file in the local project directory. Also, you can create workspace variables as well.
This file must be present for iarbuild.exe to use the -varfile you provide. \AppData\Roaming\IAR Embedded Workbench\global.custom_argvars. Regarding #1 you don't actually need to create a global variable but when you do IAR creates. Ĭall iarbuild.exe with the normal options plus -varfile jUnitOut.txt In the Project->Options->C/C++ Compiler->Preprocessor section add an entry for JUNIT_OUTPUT=$USE_JUNIT$Ĭreate a file called jUnitOut.txt and put the following into it. Tools->Configure Custom Argument Variables. Here's my setup as an example.Ĭreate a global variable in the IDE. I need easy to read outputs for IDE builds but junit formatted outputs for build server builds. For my case I am controlling the output of cpputest. I recently solved this using a combination of option #2 and the -varfile argvarfile option to iarbuild.exe.