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

Compile a .bin file in Keil

I'm trying to compile a binary file in Keil.

I followed the instrudiction and added this to
Options for Target - User - After Build/Rebuild

C:\Keil_v5\ARM\ARMCC\bin\fromelf.exe --bin --output=sps_device.bin out_580\sps_device.axf

But a just get a folder called sps_device.bin. There're 5 files in (called ER_IROM1, ER_IROM2...).
How get I one .bin file?

  • If you have multiple memory regions then a singular monolithic binary file probably isn't the appropriate output, if they are far apart the .BIN might run a few hundred megabytes for data that might actual describe less than one megabyte.

    Now perhaps what you really want is a packaged binary, like a .DFU or other compact "object file" that describes multiple regions. The .AXF/ELF is a bit heavy in that it contains a lot of extraneous data (debug, symbols, etc)

    Could you attach a scatter file (.SCT) so there is a better understanding of the nature of the data and regions.