Skip to content

Commit bc00626

Browse files
committed
new MM build for -C3 with 2MB flash (no OTA)
1 parent 2510292 commit bc00626

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

platformio.ini

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ default_envs =
8080
;; esp32s2_tinyUF2_PSRAM_S ;; experimental - only for adafruit -S2 boards with tinyUF2 bootloader !!!
8181
esp32s2_PSRAM_M ;; experimental
8282
esp32c3dev_4MB_M ;; experimental
83+
esp32c3dev_2MB_M ;; experimental - 2MB Flash, no OTA
8384
esp32c3mini_dio_4MB_M ;; for boards that need "dio" flash mode (instead of qio)
8485
seeed_esp32c3_4MB_S ;; experimental
8586
esp32_4MB_V4_S ;; experimental
@@ -2180,6 +2181,33 @@ build_flags = ${env:esp32c3dev_4MB_M.build_flags}
21802181
; RAM: [=== ] 25.8% (used 84700 bytes from 327680 bytes)
21812182
; Flash: [==========] 98.7% (used 1552582 bytes from 1572864 bytes)
21822183

2184+
[env:esp32c3dev_2MB_M]
2185+
extends = env:esp32c3dev_4MB_M
2186+
board = lolin_c3_mini
2187+
;;; replace WLED_RELEASE_NAME, disable CDC_ON_BOOT
2188+
build_unflags = ${env:esp32c3dev_4MB_M.build_unflags}
2189+
-DARDUINO_USB_CDC_ON_BOOT=1
2190+
-D WLED_RELEASE_NAME=esp32c3dev_4MB_M
2191+
2192+
;;; 2MB Flash, no OTA
2193+
board_build.partitions = tools/WLED_ESP32_2MB_noOTA.csv
2194+
board_build.flash_mode = dio
2195+
board_upload.flash_size = 2MB
2196+
board_upload.maximum_size = 2097152
2197+
2198+
build_flags = ${env:esp32c3dev_4MB_M.build_flags}
2199+
-D WLED_WATCHDOG_TIMEOUT=0
2200+
-D WLED_DISABLE_OTA
2201+
; -DARDUINO_USB_CDC_ON_BOOT=1 ;; for virtual CDC USB
2202+
-DARDUINO_USB_CDC_ON_BOOT=0 ;; for serial-to-USB chip
2203+
-D WLED_RELEASE_NAME=esp32c3dev_2MB_M
2204+
-D WLED_DISABLE_BROWNOUT_DET ;; the board only has a 500mA LDO, better to disable brownout detection
2205+
-D WLED_DISABLE_ADALIGHT ;; to disable serial protocols for boards with CDC USB (Serial RX will receive junk commands, unless its pulled down by resistor)
2206+
-D HW_PIN_SDA=0 -D HW_PIN_SCL=1 ;; avoid pin conflicts
2207+
2208+
; RAM: [=== ] 25.3% (used 82828 bytes from 327680 bytes)
2209+
; Flash: [==========] 97.9% (used 1540138 bytes from 1572864 bytes)
2210+
21832211
;; MM environment for "seeed xiao -C3" boards
21842212
[env:seeed_esp32c3_4MB_S]
21852213
extends = env:esp32c3dev_4MB_M

0 commit comments

Comments
 (0)