mirror of
https://github.com/randybb/esphome-configs.git
synced 2026-12-06 09:06:52 +01:00
hosted/xiao-c6-spi: esp-hosted co-processor firmware for the mcu-its-g5 XIAO ESP32-C6
This commit is contained in:
1 parent
523957d30d
commit
177bdcb3de
12 files changed
+306
-1
No files matched your search
Executable
+12
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
# Build the co-processor firmware with the ESP-IDF that ESPHome already downloaded, and flash it
|
||||
# when a port is given: ./build.sh [/dev/serial/by-id/usb-Espressif_...]
|
||||
set -e
|
||||
cd "$(dirname "$0")"
|
||||
IDF=$(ls -d "$HOME"/.cache/esphome/idf/frameworks/5.5.* | sort -V | tail -1)
|
||||
export IDF_PATH="$IDF" IDF_TOOLS_PATH="$HOME/.cache/esphome/idf"
|
||||
export IDF_PYTHON_ENV_PATH="$HOME/.cache/esphome/idf/penvs/$(basename "$IDF")"
|
||||
. "$IDF_PATH/export.sh" >/dev/null
|
||||
[ -f sdkconfig ] || idf.py set-target esp32c6
|
||||
idf.py build
|
||||
[ -z "$1" ] || idf.py -p "$1" flash
|
||||
Reference in new issue
Block a user