Skip to content

Alternative firmware update of a STM32 using USB mass storage device class #13731

Discussion options

You must be logged in to vote

@saraverbeecke What Dan said above is probably what you want.

For completeness though, the MicroPython project also provides a custom bootloader for stm32 that we need for the pyboard-d series, but you can also install it on most stm32 boards (including the pyboard v1.x).

It supports installing firmware from a file on the filesystem. So the workflow is:

  1. Copy the firmware to the device filesystem (e.g. via USB MSC, mpremote, your own python code)
  2. Trigger a reboot into mboot which will install the firmware for you.

I've seen people use this for OTA updates. It supports compressed firmware images and image signing. See https://github.com/micropython/micropython/tree/master/ports/stm32/mboot

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@saraverbeecke
Comment options

@andrewleech
Comment options

andrewleech May 31, 2024
Collaborator Sponsor

@saraverbeecke
Comment options

@andrewleech
Comment options

andrewleech May 31, 2024
Collaborator Sponsor

@saraverbeecke
Comment options

Answer selected by saraverbeecke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants