2025-12-17 12:34 AM
Hi,
how do I start the USB DFU Bootloader with a STM32C071 Nucleo? I tried it while putting Boot0 to high and pressing reset or do a power cycle but the STM32 DFU does not show up in the device manager. I connected USB to the NUCLEO extra USB port of the C071. I tried with another board (F2 MCU) where it worked well to prove that the drivers are installed.
BR
Matthias
2025-12-17 7:24 AM
These are the ways to enter the bootloader on startup:
Empty flash check requires a power reset.
You will need to have both USB cables plugged in to ensure the chip isn't held in reset by the st-link and the USB DFU cable needs to be a data cable, not a power-only cable.
2025-12-18 12:59 AM
I'm using a data USB cable because Im using the C0 USB CDC port already. I have tried with and without connected stlink. In my understanding I just have to press the Boot0 button and do a power cycle? Or what I'm mising?
2025-12-18 6:04 AM
> In my understanding I just have to press the Boot0 button and do a power cycle? Or what I'm mising?
Well, let's look at the default values for the option bytes, which is found in the reference manual.
Okay, so we know NBOOT0_SEL = NBOOT0 = NBOOT1 = 1 (ignore the small typo) and BOOT_LOCK = 0.
Let's now look at AN2606 table to see where that puts us.
Since NBOOT0_SEL = 1, the state of the BOOT0 pin doesn't matter. Here are the ways to get into the bootloader:
The only way possible with default option bytes is if the main flash is empty. So do that using STM32CubeProgrammer, or change the option bytes so BOOT0 high can enter the bootloader.