From 06a424f755085319626dbf65af610ca4ece20c95 Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Sun, 23 May 2021 14:43:47 +0200 Subject: [PATCH 1/3] enable 16k extra heap --- platformio_tasmota_cenv_sample.ini | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platformio_tasmota_cenv_sample.ini b/platformio_tasmota_cenv_sample.ini index b3344dedb..e8627645d 100644 --- a/platformio_tasmota_cenv_sample.ini +++ b/platformio_tasmota_cenv_sample.ini @@ -21,6 +21,8 @@ build_flags = ${esp82xx_defaults.build_flags} ; *** Use ONE of the two PWM variants. Tasmota default is Locked PWM ;-DWAVEFORM_LOCKED_PHASE -DWAVEFORM_LOCKED_PWM + ; 16k extra heap https://github.com/esp8266/Arduino/pull/7060 + -DMMU_IRAM_SIZE=0xC000 -Wno-switch-unreachable From 272df4c37d739e2694f7d87d0e68224a0790c654 Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Sun, 23 May 2021 15:42:30 +0200 Subject: [PATCH 2/3] support Pio MMU switch --- platformio_tasmota_cenv_sample.ini | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platformio_tasmota_cenv_sample.ini b/platformio_tasmota_cenv_sample.ini index e8627645d..85496d649 100644 --- a/platformio_tasmota_cenv_sample.ini +++ b/platformio_tasmota_cenv_sample.ini @@ -12,7 +12,7 @@ build_flags = ${common.build_flags} [core_stage] ; *** Esp8266 core for Arduino version stage -platform_packages = framework-arduinoespressif8266 @ https://github.com/esp8266/Arduino/releases/download/3.0.0/esp8266-3.0.0.zip +platform_packages = framework-arduinoespressif8266 @ https://github.com/tasmota/Arduino.git#3.0.0.1 ; *** Use Xtensa build chain 10.2. GNU23 from https://github.com/earlephilhower/esp-quick-toolchain tasmota/toolchain-xtensa @ 5.100200.210303 build_unflags = ${esp_defaults.build_unflags} @@ -22,7 +22,7 @@ build_flags = ${esp82xx_defaults.build_flags} ;-DWAVEFORM_LOCKED_PHASE -DWAVEFORM_LOCKED_PWM ; 16k extra heap https://github.com/esp8266/Arduino/pull/7060 - -DMMU_IRAM_SIZE=0xC000 + -DPIO_FRAMEWORK_MMU__16KB_CACHE__48KB_IRAM -Wno-switch-unreachable From d327655b8f9f04c2f8311b2890b428b55f383492 Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Sun, 23 May 2021 16:08:15 +0200 Subject: [PATCH 3/3] Remove old PWM selection not supported anymore with core 3.x --- platformio_tasmota_cenv_sample.ini | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/platformio_tasmota_cenv_sample.ini b/platformio_tasmota_cenv_sample.ini index 85496d649..f5f7ae8c4 100644 --- a/platformio_tasmota_cenv_sample.ini +++ b/platformio_tasmota_cenv_sample.ini @@ -18,11 +18,8 @@ platform_packages = framework-arduinoespressif8266 @ https://github.co build_unflags = ${esp_defaults.build_unflags} -Wswitch-unreachable build_flags = ${esp82xx_defaults.build_flags} -; *** Use ONE of the two PWM variants. Tasmota default is Locked PWM - ;-DWAVEFORM_LOCKED_PHASE - -DWAVEFORM_LOCKED_PWM - ; 16k extra heap https://github.com/esp8266/Arduino/pull/7060 - -DPIO_FRAMEWORK_MMU__16KB_CACHE__48KB_IRAM +; *** 16k extra heap https://github.com/esp8266/Arduino/pull/7060 + ;-DPIO_FRAMEWORK_MMU__16KB_CACHE__48KB_IRAM -Wno-switch-unreachable