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.

Problem with executing a programme on EVM C6678l

Hi,

When i try to execute my programme on the C6678 with xds100v1 emulator i get this error : 

C66xx_0: Power Failure on Target CPU
C66xx_0: 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
C66xx_1: Power Failure on Target CPU
C66xx_2: Trouble Reading PC Register: (Error -1139 @ 0x5F) 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 5.0.872.0)
C66xx_1: 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
C66xx_3: Power Failure on Target CPU
C66xx_4: Power Failure on Target CPU
C66xx_5: Power Failure on Target CPU
C66xx_6: Power Failure on Target CPU
C66xx_7: Trouble Reading PC Register: (Error -1060 @ 0x5F) Device is not responding to the request. 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 5.0.872.0)
C66xx_7: Trouble Reading Register ControlRegisters_CSR: (Error -1060 @ 0x41) Device is not responding to the request. 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 5.0.872.0)
C66xx_7: Trouble Reading Register ControlRegisters_CSR: (Error -1060 @ 0x41) Device is not responding to the request. 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 5.0.872.0)
C66xx_3: 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
C66xx_4: 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
C66xx_5: 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
C66xx_6: 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
C66xx_7: Trouble Reading Register B3: (Error -1060 @ 0x23) Device is not responding to the request. 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 5.0.872.0)
C66xx_2: Trouble Reading Register ControlRegisters_CSR


Notice :

- When i try to execute an other programme i don't get this error and the programme executed correctly.

- To correct the problem i tried :

Changing USB port

Cleaning the project

Doing a Hard reset

Reprogramming the EVM

But without a result

Sincerly

Youssef

  • Do you get the same problem after Executing a working program & again loading this program (the one that causes this error) ?

    Which version of SYS/BIOS are you using ?

  • 1. Yes i get the same problem

    2. I don't use SYS/BIOS

    Sincerly 

    Youssef

  • Problem found !

    I'm trying to do IPC communication between the Cores and at main starting i execute a function that i created to clear all interrepts.

    The descreption of the function is

    void clearAllIpc() {
    int i,j;
    for(i=0;i<28;i++) {
    for(j=0;j<8;j++){
    CSL_IPC_clearGEMInterruptSource (j,i);
                                }
                            }
                       }

    I really don't inderstand why it causes the problem

    Youssef

  • Hello,

    The error appears to be that the program is putting the cores to sleep. 

    The error message “Power Failure on Target CPU” comes from reading the ICEPick status registers and indcating that the core is currently powered down. 

    If it were an issue that the entire board power was really off, the error message would be error code -180.

    If you are not expecting the core to power off, then you can step through the code and find what instruction is causing that to happen.

    If you are expecting the code to power down the cores, then you should be using the Low Power Run mode in CCS to allow power transition in CCS:

    Open Debug configuration from Run, then select “Allow power transitions while running….” from Target->Misc/Other Options tab in the debug Configuration dialog box.

     

    regards,

    David 

  • hi,thank you first!

         I faced a familiar problem these days,as follow: when I first load the program to debug,it can not stop at the main,and can not suspend(error 1060);but when I load a small working paogram and run it ,then load my program which has problems as I described,it will work fine.

        so what is the problem? or how to solve it?

        I will look forward to hearing from you,thank you very much again!

    Best regards!