我可以看出输入的十六进制是 Intel 格式在0x1000处正确的
如果 CCFG 被手工更改为正确的起始 ADR、则可刷写并运行.hex 文件。
是否有可行的方法从由 GCC 工具链生成的.hex 文件生成.bin 文件?
如果是、如何?
> oad_image_tool.exe --详细 CCS。 7 -hex1 proj.hex -o proj.bin
回溯(最近的调用最后):
file "oad_image_tool.py"、第542行、位于
main (oad_args)
文件"oad_image_tool.py"、第341行、在 main 中
createAppStackBinfile (args.ProjType、args.ProjDir、binaryFileType、
createAppStackBinfile 中的文件"oad_image_tool.py"、第184行
util.updateImgLen (outfileAppPath、imgStAddr、imgEndAddr)
updateImgLen 中的文件"imgBinUtil.py"、第252行
writeBytes (fileName、bin_LEN_ptr、binLen、IMG_LEN_SIZE)
文件"imgBinUtil.py"、第105行、位于 writeBytes 中
filePtr.write (value.to_bytes (numBytes、byteorder ="小"))
OverflowError:无法将负 int 转换为无符号
[7848]由于未处理异常,无法执行脚本'OAD_IMAGE_TOOL'!