Edit: Not caused by ESP-Now code. See
this bug report. Solution: Use ESP-IDF 4.2+.
WARNING! The code from the PR "bricked" (broke the wifi radio) on two different ESP32s. (ESP32-WROVER-IE 8MB and ESP32-WROVER-E 16MB.) It starts with the errors below on wlan.connect(). The first time I got it, I couldn't fix it. I counted that chip as dead. Tried again with a second chip, and I got these errors again. I ran erase_flash and flashed it to the standard esp32spiram-20220117-v1.18.bin, unplugged from USB, and it came back to life.
Happened a third time and the second ESP32 is also now bricked (no wifi)
Edit: I tried both ESP32 again and both are now functional, after several unplugs and plugs. So it appears to only brick them for a few minutes or hours, or requires several unplugs.
Code: Select all
E (45979) wifi:esf_buf: t=2 l=76 max:32, alloc:32 no eb, TXQ_BLOCK=0
W (45979) wifi:alloc eb len=76 type=2 fail, heap:151108
W (45979) wifi:m f probe req l=0
E (46099) wifi:esf_buf: t=2 l=76 max:32, alloc:32 no eb, TXQ_BLOCK=0
W (46099) wifi:alloc eb len=76 type=2 fail, heap:151108
W (46099) wifi:m f probe req l=0
E (46229) wifi:esf_buf: t=2 l=76 max:32, alloc:32 no eb, TXQ_BLOCK=0
W (46229) wifi:alloc eb len=76 type=2 fail, heap:151108
W (46229) wifi:m f probe req l=0
E (47079) wifi:esf_buf: t=2 l=76 max:32, alloc:32 no eb, TXQ_BLOCK=0
W (47079) wifi:alloc eb len=76 type=2 fail, heap:151184
W (47079) wifi:m f probe req l=0
E (48809) wifi:esf_buf: t=2 l=76 max:32, alloc:32 no eb, TXQ_BLOCK=0
W (48809) wifi:alloc eb len=76 type=2 fail, heap:151108
W (48809) wifi:m f probe req l=0
E (48939) wifi:esf_buf: t=2 l=76 max:32, alloc:32 no eb, TXQ_BLOCK=0
W (48939) wifi:alloc eb len=76 type=2 fail, heap:151108
W (48939) wifi:m f probe req l=0
E (49059) wifi:esf_buf: t=2 l=76 max:32, alloc:32 no eb, TXQ_BLOCK=0
W (49059) wifi:alloc eb len=76 type=2 fail, heap:151108
W (49059) wifi:m f probe req l=0
E (49189) wifi:esf_buf: t=2 l=76 max:32, alloc:32 no eb, TXQ_BLOCK=0
W (49189) wifi:alloc eb len=76 type=2 fail, heap:151108
W (49189) wifi:m f probe req l=0
E (49309) wifi:esf_buf: t=2 l=76 max:32, alloc:32 no eb, TXQ_BLOCK=0
W (49309) wifi:alloc eb len=76 type=2 fail, heap:151108
W (49309) wifi:m f probe req l=0
E (49439) wifi:esf_buf: t=2 l=76 max:32, alloc:32 no eb, TXQ_BLOCK=0
W (49439) wifi:alloc eb len=76 type=2 fail, heap:151108
W (49439) wifi:m f probe req l=0
E (50279) wifi:esf_buf: t=2 l=76 max:32, alloc:32 no eb, TXQ_BLOCK=0
W (50279) wifi:alloc eb len=76 type=2 fail, heap:151052
W (50279) wifi:m f probe req l=0
I then ran erase_flash and flashed it to the standard esp32spiram-20220117-v1.18.bin, unplugged from USB, but now it's bricked
Code: Select all
MicroPython v1.18 on 2022-01-17; ESP32 module (spiram) with ESP32
Type "help()" for more information.
>>> import network
>>> sta_if = network.WLAN(network.STA_IF)
>>> sta_if.active(True)
>>> sta_if.connect('My SSID', 'Passphrase')
E (83336) wifi:sta is connecting, return error
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: Wifi Internal Error
>>>