Skip to content

Commit 08689d6

Browse files
committed
Restructure esp32c6 to extend esp32_idf_V5
- esp32c6 section now properly extends esp32_idf_V5 like other variants (S2, C3) - Removed duplicate lib_deps, now inherits from esp32_idf_V5 - Fixed comment typo (ESP32-C3 -> ESP32-C6) - Use full GifDecoder hash for git fetch compatibility Tested: esp32c6dev_4MB and esp32_wrover both build successfully.
1 parent 5c04ad8 commit 08689d6

File tree

1 file changed

+9
-14
lines changed

1 file changed

+9
-14
lines changed

platformio.ini

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ lib_deps_compat =
264264
;; Common libs for all ESP32 variants - AsyncTCP is defined per-platform due to IDF version differences
265265
lib_deps =
266266
bitbank2/AnimatedGIF@^1.4.7
267-
https://github.com/Aircoookie/GifDecoder#bc3af18
267+
https://github.com/Aircoookie/GifDecoder#bc3af189b6b1e06946569f6b4287f0b79a860f8e
268268
build_flags =
269269
-D CONFIG_ASYNC_TCP_USE_WDT=0
270270
-D CONFIG_ASYNC_TCP_STACK_SIZE=8192
@@ -306,7 +306,7 @@ build_flags = -g
306306
lib_deps =
307307
esp32async/AsyncTCP @ 3.4.7 ;; IDF5 compatible AsyncTCP
308308
bitbank2/AnimatedGIF@^1.4.7
309-
https://github.com/Aircoookie/GifDecoder#bc3af18
309+
https://github.com/Aircoookie/GifDecoder#bc3af189b6b1e06946569f6b4287f0b79a860f8e
310310
https://github.com/netmindz/esp_dmx/#esp-idf-v5-fixes
311311
https://github.com/softhack007/FastLED.git#ESP32-C6 ;; patched version needed for IDF5
312312
makuna/NeoPixelBus @ 2.8.3
@@ -354,30 +354,25 @@ board_build.flash_mode = qio
354354

355355

356356
[esp32c6]
357-
;; generic definitions for all ESP32-C6 boards
357+
;; generic definitions for all ESP32-C6 boards - extends esp32_idf_V5
358358
platform = ${esp32_idf_V5.platform}
359359
platform_packages =
360-
;;platform_packages =
361-
;; framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#3.0.1
362-
;; framework-arduinoespressif32-libs @ https://github.com/espressif/arduino-esp32/releases/download/3.0.1/esp32-arduino-libs-3.0.1.zip
363-
364-
board = esp32-c6-devkitm-1
360+
build_unflags = ${common.build_unflags}
365361
build_flags = -g
366362
-DARDUINO_ARCH_ESP32
367363
-DARDUINO_ARCH_ESP32C6
368364
-DCONFIG_IDF_TARGET_ESP32C6=1
369-
-D CONFIG_ASYNC_TCP_USE_WDT=0
370365
-DCO
371-
-DARDUINO_USB_MODE=1 ;; this flag is mandatory for ESP32-C3
366+
-DARDUINO_USB_MODE=1 ;; this flag is mandatory for ESP32-C6
372367
;; ESP32-C6 uses BitBang method for NeoPixel (RMT not supported in NeoPixelBus for C6)
373368
-D FASTLED_NO_FASTLED ;; Disable FastLED's own RMT driver to avoid conflict with ESP-IDF
374369
;; please make sure that the following flags are properly set (to 0 or 1) by your board.json, or included in your custom platformio_override.ini entry:
375370
;; ARDUINO_USB_CDC_ON_BOOT
371+
${esp32_idf_V5.build_flags}
376372
lib_deps =
377-
;;https://github.com/pbolduc/AsyncTCP.git @ 1.2.0
378-
https://github.com/softhack007/AsyncTCP.git#ESP32-C6 ;; patched version needed for -C6
379-
;; NeoPixelBus already included in env.lib_deps - removed to avoid duplicate linking
380-
${env.lib_deps}
373+
${esp32_idf_V5.lib_deps}
374+
board = esp32-c6-devkitm-1
375+
board_build.partitions = ${esp32.default_partitions}
381376

382377

383378
[env:esp32c6dev_8MB]

0 commit comments

Comments
 (0)