Skip to content

Commit 28a0d00

Browse files
committed
adding [esp32_16MB_V4_M_eth_debug] for QEMU tests
1 parent 104e4ec commit 28a0d00

File tree

1 file changed

+43
-3
lines changed

1 file changed

+43
-3
lines changed

platformio.ini

Lines changed: 43 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1826,17 +1826,57 @@ build_flags = ${esp32_4MB_V4_S_base.esp32_build_flags}
18261826
${common_mm.HUB75_build_flags}
18271827
-D SR_DMTYPE=254 ;; HUB75 driver needs the I2S unit - set AR default mode to 'Network Receive Only' to prevent driver conflicts.
18281828
-D WLED_USE_ETHERNET
1829-
-D WLED_ETH_DEFAULT=2 ;; ESP32-POE board configuration (works with QEMU open_eth)
18301829
-D WLED_DISABLE_ESPNOW ;; ESP-NOW requires wifi, may crash with ethernet only
1830+
lib_deps = ${esp32_4MB_V4_S_base.esp32_lib_deps}
1831+
${common_mm.HUB75_lib_deps}
1832+
lib_ignore = IRremoteESP8266 ; use with WLED_DISABLE_INFRARED for faster compilation
1833+
1834+
1835+
## for testing with QEMU
1836+
[env:esp32_16MB_V4_M_eth_debug]
1837+
extends = esp32_4MB_V4_M_base
1838+
board = esp32_16MB-poe ;; needed for ethernet boards (selects "esp32-poe" as variant)
1839+
board_build.partitions = ${esp32.extreme_partitions} ;; WLED extended for 16MB flash: 3.2MB firmware, 9 MB filesystem
1840+
build_unflags = ${esp32_4MB_V4_M_base.build_unflags}
1841+
;; removing some usermods to keep it simple
1842+
-D USERMOD_DALLASTEMPERATURE
1843+
-D USERMOD_FOUR_LINE_DISPLAY
1844+
-D USERMOD_PIRSWITCH
1845+
-D USERMOD_MULTI_RELAY
1846+
-D USE_ALT_DISPLAY ; new versions of USERMOD_FOUR_LINE_DISPLAY and USERMOD_ROTARY_ENCODER_UI
1847+
-D USERMOD_MPU6050_IMU ; gyro/accelero for USERMOD_GAMES (ONLY WORKS IF USERMOD_FOUR_LINE_DISPLAY NOT INCLUDED - I2C SHARING BUG)
1848+
-D USERMOD_GAMES ; WLEDMM usermod
1849+
${common_mm.animartrix_build_flags}
1850+
${common_mm.HUB75_build_flags}
1851+
;; more debug output
1852+
-DCORE_DEBUG_LEVEL=0
1853+
-DNDEBUG
1854+
;;${Speed_Flags.build_unflags} ;; to override -Os
1855+
build_flags = ${esp32_4MB_V4_M_base.build_flags}
1856+
-D WLED_RELEASE_NAME=esp32_16MB_M_eth_debug ; This will be included in the firmware.bin filename
1857+
;;${Speed_Flags.build_flags_V4} ;; optimize for speed
1858+
-g3 -ggdb ;; better debug output
1859+
-DCORE_DEBUG_LEVEL=5 ;; max core debug output
1860+
-DDEBUG -D WLED_DEBUG -DWLED_DEBUG_JSON ;; -DWLED_DEBUG_FS ;; max WLED debugging output
1861+
-D WLED_USE_ETHERNET
1862+
-D WLED_DISABLE_ESPNOW ;; ESP-NOW requires wifi, may crash with ethernet only
1863+
-D WLED_ETH_DEFAULT=2 ;; ESP32-POE board configuration (works with QEMU open_eth)
18311864
;; Static IP for QEMU testing - user-mode networking provides DHCP at 10.0.2.0/24
18321865
;; If DHCP fails, uncomment these lines to use static IP:
18331866
; -D WLED_STATIC_IP_DEFAULT_1=10
18341867
; -D WLED_STATIC_IP_DEFAULT_2=0
18351868
; -D WLED_STATIC_IP_DEFAULT_3=2
18361869
; -D WLED_STATIC_IP_DEFAULT_4=15
1837-
lib_deps = ${esp32_4MB_V4_S_base.esp32_lib_deps}
1838-
${common_mm.HUB75_lib_deps}
1870+
-D WLED_DISABLE_WIFI ;; experimental - no wifi AP mode
1871+
-D WLED_DISABLE_INFRARED
1872+
-D BTNPIN=-1 -D RLYPIN=1 -D IRPIN=-1 ;; disable all extra pins
1873+
-D SR_DMTYPE=254 -D AUDIOPIN=-1 ;; set AR into "received only" mode
1874+
lib_deps = ${esp32_4MB_V4_M_base.esp32_lib_deps}
18391875
lib_ignore = IRremoteESP8266 ; use with WLED_DISABLE_INFRARED for faster compilation
1876+
${common_mm.HUB75_lib_ignore}
1877+
; RAM: [=== ] 26.5% (used 86924 bytes from 327680 bytes)
1878+
; Flash: [====== ] 57.4% (used 1806269 bytes from 3145728 bytes)
1879+
18401880

18411881
;; softhack007: my favourite HUB75 buildenv - fastest possible
18421882
[env:esp32_4MB_V4_HUB75_forum]

0 commit comments

Comments
 (0)