Tutorial build micropython for WEACT_F411_BLACKPILL
2025-06-07

- git clone https://github.com/micropython/micropython.git
- cd micropython
- docker run -it -v .:/micropython --name micropython ubuntu
- apt-get update
- apt-get install -y gcc g++ make automake python3 git gcc-arm-none-eabi
- cd /micropython/mpy-cross
- make

- cd ../ports/stm32
- make BOARD=WEACT_F411_BLACKPILL submodules
- make BOARD=WEACT_F411_BLACKPILL

- exit docker
- in mac: brew install dfu-uril
- cd to micropython/ports/stm32
- st-info --probe
- st-flash erase
- st-flash --format ihex write build-WEACT_F411_BLACKPILL/firmware.hex
using st-flash is better then dfu-util because we don't need to put the board into dfu mode

- pip install mpremote
- mpremote
- mremote fs ls
- ctrl+] to exit