Need help with intermittent crashes

I have solved my issue so thought I would post what I did in case others are have similar problems. I have changed my device to a Guition ESP32-S3-4848S040 but the device was not the cause of the issue.

First I created a new ESP-IDF project based on the RGB_LCD example and updated to have the correct LCD and touch screen settings.

Then I added LVGL v9.2 and the esp_lvgl_port component.

You need to ensure LGVL operations need to be enclosed inside a lock/unlock (see below). I did not have to add any additional mutex code.

    lvgl_port_lock(0);
    // Add your LVGL code here
    lvgl_port_unlock();

I have since added WiFi logic using esp-now and had no issues.

Hope this helps someone. :slight_smile:

1 Like