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: Bluetooth forum

Part Number: CC2340R5
Other Parts Discussed in Thread: UNIFLASH

Tool/software:

I have set the following CCFG settings, but I cannot access the debug.

 CCFG.permissions.allowDebugPort=CCFG_PERMISSION_ALLOW

 CCFG.debugCfg.authorization=CCFG_DBGAUTH_DBGOPEN (no debug authentication required)

Please let me know if there are any other necessary settings to connect to SWD.

I am concerned about the following description in the CC23xx SimpleLinkTm Wireless MCU Technical Reference Manual (swcu193.pdf):

8.1.5 Debug and Active SWD Connections at Boot

The SWD debug port is activated whenever a long sequence of bits is clocked into the SWDIO pin by edges on the SWDCK pin.

→What exactly is the long sequence?  Currently, at the beginning of the SWD connection, I toggle SWCLK 50 times with SWDIO=1.

Best regards,

  • Hello,

    I hope you are doing well! Is this a custom board, or a LauchPad? Are you using CCS? Could you provide the details of your "ti_devices_config.c" file?

    Thanks,
    Alex F

  • Dear Alex,

    Thank you for your reply.

    We are a debug tool vendor, and the board with the debug access issue belongs to an end user. Therefore, we do not have any additional information beyond what I have already shared. I apologize for this. However, it is likely a custom board. The system is functioning correctly, except for the inability to access debug via SWD.

    If there are any additional settings related to debug access in the config file that we should be aware of, could you please let us know?

    Thank you for your assistance.

    Best regards,

  • Hello,

    To give a little bit of background on the "ti_devices_config.c", and information useful in it:

    We can find the state of the device based off of line 41-48, for example if the device has debug allowed, among many other settings. 

    We also have the debug password (use with UniFlash) on line 78/79 which is important if we want to access a debug locked device:

    Thanks,
    Alex F