After getting the ebike demo up and running on this board.
I switched the SLS Project settings to “VS for development on PC”
changed the LVGL version to 9.2.2
Exported the UI files
forced ESP-IDF to LVGL v9.2.2
When it compiles, I get this error:
E:/path/ebike_demo/main/ui/ui.h:13:10: fatal error: lvgl/lvgl.h: No such file or directory
13 | #include “lvgl/lvgl.h”
There are two lvgl.h files in the lvgl_lvgl component. I changed the parth in ui.h to: #include “lvgl.h”
It compiled.
Is this error in the include path a bug?
Though it compiled, it crashed when executed on the target board:
Guru Meditation Error: Core 0 panic’ed (StoreProhibited). Exception was unhandled.
Core 0 register dump:
PC : 0x4201b50f PS : 0x00060830 A0 : 0x8201c42d A1 : 0x3fcb8570
— 0x4201b50f: lv_draw_add_task at E:/path/ebike_demo/managed_components/lvgl__lvgl/src/draw/lv_draw.c:95
…
— Error: ClearCommError failed (PermissionError(13, ‘Access is denied.’, None, 5))
Its not clear where the incompatibility is.
ESP-IDF is pulling in LVGL 9.2.2
SLS is generating LVGL 9.2.2
The espressif LVGL_Port component is LVGL 9 compatible
I tired version LVGL 9.1.0; same fault
Hi, which ESP IDF version are you using? Since there is no official LVGL 9.2.2 support for ESP boards yet, it is not so clear how you can do this. Have you managed to run a LVGL 8.3 or 9.1 project?
ESP-IDF v5.4.
The esp_lvgl_port component does support LVGL 9.2
The esp_lvgl_port changelog shows it was supported 8 releases ago; v2.3.1, not sure when that was, but it appears it over 6 months ago. I’m using v2.5.0 which was released 6 days ago.
This issue was resolved: There was no permissions issue. The problem was LVGL ran out of memory. I increased the LV_MEM_SIZE_KILOBYTES parameter from 64K to 96K.
However, while this issue was resolved, the ui code is now triggering a watch dog and never displays anything. I have been working getting the JTAG debugger working to determine where the code is hung up.
We are in the middle of updating other boards, and we plan to update some ESP boards to ESP-IDF 5.4 next week. We will notify you in this post when it becomes available.