Understanding and solving errors in monitor

Efisio
Posts: 6
Joined: Fri Jul 03, 2020 7:39 am

Understanding and solving errors in monitor

Postby Efisio » Mon Aug 17, 2020 12:07 pm

Hello

I got this error on monitor (more details bellow)

Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled.
Core 0 register dump:
PC : 0x400d1480 PS : 0x00060a30 A0 : 0x800d1962 A1 : 0x3ffbb820
A2 : 0x3ffc8614 A3 : 0x00000000 A4 : 0x000007ee A5 : 0x00000000
A6 : 0x3ffc8b04 A7 : 0x00000000 A8 : 0x000007ee A9 : 0x3ffbb7d0
A10 : 0x00000006 A11 : 0x3ffbb9f4 A12 : 0x0000002c A13 : 0x3ffbb85c
A14 : 0x40130100 A15 : 0x000007ee SAR : 0x00000004 EXCCAUSE: 0x0000001c
EXCVADDR: 0x000007ee LBEG : 0x400014fd LEND : 0x4000150d LCOUNT : 0xffffffff

The documentations says it is due to a failed attemp to read memory, but also says:
If this address is zero, it usually means that application attempted to dereference a NULL pointer
Okay, I got 0x000007ee so for me it is close to zero (is it?)

I'm working on a sniffer, to keep it simple I initialize Wifi, then Promiscuous mode, then CSI gatthering. When I set the callback for CSI events I create a queue (using xQueueCreate/xQueueSendFromISR/xQueueReceive) with received CSI information.

The ESP response is not very stable as sometimes it does what it is supposed to do (just print the CSI information) but sometimes the it reboots with the error above. So my guess is that sometimes the queue has nothing to show, I don't get it :(

ESP_Sprite
Posts: 9766
Joined: Thu Nov 26, 2015 4:08 am

Re: Understanding and solving errors in monitor

Postby ESP_Sprite » Mon Aug 17, 2020 1:36 pm

Look at the backtrace; it usually tells you exactly *where* the problem is.

Efisio
Posts: 6
Joined: Fri Jul 03, 2020 7:39 am

Re: Understanding and solving errors in monitor

Postby Efisio » Thu Sep 17, 2020 9:00 am

Thanks, once I knew what to search for I found this tool

https://github.com/janLo/EspArduinoExceptionDecoder

Who is online

Users browsing this forum: Baidu [Spider], jcolebaker and 75 guests