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.

hex6x转换out文件时提示出错:cannot open input file '/.out'”: no such file or directory(aborting)

我用hex6x转化out文件时,运行"hex6x.exe hello.cmd"命令时提示fatal error: "hello.cmd", line 14: cannot open input file '/.out'”: no such file or directory(aborting).

其中:hello.out是我编译生成的out文件,hello.cmd是自己写的cmd文件。我已经将out文件,cmd文件以及hex6x放在了一个文件夹中。

hello.cmd文件如下:

hello.out //待转换的out 文件名

-a //二进制转换格式,这里用ASCII-Hex

-memwidth  8 //系统内存储器的每字节的位数,这里和Flash 一致,8 位;

-boot //生成引导程序表

-bootorg 0x02000400 //第二次载入程序的首地址

-bootsection .boot_load 0x02000000 //二次引导程序的首地址

ROMS

{

   FLASH: org = 0x02000000, len = 0x1000000,romwidth = 8, files = {hello.hex}

}

请问问题出在哪?谢谢!!!

  • 你好!

    FLASH: org = 0x02000000, len = 0x1000000,romwidth = 8, files = {hello.hex}

    file当中的文件应该是hello.btbl(boot  table格式),不知道是笔误还是问题所在,请确认。

    非常感谢!

  • 您好!

    1.报错是line 14, 而你贴的 我数了下10行。

    2. can't open input "/.out", 而楼主写的 是hello.out,想不明白。

    楼主 不妨上传 .cmd及.out 文件,大家一起测试下

  • 你好,

    cmd文件中最开始有一些注释的东西,占了几行,“hello.out”这句话就到了14行;

    报的错是can't open input "/.out",我之前写错了。不明白为什么会报这样的错。

    out文件应该就是我在CCS3.3中写的应用程序编译生成的out文件吧,还需要其他修改吗?

    我没有用DSP/BIOS,直接写了一个小程序,现在是想先把烧写流程跑通。

    cmd及out文件在附件中,麻烦指教!

    谢谢!!

    hello.rar
  • 你好,不是问题所在我改了,还是不行。out文件应该就是我在CCS3.3中写的应用程序编译生成的out文件吧,还需要其他修改吗?

  • 您好!

    是注释的原因,cmd不支持 // 注释符,仅支持/* */. 如图

x 出现错误。请重试或与管理员联系。