I currently encounter the situation, that I need to self compile my ESP8266 port. But in the first round (before I change anything)
I just want to compile ESP8266 MyPy and verify that it behaves same like the precompiled binary.
Anyway, my little SensorApp runs pretty stable on esp8266-20191220-v1.12.bin binary for many days, including deep sleep, everything is perfect.
Now I followed the build instructions to compile from https://www.microdev.it/wp/en/2018/06/2 ... r-esp8266/
I get out a build-GENERIC/firmware-combined.bin which provides a wonderful REPL on serial interface, esp.check_firmware() tells me that the binary shall be OK.
Now if I download my Python scripts and if run it, I get immediately:>>> import esp
>>> esp.check_fw()
size: 591892
md5: e146520f3fb8d9e1361b3455d3d0ad7d
True
Obviously in the default checkout is something enabled, that eats up my memory.����enter main.py
scandone
no dd-wrt_vap found, reconnect after 1s
Traceback (most recent call last):
File "main.py", line 2, in <module>
File "app.py", line 10, in <module>
File "sensornode.py", line 11, in <module>
MemoryError: memory allocation failed, allocating %u bytes
MicroPython v1.12-35-g1070984 on 2020-01-05; ESP module with ESP8266
Type "help()" for more information.
>>> reconnect
scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 1
cnt
What I have to do to replicate the standard binary?
Any help is apreciated,
Axel.