From df8a889bd0f7f262640b25761be55412834bdaf2 Mon Sep 17 00:00:00 2001 From: Serg Podtynnyi Date: Fri, 16 May 2025 19:35:05 +0700 Subject: [PATCH] arch/arm/rp23xx: resets: do not reset USBCTL, SYSCFG Do not reset USB, syscfg, as this disturbs USB-to-SWD on core 1 From upstream pico-sdk runtime init Signed-off-by: Serg Podtynnyi --- arch/arm/src/rp23xx/rp23xx_clock.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/src/rp23xx/rp23xx_clock.c b/arch/arm/src/rp23xx/rp23xx_clock.c index 6bc899e4f75..c35ece21ba6 100644 --- a/arch/arm/src/rp23xx/rp23xx_clock.c +++ b/arch/arm/src/rp23xx/rp23xx_clock.c @@ -415,11 +415,14 @@ void rp23xx_clockconfig(void) * from flash * - and the PLLs, as this is fatal if clock muxing has not been reset on * this boot + * - and USB, syscfg, as this disturbs USB-to-SWD on core 1 */ setbits_reg32(RP23XX_RESETS_RESET_MASK & ~(RP23XX_RESETS_RESET_IO_QSPI | RP23XX_RESETS_RESET_PADS_QSPI | RP23XX_RESETS_RESET_PLL_USB | + RP23XX_RESETS_RESET_USBCTRL | + RP23XX_RESETS_RESET_SYSCFG | RP23XX_RESETS_RESET_JTAG | RP23XX_RESETS_RESET_PLL_SYS), RP23XX_RESETS_RESET);