完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
所有,我从2.04的一个预建的应用程序,并将处理器从144PIN变为64引脚。我还为LCB显示和PMP中的源代码提供了示例。我理解的处理器的东西,我改变了所有的包含文件,以匹配处理器类型和东西。但我猜最大的问题是…如何管理模块和谐?有可能回到主要项目中,包括I2C(我需要)和UART吗?我试过了,但似乎什么也没做。任何建议都会被感激。谢谢,戈登。
以上来自于百度翻译 以下为原文 All, I took one of the pre-built apps from 2.04 and changed the processor from a 144pin to a 64pin. I also ripped out source for LCB display and PMP that was included in the example. The processor stuff I understand, I changed all the include files to match the processor type and stuff. But I guess the big question is... how do I manage modules in hARMony. Is it possible to go back into the main project and include I2C (which I need) and UART? I tried this but it did not seem to do anything. Any suggestions would be appreciated. Thanks, Gordon |
|
相关推荐
7个回答
|
|
你点击“生成”了吗?基本上,和谐采用您选择的选项,并生成项目的文件和文件夹。您也应该创建自己的板支持程序包。这样,如果你进入杂草,你总是可以从一个已知的工作状态开始。但是要小心一点:不要开始添加/移除由和谐产生的文件。当你准备好了,你可以开始在你的应用程序文件夹中添加文件,但是没有别的地方。
以上来自于百度翻译 以下为原文 Did you click "Generate"? Basically Harmony takes the options you select and generates the files and folders for your project. You should create your own board support package as well. That way if you get into the weeds, you can always start over from a known working state. A word of caution, though: don't start adding/removing files that were generated by harmony. When you're ready, you can start adding files into your app folders, but nowhere else. |
|
|
|
嗨,基本上不可能在现有的和声项目中“简单地”改变处理器。更好的方法是导出和导入设置。我在这里描述了方法:HTTP://www. McCHIP.COM/FUMMS/FUNDSPE/101567。通过这样做,不必触摸路径;加尔德
以上来自于百度翻译 以下为原文 Hi, Basically it is not possible to "simply" change the processor in an existing Harmony project. The better way to do that, is to export and import settings. I described here the methodology : http://www.microchip.com/forums/FindPost/1015678 By doing this it is not necessary to touch the paths ;=)... Regards |
|
|
|
好的,所以我第一次尝试的时候没有做。我已经发展好几年了。所以把显示出来的东西很简单,实际上在协调之前必须做很多次。所以我把UART和I2C添加到这个项目中,现在我在合并地狱。所以左边是生成的,右边是当前的。这是编辑吗?所以我认为原始文件是相同的,它要求我把需要的代码从左边移到右边。谢谢,戈登
以上来自于百度翻译 以下为原文 Ok so I did not do generate the first time I tried this. I have been developing for years. So yanking the display stuff out was pretty easy, actually had to do that a bunch of times before harmony. So I added UART and I2C to the project did generate and now I am kind of in merge hell. So the left side is the generated, right side the current. Is this an editor? So I take it that the original files are the same and it is asking me to move the needed code from the left to the right? Thanks, Gordon |
|
|
|
左边是生成的,右边是当前的。顶部的箭头将覆盖所有的更改,整个代码中的箭头将进行特定合并。每次生成文件时,都会要求合并。您的问题是:尽量避免编辑这些文件。你应该做的,至少在协调工作方面,是使用那些驱动程序的API(UART和I2C)。你的应用程序应该层叠在上面。不要觉得你必须使用和声的驱动程序。您可以像以前那样编写自己的驱动程序,但我建议您至少使用外围库API。例如,我使用动态SPI库(我确实编辑了FTL文件来添加像时钟模式那样的功能),但是我使用了用于USAT的外围库。
以上来自于百度翻译 以下为原文 Left is generated and right side is current. The arrow at the top will overwrite all changes and the arrows throughout the code will make specific merges. You will be asked to merge every time that you generate the files. The problem for you is this: try to avoid editing those files. What you're supposed to be doing, at least in terms of working with Harmony, is using the API from those drivers (UART and I2C). Your application should be layered on top of them. Don't feel that you HAVE to use Harmony's drivers. You can write your own drivers like before, but I would suggest that you at least use the peripheral library API. E.g., I use the Dynamic SPI library (I did edit the FTL files to add functionality like clock mode), but I use the peripheral library for the USART. |
|
|
|
谢谢!是的,我想出来了。但是和睦让一切都变得一团糟。所以我可能会回到昨天的源头,重新开始。我选择了每一个正确的例子。它确实增加了I2C和UART驱动程序和东西。它没有做的是为I2C和UART或配置和其他所有的东西创建头文件。PLIB功能有一个好的手册吗?我真的只是在这两个方面做基本的事情,所以真正的PLIB就好了。另外,我需要看看振荡器的一些PLIB功能和RIFLK的设置。我想我昨天算出来了,但我想查一下。谢谢,戈登。
以上来自于百度翻译 以下为原文 Thanks! Yea I figured this out. But Harmony leaves everything a bit of a mess. So I am probably going to go back to yesterday's source and start over. I selected each of the instances that were correct. It did add the I2C & UART drivers and stuff. What it didn't do was create the header files for I2C & UART or configurations and everything else. Is there a good manual for the PLIB functions? I really am doing just the basic stuff on both of these so really PLIB will be fine. Plus I need to look at some of the PLIB functions for oscillator and setup of REFCLK. I think I figured those out yesterday but I would like to check. Thanks, Gordon |
|
|
|
有一些事情,和谐是非常好的,至少在我看来。这些是:外围引脚选择,获得配置位正确,时钟设置等。我将是这样的:让你的配置位/时钟设置下来,然后启用计时器服务(不是驱动程序,服务将启用你)。如果你可以用你已经定义的频率(比如1赫兹)来切换一个端口引脚,那么你就知道你的配置位/时钟设置是正确的。从那里,我将创建一个新的板支持包(BSP),这样您就再也不用担心这些设置了。PLIB函数在这里被记录:C:Microchip HealthV2O04doc。使用.CHM文件。事实上,你也应该阅读有关和谐理论的阅读等。不要被PDF文件的大小所迷惑:只有100页左右才能加速。你想开始学习内外和谐的原因是因为它是未来的,如果你要使用PIC32 MZ处理器。
以上来自于百度翻译 以下为原文 There are some things that Harmony is very good at it, at least in my opinion. Those are: peripheral pin select, getting the configuration bits correct, clock settings, etc. What I would is this: get your configuration bit/clock settings down and then enable the Timer Service (not driver, the service will enable that for you). If you can toggle a port pin with your settings at a frequency that you've defined (say 1 Hz) then you know your configuration bits/clock settings are correct. From there, I would create a new board support package (BSP) so that you'll never have to worry about those settings again. The PLIB functions are documented here: C:microchipharmonyv2_04doc. Use the .chm file. In fact, you should also look into reading up on Harmony theory, etc. Don't be fooled by the size of the pdf file: only about 100 pages or so is necessary to get up to speed. The reason you want to start learning Harmony inside and out is because it IS the future if you're going to be using PIC32MZ processors. |
|
|
|
谢谢你提供的信息。我从早期就开始开发微芯片产品。我尝试了最后8个产品的和谐,发现它很难处理。我希望V2会好很多。所以在合并后,我陷入了一片混乱。因此,我取消了USAT和I2C的附加和声添加,然后返回并开始从协调手册的方向添加PLIB函数。我已经把所有适当的头文件放在适当位置,因为当创建和声代码时,和声没有包含所有的外设。因此,我找到了它们并将它们放置在一起。但是,由于某些原因,即使在项目中,该死的编译器也无法找到PLBIII2C。会是漫长的一天,再次感谢戈登
以上来自于百度翻译 以下为原文 Thanks for the information. I have been developing Microchip products since the early days. I tried Harmony on the last 8 products and found it to be hard to deal with. I was hoping v2 would be a lot better. So after the merge I had a total mess. So I scrapped the additional harmony adds of USART and I2C and went back and started adding the PLIB functions with the directions from the harmony manual. I had all the appropriate header files in place already as when the harmony code was created and merged harmony had not included all the peripheral headers so I found them and place them accordingly. But for some reason even included in the project the damn compiler cannot find plib_i2c.h even with the path set. Going to be a long day. Thanks again, Gordon |
|
|
|
只有小组成员才能发言,加入小组>>
4983 浏览 9 评论
1899 浏览 8 评论
1834 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3049 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2127 浏览 5 评论
557浏览 1评论
405浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
457浏览 0评论
349浏览 0评论
IPECMD命令烧录AVR128DA48芯片,报找不到芯片错误
834浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-8-8 05:23 , Processed in 1.161177 second(s), Total 89, Slave 72 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191