Other Parts Discussed in Thread: UNIFLASH
Tool/software:
Hello TI team,
I'm trying to specify the post-build steps to generate a desired .hex file. For this I followed the tips of the following post: TMS320F28379D: CCS V20 Hex Utility Command-Line pattern - C2000 microcontrollers forum - C2000︎ microcontrollers - TI E2E support forums.
I'm adding the following post-build step: "${CG_TOOL_HEX}" "${BuildArtifactFileName}" @${ProjDirPath}/hexUtility.cmd -o "${BuildArtifactFileBaseName}.hex".
And I created the following hexUtility.cmd file:
--intel --fill=0xFFFF --image --memwidth=16 --romwidth=16 --diag_wrap=off ROMS { FLASH: origin=0x80000, length=0x10000, fill=0xFFFF }
[271]"C:/TI/ccs2020/ccs/tools/compiler/ti-cgt-c2000_22.6.2.LTS/bin/hex2000" "project-name.out" @C:\Users\martin.blocher\workspace_ccstheia\project-name/hexUtility.cmd -o "project-name.hex"
[272]fatal error: cannot open input file
[273] "@C:\Users\martin.blocher\workspace_ccstheia\project-name/hexUtility
[274] .cmd": Invalid argument
[275]gmake[2]: [makefile:275: post-build] Error 1 (ignored)
[276]**** Build Finished ****