Lesson learned :(

Discussion and questions about boards that can run MicroPython but don't have a dedicated forum.
Target audience: Everyone interested in running MicroPython on other hardware.
Post Reply
Posts: 791
Joined: Mon Nov 20, 2017 10:18 am

Lesson learned :(

Post by OutoftheBOTS_ » Thu Apr 30, 2020 5:43 am

It seems if you want to flash firmware to a STM32F4 via a DFU file using Dfuse no matter how many times you try to put the MCU in boot loader mode by connecting boot0 to GND and even if you open a brand new dev board it never works. only after several hours trying everything you can think of will you discover that to put the STMF4 into boot loader mode you have to in fact connect boot0 to 3.3v :(

User avatar
Posts: 216
Joined: Wed Jan 01, 2020 10:12 pm
Location: Santa Barbara, CA

Re: Lesson learned :(

Post by tve » Thu Apr 30, 2020 6:21 am

Yeah... I don't know how many times I've cursed the ESP boot & flashing stuff, specially in the esp8266 days. Until I had to deal with the STM32 booting/flashing mess...

User avatar
Posts: 4791
Joined: Fri Jul 18, 2014 8:01 am
Location: UK

One solution

Post by pythoncoder » Thu Apr 30, 2020 7:28 am

Not the only pitfall. You can (temporarily) cattle a Pyboard by flashing the wrong firmware. I almost always build my own so I use a script which detects the type of board, builds the correct firmware, puts the board into DFU mode and flashes it. Completely idiot (me) proof and saves fiddling around with jumpers. I have variants of the script for projects with special requirements.

See [ull=https://github.com/peterhinch/micropyth ... /fastbuild[/url].
Peter Hinch

Post Reply