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.

TMS320F28075程序可以下进ram, 程序烧录不进flash

Other Parts Discussed in Thread: UNIFLASH

问题: 新做的28075板子,程序可以下载进ram,可以正常运行,但是当程序改为下载进flash时 CCS报错, 改用UniFlash , 可以读出memory数据,但就是不能program,每次下载时都会报错

说明: 1、程序是可以下载进开发板的,证明应该不是程序或者配置错误

             2、因为买的晶振没到,所以程序改为内部晶振,PLL配置为:  InitSysPll(INT_OSC2 ,IMULT_6,FMULT_0,PLLCLK_BY_2);

    3、3.3V电源与1.2V电源都比较稳,使用示波器测量纹波均在10mV以下,应该不存在电源的问题

以下为CCS报错:

Error connecting to the target:
(Error -215 @ 0x0)
The semaphore for the test bus controller is in a time-out state.
Unified-SCIF was unable to acquire the semaphore used to
express ownership of a controller by a utility or debugger.
You may have to exit other clients because the timeout occurred.
(Emulation package 8.4.0.00006)

以下为uniflash 报错:

2020/3/6 下午2:46:26] [ERROR] 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.4.0.00006)
[2020/3/6 下午2:46:26] [ERROR] 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.4.0.00006)
[2020/3/6 下午2:46:26] [ERROR] 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.4.0.00006)
[2020/3/6 下午2:46:26] [ERROR] C28xx_CPU1: Unable to determine target status after 20 attempts
[2020/3/6 下午2:46:26] [ERROR] 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
[2020/3/6 下午2:46:46] [ERROR] C28xx_CPU1: Error occurred during flash operation: Could not write 0x00000064@Data: target is not connected
[2020/3/6 下午2:46:46] [ERROR] C28xx_CPU1: Error occurred during flash operation: Could not read 0x00130@Program: target is not connected
[2020/3/6 下午2:46:46] [ERROR] C28xx_CPU1: Error executing PLL configuration algorithm. Operation cancelled. (0x0)
[2020/3/6 下午2:46:46] [ERROR] C28xx_CPU1: File Loader: Memory write failed: Unknown error
[2020/3/6 下午2:46:46] [ERROR] C28xx_CPU1: Error occurred during flash operation: Could not read register PC: target is not connected
[2020/3/6 下午2:46:46] [ERROR] C28xx_CPU1: Error occurred during flash operation: Could not write 0x0005F800@Data: target is not connected
[2020/3/6 下午2:46:46] [ERROR] C28xx_CPU1: Error occurred during flash operation: Could not write 0x0005FC00@Data: target is not connected
[2020/3/6 下午2:46:46] [ERROR] C28xx_CPU1: Error occurred during flash operation: Could not write 0x00000@Program: target is not connected
[2020/3/6 下午2:46:46] [ERROR] C28xx_CPU1: Error occurred during flash operation: Cannot enable while the target is disconnected
[2020/3/6 下午2:46:46] [ERROR] C28xx_CPU1: Error occurred during flash operation: Could not read 0x00000064@Data: target is not connected
[2020/3/6 下午2:46:46] [ERROR] C28xx_CPU1: Error occurred during flash operation: Could not write 0x00000064@Data: target is not connected
[2020/3/6 下午2:46:46] [ERROR] C28xx_CPU1: Error occurred during flash operation: Failed to run target while trying to execute pwrite_en.alg
[2020/3/6 下午2:46:46] [ERROR] C28xx_CPU1: Flash operation timed out waiting for the algorithm to complete. Operation cancelled.
[2020/3/6 下午2:46:46] [ERROR] C28xx_CPU1: Perform a debugger reset and execute the Boot-ROM code (click on the RESUME button in CCS debug window) before erasing/loading the Flash. If that does not help to perform a successful Flash erase/load, check the Reset cause (RESC) register, NMI shadow flag (NMISHDFLG) register and the Boot-ROM status register for further debug.
[2020/3/6 下午2:46:46] [ERROR] C28xx_CPU1: Error occurred during flash operation: Could not write 0x00000064@Data: target is not connected
[2020/3/6 下午2:46:46] [ERROR] C28xx_CPU1: Error occurred during flash operation: Could not read 0x0005D20E@Data: target is not connected
[2020/3/6 下午2:46:46] [ERROR] C28xx_CPU1: Error occurred during flash operation: Could not write 0x0005D20E@Data: target is not connected
[2020/3/6 下午2:46:46] [ERROR] C28xx_CPU1: Error occurred during flash operation: Could not read 0x0005D20E@Data: target is not connected
[2020/3/6 下午2:46:46] [ERROR] C28xx_CPU1: Error occurred during flash operation: Could not write 0x0005D20E@Data: target is not connected
[2020/3/6 下午2:46:46] [ERROR] C28xx_CPU1: Error occurred during flash operation: Could not read 0x0005D22E@Data: target is not connected
[2020/3/6 下午2:46:46] [ERROR] C28xx_CPU1: Error occurred during flash operation: Could not read 0x0005D208@Data: target is not connected
[2020/3/6 下午2:46:46] [ERROR] C28xx_CPU1: Error occurred during flash operation: Could not write 0x0005D208@Data: target is not connected
[2020/3/6 下午2:46:46] [ERROR] C28xx_CPU1: Error occurred during flash operation: Could not read 0x0005D208@Data: target is not connected
[2020/3/6 下午2:46:46] [ERROR] C28xx_CPU1: Error occurred during flash operation: Could not write 0x0005D208@Data: target is not connected
[2020/3/6 下午2:46:46] [ERROR] C28xx_CPU1: Error occurred during flash operation: Could not read 0x0005D222@Data: target is not connected
[2020/3/6 下午2:46:46] [ERROR] C28xx_CPU1: Error occurred during flash operation: Could not write 0x0005D222@Data: target is not connected
[2020/3/6 下午2:46:46] [ERROR] C28xx_CPU1: Error occurred during flash operation: Could not write 0x0005D214@Data: target is not connected
[2020/3/6 下午2:46:46] [ERROR] C28xx_CPU1: Error occurred during flash operation: Could not read 0x0005D20E@Data: target is not connected
[2020/3/6 下午2:46:46] [ERROR] C28xx_CPU1: Error occurred during flash operation: Could not write 0x0005D20E@Data: target is not connected
[2020/3/6 下午2:46:46] [ERROR] C28xx_CPU1: Error occurred during flash operation: Could not write 0x0005D20E@Data: target is not connected
[2020/3/6 下午2:46:46] [ERROR] C28xx_CPU1: Error occurred during flash operation: Could not write 0x0005D222@Data: target is not connected
[2020/3/6 下午2:46:46] [ERROR] C28xx_CPU1: Error occurred during flash operation: Could not write 0x00000@Program: target is not connected
[2020/3/6 下午2:46:46] [ERROR] C28xx_CPU1: Error occurred during flash operation: Cannot enable while the target is disconnected
[2020/3/6 下午2:46:46] [ERROR] C28xx_CPU1: Error occurred during flash operation: Could not read 0x00000064@Data: target is not connected
[2020/3/6 下午2:46:46] [ERROR] C28xx_CPU1: Error occurred during flash operation: Could not write 0x00000064@Data: target is not connected
[2020/3/6 下午2:46:46] [ERROR] C28xx_CPU1: Error occurred during flash operation: Failed to run target while trying to execute pwrite_dis.alg
[2020/3/6 下午2:46:46] [ERROR] C28xx_CPU1: Flash operation timed out waiting for the algorithm to complete. Operation cancelled.
[2020/3/6 下午2:46:46] [ERROR] C28xx_CPU1: Perform a debugger reset and execute the Boot-ROM code (click on the RESUME button in CCS debug window) before erasing/loading the Flash. If that does not help to perform a successful Flash erase/load, check the Reset cause (RESC) register, NMI shadow flag (NMISHDFLG) register and the Boot-ROM status register for further debug.
[2020/3/6 下午2:46:46] [ERROR] C28xx_CPU1: Error occurred during flash operation: Could not write 0x00000064@Data: target is not connected
[2020/3/6 下午2:46:46] [ERROR] C28xx_CPU1: Error occurred during flash operation: Could not write register PC: target is not connected
以下为使用C2Prog 串口下载报错:

*** PLEASE RESET TARGET IN SCI BOOT-LOADER MODE ***
Connecting with target (autobaud)... OK.
Bootloading... OK.
Connecting with target... OK.
Unlocking target... OK.
Loading... OK.
Connecting with target...
-Chip ID: 0x00FF0500
-Chip Rev: 3
-Flash API version: 154
OK.
Erasing flash... [A|B|D|F] OK.
Programming... failed (no response)!

以上说明程序可以擦除,也可以读取数据,但是就是不能往flash刷入新数据,请教大神具体都有哪些原因引起以上问题

  • 问题已经解决,由于外部晶振还没到货,使用的是内部晶振,但是板子第一次上电烧录的程序还是外部晶振的程序,导致芯片内部是未知的状态,所以后续都不能下载flash程序。
    解决方法:
    (解决问题前用示波器查看3.3V电源与1.2V电源是否比较稳定)
    1、如果能够程序能通过仿真器下载到ram里面,把时钟配置正确的程序下载进去,然后CCS断开调试模式(注意不断电),然后把配置正确时钟的flash程序下载进去就可以了。
    2、如果此时程序不能通过仿真器下载到ram里,那么断电然后短接GPIO72(boot1)到地点位,再使用1、中的方法。
    3、如果flash下载过程中出现未知故障,按以下方式处理:
    CCS->RUN->Debug Configurations-Target->Flash Settings , 打开之后有一个PLL时钟设置, SPLLMULT 设置成15 ;SPLLFMULT 设置成0 ; SYSDIVSEL 设置成 2[/4], 再按1、2、中的方法进行尝试,如果通过更改PLL时钟可以下载而不更改不能下载,则要考虑PCB布板与电源是否合理的问题
  • 很高兴您能解决问题!感谢您详细的分享解决方案
  • 感谢分享,这个只能是让上电别跑已固化的代码,切换BOOT模式等