-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Description
Hardware:
Board: Wemos Lolin32
Core Installation/update date: on commit a710896 from master
IDE name: Arduino IDE
Flash Frequency: 40Mhz
Upload Speed: 921600
Description:
Hi,
I've been busy over the past days to port an existing project I did on an Arduino Pro Mini to an ESP32.
I'm using the wemos Lolin32 board.
I've been getting Guru meditation errors and can't track down what is causing them.
I get the following error in the serial monitor:
ets Jun 8 2016 00:22:57
rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0010,len:4
load:0x3fff0014,len:588
load:0x40078000,len:0
load:0x40078000,len:9768
entry 0x400789b8
Ready!
Started at: 208Guru Meditation Error of type LoadProhibited occurred on core 1. Exception was unhandled.
Register dump:
PC : 0x40086bba PS : 0x00060933 A0 : 0x80082416 A1 : 0x3ffccf10
A2 : 0x3ffc6d30 A3 : 0x00000010 A4 : 0x3ffc8118 A5 : 0x000003ff
A6 : 0x7ff00000 A7 : 0x40590000 A8 : 0x0000007c A9 : 0xfffc81e8
A10 : 0x00000001 A11 : 0x3ffc8118 A12 : 0x0000007c A13 : 0x3ffc6d5c
A14 : 0x00000001 A15 : 0x3ffc812b SAR : 0x0000001a EXCCAUSE: 0x0000001c
EXCVADDR: 0xfffc81e8 LBEG : 0x400d1178 LEND : 0x400d1188 LCOUNT : 0x00000000
Backtrace: 0x40086bba:0x3ffccf10 0x40082413:0x3ffccf30 0x400826f9:0x3ffccf50 0x4000beaf:0x3ffccf70 0x400d2785:0x3ffccf90 0x400d27d0:0x3ffccfb0 0x400d27f1:0x3ffccfd0 0x400d287d:0x3ffccff0 0x400d289e:0x3ffcd010 0x400d0fab:0x3ffcd030 0x400d0c3b:0x3ffcd060 0x400f211d:0x3ffcd080
Rebooting...
When I translate this with EspExceptionDecoder I get the following stack trace:
0x40086bba: is_free at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/heap/./multi_heap.c line 91
: (inlined by) multi_heap_malloc at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/heap/./multi_heap.c line 305
0x400d1178: LightsControllerClass::HandleStartSequence() at C:\Users\Alex\AppData\Local\Temp\arduino_build_314089\sketch/LightsController.cpp line 146
0x400d1188: LightsControllerClass::HandleStartSequence() at C:\Users\Alex\AppData\Local\Temp\arduino_build_314089\sketch/LightsController.cpp line 153
0x40086bba: is_free at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/heap/./multi_heap.c line 91
: (inlined by) multi_heap_malloc at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/heap/./multi_heap.c line 305
0x40082413: heap_caps_malloc at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/heap/./heap_caps.c line 123
0x400826f9: _malloc_r at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/newlib/./syscalls.c line 28
0x400d2785: String::changeBuffer(unsigned int) at D:\OneDrive\Projects\Arduino\hardware\espressif\esp32\cores\esp32/WString.cpp line 739 (discriminator 2)
0x400d27d0: String::reserve(unsigned int) at D:\OneDrive\Projects\Arduino\hardware\espressif\esp32\cores\esp32/WString.cpp line 739 (discriminator 2)
0x400d27f1: String::copy(char const*, unsigned int) at D:\OneDrive\Projects\Arduino\hardware\espressif\esp32\cores\esp32/WString.cpp line 739 (discriminator 2)
0x400d287d: String::operator=(String const&) at D:\OneDrive\Projects\Arduino\hardware\espressif\esp32\cores\esp32/WString.cpp line 739 (discriminator 2)
0x400d289e: String::String(String const&) at D:\OneDrive\Projects\Arduino\hardware\espressif\esp32\cores\esp32/WString.cpp line 739 (discriminator 2)
0x400d0fab: LCDControllerClass::Main() at C:\Users\Alex\AppData\Local\Temp\arduino_build_314089\sketch/LCDController.cpp line 77 (discriminator 2)
0x400d0c3b: loop() at D:\OneDrive\Projects\FlyballETS-Software/FlyballETS-Software.ino line 213
0x400f211d: loopTask(void*) at D:\OneDrive\Projects\Arduino\hardware\espressif\esp32\cores\esp32/main.cpp line 18 (discriminator 1)
From what I read here it seems a regular string declaration, more specifically this one at LCDController.cpp:103
Now this is where my knowledge starts to fade, I have no idea how to debug this problem which seems to be coming from the ESP32 arduino core.
Sketch:
The code that I currently upload to the ESP32 is this code:
https://github.com/vyruz1986/FlyballETS-Software/tree/065ae4a017850418ed70108512f368284a724df2