完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我做第一次尝试使用配置器,使我第一次尝试使用图形触摸屏显示器。在选择低成本无控制器图形控制器时,我在代码生成过程中出错:文件“框架/GFX /驱动程序/控制器/ LCD/模板/ DRVIGGFXLCCXExelalAdPurthHyPravult.FTL”存在。硬件配置是PIC32以太网起动器套件,LCC PICTURX PLUS女儿。板,以及NeWaWnNHD-3.5-24240MF ATXLα-T-1显示器与DigiKi适配器板。一些控制器选项产生代码没有错误,但该代码将不编译。和声版本2.06.任何帮助指向我在正确的方向,将不胜感激。
以上来自于百度翻译 以下为原文 I'm making my first attempt using the Configurator to make my first attempt at using a graphics touch panel display. I'm getting an error during code generation when I select the Low Cost Controllerless graphics controller: Template not found for name "framework/gfx/driver/controller/lcc/templates/framework/gfx/driver/controller/lcc/templates/drv_gfx_lcc_external_refresh_aggressive.ftl". The name was interpreted by this TemplateLoader: MultiTemplateLoader(loader1 = FileTemplateLoader(baseDir="/Users/Bill/microchip/hARMony/v2_06", canonicalBasePath="/Users/Bill/microchip/harmony/v2_06/"), loader2 = FileTemplateLoader(baseDir="/Users/Bill/microchip/harmony/v2_06/apps/temp/firmware/src", canonicalBasePath="/Users/Bill/microchip/harmony/v2_06/apps/temp/firmware/src/")). ---- FTL stack trace ("~" means nesting-related): - Failed at: #include "framework/gfx/driver/contro... [in template "framework/gfx/driver/controller/lcc/templates/drv_gfx_lcc_generic_external.c.ftl" at line 615, column 1] ---- The file "framework/gfx/driver/controller/lcc/templates/drv_gfx_lcc_external_refresh_aggressive.ftl" exists. The hardware configuration is a PIC32 Ethernet Starter Kit, LCC PICTAIL PLUS daughter board, and the Newhaven NHD-3.5-320240MF-ATXL#-T-1 display with a Digikey adapter board. Some controller options produce code without errors, but that code will not compile. Harmony version 2.06. Any help pointing me in the right direction would be appreciated. |
|
相关推荐
6个回答
|
|
|
|
|
|
|
|
|
|
看起来这是一个被忽略的错误。请尝试在DRVIGGFXLCCGNGICICUX外部替换第615行。CfFTOF/LT;TrnalaRealthHyPrimult.ftl“,这应该解决你的问题。
以上来自于百度翻译 以下为原文 Looks like it's a bug that was missed. Please try replacing line 615 in drv_gfx_lcc_generic_external.c.ftl from <#include "framework/gfx/driver/controller/lcc/templates/drv_gfx_lcc_external_refresh_aggressive.ftl"> to this <#include "/framework/gfx/driver/controller/lcc/templates/drv_gfx_lcc_external_refresh_aggressive.ftl"> This should take care of your problem. |
|
|
|
谢谢,这解决了这个问题,但是最终的代码不会编译。有什么暗示吗?
以上来自于百度翻译 以下为原文 Thanks, that took care of that problem. The resulting code will not compile however. Any hints on this? ................ "/Applications/microchip/xc32/v2.05/bin/xc32-gcc" -g -x c -c -mprocessor=32MX795F512L -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/88308223/gfx_draw_stretchblit.o.d -o build/default/production/_ext/88308223/gfx_draw_stretchblit.o ../../../../framework/gfx/hal/src/gfx_draw_stretchblit.c -DXPRJ_default=default -no-legacy-libc "/Applications/microchip/xc32/v2.05/bin/xc32-gcc" -g -x c -c -mprocessor=32MX795F512L -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/1988394548/drv_gfx_lcc_generic.o.d -o build/default/production/_ext/1988394548/drv_gfx_lcc_generic.o ../src/system_config/default/framework/gfx/driver/controller/lcc/drv_gfx_lcc_generic.c -DXPRJ_default=default -no-legacy-libc nbproject/Makefile-default.mk:1749: recipe for target 'build/default/production/_ext/1988394548/drv_gfx_lcc_generic.o' failed ../src/system_config/default/framework/gfx/driver/controller/lcc/drv_gfx_lcc_generic.c: In function 'DRV_GFX_LCC_Start': ../src/system_config/default/framework/gfx/driver/controller/lcc/drv_gfx_lcc_generic.c:316:29: error: 'DRV_GFX_LCC_TMR_INDEX' undeclared (first use in this function) PLIB_TMR_PrescaleSelect(DRV_GFX_LCC_TMR_INDEX, 0); ^ ../src/system_config/default/framework/gfx/driver/controller/lcc/drv_gfx_lcc_generic.c:316:29: note: each undeclared identifier is reported only once for each function it appears in make[2]: *** [build/default/production/_ext/1988394548/drv_gfx_lcc_generic.o] Error 1 make[2]: *** Waiting for unfinished jobs.... "/Applications/microchip/xc32/v2.05/bin/xc32-gcc" -g -x c -c -mprocessor=32MX795F512L -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 ../src/system_config/default/framework/gfx/libaria/libaria_harmony.c:48:1: error: unknown type name 'SYS_INP_InputListener' nbproject/Makefile-default.mk:1755: recipe for target 'build/default/production/_ext/458109090/libaria_harmony.o' failed 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); ^ ../src/system_config/default/framework/gfx/libaria/libaria_harmony.c: At top level: ../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]: *** [build/default/production/_ext/458109090/libaria_harmony.o] Error 1 "/Applications/microchip/xc32/v2.05/bin/xc32-gcc" -g -x c -c -mprocessor=32MX795F512L -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 "/Applications/microchip/xc32/v2.05/bin/xc32-gcc" -g -x c -c -mprocessor=32MX795F512L -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 "/Applications/microchip/xc32/v2.05/bin/xc32-gcc" -g -x c -c -mprocessor=32MX795F512L -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/65930274/sys_dma.o.d -o build/default/production/_ext/65930274/sys_dma.o ../../../../framework/system/dma/src/sys_dma.c -DXPRJ_default=default -no-legacy-libc "/Applications/microchip/xc32/v2.05/bin/xc32-gcc" -g -x c -c -mprocessor=32MX795F512L -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 "/Applications/microchip/xc32/v2.05/bin/xc32-gcc" -g -x c -c -mprocessor=32MX795F512L -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 "/Applications/microchip/xc32/v2.05/bin/xc32-gcc" -g -x c -c -mprocessor=32MX795F512L -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_processor_def.o.d -o build/default/production/_ext/2065038297/gfx_processor_def.o ../src/system_config/default/framework/gfx/hal/gfx_processor_def.c -DXPRJ_default=default -no-legacy-libc "/Applications/microchip/xc32/v2.05/bin/xc32-gcc" -g -x c -c -mprocessor=32MX795F512L -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 "/Applications/microchip/xc32/v2.05/bin/xc32-gcc" -g -x c -c -mprocessor=32MX795F512L -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/639803181/sys_clk_pic32mx.o.d -o build/default/production/_ext/639803181/sys_clk_pic32mx.o ../src/system_config/default/framework/system/clk/src/sys_clk_pic32mx.c -DXPRJ_default=default -no-legacy-libc "/Applications/microchip/xc32/v2.05/bin/xc32-gcc" -g -x c -c -mprocessor=32MX795F512L -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/340578644/sys_devcon.o.d -o build/default/production/_ext/340578644/sys_devcon.o ../src/system_config/default/framework/system/devcon/src/sys_devcon.c -DXPRJ_default=default -no-legacy-libc "/Applications/microchip/xc32/v2.05/bin/xc32-gcc" -g -x c -c -mprocessor=32MX795F512L -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/340578644/sys_devcon_pic32mx.o.d -o build/default/production/_ext/340578644/sys_devcon_pic32mx.o ../src/system_config/default/framework/system/devcon/src/sys_devcon_pic32mx.c -DXPRJ_default=default -no-legacy-libc "/Applications/microchip/xc32/v2.05/bin/xc32-gcc" -g -x c -c -mprocessor=32MX795F512L -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/74298950/bsp.o.d -o build/default/production/_ext/74298950/bsp.o ../src/system_config/default/bsp/bsp.c -DXPRJ_default=default -no-legacy-libc make[1]: *** [.build-conf] Error 2 make: *** [.build-impl] Error 2 "/Applications/microchip/xc32/v2.05/bin/xc32-gcc" -g -x c -c -mprocessor=32MX795F512L -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/1688732426/system_init.o.d -o build/default/production/_ext/1688732426/system_init.o ../src/system_config/default/system_init.c -DXPRJ_default=default -no-legacy-libc "/Applications/microchip/xc32/v2.05/bin/xc32-gcc" -g -x c -c -mprocessor=32MX795F512L -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/822048611/sys_ports_static.o.d -o build/default/production/_ext/822048611/sys_ports_static.o ../src/system_config/default/framework/system/ports/src/sys_ports_static.c -DXPRJ_default=default -no-legacy-libc "/Applications/microchip/xc32/v2.05/bin/xc32-gcc" -g -x c -c -mprocessor=32MX795F512L -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/1688732426/system_interrupt.o.d -o build/default/production/_ext/1688732426/system_interrupt.o ../src/system_config/default/system_interrupt.c -DXPRJ_default=default -no-legacy-libc make[2]: Leaving directory '/Users/Bill/microchip/harmony/v2_06/apps/temp/firmware/temp.X' nbproject/Makefile-default.mk:90: recipe for target '.build-conf' failed make[1]: Leaving directory '/Users/Bill/microchip/harmony/v2_06/apps/temp/firmware/temp.X' nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed BUILD FAILED (exit value 2, total time: 19s) |
|
|
|
有几个设置需要设置来解决这些编译错误:在MPLAB和谐配置器中,确保以下设置:1)图形堆栈& GT;图形控制器-Gt;Low Cost Controllerless & Gt;内存设置-& DMA传输长度-&小缓冲区2)图形堆栈-GT;定时控制器-Gt;选择时序控制器-&Gt;SSD12893)-图形堆栈&时序控制器-Gt;选择定时控制器-&Gt;SSD1289&Gt & Gt;LCC4)系统服务-定时器& gt;使用定时器系统Service 5)系统服务-GT;输入和使用输入系统服务6)DRIVER & GT;Time& GT;TMR驱动程序实例化0& GT;定时器模块ID-GT;TMRA ID37)驱动程序-GT;Time& GT;TMR驱动程序StimeNo.0& gt;336i。它是你所描述的最接近的配置。您可能想打开这个应用程序的和谐配置,看看。
以上来自于百度翻译 以下为原文 There are several settings that needs to be set to resolve those compile errors: In MPLAB Harmony Configurator, make sure the follow are set: 1) Graphics Stack -> Graphics Controller -> Low Cost Controllerless -> Memory Settings -> DMA Transfer Length -> Small Buffer 2) Graphics Stack -> Timing Controller -> Select Timing Controller -> SSD1289 3) Graphics Stack -> Timing Controller -> Select Timing Controller -> SSD1289 -> Mode -> LCC 4) System Service -> Timer -> Use Timer System Service 5) System Service -> Input -> Use Input System Service 6) Drivers -> Timer -> TMR Driver Instance0 -> Timer Module ID -> TMR_ID_3 7) Drivers -> Timer -> TMR Driver Instance0 -> Timer Period -> 336 I got these settings off the pic32mx_u***_sk2_lcc_pictail_qvga configuration of graphics demo app aria_quickstart. It is the closest configuration to what you have described. You may want to open the Harmony Configuration of this app and have a look. |
|
|
|
谢谢,非常感谢。修正了许多编译错误。不过还不太清楚。我会尝试通过演示,并通过其余的工作。
以上来自于百度翻译 以下为原文 Thanks, much appreciated. That fixed many of the compile errors. Still not quite there though. I'll try to go through the demo and work through the rest. |
|
|
|
只有小组成员才能发言,加入小组>>
5207 浏览 9 评论
2017 浏览 8 评论
1943 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3188 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2244 浏览 5 评论
758浏览 1评论
644浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
560浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
657浏览 0评论
556浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-8 11:13 , Processed in 1.140007 second(s), Total 79, Slave 72 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号