Setup MicroPython on STM32F407 Discovery Board

for Windows machine

Step 1. Get Software Ready

  • download latest MicroPython firmware for STM32F407 discovery board
  • download and install STM32 DFU firmware upgrade tool (need log in/register a free account)

Step 2. Get Hardware Ready

  • short-out “BOOT0” and “VDD” with a jumper
  • connect pins “5V” and “PA9”
  • plug micro-USB cable into CN5 (bottom side of the board) and the other side of the USB cable into the computer

Step 3. Download Firmware

  • first time Windows needs to find and install DFU driver from ST Microelectronics (follow this guide, page 7 and 8)

In case Windows can’t automatically update the DFU driver, it is located on your machine at

C:\Program Files (x86)\STMicroelectronics\Software\DfuSe v3.0.5\Bin\Driver
  • choose the latest MicroPython firmware and upgrade (follow this guide, page 12 and 13)

Step 4. Use MicroPython

  • Remove “BOOT0” and “VDD” jumper
  • Unplug and plug in USB cable again
  • Wait for “ PYBFLASH” drive to appear
  • Install virtual COM port (follow this guide, page 3, 4, and 5)

That’s it. Now open a terminal window (this guide, page 10 and 11), you are ready to experience MicroPython on STM32F407 Discovery board yourself.