Crash at wlan.active(True)

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
User avatar
n0npr0phet
Posts: 1
Joined: Mon Jan 21, 2019 4:06 pm

Crash at wlan.active(True)

Post by n0npr0phet » Mon Jan 21, 2019 5:03 pm

Hi All,
I have two ESP32 boards that are slightly different. The first from AZDelivery.de works great. The second from miniduino which slightly stouter (no 3v3 and gnd pins at the back) crashes with wifi usage. Using the standard do_connect() script and typing in the lines one at a time it crashes at wlan.active(True). I read some posts here talking about power, capacitance, and cables and so I ran the do_connect() script on both boards on two different computers with two different usb cables and the problem follows the miniduino board.


Finally I used the Arduino IDE (WifiClient example) and was able to run and boot without issue (but without micropython :( or honor :) )

I also tried the lobo fork and it crashes too.

When it crashes it sometimes says something about RF calibration but it always kills the serial connection.

[code]>>> do_connect()
I (108259) wifi: wifi driver task: 3ffcae0c, prio:23, stack:3584, core=0
I (108259) wifi: wifi firmware version: 7aac1f9
I (108259) wifi: config NVS flash: enabled
I (108259) wifi: config nano formating: disabled
I (108269) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (108279) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (108299) wifi: Init dynamic tx buffer num: 32
I (108299) wifi: Init data frame dynamic rx buffer num: 64
I (108299) wifi: Init management frame dynamic rx buffer num: 64
I (108309) wifi: Init static rx buffer size: 1600
I (108309) wifi: Init static rx buffer num: 10
I (108309) wifi: Init dynamic rx buffer num: 0
[/code]

espefuse does show a mac address.

I was ready to switch to Arduino but then I put a huge cap from 3v3 to gnd and the problem was resolved. With the cap in place days of hassle melted away. Clearly the second board lacked capacitance.

Why does the Arduino built firmware run without the big capacitor?

yssob88
Posts: 1
Joined: Sun Feb 03, 2019 4:22 pm

Re: Crash at wlan.active(True)

Post by yssob88 » Sun Feb 03, 2019 4:59 pm

Hi,

I do have the same problem. Wemos lolin32 with OLED, bought from banggood. I know I´ve done a mistake before, as I flashed it with micropython for esp8266 and with the wrong command options at esptool.
After that I did it right, but I cannot get the wifi working:

[code]
>>> import network
>>> station = network.WLAN(network.STA_IF)
I (151807) wifi: wifi firmware version: ebd3e5d
I (151807) wifi: config NVS flash: enabled
I (151807) wifi: config nano formating: disabled
I (151807) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (151817) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (151837) wifi: Init dynamic tx buffer num: 32
I (151837) wifi: Init data frame dynamic rx buffer num: 64
I (151837) wifi: Init management frame dynamic rx buffer num: 64
I (151847) wifi: wifi driver task: 3ffcb08c, prio:23, stack:4096
I (151847) wifi: Init static rx buffer num: 10
I (151857) wifi: Init dynamic rx buffer num: 0
I (151857) wifi: wifi power manager task: 0x3ffcfcdc prio: 21 stack: 2560
W (151867) phy_init: failed to load RF calibration data (0x1102), falling back to full calibration

Brownout detector was triggered

Guru Meditation Error: Core 0 panic'ed (IllegalInstruction)
. Exception was unhandled.
[/code]

[quote]
I was ready to switch to Arduino but then I put a huge cap from 3v3 to gnd and the problem was resolved. With the cap in place days of hassle melted away. Clearly the second board lacked capacitance.
[/quote]
Is it a solution also for my problem?
What capacitor did you try?
Let you stay it in place permanently?

And there is another problem. Every time I had a connection to it with ampy, esptool, terminal or so on, I cannot establish a new connection without restarting the board.
I tried also a Wemos D1 mini with micropython. It is working fine.

All help is welcome
Greetings, Schöne Grüße....
Peter

Post Reply