Difficulty "Getting Started" debugging with MCUXpresso and Gui Guider 1.10.1 GA project.

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

Difficulty "Getting Started" debugging with MCUXpresso and Gui Guider 1.10.1 GA project.

Jump to solution
72 Views
mark2
Contributor III

Hello!

I have used Gui Guider on many projects in the last 10 years. 

Today I started a new project, and I have had great difficulty

My environment is MCUXpresso IDE v2025.06 on a Windows 11 computer.

My target is MCXN947, FreeRTOS, custom target PCB, based on SDK_2.x_FRDM-MCXN947 v25.09. 

Gui guider 1.10.1 GA using LVGL 9.3.

I am using a different TFT panel to NXP, it has a graphics controller ILI9488 and I have used this panel many times.

This is my workflow...

1) In MCUXpresso IDE, import LVGL project frdmmcxn947_lvgl_guider_cm33_core0.

2) Make my fixes for ILI9488 (it is simple - import my ili9488.c/.h into folder \lcdc and edit lvgl_support.c so that it uses my code. Example 

status = ILI9488_Init(&lcdHandle, &ili9488Config, &g_dbiFlexioSmartdmaXferOps, &g_dbiFlexioXferHandle); 

3) Build and debug the project.

4) My panel displays the usual "Drag Me" rectangle and the FPS/%cpu instrumentation in the lower right of the screen.

5) Everything is working !!!!!

6) In Gui Guider v1.10.1 create a new project based on LVGL9.3.0, FRDM-MCXN947, EmptyUI, 16-bit colour, 480x320.

7) Name the screen screenMain, and Add a switch to the UI: sw_1.

Generate the code. 

9) Delete the contents of the \generated folder in the MCUXpresso project, then copy the contents of the \generated folder from Gui guider project into MCUXpresso project.

10) Confirm the source code in setup_scr_screenMain.c:

//Write codes screenMain_sw_1

ui->screenMain_sw_1 = lv_switch_create(ui->screenMain);

 

11) Clean and build the project 

12) Many Compiler Errors, including "implicit declaration of function lv_switch_create()".

But lv_switch.c / lv_switch.h is included in the project.

13) There are more compiler errors

LV_CACHE_ENTRY_FLAG_CLASS_CUSTOM undeclared,

implicit declaration of functions lv_cache_entry_has_flag/remove_flag/set_flag.

It all looks very broken, and is slowing me down now.

I will go back to Gui Guider 1.9.0 GA but have lost a day of productive work on this problem.

If I run the Gui guider project in the 1.10.1 Simulator then it compiles OK (but does not run on my target board because of the missing ILI9488 driver). I did also try SDK 26.03 but with the same compiler errors.

*Please tell me what I am doing wrong!!!!*

Mark

 

Tags (2)
0 Kudos
Reply
1 Solution
49 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @mark2 

To avoid compilation errors, I think you can use a different method.

1. First, you can create the GUI GUIDER project. 

""In Gui Guider v1.10.1 create a new project based on LVGL9.3.0, FRDM-MCXN947, EmptyUI, 16-bit colour, 480x320.""

2. Then you  can design the UI and generated the C code.

3. import this project into the mcuxpresso ide.

Harry_Zhang_0-1779853899691.pngHarry_Zhang_1-1779853934716.pngHarry_Zhang_2-1779854007544.png

4. And then you just need to replace your lcd driver.

And even if you modify the UI, your mcuxpresso ide's lvgl project will automatically update. This method can work on my end.

Of course, if you need me to help you solve your previous compilation errors, you can send me the entire GUI project and I can try to solve this issue.

 

BR

Harry

View solution in original post

0 Kudos
Reply
3 Replies
11 Views
mark2
Contributor III

Good news. That different method works for me. Now I am "up and running".

Thankyou.

One feedback: the Gui Guider project is named 527_new but after importing into MCUXpresso the MCUX project name is frdmmcxn947_lvgl_guider_v9. I edited the .project file to give my chosen project name.   

50 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @mark2 

To avoid compilation errors, I think you can use a different method.

1. First, you can create the GUI GUIDER project. 

""In Gui Guider v1.10.1 create a new project based on LVGL9.3.0, FRDM-MCXN947, EmptyUI, 16-bit colour, 480x320.""

2. Then you  can design the UI and generated the C code.

3. import this project into the mcuxpresso ide.

Harry_Zhang_0-1779853899691.pngHarry_Zhang_1-1779853934716.pngHarry_Zhang_2-1779854007544.png

4. And then you just need to replace your lcd driver.

And even if you modify the UI, your mcuxpresso ide's lvgl project will automatically update. This method can work on my end.

Of course, if you need me to help you solve your previous compilation errors, you can send me the entire GUI project and I can try to solve this issue.

 

BR

Harry

0 Kudos
Reply
17 Views
mark2
Contributor III
Hi Harry, thankyou for the suggestion! Let me try that first thing my time (GMT+1) tomorrow Thursday. I should have feedback for you before the end of your working day.
谢谢
Mark
0 Kudos
Reply