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.

TMS320F28066: 仿真器烧录代码提示超时

Part Number: TMS320F28066

使用的CCS10,用XDC100V2给28066烧录代码,仿真器可以正常连接,但是烧录时提示等待目标停止超时,请问会是什么原因呢

  • 你好,能否检查下boot mode?用wait mode试一下。

  • boot mode现在是GetMode模式。你的意思是硬件把IO配置成Wait mode模式,用仿真器来烧录试试?

  • 1.GPIO37接10K外部上拉,GPIO34接10k电阻外部下拉,代码可以正常烧录,拔掉仿真器代码没有正常启动。我想配置成flash启动,那么是应该配置成GPIO37和GPIO34外部上拉吗?但是把它们都外部上拉之后,仿真器可以正常连接,但是烧录时提示等待目标停止超时?请问会是什么原因?

    2.我想配置成flash启动,GPIO37和GPIO34需要外部上拉,内部需要上拉吗?它们应该怎么配置?

  • 会不会跟CCS的版本有关系?麻烦看到回复一下,谢谢

  • 仿真器可以正常连接,但是烧录时提示等待目标停止超时?请问会是什么原因?

    烧录需要wait mode。

    我想配置成flash启动,GPIO37和GPIO34需要外部上拉,内部需要上拉吗?

    需要get mode。

  • 1.配置的是GetMode模式,但是有时候可以正常烧录,有时候烧录到一半就报出超时。请问使用CCS10进行烧录的时候,对仿真器的版本有要求吗?我用的是XDC100V2版本

    2.下面是使用XDC100V3烧录报出的错误:

    C28xx: Failed CPU Reset: (Error -1041 @ 0x0) The debug probe reported an error. Confirm debug probe configuration and connections, reset the debug probe, and retry the operation. (Emulation package 9.4.0.00129)
    C28xx: GEL: Error calling OnPreFileLoaded(): Reset failed: retcode=-1
    C28xx: Failed CPU Reset: (Error -1140 @ 0x0) Lost debug connection to device. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 9.4.0.00129)
    C28xx: Error occurred during flash operation: CPU Reset error. Error code -1
    C28xx: Error occurred during flash operation: Timed out waiting for target to halt while executing FlashAPIInterface2806xV1_00.out
    C28xx: Failed CPU Reset: (Error -1138 @ 0x0) Device refused to allow debug mode. Power-cycle the board. If error persists, confirm configuration and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 9.4.0.00129)
    C28xx: Error occurred during flash operation: CPU Reset error. Error code -1
    C28xx: Error occurred during flash operation: Timed out waiting for target to halt while executing FlashAPIInterface2806xV1_00.out
    C28xx: Flash operation timed out waiting for the algorithm to complete. Operation cancelled.
    C28xx: File Loader: Memory write failed: Unknown error
    C28xx: GEL: File: D:\zhuhongwei\Project\P36SH\code\P36SH_28066_V1.0.1\Master_DSP\Output\P3600SH_28066.out: Load failed.

  • 烧录需要使用wait mode,

    下面是使用XDC100V3烧录报出的错误:

    你是换成XDC100V3了是吗?需要再xxcml文件中改成XDC100V3.

  • 上述烧录报错是在xxcml文件已经改成了XDC100V3之后烧录报出来的

  • 下面故障是使用XDC100V2烧录报出的。现象是:擦除到一半,然后提示Timed out waiting for target to halt ,然后我发现此时芯片的XRS会被拉低复位一下。

    C28xx: Error occurred during flash operation: Timed out waiting for target to halt while executing FlashAPIInterface2806xV1_00.out
    C28xx: Error occurred during flash operation: Timed out waiting for target to halt while executing FlashAPIInterface2806xV1_00.out
    C28xx: Flash operation timed out waiting for the algorithm to complete. Operation cancelled.
    C28xx: File Loader: Memory write failed: Unknown error
    C28xx: GEL: File: D:\zhuhongwei\Project\P36SH\code\P36SH_28066_V1.0.1\Master_DSP\Output\P3600SH_28066.out: Load failed.
    C28xx: Error occurred during flash operation: Timed out waiting for target to halt while executing FlashAPIInterface2806xV1_00.out
    C28xx: Error occurred during flash operation: Timed out waiting for target to halt while executing FlashAPIInterface2806xV1_00.out
    C28xx: Flash operation timed out waiting for the algorithm to complete. Operation cancelled.
    C28xx: File Loader: Memory write failed: Unknown error
    C28xx: GEL: File: D:\zhuhongwei\Project\P36SH\code\P36SH_28066_V1.0.1\Master_DSP\Output\P3600SH_28066.out: Load failed.

  • 是使用的wait mode吗?

  • 使用的Get mode

  • 请尝试下使用wait boot mode试一下。

  • 1.GPIO37接10K外部上拉,GPIO34接10k电阻外部下拉,代码可以正常烧录,拔掉仿真器代码没有正常启动。我想配置成flash启动,那么是应该配置成GPIO37和GPIO34外部上拉吗?但是把它们都外部上拉之后,仿真器可以正常连接,但是烧录时提示等待目标停止超时?请问会是什么原因?

    2.我想配置成flash启动,GPIO37和GPIO34需要外部上拉,内部需要上拉吗?它们应该怎么配置?

    wait boot模式试过了,可以烧录,但是代码没办法正常跑到Flash里面

  • 空白芯片,没有烧录代码的时候,XRS引脚会周期复位吗?

  • 但是代码没办法正常跑到Flash里面

    在wait mode 模式下烧录程序到flash,此时应该是可以debug的。

    XRS引脚会周期复位吗

    没有听说过这个情况。

  • 擦除完成,开始烧录就卡主,然后报故障,经常出现这种情况,已经因为这个原因导致几块DSP锁住没法解锁了,麻烦帮忙分析一下是什么原因?

    C28xx: Flash Programmer: Error encountered when writing to flash memory C28xx: File Loader: Memory write failed: Unknown error C28xx: GEL: File: D:\zhuhongwei\Project\P36SH\code\BootLoader_28066\SCI_test\Debug\Bootloader_DSP1.out: Load failed. C28xx: Error: (Error -1135 @ 0x8999) The debug probe reported an error. Confirm debug probe configuration and connections, reset the debug probe, and retry the operation. (Emulation package 9.4.0.00129) C28xx: Unable to determine target status after 20 attempts C28xx: Failed to remove the debug state from the target before disconnecting. There may still be breakpoint op-codes embedded in program memory. It is recommended that you reset the emulator before you connect and reload your program before you continue debugging C28xx: Error connecting to the target: (Error -1135 @ 0x8999) The debug probe reported an error. Confirm debug probe configuration and connections, reset the debug probe, and retry the operation. (Emulation package 9.4.0.00129) C28xx: Error connecting to the target: (Error -1135 @ 0x8999) The debug probe reported an error. Confirm debug probe configuration and connections, reset the debug probe, and retry the operation. (Emulation package 9.4.0.00129) C28xx: Error occurred during flash operation: Timed out waiting for target to halt while executing FlashAPIInterface2806xV1_00.out C28xx: Flash operation timed out waiting for the algorithm to complete. Operation cancelled. C28xx: File Loader: Memory write failed: Unknown error C28xx: GEL: File: D:\zhuhongwei\Project\P36SH\code\BootLoader_28066\SCI_test\Debug\Bootloader_DSP1.out: Load failed.

  • 首先请确保是在wait boot模式下进行烧录。

    擦除完成,开始烧录就卡主,然后报故障,经常出现这种情况

    会不会是仿真器有问题?

  • 1.一定要在wait模式下烧录吗?getmode模式下烧录会存在什么问题?目前用GetMode模式,有时能烧录,有时候烧录失败

    2.仿真器用XDC100V2和XDC100V3都试过了,都是有时候能成功烧录,有时候烧录失败,失败几率挺高的

  • 1.下图是我的代码cmd和.map部分截图,从图中可以看到密码区没有使用的,但是在烧录的时候出现中断导致DSP锁死(已经锁死好几块了),可以排除软件问题吗?

    2.锁死的DSP(密码区读到的数据都是0000)还有没有解锁的可能呢?

    3.鉴于我都是在擦除完成烧录开始就出现烧录中断,我不使用FlashA区(我把代码放到flashB~H区),是不是可以避免DSP由于烧录出现中断导致DSP锁死?

  • 参考下手册中下面这段:

    你的板子应该是锁死了,是无法解锁的。

    https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/552293/tms320f2812-locked

    鉴于我都是在擦除完成烧录开始就出现烧录中断

    建议你先用TI的例程试一下,看是否为你的程序问题。

    我不使用FlashA区(我把代码放到flashB~H区),是不是可以避免DSP由于烧录出现中断导致DSP锁死?

    你可以尝试一下。