SWCU193A April 2023 – August 2024 CC2340R2 , CC2340R5 , CC2340R5-Q1
When the DBGSS.DBGCTL[5] SWDCEN bit is set, DIOs corresponding to the SWDIO and SWCLK pads are connected to the IceMelter wakeup circuit. SWDCEN is set to enable a debug connection. See Chapter 5 for more information on the Debug Subsystem.
When using SWD debug, configure the IOC. IOCn[2:0] PORTCFG bit field of the DIOs corresponding to SWDIO and SWCLK to a value 0x0 (GPIO) before setting the DBGSS.DBGCTL[5] SWDCEN bit and do not write to GPIO.DOUTn and GPIO.DOEn registers. This prevents data from IOC interfering with IceMelter operation and SWDIO and SWCLK data from interfering with peripherals.
When DBGSS.DBGCTL[5] SWDCEN is cleared, DIOs corresponding to pads SWDIO and SWCLK are connected to IOC (instead of Icemelter). Always clear SWDCEN before using the DIOs corresponding to SWDIO and SWCLK for non-debug purposes, to avoid possible timing violations within IceMelter.