Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions platforms/platformio.esp32c3.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@ platform = https://github.com/pioarduino/platform-espressif32/releases/download/
board = esp32-c3-devkitm-1
framework = arduino

; USB CDC Configuration
; Set to 0 to disable USB CDC on boot (halts printing until serial monitor is launched)
; Set to 1 to enable USB CDC on boot (prints immediately without waiting for serial monitor)
build_flags =
-DARDUINO_USB_CDC_ON_BOOT=0
; Do NOT add -DARDUINO_USB_CDC_ON_BOOT=1. With CDC-on-boot enabled, Serial is
; routed to the USB-CDC interface, which only enumerates when a USB host is
; connected — boards powered from a wall adapter then hang in setup() the
; moment user code touches Serial. Leave Serial on the UART (default).

lib_deps =
FastLED
9 changes: 5 additions & 4 deletions platforms/platformio.esp32c6.ini
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,15 @@ monitor_filters =
; Without these the FastLED PARLIO TX ISR sits in flash and takes cache-miss
; stalls during execution, silently corrupting LED protocol timing.
; See FastLED src/platforms/esp/32/drivers/parlio/ for the canonical chipset list.
;
; Do NOT add -DARDUINO_USB_CDC_ON_BOOT=1 here. It wires Serial to the USB-CDC
; interface, which only enumerates when a USB host is connected — sketches
; that touch Serial in setup() then hang when the board is powered from a
; wall adapter instead of a PC.
build_flags =
-DCONFIG_PARLIO_TX_ISR_HANDLER_IN_IRAM=1
-DCONFIG_PARLIO_TX_ISR_CACHE_SAFE=1
; ---- CRITICAL: enable USB CDC serial ----
-D ARDUINO_USB_CDC_ON_BOOT=1
-D ARDUINO_USB_MODE=1

; Optional: fix early prints
board_build.flash_mode = dio
board_upload.flash_size = 4MB

Expand Down
5 changes: 4 additions & 1 deletion platforms/platformio.esp32p4.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,13 @@ board_build.partitions = huge_app.csv
; Without these the FastLED PARLIO TX ISR sits in flash and takes cache-miss
; stalls during execution, silently corrupting LED protocol timing.
; See FastLED src/platforms/esp/32/drivers/parlio/ for the canonical chipset list.
;
; Do NOT add -DARDUINO_USB_CDC_ON_BOOT=1 or -DARDUINO_USB_MODE=1 here. They
; wire Serial to the USB-CDC interface, which only enumerates when a USB host
; is connected — boards powered from a wall adapter then hang in setup().
build_flags =
-DCONFIG_PARLIO_TX_ISR_HANDLER_IN_IRAM=1
-DCONFIG_PARLIO_TX_ISR_CACHE_SAFE=1
-DARDUINO_USB_MODE=1

lib_deps =
FastLED
Loading