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/CC2650: Debuuging issue using CC2650stk Sensortag2

Part Number: CC2650

Tool/software: Code Composer Studio

Hi 

I am using the CC2650stk SensorTag2 with Code composer studio. While debugging the Sesnortag_app project it is getting stuck at exception handler on  hwi_exchandler every time. I am followed  the 

CC26x0 SimpleLink™ Bluetooth® low energy Software Stack 2.2.x Developer's Guide and check all the points, but still, the problem exists.

  

In the above image, you can see where it is getting stuck.

Thanks & regards

Devendra

  • I am debugging with debugger tool Sensortag DevPack.Is this problem is of DevPack ??
  • There should not be problem with using DevPack XSD110 for debugging.
    Did you do any modification in the code?
    What's the compiler version you are using when you are running the code?
    (You can find the recommended compiler version in the release note. Also you can take a look at section 2.6.3.1 to see how to get a specific version of compiler)
    If you are running your custom code and get the hw exception, can you follow our software developer's guide section 9.8 to do further debugging?
  • Hi

    Sorry for the late reply.I was out of station.

    My ccs studio is ccs8 and compiler version is TIv18.1.1.LTS.
    In my code I do some changes, I stop some of the services. I am only working with Luxometer and GPIO and rest some generic services and Oad services.
    I want to debug while connecting with my smartphone, so that I can get exact flow of code.Its is running in main source code. But it is not going to Sensortag_opt.c and opticservices.c and not halting on that breakpoint which is in this file. And this getting stuck Hwi_excHandler.

    Thanks &
    regards
    Devendra
  • Hi,
    If you are using BLE STACK 2.2.2, then the corresponding CCS version is CCS 7.4 and you also need to use TI ARM Compiler version 16.9.4LTS

    You can follow the Software developer's guide section 2.6.3 Code Composer Studio to get the corresponding CCS and compiler version.

    Let me know if you still have problems after switching the tools.
  • Hi

    yes , I am using BLE STACK 2.2.2.

    I used CCSv7.4 and TI ARM Compiler version 16.9.4LTS but still same issue occurred .

    Can Ble will not work in debugger mode , I also want to connect with my smartphone at same and it should halt at breakpoints so that i connect it in debug mode .

    Thanks
    & regards
    Devendra
  • our projects can work in debug mode. Are you using out of box sensortag project or did you add some modification to the code?
  • Hi Christin,

    I am using sensortag_cc2650stk_app project from BLE stackv2.2.2. I do some of the changes in the code. I am not using OUT OF BOX projects.

    In Main.c I comment some of the Line as shown in below line :-

    SensorTag_createTask();
    //SensorTagTmp_createTask(); Commented
    //SensorTagHum_createTask();
    //SensorTagBar_createTask();

    I just want to display Lux data and Gpio_keys on the SensorTag App .

    Thanks
    & regards
    Devendra
  • Hi,

    Do you remember to program the STACK?
    I was able to reproduce what you are seeing if I deliberately not program the stack while debugging.
    You need to program stack into CC2650 and the program/debug app.

    BTW, this sensortag is made for offchip_OAD configuration, which means you need to also program bim_extflash project(under examples/util folder) when you are not in debug mode.
  • Hi Christine,

    I want to just confirm that If I program with "bim_extflash project(under examples/util folder) " , It will not affect /hamper the factory code.
    Means if some issue occurs then I can reset to factory_code.

    Thanks &
    Regards
    Devendra
  • Hi ,

    I first program the stack and also bim_extflash project before the stack and then the application project .
    But in the running mode it is not able advertise the BLE and when system_reset in RUN Tab of CCS studio then I got this below error.

    Cortex_M3_0: GEL Output: Memory Map Initialization Complete.
    Cortex_M3_0: GEL Output: Board Reset Complete.
    Cortex_M3_0: JTAG Communication Error: (Error -1170 @ 0x0) Unable to access the DAP. 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 7.0.100.0)
    Cortex_M3_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

    Can you suggest any proper document which having all the steps or video which can guide me properly.

    Thanks
    & regards
    Devendra
  • Can you create a new workspace and reimport the sensortag project.
    Make sure the compiler version is correct.
    Then just run out of box project to see if you have the same problem.

    The document you should take a look at is our software developer's guide which comes with BLE STACK. We don't have specific guide just for sensortag.

    When in debug mode, you don't need the BIM project.