-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
8266 compatibility builds for older chips (another attempt t o solve #…
…3690 and #3685) some users have reported that releases after 0.14.0 are not working reliably. So we add a few "compat" for 8266 that try to reproduce the buildenv of 0.14.0 as much as possible. * platform and platform_packages from 0.14.0 * not using PIO_FRAMEWORK_ARDUINO_MMU_CACHE16_IRAM48 * due to smaller IRAM, we had to move some functions back from IRAM to normal flash (may cause slowdown)
- Loading branch information
1 parent
3615ab5
commit ef80abd
Showing
4 changed files
with
55 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
|
||
# CI binaries | ||
; default_envs = nodemcuv2, esp8266_2m, esp01_1m_full, esp32dev, esp32_eth # ESP32 variant builds are temporarily excluded from CI due to toolchain issues on the GitHub Actions Linux environment | ||
default_envs = nodemcuv2, esp8266_2m, esp01_1m_full, nodemcuv2_160, esp8266_2m_160, esp01_1m_full_160, esp32dev, esp32_eth, esp32dev_audioreactive, lolin_s2_mini, esp32c3dev, esp32s3dev_8MB, esp32s3dev_8MB_PSRAM_opi | ||
default_envs = nodemcuv2, esp8266_2m, esp01_1m_full, nodemcuv2_compat, esp8266_2m_compat, esp01_1m_full_compat, nodemcuv2_160, esp8266_2m_160, esp01_1m_full_160, esp32dev, esp32_eth, esp32dev_audioreactive, lolin_s2_mini, esp32c3dev, esp32s3dev_8MB, esp32s3dev_8MB_PSRAM_opi | ||
|
||
# Release binaries | ||
; default_envs = nodemcuv2, esp8266_2m, esp01_1m_full, esp32dev, esp32_eth, lolin_s2_mini, esp32c3dev, esp32s3dev_8MB | ||
|
@@ -226,6 +226,27 @@ lib_deps = | |
ESPAsyncUDP | ||
${env.lib_deps} | ||
|
||
;; compatibilty flags - same as 0.14.0 which seems to work better on some 8266 boards. Not using PIO_FRAMEWORK_ARDUINO_MMU_CACHE16_IRAM48 | ||
build_flags_compat = | ||
-DESP8266 | ||
-DFP_IN_IROM | ||
;;-Wno-deprecated-declarations | ||
-Wno-misleading-indentation | ||
;;-Wno-attributes ;; silence warnings about unknown attribute 'maybe_unused' in NeoPixelBus | ||
-DPIO_FRAMEWORK_ARDUINO_ESPRESSIF_SDK22x_190703 | ||
-DPIO_FRAMEWORK_ARDUINO_LWIP_HIGHER_BANDWIDTH | ||
-DVTABLES_IN_FLASH | ||
-DMIMETYPE_MINIMAL | ||
-DWLED_SAVE_IRAM ;; needed to prevent linker error | ||
|
||
;; this platform version was used for WLED 0.14.0 | ||
platform_compat = [email protected] | ||
platform_packages_compat = | ||
platformio/toolchain-xtensa @ ~2.100300.220621 #2.40802.200502 | ||
platformio/tool-esptool #@ ~1.413.0 | ||
platformio/tool-esptoolpy #@ ~1.30000.0 | ||
|
||
|
||
[esp32] | ||
#platform = https://github.com/tasmota/platform-espressif32/releases/download/v2.0.2.3/platform-espressif32-2.0.2.3.zip | ||
platform = [email protected] | ||
|
@@ -336,6 +357,13 @@ build_flags = ${common.build_flags_esp8266} -D WLED_RELEASE_NAME=ESP8266 #-DWLED | |
lib_deps = ${esp8266.lib_deps} | ||
monitor_filters = esp8266_exception_decoder | ||
|
||
[env:nodemcuv2_compat] | ||
extends = env:nodemcuv2 | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
softhack007
Author
Collaborator
|
||
;; using platform version and build options from WLED 0.14.0 | ||
platform = ${esp8266.platform_compat} | ||
platform_packages = ${esp8266.platform_packages_compat} | ||
build_flags = ${common.build_flags} ${esp8266.build_flags_compat} -D WLED_RELEASE_NAME=ESP8266_compat #-DWLED_DISABLE_2D | ||
|
||
[env:nodemcuv2_160] | ||
extends = env:nodemcuv2 | ||
board_build.f_cpu = 160000000L | ||
|
@@ -350,6 +378,13 @@ build_unflags = ${common.build_unflags} | |
build_flags = ${common.build_flags_esp8266} -D WLED_RELEASE_NAME=ESP02 | ||
lib_deps = ${esp8266.lib_deps} | ||
|
||
[env:esp8266_2m_compat] | ||
extends = env:esp8266_2m | ||
;; using platform version and build options from WLED 0.14.0 | ||
platform = ${esp8266.platform_compat} | ||
platform_packages = ${esp8266.platform_packages_compat} | ||
build_flags = ${common.build_flags} ${esp8266.build_flags_compat} -D WLED_RELEASE_NAME=ESP02_compat #-DWLED_DISABLE_2D | ||
|
||
[env:esp8266_2m_160] | ||
extends = env:esp8266_2m | ||
board_build.f_cpu = 160000000L | ||
|
@@ -365,6 +400,13 @@ build_flags = ${common.build_flags_esp8266} -D WLED_RELEASE_NAME=ESP01 -D WLED_D | |
; -D WLED_USE_UNREAL_MATH ;; may cause wrong sunset/sunrise times, but saves 7064 bytes FLASH and 975 bytes RAM | ||
lib_deps = ${esp8266.lib_deps} | ||
|
||
[env:esp01_1m_full_compat] | ||
extends = env:esp01_1m_full | ||
;; using platform version and build options from WLED 0.14.0 | ||
platform = ${esp8266.platform_compat} | ||
platform_packages = ${esp8266.platform_packages_compat} | ||
build_flags = ${common.build_flags} ${esp8266.build_flags_compat} -D WLED_RELEASE_NAME=ESP01_compat -D WLED_DISABLE_OTA #-DWLED_DISABLE_2D | ||
|
||
[env:esp01_1m_full_160] | ||
extends = env:esp01_1m_full | ||
board_build.f_cpu = 160000000L | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@softhack007 these will not link on my dev branch.
.text1
will not fit.