From 97999e5eaa6f7e41be50209b89af192596b9ecd3 Mon Sep 17 00:00:00 2001 From: tyeth Date: Tue, 13 Aug 2024 13:10:35 +0100 Subject: [PATCH 01/13] Initial adding of board def for C6 --- platformio.ini | 7 +++++++ src/Wippersnapper_Boards.h | 6 ++++++ src/provisioning/littlefs/WipperSnapper_LittleFS.cpp | 3 ++- 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/platformio.ini b/platformio.ini index 1ed2b6d54..34ee4b48c 100644 --- a/platformio.ini +++ b/platformio.ini @@ -142,6 +142,13 @@ board = adafruit_itsybitsy_esp32 build_flags = -DARDUINO_ADAFRUIT_ITSYBITSY_ESP32 board_build.filesystem = littlefs +; Adafruit ESP32 Feather C6 +[env:adafruit_feather_esp32c6_4mbflash_nopsram] +extends = common:esp32 +board = adafruit_feather_esp32c6 +build_flags = -DARDUINO_ADAFRUIT_FEATHER_ESP32C6 +board_build.filesystem = littlefs +board_build.partitions = min_spiffs.csv ; Adafruit Feather ESP32-S2 [env:featheresp32s2] diff --git a/src/Wippersnapper_Boards.h b/src/Wippersnapper_Boards.h index bd3c263a6..b119329a1 100644 --- a/src/Wippersnapper_Boards.h +++ b/src/Wippersnapper_Boards.h @@ -150,6 +150,12 @@ #define USE_LITTLEFS #define USE_STATUS_LED #define STATUS_LED_PIN 13 +#elif defined(ARDUINO_ADAFRUIT_FEATHER_ESP32C6) +#define BOARD_ID "feather-esp32c6" +#define USE_LITTLEFS +#define USE_STATUS_NEOPIXEL +#define STATUS_NEOPIXEL_PIN PIN_NEOPIXEL +#define STATUS_NEOPIXEL_NUM 1 #elif defined(ARDUINO_ADAFRUIT_FEATHER_ESP32_V2) #define BOARD_ID "feather-esp32-v2" #define USE_LITTLEFS diff --git a/src/provisioning/littlefs/WipperSnapper_LittleFS.cpp b/src/provisioning/littlefs/WipperSnapper_LittleFS.cpp index 57a534a86..e3ccf3831 100644 --- a/src/provisioning/littlefs/WipperSnapper_LittleFS.cpp +++ b/src/provisioning/littlefs/WipperSnapper_LittleFS.cpp @@ -17,7 +17,8 @@ defined(ARDUINO_ADAFRUIT_ITSYBITSY_ESP32) || \ defined(ARDUINO_ADAFRUIT_FEATHER_ESP32_V2) || \ defined(ARDUINO_ADAFRUIT_QTPY_ESP32_PICO) || \ - defined(ARDUINO_ADAFRUIT_QTPY_ESP32C3) + defined(ARDUINO_ADAFRUIT_QTPY_ESP32C3) || \ + defined(ARDUINO_ADAFRUIT_FEATHER_ESP32C6) #include "WipperSnapper_LittleFS.h" /**************************************************************************/ From b374aca37dd182b95c932ea1639e8d464231d978 Mon Sep 17 00:00:00 2001 From: tyeth Date: Tue, 13 Aug 2024 13:44:15 +0100 Subject: [PATCH 02/13] Update build workflow to add C6 --- .github/workflows/build-clang-doxy.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-clang-doxy.yml b/.github/workflows/build-clang-doxy.yml index 7c1c7c210..92534c3b7 100644 --- a/.github/workflows/build-clang-doxy.yml +++ b/.github/workflows/build-clang-doxy.yml @@ -223,7 +223,7 @@ jobs: wippersnapper.${{ matrix.arduino-platform }}.${{ env.WS_VERSION }}.bin build-esp32: - name: Build WipperSnapper ESP32, ESP32-C3 + name: Build WipperSnapper ESP32, ESP32-Cx runs-on: ubuntu-latest strategy: fail-fast: false @@ -235,11 +235,15 @@ jobs: "feather_esp32_v2", "itsybitsy_esp32", "wippersnapper_qtpy_esp32c3", + "wippersnapper_feather_esp32c6", ] include: - offset: "0x1000" - offset: "0x0" - arduino-platform: "wippersnapper_qtpy_esp32c3" + arduino-platform: [ + "wippersnapper_qtpy_esp32c3", + "wippersnapper_feather_esp32c6", + ] steps: - uses: actions/setup-python@v4 with: From 9303d7b22a975f5a4108b406bece5195ecce83fe Mon Sep 17 00:00:00 2001 From: tyeth Date: Tue, 13 Aug 2024 13:49:04 +0100 Subject: [PATCH 03/13] Specify offset arduino-platform's not as array --- .github/workflows/build-clang-doxy.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-clang-doxy.yml b/.github/workflows/build-clang-doxy.yml index 92534c3b7..986c73f4f 100644 --- a/.github/workflows/build-clang-doxy.yml +++ b/.github/workflows/build-clang-doxy.yml @@ -240,10 +240,9 @@ jobs: include: - offset: "0x1000" - offset: "0x0" - arduino-platform: [ - "wippersnapper_qtpy_esp32c3", - "wippersnapper_feather_esp32c6", - ] + arduino-platform: "wippersnapper_qtpy_esp32c3" + - offset: "0x0" + arduino-platform: "wippersnapper_feather_esp32c6" steps: - uses: actions/setup-python@v4 with: From baa61c340c7980a3375aab33359e8e406790bb29 Mon Sep 17 00:00:00 2001 From: tyeth Date: Tue, 13 Aug 2024 14:00:07 +0100 Subject: [PATCH 04/13] Add .test.skip and .genereate files for Feather C6 --- .../Wippersnapper_NoFS/.wippersnapper_feather_esp32c6.test.skip | 1 + .../Wippersnapper_demo/.wippersnapper_feather_esp32c6.generate | 1 + .../wippersnapper_debug/.wippersnapper_feather_esp32c6.test.skip | 1 + 3 files changed, 3 insertions(+) create mode 100644 examples/Wippersnapper_NoFS/.wippersnapper_feather_esp32c6.test.skip create mode 100644 examples/Wippersnapper_demo/.wippersnapper_feather_esp32c6.generate create mode 100644 examples/wippersnapper_debug/.wippersnapper_feather_esp32c6.test.skip diff --git a/examples/Wippersnapper_NoFS/.wippersnapper_feather_esp32c6.test.skip b/examples/Wippersnapper_NoFS/.wippersnapper_feather_esp32c6.test.skip new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/examples/Wippersnapper_NoFS/.wippersnapper_feather_esp32c6.test.skip @@ -0,0 +1 @@ + diff --git a/examples/Wippersnapper_demo/.wippersnapper_feather_esp32c6.generate b/examples/Wippersnapper_demo/.wippersnapper_feather_esp32c6.generate new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/examples/Wippersnapper_demo/.wippersnapper_feather_esp32c6.generate @@ -0,0 +1 @@ + diff --git a/examples/wippersnapper_debug/.wippersnapper_feather_esp32c6.test.skip b/examples/wippersnapper_debug/.wippersnapper_feather_esp32c6.test.skip new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/examples/wippersnapper_debug/.wippersnapper_feather_esp32c6.test.skip @@ -0,0 +1 @@ + From 64d73b27ad6511d21c3aa829cb5386706ee6b17d Mon Sep 17 00:00:00 2001 From: tyeth Date: Tue, 13 Aug 2024 14:41:55 +0100 Subject: [PATCH 05/13] Add Espressif C6 4mb PlatformIO target --- platformio.ini | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/platformio.ini b/platformio.ini index 34ee4b48c..bcf51bee6 100644 --- a/platformio.ini +++ b/platformio.ini @@ -150,6 +150,31 @@ build_flags = -DARDUINO_ADAFRUIT_FEATHER_ESP32C6 board_build.filesystem = littlefs board_build.partitions = min_spiffs.csv + +; Espressif ESP32-C6 4MB NO PSRAM esp32-c6-devkitm-1 +[env:espressif_esp32-c6-devkitm-1] +extends = common:esp32 +board = esp32-c6-devkitm-1 +build_type = debug +build_flags = + -DARDUINO_ESPRESSIF_ESP32C6_DEVKITM_1 + -DARDUINO_ADAFRUIT_FEATHER_ESP32C6 + -DNDEBUG=1 + -DDEBUG=1 + -DESP_LOG_LEVEL=5 + -DARDUINO_CORE_DEBUG_LEVEL=5 + -DARDUINO_DEBUG_LEVEL=5 + ; -DARDUINO_DEBUG_OUTPUT=Serial + ; -DARDUINO_DEBUG_BAUD=115200 + -DARDUINO_LOG_LEVEL=5 + -DCORE_DEBUG_LEVEL=5 + -DARDUHAL_LOG_LEVEL=5 +board_build.filesystem = littlefs +board_build.partitions = min_spiffs.csv +extra_scripts = pre:rename_usb_config.py + + + ; Adafruit Feather ESP32-S2 [env:featheresp32s2] extends = common:esp32 From c7c441eda9331b0760f75d30b7e00fdf12c3704c Mon Sep 17 00:00:00 2001 From: tyeth Date: Tue, 13 Aug 2024 15:19:46 +0100 Subject: [PATCH 06/13] Temporarily switch OneWire to fork with C6 fix --- platformio.ini | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/platformio.ini b/platformio.ini index bcf51bee6..fd343cddb 100644 --- a/platformio.ini +++ b/platformio.ini @@ -70,7 +70,7 @@ lib_deps = adafruit/Adafruit TouchScreen adafruit/Adafruit MQTT Library bblanchon/ArduinoJson - https://github.com/PaulStoffregen/OneWire.git + https://github.com/tyeth/PaulStoffregen_OneWire.git#add-C6 https://github.com/milesburton/Arduino-Temperature-Control-Library.git https://github.com/Sensirion/arduino-sht.git https://github.com/Sensirion/arduino-i2c-scd4x.git @@ -150,7 +150,6 @@ build_flags = -DARDUINO_ADAFRUIT_FEATHER_ESP32C6 board_build.filesystem = littlefs board_build.partitions = min_spiffs.csv - ; Espressif ESP32-C6 4MB NO PSRAM esp32-c6-devkitm-1 [env:espressif_esp32-c6-devkitm-1] extends = common:esp32 @@ -164,16 +163,14 @@ build_flags = -DESP_LOG_LEVEL=5 -DARDUINO_CORE_DEBUG_LEVEL=5 -DARDUINO_DEBUG_LEVEL=5 - ; -DARDUINO_DEBUG_OUTPUT=Serial - ; -DARDUINO_DEBUG_BAUD=115200 -DARDUINO_LOG_LEVEL=5 -DCORE_DEBUG_LEVEL=5 -DARDUHAL_LOG_LEVEL=5 + ; -DUSE_TINYUSB=0 + ; -DARDUINO_DEBUG_OUTPUT=Serial + ; -DARDUINO_DEBUG_BAUD=115200 board_build.filesystem = littlefs board_build.partitions = min_spiffs.csv -extra_scripts = pre:rename_usb_config.py - - ; Adafruit Feather ESP32-S2 [env:featheresp32s2] From ea3cc6205b22ac74df049ea685f3dd73d9b7fa39 Mon Sep 17 00:00:00 2001 From: tyeth Date: Tue, 13 Aug 2024 15:30:32 +0100 Subject: [PATCH 07/13] Cleanup Espressif C6 build flags --- platformio.ini | 3 --- 1 file changed, 3 deletions(-) diff --git a/platformio.ini b/platformio.ini index fd343cddb..4c5d7693e 100644 --- a/platformio.ini +++ b/platformio.ini @@ -166,9 +166,6 @@ build_flags = -DARDUINO_LOG_LEVEL=5 -DCORE_DEBUG_LEVEL=5 -DARDUHAL_LOG_LEVEL=5 - ; -DUSE_TINYUSB=0 - ; -DARDUINO_DEBUG_OUTPUT=Serial - ; -DARDUINO_DEBUG_BAUD=115200 board_build.filesystem = littlefs board_build.partitions = min_spiffs.csv From d2e0d0929ffefcd5bc0ed365c6f75f00bae469eb Mon Sep 17 00:00:00 2001 From: tyeth Date: Wed, 14 Aug 2024 19:45:19 +0100 Subject: [PATCH 08/13] Ignore OneWire and use OneWireNg --- platformio.ini | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/platformio.ini b/platformio.ini index 4c5d7693e..c80363f42 100644 --- a/platformio.ini +++ b/platformio.ini @@ -70,7 +70,7 @@ lib_deps = adafruit/Adafruit TouchScreen adafruit/Adafruit MQTT Library bblanchon/ArduinoJson - https://github.com/tyeth/PaulStoffregen_OneWire.git#add-C6 + https://github.com/pstolarz/OneWireNg.git https://github.com/milesburton/Arduino-Temperature-Control-Library.git https://github.com/Sensirion/arduino-sht.git https://github.com/Sensirion/arduino-i2c-scd4x.git @@ -82,13 +82,13 @@ lib_deps = ; Common build environment for ESP32 platform [common:esp32] platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.03/platform-espressif32.zip -lib_ignore = WiFiNINA, WiFi101 +lib_ignore = WiFiNINA, WiFi101, OneWire monitor_filters = esp32_exception_decoder, time ; Common build environment for ESP8266 platform [common:esp8266] platform = espressif8266 -lib_ignore = WiFiNINA, WiFi101, Adafruit TinyUSB Library +lib_ignore = WiFiNINA, WiFi101, Adafruit TinyUSB Library, OneWire ; Common build environment for Atmel/Microchip SAMDx platform [common:atsamd] @@ -98,6 +98,7 @@ platform_packages = platformio/tool-jlink@^1.78811.0 lib_ldf_mode = deep lib_archive = no ; debug timer issues see https://community.platformio.org/t/choose-usb-stack-as-tiny-usb/22451/5 +lib_ignore = OneWire [common:rp2040] platform = https://github.com/maxgerhardt/platform-raspberrypi.git @@ -110,7 +111,7 @@ board_build.core = earlephilhower board_build.filesystem_size = 0.5m build_flags = -DUSE_TINYUSB ; Once https://github.com/platformio/platformio-core > 6.1.11 these can be removed -lib_ignore = WiFiNINA, WiFi101, Adafruit Zero DMA Library +lib_ignore = WiFiNINA, WiFi101, Adafruit Zero DMA Library, OneWire lib_compat_mode = soft ; can be strict once pio detects SleepyDog on RP2040 From 176ff81433919ba4c95c366549184cbb02e6a04d Mon Sep 17 00:00:00 2001 From: tyeth Date: Tue, 20 Aug 2024 17:28:53 +0100 Subject: [PATCH 09/13] Set CDC on and DebugLevel=Info for Feather C6 --- platformio.ini | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/platformio.ini b/platformio.ini index c80363f42..46cb36eaf 100644 --- a/platformio.ini +++ b/platformio.ini @@ -147,7 +147,10 @@ board_build.filesystem = littlefs [env:adafruit_feather_esp32c6_4mbflash_nopsram] extends = common:esp32 board = adafruit_feather_esp32c6 -build_flags = -DARDUINO_ADAFRUIT_FEATHER_ESP32C6 +build_flags = + -DARDUINO_ADAFRUIT_FEATHER_ESP32C6 + -DARDUINO_USB_CDC_ON_BOOT=1 + -DCORE_DEBUG_LEVEL=3 board_build.filesystem = littlefs board_build.partitions = min_spiffs.csv From 5f6b814aed3d16cdd44550c385818a3a17af19a3 Mon Sep 17 00:00:00 2001 From: tyeth Date: Tue, 20 Aug 2024 18:11:43 +0100 Subject: [PATCH 10/13] Swap PIOArduino to develop --- platformio.ini | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platformio.ini b/platformio.ini index 46cb36eaf..cbb97a1cf 100644 --- a/platformio.ini +++ b/platformio.ini @@ -81,7 +81,8 @@ lib_deps = ; Common build environment for ESP32 platform [common:esp32] -platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.03/platform-espressif32.zip +; platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.03/platform-espressif32.zip +platform = https://github.com/pioarduino/platform-espressif32/archive/refs/heads/develop.zip lib_ignore = WiFiNINA, WiFi101, OneWire monitor_filters = esp32_exception_decoder, time From b52f6ff97632eecc04abfc88555e9730e90fa5cb Mon Sep 17 00:00:00 2001 From: tyeth Date: Tue, 20 Aug 2024 18:11:54 +0100 Subject: [PATCH 11/13] Add C6 Debug target --- .github/workflows/build-clang-doxy.yml | 111 ++++++++++++++++++ ...persnapper_feather_esp32c6_debug.test.skip | 1 + ...persnapper_feather_esp32c6_debug.test.skip | 1 + ...ppersnapper_feather_esp32c6_debug.generate | 1 + 4 files changed, 114 insertions(+) create mode 100644 examples/Wippersnapper_NoFS/.wippersnapper_feather_esp32c6_debug.test.skip create mode 100644 examples/Wippersnapper_demo/.wippersnapper_feather_esp32c6_debug.test.skip create mode 100644 examples/wippersnapper_debug/.wippersnapper_feather_esp32c6_debug.generate diff --git a/.github/workflows/build-clang-doxy.yml b/.github/workflows/build-clang-doxy.yml index 986c73f4f..62447eb7c 100644 --- a/.github/workflows/build-clang-doxy.yml +++ b/.github/workflows/build-clang-doxy.yml @@ -613,6 +613,117 @@ jobs: wippersnapper.${{ matrix.arduino-platform }}.${{ env.WS_VERSION }}.uf2 wippersnapper.${{ matrix.arduino-platform }}.${{ env.WS_VERSION }}.bin + build-esp32-dev: + name: Build WipperSnapper ESP32/Cx DEV BUILDS + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + arduino-platform: + [ + "wippersnapper_feather_esp32c6_debug", + ] + include: + - offset: "0x1000" + - offset: "0x0" + arduino-platform: "wippersnapper_feather_esp32c6_debug" + steps: + - uses: actions/setup-python@v4 + with: + python-version: "3.x" + - uses: actions/checkout@v4 + - name: Get WipperSnapper version + run: | + git fetch --prune --unshallow --tags + git describe --dirty --tags + echo >>$GITHUB_ENV WS_VERSION=$(git describe --dirty --tags) + - uses: actions/checkout@v4 + with: + repository: adafruit/ci-arduino + path: ci + - name: Checkout Board Definitions + uses: actions/checkout@v4 + with: + repository: adafruit/Wippersnapper_Boards + path: ws-boards + - name: Install CI-Arduino + run: bash ci/actions_install.sh + - name: Install extra Arduino libraries + run: | + git clone --quiet https://github.com/milesburton/Arduino-Temperature-Control-Library.git /home/runner/Arduino/libraries/Arduino-Temperature-Control-Library + git clone --quiet https://github.com/pstolarz/OneWireNg.git /home/runner/Arduino/libraries/OneWireNg + - name: Download and install stable Nanopb + run: | + # Download and extract nanopb + wget https://jpa.kapsi.fi/nanopb/download/nanopb-0.4.8.tar.gz + tar -xf nanopb-0.4.8.tar.gz + # Copy files to WipperSnapper's src/nanopb directory + cp nanopb/pb_common.* nanopb/pb_encode.* nanopb/pb_decode.* src/nanopb + mv nanopb/pb.h src/nanopb/nanopb.pb.h + - name: Install Dependencies + run: | + pip3 install esptool + - name: build ESP32 platforms + run: python3 ci/build_platform.py ${{ matrix.arduino-platform }} --build_timeout 48000 + - name: Check artifacts + run: | + ls examples/wippersnapper_debug/build/* + - name: Rename build artifacts to reflect the platform name + run: | + mv examples/wippersnapper_debug/build/*/wippersnapper_debug.ino.bin wippersnapper.${{ matrix.arduino-platform }}.littlefs.${{ env.WS_VERSION }}.bin + mv examples/wippersnapper_debug/build/*/wippersnapper_debug.ino.elf wippersnapper.${{ matrix.arduino-platform }}.littlefs.${{ env.WS_VERSION }}.elf + mv examples/wippersnapper_debug/build/*/wippersnapper_debug.ino.map wippersnapper.${{ matrix.arduino-platform }}.littlefs.${{ env.WS_VERSION }}.map + mv examples/wippersnapper_debug/build/*/wippersnapper_debug.ino.bootloader.bin wippersnapper.${{ matrix.arduino-platform }}.littlefs.${{ env.WS_VERSION }}.bootloader.bin + mv examples/wippersnapper_debug/build/*/wippersnapper_debug.ino.partitions.bin wippersnapper.${{ matrix.arduino-platform }}.littlefs.${{ env.WS_VERSION }}.partitions.bin + - name: Check boot_app0 file existence (esp32 built from core, not-source) + id: check_files + uses: andstor/file-existence-action@v2 + with: + files: "/home/runner/.arduino15/packages/esp32/hardware/esp32/*/tools/partitions/boot_app0.bin" + - name: boot_app0 file from arduino-cli core + if: steps.check_files.outputs.files_exists == 'true' + run: mv /home/runner/.arduino15/packages/esp32/hardware/esp32/*/tools/partitions/boot_app0.bin wippersnapper.${{ matrix.arduino-platform }}.littlefs.${{ env.WS_VERSION }}.boot_app0.bin + - name: boot_app0 file from esp32 source bsp + if: steps.check_files.outputs.files_exists == 'false' + run: mv /home/runner/Arduino/hardware/espressif/esp32/tools/partitions/boot_app0.bin wippersnapper.${{ matrix.arduino-platform }}.littlefs.${{ env.WS_VERSION }}.boot_app0.bin + - name: Get Board Flash Parameters + id: get_board_json + run: | + board_name=${{ matrix.arduino-platform }} + # Remove '_noota' suffix if present + board_name=${board_name%_noota} + # Remove 'wippersnapper_' prefix if present + board_name=${board_name#wippersnapper_} + content=$(cat ws-boards/boards/${board_name//_/-}/definition.json) + { + echo 'boardJson<> "$GITHUB_OUTPUT" + - name: Create combined binary using Esptool merge_bin + run: | + echo ${{ steps.get_board_json.outputs.boardJson }} + echo ${{ fromJson(steps.get_board_json.outputs.boardJson) }} + python3 -m esptool --chip ${{fromJson(steps.get_board_json.outputs.boardJson).esptool.chip}} merge_bin \ + --flash_mode ${{fromJson(steps.get_board_json.outputs.boardJson).esptool.flashMode}} \ + --flash_freq ${{fromJson(steps.get_board_json.outputs.boardJson).esptool.flashFreq}} \ + --flash_size ${{fromJson(steps.get_board_json.outputs.boardJson).esptool.flashSize}} \ + -o wippersnapper.${{ matrix.arduino-platform }}.littlefs.${{ env.WS_VERSION }}.combined.bin \ + ${{ matrix.offset }} wippersnapper.${{ matrix.arduino-platform }}.littlefs.${{ env.WS_VERSION }}.bootloader.bin \ + 0x8000 wippersnapper.${{ matrix.arduino-platform }}.littlefs.${{ env.WS_VERSION }}.partitions.bin \ + 0xe000 wippersnapper.${{ matrix.arduino-platform }}.littlefs.${{ env.WS_VERSION }}.boot_app0.bin \ + 0x10000 wippersnapper.${{ matrix.arduino-platform }}.littlefs.${{ env.WS_VERSION }}.bin + - name: Zip build artifacts + run: | + zip -r wippersnapper.${{ matrix.arduino-platform }}.littlefs.${{ env.WS_VERSION }}.zip wippersnapper.${{ matrix.arduino-platform }}.littlefs.${{ env.WS_VERSION }}.* + - name: upload build artifacts zip + uses: actions/upload-artifact@v3 + with: + name: build-files-dev + path: | + wippersnapper.${{ matrix.arduino-platform }}.littlefs.${{ env.WS_VERSION }}.zip + + clang_and_doxy: runs-on: ubuntu-latest needs: diff --git a/examples/Wippersnapper_NoFS/.wippersnapper_feather_esp32c6_debug.test.skip b/examples/Wippersnapper_NoFS/.wippersnapper_feather_esp32c6_debug.test.skip new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/examples/Wippersnapper_NoFS/.wippersnapper_feather_esp32c6_debug.test.skip @@ -0,0 +1 @@ + diff --git a/examples/Wippersnapper_demo/.wippersnapper_feather_esp32c6_debug.test.skip b/examples/Wippersnapper_demo/.wippersnapper_feather_esp32c6_debug.test.skip new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/examples/Wippersnapper_demo/.wippersnapper_feather_esp32c6_debug.test.skip @@ -0,0 +1 @@ + diff --git a/examples/wippersnapper_debug/.wippersnapper_feather_esp32c6_debug.generate b/examples/wippersnapper_debug/.wippersnapper_feather_esp32c6_debug.generate new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/examples/wippersnapper_debug/.wippersnapper_feather_esp32c6_debug.generate @@ -0,0 +1 @@ + From 4e9cd30c00ff7dff235654b3d096d94ebfaed054 Mon Sep 17 00:00:00 2001 From: tyeth Date: Tue, 20 Aug 2024 18:50:13 +0100 Subject: [PATCH 12/13] Tweak debug builds for CI to drop _debug from board name --- .github/workflows/build-clang-doxy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build-clang-doxy.yml b/.github/workflows/build-clang-doxy.yml index 62447eb7c..672198375 100644 --- a/.github/workflows/build-clang-doxy.yml +++ b/.github/workflows/build-clang-doxy.yml @@ -692,6 +692,8 @@ jobs: board_name=${{ matrix.arduino-platform }} # Remove '_noota' suffix if present board_name=${board_name%_noota} + # Remove '_debug' suffix if present + board_name=${board_name%_debug} # Remove 'wippersnapper_' prefix if present board_name=${board_name#wippersnapper_} content=$(cat ws-boards/boards/${board_name//_/-}/definition.json) From 5c4dda0fe4fa5c04992b1d2f91785f597dd75f75 Mon Sep 17 00:00:00 2001 From: Tyeth Gundry Date: Tue, 20 Aug 2024 21:17:04 +0100 Subject: [PATCH 13/13] Prelease for C6 and comment/format platformio --- library.properties | 2 +- platformio.ini | 24 ++++++++++++------------ src/Wippersnapper.h | 2 +- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/library.properties b/library.properties index caa57f7ef..1aa7a2725 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=Adafruit WipperSnapper -version=1.0.0-beta.88 +version=1.0.0-alpha.89 author=Adafruit maintainer=Adafruit sentence=Arduino application for Adafruit.io WipperSnapper diff --git a/platformio.ini b/platformio.ini index cbb97a1cf..87ff73c73 100644 --- a/platformio.ini +++ b/platformio.ini @@ -81,8 +81,9 @@ lib_deps = ; Common build environment for ESP32 platform [common:esp32] -; platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.03/platform-espressif32.zip -platform = https://github.com/pioarduino/platform-espressif32/archive/refs/heads/develop.zip +; platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.04/platform-espressif32.zip +; This is needed for Adafruit Feather C6 in platformio (until 51.03.05): +platform = https://github.com/pioarduino/platform-espressif32#develop lib_ignore = WiFiNINA, WiFi101, OneWire monitor_filters = esp32_exception_decoder, time @@ -160,7 +161,7 @@ board_build.partitions = min_spiffs.csv extends = common:esp32 board = esp32-c6-devkitm-1 build_type = debug -build_flags = +build_flags = -DARDUINO_ESPRESSIF_ESP32C6_DEVKITM_1 -DARDUINO_ADAFRUIT_FEATHER_ESP32C6 -DNDEBUG=1 @@ -290,7 +291,7 @@ extra_scripts = pre:rename_usb_config.py extends = common:esp32 board = esp32-s3-devkitc-1 build_type = debug -build_flags = +build_flags = -DUSE_TINYUSB=1 -DARDUINO_ESPRESSIF_ESP32S3_DEVKITC_1_N8 -DNDEBUG=1 @@ -339,13 +340,13 @@ monitor_port = auto ; debug_init_break = tbreak clearConfiguration lib_ignore = USBHost build_flags = -DUSE_TINYUSB - -D__SAMD51J20A__ - -DCRYSTALLESS - -DADAFRUIT_PYPORTAL_M4_TITANO - -D__SAMD51__ - -D__FPU_PRESENT - -DARM_MATH_CM4 - -mfloat-abi=hard + -D__SAMD51J20A__ + -DCRYSTALLESS + -DADAFRUIT_PYPORTAL_M4_TITANO + -D__SAMD51__ + -D__FPU_PRESENT + -DARM_MATH_CM4 + -mfloat-abi=hard -mfpu=fpv4-sp-d16 -DCORE_DEBUG_LEVEL=5 -DARDUINO_USB_CDC_ON_BOOT=1 @@ -415,4 +416,3 @@ build_flags = ; ; No USB stack ; build_flags = -DPIO_FRAMEWORK_ARDUINO_NO_USB ; -DPIO_FRAMEWORK_ARDUINO_ENABLE_IPV6 - \ No newline at end of file diff --git a/src/Wippersnapper.h b/src/Wippersnapper.h index e0e9f3546..2bfd22e64 100644 --- a/src/Wippersnapper.h +++ b/src/Wippersnapper.h @@ -141,7 +141,7 @@ #endif #define WS_VERSION \ - "1.0.0-beta.88" ///< WipperSnapper app. version (semver-formatted) + "1.0.0-alpha.89" ///< WipperSnapper app. version (semver-formatted) // Reserved Adafruit IO MQTT topics #define TOPIC_IO_THROTTLE "/throttle" ///< Adafruit IO Throttle MQTT Topic