2025-11-06 2:58 AM - last edited on 2025-11-06 3:08 AM by Andrew Neil
I flashed firmware that sets. Now STM32Cubeprogrammer refuses to connect to the STLINK portion.
How to recover from this / debrick the boards ? I tried pulling up PA14 / boot0 pin with a pull-up to CN7 pin 7, but no such luck...
2025-11-06 3:07 AM
Having the ST-Link connect under hardware reset should do it.
2025-11-06 3:48 AM
Nope...
12:42:17 : UR connection mode is defined with the HWrst reset mode
12:42:22 : UR connection mode is defined with the HWrst reset mode
12:42:22 : ST-LINK error (DEV_USB_COMM_ERR)
12:42:22 : Error: Problem occured while trying to connect
Serial console through STLINK _is_ working, and shows my startup message, so the USB connection is good.
2025-11-06 6:05 AM
Hold reset, click connect, then release reset. You may have to play around a bit to get the timing exactly right. STM32CubeProgrammer needs to connect after NRST is high but before PA14 is reassigned. How quick this happens depends on your program.
2025-11-06 6:08 AM
@TDK wrote:STM32CubeProgrammer needs to connect after NRST is high but before PA14 is reassigned. How quick this happens depends on your program.
@pdornier1 so it's a good idea to have a delay in there - to give time for a debugger or programmer to connect...