自己参考官方红色电路板做了一个F28379D的板子,连接正常,仿真下载程序正常,但是点击仿真运行后,仿真器就断开了,而且flash下载也失败了。
换了仿真器也不行。
之前用蓝色控制卡是没有问题的。
谢谢!
user5140753:
单步运行了一下,到 ClkCfgRegs.SYSPLLCTL1.bit.PLLCLKEN = 1;这一句时显示错误:
Can't Single Step Target Program:
(Error -1156 @ 0x82BD)
Device may be operating in low-power mode. Do you want to bring it out of this mode? Choose 'Yes' to force the device to wake up and retry the operation. Choose 'No' to retry the operation without waking the device.
(Emulation package 6.0.407.3)
Green Deng:
你好,由于是自己设计的板子,这边也没办法直接给出解决方案,只能帮助你分析一下可能的原因。
首先了解一下你使用的程序是TI提供的官方例程吗?建议测试电路板的话使用官方例程测试:C:\ti\c2000\C2000Ware_3_01_00_00\device_support\f2837xd\examples\cpu1
你的板子使用的是内部晶振还是外部晶振?配置的多少主频?
如果是外部晶振,是否有测量过晶振频率是否正常?
另外你的几个电源引脚电压是否有测量过?
user5140753:
回复 Green Deng:
用的程序在蓝色的控制卡上可以正常仿真和flash烧写,外部晶振,主频配置200Mhz,测过晶振没有问题。电压测过,没有问题。
现在我在 ClkCfgRegs.SYSPLLCTL1.bit.PLLCLKEN = 1;这一句之前加了一个关闭看门狗函数,之后就可以正常仿真了
user5140753:
回复 Green Deng:
但是无法flash下载
Green Deng:
回复 user5140753:
板子设计里面,晶振的地和芯片的地有没有连接?外部晶振是使用的多少频率的?
无法flash下载,具体是什么现象?load之后无法运行?还是直接无法下载?
Green Deng:
回复 user5140753:
另外,无法下载或者连接有问题的时候检测一下复位引脚有没有复位信号。
user5140753:
回复 Green Deng:
晶振地和板子地正常连接,外部晶振10MHz。可以仿真运行。flash下载时,load之后进度条前进一段,然后仿真器连接按钮显示断开。我用的是JTAG下载,XDS100V3。板子连接后,复位引脚没有复位信号,连接自动断开后,复位信后正常。下面是错误提示:
C28xx_CPU1: GEL Output:
Memory Map Initialization Complete
C28xx_CPU1: If erase/program (E/P) operation is being done on one core, the other core should not execute from shared-RAM (SR) as they are used for the E/P code.Also, CPU1 will be halted to determine SR ownership for the CPU which will run the Flash Plugin code, after which CPU1 will be set to run its application. User code execution from SR could commence after both flash banks are programmed.
C28xx_CPU1: Error: (Error -1135 @ 0xC095) The debug probe reported an error. Confirm debug probe configuration and connections, reset the debug probe, and retry the operation. (Emulation package 8.0.903.2)
C28xx_CPU1: Trouble Halting Target CPU: (Error -1044 @ 0x0) The debug probe reported an error. Confirm debug probe configuration and connections, reset the debug probe, and retry the operation. (Emulation package 8.0.903.2)
C28xx_CPU1: Error: (Error -1135 @ 0xC095) The debug probe reported an error. Confirm debug probe configuration and connections, reset the debug probe, and retry the operation. (Emulation package 8.0.903.2)
C28xx_CPU1: Unable to determine target status after 20 attempts
C28xx_CPU1: 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_CPU1: Error executing PLL configuration algorithm. Operation cancelled. (0x0)
C28xx_CPU1: File Loader: Memory write failed: Unknown error
C28xx_CPU1: GEL: File: G:\CCSworkplace\FOC_sensorless_cpu01_2\FOC_sensorless_cpu01\CPU1_FLASH\FOC_sensorless_cpu01.out: Load failed.
C28xx_CPU1: GEL Output:
Memory Map Initialization Complete
C28xx_CPU1: Trouble Removing Breakpoint with the Action "Remain Halted" at 0xc056: (Error -1066 @ 0xC056) Unable to set/clear requested breakpoint. Verify that the breakpoint address is in valid memory. (Emulation package 8.0.903.2)
C28xx_CPU1: Trouble Setting Breakpoint with the Action "Remain Halted" at 0xc056: (Error -1066 @ 0xC056) Unable to set/clear requested breakpoint. Verify that the breakpoint address is in valid memory. (Emulation package 8.0.903.2)
C28xx_CPU1: Breakpoint Manager: Retrying with a AET breakpoint
C28xx_CPU1: Error: (Error -1135 @ 0xC095) The debug probe reported an error. Confirm debug probe configuration and connections, reset the debug probe, and retry the operation. (Emulation package 8.0.903.2)
C28xx_CPU1: Trouble Halting Target CPU: (Error -1044 @ 0x0) The debug probe reported an error. Confirm debug probe configuration and connections, reset the debug probe, and retry the operation. (Emulation package 8.0.903.2)
C28xx_CPU1: Error: (Error -1135 @ 0xC095) The debug probe reported an error. Confirm debug probe configuration and connections, reset the debug probe, and retry the operation. (Emulation package 8.0.903.2)
C28xx_CPU1: Unable to determine target status after 20 attempts
C28xx_CPU1: 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_CPU1: Error executing PLL configuration algorithm. Operation cancelled. (0x0)
C28xx_CPU1: File Loader: Memory write failed: Unknown error
C28xx_CPU1: GEL: File: G:\CCSworkplace\FOC_sensorless_cpu01_2\FOC_sensorless_cpu01\CPU1_FLASH\FOC_sensorless_cpu01.out: Load failed.
C28xx_CPU1: Trouble Setting Breakpoint with the Action "Remain Halted" at 0xc056: (Error -1066 @ 0xC056) Unable to set/clear requested breakpoint. Verify that the breakpoint address is in valid memory. (Emulation package 8.0.903.2)
C28xx_CPU1: Breakpoint Manager: Retrying with a AET breakpoint
C28xx_CPU1: GEL Output:
Memory Map Initialization Complete
C28xx_CPU1: Trouble Setting Breakpoint with the Action "Remain Halted" at 0xc056: (Error -1066 @ 0xC056) Unable to set/clear requested breakpoint. Verify that the breakpoint address is in valid memory. (Emulation package 8.0.903.2)
C28xx_CPU1: Breakpoint Manager: Retrying with a AET breakpoint
IcePick_C_0: Power Failure on Target CPU