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
OutoftheBOTS_
Posts: 783
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
tve
Posts: 210
Joined: Wed Jan 01, 2020 10:12 pm
Location: Santa Barbara, CA
Contact:

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
pythoncoder
Posts: 4264
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

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