Tutorial build micropython for WEACT_F411_BLACKPILL
  1. git clone https://github.com/micropython/micropython.git
  2. cd micropython
  3. docker run -it -v .:/micropython --name micropython ubuntu
  4. apt-get update
  5. apt-get install -y gcc g++ make automake python3 git gcc-arm-none-eabi
  6. cd /micropython/mpy-cross
  7. make
  1. cd ../ports/stm32
  2. make BOARD=WEACT_F411_BLACKPILL submodules
  3. make BOARD=WEACT_F411_BLACKPILL
  1. exit docker
  2. in mac: brew install dfu-uril
  3. cd to micropython/ports/stm32
  4. st-info --probe
  5. st-flash erase
  6. 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

  1. pip install mpremote
  2. mpremote
  3. mremote fs ls
  4. ctrl+] to exit