完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我在PIC32 MX795的产品中有很多代码,这些代码是用MPLAB 89X开发的C32编译器。我们想用MPLABX移动到XC32编译器。使用MPLABX的C32完成了并且工作得很好。有没有简单的方法来进行这种移植?C32中的外围库调用似乎很大。不仅仅是名字,还有参数列表。这个移植有没有更短的路径——不重写每个外围调用?任何帮助都是非常有用的。我们使用以下外围设备:SPI(主2端口,从1端口),UART,I2C,GPIO.Vaidi。
以上来自于百度翻译 以下为原文 I have a lot of code in our products for PIC32MX795 which have been developed for C32 compiler with MPLAB 8.9x. We want to move to XC32 compiler with MPLABX - using C32 with MPLABX is done and works fine. Is there any simple way to do this porting - the peripheral library calls in C32 seem hugely different - not just names, but also parameter lists. Is there any shorter path to this porting - short of rewriting every peripheral call? Any help would be very useful. We are using the following peripherals: SPI (master 2 ports, slave 1 port), UART, I2C, GPIO. Vaidi. |
|
相关推荐
2个回答
|
|
如果所有的工作都用C32,为什么要移动到XC32?
以上来自于百度翻译 以下为原文 Why do you want to move to xc32 if it all works with C32 ? |
|
|
|
XC32本质上是与C32相同的编译器,它们都是从GCC GNU编译器集合中派生出来的,XC32已经被更改为GCC的修订版本,因为名字被改变了。您可以使用MPLAB 8.92使用XC32,并且可以使用C32和MPLAB X.C32,并且XC32的多个版本可以同时安装在同一台计算机上,并且可以在项目基础上进行选择。与XC32一起停用到1.34.1版本之后,它们可以作为与编译器安装相同的网页单独下载。在这里,它们被命名为:XC32遗留外围库,并且可以与编译器的任何版本一起安装。然而,预先构建的库存档文件不再被维护,因此可能需要手动重建来与编译器和设备支持文件的后期版本一起工作。或者您可以选择相关的源代码块,并保留在自己的源代码库中。完全不同,并不是兼容的替代品。迈西尔
以上来自于百度翻译 以下为原文 There are at least 3 different components in play here. XC32 is essentially the same compiler as C32, they are both derivated from GCC Gnu Compiler Collection, XC32 have been updated to revised versions of GCC several times since the name was changed. Which version of GCC is used, is visible in library subdirectories of the compiler installation. You may use XC32 with MPLAB 8.92, and you may use C32 with MPLAB X. C32 and multiple versions of XC32 may be installed at the same computer at the same time, and may be selected on a project basis. Peripheral libraries, the same peripheral libraries are installed together with XC32 up to version 1.34. After that, they are available as a separate download from the same webpage as the compiler installation. There, they are named: XC32 Legacy Peripheral Libraries, and may be installed together with any later version of the compiler. Prebuilt library archive files are however no longer maintained, so may need manual rebuilding to work with later releases of the compiler and device support files. Or you may pick out relevant pieces of source code, and keep in your own source code repository. Harmony peripheral layer functions are completely different, and are not a compatible replacement. Mysil |
|
|
|
只有小组成员才能发言,加入小组>>
5160 浏览 9 评论
1998 浏览 8 评论
1927 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3170 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2225 浏览 5 评论
727浏览 1评论
612浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
501浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
626浏览 0评论
524浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-22 05:00 , Processed in 1.101000 second(s), Total 51, Slave 44 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号