emWin 6.10f: APPW_Init()

cancel
Showing results for 
Search instead for 
Did you mean: 

emWin 6.10f: APPW_Init()

Jump to solution
557 Views
lsrbigfoot
Contributor III

I am in the process of setting up emWin to run on a custom board (custom bsp) with MK22FX512AVLQ12 MCU.

There appears to be a library call "APPW_Init()" that is found in APPMainTask.c for most BSP examples that use emWin 6.10f along with AppWizard:

"...

void MainTask(void) {
//
// Setup configuration dependent pointers
//
APPW_X_Setup();
//
// Initialize AppWizard
//
APPW_Init(APPW_PROJECT_PATH);
//
// Create initial screen...
//
APPW_CreateRoot(APPW_INITIAL_SCREEN, WM_HBKWIN);

..."

Is the APPW_Init() needed when compiling AppWizard in my custom board project?

What happens if APPW_Init() is commented out (or not used)?

What resource files from "APPW_PROJECT_PATH" are accessed when App_Init() is called?

0 Kudos
1 Solution
448 Views
chris_brown
NXP Employee
NXP Employee

Hi lsrbigfoot‌,

APPW_Init is necessary for any AppWizard project.  It initializes and configures the GUI as well as initializes the text usage.  If a file system is being used, it will also initialize that.  If you try to comment this out, you will get a hard fault (this is what happened in my system).  

APPW_PROJECT_PATH is only utilized when running the AppWizard simulator.  

Best regards,

Chris 

View solution in original post

0 Kudos
1 Reply
449 Views
chris_brown
NXP Employee
NXP Employee

Hi lsrbigfoot‌,

APPW_Init is necessary for any AppWizard project.  It initializes and configures the GUI as well as initializes the text usage.  If a file system is being used, it will also initialize that.  If you try to comment this out, you will get a hard fault (this is what happened in my system).  

APPW_PROJECT_PATH is only utilized when running the AppWizard simulator.  

Best regards,

Chris 

View solution in original post

0 Kudos