Tasmota: 5.13.1
Arduino IDE: 1.8.5 (portable)
ESP8266 Community: 2.4.1
Following the Tasmota wiki guide to compile using the Arduino IDE, at the point Configuring Arduino IDE, ESP8266 Board version 241 the advice is to compile with the IwIP variant set to v2 Lower Memory. I found following this advice my device was very unstable and would go into a restart cycle.
By changing the IwIP variant to v1.4 Higher Bandwidth, the Sonoff dual R2 would start up normally and is rock solid without any hint of the restart cycling seen when using the V2 Lower Memory.
I do not know what memory hit I am taking by using the higher bandwidth. I also didn't try using the V2 Higher Bandwidth option.
My symptom was very clear and not as described in issue #2605 but wonder if changing the IwIP variant would help that issue as well?
Thnx for sharing.
Just did a compile and noticed v1.4 program size is even 1k smaller.
For those wanting to test this in platformio the following change needs to be made to platformio.ini
build_flags =
-Wl,-Tesp8266.flash.1m0.ld
-DVTABLES_IN_FLASH
; -DPIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY
; -DUSE_CONFIG_OVERRIDE
This will enable the default lwIP v1.4 Higher Bandwidth option.
note:
those are all options:
; -DPIO_FRAMEWORK_ARDUINO_LWIP_HIGHER_BANDWIDTH ;v1.4 Higher Bandwidth (default)
; -DPIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY ;v2 Lower Memory
; -DPIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH ;v2 Higher Bandwidth
only takes affect with 2.4.1 and above
im using PIO_FRAMEWORK_ARDUINO_LWIP_HIGHER_BANDWIDTH and cannot complain (together with 2.3.0).
I quite sure these defines only work with 2.4.1
u r right like always :X
its in this build scripts from platformio since 1.7.0 (2.4.1).
Running tests for some days now and they are just fine.
I will enforce the default option in pio and Arduino IDE to be PIO_FRAMEWORK_ARDUINO_LWIP_HIGHER_BANDWIDTH for 2.4.1
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.