Skip to content

LVGL Version #2461

Closed
Closed

Description

@TimJTi

Summary

NuttX Apps needs to be upgraded to the newly released V9.2 to solve framebuffer render issues.

Background

As discussed here the LVGL version "bundled" with NuttX apps (v9.1) has issues with what I perceive as its misuse of the NuttX framebuffer; it makes multiple partial renders direct to the framebuffer, resulting in visible artefacts. It is deemed OK as there are some architectures/boards where this is OK because it seems they natively have two framebuffers. But - to me - it is the exception not the rule.

V9.2 now auto-detects the presence of that second native framebuffer and if its not there creates its own render buffer. It works but is perhaps a bit arcane.

NB - there is no support for an LVGL partial render buffer in the LVGL NuttX framebuffer driver, so there will be two whole frame buffers present: the /dev/fb0 buffer and LVGLs render buffer.

Other

While investigating this I needed to work with other versions of LVGL and found the following.

  1. NuttX "fixes" the LVGL version.
  2. If you clone LVGL direct to the appropriate NuttX apps directory you can use any version you like. This could perhaps be added to documentation, or:
    1a. Enable Kconfig configuration of the wanted LVGL version. Not sure this works if you need to work with LVGL master as there will be no release archive that can be downloaded.
  3. BUT the side effect of this that NuttX apps takes a direct copy of LVGLs Kconfig from the "fixed"/"approved" version of a given NuttX apps release and this requires a manual copy if the non-approved version's Kconfig file. This has been discussed before but surely there's a way to work around this - perhaps a warning if the version is edited to something other than the "supported" version?

Discuss :-)

Activity

  1. acassis commented on Sep 19, 2024

    @acassis
    Contributor

    maybe @XuNeo could help us here!

    @xiaoxiang781216 what should be the next approach for this case?

  2. xiaoxiang781216 commented on Sep 19, 2024

    @xiaoxiang781216
    Contributor

    is lvgl 9.2 released?

  3. cederom commented on Sep 19, 2024

    @cederom
    Contributor
  4. XuNeo commented on Sep 20, 2024

    @XuNeo
    Contributor

    perhaps a warning if the version is edited to something other than the "supported" version?

    Will add in lvgl/lvgl#6789

  5. cederom commented on Oct 6, 2024

    @cederom
    Contributor

    Okay lets wait for LVGL 9.2.1 release, verify it, and add to NuttX 12.7.0 release, so far testing on 12.7.0-RC0 failed see apache/nuttx#13825 and apache/nuttx#13839.

  6. linked a pull request that will close this issuelvgl: upgrade to release/v9.2 #2592on Oct 7, 2024
  7. cederom commented on Oct 18, 2024

    @cederom
    Contributor

    Okay the LVGL release/v9.2 branch is here and this will contain 9.2.1 release code that is 99% ready we can proceed :-)

    https://github.com/lvgl/lvgl/tree/release/v9.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions