Git Product home page Git Product logo

Comments (16)

nicusorcitu avatar nicusorcitu commented on June 21, 2024 1

@cristian-stoica please have a look.

from lvgl.

nicusorcitu avatar nicusorcitu commented on June 21, 2024 1

Should be in Q1 2025.

from lvgl.

liamHowatt avatar liamHowatt commented on June 21, 2024

Thanks for the info. @nicusorcitu FYI. Any thoughts about this?

from lvgl.

kisvegabor avatar kisvegabor commented on June 21, 2024

Maybe related to this.

from lvgl.

oleg-amp avatar oleg-amp commented on June 21, 2024

Maybe related to this.

No. This happens whether vglite is enabled or not, on both lvgl versions 8.x and 9.x.

from lvgl.

nicusorcitu avatar nicusorcitu commented on June 21, 2024

@oleg-amp What SDK version do you have?

from lvgl.

oleg-amp avatar oleg-amp commented on June 21, 2024

from lvgl.

nicusorcitu avatar nicusorcitu commented on June 21, 2024

Why do you keep staying with the older SDK? Please take the latest from NXP website for MIMXRT1176 board and give it a try.

from lvgl.

cristian-stoica avatar cristian-stoica commented on June 21, 2024

@oleg-amp I've build tested an example from SDK2.13.1 and it builds fine. In fact LV_USE_GPU_NXP_PXP is enabled by default in the SDK example. I din not make other changes in the code.
For debug purposes I will need an example project of yours if you can provide one. I'm using MCUExpresso but if you're using something else that's fine.

from lvgl.

oleg-amp avatar oleg-amp commented on June 21, 2024

Why do you keep staying with the older SDK? Please take the latest from NXP website for MIMXRT1176 board and give it a try.

We have freezed the sdk in our project, for now, to avoid upgrading issues.

I've build tested an example from SDK2.13.1 and it builds fine. In fact LV_USE_GPU_NXP_PXP is enabled by default in the SDK example. I did not make other changes in the code.
For debug purposes I will need an example project of yours if you can provide one. I'm using MCUExpresso but if you're using something else that's fine.

I am using NXP MCUExpresso plugin for VSCode and nsp-sdk taken from official github repo. As you can see here, there is no definition of kPXP_PsPixelFormatARGB8888 at all in the PXP driver.
In addition, I clone lvgl directly from github, while in MCUExpresso IDE they take cloned and modified version of lvgl. See the src/draw/nxp/pxp/lv_draw_pxp_blend.c as it is in MCUExpresso:

/**
 * @file lv_draw_pxp_blend.c
 *
 */

/**
 * MIT License
 *
 * Copyright 2020-2022 NXP
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights to
 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
 * the Software, and to permit persons to whom the Software is furnished to do so,
 * subject to the following conditions:
 *
 * The above copyright notice and this permission notice (including the next paragraph)
 * shall be included in all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
 * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
 * PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
 * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
 * OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 *
 */

/*********************
 *      INCLUDES
 *********************/

#include "lv_draw_pxp_blend.h"

#if LV_USE_GPU_NXP_PXP

/*********************
 *      DEFINES
 *********************/

#if LV_COLOR_16_SWAP
    #error Color swap not implemented. Disable LV_COLOR_16_SWAP feature.
#endif

#if LV_COLOR_DEPTH==16
    #define PXP_OUT_PIXEL_FORMAT kPXP_OutputPixelFormatRGB565
    #define PXP_AS_PIXEL_FORMAT kPXP_AsPixelFormatRGB565
    #define PXP_PS_PIXEL_FORMAT kPXP_PsPixelFormatRGB565
#elif LV_COLOR_DEPTH==32
    #define PXP_OUT_PIXEL_FORMAT kPXP_OutputPixelFormatARGB8888
    #define PXP_AS_PIXEL_FORMAT kPXP_AsPixelFormatARGB8888
    #define PXP_PS_PIXEL_FORMAT kPXP_PsPixelFormatRGB888
#elif
    #error Only 16bit and 32bit color depth are supported. Set LV_COLOR_DEPTH to 16 or 32.
#endif

#if defined (__alpha__) || defined (__ia64__) || defined (__x86_64__) \
    || defined (_WIN64) || defined (__LP64__) || defined (__LLP64__)
    #define ALIGN_SIZE 8
#else
    #define ALIGN_SIZE 4
#endif

/**********************
 *      TYPEDEFS
 **********************/
.
.
.

It looks like NXP fixed this issue in the integrated version of LVGL in the SDK for MXUExpresso, however if working with VSCode and manually cloning both the SDK and LVGL from repos this issue persists.

from lvgl.

cristian-stoica avatar cristian-stoica commented on June 21, 2024

@oleg-amp

It looks like NXP fixed this issue in the integrated version of LVGL in the SDK for MXUExpresso, however if working with VSCode and manually cloning both the SDK and LVGL from repos this issue persists.

The reported build issues may be related to the SDK used - not necessarily the version but the origin. Let me suggest that you build and use the SDK at https://mcuxpresso.nxp.com/en/welcome (for MCUExpresso or VScode) instead of the one at github .
Integration of LVGL in github sdk is not done yet. Because of this, there are no LVGL examples and you will need to fix all sorts of problems yourself if you use it for LVGL.

Indeed, there is also the issue of what LVGL version is integrated with the SDK and that it is a stripped down and modified package: SDK LVGL may have some patches that are not yet unstreamed for that particular release; the stripping down is for packaging reasons.
If you want to use a different snapshot of LVGL you can drop-replace the lvgl folder in the SDK with a different one as long as you preserve the major version (8 or 9). If the SDK uses LVGL 8 and you put LVGL 9, the build will probably fail and you will need to resolve the integration yourself (it can be done but...) or switch to an SDK that uses LVGL 9.

I have tested the benchmark example from the 2.13 SDK without issues also in the VScode. If this route doesn't work for you, let me know.

from lvgl.

oleg-amp avatar oleg-amp commented on June 21, 2024

Because I use VSCode with the nxp official pluggin and cmake. I clone the lvgl code and build it using cmake fetchContent. It is too much work to manually add all the source code to the project cmakelists.txt.
Of course the integrated lvgl instance must support the nxp-sdk it is integrated within, but it is expected that the official repo of lvgl will support the official repo of the nxp-sdk, no? Otherwise, what is the point of having draw/nxp folder in lvgl repo if it does not support nxp-sdk repo? In any case, from what I saw, it is not documented in any place that it doesn't..

from lvgl.

nicusorcitu avatar nicusorcitu commented on June 21, 2024

Of course the integrated lvgl instance must support the nxp-sdk it is integrated within, but it is expected that the official repo of lvgl will support the official repo of the nxp-sdk, no? Otherwise, what is the point of having draw/nxp folder in lvgl repo if it does not support nxp-sdk repo?

nxp-sdk repo will support lvgl v9, but starting with next sdk 2.17 release.

Currently, the LVGL middleware support into nxp-sdk is not yet done. Because of that, the github nxp-sdk repo might not have the proper PXP drivers.

If you want to build SDK 2.13 with LVGL + PXP, you need to use the archive generated SDK from here: https://mcuxpresso.nxp.com/en/welcome with all dependency drivers.

from lvgl.

nicusorcitu avatar nicusorcitu commented on June 21, 2024

If you still want to use VSCode and nxp-sdk github, then you might need to update the PXP drivers.
kPXP_PsPixelFormatARGB8888
But again, none of the github nxp-sdk releases were suppose to work with LVGL. Not until 2.17.

from lvgl.

oleg-amp avatar oleg-amp commented on June 21, 2024

Thanks a lot for detailed explanation!
Do you maybe know when nxp plans to release 2.17 sdk?

from lvgl.

oleg-amp avatar oleg-amp commented on June 21, 2024

Ok, thanks! I won't wait for it of course due to planned timeline.
I will leave it as it is for now, or will try to use the generated sdk from nxp website as you suggested.

from lvgl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.