1
完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我想从XC8 V1.34迁移到V1.38。在这样做时,我需要解决微芯片已经从v1.35和随后的版本中撤回外围库的问题。在发行说明中,微芯片的状态是-4.4。版本1.35删除PIC18外围库PIC18外围库及其相关的头文件和文档不再随此编译器一起提供。MPLAB代码配置器(MCC)可用于生成执行与外围库提供的任务类似的任务的例程,并且可以为许多设备生成代码,而不仅仅是PIC18系列。MCC可以作为MPLAB X IDE插件提供,并且可以在Tools>Plugins菜单下从IDE下载。如果需要使用以前随编译器一起提供的外围库,可以单独下载这些库的归档文件,并且需要在编译器安装的顶部安装。存档是为编译器的V1.34构建的。如果您遇到存档库与用最新的编译器编译的项目之间的任何不一致,您可以将相关的库源模块复制到您的项目中。我使用的一个或多个芯片,例如PIC18F27 J13。因此,我必须迁移到支持的类似芯片,或者将相关的库源模块复制到我的项目中。如果我做了以后有一个我可以遵循的指南吗?我对RTCC、USAT和I2C库感兴趣。亚历克斯
以上来自于百度翻译 以下为原文 I'm wanting to migrate from XC8 v1.34 to v1.38. In doing so I need to tackle the problem whereby Microchip have withdrew the Peripheral Library from v1.35 and subsequent releases. In the release note Microchip states that - 4.4. Version 1.35I downloaded and installed the MPLAB Code configurator (MCC) plugin but unfortunately it doesn't support the chip one or more of the chips that I use for instance the PIC18F27J13. So I've either have to move to similar chip that is supported or copy the relevant library source modules into my project. If I do the later is there a guide that I can follow? I'm interested in rtcc, usart and i2c libraries. Alex |
|
相关推荐
9个回答
|
|
如果您的芯片是由Plib支持的,并且您希望继续使用它,那么请下载到您发现编译器所在的同一个网页上。将其安装到正在使用的编译器文件夹中。(注意,每次更新编译器时都必须安装它。
以上来自于百度翻译 以下为原文 If your Chip is Supported by Plib and you want to continue using it, then download it for the same web page you found the compiler on. Install it to the compiler folder that you are using. (note you must install it every time you update the compiler. |
|
|
|
从库中提取您需要的源位,并将它们添加到项目中,这样您就再也不用担心这些问题了。
以上来自于百度翻译 以下为原文 Extract the bits of source you need from the libraries, and add them to your project, and you will never have to worry about this again. |
|
|
|
因此,为了获得rtcc功能,我需要从项目-/opt/micro./xc8/v1.34/include/plib/rtcc.hsource代码-/opt/micro./xc8/v1.34/source/pic18/plib/rtcc中抽取适当的头部?然后编译。
以上来自于百度翻译 以下为原文 So to get rtcc functionality I need to pull the
Then compile. |
|
|
|
默认情况下,芯片在V1.34中被PLIB支持,但在随后的版本中,他们建议使用MPLAB代码配置器(MCC)。我从Microchip网站下载了XC8 V1.38,它在“当前外围库”标题的同一页上链接到“MPLAB代码配置”。“,”当我尝试使用它为PIC18F27 J13时,我得到一个消息框,说明McCIT不支持该设备,它也有一个链接到“PIC18F遗留外围库V2.0 Linux”,这是我需要的吗?
以上来自于百度翻译 以下为原文 The chip was supported by plib in v1.34 by default but in subsequent releases they're suggesting to use the MPLab Code Configurator (MCC). I downloaded XC8 v1.38 from the microchip website and it has on the same page under the heading "Current Peripheral Libraries" a link to the "MPLab Code Configurator". Which when I try and use it for the PIC18F27J13 I get a message box stating that the device is not supported by MCC It also has a link to "PIC18F Legacy Peripheral Libraries v2.0 - Linux" is that what I need? |
|
|
|
|
|
|
|
谢谢。我使用Linux。因此,子弹和下载的等价物。非常仔细地编写了一些简单的程序来建立信心。在我遇到这个错误之前,一切都正常——找到线程“1.35和PIC18F45K80”,在此之前已经讨论过这个问题,http://www.micro..com/for./m896604-p2.aspx结论在_25中,如果设备允许复制外围源代码以突出机智,则似乎使用MCC。HXC8V1.34 I将考虑如何进行。
以上来自于百度翻译 以下为原文 Thanks. I use linux. So bit the bullet and downloaded equivalent. Went very carefully and compiled some simple programs to build confidence. All was working well until I got this error - Found a thread, "1.35 and PIC18F45K80", where this problem has been previously discussed http://www.microchip.com/forums/m896604-p2.aspx The conclusion is in #25 which appears to be use MCC if device allows copy peripheral source code to project stick with XC8 v1.34 I shall have a think about how to proceed. |
|
|
|
还有重建库的选项。这个问题已经在一个涉及这个问题的线程中进行了讨论。如果MCC支持你的芯片,你可以去MCC。
以上来自于百度翻译 以下为原文 There is also the Option to rebuild the Library. This was discussed in one of the threads covering this issue. You can go to MCC if it supports your chip. |
|
|
|
谢谢。我使用Linux。因此,子弹和下载的等价物。非常仔细地编写了一些简单的程序来建立信心。在我遇到这个错误之前,一切都正常——找到线程“1.35和PIC18F45K80”,在此之前已经讨论过这个问题,http://www.micro..com/for./m896604-p2.aspx结论在_25中,如果设备允许复制外围源代码以突出机智,则似乎使用MCC。h XC8 v1.34我将考虑如何继续。抱歉,我错过了关于Linux的部分。我建议您自己编写外围设备的代码(大多数并不难——您可以研究库的源代码以获得一些想法并查看数据表),或者复制适当的libr您的项目的源文件。许多库函数没有被有效地写入,并且可以被改进。
以上来自于百度翻译 以下为原文 Thanks. I use linux. So bit the bullet and downloaded equivalent. Went very carefully and compiled some simple programs to build confidence. All was working well until I got this error - Found a thread, "1.35 and PIC18F45K80", where this problem has been previously discussed http://www.microchip.com/forums/m896604-p2.aspx The conclusion is in #25 which appears to be use MCC if device allows copy peripheral source code to project stick with XC8 v1.34 I shall have a think about how to proceed. Sorry, I missed the part about Linux. I suggest either writing the code for the peripherals yourself (most are not that difficult - you can study the source for the library to get some ideas and look at the data sheet) or copy the appropriate library source files to your project. Many of the library functions are not written efficiently and can be improved upon. |
|
|
|
在仔细考虑并找到这个线程“Rebuild PLIB library for XC8 1.36”之后,我尝试使用这个代码——然后在备份了原始文件之后,将生成的pic18-plib-htc-18f27j13.lpp复制到/opt/micro./xc8/v1.38/lib。我确定我可以把它放在我的路径上的其他地方,这样它就比原来的要优先了。我明天要看一看。
以上来自于百度翻译 以下为原文 After mulling it over and finding this thread "Rebuild PLIB libraries for XC8 1.36" I took the plunge with this code - cd /home/alex/SlowStorage/tmp/v1.38/sources/pic18/plib for _DIRECTORY in $(ls) do echo ${_DIRECTORY} cd ${_DIRECTORY} for _FILE in $(ls *.c) do echo Compiling ${_FILE} in ${_DIRECTORY} /opt/microchip/xc8/v1.38/bin/xc8 --chip=18f27j13 --objdir="/home/alex/SlowStorage/tmp/objects" --opt=default,+asm,-asmfile,+speed,-space,-debug --addrqual=ignore --mode=pro -I"/opt/microchip/xc8/v1.38/include" -I"/opt/microchip/xc8/v1.38/include/plib" --double=32 --float=32 --pass1 -Q ${_FILE} done cd /home/alex/SlowStorage/tmp/v1.38/sources/pic18/plib done cd /home/alex/SlowStorage/tmp/objects _FILENAME=/home/alex/SlowStorage/tmp/pic18-plib-htc-18f27j13.lpp /opt/microchip/xc8/v1.38/bin/xc8 --chip=18f27j13 -o${_FILENAME} --output=lpp --mode=pro --double=32 --float=32 *.p1 cd /home/alex/SlowStorage/tmp/ Then copied over the resultant pic18-plib-htc-18f27j13.lpp to /opt/microchip/xc8/v1.38/lib after having backed up the original. I sure I could have put it somewhere else in my path so that it took precedence over the original. I shall have a look at that tomorrow. |
|
|
|
只有小组成员才能发言,加入小组>>
5242 浏览 9 评论
2031 浏览 8 评论
1955 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3207 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2256 浏览 5 评论
778浏览 1评论
669浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
596浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
678浏览 0评论
577浏览 0评论
小黑屋| 手机版| Archiver| 德赢Vwin官网 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-23 17:44 , Processed in 1.398256 second(s), Total 60, Slave 54 queries .
Powered by 德赢Vwin官网 网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
德赢Vwin官网 观察
版权所有 © 湖南华秋数字科技有限公司
德赢Vwin官网 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号