Error: L6218E: Undefined symbol GUIDRV_Win_API

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • Error: L6218E: Undefined symbol GUIDRV_Win_API

    Hi,
    I setup a project with the help of RTE in keil v5.23 in order to work with LCD (NXP 1788 MCU).
    but when I compile the project I face with this error
    .\Objects\lcd.axf: Error: L6218E: Undefined symbol GUIDRV_Win_API (referred from lcdconf.o).
  • Hi,

    This sounds like a wrong configuration.

    In general GUIDRV_Win_API is used in the simulation where you don't have a real hardware.

    Maybe it is possible to post your configuration file LCDConf.c.

    Regards
    Sven
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.
  • SEGGER - Schoenen wrote:

    In general GUIDRV_Win_API is used in the simulation where you don't have a real hardware.
    Maybe it is possible to post your configuration file LCDConf.c.
    Thanks Sven for your reply, I know and tried another GUIDRV... as well but enconter same error.
    Here you are:

    C Source Code

    1. #include "GUI.h"
    2. #define XSIZE_PHYS 800
    3. #define YSIZE_PHYS 480
    4. #define COLOR_CONVERSION GUICC_8888
    5. #define DISPLAY_DRIVER GUIDRV_WIN32
    6. #ifndef XSIZE_PHYS
    7. #error Physical X size of display is not defined!
    8. #endif
    9. #ifndef YSIZE_PHYS
    10. #error Physical Y size of display is not defined!
    11. #endif
    12. #ifndef COLOR_CONVERSION
    13. #error Color conversion not defined!
    14. #endif
    15. #ifndef DISPLAY_DRIVER
    16. #error No display driver defined!
    17. #endif
    18. void LCD_X_Config(void) {
    19. GUI_DEVICE_CreateAndLink(DISPLAY_DRIVER, COLOR_CONVERSION, 0, 0);
    20. if (LCD_GetSwapXY()) {
    21. LCD_SetSizeEx (0, YSIZE_PHYS, XSIZE_PHYS);
    22. LCD_SetVSizeEx(0, YSIZE_PHYS, XSIZE_PHYS); } else { LCD_SetSizeEx (0, XSIZE_PHYS, YSIZE_PHYS); LCD_SetVSizeEx(0, XSIZE_PHYS, YSIZE_PHYS); }
    23. }
    24. int LCD_X_DisplayDriver(unsigned LayerIndex, unsigned Cmd, void * pData) { GUI_USE_PARA(LayerIndex); GUI_USE_PARA(Cmd); GUI_USE_PARA(pData); return 0;}
    Display All


    for the sake of simpilicity I just removed the commented lines


    I have setup the project with the keil V5.23 Run-Time Enviroment (RTE) for LPC1788.
    Thanks for your help.

    The post was edited 7 times, last by mohammadyou ().

  • Hi,

    Please try to change..

    C Source Code

    1. #define DISPLAY_DRIVER GUIDRV_WIN32


    into..

    C Source Code

    1. #define DISPLAY_DRIVER GUIDRV_LIN_32


    Now the error should be gone.

    Nonetheless, it won't work. You have to set a framebuffer address like this (where VRAM_ADDR is the address of the framebuffer):

    C Source Code

    1. LCD_SetVRAMAddrEx(LayerIndex, (void *)VRAM_ADDR);


    Please take a look into the LCDConf.c attached. This is a generic LCDConf.c to be used with the GUIDRV_Lin driver.

    What kind of (or which) LCD controller do you want to use?
    Is it on-chip or is it an external one?
    How does the interface look like, is it a serial interface or a RGB interface?

    If it is a serial interface you would need the GUIDRV_FlexColor driver. If it is a RGB interface you are fine with GUIDRV_Lin.

    EDIT: Attached missing file.

    Regards
    Sven
    Files
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.