Skip to content

Instantly share code, notes, and snippets.

@brandonros
Last active August 28, 2024 17:30
Show Gist options
  • Save brandonros/cbefabcc9c99e6f1c868f65b2cfc9129 to your computer and use it in GitHub Desktop.
Save brandonros/cbefabcc9c99e6f1c868f65b2cfc9129 to your computer and use it in GitHub Desktop.
STM32F407G-DISC1/STM32F4DISCOVERY DFU mode
  1. Take every jumper off except JP1. Take both jumpers off CN3. Take the jumpers JP2 and JP3 off from the bottom of the board.
  2. Put a jumper between BOOT0 and VDD.
  3. Connect with a wire PA9 to 5V.
  4. Connect the device using the micro USB port, not the mini-USB port.
  5. sudo dfu-util -d 0483:df11 -a 0 -s 0x08000000 -D build/Example_Project.bin
  6. Unplug the device.
  7. Disconnect the BOOT0 jumper.
  8. Plug the device in.
@lesterelectrical
Copy link

Hi, I am trying your steps:

I have taken all jumps off except JP1.

I have 5V coming in from a power supply (red and black cables).

I am connecting the 5V to PA9 (red jumper)

I am connecting BOOT0 to VDD (brown jumper). Verified VDD has 3.3 volts.

LD7 is on - USB LD7: green LED indicates when VBUS is present on CN5 and is connected to PA9
of the STM32F407VGT6.

1

Here is the bottom showing no jumpers.
2

Not sure what I am missing? Or could check?

Thanks for any suggestions.

Brent

@dmitriirylko
Copy link

I managed to load firmware with DFU to my Discovery board from STM32CubeProgrammer on my Linux machine after following commands:
sudo apt-get install libusb-1.0-0
cd /usr/local/STMicroelectronics/STM32Cube/STM32CubeProgrammer/Drivers/rules (I guess, path can be different)
sudo cp . /etc/udev/rules.d/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment