Announcements
IMPORTANT: Cypress Developer Community is transitioning on October 20th. To learn more and be prepared for this change, check out our latest announcement.
cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 6

JeGa_1293081
New Contributor II

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

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

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
Top labels