Help understanding crash reports....

revolt_randy
Posts: 5
Joined: Sat Feb 06, 2021 5:29 am

Help understanding crash reports....

Postby revolt_randy » Sat Feb 06, 2021 6:43 am

Hi all!

I'm looking for help in understanding this crash report I am getting:

Code: Select all

Guru Meditation Error: Core  0 panic'ed (LoadProhibited). Exception was unhandled.
Core 0 register dump:
PC      : 0x40092577  PS      : 0x00060633  A0      : 0x80092b75  A1      : 0x3ffe0dd0  
A2      : 0x3ffc6cb8  A3      : 0x0000005c  A4      : 0x3ffdeb04  A5      : 0x00000001  
A6      : 0x00060020  A7      : 0x00000000  A8      : 0x00000001  A9      : 0xef7bef7b  
A10     : 0x3ffdf7a0  A11     : 0x00000000  A12     : 0x3ffdf7a4  A13     : 0x3ffdea98  
A14     : 0x000009b0  A15     : 0x00000000  SAR     : 0x00000003  EXCCAUSE: 0x0000001c  
EXCVADDR: 0xef7bef7b  LBEG    : 0x400012c5  LEND    : 0x400012d5  LCOUNT  : 0xfffffffc  

Backtrace: 0x40092577:0x3ffe0dd0 0x40092b72:0x3ffe0df0 0x40084b24:0x3ffe0e10 0x40084b59:0x3ffe0e30 0x400866d5:0x3ffe0e50 0x4000beaf:0x3ffe0e70 0x4008eede:0x3ffe0e90 0x4008f124:0x3ffe0eb0 0x400867a8:0x3ffe0ed0 0x400867d8:0x3ffe0ef0 0x40086929:0x3ffe0f20 0x400f2777:0x3ffe0f40 0x400ed125:0x3ffe1200 0x400ea850:0x3ffe1250 0x400906b5:0x3ffe1280 0x4008f589:0x3ffe12b0 0x400db00d:0x3ffe12d0 0x400d9e39:0x3ffe12f0 0x4017bfa6:0x3ffe1310 0x400d42a2:0x3ffe1330 0x400d4355:0x3ffe1350 0x400d4963:0x3ffe1370 0x400d49fd:0x3ffe1390 0x400d3c11:0x3ffe13c0 0x4008f69d:0x3ffe13e0

Rebooting...
ets Jun  8 2016 00:22:57
I get this message when my code calls a function from the TFT_eSPI Library - https://github.com/Bodmer/TFT_eSPI. The function I'm calling copies the data of the display into a buffer. The code that causes the error msg is running on core1, so why is core0 involved?

Here's what I am using: ESP32 WROOM and 2.8in spi LCD display. I wrote a class to handle displaying a popup window on the LCD. When the class is used to draw a popup window, it copies the current display data to a buffer. When the popup window closes, the display data stored in the buffer is copied back to the LCD. The code I wrote to do this works fine, as stand alone code. The problem happens when the code was moved to a more complex project.

I am running on core0 code that handles a 3G cell connection via an adafruit 3G module (a simCom5320A module) and I have experienced problems coding for both cores before. But this one has me a bit baffled...

Can someone point me in the direction I need to be looking at?? Should I be looking at FreeRTOS??

Thanks for any help,
Randy

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

Re: Help understanding crash reports....

Postby ESP_Sprite » Sat Feb 06, 2021 9:07 am

Hard to say, might be something like memory corruption done by either core tripping up something on core 0. Try decoding the backtrace, perhaps that can give you more info.

revolt_randy
Posts: 5
Joined: Sat Feb 06, 2021 5:29 am

Re: Help understanding crash reports....

Postby revolt_randy » Sun Feb 07, 2021 5:43 am

Thanks ESP_Sprite!

The EspExceptionDecoder tells me that after copying screen data to the buffer, on core1, the very next call to a library function on core0 is what causes the crash. I did read up on this: https://docs.espressif.com/projects/esp ... prohibited as that is the error I am having.

If this is a memory error, how do I track one of those down on an ESP32? Got any links to point me in the right direction?

Thanks for any help,
Randy

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

Re: Help understanding crash reports....

Postby ESP_Sprite » Sun Feb 07, 2021 6:26 am

Not sure how you would do that specifically on Arduino... however, for ESP-IDF, we have a page that describes some techniques, perhaps you can apply some to your Arduino project as well.

revolt_randy
Posts: 5
Joined: Sat Feb 06, 2021 5:29 am

Re: Help understanding crash reports....

Postby revolt_randy » Sat Feb 13, 2021 6:22 am

Thanks again for giving me direction.

For now, I have just coded around this problem. I have a generic FT2232HL Board on order to use as a debugger and I'm ditching the arduino IDE.

Any recommendations on an IDE that supports debugging?

Thanks,
Randy

Who is online

Users browsing this forum: Majestic-12 [Bot] and 40 guests