I want to convert hex to bin and I am using TI hex6x.exe from project utilities. I use the following link as reference and create my cmd file.
-b
-image
-zero
-memwidth 8
-linkerfill
-fill 0x00000000
ROMS
{
FLASH: org = 0x800000, len=0x80000, romwidth=8;
FLASH: org = 0xc000000, len=0xb0000, romwidth=8;
FLASH: org = 0xc0b0000, len=0x6a000, romwidth=8;
FLASH: org = 0x81000000, len=0x1c0000, romwidth=8
}
I have four flash, because I use MSMSRAM, L2, L3..... Since difference part of memory has different length, so I create four FLASH.
The error I got is:
error: illegal input character: 0x3B
error: illegal input character: 0x3B
error: illegal input character: 0x3B
INTERNAL ERROR: hex6x.exe experienced a segmentation fault
This is a serious problem. Please contact Customer
Support with this message and a copy of the input file
and help us to continue to make the tools more robust.
I saw some old post did not use this tool for older CCS, instead they edit post-build with some cmd like.
For CCS4
"${CCE_INSTALL_ROOT}/utils/tiobj2bin/tiobj2bin.bat" "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.bin" "${CG_TOOL_ROOT}/bin/ofd470.exe" "${CG_TOOL_ROOT}/bin/hex470.exe" "${CCE_INSTALL_ROOT}/utils/tiobj2bin/mkhex4bin.exe"
For CCS 5.3
"${CCS_INSTALL_ROOT}/utils/tiobj2bin/tiobj2bin.bat" "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.bin" "${CG_TOOL_ROOT}/bin/armofd.exe" "${CG_TOOL_ROOT}/bin/armhex.exe" "${CCS_INSTALL_ROOT}/utils/tiobj2bin/mkhex4bin.exe"
I am using CCS6, these cmd could not solve my problem.