Path error in ui.h and crash

  • SquareLine Studio version: 1.5.1
  • Operating system: Win 10
  • Target hardware: ESP32-S3-EV-BOARD v1.1

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.

I disabled the watchdog and the code remained in a hung state

Note this example project was working fine with LVGL 8.3.11 and 8.4

Hello @split,

Unfortunately, these do not work yet with IDF 5.4. Please try version 5.1.2. Meanwhile, we are working on the 5.4 version.

Is there an ETA for ESP-IDF v5.4 compatibility?
Odd that the same project works fine under ESP-IDF v5.4 when LVGL v8.4 is targeted

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.

I did not see the connection with ESP-IDE version

I was able to get it working, with two key settings
Malloc Functions source: Standard C functions
LV_USE_OS: FREERTOS

THis is all LVGL 9.2.2 and ESP-IDE v5.4

Some elements do not display correctly still, but it 95% working