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 loading program to C6670

Guru 15520 points

Hi,

I'm having a problem with C6670.

When I load my program via CCS, execution(running) starts automatically sometimes.

Then following message will displayed at console.

*************************************************************

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 **************************************************************

Sometimes it will stop at main() which is usual but sometime it keep running.

What will cause this problem?

best regards,

g.f.

  • Hi,

    Are you able to run other programs from the MCSDK without error? Are you using EVM GEL file to initialize the DSP?

    After you installed CCS, did you install the last Keystone EMUpack:

    If not, install that and Refer keystone lab manual document to create a new target configuration file.

    If you still facing the same issue, please share the project file.

    Thanks,

  • Hi Ganapathi,

    Thank you for the reply.

    Yes, I can run other program without error.
    I'm using C6670EVM so that I'm using EVM gel file.

    My CCS is version 5.5. Do I need to install last Keystone EMU package which you introduced?
    It seem that last EMU package is for CCSv5.1.

    best regards,
    g.f.
  • Hi,

    You able to run other program without error means, it is not a EMU package issue. Please share your test project, i will try to reproduce your issue on my setup.

    Thanks,
  • Hi Ganapathi,

    Thank you for the reply.
    Actually, this program is my customer's program.
    So, I'm not available to share the program. I'm sorry.

    If possible, can you give me an advice what should I look for?

    best regards,
    g.f.
  • Hi,

    Have you load/run the same .out file multiple time with out power reset? In this case DSP goes to above error state.

    I am not able to find your issue, Without your test project.

    Thanks,
  • Hi g.f,

    In addition to Ganapathi's suggestion,

    1. Ensure that the EVM is booted in "No boot" mode.

    2. Power cycle the board, when every time application is loaded for execution.

    a. Connect the core with emulator

    b. Load and run the program

    3. Please check the issue persists across multiple EVM's. If they have more.

  • Please check the input power source for proper voltage, refer below e2e therad for more information.

    Thank you.

  • Hi Ganapathi,

    Thank you for the reply.

    >Have you load/run the same .out file multiple time with out power reset?
    If error occured, I always do power reset, but sometime the power reset doesn't work for this problem.

    >I am not able to find your issue, Without your test project.
    I understood. I'm sorry.

    Hi Rajasekaran,

    Thank you for the reply.

    I will check the boot mode and I will try with other EVM.

    best regards,
    g.f.
  • Hi g.f,
    As Ganapthi recommended,
    Always power OFF and power ON for every time you load the program through emulator.
    Are you doing that ?
    Tell us still if you face this issue.
    Able to reproduce the problem ?
    Are you getting this issue only with this project ?
    If yes, what is the main component/peripheral is used in this code like NETCP,PCIe,SRIO etc., ?
    What about the size of the executable that you are facing the problem ?
    I hope you set boot mode to "Emulation mode" (No-boot mode)
  • Hi Titus,

    Thank you for the reply.

    I'm not always doing power off and power on.
    But the issue will occures even I power off and power on the EVM and load the program.
    And this issue occures only with this project.
    The project are using VCP2, FFTC, TCP. The size is about 10MByte.
    The EVM boot mode are set to Emulation mode.

    By the way, when I try this project with other EVM(TCI6618),
    this issue doesn't occure so far.
    I don't know the reason, but I guess I should use TCI6618EVM.

    best regards,
    g.f.
  • Hi g.f,

    Few more pointer to check,

    1. Are you connecting both the EVM's(C6670 & TCI6618 EVM) with same GEL file?

    2. If Yes. What is the DDR3 operating clock frequency set? Could you please attach the log while connecting to the core0 before loading and running the application?

    Please make sure that C6670 configured up to 1333 MHz whereas TCI6618 1600 MHz (MAX).

    3. Make sure that the code does not use RAC & TAC hardware accelerators.

    I do not have any other suggestion to check at this point. Thank you.