Tool/software: TI C/C++ Compiler
I need to automatically generate .bin files from my CCS projects (F28M3x specifically), which until now I do via a manual and error prone process.
I know that CCS already includes the tools necessary for this, however I have not found a complete guide on how they can be used for my purpose, just a few old threads.
Starting with the ARM core of F29M3x, the current process setup by a former colleague is as follows:
- Produce a .hex file with a post-build step with the command "${CG_TOOL_HEX}" -i "${BuildArtifactFileName}" -o "${BuildArtifactFileBaseName}.hex" -order MS -romwidth 32
- Run hex2bin v1.0.1 by Jacques Pelletier to convert the .hex to .bin
I am trying to automate the above using the ARM HEX utility integration in recent CCS versions.First I am trying to use the ARM HEX utility integration to produce just the hex file, but the resulting file has the oposite endiannes, unless I set memwidth and romwidth to 8, in which case some blocks are not aligned to 32bit address.
For the .bin file I have gathered from other incomplete threads that I need to use the undocumented -b option. However, this option is not listed in the Assembly tools manual and very few info is available about it.
I will keep trying and post any progress, though I would appreciate any help from more experienced users.