【Keil5 MDK】fromelf工具的基本用法(fromelf --help)

ARM FromELF, 5.03 [Build 76] [MDK-ARM Standard]

ARM image conversion utility
fromelf [options] input_file

Options:
--help display this help screen
--vsn display version information
--output file the output file. (defaults to stdout for -text format)
--nodebug do not put debug areas in the output image
--nolinkview do not put sections in the output image

Binary Output Formats:
--bin Plain Binary
--m32 Motorola 32 bit Hex
--i32 Intel 32 bit Hex
--vhx Byte Oriented Hex format

--base addr Optionally set base address for m32,i32

Output Formats Requiring Debug Information
--fieldoffsets Assembly Language Description of Structures/Classes
--expandarrays Arrays inside and outside structures are expanded

Other Output Formats:
--elf ELF
--text Text Information

Flags for Text Information
-v verbose
-a print data addresses (For images built with debug)
-c disassemble code
-d print contents of data section
-e print exception tables
-g print debug tables
-r print relocation information
-s print symbol table
-t print string table
-y print dynamic segment contents
-z print code and data size information

Software supplied by: ARM Limited


例子:

把axf文件转为bin文件:

fromelf.exe --bin -o file_name_of.bin file_name_of.axf

原文地址:https://www.cnblogs.com/utank/p/9628026.html