You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've just experienced a repeatable error that causes the ESP32 to reboot. I'm using ESPNOW and need to send to above 30 remote devices. I decided that the only way on the ESP32 was to delete peers from the list when it exceeded 15 peers. The following code:
while e.peer_count()[0]>=16: # Garbage collect the peer table
peers=e.get_peers()
oldesttime=time.time()
olderorb=b''
for peer in peers:
peertxt=binascii.hexlify(peer[0])
if peertxt in OrbLastSent:
if OrbLastSent[peertxt]<oldesttime:
olderorb=peer[0]
oldesttime=OrbLastSent[peertxt]
e.del_peer(olderorb)
Should scan a list of peers from the "orbs" table and pick the oldest to remove. Unfortunately when this code runs there is an exception that causes a reboot of the ESP32. I've commented out the del_peer line and the code runs fine, so it appears del_peer causes this unhandled exception. It is possible that there is some outbound transmission still going on I guess that might cause this? Messages are happening in fairly large batches so sometimes I needs to switch multiple in and out within a short period of time.
This is the error received from ESP32:
A fatal error occurred. The crash dump printed below may be used to help
determine what caused it. If you are not already running the most recent
version of MicroPython, consider upgrading. New versions often fix bugs.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I've just experienced a repeatable error that causes the ESP32 to reboot. I'm using ESPNOW and need to send to above 30 remote devices. I decided that the only way on the ESP32 was to delete peers from the list when it exceeded 15 peers. The following code:
Should scan a list of peers from the "orbs" table and pick the oldest to remove. Unfortunately when this code runs there is an exception that causes a reboot of the ESP32. I've commented out the del_peer line and the code runs fine, so it appears del_peer causes this unhandled exception. It is possible that there is some outbound transmission still going on I guess that might cause this? Messages are happening in fairly large batches so sometimes I needs to switch multiple in and out within a short period of time.
This is the error received from ESP32:
A fatal error occurred. The crash dump printed below may be used to help
determine what caused it. If you are not already running the most recent
version of MicroPython, consider upgrading. New versions often fix bugs.
To learn more about how to debug and/or report this crash visit the wiki
page at: https://github.com/micropython/micropython/wiki/ESP32-debugging
MPY version : v1.28.0 on 2026-04-06
IDF version : v5.5.1
Machine : Generic ESP32S3 module with ESP32S3
Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.
Core 1 register dump:
PC : 0x40056f8c PS : 0x00060b30 A0 : 0x8202af54 A1 : 0x3fcedc90
A2 : 0x3fcedca0 A3 : 0x00000000 A4 : 0x00000006 A5 : 0x3fcedca0
A6 : 0x00000001 A7 : 0x00000000 A8 : 0x00000000 A9 : 0x3fcedc60
A10 : 0x00000000 A11 : 0x0000000e A12 : 0x3fca5f40 A13 : 0x00000000
A14 : 0x3c161170 A15 : 0x3fcbf8a0 SAR : 0x00000013 EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000000 LBEG : 0x40056f5c LEND : 0x40056f72 LCOUNT : 0xffffffff
Backtrace: 0x40056f89:0x3fcedc90 0x4202af51:0x3fcedca0 0x4203071e:0x3fcedcd0 0x420381e5:0x3fcedcf0 0x420382af:0x3fcedd10 0x4037968e:0x3fcedd30 0x42030827:0x3fceddd0 0x420381e5:0x3fcede00 0x420381fa:0x3fcede20 0x4204933a:0x3fcede40 0x42049478:0x3fceded0 0x42027ece:0x3fcedf20
ELF file SHA256: 7debe90c6
Rebooting...
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0xc (RTC_SW_CPU_RST),boot:0xb (SPI_FAST_FLASH_BOOT)
Saved PC:0x40382876
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce2820,len:0xeac
load:0x403c8700,len:0xc28
load:0x403cb700,len:0x2ff8
entry 0x403c88ac
Beta Was this translation helpful? Give feedback.
All reactions