ESP32-S3 Guru meditation error using LVGL library
Posted: Fri Nov 24, 2023 9:59 am
Hi, I'm trying to use LVGL to make a GUI for a 3.5" TFT Capacitive touch display. I have tested the display with arduino, so I know it is set up correctly. I'm running the examle_get_started_1.c file from the LVGL version 8.3 branch (https://github.com/lvgl/lvgl/tree/release/v8.3) In examples/get_started. I have done all the set-up of LVGL and I can build the program, but when I flash the code, I get the following error:
Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled.
Core 0 register dump:
PC : 0x4200a139 PS : 0x00060230 A0 : 0x82009935 A1 : 0x3fca4280
0x4200a139: lv_obj_mark_layout_as_dirty at C:/Users/hugo/sample_project/components/lvgl/src/core/lv_obj_pos.c:290
A2 : 0x00000000 A3 : 0x3c03678c A4 : 0x0000003a A5 : 0x3c0367b8
A6 : 0x00000000 A7 : 0x00000002 A8 : 0x3fca06c4 A9 : 0x3fca4260
A10 : 0x00000000 A11 : 0x3fc94c84 A12 : 0x00000024 A13 : 0x0000ff00
A14 : 0x00ff0000 A15 : 0xff000000 SAR : 0x00000012 EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000022 LBEG : 0x400556d5 LEND : 0x400556e5 LCOUNT : 0xfffffff5
0x400556d5: strlen in ROM
0x400556e5: strlen in ROM
Backtrace: 0x4200a136:0x3fca4280 0x42009932:0x3fca42a0 0x420145b3:0x3fca42c0 0x420126fe:0x3fca42e0 0x42008996:0x3fca4300 0x4200898b:0x3fca4320 0x4202508f:0x3fca4340 0x4037bf6d:0x3fca4370
I have followed the backtraces and found that the error leads to a pointer. I have reads that the error:
'Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled.'
Has to do with pointers poining to NULL, but I do not know how to fix it. I think my issue has to do with how I configured the LVGL library and specifically with the memory, as this is where the error occurs. I am very uncertain though and I hope that someone that has a bit more knowledge about this could help me.
Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled.
Core 0 register dump:
PC : 0x4200a139 PS : 0x00060230 A0 : 0x82009935 A1 : 0x3fca4280
0x4200a139: lv_obj_mark_layout_as_dirty at C:/Users/hugo/sample_project/components/lvgl/src/core/lv_obj_pos.c:290
A2 : 0x00000000 A3 : 0x3c03678c A4 : 0x0000003a A5 : 0x3c0367b8
A6 : 0x00000000 A7 : 0x00000002 A8 : 0x3fca06c4 A9 : 0x3fca4260
A10 : 0x00000000 A11 : 0x3fc94c84 A12 : 0x00000024 A13 : 0x0000ff00
A14 : 0x00ff0000 A15 : 0xff000000 SAR : 0x00000012 EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000022 LBEG : 0x400556d5 LEND : 0x400556e5 LCOUNT : 0xfffffff5
0x400556d5: strlen in ROM
0x400556e5: strlen in ROM
Backtrace: 0x4200a136:0x3fca4280 0x42009932:0x3fca42a0 0x420145b3:0x3fca42c0 0x420126fe:0x3fca42e0 0x42008996:0x3fca4300 0x4200898b:0x3fca4320 0x4202508f:0x3fca4340 0x4037bf6d:0x3fca4370
I have followed the backtraces and found that the error leads to a pointer. I have reads that the error:
'Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled.'
Has to do with pointers poining to NULL, but I do not know how to fix it. I think my issue has to do with how I configured the LVGL library and specifically with the memory, as this is where the error occurs. I am very uncertain though and I hope that someone that has a bit more knowledge about this could help me.