cancel
Showing results for 
Search instead for 
Did you mean: 

STM32G474 Crashes Laptop when unplugging USB

MMora.10
Associate II

Currently when I unplug my Nucleo Board from my computer, my computer blue screens with a "SYSTEM_THREAD_EXCEPTION_NOT_HANDLED" error. Any ideas on what would cause this?

It happens every time I unplug the board, even if all I do is plug it in, then unplug it right away.

11 REPLIES 11

Hi Pavel,

When I tried this, windows crashed on the spot, with the same error as I see when physically unplugging the hardware.

MMora.10
Associate II

Thanks to all that replied, I have found an answer.

The issue was that company policy around USB devices would not agree with the nucleo board being mounted as a USB device. We do not use the USB storage on the nucleo board, so within the STM32Cube Programmer application, there is an option to do a firmware upgrade for the ST-LINK debugger. When doing the upgrade, you can change its type to remove the Mass Storage option.

0693W00000HnvlFQAR.pngThis fixed the issue!