I put the following in Options->User->Run#1:
fromelf --bin --output ProjectFiles\MyFile.bin ProjectFiles\MyFile.AXF
This is pretty much what I've always used to make a *.bin from an *.axf. There are no errors (verified that error was returned with incorrect path to MyFile.axf) and a file MyFile.bin was created, but it was only 10k and unrelated to the contents of my program.
Is it because I am currently using a code-size limited version? I am using uVision 4, though I downloaded 5 and the same thing happened.
Dustin Soodak
If you check the .HEX output, how large is that?
How is the content unrelated? Is it compressing the statics?
unrelated meaning that the same file is produced regardless of actual code. Doesn't change even when I manually edit or add to the interrupt vector table at the beginning (and verify that changes were made by downloading the file and looking at the flash in debug mode (also looked at the axf file).
If I could figure out how to decode the end of binary file info from the axf file I could extract the *.bin manually (bin code always starts at position 52 in this file).
Another thing that could solve my problem is if there was a way to always put a constant data array at the end of the flash section so I could use this as a marker.
The "Run User Programs AFTER Build/Rebuild" right?
The AXF (ELF) file format is very well documented. I'm aware of several ELF to BIN type applications.
http://www.keil.com/forum/24722/
>>The "Run User Programs AFTER Build/Rebuild" right? correct. definitely after.
I tried out the example for placing a marker at the end of bin file. Only problem: when I did it, there was a few hundred bytes between the end of code and the end of file marker (ucCRC[16]).
Could you point me to AXF documentation and/or ->bin translator program?
www.google.com/search
infocenter.arm.com/.../DUI0101A_Elf.pdf www.skyfree.org/.../ELF_Format.pdf
objcopy elfarm fromelf