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.

CC2340R5: Cannot not load firmware CCS 20.0.0 XDS110

Part Number: CC2340R5

Tool/software:

Hi - I am well along in developing for the CC2340R5 and last week upgraded CCS to version 20.0.0 which of course is all new. I am debugging with two dev boards on one machine and have been running for a very long time without problems. After installing the new IDE, both of my boards went through a firmware upgrade and I think initially both worked. Within a day, I could no longer upload my code to one of the boards. The message is:

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.3264)

My other board works fine. I decided to try a new debugger board to replace the one that is not working. The new board upgraded the debugger firmware on the first run, and then gave me the same error. 

Right now I just have one working board and I've tried a few things I read about but nothing is changing. It is the same CSS and machine so it seems hard to blame the project itself. Some advice is greatly appreciated. 

The debug output also includes the following which i am not sure can be done in the new CCS. This approach and the "authentication process" mentioned above are two things I have no info on. 

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.

  • Hi,

    I will install CCS 20 to see if I can reproduce the issue. A few of my thoughts below.

    Which SDK are you using?

    Can you open a new workspace with CCS 20, then import a default example from the SDK to build/debug? (This is a sanity test).

    You mentioned "It is the same CSS and machine so it seems hard to blame the project itself." -- and I agree the project itself is likely ok, since you only see the issue when trying CCS 20. Can you explain the process of migrating your project to CCS 20? Generally, CCS prompts you to open a workspace. Did you simply select your existing workspace (used with your previous CCS version)? Or did you open a new workspace, then import the project from your previous workspace?

    What was the previous version of CCS you used? Can you see if that will restore expected operation?

    Thanks,
    Toby