← index #6675Issue #11357
Related · medium · value 0.419
QUERY · ISSUE

boot loop after fresh firmware install on ESP8266MOD 12-F and ESP-12E

openby nithiropened 2020-12-03updated 2024-09-13
port-esp8266

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 ?

CANDIDATE · ISSUE

Changing AP interface MAC address using bytes results in a crash, but bytearray works

openby inovatoriusopened 2023-04-27updated 2023-04-28
bug

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

test.zip

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied