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.

AM6442: CCS v12.0.0.00009 cannot load symbols for R5F when using TI Clang v2.1.0.LTS

Part Number: AM6442

When compiling R5F programs on AM64xGPEVM using CCS v12 and TI Clang v2.1.0.LTS compiler, CCS is unable to load symbols when debugging.

The error shown in the console is "DWARF information is corrupted".

This can be reproduced using any of the TI examples in the MCU+ SDK, e.g. examples/empty/am64x-evm/r5fss0-0_nortos. Change the compiler to TI Clang v2.1.0.LTS and rebuild. Connect debugger to the AM64xGPEVM and load the program to the R5F core. The DWARF error will be shown in the console and CCS will not load the source code for debugging.

This error does not occur when using TI Clang v1.3.1.LTS.

  • Hello ,

    I am trying to reproduce the issue at my end, please expect a response one or two days.

    Regards,

    S.Anil.

  • Hello ,

    Can you please provide more information such as why you are loading symbols instead of Loading program option ?

    Are you using XIP method ?

    Regards,

    S.Anil.

  • Hi Swargam,

    To clarify, I was using "Load Program", not "Load Symbols".

    I am not using XIP.

    Here's a quick way to reproduce this problem:

    1. Using MCU+ SDK v8.03.00.18, import examples/empty/am64x-evm/r5fss0-0_nortos into CCS v12

    2. In project properties, change compiler to TI Clang v2.3.1.LTS

    3. Rebuild program

    4. Connect JTAG cable to AM64GPEVM board

    5. Connect CCS to AM64GPEVM board using target config. with AM64x_GP_EVM

    6. Connect to R5F0_0 core

    7. Load program to R5F0_0 core

    8. Console should show DWARF corruption error and main.c will not be shown

  • empty_am64x-evm_r5fss0-0_nortos_ti-arm-clang.zip

    Hello ,

    I have followed above steps and observed that there is no issue at my end .

    1. Imported examples/empty/am64x-evm/r5fss0-0_nortos into CCS v12 (MCU+ SDK v8.03.00.18)

    2. I changed compiler to TI Clang v2.1.0.LTS .

    3. Compiled software and Loaded binaries on R5F0_0 core.

    NOTE : I have verified the same steps with TI Clang v1.3.1.LTS also and  observed that there is no issue at my end.

    Please find the attached project for your reference .

    Please correct me if my understanding is wrong to reproduce your issue.

    Regards,

    S.Anil.

  • Hi Swargam,

    I found that if I started with a brand new workspace, I couldn't reproduce this error either. So I went back to my original workspace and was finally able to find the culprit. In a previous version of CCS, there was a bug that caused the debugger to hang under certain situations. The fix at the time was to add a temporary variable to the expressions window named "symbol_loader=1".

    I still had "symbol_loader=1" loaded into my expressions window. After removing it and rebooting CCS, I no longer have the DWARF corruption error and I can debug when compiling with TI Clang v2.3.0.LTS.

    I appreciate your help, thanks!