I have the Discovery board with the LCD on it and I would like to use the LCD to display a menu system, perhaps even using the touch screen. My problem is at a very basic step I'm afraid - I can't seem to be able to add the emWIN files to my current uVision4 project. The documentation from both ST and Segger is not suitable because one is outdated and the other simply refers to a different product.
Right now I have created a library called "GUI" and dropped all the files from Cube 1.7 emWIN library in it. These are the files found in the following folders: Config, inc, Lib & OS. The one exception to this is the lib folder, from which I only copied "STemWin526_CM4_Keil.lib".
After compiling I get these errors:
compiling GUIConf.c...
compiling GUIDRV_Template.c...
..\GUI\LCD_Private.h(57): error: #5: cannot open source input file "LCDConf.h": No such file or directory
#include "LCDConf.h"
..\GUI\GUIDRV_Template.c: 0 warnings, 1 error
compiling LCDConf_FlexColor_Template.c...
compiling LCDConf_Lin_Template.c...
..\GUI\LCDConf_Lin_Template.c(164): error: #20: identifier "CUSTOM_LCD_CopyBuffer" is undefined
LCD_SetDevFunc(0, LCD_DEVFUNC_COPYBUFFER, (void(*)(void))CUSTOM_LCD_CopyBuffer);
..\GUI\LCDConf_Lin_Template.c(165): error: #20: identifier "CUSTOM_LCD_CopyRect" is undefined
LCD_SetDevFunc(0, LCD_DEVFUNC_COPYRECT, (void(*)(void))CUSTOM_LCD_CopyRect);
..\GUI\LCDConf_Lin_Template.c(166): error: #20: identifier "CUSTOM_LCD_FillRect" is undefined
LCD_SetDevFunc(0, LCD_DEVFUNC_FILLRECT, (void(*)(void))CUSTOM_LCD_FillRect);
..\GUI\LCDConf_Lin_Template.c(167): error: #20: identifier "CUSTOM_LCD_DrawBitmap8bpp" is undefined
LCD_SetDevFunc(0, LCD_DEVFUNC_DRAWBMP_8BPP, (void(*)(void))CUSTOM_LCD_DrawBitmap8bpp);
..\GUI\LCDConf_Lin_Template.c(168): error: #20: identifier "CUSTOM_LCD_DrawBitmap16bpp" is undefined
LCD_SetDevFunc(0, LCD_DEVFUNC_DRAWBMP_16BPP, (void(*)(void))CUSTOM_LCD_DrawBitmap16bpp);
..\GUI\LCDConf_Lin_Template.c(211): warning: #550-D: variable "p" was set but never used
LCD_X_SETVRAMADDR_INFO * p;
..\GUI\LCDConf_Lin_Template.c(220): warning: #550-D: variable "p" was set but never used
LCD_X_SETORG_INFO * p;
..\GUI\LCDConf_Lin_Template.c(229): warning: #550-D: variable "p" was set but never used
LCD_X_SHOWBUFFER_INFO * p;
..\GUI\LCDConf_Lin_Template.c(238): warning: #550-D: variable "p" was set but never used
LCD_X_SETLUTENTRY_INFO * p;
..\GUI\LCDConf_Lin_Template.c: 4 warnings, 5 errors
compiling SIMConf.c...
compiling GUI_X.c...
compiling GUI_X_OS.c...
..\GUI\GUI_X_OS.c(59): error: #5: cannot open source input file "cmsis_os.h": No such file or directory
#include "cmsis_os.h"
..\GUI\GUI_X_OS.c: 0 warnings, 1 error
"Tracer Configuration\Tracer Configuration.axf" - 7 Error(s), 9 Warning(s).
Target not created
If anyone knows how to move onward form this it will be highly appreciated! I know some errors seem silly, like the one notifying a file can not be found - it is not included with the library files.