This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

binary file format

Does anyone know the format for the binary files produced by fromelf?

I use the above utility to create a binary image of my project.
This image is used at a later date to update existing systems.

Looking at the map file for my project, the last used address is 0x1AD30

The binary file is 111940 bytes long (0x1B544) giving an extra 2068 bytes of data.

Looking at the bin file in a hex editor, there is clearly addional data tagged onto the file after 0x1AD30 (0x1AD34).

First thoughts were that this was some sort of trailing footer containing checksums and signatures but the size of this section varies from project to project and seems to be proportional to image size.

The reason for the question is I am having some inconsistent results when writing this image to flash and running. I'm not suggesting the error is in the binary file data it's more a case of understanding what the data is and eliminating this from the list of unknowns.

I tried google etc but can't find and info on what the actual file structure is, it's clearly a little more than a raw dump of the binary data for flash.

TIA

Brendan

0