CE222793_MotionSensor_RTOS with emWin Failed!

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
JeGa_1293081
Level 1
Level 1
Welcome! 5 questions asked First question asked

Hi

I was trying to use emWin with the code example CE222793_MotionSensor_RTOS.

I have added following in display_task.c

//======================================================================

// from code example from CE223727_EmWin_EInk_Display

// also updated LCDConf.c, LCDConf.h according to CE223727

#include "GUI.h"

#include "LCDConf.h"

...

...

//======================================================================

but the code was stack at 

displayDetected = Cy_EINK_Power(CY_EINK_ON);

in display_task.c and I could not find any reason why, can anyone take look at this issue?

the project Archive has been attached to this thread.

0 Likes
1 Solution
DheerajK_81
Moderator
Moderator
Moderator
First comment on KBA First comment on blog 5 questions asked

Please enable "OSnTS" under emWin in Build Settings since the application uses FreeRTOS. In FreeRTOSConfig.h, set the following macro:

#define configUSE_MUTEXES                       1

Add "#include "queue.h"" in GUI_X_RTOS.c file. Now build the application and program your device. The startup display code you have written will be displayed

os1.jpg

Regards,

Dheeraj

View solution in original post

0 Likes
1 Reply
DheerajK_81
Moderator
Moderator
Moderator
First comment on KBA First comment on blog 5 questions asked

Please enable "OSnTS" under emWin in Build Settings since the application uses FreeRTOS. In FreeRTOSConfig.h, set the following macro:

#define configUSE_MUTEXES                       1

Add "#include "queue.h"" in GUI_X_RTOS.c file. Now build the application and program your device. The startup display code you have written will be displayed

os1.jpg

Regards,

Dheeraj

0 Likes