Newbie: ESP32 GENERIC crashes at boot

Trying to compile my first lv_micropython:

  • hardware is ESP32-D0WDQ6 (revision 1) (a Wemos Lolin32 Lite)

  • I can successfully build a working vanilla micropython from 1.18 on the same setup with the same ESP-IDF 4.4

  • using the current lv_micropython git head, but also tried a few commits earlier

  • building for the GENERIC board, following the instructions in the README, haven’t touched anything else

  • device is always stuck in a boot loop with the following output:

any pointer where to get started?

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:2
load:0x3fff0030,len:4344
load:0x40078000,len:13816
load:0x40080400,len:3340
entry 0x40080618
Guru Meditation Error: Core  0 panic'ed (StoreProhibited). Exception was unhandled.

Core  0 register dump:
PC      : 0x401924aa  PS      : 0x00060233  A0      : 0x800d83e9  A1      : 0x3ffd3eb0  
A2      : 0x00000000  A3      : 0x00000000  A4      : 0x3ffb77ec  A5      : 0x0000040e  
A6      : 0x3ffd3ee0  A7      : 0x3ffbf750  A8      : 0x00000000  A9      : 0x3ffd3e80  
A10     : 0x00000000  A11     : 0x0000040e  A12     : 0x4008325c  A13     : 0x00000000  
A14     : 0x3ffd3ee0  A15     : 0x3ffc38c4  SAR     : 0x00000013  EXCCAUSE: 0x0000001d  
EXCVADDR: 0x00000008  LBEG    : 0x4000c46c  LEND    : 0x4000c477  LCOUNT  : 0xffffffff  


Backtrace:0x401924a7:0x3ffd3eb00x400d83e6:0x3ffd3ee0 0x400d8274:0x3ffd3f10 




ELF file SHA256: d30925357a347e1d

Rebooting...


0x401924a7: uart_isr_register at /storage/Develop/esp/esp-idf/components/driver/uart.c:594
0x400d83e6: uart_init at /storage/Develop/esp/lv_micropython/lv_micropython/ports/esp32/build-GENERIC/../uart.c:41
0x400d8274: mp_task at /storage/Develop/esp/lv_micropython/lv_micropython/ports/esp32/build-GENERIC/../main.c:96


Hi @hobbes !

Please parse the backtrace.
See: Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled

Isn’t that at the end of the dump? Or you mean something else?

The backtrace you provided is not parsed. Please use xtensa-esp32-elf-addr2line to parse it.
Please read the link I sent you above.

This is the output:

0x401924a7: uart_isr_register at /storage/Develop/esp/esp-idf/components/driver/uart.c:594
0x400d83e6: uart_init at /storage/Develop/esp/lv_micropython/lv_micropython/ports/esp32/build-GENERIC/../uart.c:41
0x400d8274: mp_task at /storage/Develop/esp/lv_micropython/lv_micropython/ports/esp32/build-GENERIC/../main.c:96

It’s already in the original post (although I edited it in later, ten minutes after the initial post). Or am I missing something fundamental?

Maybe I missed it, sorry.

I’m not sure what the problem is, but maybe you are not aligned to the correct ESP-IDF version.
lv_micropython is based on Micropython v1.18, which supports esp-idf v4.4, but of a certain commit:

Are you aligned to esp-idf 142bb32c50 ?

Oh, it has to be that. My bad for missing it! Sorry!
Also, thanks a lot!