Keil Logo


3.3 --bincombined

Produces plain binary output. It generates one output file for an image containing multiple load regions.


By default, the start address of the first load region in memory is used as the base address. fromelf inserts padding between load regions as required to ensure that they are at the correct relative offset from each other. Separating the load regions in this way means that the output file can be loaded into memory and correctly aligned starting at the base address.
Use this option with --bincombined_base and --bincombined_padding to change the default values for the base address and padding.


The following restrictions apply:
  • You cannot use this option with object files.
  • You must use --output with this option.

Considerations when using --bincombined

Use this option with --bincombined_base to change the default value for the base address.
The default padding value is 0xFF. Use this option with --bincombined_padding to change the default padding value.
If you use a scatter file that defines two load regions with a large address space between them, the resulting binary can be very large because it contains mostly padding. For example, if you have a load region of size 0x100 bytes at address 0x00000000 and another load region at address 0x30000000, the amount of padding is 0x2FFFFF00 bytes.
ARM recommends that you use a different method of placing widely spaced load regions, such as --bin, and make your own arrangements to load the multiple output files at the correct addresses.


To produce a binary file that can be loaded at start address 0x1000, enter:
fromelf --bincombined --bincombined_base=0x1000 --output=out.bin in.axf
To produce plain binary output and fill the space between load regions with copies of the 32-bit word 0x12345678, enter:
fromelf --bincombined --bincombined_padding=4,0x12345678 --output=out.bin in.axf
Non-ConfidentialPDF file icon PDF versionARM DUI0459G
Copyright © 2008, 2011, 2012, 2014-2016 ARM. All rights reserved. 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.