完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
首先是强制性的背景:MPLAB X IDE V3.55 xC32 V1.43Valm V2.02BPIC32 MX470F512L处理器NHD-4.3-48022EF-ASXNα-T LCDIS61WV51216BLL 10TLI外部存储器。我选择PIC32 MX470F512L的原因是我们对处理器有很好的经验,它具有外围引脚选择,以及如果需要的话,我可以回落到MLA。因为在Posial2.02B的应用程序文件夹中没有PIC32 MX项目,所以我的起点只是创建一个定制的BSP。这是相对简单的,在过去还不是一个问题,特别是因为我能够复制和修改现有的BSP的基础上类似的NeHavavin显示器使用电容触摸库。唯一不同的是,我选择的LCD使用4线电阻技术。开始,我会选择我的新BSP,然后是图形堆栈。与免费模板库文件一起工作,我能够根据PCAP电容显示正确地插入逻辑。根据我所知,正确的文件被配置和包含。当然,我会有错误,但是我希望得到一些帮助。具体来说,在两个文件中:DrviFxxLCcIGr.G.C和LiabaaLeNo.C.C.让我们从第一个文件开始,因为到现在为止我还没有得到第二个文件。编译器抱怨框架地址。生成的代码为DRVIVGFXLCCS.GANU.C对这个变量有定义,但它是注释出来的。同时,它只用于下面的代码:静态gfxl结果SaveDATA(空隙){(dCH1csiz)!(=1);(DopCurt & Pt;PixelyDouthPrimeDMAYTX);DMACONBITS.St==1;而(PMMODEBITS.STORY=1);和/或等待DMA传输被挂起/ /执行写γIFIFF BSPH-SRAMYA15STATESET BSPHSRAMYA15STATESET((帧地址>G&G.0;15)&0x1);BSPH-SRAMYA17STATESET((DRVLCCOBJ.IITDATA & GT;ActudioPoST)和0x1);BSPH-SRAMYA18STATESET((DRVLCCOBJ.IITDATA & GT;ActudioPoT & G&T;1)和0x1);/ /保存以前的地址值PREVADDRR=PMADR;PMADRR=帧地址;返回GFXY成功;}它从未设置,所以我不清楚这个SO如何ULD是固定的。需要修改DRVIGGFXLCCGNANICIOUTALAL.C.FTL文件,但如何修改?另一个问题是下面的行:PLIPHPMPReReWrdErthBoopListisClice(0, 1 -((CNTXT & GT;DePlasyFiel-&G.Atvest.VixLeftToSHIFT));在定义FGFxDePlsFielf的定义中不存在IfxLooptToSHIFT。还有其他问题,但我们从这里开始。至少,知道开发人员意识到这些问题,并且它们将被固定在短时间内是很好的。
以上来自于百度翻译 以下为原文 First the obligatory background: MPLAB X IDE v3.55 XC32 v1.43 HARMony v2.02b PIC32MX470F512L processor Newhaven NHD-4.3-480272EF-ASXN#-T LCD IS61WV51216BLL-10TLI external memory The reason I chose the PIC32MX470F512L is that we have had good experience with the processor, it has peripheral pin select, and I can fall back to MLA if need be. Since there are no projects for PIC32MX in the apps folder for Harmony 2.02b, my starting point was simply to create a custom BSP. This is relatively straightforward and hasn't been an issue in the past, especially since I was able to copy and then modify an existing BSP based on a similar Newhaven display that uses the capacitive touch library. The only difference is that the lcd that I chose uses 4-wire resistive technology. Starting out, I'll select my new BSP and then the Graphics stack. Having worked with free template library files, I was able to bolt in the correct logic based on the PCAP capacitive display. The correct files are configured and included as far as I can tell. Naturally, I get errors, but there seems to be some quirks with the stack that I was hoping to get some help with. Specifically, in two files: drv_gfx_lcc_generic.c and libaria_harmony.c. Let's start with the first file, as I haven't gotten to the second file as of yet. The compiler complains about _frameAddress. The generated code for drv_gfx_lcc_generic.c has a definition for this variable, but it is commented out. At the same time, it is only used in the following code: static GFX_Result saveData(void) { while(DCH1CSIZ != 1); while(DrawCount > PIXEL_DRAW_PER_DMA_TX); DMACONbits.SUSPEND = 1; while(PMMODEbits.BUSY == 1); //WAIT for DMA transfer to be suspended //Perform Write #ifdef BSP_SRAM_A15StateSet BSP_SRAM_A15StateSet((_frameAddress >> 15)&0x1); #endif BSP_SRAM_A16StateSet((_frameAddress >> 16)&0x1); BSP_SRAM_A17StateSet((drvLCCObj.initData->activePage)&0x1); BSP_SRAM_A18StateSet((drvLCCObj.initData->activePage>>1)&0x1); //Save previous address value prevaddr = PMADDR; PMADDR = _frameAddress; return GFX_SUCCESS; } It is never set, so it's unclear to me how this should be fixed. The drv_gfx_lcc_generic_external.c.ftl file will need to be modified, but how? Another issue is with the following line: PLIB_PMP_ReadWriteStrobePolaritySelect(0, 1 - ((cntxt->display_info->attributes.inv_left_shift))); inv_left_shift does not exist in the definition of GFX_DisplayInfo where it is defined. There are other problems, but let's start with this. At a minimum, it would be nice to know that the developers are aware of these issues and that they will be fixed in short order. |
|
相关推荐
4个回答
|
|
在第二次浏览中,通过启用消息和触摸系统服务,我能够消除关于LabiaLaHyth.Or.c文件的错误。然而,其他错误却令人困惑。
以上来自于百度翻译 以下为原文 On second glance, I was able to remove the errors with respect to the libaria_harmony.c file by enabling the message and touch system services. Still, the other errors are confusing. |
|
|
|
如果每个和声库的依赖性被记录,那就好了。找一个类似的样本来复习一下。您确信没有MX库吗?他们不会分开。这将是一个项目中的构建选项。
以上来自于百度翻译 以下为原文 It would be nice if the dependencies for each harmony library was documented. Find a similar sample an review it. Are you sure about no MX libraries? They would not be seperate. The would be a build option in one of the projects. |
|
|
|
在App/GFX下,只有5个例子。所有这些示例只有一个在StasyOnFig下的文件夹:PIC32 MZAEFSKYMYMEB2。所有这些例子都是针对PIC32 MZ处理器和MEB板的。我同意这些库不是分开的,但是从快速入门指南中,我使用PIC32 MX795和一个已知的“好”BSP得到相同的错误。通过“好”,我的意思是它与堆栈一起,我还没有碰过它。我会在周末多踢一些,但我想你可以简单地选择一个处理器,一个BSP(LCD相关),选择图形堆栈,生成代码,然后能够编译无错误。
以上来自于百度翻译 以下为原文 Under apps/gfx there are only 5 examples. All of those examples have but one folder under system_config: pic32mz_ef_sk_meb2. All of these examples are for PIC32MZ processors and the MEB board. I agree that the libraries wouldn't be separate, but going from the quick start guide I get the same errors using a PIC32MX795 and a known, "good" bsp. By "good" I mean it came with the stack and I haven't touched it. I'll kick this around some more over the weekend, but I would have that you could have simply selected a processor, a BSP (LCD related), selected the graphics stack, generated the code, and then been able to compile without error. |
|
|
|
嗨,B祝福,你能告诉我关于框架的确切错误吗?对于CNTXT & GT;DISPLAXIOFION->Atvest.VixLeftToSHIFT,您将其替换为使用正在使用的图形堆栈和图形显示的MHC中的反转电平移位值。请参阅附件图像。这个问题将被固定在V2.03B中。注意,一旦您克服了这些错误,您可能仍然会遇到LCD控制引脚的未定义宏符号的错误,例如BSPL*LCDYVSCONCONN、BSPYLCDVYVSCONCOFF等。这些宏通常是从BSP定义的,但是您可以通过SP创建这些宏。在PIN设置选项卡中指定引脚。(也请参阅附上的图片)如果有任何问题请告诉我。
以上来自于百度翻译 以下为原文 Hi bblessing, Can you send me the exact error with regard to _frameAddres? For the issue with cntxt->display_info->attributes.inv_left_shift, you patch it by replace it with the Inverting Level Shift value in MHC under Use Graphics Stack -> Graphics Display. Please refer attached image. This issue will be fixed in Harmony v2.03b. Note that once you have overcome these errors, you may still encounter errors with undefined MACRO symbols for LCD control pins, such as BSP_LCD_VSYNCOn, BSP_LCD_VSYNCOff, etc. These MACROs are typically defined from the BSP, but you can create these by specifying the pins in the Pin Settings tab. (Also please see attached image). Please let me know if you have any further questions. Attached Image(s) |
|
|
|
只有小组成员才能发言,加入小组>>
5007 浏览 9 评论
1923 浏览 8 评论
1853 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3070 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2145 浏览 5 评论
578浏览 1评论
435浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
478浏览 0评论
372浏览 0评论
IPECMD命令烧录AVR128DA48芯片,报找不到芯片错误
855浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-8-18 12:15 , Processed in 1.070681 second(s), Total 55, Slave 48 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号