cancel
Showing results for 
Search instead for 
Did you mean: 

Guide on USB Device DFU for STM32F412ZE

KGayo
Associate

Hi,

I have a working code using STM32F412ZE and I would need to be able to reflash the MCU via USB. One of the things I had come up with is using the DFU. I am also working on a custom board.

I had setup the USB pins using the STM32CubeMX. I had also installed the DFuse Software and the Boot0 of my custom board has a switch for toggling between the VDD and GND. When I attached the board to the PC and switched the Boot0 to VDD, the DFuse cannot detect the device.

Do I need to make any code changes prior to attempting to reflash the firmware?

Thanks,

Kat

1 REPLY 1
Lubos KOUDELKA
ST Employee

Hi Kat,

Have I understood it correctly, that you want to enter system bootloader as it's described in AN2606?

BOOT pin is sampled during startup, so need to set right level before power up, or reset after setting proper level to start system bootloader.

Best regards,

Lubos