完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我正试图把一个旧项目从MPLAB V8移动到MPLAB-X V3.45。如果我选择C18作为编译器,并将其转换为MPLAB-X,那么它编译时不会出错。其中有些显示在这里:有人能告诉我这些错误是什么意思吗?我特别困惑所有的消息告诉我,我需要添加编译器宏到项目。C18和XC8是不是需要更大的宏呢????另外,P1错误是什么?我已经修复了一堆错误,编译器无法找到正确的路径到我的头文件。同样,C18完全知道头文件的位置。
以上来自于百度翻译 以下为原文 I am trying to move an old project from MPLAB V8 to MPLAB-X V3.45. If I select C18 as the compiler, and convert it to MPLAB-X, it compiles with no errors. If I select XC8, v1.38 as the compiler, I get a ton of errors. Some of them are shown here: ../Include/TCPIPConfig.h:151: error: (103) #error: Missing project macro definition to select proper TCPIPConfig.h (908) exit status = 1 nbproject/Makefile-default.mk:308: recipe for target 'build/default/production/_ext/1472/DHCP.p1' failed ../Include/TCPIPConfig.h:151: error: (103) #error: Missing project macro definition to select proper TCPIPConfig.h ../Include/TCPIPConfig.h:151: error: (103) #error: Missing project macro definition to select proper TCPIPConfig.h (908) exit status = 1 nbproject/Makefile-default.mk:284: recipe for target 'build/default/production/_ext/1472/Announce.p1' failed ../Include/Compiler.h:173: warning: (163) unexpected text in control line ignored ../Include/Compiler.h:176: warning: (163) unexpected text in control line ignored ../Include/Compiler.h:179: warning: (163) unexpected text in control line ignored ../Include/Compiler.h:182: warning: (163) unexpected text in control line ignored ../Include/HardwareProfile.h:190: error: (103) #error: "No extended HWP .h included. Add the appropriate compiler macro to the MPLAB project." ../Include/../Include/TCPIPConfig.h:151: error: (103) #error: Missing project macro definition to select proper TCPIPConfig.h (908) exit status = 1 ../Include/../Include/StackTsk.h:67: error: (103) #error: Invalid MAX_UDP_SOCKETS value specified ../Include/../Include/StackTsk.h:72: error: (103) #error: Invalid MAX_HTTP_CONNECTIONS value specified. nbproject/Makefile-default.mk:316: recipe for target 'build/default/production/_ext/1472/DHCPs.p1' failed make[2]: *** [build/default/production/_ext/1472/DHCP.p1] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: *** [build/default/production/_ext/1472/Announce.p1] Error 1 make[2]: *** [build/default/production/_ext/1472/DHCPs.p1] Error 1 make[2]: *** [build/default/production/_ext/1472/ARP.p1] Error 1 ../Include/../Include/HardwareProfile.h:190: error: (103) #error: "No extended HWP .h included. Add the appropriate compiler macro to the MPLAB project." ../Include/../Include/Delay.h:63: error: (103) #error: GetInstructionClock() must be defined. ../Include/../Include/HardwareProfile.h:190: error: (103) #error: "No extended HWP .h included. Add the appropriate compiler macro to the MPLAB project." ../Include/../Include/HardwareProfile.h:190: error: (103) #error: "No extended HWP .h included. Add the appropriate compiler macro to the MPLAB project." ../Include/../Include/HardwareProfile.h:190: error: (103) #error: "No extended HWP .h included. Add the appropriate compiler macro to the MPLAB project." ../Include/../Include/HardwareProfile.h:190: error: (103) #error: "No extended HWP .h included. Add the appropriate compiler macro to the MPLAB project." (908) exit status = 1 nbproject/Makefile-default.mk:292: recipe for target 'build/default/production/_ext/1472/ARP.p1' failed ../Include/HardwareProfile.h:190: error: (103) #error: "No extended HWP .h included. Add the appropriate compiler macro to the MPLAB project." ../Include/Compiler.h:173: warning: (163) unexpected text in control line ignored ../Include/Compiler.h:176: warning: (163) unexpected text in control line ignored ../Include/Compiler.h:179: warning: (163) unexpected text in control line ignored ../Include/Compiler.h:182: warning: (163) unexpected text in control line ignored ../Include/HardwareProfile.h:190: error: (103) #error: "No extended HWP .h included. Add the appropriate compiler macro to the MPLAB project." ../Include/../Include/TCPIPConfig.h:151: error: (103) #error: Missing project macro definition to select proper TCPIPConfig.h ../Include/../Include/StackTsk.h:67: error: (103) #error: Invalid MAX_UDP_SOCKETS value specified ../Include/../Include/StackTsk.h:72: error: (103) #error: Invalid MAX_HTTP_CONNECTIONS value specified. ../Include/../Include/HardwareProfile.h:190: error: (103) #error: "No extended HWP .h included. Add the appropriate compiler macro to the MPLAB project." ../Include/../Include/Delay.h:63: error: (103) #error: GetInstructionClock() must be defined. ../Include/../Include/HardwareProfile.h:190: error: (103) #error: "No extended HWP .h included. Add the appropriate compiler macro to the MPLAB project." ../Include/../Include/HardwareProfile.h:190: error: (103) #error: "No extended HWP .h included. Add the appropriate compiler macro to the MPLAB project." ../Include/../Include/HardwareProfile.h:190: error: (103) #error: "No extended HWP .h included. Add the appropriate compiler macro to the MPLAB project." ../Include/../Include/HardwareProfile.h:190: error: (103) #error: "No extended HWP .h included. Add the appropriate compiler macro to the MPLAB project." make[2]: *** [build/default/production/_ext/1472/Delay.p1] Error 1 make[2]: *** [build/default/production/_ext/1472/ETH97J60.p1] Error 1 make[1]: *** [.build-conf] Error 2 make: *** [.build-impl] Error 2 (908) exit status = 1 Can someone give me a clue as to what these errors mean? I am especially confused about all the messages telling me I need to add compiler macros to the project. The macros aren't required with C18 and XC8 is supposed to be smarter??? Also, what are the P1 errors? I have already fixed a bunch of errors where the compiler couldn't find the correct paths to my header files. Again, C18 was fully aware of where the header files were. |
|
相关推荐
2个回答
|
|
QHB,第115行说:通过对包含文件的路径中的错误进行更多的修改,定义了({CFGyCixPixDe2Da210BrdEnEn6624)(CFGyPixDe2Da210BRDYEn624PSP5IIIB),我只得到了这些错误:(908)退出状态=1nbPosi/MaFaMeCurrase.MK:292:目标“构建/DE”的配方故障/生产/第1472 / ARP.P1’失败(908)退出状态=1[图2 ]:*/[构建/默认/生产/ /Ext/ 1472 /ARP.P1]错误1]:
以上来自于百度翻译 以下为原文 qhb, line #115 says this: #elif defined(CFG_INCLUDE_DA210_BRD_ENC624) || defined(CFG_INCLUDE_DA210_BRD_ENC624_PSP5_IB) By fixing more errors in the paths to the include files, I have got it down to only these errors: (908) exit status = 1 nbproject/Makefile-default.mk:292: recipe for target 'build/default/production/_ext/1472/ARP.p1' failed (908) exit status = 1 make[2]: *** [build/default/production/_ext/1472/ARP.p1] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: *** [build/default/production/_ext/1472/Delay.p1] Error 1 nbproject/Makefile-default.mk:300: recipe for target 'build/default/production/_ext/1472/Delay.p1' failed (908) exit status = 1 nbproject/Makefile-default.mk:324: recipe for target 'build/default/production/_ext/1472/ETH97J60.p1' failed make[2]: *** [build/default/production/_ext/1472/ETH97J60.p1] Error 1 make[2]: Leaving directory 'C:/MPLAB8-2-to-X/Web-Relay/Web-Relay.X' nbproject/Makefile-default.mk:84: recipe for target '.build-conf' failed make[1]: Leaving directory 'C:/MPLAB8-2-to-X/Web-Relay/Web-Relay.X' nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed make[1]: *** [.build-conf] Error 2 make: *** [.build-impl] Error 2 BUILD FAILED (exit value 2, total time: 2s) Looks like if I could fix the P1 errors, I would be able to compile. I see references in Compiler.h to COMPILER_MPLAB_C18 and COMPILER_HITECH_PICC18. Do I need to somehow let the Compiler.h file know it is using the XC8 compiler? I would hope the conversion program would take care of that. |
|
|
|
从C18到XC8的转换并不总是一件容易的事情。在这个项目中安装C18和使用C18可能会更容易,并将XC8保存一天。
以上来自于百度翻译 以下为原文 Converting from C18 to XC8 is not always an easy task. It might be easier to just install C18 and use C18 with MPLabX for this project and save XC8 for another day. |
|
|
|
只有小组成员才能发言,加入小组>>
5244 浏览 9 评论
2035 浏览 8 评论
1955 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3214 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2261 浏览 5 评论
779浏览 1评论
673浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
599浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
683浏览 0评论
580浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-25 20:31 , Processed in 1.036768 second(s), Total 50, Slave 44 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号