Including emWin libraries on a new LPCXpresso project

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

  • Including emWin libraries on a new LPCXpresso project

    Hello everyone,

    I had a good experience with the already made emWin example project for LPCXpresso available at LPCWare but now that I own the library I would like to create a clean project.

    I have created a new project in LPCXpresso for LPC1788 and included the folders as described in "2.1.2 Include directories" of emWin5.18 User Manual. Still, when compiling my project I get a lot of errors of this kind:

    ../src/main.c:272: undefined reference to `GUI_Init'
    ../src/main.c:274: undefined reference to `GUI_AA_EnableHiRes'
    ../src/main.c:275: undefined reference to `GUI_AA_SetFactor'
    ../src/main.c:277: undefined reference to `GUI_MEMDEV_CreateAuto'
    ../src/main.c:348: undefined reference to `GUI_MEMDEV_DrawAuto'
    ../src/main.c:349: undefined reference to `GUI_Delay'

    [Correction] These are LINKER errors, not compiler.

    Can anyone give me some help?

    Thanks,
    David Copeto

    The post was edited 1 time, last by dcopeto ().

  • Hello Adrian,

    Sorry for the late reply, I didn't get an email alert...

    Could you please elaborate? I have just followed the instructions in point 2.1.2 of the Manual. Do you mean if I created a library as described in point 2.3?

    Thanks for the help,
    David
  • Hi Adrian,

    I have now in the Includes folder of my project the directories:

    /Config
    /GUI/Core
    /GUI/DisplayDriver
    /GUI/Widget
    /GUI/WM

    Still I have the errors:
    ../arm-none-eabi/bin/ld.exe: C1200.axf section `.bss' will not fit in region `RamLoc64'
    c:/code_red/redsuite_5.0.14_1145/redsuite/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/bin/ld.exe: region `RamLoc64' overflowed by 2032168 bytes
    (...)
    ./GUI/Core/GUI_Core.o: In function `GUI_Init':
    ../GUI/Core/GUI_Core.c:216: undefined reference to `GUI_X_Init'
    ./Config/LCDConf.o: In function `_InitController':
    ../Config/LCDConf.c:124: undefined reference to `LCD_X_Init'


    My main.c looks like this:

    C Source Code

    1. #include "GUI.h"
    2. #ifdef __USE_CMSIS
    3. #include "LPC177x_8x.h"
    4. #endif
    5. #include <cr_section_macros.h>
    6. #include <NXP/crp.h>
    7. __CRP const unsigned int CRP_WORD = CRP_NO_CRP ;
    8. void main(void) {
    9. GUI_Init();
    10. GUI_DispString("Hello world!");
    11. while(1);
    12. }
    Display All


    Best regards,
    David