Skip to content

Commit de4a409

Browse files
committed
8266 optional build flags to increase IRAM
related to wled#3364
1 parent 0fcbefb commit de4a409

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

platformio.ini

+9-4
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,14 @@ platform_packages = platformio/framework-arduinoespressif8266
133133

134134
# ------------------------------------------------------------------------------
135135
# 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
137138
# ------------------------------------------------------------------------------
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
139141
-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
142144

143145
# ------------------------------------------------------------------------------
144146
# FLAGS: ldscript (available ldscripts at https://github.com/esp8266/Arduino/tree/master/tools/sdk/ld)
@@ -269,6 +271,9 @@ build_flags =
269271
-DVTABLES_IN_FLASH
270272
; restrict to minimal mime-types
271273
-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
272277
-D USERMOD_AUDIOREACTIVE
273278

274279
lib_deps =

0 commit comments

Comments
 (0)