emWin 6.10f: APPW_Init()

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

emWin 6.10f: APPW_Init()

跳至解决方案
1,844 次查看
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 项奖励
回复
1 解答
1,735 次查看
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 

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,736 次查看
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 

0 项奖励
回复