[BUG] LVGL display demo error

Open
#2,936 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
c

Research direction

Start by reproducing the LVGL demo on Linux with NuttX 12.4 and inspect lv_port_fbdev.c, the fb0 device, and the reported 1024×768 RGB32 configuration. Compare the framebuffer format, stride, length, and displayed output; done means identifying a reproducible cause and documenting or validating the required correction.

Written by the indexing model from the issue text.

Description

Type: Bug
Description / Steps to reproduce the issue

When I use the LVGL demo, there is a display issue. The fb0 can be found under the device directory and the screen lights up. In the LVGL configuration, fb0 is correctly set to be enabled by default, and the display works. However, there is an issue where the screen shows a repeated image and the colors are incorrect. I have seen similar issues on other forums, but no correct solution has been provided. What could be the cause of this problem? The version of LVGL being used is 8.3.2.
step1 :
The device is registered under the device directory using the video component, and fb0 can be found and detected.

step2:The parameters passed to lv_port_fbdev.c are exactly the same as I have set. The resolution is 1024 * 768, the color format is FB_FMT_RGB32, the bpp is set to 32, fblen is set to 1024 * 32 / 8 * 768, and the stride is set to 1024 * 32 / 8.

step3: run the demo;

20250110160205

On which OS does this issue occur?

[OS: Linux]

What is the version of your OS?

Ubuntu22.04

NuttX Version

releases/12.4

Issue Architecture

[Arch: arm64]

Issue Area

[Area: Graphics]

Verification
  • I have verified before submitting the report.
Dominant language
C
Stars
465
Forks
782
Avg merge
3d 11h
Merged PRs (30d)
44

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/nuttx-apps

All issues in apache/nuttx-apps

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.