Keil Logo


3.51 --widthxbanks

Outputs multiple files for multiple memory banks.


specifies the number of memory banks in the target memory system. It determines the number of output files that are generated for each load region.
is the width of memory in the target memory system (8-bit, 16-bit, 32-bit, or 64-bit).
Valid configurations are:


fromelf uses the last specified configuration if more than one configuration is specified.
If the image has one load region, fromelf generates the same number of files as the number of banks specified. The filenames are derived from the --output=destination argument, using the following naming conventions:
  • If there is one memory bank (banks = 1) the output file is named destination.
  • If there are multiple memory banks (banks > 1), fromelf generates banks number of files named destinationN where N is in the range 0 to banks - 1. If you specify a file extension for the output filename, then the number N is placed before the file extension. For example:
    fromelf --vhx --8x2 test.axf --output=test.txt
    This generates two files named test0.txt and test1.txt.
If the image has multiple load regions, fromelf creates a directory named destination and generates banks files for each load region in that directory. The files for each load region are named load_regionN where load_region is the name of the load region, and N is in the range 0 to banks - 1. For example:
fromelf --vhx --8x2 multiload.axf --output=regions/
This might produce the following files in the regions directory:
The memory width specified by width controls the amount of memory that is stored in a single line of each output file. The size of each output file is the size of memory to be read divided by the number of files created. For example:
  • fromelf --vhx --8x4 test.axf --output=file produces four files (file0, file1, file2, and file3). Each file contains lines of single bytes, for example:
  • fromelf --vhx --16x2 test.axf --output=file produces two files (file0 and file1). Each file contains lines of two bytes, for example:


You must use --output with this option.
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.