boot loop after fresh firmware install on ESP8266MOD 12-F and ESP-12E
I buy some nodeMCU on ebay,
i load the last micropython (1.12)... at boot i saw REPL and after 8s the device boot.
I find some info in the forum (here)... I have to run this :
import network; network.WLAN(network.AP_IF).active(False)
and it works very well. All my board could actually work with micropython if i disable wifi AP mode at start.
i try STA mod and it works well but if i try AP mod, the boot loop start again...
So i tried to flash with arduino an AP mode test program and ... It works !
Obviously there is somethings wrong with this board when AP mode start with micropython.
Some people in the forum says that it could be a lack of power and to solve that, put a 100µF cap between NE and ground... i don't try this because it works with arduino without it... That's why i think that it's not an hardware problem.
is someone interested by my problem ?
Changing AP interface MAC address using bytes results in a crash, but bytearray works
Hello!
We have a Python module named "test" and following code in __init__.py:
import network
network.WLAN(network.AP_IF).active(True)
network.WLAN(network.AP_IF).config(mac=bytearray(b'\x9e\x9c\x1f\x00\x00\x00')) # <- Works
network.WLAN(network.AP_IF).config(mac=b'\x9e\x9c\x1f\x00\x00\x00') # <- Crashes
After freezing "test" module into the firmware and running import test, the ESP8266/ESP8285 crashes, but when you use bytearray it works (thanks to @jimmo). On the other hand, when you use bytes in the .py or .mpy files on the filesystem, everything works just fine.
"Dirty" build of lovely MicroPython fork by @glenn20:
MicroPython v1.19.1-espnow-8-g8d6473316-dirty on 2023-04-27; ESP module (1M) with ESP8266