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.

cmd文件load错误



您好:

    我在使用C6670开发板的时候,拨码开关按照default格式,然后cmd文件中将所有的数据都放入L2ram(org = 0x800000 , len = 0x100000)中,但是load的时候错误如下:

Error connecting to the target:
(Error -1144 @ 0x0)
Device core is hung. The debugger attempted to recover debug control, but was unsuccessful. Power-cycle the board. If error persists, confirm configuration and/or try more reliable JTAG settings (e.g. lower TCLK).
(Emulation package 5.0.872.0)

  我不是很理解这个错误,因为我在cmd问中将所有内容放入DDR(org=0x80000000 ,len=0x20000000)中,是可以正确load的,我感觉这个与拨码开关的boot模式有关,但是自己又不是很明白,希望可以得到解答~!谢谢!

  • No boot模式PIN应设置为

    SW3, OFF ON ON ON

    SW4,ON ON ON ON

    SW5   ON ON ON ON

    SW6 ON ON ON ON

    SW9 ON ON ON ON

    在这个模式下load下out文件看看有没有问题

    另外你编译的时候注意看看有没有警告

  • 你好:

     当我将拨码开关调为no boot模式的时候,在cmd文件中将数据都放入L2中,可以正常的debug,但是我如果在cmd文件中将数据放入DDR3中,虽然跑板子的时候可以load进去,但是会一直run,而不能跑到main开始的地方,如下图:

    请问一下这是为什么呢?谢谢!!!

  • 非no boot时,如bootloader user guide需要给L2预留部分空间,这可能是由于你的代码数据放在LL2时覆盖了RBL中的代码导致;在no boot,代码数据放在DDR时,需要在配置文件中加载一个gel文件,在连接板卡时会自动运行这个gel文件初始化DDR,之后才可以将代码及数据load到DDR,否则就会出现load之后直接run并异常。