Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled


i tried to debug then i realised this error occured when registering ILI9341 display using ILI9XXX.py driver i.e.

    **# Register the driver**
    **self.disp_drv.register()**

Am using Esp32-wrover-ie with GENERIC_SPIRAM firmware

Hi @microsparks !

I’m also running GENERIC_SPIRAM on ESP32 WROVER and I don’t see any problem.

  • Please show us all the scripts you are running including boot scripts.
  • Are you using the latest lv_micropython? Which commit hash?
  • Did you run git submodule update --init --recursive to get all the correct submodules?
  • What is the version of esp-idf you are using?
  • What was the make command line you used to build the firmware?
  • More details about your board: Flash size? ESP32 Chip version? Board vendor and details?
  • Did you make any change to the firmware? Changed any configuration?

Also, when you send us a backtrace please provide full parsing for it.
You can get it by passing the backtrace hex values to xtensa-esp32-elf-addr2line, like this:

xtensa-esp32-elf-addr2line -aipfC -e ./ports/esp32/build-GENERIC_SPIRAM/application.elf 0x... ... ..

#The Boot script

import json
from network import AP_IF, WLAN

f = open('credentials.json', 'r')
d = json.load(f)
f.close()
ssid = d['accesspoint']
password = d['wifi_password']
ap = WLAN(AP_IF)
ap.active(True)
ap.config(essid=ssid, password = password, authmode= 3)
import utelnetserver
utelnetserver.start()
import uftpd
uftpd.start()

#I run this from repl
import lvgl as lv
from ili9XXX import ili9341
from xpt2046 import xpt2046
disp = ili9341(clk=14, cs=27, dc=18, rst=19, power=23, backlight=32, miso=12, mosi= 21,rot=0x20,width=320, height=240)

Am using the latest lv_micropython
commit hash c4bf00a79c55f1e00703f99eeeb8220887ad6401

Yes i run git submodule update --init --recursive

Esp-idf v4.0.2

#make command
make -C mpy-cross
cd ports/esp32
make submodules
make LV_CFLAGS="-DLV_COLOR_DEPTH=16 -DLV_COLOR_16_SWAP=1" BOARD=GENERIC_SPIRAM deploy

#Chip Details
Espressif ESP32 Wrover ie
ESP32D0WDQ5 (revision 3)
4MB flash

No, i did not make any changes, i followed every instruction in README

#Backtrace

0x40237a74: apply_theme at /media/kali/424CDC134CDC0417/update/lv_micropython/lib/lv_bindings/lvgl/src/core/lv_theme.c:115
0x40237a7e: apply_theme at /media/kali/424CDC134CDC0417/update/lv_micropython/lib/lv_bindings/lvgl/src/core/lv_theme.c:116 (discriminator 1)
0x40133c55: lv_theme_apply at /media/kali/424CDC134CDC0417/update/lv_micropython/lib/lv_bindings/lvgl/src/core/lv_theme.c:54
0x4012e254: lv_obj_class_init_obj at /media/kali/424CDC134CDC0417/update/lv_micropython/lib/lv_bindings/lvgl/src/core/lv_obj_class.c:105
0x4012dceb: lv_obj_create at /media/kali/424CDC134CDC0417/update/lv_micropython/lib/lv_bindings/lvgl/src/core/lv_obj.c:194
0x4014959b: lv_disp_drv_register at /media/kali/424CDC134CDC0417/update/lv_micropython/lib/lv_bindings/lvgl/src/hal/lv_hal_disp.c:140
0x40107845: mp_lv_disp_drv_register at /media/kali/424CDC134CDC0417/update/lv_micropython/ports/esp32/build-GENERIC_SPIRAM/lv_mp.c:23676
0x40107645: lv_fun_builtin_var_call at /media/kali/424CDC134CDC0417/update/lv_micropython/ports/esp32/build-GENERIC_SPIRAM/lv_mp.c:100
0x400e4ab9: mp_call_function_n_kw at /media/kali/424CDC134CDC0417/update/lv_micropython/py/runtime.c:649
0x400e4c0a: mp_call_method_n_kw at /media/kali/424CDC134CDC0417/update/lv_micropython/py/runtime.c:665
0x400e73c5: mp_execute_bytecode at /media/kali/424CDC134CDC0417/update/lv_micropython/py/vm.c:1090
0x400de884: mp_obj_gen_resume at /media/kali/424CDC134CDC0417/update/lv_micropython/py/objgenerator.c:200
0x400de8d0: gen_resume_and_raise at /media/kali/424CDC134CDC0417/update/lv_micropython/py/objgenerator.c:241
0x400de95d: gen_instance_iternext at /media/kali/424CDC134CDC0417/update/lv_micropython/py/objgenerator.c:260
0x400e4eee: mp_iternext_allow_raise at /media/kali/424CDC134CDC0417/update/lv_micropython/py/runtime.c:1220
0x4012318e: mp_builtin_next at /media/kali/424CDC134CDC0417/update/lv_micropython/py/modbuiltins.c:337
0x400de3a6: fun_builtin_1_call at /media/kali/424CDC134CDC0417/update/lv_micropython/py/objfun.c:71
0x400e4ab9: mp_call_function_n_kw at /media/kali/424CDC134CDC0417/update/lv_micropython/py/runtime.c:649
0x400e7316: mp_execute_bytecode at /media/kali/424CDC134CDC0417/update/lv_micropython/py/vm.c:1005
0x400de508: fun_bc_call at /media/kali/424CDC134CDC0417/update/lv_micropython/py/objfun.c:289
0x400e4ab9: mp_call_function_n_kw at /media/kali/424CDC134CDC0417/update/lv_micropython/py/runtime.c:649
0x400e4c0a: mp_call_method_n_kw at /media/kali/424CDC134CDC0417/update/lv_micropython/py/runtime.c:665
0x400e73c5: mp_execute_bytecode at /media/kali/424CDC134CDC0417/update/lv_micropython/py/vm.c:1090
0x400de508: fun_bc_call at /media/kali/424CDC134CDC0417/update/lv_micropython/py/objfun.c:289
0x400e4ab9: mp_call_function_n_kw at /media/kali/424CDC134CDC0417/update/lv_micropython/py/runtime.c:649
0x400e4c0a: mp_call_method_n_kw at /media/kali/424CDC134CDC0417/update/lv_micropython/py/runtime.c:665
0x400e73c5: mp_execute_bytecode at /media/kali/424CDC134CDC0417/update/lv_micropython/py/vm.c:1090
0x400de508: fun_bc_call at /media/kali/424CDC134CDC0417/update/lv_micropython/py/objfun.c:289
0x400e4ab9: mp_call_function_n_kw at /media/kali/424CDC134CDC0417/update/lv_micropython/py/runtime.c:649
0x40125ca2: closure_call at /media/kali/424CDC134CDC0417/update/lv_micropython/py/objclosure.c:56
0x400e4ab9: mp_call_function_n_kw at /media/kali/424CDC134CDC0417/update/lv_micropython/py/runtime.c:649
0x400e4c0a: mp_call_method_n_kw at /media/kali/424CDC134CDC0417/update/lv_micropython/py/runtime.c:665
0x400e3356: mp_obj_instance_make_new at /media/kali/424CDC134CDC0417/update/lv_micropython/py/objtype.c:347
0x400e27b1: type_call at /media/kali/424CDC134CDC0417/update/lv_micropython/py/objtype.c:996
0x400e4ab9: mp_call_function_n_kw at /media/kali/424CDC134CDC0417/update/lv_micropython/py/runtime.c:649
0x400e7316: mp_execute_bytecode at /media/kali/424CDC134CDC0417/update/lv_micropython/py/vm.c:1005
0x400de508: fun_bc_call at /media/kali/424CDC134CDC0417/update/lv_micropython/py/objfun.c:289
0x400e4ab9: mp_call_function_n_kw at /media/kali/424CDC134CDC0417/update/lv_micropython/py/runtime.c:649
0x400e4ae2: mp_call_function_0 at /media/kali/424CDC134CDC0417/update/lv_micropython/py/runtime.c:623
0x400f8122: parse_compile_execute at /media/kali/424CDC134CDC0417/update/lv_micropython/lib/utils/pyexec.c:116
0x400f84ed: pyexec_file at /media/kali/424CDC134CDC0417/update/lv_micropython/lib/utils/pyexec.c:672
0x400f8551: pyexec_file_if_exists at /media/kali/424CDC134CDC0417/update/lv_micropython/lib/utils/pyexec.c:684
0x400d7f96: mp_task at /media/kali/424CDC134CDC0417/update/lv_micropython/ports/esp32/main.c:146

Please add right after import lvgl as lv:

lv.init()

Let me know if it helps.

Thank you very much
its help, you guys have done a really good job, i admire your efforts

1 Like