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.

instaspin 工程生成 HEX 不正常



请问专家我在用 HEX2000 转化 Motorware14 里的 28027F 示例项目时,发现转出来的 .Hex 文件只有两行,如下

%1266D8003F7FF67F63
%0E8458003F32A6

但其他非 instaspin 的代码都可以正常转换,请问有需要注意的地方吗?

  • 你具体是怎么用hex2000转换的,instaSPIN的工程生成的out文件和其它out文件的转换是一样的。

  • Hi Hank,

    我用过两种方法,一种是在 CCS 工程属性中 build step 中添加生成 inter-hex;

    另一种是直接用 hex2000.exe 及 hex2000.cmd 加 out 文件来生成 hex 文件。cmd 的内容如下

    hex2000 -romwidth 16 -memwidth 16 -i -o proj_lab05b.hex proj_lab05b.out

    这个 out 文件是能够保证运行的,是下载到 Flash 而不是 ram 的。

    相同情况下,027F 的 project lab 5b 会有这种问题,而 069F 的 project lab 5b 则没问题,我感到非常奇怪,麻烦帮忙测试一下,谢谢!