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.

Neither CCS nor UniFlash are able to connect to LP-EM-CC2340R5 eval board

Other Parts Discussed in Thread: CC2340R5, UNIFLASH, SYSCONFIG

I suspect bad hardware, tool/device support versions mismatch, bug in the deice support, or some sort of security settings, if any.

I have already verified (several times) that the process described in the quick startup guide was followed and made sure that the device CC2340R5 support is installed – both CSS and UniFlash do recognize and list the device.

Erasing the flash using UniFlash is straightforward process – and it is not a new tool to me.  UniFlash does see the probe, it lists and selects the device (CC2340R5) but is not able to communicate with it and retrieve device information. Bot CCS and UniFlash give the same error.

 [ERROR] Cortex_M0P: 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 9.9.0.00040)

  • cc23xx_device_support_0.01.10.284_win64
  • UniFlash Version: 8.1.0.4135
    • Erasing the flash [FAILED]
    • loading Out_Of_the_Box_image_LP_EM_CC2340R5 (simple_serial_socket_server_LP_EM_CC2340R5.hex) [FAILED]
  • Code Composer Studio
    • Version: 12.1.0.00007
    • OS: Windows 10, v.10.0, x86_64 / win32
    • Java vendor: Eclipse Adoptium
    • Java runtime version: 11.0.13+8
    • Java version: 11.0.13
  • Hi Simbasoft,

    Did you follow the instructions for flashing a blank device from the Quick Start Guide?  For CCS:

    The procedure detailed below should be followed if flashing a blank device or a device that has been mass-erased. If the procedure is performed on a non-blank device, the procedure will not have any negative effect. The following steps may be used to resolve the “Error -1274 @ 0x0” flashing error.

    1. In CCS, open the Target Configuration view by clicking on View → Target Configurations.

    2. In the Target Configuration window, click and expand the “Projects” folder.

    3. Within the “Projects” folder, click and expand your project.

    4. Click and expand the targetConfigs folder.

    5. At this stage, you should see the CC2340R5.ccxml file. Right click and click on “Launch Selected Configuration”

    6. After a few seconds, the CCS view should switch to Debug view and the target configuration should launch. The target configuration has finished launching if the “Texas Instruments XDS110 USB Debug Probe/CORTEX_M0P” core is visible in the Debug window.

    7. Click on Scripts → CC23xx → ProgramDefaultCcfg.

    8. Afterwards, you should see a success message in the Console. The device may now be flashed.

    And with Uniflash (versions can be updated for 8.1):

    Due to the CC23xx being in a pre-release state, the flashing procedure for a blank device is different than the procedure for flashing a non-blank device.

    A specific procedure may be required to flash the device for the first time. If needed UniFlash will prompt you to follow this procedure.

    The procedure detailed below should be followed if flashing a blank device or a device that has been mass-erased. If the procedure is performed on a non-blank device, the procedure will not have any negative effect. The following steps may be used to resolve the “Error -1274 @ 0x0” flashing error.

    1. Open Uniflash

    2. Open a CC2340R5 configuration.

    3. Click on Standalone Command line

    4. Click on Generate Package

    5. After package is generated, save the zip file to C:\ti\uniflash_7.1.0.

    6. Extract the contents of the uniflash_windows.zip archive into C:\ti\uniflash_7.1.0\uniflash_windows

    7. Open a Windows Command Prompt

    8. Navigate to the C:\ti\uniflash_7.1.0 directory in the command prompt by running the following command cd C:\ti\uniflash_7.1.0

    9. Run the following command: dslite.bat --mode cc23xx-prog-default-ccfg -c C:\ti\uniflash_7.1.0\uniflash_windows\user_files\configs\cc2340r5.ccxml

    10. Afterwards, you should see a success message in the Console. The device may now be flashed.

    Regards,
    Ryan

  • Hello Ryan,

    Thank you for the quick response.

    YES, I did.

    And, I would like to emphasize that first thing done was to define the following two symbols :

    • COM_TI_SIMPLELINK_CC23XX_SDK_INSTALL_DIR
    • FREERTOS_INSTALL_DIR

    And, I don't know if the resulted binaries would run on the CC2340R5.

    Some include paths still referring to cc26xx (it might be OK, I'm just skeptical)

    Also, first note that to get to this point (i.e., to setup the development environment and to compile the example code), we  had to address relatively large number of issues that came with the material and the tools we downloaded from TI website:

    • The “C:\it\ccs1210\ccs\utils\sysconfig_1.14.0” installed with CSS 12.1 did not work
      • Replaced the folder “C:\it\ccs1210\ccs\utils\sysconfig_1.14.0” with “C:\it\sysconfig_1.14.0
    • missing links to source code (used the one in the simple_peripheral_LP_EM_CC2340R5_freertos_ticlang)

    • incorrect missing include paths, libraries, and symbol configurations (had to replace ../m0/.. with ../m0p/..

    • errors in the “simple_serial_socket_server.syscfg” file:
      • in the comments the SDK version did not match to the one installed (on line #4, in the comments, replaced “6.20.00.01_eng” with “6.30.00.20_eng”)
      • NVS (None-volatile Storage Driver) was not selected - had to select it. The configuration values used (shown in the image below) are copied from the project simple_peripheral_LP_EM_CC2340R5_freertos_ticlang
      • FreeRTOS was, and still, not selected (it compiles without it, should it be selected and configured in the syscfg file?)

    All that just to make it compile - will it run?

    Please see below for issued related to CCS and UniFlash

    ======================================================================================

    *** Code Composer Studio

    ======================================================================================

    -- step 1: launch selected configuration

    -- step 2: run script ProgramDefaultCcgf

    -- step 3: terminate

    -- step 4: launch a debug session

    -- step 5: Somehow MAGICALLY started doing something. It used to give the same error as you UniFlash did below. Not sure if it has anything to do with updating CCS, and I also deleted all the debug configurations before repeating the same.

    ======================================================================================

    *** UniFlash

    ======================================================================================

    I saw the "success" message. Try running the bat file again it just does nothing.

    loading Out_Of_the_Box_image_LP_EM_CC2340R5 (simple_serial_socket_server_LP_EM_CC2340R5.hex) [FAILED]

    See below the screen shot of the error message I get when attempt loading the out the box image, or perform flash erase or read device info operation.

  • Most of the issues you mentioned about your project did not exist on my setup after following the instructions from the Quick Start Guide (cc26xx paths are okay).  Did you make sure to remove C:/ti/ccs1210 from the CCS Proferences -> Code Composer Studio -> Products followed by restarting CCS and importing a project?  Also, have you updated the ccs_base of C:\ti\uniflash_8.1.0\uniflash_windows and C:\ti\ccs1210\ccs?  I will ask additional experts to review and provide additional comments if possible.

    Regards,
    Ryan

  • Thanks again for the quick response, Ryan.

    I don't know your setup - and not sure how that is relevant to this discussion.

    The setup I put together was based on the examples and the tools TI provided on the product preview page. I understand it a from a product preview page, but whatever I manged to put together is not working - and I do not want make any further comments on this.

  • I'm sorry to hear that you are still struggling to connect to your CC2340 device. A new update to the service pack was loaded to CC2340RX-PREVIEW since your last message, can you please install it and verify whether it addresses your issue?

    How did you load the image in Uniflash? Did you check the binary file and/or specify the load address to be 0x0/0x00000000 (see the following screenshot)?

    Some errors have been observed when specify the loading address to be 0x0. However, everything worked as expected if Binary is not checked.

     

    Regards,
    Ryan

  • We are NOT struggling, Ryan!

    Considering this is a not yet a released product, we are investing reasonable effort to work with the TI team to get it working. 

    The revised device support patch does NOT yet work

    ===============================================================================

    On Code Composer Studio (CCS v12.1.0):

    ==================================================================================

    1. CCS appears to be loading the executable and starts running it immediately
    2. It pears that the break points are NOT working - or the debug configuration of the example project is wrong
      1. Normally when in debug, upon reset the program execution stops at the symbol defined
      2. by default it is the "main" (if it different, then what is it)
    3. on the Scripts  -> CC23xx ->
      1. LoadRomSymbols
      2. PragramDefaultCcfg [MISSING]

    ===============================================================================

    On UniFlash (v8.1.1):

    ===============================================================================

    Loading *.hex/*.out file [FAILED]

    Settings & Utilities [DISAPPEARED]

    Standalone Command Line does [NOT WORK]

  • Hi,

    Thank you for evaluating the new CC2340R5.

    Q1: The behavior you are describing is known on CC2340R5 pre-silicon. Please refer to the debugging guide (included in the user's guide) for more details.

    Q2: Similarly, the functioning (and the number) of breakpoints is slightly different on the CC2340R5 pre-silicon. Please refer to the debugging guide.

    Q3: This script is actually not missing :) The tools team has worked to automate the execution of this script. In other words, the script you run when flashing the device flashes the CCFG for you when required.

    Here is a gif showing the work:

    I hope this will help,

    Best regards,

  • Hi,

    We have managed to reproduce the issue you have reported with Uniflash.

    This issue is likely to be caused by a missing XML file. The file to use is here: /cfs-file/__key/communityserver-discussions-components-files/538/CC23xx_5F00_FlashProperties.xml

    Please follow these steps:

    1> Close Uniflash
    2> Copy the provided xml file into Uniflash installation: uniflash_8.1.0\deskdb\content\TICloudAgent\win\ccs_base\DebugServer\propertyDB
    3> Open Uniflash and Re-sync the database (click "Settings" then scroll to the bottom of the window and eventually click the "Re-sync Database" button).

    Best regards,

  • Thank you!

    Adding the XML file (which was indeed missing) fixed the issue with the UniFlash (v8.1.1)

    We still need to get the CCS working properly - currently it is NOT:

    1. When starting a debug session, and upon reset the execution of the code must stop at the specified symbol (see the GIF you posted above)
    2. Break points don't work - not even a single one. And, if there are limitations, would you please describe and post them here.

    As you now might be convinced, by reading the users' manual on-and-on-and-on-and-on, this issue would have never been solved. Users' manuals, most of the time, are out-dated (behind). This is understandable, and it is normal for products when still in development stage. Please do NOT redirect me to users' manual, rather be specific, and if you don't mind, copy and paste instructions here so that we stay in sync.

    We will resume working on this project whenever we have a reasonably stable version of the CCS with CC2340R5 device support.

    Regards.

  • Hi,

    Thank you for confirming you get Uniflash to work.

    With regards to CCS, the details are in the Debugging Guide. As the device is not yet publicly available, I cannot share the resources on a public forum. So I am going to kindly ask you to open <SDK>\docs\ble5stack\ble_user_guide\debugging-guide.html

    Then you read under:

    • Getting started with CCS debug interface
    • Stop the debugger at main() entry
    • Breakpoints and especially the note at the end of the section

    This should answer your questions.

    I hope this will help,

    Best regards,

  • Hi,

    I am closing this thread as I'll be out of the office until mid-January.

    If more support is required, please open a new thread.

    Best regards,