@@ -133,12 +133,14 @@ platform_packages = platformio/framework-arduinoespressif8266
133
133
134
134
# ------------------------------------------------------------------------------
135
135
# FLAGS: DEBUG
136
- #
136
+ # esp8266 : see https://docs.platformio.org/en/latest/platforms/espressif8266.html#debug-level
137
+ # esp32 : see https://docs.platformio.org/en/latest/platforms/espressif32.html#debug-level
137
138
# ------------------------------------------------------------------------------
138
- debug_flags = -D DEBUG =1 -D WLED_DEBUG -DDEBUG_ESP_WIFI -DDEBUG_ESP_HTTP_CLIENT -DDEBUG_ESP_HTTP_UPDATE -DDEBUG_ESP_HTTP_SERVER -DDEBUG_ESP_UPDATER -DDEBUG_ESP_OTA -DDEBUG_TLS_MEM
139
+ debug_flags = -D DEBUG =1 -D WLED_DEBUG
140
+ -DDEBUG_ESP_WIFI -DDEBUG_ESP_HTTP_CLIENT -DDEBUG_ESP_HTTP_UPDATE -DDEBUG_ESP_HTTP_SERVER -DDEBUG_ESP_UPDATER -DDEBUG_ESP_OTA -DDEBUG_TLS_MEM ; ; for esp8266
139
141
-DARDUINOJSON_DEBUG =1 ; ; enables some debug asserts in arduinoJSON
140
- # if needed (for memleaks etc) also add; -DDEBUG_ESP_OOM -include "umm_malloc/umm_malloc_cfg.h"
141
- # -DDEBUG_ESP_CORE is not working right now
142
+ # if needed (for memleaks etc) also add; -DDEBUG_ESP_OOM -include "umm_malloc/umm_malloc_cfg.h"
143
+ # -DDEBUG_ESP_CORE is not working right now
142
144
143
145
# ------------------------------------------------------------------------------
144
146
# FLAGS: ldscript (available ldscripts at https://github.com/esp8266/Arduino/tree/master/tools/sdk/ld)
@@ -269,6 +271,9 @@ build_flags =
269
271
-DVTABLES_IN_FLASH
270
272
; restrict to minimal mime-types
271
273
-DMIMETYPE_MINIMAL
274
+ ; other special-purpose framework flags (see https://docs.platformio.org/en/latest/platforms/espressif8266.html)
275
+ ; -D PIO_FRAMEWORK_ARDUINO_MMU_CACHE16_IRAM48 ;; in case of linker errors like "section `.text1' will not fit in region `iram1_0_seg'"
276
+ ; -D PIO_FRAMEWORK_ARDUINO_MMU_CACHE16_IRAM48_SECHEAP_SHARED ;; (experimental) adds some extra heap, but may cause slowdown
272
277
-D USERMOD_AUDIOREACTIVE
273
278
274
279
lib_deps =
0 commit comments