工具/软件:Code Composer Studio
你(们)好
我想将我的十六进制文件与 c2prog 一同使用、但它给出了错误"无效的十六进制格式"
我在 code composer 中尝试了所有可用的输出十六进制格式、但 c2prog 给出了相同的错误。
注意:我在代码中仅使用 cpu01。
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.
工具/软件:Code Composer Studio
你(们)好
我想将我的十六进制文件与 c2prog 一同使用、但它给出了错误"无效的十六进制格式"
我在 code composer 中尝试了所有可用的输出十六进制格式、但 c2prog 给出了相同的错误。
注意:我在代码中仅使用 cpu01。
您好!
请花一点时间查看 C2Prog 手册的第2.2节(可从"帮助"菜单访问)。
对于 Delfino 器件、用于生成 hex 文件的命令如下:
hex2000 -romwidth 16 -memwidth 16 -i -o .\Debug\test.hex .\Debug\test.out
您可以直接从 CCS 执行此操作。 转至"Properties"、"CCS Build"、"C2000 Hex Utility"。 在"常规选项"下、将存储器宽度和 ROM 宽度指定为16。 在"输出格式"下、选择"英特尔 hex"。 然后、摘要页面应如下所示:
正确生成十六进制文件后、您可能还需要配置编译后步骤以生成 C2Prog 扩展十六进制(ehx)文件:
"C:\Program Files (x86)\C2Prog\C2Prog.exe"-hex=${BuildArtiftFileBaseName}.hex -ehx=${BuildehfactFileBaseName}.Artix -target=28375,7、9D-CPU01_20MHz-JTAG
这假定您正在使用 JTAG 上的20MHz 外部时钟对一个目标进行编程。
有关其他选项和更多详细信息、请查看 C2Prog 手册。