完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我试图把一个项目从PIC32 MZ2048 ECH144芯片转换成PIC32 MZ2048 EFH144芯片,当我这样做时,我得到编译器错误。编译器抱怨它找不到SIDL定义:..…//..…///Fruts/外设/端口/处理器/PursSpP32 MZ2048 EFH144。我在PIC32 MZ2048 EFH.H文件中查找但未找到定义。我运行MPLAB V3.45,XC32 V1.42,和声V1.10。不确定如何着手解决这个问题。如有任何帮助,我们将不胜感激。
以上来自于百度翻译 以下为原文 I am attempting to convert a project from a pic32mz2048ech144 chip to a pic32mz2048efh144 chip and I am getting compiler errors when I do so. The compiler is complaining that it can not find the SIDL defines: ../../../../../framework/peripheral/ports/processor/ports_p32mz2048efh144.h:3291:20: error: '_CNCONA_SIDL_MASK' undeclared (first use in this function) I looked in the pic32mz2048efh.h file but was unable to locate the define. I am running MPLAB v3.45, xc32 v1.42, and HARMONY v1.10. Not sure how to go about fixing the issue. Any help would be appreciated. |
|
相关推荐
3个回答
|
|
嗨,你为PIC32 MZ EF代码再生了吗?当做
以上来自于百度翻译 以下为原文 Hi, did you regenerate the code for PIC32MZ EF ? Regards |
|
|
|
你好,AATencio,下面的错误与CNCONA SFR的SIDL位有关。错误:'OnCNCONAYSIDLILM掩膜'未声明(在这个函数中的第一次使用)PFA,参照以下链接下载的PIC32 MZ EF设备的数据表,确认“SIDL”位不存在于“CNCONA”SFR。ADS/En/DeVICEOC/6000 1320D.PDRAN必须在“PursSpP32 MZ2048 EFH144.h”文件中删除与SIDL位有关的引用,从而解决编译问题:以下步骤:“CnCONA”位的“SIDL”位用于PosisSoxEnoTeCiDeLePiPurtReal5.H.Tunl在“PosisSp32 MZ2048 EFH144.h”文件中,将所有与“CexEnoTeCiDeNeLePiPrIP”相关的API更改为“默认”到“不支持”。对于EX:“PosisSoxOnoTeCeIdEnPielPosial.Health.h”要更改为“PosisSoxEnooTeCeIdIelPrPursixUpFult”。3个API需要更改。与“CuneNoTeCeIdIelPrPurt”相关的函数。在“PosisSp32 MZ2048 EFH144.h”文件中搜索“iN-IDLE”字并删除所有内联函数。40个内联函数将被删除。希望这有助于您的要求。
以上来自于百度翻译 以下为原文 Hi AATencio, Following error is related to SIDL bit of CNCONA SFR. error: '_CNCONA_SIDL_MASK' undeclared (first use in this function) PFA, referring to datasheet of PIC32MZ EF device downloaded form following link, confirms that "SIDL" bit is not present in "CNCONA" SFR. http://ww1.microchip.com/downloads/en/DeviceDoc/60001320D.pdf All the references related to SIDL bit has to be removed in "ports_p32mz2048efh144.h" file, so that the compiler issue will go off. Following steps helps to solve the compilation issue: - SIDL bit of "CNCONA" bit is used in ports_ChangeNoticeInIdlePerPort_Default.h template file. In "ports_p32mz2048efh144.h" file, Change all the API's related to "ChangeNoticeInIdlePerPort" from Default to Unsupported. For Ex: "ports_ChangeNoticeInIdlePerPort_Default.h" to be changed to "ports_ChangeNoticeInIdlePerPort_Unsupported.h" 3 more API's need to be changed. - Delete all Inline Functions related to "ChangeNoticeInIdlePerPort". Fot this search for "IN_IDLE" word in "ports_p32mz2048efh144.h" file and delete all the Inline functions. 40 Inline functions to be deleted. Hope this helps your requirement. Regards, Mvns_in Attached Image(s) |
|
|
|
我很困惑为什么要编辑和声文件来修复这个问题。PIC32 MZ2048 EFH144在我以前没有看到过,或者听说过这个问题之前添加了很多版本。
以上来自于百度翻译 以下为原文 I am confused about why Harmony Files need to be edited to fix this. The PIC32mz2048efh144 was added many versions ago ans I have not seen, or heard of this issue. |
|
|
|
只有小组成员才能发言,加入小组>>
5158 浏览 9 评论
1997 浏览 8 评论
1926 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3169 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2222 浏览 5 评论
724浏览 1评论
607浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
495浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
621浏览 0评论
520浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-19 18:38 , Processed in 1.216867 second(s), Total 51, Slave 45 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号