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.

LP-EM-CC2340R5: LP-EM-CC2340R5: Debugging OAD using CCS version 20

Part Number: LP-EM-CC2340R5
Other Parts Discussed in Thread: CC2340R5, UNIFLASH

Tool/software:

Hello Geeks ,I have basic question regarding CC2340R5(4x4)

How to debug basic ble on chip OAD project using

ccs Details

Version: 20.0.2.5__1.6.2

Default VS Code API: 1.92.2

I am trying to debug but after flashing it I am not able to  find option to connect target as shown in 

https://dev.ti.com/tirex/explore/node?node=A__AbMoFvWD.bZAg65tD.7NsQ__SIMPLELINK-ACADEMY-CC23XX__gsUPh5j__LATEST @ Debug an OAD Project

Here I am attaching my system screenshot

Please share steps to debug such application using this version CCS20

  • Hi,

    Thank you for reaching out. We will take a look at your questions and get back to you as soon as possible.

    Best Regards,

    Jan

  • Hi,

    The SimpleLink Academy lab is built on an older version of Code Composer Studio. To connect to the target like mentioned in the lab you'll have to do the following:

    1. Open the "View" menu located in the top left corner, and select connected targets.



    2. In the connected targets menu, select your board, check the "debug" box, then press the ladybug icon button that stands for "Debug Connected Targets"



    3. In the debug menu, right click on your thread, in my case "Cortex_M0P", and select "Connect Target".



    I hope this helps!

    Best Regards,
    Tarek

  • Thanks for your response but when I did same as per your image step  

    Error :- 

    Texas Instruments XDS110 USB Debug Probe/IcePick_C Error connecting to the target: (Error -242 @ 0x0) A router subpath could not be accessed. The board configuration file is probably incorrect. (Emulation package 20.0.0.3344)

     

    Here is my connected device 

  • Hello,

    I was unable to recreate this error on my end. Could you please confirm which versions you're using for the following:
    SDK version
    Could you confirm that this is on your own custom board?

    Also, could you possibly try a non OAD example., like gpiointerrupt, located in the drivers folder, and provide the results you get. 

    Best Regards,
    Tarek

  • I also used to run data stream and many time i get below  

    Debugging is not allowed. If this is not expected, check your CCFG.
    If you are experiencing issues with loading your application, do the following (this will erase the chip):
    - Code Composer Studio:
    - End the current debug session (if any is active).
    - View -> Target Configurations -> Right click on .ccxml file for your project -> Launch Selected Configuration.
    - Right click on the 'Debug Probe/Cortex_M0P' and select 'Show all cores'.
    - Select the 'Debug Probe/CS_DAP0' item after expanding the 'Non Debuggable Devices' item.
    - Scripts -> CC23xx -> ChipErase to start Chip erase.
    - You should now be able to load your application to the target.
    Debugging is not allowed. If this not expected, check your CCFG.
    Flash loading is currently not supported if debugging is not allowed.
    Halting at entry of application is not allowed. Are you sure debugging is allowed?
    Running the application, without halting at the entry of the application.
    Error connecting to the target: (Error -1274 @ 0x0) Error encountered during connect sequence. The specific reason is unknown but may be the result of trying to access a Core or logic that is inaccessible due to a lack of Power, Clocks, or Authentication (i.e. Security is preventing). If blocked by security, and if supported, access may be allowed after following the Authentication process. (Emulation package 20.0.0.3344)
    CS_DAP_0: Error connecting to the target: (Error -260 @ 0x0) An attempt to connect to the XDS110 failed. The cause may be one or more of: no XDS110 is connected, invalid firmware update, invalid XDS110 serial number, or faulty USB cable. The firmware and serial number may be updated using the xdsdfu utility found in the .../ccs_base/common/uscif/xds110 directory of your installation. View the XDS110SupportReadMe.pdf file there for instructions. (Emulation package 20.0.0.3344)
    CS_DAP_0: Error connecting to the target: (Error -260 @ 0x0) An attempt to connect to the XDS110 failed. The cause may be one or more of: no XDS110 is connected, invalid firmware update, invalid XDS110 serial number, or faulty USB cable. The firmware and serial number may be updated using the xdsdfu utility found in the .../ccs_base/common/uscif/xds110 directory of your installation. View the XDS110SupportReadMe.pdf file there for instructions. (Emulation package 20.0.0.3344)

    I am not able to remove error even after doing all step please suggest way out to solve such problem 

  • Hello,

    Thank you for your patience. The error you mentioned is caused by changing the image structure, since in OAD applications, MCUBoot or the Boot Image Manager are present in the beginning of the image, rather than the CCFG. The easiest way to fix this error is by doing the following:


    •  Chip Erase using Uniflash:
      To do this, simply go to Uniflash, connect your board, and select start. After that, click on "Settings & Utilities" and scroll down to "Manual Erase" and click on Chip Erase. I've attached a screenshot of this setting.




    • Flash a hexfile onto board using Uniflash:
      To do this, you will also use Uniflash. Connect your board, then click "browse" in the Flash Image section, inside of "Program". Navigate to simplelink_lowpower_f3_sdk_8_40_00_61\examples\rtos\LP_EM_CC2340R5\ble5stack\hexfiles, and select basic_ble_app.hex, then select load image. This will flash a non OAD image onto the board.


    • Power cycle the board (make sure the red debug light is not on), then go back to your original project and try flashing. You shouldn't encounter the error again.

    I hope this helps.

    Best Regards,

    Tarek