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 debugging CC1310 in CCS v6.2 under linux

I'm trying to upload and debug an application (lcdSmartRF06EB_CC1310DK_7XD_TI) using SmartRF06 evaluation board in 6.2.0.00048. The application uploads successfully, but there is a problem with the debugging. Please see the picture below. It does not go to main function, it loops between addresses 1001bbd2 and 1001bbd4.

Please find attached the Debug Server Log.

2604.debug.log.zip

  • Yannis,

    The value shown for xPSR indicates a hard fault exception occurred.

    How specifically are you loading and starting the program?

    Is it only this particular program you are having an issue with?  Can you load and run other examples?

    Thanks,
    Scott

  • Hi Scott,

    I import the projects from the Resource Explorer (TI-RTOS for CC13XX and CC26XX -> Development Tools -> CC1310DK_7XD -> Driver Examples) to my workspace and I change the XDCtools version to 3.32.1.22_core. Then I hit the debug button.

    I tried the projects lcdSmartRF06EB, pinInterrupt, uartecho, rfPacketRx. Only the pinInterrupt debugs fine. My application, which was debugging fine on CCS v6.1.3, has the same problem.

    The following thread describes the same problem on Windows 10 (I also try it on Windows 10 and the problem exists) and has a video showing the problem.
    e2e.ti.com/.../540519

    Yannis

  • Hi Yannis,

    Please see this thread about a problem with the Flash loader, and a new DLL as a workaround: e2e.ti.com/.../1972312

    I know you’d posted to that thread, so maybe you’ve already seen the workaround?

    This afternoon I’d been able to recreate the problem you reported.  With some debug we narrowed it down as a Flash loader problem, where the variable initialization tables were garbled when some apps were loaded, and the boot code was throwing an exception.  Looping in the CCS team, we learned that the problem was being simultaneously debugged and fixed.  I just tried the new Flash loader Ki-Soo posted and it indeed solved the problem I was seeing with the LCD example.  So I expect this new DLL should get you going again…

    Sorry for the trouble this has caused!

    Regards,
    Scott

  • Hi Scott,

    Thanks for looking into this.

    Do you know when a new FlashCC26xx.so will be available? I use linux on my development machine.

    Regards,

    Yannis

  • Yannis - I updated the post with libraries for Linux and Mac:
    e2e.ti.com/.../1972312

    Thanks
    ki
  • Thanks Ki!
  • ScottG said:
    I just tried the new Flash loader Ki-Soo posted and it indeed solved the problem I was seeing with the LCD example.  So I expect this new DLL should get you going again…

    Just to clarify - the "new" flash loader is not really new. It's actually older than what comes in 6.2.0. The current version has a bug that was introduced recently. Hence the workaround was to go to a version before the bug was introduced. The bug has been fixed and a new version of the library will be released, but for now, reverting to the older one should help people workaround the issue.