← index #6675Issue #3946
Related · high · value 1.136
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

post flash AP_IF behavior not consistent with documentation on ESP32

closedby ezeeetmopened 2018-07-14updated 2024-09-29

From the docs:

After a fresh install and boot the device configures itself as a WiFi access point (AP) that you can connect to. The ESSID is of the form MicroPython-xxxxxx where the x’s are replaced with part of the MAC address of your device (so will be the same everytime, and most likely different for all ESP8266 chips). The password for the WiFi is micropythoN (note the upper-case N). Its IP address will be 192.168.4.1 once you connect to its network.

However, a fresh install on an ESP32 does not enable the AP at all.

Manually enabling the AP works with the following:

>>> ap_if = network.WLAN(network.AP_IF)
>>> ap_if.active(True)

This does bring up the AP to which you can connect, but:

  • the ESSID is not MicroPython-xxxxxx , it is ESP_085559 (anybody know where 085559 comes from? Its not a MAC address or part of a MAC address)
  • authentication is open (no password required)

Of course, the ESSID, auth type, and password can be further set with the ap_if.config() methods. But, they are not being set automatically after a fresh install as expected per the docs.

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