Sprzet: ESP32-S2-MINI, CC1101 SMA, LM317T i zasilanie z zapalniczki
check / check-without-hardware (push) Canceled after 0s
check / check-without-hardware (push) Canceled after 0s
This commit is contained in:
1 parent
40c152afca
commit
d53299ba11
14 files changed
+218
-147
No files matched your search
+1
-1
@@ -26,7 +26,7 @@ run() {
|
||||
|
||||
run python-self-test python3 tools/tpms_frame.py --self-test
|
||||
run native-tests "$PIO_BIN" test -e native
|
||||
run esp32-build "$PIO_BIN" run -e esp32c3supermini
|
||||
run esp32-build "$PIO_BIN" run -e esp32s2mini
|
||||
run cppcheck "$PIO_BIN" check -e native \
|
||||
--flags='--enable=warning,performance,portability --inline-suppr' \
|
||||
--fail-on-defect=low
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
# Wgrywa pelny obraz release; PORT=np. /dev/ttyACM0. Kasuje flash ESP32-C3.
|
||||
# Wgrywa pelny obraz release; PORT=np. /dev/ttyACM0. Kasuje flash ESP32-S2.
|
||||
set -euo pipefail
|
||||
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
PORT="${PORT:?Ustaw PORT=/dev/ttyACMX lub /dev/ttyUSBX}"
|
||||
ESPTOOL="${ESPTOOL:-${PLATFORMIO_CORE_DIR:-$HOME/.platformio}/packages/tool-esptool/esptool}"
|
||||
IMAGE="$ROOT/artifacts/release/firmware-full.bin"
|
||||
[ -f "$IMAGE" ] || { echo "Brak $IMAGE; uruchom tools/package_release.sh"; exit 1; }
|
||||
"$ESPTOOL" --chip esp32c3 --port "$PORT" --baud 460800 write-flash 0x0 "$IMAGE"
|
||||
"$ESPTOOL" --chip esp32s2 --port "$PORT" --baud 460800 write-flash 0x0 "$IMAGE"
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
# Buduje obrazy ESP32-C3 i pelny obraz 4 MB oraz manifest SHA-256.
|
||||
# Buduje obrazy ESP32-S2 i pelny obraz 4 MB oraz manifest SHA-256.
|
||||
set -euo pipefail
|
||||
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
cd "$ROOT"
|
||||
@@ -7,18 +7,18 @@ PIO_BIN="${PIO:-$ROOT/.venv/bin/pio}"
|
||||
if [ ! -x "$PIO_BIN" ]; then PIO_BIN="${PIO:-pio}"; fi
|
||||
export SOURCE_DATE_EPOCH="${SOURCE_DATE_EPOCH:-1761600000}"
|
||||
OUT="$ROOT/artifacts/release"
|
||||
BUILD="$ROOT/.pio/build/esp32c3supermini"
|
||||
BUILD="$ROOT/.pio/build/esp32s2mini"
|
||||
BOOT_APP0="${PLATFORMIO_CORE_DIR:-$HOME/.platformio}/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin"
|
||||
ESPTOOL="${ESPTOOL:-${PLATFORMIO_CORE_DIR:-$HOME/.platformio}/packages/tool-esptool/esptool}"
|
||||
|
||||
"$PIO_BIN" run -e esp32c3supermini
|
||||
"$PIO_BIN" run -e esp32s2mini
|
||||
mkdir -p "$OUT"
|
||||
cp "$BUILD/bootloader.bin" "$BUILD/partitions.bin" "$BUILD/firmware.bin" \
|
||||
"$BUILD/firmware.elf" "$OUT/"
|
||||
cp "$BOOT_APP0" "$OUT/boot_app0.bin"
|
||||
"$ESPTOOL" --chip esp32c3 merge-bin -o "$OUT/firmware-full.bin" \
|
||||
"$ESPTOOL" --chip esp32s2 merge-bin -o "$OUT/firmware-full.bin" \
|
||||
--flash-mode dio --flash-freq 40m --flash-size 4MB \
|
||||
0x0 "$OUT/bootloader.bin" 0x8000 "$OUT/partitions.bin" \
|
||||
0x1000 "$OUT/bootloader.bin" 0x8000 "$OUT/partitions.bin" \
|
||||
0xe000 "$OUT/boot_app0.bin" 0x10000 "$OUT/firmware.bin"
|
||||
(
|
||||
cd "$OUT"
|
||||
@@ -28,9 +28,9 @@ cp "$BOOT_APP0" "$OUT/boot_app0.bin"
|
||||
cat > "$OUT/BUILD-INFO.txt" <<'EOF'
|
||||
Wersja: 2.0.0-rc.1 (release candidate, bez HIL)
|
||||
PlatformIO: 6.1.18
|
||||
Platforma: espressif32 8.0.0, ESP32-C3 SuperMini (esp32-c3-devkitm-1)
|
||||
Platforma: espressif32 8.0.0, ESP32-S2-MINI ESP32-S2FN4R2 (lolin_s2_mini)
|
||||
CC1101: de6757ef633b3e626dae5c7835cdb66ab53f9a1d
|
||||
Adresy: 0x0 bootloader, 0x8000 partitions, 0xe000 boot_app0, 0x10000 firmware
|
||||
Adresy: 0x1000 bootloader, 0x8000 partitions, 0xe000 boot_app0, 0x10000 firmware
|
||||
Pelny obraz firmware-full.bin: flash od 0x0.
|
||||
EOF
|
||||
cat "$OUT/BUILD-INFO.txt"
|
||||
|
||||
Reference in new issue
Block a user