Batch build using IAR tools

Jim Tshr picture Jim Tshr · May 10, 2010 · Viewed 11.4k times · Source

I am trying to do a batch build of a project using IAR tools. The processor is a CC2530, and it builds fine in the IDE. I have followed the documentation for batch build (Project/Batch Build) and created a .cspy file that is suppose to be my batch file, but in the comments in that file it indicates that I need a debug file (.ubrof) to execute with it. I can't find a .ubrof file and I have searched the whole project directory structure. Also, I want my batch build to build a production version without the debugging information.

Where do I get a .ubrof file? How do I do a production batch build using IAR tools?

Answer

uɐɪ picture uɐɪ · May 11, 2010

My understanding of your question is that you want to build the firmware image using a command line from within a batch file. I use the IAR tools for MSP430 and AVR32 processor families and the command line used to invoke the IAR build process from the command line is

iarbuild "Project_File.ewp" -make BUILD_NAME -log info

where BUILD_NAME is the build configuration ("Debug" or "Release" are the two default options). The syntax of the iarbuild command is in the Embedded workbench manual.

The UBROF file is the binary output file that the tools produce and that you fould normally load into your target for debugging. I would normally have the tools produce a UBROF file for debugging and a hex or s-record image file to be used for device programming in production.