Tool/software: TI C/C++ Compiler
Hello,
What does the undocumented option -b of the armhex command line tool do ?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: TI C/C++ Compiler
Hello,
What does the undocumented option -b of the armhex command line tool do ?
Straight binary output. But you don't want to use it directly.
I presume you want to create a binary image from the .out file created by the TI ARM linker.
If you have access to a Unix-like system, then use objcopy. If you don't, then use the script tiobj2bin from the cg_xml package. Under the hood, tiobj2bin uses the hex utility -b option. These methods presume you are comfortable working on the command line. If you build with CCS, you can configure a post-build step to use tiobj2bin. There may even be a pre-configured post-build step you can use. Details are in the Pre and Post Build Steps section of the larger article Projects and Build Handbook for CCS.
Thanks and regards,
-George