Lvgl NuttX - Touch screen performance

Hi people, how are you?
I am starting a project using STM32F7g, running NuttX with Lvgl.
I tested the demo version of Lvgl for NuttX and compared to the demo version available at github (can’t post link here because I’m new member)
I noticed that the touch screen doesn’t respond well when running on NuttX but it works perfectly when it’s running without OS or running with FreeRTOS.

I made some videos to demonstrate this issue:

Lvgl & NuttX:

Lvgl & FreeRTOS:


Do you know where I can check in the code to see if the problem might be in the driver or widget?

The problem is very likely to be in the glue code between LittlevGL and the NuttX driver system. I don’t think this is specifically a LittlevGL issue since it works properly on other OSes/without an OS.

I agree with you embeddedt, but in the NuttX forum, they recommended talking directly to Gabor. I tried to talk to him by email but still got no answer, so I decided to write here in the forum

There are a couple of things I can think of in the meantime.

NuttX, as of today, is still using LittlevGL 5.3. That version was released over a year ago at this point. Perhaps there is an undiscovered bug that was never fixed. Are you using the same version of LittlevGL for all your comparisons?

It seems that the graphics are being drawn fast enough; the issue lies with the touchscreen response. I noticed in the NuttX video that you can’t even scroll the list at 0:21. I have the same board that you do so I might take a look at it if I get a chance.

It’s most probable that the NuttX implementation of the touchscreen driver is broken. One common issue that used to be a major stickler among new users (particularly since it was non-obvious) was that you have to still pass valid coordinates even on release. We automatically handle that in newer versions but I can’t remember whether or not 5.3 was one of them.

Just curious, which forum was that on? I follow the NuttX mailing lists periodically so I would probably have noticed a post relating to LittlevGL. :wink:

Exactly, the problem is the touch screen response time.
I’m new to NuttX and Lvgl, so any tips are helpful.
I made a public post on the NuttX group on Google, but in a private message a guy told me to talk directly to Gabor.
Not sure which versions of Lvgl are used, I can verify this information later.

Hi,

Sorry for the late answer. I’m working a lot of new features and unfortunately, I don’t have time to answer questions every day. That’s why we have the forum, to get help from others too! :slightly_smiling_face:

I’ve just answered your email and saw the topic here too. As I’ve mentioned in the email I suggest printing the events and the coordinates from the touchpad. It’s very strange that horizontal scroll (on the slider) is working but the vertical doesn’t. Hopefully, we will see something from the printed data.