Rasmus Larsen
posted this on May 21, 2010 11:52
Q:
How can I create a binary output from Keil or IAR to be uploaded to my STK/DK with energyAware Commander?
A:
In IAR:
1) Open the project you want to use and go to Project->Options...
2) Go to the Output Converter section and set it up like the picture below:
3) Build the project. You can then find the binary file in \iar\<project_name>\Debug\Exe under the project folder.
In Keil:
1) Open the project you want to use and go to Projects->Options for target 'project_name'...
2) In the Output tab, make sure the Create HEX file box is checked.
3) Build the project. Now you can find an .axf file in \arm\obj\ under the project folder.
4) In MSDOS prompt, use the following command to convert the .axf file to a .bin file:
c:\Keil\ARM\BIN40\fromelf.exe --bin <path to .axf file>\example.axf --output example.bin