martinberlin / lvgl_epaper_drivers

Drivers for Espressif to be used with LVGL and epapers using epdiy ESP32S3 controller (v7 fastest Board). In progress
https://www.tindie.com/search/?q=Kindle
MIT License
15 stars 4 forks source link

L58 touch controller cannot start. #4

Closed lanistor closed 1 year ago

lanistor commented 2 years ago

When we set touch controller to L58, the error will accour and then will crash:

I (12428) L58: 158 init0) Touch initialized
I (12428) gpio: GPI0[16]1 InputEn: 11 OutputEn: 0l OpenDrain: 0l Pullup: 11 Pulldown: 0l Intr:1
Guru Meditation Error: Core 1 panic'ed (LoadProhibited).
Exception was unhandled.
Core 1 register dump:
PC
: 0x40092263 PS
0x00060733 A0
: 0x80092d4c A1
0x3fffda40
0x40092263: block_size at /Users/Shared/SDK/esp/esp-idf/components/heap/heap_tlsf_block_functions.h:75
(inlined by) block_locate_free at /Users/Shared/SDK/esp/esp-idf/components/heap/heap_tlsf.c:447
(inlined by) tlsf_malloc at /Users/Shared/SDK/esp/esp-idf/components/heap/heap_tlsf.c: 757
Az
0x3f800014 A3
A6
0x00060720 A7
A10
: Oxffff0000
A11
A14
: 0x007af028 A15
EXCVADDR: 0x02000004
LBEG
0×000bd800 A4
ex00000001
A8
0x0000000d
A12
ox003fffff SAR
0x4000c2e0
LEND
0x3§fb3d74
A5
0x00060723
0x02000000
Ag
Ox00000010
0x0000002c A13
0×3f£49010
0x0000001O EXCCAUSE: 0x0000001C
0x4000c2f6
LCOUNT
Oxffffffff
Backtrace:0x40092260:0x3fffda400x40092d49:0x3fffda600x40082451:0x3fffda800x40082479:0x3fffdaa00x400dalez:0x3fffda
c0 0x400907b1:0x3fffdb30
0x40092260: block_locate_free at /Users/Shared/SDK/esp/esp-idf/components/heap/heap_tlsf.c:445
(inlined by) tlsf_malloc at /Users/Shared/SDK/esp/esp-idf/components/heap/heap_tlsf.c:757
0x40092d49: multi_heap_malloc_implat/Users/Shared/SDK/esp/esp-idf/components/heap/multi_heap.c:189
0x40082451: heap_caps_malloc_base at /Users/Shared/SDK/esp/esp-idf/components/heap/heap_caps.c: 139
0x40082479: heap_caps_malloc at /Users/Shared/SDK/esp/esp-idf/components/heap/heap_caps.c: 159
0x400dalez: gui_task(void*) at /Users/lanistor/C/flicker/Hardware-EInk_Desktop_Display/main/main.cpp:83
0x400907b1: vPortTaskWrapper at /Users/Shared/SDK/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/po
rt.c:132

No matter if the touch screen device is attach to the PCB board or not.

So, had L58 touch driver been tested fine? Or It's my problem?

Set to GT911 will not cause crash.

martinberlin commented 1 year ago

No idea what is going on there but it seems like some heap memory corruption. I tested it time ago with my old Lilygo and runs fine

lanistor commented 1 year ago

No idea what is going on there but it seems like some heap memory corruption. I tested it time ago with my old Lilygo and runs fine

Yeah, this had be resolved.