LVGL screen freezing/lagging after entering custom menu (Modbus RTU/TCP tasks running)

What do you want to achieve?

The system includes a Modbus TCP/IP (Wi-Fi) slave mode, a Modbus RTU (UART) master mode, and an LVGL task. (There are a few other tasks as well, but they perform very simple functions.) I’ve been working on this for a long time. I just can’t seem to fix the screen freezing issue when I enter the menu. Everything runs smoothly when returning to the main screen. As shown in the video, I was able to make a smooth transition three times when the system started up, but then the smoothness disappeared and it started freezing. I designed the main screen using Squareline. I coded the settings section myself. I need your help.

What have you tried so far?

-“Changed the ‘buffer’ size,”

-“I used a ‘single-double buffer,’”

-“I increased the task priority.”

Code to reproduce

/*You code here*/

Screenshot and/or video

https://drive.google.com/drive/folders/1EZUWoITbV9XMNIeyx3HkqycfyaPHrXkL?usp=sharing

Environment

  • MCU/MPU/Board: ESP32 P4 Dev Kit
  • LVGL version: V9.3.0

Hi @mstfablbl. Have you tried seeing the delays for each task? Are you using psram or iram? You can try switch between to test