• AVR Freaks

Hot!graphic stack creates lots of errors in mplab harmony 2.02

Author
faisal14
New Member
  • Total Posts : 12
  • Reward points : 0
  • Joined: 2020/03/17 23:48:13
  • Location: 0
  • Status: offline
2020/08/10 09:53:33 (permalink)
0

graphic stack creates lots of errors in mplab harmony 2.02

Hey guys, i am new to MPLAB harmony2.02 trying to interface my truly 5.7" (640x480) LCD, through PIC32MZ2048efm144 starter kit and picTail epson S1D13517 graphic controller.
After i check the graphic stack and generate the code with my mentioned configuration, during compilation it creates lots of errors which mostly belong to make_file.
I am unable to understand the errors and their reason, Need help and i will be glad if somebody could provide project file for the graphic with my mentioned hardware, because as i try to modify the hardware configuration of example demos it also create errors.
Thanks 
#1

8 Replies Related Threads

    NKurzman
    A Guy on the Net
    • Total Posts : 18908
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: offline
    Re: graphic stack creates lots of errors in mplab harmony 2.02 2020/08/10 11:13:45 (permalink)
    5 (1)
    Why are you using V2.02?  That would be the V1.XX Library  Why not V2.06 or V3.XX for a new Project?
    What are the Erros?
     
    The C:\microchip\harmony\v2_02\apps\gfx folder has examples.
    #2
    faisal14
    New Member
    • Total Posts : 12
    • Reward points : 0
    • Joined: 2020/03/17 23:48:13
    • Location: 0
    • Status: offline
    Re: graphic stack creates lots of errors in mplab harmony 2.02 2020/08/10 11:57:43 (permalink)
    0
    Oh yes MHC version is 2.0.6, following are the errors
     
    "C:\Program Files\Microchip\xc32\v2.40\bin\xc32-gcc.exe" -g -x c -c -mprocessor=32MZ2048EFM144 -ffunction-sections -O1 -I../src -I../src/system_config/default -I../src/default -I../../../../framework -I../src/system_config/default/framework -I../src/system_config/default/bsp -MMD -MF build/default/production/_ext/458109090/libaria_macros.o.d -o build/default/production/_ext/458109090/libaria_macros.o ../src/system_config/default/framework/gfx/libaria/libaria_macros.c -DXPRJ_default=default -no-legacy-libc "-mdfp=C:/Program Files (x86)/Microchip/MPLABX/v5.35/packs/Microchip/PIC32MZ-EF_DFP/1.2.51"
    ../src/system_config/default/framework/gfx/driver/controller/s1d13517/drv_gfx_s1d13517.c:43:49: fatal error: framework/driver/pmp/drv_pmp_static.h: No such file or directory
    "C:\Program Files\Microchip\xc32\v2.40\bin\xc32-gcc.exe" -g -x c -c -mprocessor=32MZ2048EFM144 -ffunction-sections -O1 -I../src -I../src/system_config/default -I../src/default -I../../../../framework -I../src/system_config/default/framework -I../src/system_config/default/bsp -MMD -MF build/default/production/_ext/458109090/libaria_events.o.d -o build/default/production/_ext/458109090/libaria_events.o ../src/system_config/default/framework/gfx/libaria/libaria_events.c -DXPRJ_default=default -no-legacy-libc "-mdfp=C:/Program Files (x86)/Microchip/MPLABX/v5.35/packs/Microchip/PIC32MZ-EF_DFP/1.2.51"
    "C:\Program Files\Microchip\xc32\v2.40\bin\xc32-gcc.exe" -g -x c -c -mprocessor=32MZ2048EFM144 -ffunction-sections -O1 -I../src -I../src/system_config/default -I../src/default -I../../../../framework -I../src/system_config/default/framework -I../src/system_config/default/bsp -MMD -MF build/default/production/_ext/458109090/libaria_init.o.d -o build/default/production/_ext/458109090/libaria_init.o ../src/system_config/default/framework/gfx/libaria/libaria_init.c -DXPRJ_default=default -no-legacy-libc "-mdfp=C:/Program Files (x86)/Microchip/MPLABX/v5.35/packs/Microchip/PIC32MZ-EF_DFP/1.2.51"
    #include "framework/driver/pmp/drv_pmp_static.h"
    "C:\Program Files\Microchip\xc32\v2.40\bin\xc32-gcc.exe" -g -x c -c -mprocessor=32MZ2048EFM144 -ffunction-sections -O1 -I../src -I../src/system_config/default -I../src/default -I../../../../framework -I../src/system_config/default/framework -I../src/system_config/default/bsp -MMD -MF build/default/production/_ext/2065038297/gfx_display_def.o.d -o build/default/production/_ext/2065038297/gfx_display_def.o ../src/system_config/default/framework/gfx/hal/gfx_display_def.c -DXPRJ_default=default -no-legacy-libc "-mdfp=C:/Program Files (x86)/Microchip/MPLABX/v5.35/packs/Microchip/PIC32MZ-EF_DFP/1.2.51"
    ^
    "C:\Program Files\Microchip\xc32\v2.40\bin\xc32-gcc.exe" -g -x c -c -mprocessor=32MZ2048EFM144 -ffunction-sections -O1 -I../src -I../src/system_config/default -I../src/default -I../../../../framework -I../src/system_config/default/framework -I../src/system_config/default/bsp -MMD -MF build/default/production/_ext/2065038297/gfx_driver_def.o.d -o build/default/production/_ext/2065038297/gfx_driver_def.o ../src/system_config/default/framework/gfx/hal/gfx_driver_def.c -DXPRJ_default=default -no-legacy-libc "-mdfp=C:/Program Files (x86)/Microchip/MPLABX/v5.35/packs/Microchip/PIC32MZ-EF_DFP/1.2.51"
    compilation terminated.
    make[2]: *** [nbproject/Makefile-default.mk:1761: build/default/production/_ext/570016245/drv_gfx_s1d13517.o] Error 1
    make[2]: *** Waiting for unfinished jobs....
    ../src/system_config/default/framework/gfx/libaria/libaria_harmony.c:48:1: error: unknown type name 'SYS_INP_InputListener'
    SYS_INP_InputListener inputListener;
    ^
    ../src/system_config/default/framework/gfx/libaria/libaria_harmony.c:50:1: error: unknown type name 'SYS_INP_TouchStateEvent'
    static void touchDownHandler(const SYS_INP_TouchStateEvent* const evt);
    ^
    ../src/system_config/default/framework/gfx/libaria/libaria_harmony.c:51:1: error: unknown type name 'SYS_INP_TouchStateEvent'
    static void touchUpHandler(const SYS_INP_TouchStateEvent* const evt);
    ^
    ../src/system_config/default/framework/gfx/libaria/libaria_harmony.c:52:1: error: unknown type name 'SYS_INP_TouchMoveEvent'
    static void touchMoveHandler(const SYS_INP_TouchMoveEvent* const evt);
    ^
    ../src/system_config/default/framework/gfx/libaria/libaria_harmony.c: In function 'LibAria_Initialize':
    ../src/system_config/default/framework/gfx/libaria/libaria_harmony.c:73:18: error: request for member 'handleTouchDown' in something not a structure or union
    inputListener.handleTouchDown = &touchDownHandler;
    ^
    ../src/system_config/default/framework/gfx/libaria/libaria_harmony.c:74:18: error: request for member 'handleTouchUp' in something not a structure or union
    inputListener.handleTouchUp = &touchUpHandler;
    ^
    ../src/system_config/default/framework/gfx/libaria/libaria_harmony.c:75:18: error: request for member 'handleTouchMove' in something not a structure or union
    inputListener.handleTouchMove = &touchMoveHandler;
    ^
    ../src/system_config/default/framework/gfx/libaria/libaria_harmony.c: At top level:
    ../src/system_config/default/framework/gfx/libaria/libaria_harmony.c:113:1: error: unknown type name 'SYS_INP_TouchStateEvent'
    void touchDownHandler(const SYS_INP_TouchStateEvent* const evt)
    ^
    ../src/system_config/default/framework/gfx/libaria/libaria_harmony.c: In function 'touchDownHandler':
    ../src/system_config/default/framework/gfx/libaria/libaria_harmony.c:115:32: error: request for member 'index' in something not a structure or union
    laInput_InjectTouchDown(evt->index, evt->x, evt->y);
    ^
    ../src/system_config/default/framework/gfx/libaria/libaria_harmony.c:115:44: error: request for member 'x' in something not a structure or union
    laInput_InjectTouchDown(evt->index, evt->x, evt->y);
    ^
    ../src/system_config/default/framework/gfx/libaria/libaria_harmony.c:115:52: error: request for member 'y' in something not a structure or union
    laInput_InjectTouchDown(evt->index, evt->x, evt->y);
    ^
    ../src/system_config/default/framework/gfx/libaria/libaria_harmony.c: At top level:
    ../src/system_config/default/framework/gfx/libaria/libaria_harmony.c:118:1: error: unknown type name 'SYS_INP_TouchStateEvent'
    void touchUpHandler(const SYS_INP_TouchStateEvent* const evt)
    ^
    ../src/system_config/default/framework/gfx/libaria/libaria_harmony.c: In function 'touchUpHandler':
    ../src/system_config/default/framework/gfx/libaria/libaria_harmony.c:120:30: error: request for member 'index' in something not a structure or union
    laInput_InjectTouchUp(evt->index, evt->x, evt->y);
    ^
    ../src/system_config/default/framework/gfx/libaria/libaria_harmony.c:120:42: error: request for member 'x' in something not a structure or union
    laInput_InjectTouchUp(evt->index, evt->x, evt->y);
    ^
    ../src/system_config/default/framework/gfx/libaria/libaria_harmony.c:120:50: error: request for member 'y' in something not a structure or union
    laInput_InjectTouchUp(evt->index, evt->x, evt->y);
    ^
    "C:\Program Files\Microchip\xc32\v2.40\bin\xc32-gcc.exe" -g -x c -c -mprocessor=32MZ2048EFM144 -ffunction-sections -O1 -I../src -I../src/system_config/default -I../src/default -I../../../../framework -I../src/system_config/default/framework -I../src/system_config/default/bsp -MMD -MF build/default/production/_ext/570016245/drv_gfx_s1d13517_draw.o.d -o build/default/production/_ext/570016245/drv_gfx_s1d13517_draw.o ../src/system_config/default/framework/gfx/driver/controller/s1d13517/drv_gfx_s1d13517_draw.c -DXPRJ_default=default -no-legacy-libc "-mdfp=C:/Program Files (x86)/Microchip/MPLABX/v5.35/packs/Microchip/PIC32MZ-EF_DFP/1.2.51"
    ../src/system_config/default/framework/gfx/driver/controller/s1d13517/drv_gfx_s1d13517_draw.c:43:49: fatal error: framework/driver/pmp/drv_pmp_static.h: No such file or directory
    #include "framework/driver/pmp/drv_pmp_static.h"
    ^
    ../src/system_config/default/framework/gfx/libaria/libaria_harmony.c: At top level:
    compilation terminated.
    ../src/system_config/default/framework/gfx/libaria/libaria_harmony.c:123:1: error: unknown type name 'SYS_INP_TouchMoveEvent'
    void touchMoveHandler(const SYS_INP_TouchMoveEvent* const evt)
    ^
    ../src/system_config/default/framework/gfx/libaria/libaria_harmony.c: In function 'touchMoveHandler':
    ../src/system_config/default/framework/gfx/libaria/libaria_harmony.c:125:33: error: request for member 'index' in something not a structure or union
    laInput_InjectTouchMoved(evt->index, evt->x, evt->y);
    ^
    ../src/system_config/default/framework/gfx/libaria/libaria_harmony.c:125:45: error: request for member 'x' in something not a structure or union
    laInput_InjectTouchMoved(evt->index, evt->x, evt->y);
    ^
    ../src/system_config/default/framework/gfx/libaria/libaria_harmony.c:125:53: error: request for member 'y' in something not a structure or union
    laInput_InjectTouchMoved(evt->index, evt->x, evt->y);
    ^
    make[2]: *** [nbproject/Makefile-default.mk:1767: build/default/production/_ext/570016245/drv_gfx_s1d13517_draw.o] Error 1
    "C:\Program Files\Microchip\xc32\v2.40\bin\xc32-gcc.exe" -g -x c -c -mprocessor=32MZ2048EFM144 -ffunction-sections -O1 -I../src -I../src/system_config/default -I../src/default -I../../../../framework -I../src/system_config/default/framework -I../src/system_config/default/bsp -MMD -MF build/default/production/_ext/458109090/libaria_harmony.o.d -o build/default/production/_ext/458109090/libaria_harmony.o ../src/system_config/default/framework/gfx/libaria/libaria_harmony.c -DXPRJ_default=default -no-legacy-libc "-mdfp=C:/Program Files (x86)/Microchip/MPLABX/v5.35/packs/Microchip/PIC32MZ-EF_DFP/1.2.51"
    make[2]: Leaving directory 'C:/microchip/harmony/v2_06/apps/graphics_pic/firmware/graphics_pic.X'
    make[1]: Leaving directory 'C:/microchip/harmony/v2_06/apps/graphics_pic/firmware/graphics_pic.X'
    make[2]: *** [nbproject/Makefile-default.mk:1773: build/default/production/_ext/458109090/libaria_harmony.o] Error 1
    make[1]: *** [nbproject/Makefile-default.mk:91: .build-conf] Error 2
    make: *** [nbproject/Makefile-impl.mk:39: .build-impl] Error 2
    BUILD FAILED (exit value 2, total time: 1m 9s)
    #3
    faisal14
    New Member
    • Total Posts : 12
    • Reward points : 0
    • Joined: 2020/03/17 23:48:13
    • Location: 0
    • Status: offline
    Re: graphic stack creates lots of errors in mplab harmony 2.02 2020/08/11 09:57:55 (permalink)
    0
    please help i am unable to identify the errors
    #4
    NKurzman
    A Guy on the Net
    • Total Posts : 18908
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: offline
    Re: graphic stack creates lots of errors in mplab harmony 2.02 2020/08/11 12:20:02 (permalink)
    3.5 (2)
    ramework/driver/pmp/drv_pmp_static.h: No such file or directory
    It looks like you did not select the Hardware Driver and the PMP
    Did you select touch service and a touch driver?
     
    #5
    faisal14
    New Member
    • Total Posts : 12
    • Reward points : 0
    • Joined: 2020/03/17 23:48:13
    • Location: 0
    • Status: offline
    Re: graphic stack creates lots of errors in mplab harmony 2.02 2020/08/12 11:16:18 (permalink)
    0
    Do i need to select touch service and touch driver too, i thought they are included in the LCD selection and the LCD controller S1D15317?
    #6
    faisal14
    New Member
    • Total Posts : 12
    • Reward points : 0
    • Joined: 2020/03/17 23:48:13
    • Location: 0
    • Status: offline
    Re: graphic stack creates lots of errors in mplab harmony 2.02 2020/08/12 11:17:19 (permalink)
    0
    where can i find the guide to complete configuration for my hardware?
     
    #7
    NKurzman
    A Guy on the Net
    • Total Posts : 18908
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: offline
    Re: graphic stack creates lots of errors in mplab harmony 2.02 2020/08/12 11:57:39 (permalink)
    5 (2)
    The Graphics Library needs a Graphics Chip Driver.  And an external Hardware Chip usually needs the PMP Driver.
    Touch is Optional.  If you want it you need touch services and a Driver for your Touch chip / device.
    I do not know if the still have the V2 Harmony documentation still on line.  Look for links where you found Harmony 2.
    #8
    faisal14
    New Member
    • Total Posts : 12
    • Reward points : 0
    • Joined: 2020/03/17 23:48:13
    • Location: 0
    • Status: offline
    Re: graphic stack creates lots of errors in mplab harmony 2.02 2020/08/12 12:44:41 (permalink)
    1 (1)
    thanks man errors are reduced but still a few not gone
    error: unknown type name 'SYS_INP_InputListener'
    error: unknown type name 'SYS_INP_TouchStateEvent'
    error: request for member 'index' in something not a structure or union
    #9
    Jump to:
    © 2020 APG vNext Commercial Version 4.5