Part Number:TMS320F28066
使用的CCS10,用XDC100V2给28066烧录代码,仿真器可以正常连接,但是烧录时提示等待目标停止超时,请问会是什么原因呢
Ben Qin:
你好,能否检查下boot mode?用wait mode试一下。
,
Mike:
boot mode现在是GetMode模式。你的意思是硬件把IO配置成Wait mode模式,用仿真器来烧录试试?
,
Ben Qin:
是的
,
Mike:
1.GPIO37接10K外部上拉,GPIO34接10k电阻外部下拉,代码可以正常烧录,拔掉仿真器代码没有正常启动。我想配置成flash启动,那么是应该配置成GPIO37和GPIO34外部上拉吗?但是把它们都外部上拉之后,仿真器可以正常连接,但是烧录时提示等待目标停止超时?请问会是什么原因?
2.我想配置成flash启动,GPIO37和GPIO34需要外部上拉,内部需要上拉吗?它们应该怎么配置?
,
Mike:
会不会跟CCS的版本有关系?麻烦看到回复一下,谢谢
,
Ben Qin:
Mike 说:仿真器可以正常连接,但是烧录时提示等待目标停止超时?请问会是什么原因?
烧录需要wait mode。
Mike 说:我想配置成flash启动,GPIO37和GPIO34需要外部上拉,内部需要上拉吗?
需要get mode。
,
Mike:
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=-1C28xx: 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 -1C28xx: Error occurred during flash operation: Timed out waiting for target to halt while executing FlashAPIInterface2806xV1_00.outC28xx: 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 -1C28xx: Error occurred during flash operation: Timed out waiting for target to halt while executing FlashAPIInterface2806xV1_00.outC28xx: Flash operation timed out waiting for the algorithm to complete. Operation cancelled.C28xx: File Loader: Memory write failed: Unknown errorC28xx: GEL: File: D:\zhuhongwei\Project\P36SH\code\P36SH_28066_V1.0.1\Master_DSP\Output\P3600SH_28066.out: Load failed.
,
Ben Qin:
烧录需要使用wait mode,
Mike 说:下面是使用XDC100V3烧录报出的错误:
你是换成XDC100V3了是吗?需要再xxcml文件中改成XDC100V3.
,
Mike:
上述烧录报错是在xxcml文件已经改成了XDC100V3之后烧录报出来的
,
Mike:
下面故障是使用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.outC28xx: Error occurred during flash operation: Timed out waiting for target to halt while executing FlashAPIInterface2806xV1_00.outC28xx: Flash operation timed out waiting for the algorithm to complete. Operation cancelled.C28xx: File Loader: Memory write failed: Unknown errorC28xx: 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.outC28xx: Error occurred during flash operation: Timed out waiting for target to halt while executing FlashAPIInterface2806xV1_00.outC28xx: Flash operation timed out waiting for the algorithm to complete. Operation cancelled.C28xx: File Loader: Memory write failed: Unknown errorC28xx: GEL: File: D:\zhuhongwei\Project\P36SH\code\P36SH_28066_V1.0.1\Master_DSP\Output\P3600SH_28066.out: Load failed.
,
Ben Qin:
是使用的wait mode吗?
,
Mike:
使用的Get mode
,
Ben Qin:
请尝试下使用wait boot mode试一下。
,
Mike:
Mike 说:
1.GPIO37接10K外部上拉,GPIO34接10k电阻外部下拉,代码可以正常烧录,拔掉仿真器代码没有正常启动。我想配置成flash启动,那么是应该配置成GPIO37和GPIO34外部上拉吗?但是把它们都外部上拉之后,仿真器可以正常连接,但是烧录时提示等待目标停止超时?请问会是什么原因?
2.我想配置成flash启动,GPIO37和GPIO34需要外部上拉,内部需要上拉吗?它们应该怎么配置?
wait boot模式试过了,可以烧录,但是代码没办法正常跑到Flash里面
,
Mike:
空白芯片,没有烧录代码的时候,XRS引脚会周期复位吗?
,
Ben Qin:
Mike 说:但是代码没办法正常跑到Flash里面
在wait mode 模式下烧录程序到flash,此时应该是可以debug的。
Mike 说:XRS引脚会周期复位吗
没有听说过这个情况。
,
Mike:
擦除完成,开始烧录就卡主,然后报故障,经常出现这种情况,已经因为这个原因导致几块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.
,
Ben Qin:
首先请确保是在wait boot模式下进行烧录。
Mike 说:擦除完成,开始烧录就卡主,然后报故障,经常出现这种情况
会不会是仿真器有问题?
,
Mike:
1.一定要在wait模式下烧录吗?getmode模式下烧录会存在什么问题?目前用GetMode模式,有时能烧录,有时候烧录失败
2.仿真器用XDC100V2和XDC100V3都试过了,都是有时候能成功烧录,有时候烧录失败,失败几率挺高的
,
Ben Qin:
参考下下面这篇帖子,似乎跟你的情况类似:
e2e.ti.com/…/tms320f28379d-problems-programming-flash-in-get-mode-and-debugging-in-wait-mode
,
Mike:
1.下图是我的代码cmd和.map部分截图,从图中可以看到密码区没有使用的,但是在烧录的时候出现中断导致DSP锁死(已经锁死好几块了),可以排除软件问题吗?
2.锁死的DSP(密码区读到的数据都是0000)还有没有解锁的可能呢?
3.鉴于我都是在擦除完成烧录开始就出现烧录中断,我不使用FlashA区(我把代码放到flashB~H区),是不是可以避免DSP由于烧录出现中断导致DSP锁死?
,
Ben Qin:
参考下手册中下面这段:
你的板子应该是锁死了,是无法解锁的。
https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/552293/tms320f2812-locked
Mike 说:鉴于我都是在擦除完成烧录开始就出现烧录中断
建议你先用TI的例程试一下,看是否为你的程序问题。
Mike 说:我不使用FlashA区(我把代码放到flashB~H区),是不是可以避免DSP由于烧录出现中断导致DSP锁死?
你可以尝试一下。