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.

CCS/TMS320F28377S: Load program Error

Part Number: TMS320F28377S
Other Parts Discussed in Thread: UNIFLASH

Tool/software: Code Composer Studio

Hello guys! Please, help me...

Every time I try to run a debug from FLASH, or just a simple load, I get the following message on console:

C28xx_CPU1: Error occurred during flash operation: Timed out waiting for target to halt while executing wr_pll.alg
C28xx_CPU1: Error writing the PLL values (Flash algorithm timed out). Operation cancelled.
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.
C28xx_CPU1: File Loader: Memory write failed: Unknown error
C28xx_CPU1: GEL: File: J:\Projeto PFC_3ph\Firmware\PFC_3ph\Debug\PFC_3ph.out: Load failed.

I've already tryed to load flash using Uniflash, and I got exactly the same message.

Until yesterday everything worked fine, but today I started to get that error message.

Debugging from RAM still works fine.

Could someone help me???

  • Hi,

    Have you performed what was suggested?

    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.

    Have you also performed a power cycle?

    Have your programmed the DCSM? Are either of the Zones locked?

    sal

  • Hi, Saul! Thanks for your help.

    I'm new on TI's MCUs. I can't even start a debug session from flash. I've tryed to perform an "erase flash" form Uniflash but I always receive the error messages below.

    [25/06/2019 12:51:56] [ERROR] C28xx_CPU1: Error occurred during flash operation: Timed out waiting for target to halt while executing wr_pll.alg
    [25/06/2019 12:51:56] [ERROR] C28xx_CPU1: Error writing the PLL values (Flash algorithm timed out). Operation cancelled.
    [25/06/2019 12:51:56] [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.
    [25/06/2019 12:51:56] [ERROR] C28xx_CPU1: Flash Programmer: Error initializing device. Please check if the device is locked.
    What do you mean when you say "Have your programmed the DCSM? Are either of the Zones locked?"?
  • Hi again!

    I solved this issue changing boot mode to WAIT on gpio boot pins.

    Thanks!!!

  • Silva,

    Glad you resolved it.

    On a fresh device, using wait boot prevents the CPU from executing garbage from Flash/RAM (when there is no valid code in them).

    Wait boot helps to establish a clean debugger connection.

    Thanks and regards,
    Vamsi