Closed imliubo closed 2 years ago
Hi @imliubo
Soft reset affects Micropython, but does not affect LVGL core, LVGL drivers and the hardware you are using. For soft reset to work correctly, you must first de-init LVGL, the LVGL drivers you are using and possibly the hardware.
My suggestion is to use hard reset instead (machine.reset()
)
Fixed by https://github.com/lvgl/lvgl/commit/6a8dd1a3b64ab62a7685f526e1b588334b7324d6 But this only fixes the assert you are experiencing on lv_style.c. You still need to de-init your m5/lcd driver first.
Confirmed, it was been fixed, thanks @amirgon !
Description When esp32 power on and init lvgl onece it works well, but when use "CTRL D" command try soft reboot MPY and init lvgl again will halt in lv_style.c line #190, which means it wiil stop at LV_ASSERT_HANDLER(define in lv_conf.h), can we avoid this? or if don't want halt here we can only change LV_ASSERT_HANDLER from while(1) to esp_restart() ?
I don't want restart esp32, so i'm here want ask some solution :), if I missed some things please tell me.
Full log