2010-09-27 09:53 AM
Is it possible to export flash files from atollic TrueStudio using a separate tool rather than the stock ''flash converter - not included with the lite version'' ?
2010-10-19 01:10 PM
2010-10-20 09:31 PM
Generates an ELF file, should be pretty simple to spit out the sections in Intel Hex, or Motorola S-Records.
2010-10-22 01:32 AM
2010-10-22 05:57 AM
Clive, I've googled for the format for .elf and not been able to find any indication that it's a simple container for text in .hex format - was this what you meant? If it were I agree it would be fairly simple to extract.
The ELF format is reasonably simple, the form used by Atollic is a fixed form (ie not relocatable), it is in binary. The Intel Hex format is trivial. I don't think it would take more than 30 minutes to demonstrate if a direct conversion would be possible, or not. I'll take a look later if I find some time.2010-10-22 09:58 AM
Here's a quick conversion of the demo I got Atollic to build (I don't know if the demo works, but the HEX is valid for the ELF), attach you own working .ELF if you want to test the conversion.
Edit : Added a complete set of binaries and hex files (Intel, Motorola, Tektronix) for the VL demo application. Edit : Fixed static initialization2010-10-23 03:06 AM
Very Good Clive! Are you willing/able to share the tool you created to extract .hex from .elf?
2010-10-23 04:44 AM
Very Good Clive! Are you willing/able to share the tool you created to extract .hex from .elf?
Currently the hex output is a generated by my ELF dumping utility. It will generate ELFARM.HEX (Intel Hex), ELFARM.MOT (Motorola S-Record), ELFARM.TEK (Tektronix Hex), and ELFARM.BIN (Binary) automatically. At some point I'll clean it up a bit, but it should work well enough for testing purposes. The command syntax is ELFARM filename.ELF The ZIP file is signed, and can be checked with PKUNZIP -t ELFARM.ZIP2010-10-23 06:51 AM
The standard GNU utilities objcopy and objdump can be used for inspecting, manipulating, and converting many ''object'' file formats - including ELF and AXF
Also, srecord is a collection of powerful tools for manipulating EPROM load files - including both Intel Hex and Motorola S-Records2010-10-23 07:52 AM
Or bake from scratch, none of the formats are what I'd class as hard.
The TIS ELF/DWARF documentation is the classic reference.http://refspecs.freestandards.org/elf/elf.pdf
But Andrew is right, there are probably other tools that can get you to the data, or output/mangle it in a form you want. I would have much preferred the tool chain to have done this, and perhaps have a code size limit for the demo/eval. Instead it removed things like projects, and the UI is murderously complicated, slow and inflexible.[DEAD LINK /public/STe2ecommunities/mcu/Lists/ARM%20CortexM3%20STM32/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/ARM CortexM3 STM32/Program chip using st-link in Atollic IDE&FolderCTID=0x01200200770978C69A1141439FE559EB459D758000626BE2B829C32145B9EB5739142DC17E¤tviews=532]FYI Thread on objcopy