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.

hex2000

Other Parts Discussed in Thread: CCSTUDIO

您好:

我在cmd中用hex2000转换.out 文件,提示cannot open input file test.out; 但是.out文件已经用仿真器运行过,是可以执行的

代码如下:

c:\>CCStudio_v3.3\c2000\cgtools\bin\hex2000 -t test -o test.hex

  • chenguang qiu,

    你的问题是用hex2000将.out文件转换成.hex文件用于串口烧写吧,贴出来的代码是什么意思没明白?

    如果你用的是CCS V5以上的版本,只需要在设置Properties中的Build界面中的step选项中的Description下选择Create flash image: Intel-HEX,重新编译后在debug文件夹中就同时生成了.out和.hex文件了

  • 我用的是ccs3.3,生成test.out   文件后将其拷贝至C:\CCStudio_v3.3\C2000\cgtools\bin目录下,从dos运行hex2000.exe,提示如下

     不知道是什么原因,如何解决,谢谢

  • 我没看错的话,CCStudio前面多了个“>”?

  • chenguang,

    分享一个小工具,可以直接生成.hex文件。 文件中-i 就是inel 格式的hex, 如果-a则是ascii的hex格式。

    Eric

  • 你好!

    如果用您前一种方法,在工程的properties中修改step的属性的话,CCS会报错

    error: bad argument to option -order: should be one of {L,M}
    gmake[1]: [post-build] Error 1 (ignored)

    如果用您后一种方法,用您分享的小工具的话,命令行中会报错fatal error: "Socket.out" has incompatabile architecture: TI C6x

    请问这是什么原因呢?是哪里还没有设置对吗?我用的是CCS V5.4的版本

  • 你好,不好意思,我用的是CCS6.1.3,在Properties中的Build界面中没有你说的step选项呀,是这个版本不可以直接生成,还是我找的不对?谢谢!

  • 你是用来转换C2000的.out文件吗?

    用CCS6的话,可以用工程属性中有一个C2000 Hex utility, 使能就好,然后在general option 将memwidth 设置为16. 在output format中选择你要的格式输出。

    ERIC

  • 我用这个工具,报错

    D:\Ti\hex>hex2000.exe config.cmd
    error: corrupted object file: invalid string table size 4147089

    INTERNAL ERROR: hex2000.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.