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/66AK2G12: Debug failure

Part Number: 66AK2G12
Other Parts Discussed in Thread: EVMK2GX

Tool/software: Code Composer Studio

Hi,

I am also facing the same issue while I am trying to run GPIO_LedBlink example project(from processor sdk rtos) on C66x core of EVMK2Gx evaluation board. Can anyone suggest how to resolve this?

Regards,

Vishnu

  • Hello,

    When do you get the error? While executing the program?

    Did you see the troubleshooting guide?

    https://software-dl.ti.com/ccs/esd/documents/ccs_debugging_jtag_connectivity_issues.html#device-hung

    Thanks

    ki

  • Hi,

    I am getting the error when I start executing the program. Yes, I have gone through the troubleshoot guide but still I couldn't resolve the issue.

    Regards,

    Vishnu

  • If you can connect to the target but the issue occurs during program execution, then it is quite possible that the program itself made some access that caused the the memory bus to hang. However I would not an expect this from an example application from the SDK to do this. I don't have much experience with this target and example. I will bring this thread to the attention of the device experts for more assistance.

    Thanks

    ki

  • Hi Vishnu,

    It's not clear to me from this thread what error you got. Can you provide more information? Also, which version of Processor-SDK are you using?

    Thanks,

    Jianzhong

  • Hi Jianzhong,

    I imported the GPIO_LedBlink_evmK2G_c66xTestProject example from Processor SDK RTOS version 06.03. I connected to the target and loaded the program on to C66x core. When  I  run the code and tried to suspend or put a break point, the core is getting hung. When I try to step into at the start of main it is entering into profiling hooks related code but when I try to step over couldn't and when I tried to suspend the core is getting hung.

    Trouble Halting Target CPU:
    (Error -1202 @ 0x0)
    Device core is hung. The debugger will attempt to force the device to a ready state to recover debug control. Your application's state will be corrupt. You should have limited access to memory and registers, but you may need to reset the device to debug further.
    (Emulation package 9.2.1.00046)


    I tried by removing profiling function by making  changes to .cfg file and example code is debugging without any issues. I guess the issue might be with profiling or accessing DDR memory as profiling benchmarking section is placed in DDR memory. Can you please confirm what might be the issue ? And if the issue is with accessing DDR memory please suggest some solution. I am using 12V 3A variable power supply against recommended 12V 5A power supply as I am not using most of the other peripherals which require more current. Also I can see that the EVM is taking only around 600 mA , so this shouldn't be the issue.

    Regards,

    Vishnu

     

  • Hi Vishnu,

    A few more questions:

    Which version of CCS are you using?

    What JTAG are you using?

    What's your CCS target configuration?

    Thanks,

    Jianzhong

  • Hi Jianzhong,

    I am using CCS  Version: 10.1.0.00010

    The JTAG used is on-chip XDS200 emulator

    I am attaching the target configuration file.

    Regards,

    Vishnu

    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/81/K2g.7z

  • Hi Vishnu,

    Can you try to use the target configuration file at: processor_sdk_rtos_k2g_6_03_00_106\demos\performance-audio\src\pasrc\test_dsp\targetConfigs\K2GEVM.ccxml? The Performance Audio Demo can be a reference for you as well.

    Thanks,

    Jianzhong

  • Hi Jianzhong,

    I have tried with the target configuration file you have mentioned and the project is debugging fine.

    Thanks,

    Vishnu