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: Unable to access device

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

Tool/software:

Hi,

I'm working on flash programming via SWD for the CC2340R5. I've successfully flashed a simple LED blink application multiple times using my custom host device. However, I accidentally wrote invalid data to the CCFG section—specifically, I set all bytes to 0x00, except for the CRC32, which was correctly calculated and written.

The LED application still runs and blinks as expected, but now I'm unable to access the device using my host or any other tool.

Issue:

  • host device (Debug access fails): The Power-up Debug Port request is not acknowledged.

  • UniFlash shows this error:

    Error connecting to the target: (Error -1141 @ 0x0) Device is not responding to the request. 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 20.0.0.3298)

  • CCS shows a similar error:

    CS_DAP_0: Error connecting to the target: (Error -1141 @ 0x0) Device is not responding to the request. 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 20.0.0.3344)

Question:

How can I regain access to the device (via UniFlash, CCS, or another method) and recover it.

Any suggestions would be greatly appreciated.

Thanks!

 

  • Hi surender,

    When Ccfg.bootCfg.crc32 is valid then this "validates" the existing CCFG values.  Since all Ccfg.permissions are set to 0x00 (CCFG_PERMISSION_FORBID) as well as debugCfg.authorization being 0x00 (CCFG_DBGAUTH_DBGFORBID) then the device has effectively been locked from further debug or programming access from either the SWD or ROM bootloader.  This state is intentionally allowed on the CC2340R5 for field security purposes.

    Regards,
    Ryan

  • Hello Ryan Brown1,
    Thank you for your response. We have acquired a new CC2340R5 Board and attempted to establish communication with our Host device using SWD (SACI communication).
    We entered SACI mode, which was confirmed by sending the (SACI_CMD_MISC_NO_OPERATION) command.
    The operational commands are as follows:
    1. SACI_CMD_MISC_NO_OPERATION
    2. SACI_CMD_BLDR_APP_EXIT_SACI_RUN

    However, none of the flash operation commands are permitted:
    For instance, when the (SACI_CMD_FLASH_ERASE_CHIP) command is issued, the board responds with 0x86 (NOT ALLOWED).

    what are the default values of CCFG, FLASH and FCFG when Board comes from TI manufacturing?

    Could you please advise on how to resolve this issue? Thank you.


    is there any setting of register/bit at initial to access the flash memory?


  • All device permissions are enabled in the FCFG, and the CCFG and Flash are blank on an unprogrammed device.  Have you used a similar SWD sequence on the CC2340R5 before?  Are you able to access and program this device using CCS or Uniflash? https://e2e.ti.com/f/1/t/1430964 

    Regards,
    Ryan