WB55 Nucleo: ST-Link causes MCU to reset randomly
I'm using an STM32WB55 Nucleo board. If I power and manage it via the built-in ST-Link USB interface, the result is very flaky. The CubeIDE debugger randomly loses its connection and, far worse, the MCU will randomly reset itself. When this reset happens, the virtual COM port (over USB) also goes off-line and generally won't recover unless I power-cycle the board.
I'm 100% certain that this is due to the ST-Link chip because the problem doesn't happen if I bypass it. If I do the following:
- Power-off the board
- Remove all the jumpers from JP5 (to disconnect ST-Link from the MCU)
- Move the power jumper JP1 from USB-STL to USB-MCU
- Power-on via the USB_User port instead of the USB_ST-Link port
then everything works great.
Of course, it's much less convenient this way. I need an external TTL serial-USB interface (attached to GPIOs PB6 and PB7) for my UART console to work and I need to flash my images via CubeProgrammer with a jumper installed across VDD and BOOT0, but I don't encounter all of the random resets I have been plagued with for the past two weeks.
I am using the latest ST-Link firmware (2J33M25)
If ST has a proper fix (maybe new ST-Link firmware?) I'd love to see it. My workaround will allow me to continue working, but it's not convenient.