mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 11:10:14 +01:00
Updated Compiling esp32 port with docker (markdown)
@@ -5,13 +5,13 @@ This script can be used as a wrapper to automate the process of running the comp
|
||||
If you're using Windows/WSL2 and want to flash the board directly the [WSL USB Manager](https://gitlab.com/alelec/wsl-usb-gui#wsl-usb-manager) tool can simplify connecting your usb devices through to WSL.
|
||||
|
||||
``` bash
|
||||
cat << "EOF" > ~/.local/bin
|
||||
cat << "EOF" > ~/.local/bin/esp-compile
|
||||
#!/bin/bash
|
||||
SCRIPTPATH=$(readlink --canonicalize-existing "${BASH_SOURCE[0]}")
|
||||
|
||||
# Wrapper script to build / flash esp32 boards inside the official ESP IDF docker container
|
||||
# Usage: esp-compile <IDF_VER> <BOARD> <port to deploy>
|
||||
# Examples
|
||||
# esp-compile <IDF_VER> <BOARD> <port to deploy>
|
||||
# esp-compile v5.0.4 ESP32_GENERIC /dev/ttyACM0
|
||||
# esp-compile v5.2.2 ESP32_GENERIC
|
||||
# esp-compile v5.2.2 ESP32_GENERIC_C3 /dev/ttyACM0
|
||||
@@ -74,5 +74,5 @@ fi # end of build
|
||||
fi # end of user
|
||||
fi # end of container
|
||||
EOF
|
||||
chmod +x ~/.local/bin
|
||||
chmod +x ~/.local/bin/esp-compile
|
||||
```
|
||||
Reference in New Issue
Block a user