GUI Guider example with Zephyr and MCUXpresso for VS Code

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

GUI Guider example with Zephyr and MCUXpresso for VS Code

GUI Guider example with Zephyr and MCUXpresso for VS Code

GUI Guider is a user-friendly graphical user interface development tool from NXP that enables the rapid development of high quality displays with the open-source LVGL graphics library

GUI Guider can also export projects using Zephyr.  The document GUIGuider_User_Manual installed with GUI Guider has a section working with Zephyr, and provides steps using Command Line Interface (CLI).  This article is an example using NXP's MCUXpresso extension for VS Code to import the generated project, build and download to a board.

Requirements

The steps in this article are based on these requirements:

  • Software:
    • GUI Guider v1.10.0-GA
    • Zephyr v4.0.0 - the GUI Guider release notes say support is based on "Zephyr v4.0 support for LVGL v8.3.10"
    • Zephyr SDK v0.17.0 - the Zephyr SDK version tested with Zephyr v4.0.0
    • MCUXpresso extension for VS Code v25.9.49

  • Hardware:  

Zephyr Pre-Requisites

This GUI Guider release requires an older version of Zephyr v4.0.0.  If the Zephyr repo is already imported in VS Code, the MCUXpresso extension can checkout the required version.

Click the MCUXpresso extension, right-click the Zephyr repo to update, and click "Update Repository or Index"

dereksnell_0-1759449129139.png

 

A pop-up appears in the lower right corner.  Click the Custom button to select the release tag 

dereksnell_1-1759449296826.png

 

A pull-down appears at the top center.  Select the v4.0.0 release tag.  This will take some time for the extension to checkout this version, and run "west update" to sync all the module repositories.

dereksnell_2-1759449411832.png

 

 If the Zephyr repo needs to be imported for the first time, the v4.0.0 version can be selected during the import.  Use the Quickstart Panel in the extension to "Import Repository".  For more help getting started with the MCUXpresso extension and importing Zephyr, see the NXP Zephyr Knowledge Hub.

  • Repository: Zephyr
  • Revision: select v4.0.0
dereksnell_3-1759449757729.png

 

Create and Export GUI Guider project

Open GUI Guider and start a new project. 

  • Select LVGL8.3.10 because the GUI Guider release notes say this is the LVGL version supported with Zephyr v4.0.0.  
  • Select the board MIMXRT595-EVK
  • Select the application SmartWatch
  • Create the project
dereksnell_4-1759450179520.png

 

Generate the C code for the project: 

dereksnell_5-1759450418272.png

 

Export the code for Zephyr:

dereksnell_6-1759450541227.png

 

Exporting the project into the Zephyr repository is the easiest option to import that project into VS Code. 

  • In this example, the Zephyr workspace was setup in C:\z\zephyrproject. 
  • The project folder name we will export is gui_guider_demo, and place in the samples folder
  • Then the full path for this exported project is C:\z\zephyrproject\zephyr\samples\gui_guider_demo

Import GUI Guider project into VS Code

Back in VS Code, in the MCUXpresso extension, refresh the repository to find the newly generated sample project:

dereksnell_0-1759493382343.png

 

In the Quickstart Panel, "Import Example from Repository" with these settings:

  • Repository: your Zephyr v4.0.0 workspace
  • Board: mimxrt595_evk//cm33
  • Template: search "gui", and select the exported gui_guider_demo
  • App type: Repository application
  • Zephyr SDK: since this is an older Zephyr release, be sure to use the older Zephyr SDK v0.17.0, otherwise the app may not build
dereksnell_1-1759493720345.png

 

After importing, we also need to add the display shield to the project.  This is done by adding a Cmake variable, see the MCUXpresso Cmake wiki for more details.  In the gui_guider_demo project, click the Edit button for the debug build configuration.

dereksnell_6-1759496975588.png

 

Add the shield name to the CMake Extra arguments using this line, and click the Save button:

SHIELD="g1120b0mipi" 
dereksnell_7-1759497122730.png

 

Apply GUI Guider patches

GUI Guider includes git patches in the exported project, and GUIGuider_User_Manual provides steps for apply these patches to the Zephyr and LVGL repositories.  Applying these patches uses CLI, and this article leverages a CLI feature in the MCUXpresso extension.

Right-click the gui_guider_demo project, and select "Open in Integrated Terminal".  This opens the CLI terminal in the project folder, and activates the Python virtual environment.

dereksnell_2-1759494237873.png

 

Enter these CLI commands to apply the patches:

cd ../..
git apply samples\gui_guider_demo\patches\0001-zephyr-Add-build-support-for-new-lvgl-widgets-develo.patch
cd ..\modules\lib\gui\lvgl
git apply ..\..\..\..\zephyr\samples\gui_guider_demo\patches\0001-lvgl-Add-new-widgets-developed-by-NXP.patch
dereksnell_3-1759494751313.png

 

Update Kconfig settings 

Some of the Kconfig settings in the exported project do not work for this board and application, and the sizes must be increased.  The sizes used here come from the LVGL demo in the Zephyr repo from the file samples/modules/lvgl/demos/prj.conf.  For an introduction to Kconfig, see the NXP Zephyr Lab MCXN947 Kconfig.

In the exported gui_guider_demo project, open the project file prj.conf.

dereksnell_4-1759495116587.png

 

Update the first two Kconfig settings with these sizes:

CONFIG_LV_Z_MEM_POOL_SIZE=49152
CONFIG_MAIN_STACK_SIZE=4096

Build and flash the project 

The project is now ready to build.  Right-click the project and do a Pristine Build

dereksnell_5-1759495445992.png

 

When the build completes, click the debug icon to program the image to flash.  The app is a very large image and will take some time to program.

dereksnell_8-1759497339726.png

 

Now the LVGL application generated by GUI Guider runs on the target board.

Return to Zephyr Knowledge Hub

%3CLINGO-SUB%20id%3D%22lingo-sub-2179916%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EGUI%20Guider%20example%20with%20Zephyr%20and%20MCUXpresso%20for%20VS%20Code%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2179916%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%0A%3CP%3E%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdesign%2Fdesign-center%2Fsoftware%2Fdevelopment-software%2Fgui-guider%3AGUI-GUIDER%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EGUI%20Guider%3C%2FA%3E%20is%20a%20user-friendly%20graphical%20user%20interface%20development%20tool%20from%20NXP%20that%20enables%20the%20rapid%20development%20of%20high%20quality%20displays%20with%20the%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdesign%2Fdesign-center%2Fsoftware%2Fembedded-software%2Flvgl-open-source-graphics-library%3ALITTLEVGL-OPEN-SOURCE-GRAPHICS-LIBRARY%22%20data-dtmsubaction%3D%22LVGL%20SSP%20link%22%20data-cl-id%3D%22182215060%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Eopen-source%20LVGL%20graphics%20library%3C%2FA%3E%3CSPAN%3E.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EGUI%20Guider%20can%20also%20export%20projects%20using%20%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fzephyr%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EZephyr%3C%2FA%3E.%26nbsp%3B%20The%20document%26nbsp%3BGUIGuider_User_Manual%20installed%20with%20GUI%20Guider%20has%20a%20section%20working%20with%20Zephyr%2C%20and%20provides%20steps%20using%20Command%20Line%20Interface%20(CLI).%26nbsp%3B%20This%20article%20is%20an%20example%20using%20NXP's%20%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdesign%2Fdesign-center%2Fsoftware%2Fdevelopment-software%2Fmcuxpresso-software-and-tools-%2Fmcuxpresso-for-visual-studio-code%3AMCUXPRESSO-VSC%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EMCUXpresso%20extension%20for%20VS%20Code%3C%2FA%3E%26nbsp%3Bto%20import%20the%20generated%20project%2C%20build%20and%20download%20to%20a%20board.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId-1274730108%22%20id%3D%22toc-hId-1297729010%22%3E%3CSPAN%3ERequirements%3C%2FSPAN%3E%3C%2FH1%3E%0A%3CP%3E%3CSPAN%3EThe%20steps%20in%20this%20article%20are%20based%20on%20these%20requirements%3A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSPAN%3ESoftware%3A%3C%2FSPAN%3E%0A%3CUL%3E%0A%3CLI%3E%3CSPAN%3EGUI%20Guider%20v1.10.0-GA%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%3EZephyr%20v4.0.0%20-%20the%20GUI%20Guider%20release%20notes%20say%20support%20is%20based%20on%20%22Zephyr%20v4.0%20support%20for%20LVGL%20v8.3.10%22%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%3EZephyr%20SDK%20v0.17.0%20-%20the%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fzephyrproject-rtos%2Fzephyr%2Fblob%2Fv4.0.0%2FSDK_VERSION%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EZephyr%20SDK%20version%3C%2FA%3E%20tested%20with%20Zephyr%20v4.0.0%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%3EMCUXpresso%20extension%20for%20VS%20Code%20v25.9.49%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%3EHardware%3A%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%0A%3CUL%3E%0A%3CLI%3E%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.zephyrproject.org%2Flatest%2Fboards%2Fnxp%2Fmimxrt595_evk%2Fdoc%2Findex.html%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EMIMXRT595-EVK%3C%2FA%3E%20evaluation%20board%20for%20the%20i.MX%20RT500%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.zephyrproject.org%2Flatest%2Fboards%2Fshields%2Fg1120b0mipi%2Fdoc%2Findex.html%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EG1120B0MIPI%3C%2FA%3E%20display%20shield%26nbsp%3B%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CH1%20id%3D%22toc-hId--532724355%22%20id%3D%22toc-hId--509725453%22%3E%3CSPAN%3EZephyr%20Pre-Requisites%3C%2FSPAN%3E%3C%2FH1%3E%0A%3CP%3E%3CSPAN%3EThis%20GUI%20Guider%20release%20requires%20an%20older%20version%20of%20Zephyr%20v4.0.0.%26nbsp%3B%20If%20the%20Zephyr%20repo%20is%20already%20imported%20in%20VS%20Code%2C%20the%20MCUXpresso%20extension%20can%20checkout%20the%20required%20version.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EClick%20the%20MCUXpresso%20extension%2C%20right-click%20the%20Zephyr%20repo%20to%20update%2C%20and%20click%20%22Update%20Repository%20or%20Index%22%3C%2FSPAN%3E%3C%2FP%3E%0A%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22dereksnell_0-1759449129139.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22dereksnell_0-1759449129139.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F359370i6B4EFB107F8425B4%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22dereksnell_0-1759449129139.png%22%20alt%3D%22dereksnell_0-1759449129139.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%0A%3CBR%20%2F%3E%0A%3CP%3EA%20pop-up%20appears%20in%20the%20lower%20right%20corner.%26nbsp%3B%20Click%20the%20Custom%20button%20to%20select%20the%20release%20tag%26nbsp%3B%3C%2FP%3E%0A%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22dereksnell_1-1759449296826.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22dereksnell_1-1759449296826.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F359371i109B1FEB888A1946%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22dereksnell_1-1759449296826.png%22%20alt%3D%22dereksnell_1-1759449296826.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%0A%3CBR%20%2F%3E%0A%3CP%3EA%20pull-down%20appears%20at%20the%20top%20center.%26nbsp%3B%20Select%20the%20v4.0.0%20release%20tag.%26nbsp%3B%20This%20will%20take%20some%20time%20for%20the%20extension%20to%20checkout%20this%20version%2C%20and%20run%20%22west%20update%22%20to%20sync%20all%20the%20module%20repositories.%3C%2FP%3E%0A%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22dereksnell_2-1759449411832.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22dereksnell_2-1759449411832.png%22%20style%3D%22width%3A%20223px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F359372iA4B4BE90D5FE2FA2%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22dereksnell_2-1759449411832.png%22%20alt%3D%22dereksnell_2-1759449411832.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%26nbsp%3BIf%20the%20Zephyr%20repo%20needs%20to%20be%20imported%20for%20the%20first%20time%2C%20the%20v4.0.0%20version%20can%20be%20selected%20during%20the%20import.%26nbsp%3B%20Use%20the%20Quickstart%20Panel%20in%20the%20extension%20to%20%22Import%20Repository%22.%26nbsp%3B%20For%20more%20help%20getting%20started%20with%20the%20MCUXpresso%20extension%20and%20importing%20Zephyr%2C%20see%20the%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FZephyr-Project-Knowledge-Base%2FZephyr-Knowledge-Hub%2Fta-p%2F2008548%22%20target%3D%22_self%22%3ENXP%20Zephyr%20Knowledge%20Hub%3C%2FA%3E.%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3ERepository%3C%2FSTRONG%3E%3A%20Zephyr%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3ERevision%3C%2FSTRONG%3E%3A%20select%20v4.0.0%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22dereksnell_3-1759449757729.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22dereksnell_3-1759449757729.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F359373i3C1E7851554FC0B5%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22dereksnell_3-1759449757729.png%22%20alt%3D%22dereksnell_3-1759449757729.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%0A%3CBR%20%2F%3E%0A%3CH1%20id%3D%22toc-hId-1954788478%22%20id%3D%22toc-hId-1977787380%22%3ECreate%20and%20Export%20GUI%20Guider%20project%3C%2FH1%3E%0A%3CP%3EOpen%20GUI%20Guider%20and%20start%20a%20new%20project.%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ESelect%20LVGL8.3.10%20because%20the%20GUI%20Guider%20release%20notes%20say%20this%20is%20the%20LVGL%20version%20supported%20with%20Zephyr%20v4.0.0.%26nbsp%3B%26nbsp%3B%3C%2FLI%3E%0A%3CLI%3ESelect%20the%20board%20MIMXRT595-EVK%3C%2FLI%3E%0A%3CLI%3ESelect%20the%20application%20SmartWatch%3C%2FLI%3E%0A%3CLI%3ECreate%20the%20project%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22dereksnell_4-1759450179520.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22dereksnell_4-1759450179520.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F359374i7CE8CC17328C386C%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22dereksnell_4-1759450179520.png%22%20alt%3D%22dereksnell_4-1759450179520.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%0A%3CBR%20%2F%3E%0A%3CP%3EGenerate%20the%20C%20code%20for%20the%20project%3A%26nbsp%3B%3C%2FP%3E%0A%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22dereksnell_5-1759450418272.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22dereksnell_5-1759450418272.png%22%20style%3D%22width%3A%20340px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F359375i3E624F7C9665135D%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22dereksnell_5-1759450418272.png%22%20alt%3D%22dereksnell_5-1759450418272.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%0A%3CBR%20%2F%3E%0A%3CP%3EExport%20the%20code%20for%20Zephyr%3A%3C%2FP%3E%0A%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22dereksnell_6-1759450541227.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22dereksnell_6-1759450541227.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F359376i893A3DD50108F749%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22dereksnell_6-1759450541227.png%22%20alt%3D%22dereksnell_6-1759450541227.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%0A%3CBR%20%2F%3E%0A%3CP%3EExporting%20the%20project%20into%20the%20Zephyr%20repository%20is%20the%20easiest%20option%20to%20import%20that%20project%20into%20VS%20Code.%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EIn%20this%20example%2C%20the%20Zephyr%20workspace%20was%20setup%20in%26nbsp%3BC%3A%5Cz%5Czephyrproject.%26nbsp%3B%3C%2FLI%3E%0A%3CLI%3EThe%20project%20folder%20name%20we%20will%20export%20is%26nbsp%3Bgui_guider_demo%2C%20and%20place%20in%20the%20samples%20folder%3C%2FLI%3E%0A%3CLI%3EThen%20the%20full%20path%20for%20this%20exported%20project%20is%20C%3A%5Cz%5Czephyrproject%5Czephyr%5Csamples%5Cgui_guider_demo%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CH1%20id%3D%22toc-hId-147334015%22%20id%3D%22toc-hId-170332917%22%3EImport%20GUI%20Guider%20project%20into%20VS%20Code%3C%2FH1%3E%0A%3CP%3EBack%20in%20VS%20Code%2C%20in%20the%20MCUXpresso%20extension%2C%20refresh%20the%20repository%20to%20find%20the%20newly%20generated%20sample%20project%3A%3C%2FP%3E%0A%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22dereksnell_0-1759493382343.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22dereksnell_0-1759493382343.png%22%20style%3D%22width%3A%20331px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F359448i72ECB2667D53E774%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22dereksnell_0-1759493382343.png%22%20alt%3D%22dereksnell_0-1759493382343.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%0A%3CBR%20%2F%3E%0A%3CP%3EIn%20the%20Quickstart%20Panel%2C%20%22Import%20Example%20from%20Repository%22%20with%20these%20settings%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3ERepository%3C%2FSTRONG%3E%3A%20your%20Zephyr%20v4.0.0%20workspace%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EBoard%3C%2FSTRONG%3E%3A%20mimxrt595_evk%2F%2Fcm33%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3ETemplate%3C%2FSTRONG%3E%3A%20search%20%22gui%22%2C%20and%20select%20the%20exported%20gui_guider_demo%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EApp%20type%3C%2FSTRONG%3E%3A%20Repository%20application%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EZephyr%20SDK%3C%2FSTRONG%3E%3A%20since%20this%20is%20an%20older%20Zephyr%20release%2C%20be%20sure%20to%20use%20the%20older%20Zephyr%20SDK%20v0.17.0%2C%20otherwise%20the%20app%20may%20not%20build%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22dereksnell_1-1759493720345.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22dereksnell_1-1759493720345.png%22%20style%3D%22width%3A%20343px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F359449i423B74D28EAA6D0D%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22dereksnell_1-1759493720345.png%22%20alt%3D%22dereksnell_1-1759493720345.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%0A%3CBR%20%2F%3E%0A%3CP%3EAfter%20importing%2C%20we%20also%20need%20to%20add%20the%20display%20shield%20to%20the%20project.%26nbsp%3B%20This%20is%20done%20by%20adding%20a%20Cmake%20variable%2C%20see%20the%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fnxp-mcuxpresso%2Fvscode-for-mcux%2Fwiki%2FCMake%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EMCUXpresso%20Cmake%20wiki%3C%2FA%3E%20for%20more%20details.%26nbsp%3B%20In%20the%20gui_guider_demo%20project%2C%20click%20the%20Edit%20button%20for%20the%20debug%20build%20configuration.%3C%2FP%3E%0A%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22dereksnell_6-1759496975588.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22dereksnell_6-1759496975588.png%22%20style%3D%22width%3A%20310px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F359463iCABE1C1EC8682D9E%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22dereksnell_6-1759496975588.png%22%20alt%3D%22dereksnell_6-1759496975588.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%0A%3CBR%20%2F%3E%0A%3CP%3EAdd%20the%20shield%20name%20to%20the%20CMake%20Extra%20arguments%20using%20this%20line%2C%20and%20click%20the%20Save%20button%3A%3C%2FP%3E%0A%3CPRE%3ESHIELD%3D%22g1120b0mipi%22%26nbsp%3B%3C%2FPRE%3E%0A%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22dereksnell_7-1759497122730.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22dereksnell_7-1759497122730.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F359464i767622673E426BBF%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22dereksnell_7-1759497122730.png%22%20alt%3D%22dereksnell_7-1759497122730.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%0A%3CBR%20%2F%3E%0A%3CH1%20id%3D%22toc-hId--1660120448%22%20id%3D%22toc-hId--1637121546%22%3EApply%20GUI%20Guider%20patches%3C%2FH1%3E%0A%3CP%3EGUI%20Guider%20includes%20git%20patches%20in%20the%20exported%20project%2C%20and%26nbsp%3B%3CSPAN%3EGUIGuider_User_Manual%20provides%20steps%20for%20apply%20these%20patches%20to%20the%20Zephyr%20and%20LVGL%20repositories.%26nbsp%3B%20Applying%20these%20patches%20uses%20CLI%2C%20and%20this%20article%20leverages%20a%20CLI%20feature%20in%20the%20MCUXpresso%20extension.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3ERight-click%20the%20gui_guider_demo%20project%2C%20and%20select%20%22Open%20in%20Integrated%20Terminal%22.%26nbsp%3B%20This%20opens%20the%20CLI%20terminal%20in%20the%20project%20folder%2C%20and%20activates%20the%20Python%20virtual%20environment.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22dereksnell_2-1759494237873.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22dereksnell_2-1759494237873.png%22%20style%3D%22width%3A%20397px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F359454i5FE4ABC66C0F8FDD%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22dereksnell_2-1759494237873.png%22%20alt%3D%22dereksnell_2-1759494237873.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%0A%3CBR%20%2F%3E%0A%3CP%3EEnter%20these%20CLI%20commands%20to%20apply%20the%20patches%3A%3C%2FP%3E%0A%3CPRE%3Ecd%20..%2F..%3CBR%20%2F%3Egit%20apply%20samples%5Cgui_guider_demo%5Cpatches%5C0001-zephyr-Add-build-support-for-new-lvgl-widgets-develo.patch%3CBR%20%2F%3Ecd%20..%5Cmodules%5Clib%5Cgui%5Clvgl%3CBR%20%2F%3Egit%20apply%20..%5C..%5C..%5C..%5Czephyr%5Csamples%5Cgui_guider_demo%5Cpatches%5C0001-lvgl-Add-new-widgets-developed-by-NXP.patch%3C%2FPRE%3E%0A%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22dereksnell_3-1759494751313.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22dereksnell_3-1759494751313.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F359456i07CCBB1CEC894EF4%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22dereksnell_3-1759494751313.png%22%20alt%3D%22dereksnell_3-1759494751313.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%0A%3CBR%20%2F%3E%0A%3CH1%20id%3D%22toc-hId-827392385%22%20id%3D%22toc-hId-850391287%22%3EUpdate%20Kconfig%20settings%26nbsp%3B%3C%2FH1%3E%0A%3CP%3ESome%20of%20the%20Kconfig%20settings%20in%20the%20exported%20project%20do%20not%20work%20for%20this%20board%20and%20application%2C%20and%20the%20sizes%20must%20be%20increased.%26nbsp%3B%20The%20sizes%20used%20here%20come%20from%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.zephyrproject.org%2Flatest%2Fsamples%2Fmodules%2Flvgl%2Fdemos%2FREADME.html%23lvgl-demos%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3ELVGL%20demo%3C%2FA%3E%20in%20the%20Zephyr%20repo%20from%20the%20file%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fzephyrproject-rtos%2Fzephyr%2Fblob%2Fv4.0.0%2Fsamples%2Fmodules%2Flvgl%2Fdemos%2Fprj.conf%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Esamples%2Fmodules%2Flvgl%2Fdemos%2Fprj.conf%3C%2FA%3E.%26nbsp%3B%20For%20an%20introduction%20to%20Kconfig%2C%20see%20the%20NXP%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fnxp-mcuxpresso%2Fvscode-for-mcux%2Fwiki%2FZephyr-Lab-MCXN947-Kconfig%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EZephyr%20Lab%20MCXN947%20Kconfig%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3EIn%20the%20exported%20gui_guider_demo%20project%2C%20open%20the%20project%20file%20prj.conf.%3C%2FP%3E%0A%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22dereksnell_4-1759495116587.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22dereksnell_4-1759495116587.png%22%20style%3D%22width%3A%20245px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F359457i44FF56DC0A66934F%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22dereksnell_4-1759495116587.png%22%20alt%3D%22dereksnell_4-1759495116587.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%0A%3CBR%20%2F%3E%0A%3CP%3EUpdate%20the%20first%20two%20Kconfig%20settings%20with%20these%20sizes%3A%3C%2FP%3E%0A%3CDIV%3E%0A%3CPRE%3E%3CSPAN%3ECONFIG_LV_Z_MEM_POOL_SIZE%3C%2FSPAN%3E%3CSPAN%3E%3D49152%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3ECONFIG_MAIN_STACK_SIZE%3C%2FSPAN%3E%3CSPAN%3E%3D4096%3C%2FSPAN%3E%3C%2FPRE%3E%0A%3C%2FDIV%3E%0A%3CH1%20id%3D%22toc-hId--980062078%22%20id%3D%22toc-hId--957063176%22%3EBuild%20and%20flash%20the%20project%26nbsp%3B%3C%2FH1%3E%0A%3CP%3EThe%20project%20is%20now%20ready%20to%20build.%26nbsp%3B%26nbsp%3BRight-click%20the%20project%20and%20do%20a%20Pristine%20Build%3C%2FP%3E%0A%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22dereksnell_5-1759495445992.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22dereksnell_5-1759495445992.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F359458i72EBDF3E67515010%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22dereksnell_5-1759495445992.png%22%20alt%3D%22dereksnell_5-1759495445992.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%0A%3CBR%20%2F%3E%0A%3CP%3EWhen%20the%20build%20completes%2C%20click%20the%20debug%20icon%20to%20program%20the%20image%20to%20flash.%26nbsp%3B%20The%20app%20is%20a%20very%20large%20image%20and%20will%20take%20some%20time%20to%20program.%3C%2FP%3E%0A%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22dereksnell_8-1759497339726.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22dereksnell_8-1759497339726.png%22%20style%3D%22width%3A%20292px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F359465i1DFAD0CDB25FA9BB%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22dereksnell_8-1759497339726.png%22%20alt%3D%22dereksnell_8-1759497339726.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%0A%3CBR%20%2F%3E%0A%3CP%3ENow%20the%20LVGL%20application%20generated%20by%20GUI%20Guider%20runs%20on%20the%20target%20board.%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EReturn%20to%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FZephyr-Project-Knowledge-Base%2FZephyr-Support-Resources%2Fta-p%2F2008548%22%20target%3D%22_blank%22%3EZephyr%20Knowledge%20Hub%3C%2FA%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3C%2FLINGO-BODY%3E
No ratings
Version history
Last update:
‎10-03-2025 06:28 AM
Updated by: