Setup MicroPython on STM32F407 Discovery Board

for Windows machine

circuit4u
circuit4u
Jan 18, 2017 · 2 min read

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.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store