完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我用PIC32 MX564 F128H创建了一个新的项目,并将XC32 v2.05分配给它。我只创建了一个文件(一个头文件)并添加了一行:它把它涂成红色,说它找不到文件。我的例子是一个UI问题。我试着添加了一行:但是它也不认识它。我也尝试过了。UDIN PLIB .H(我安装了它们),但它的操作完全一样。
以上来自于百度翻译 以下为原文 I created a new project using a PIC32MX564F128H and assigned the XC32 v2.05 to it. I created only one file (a header file) and added the line: #include It paints it red and says it cannot find the file. I case it was just an UI problem I tried adding the line: #define LED_init TRISAbits.TRISA7 = 1 But it also does not recognize it. I also tried including plib.h (I have them installed) but it does the exact same thing. Attached Image(s) |
|
相关推荐
8个回答
|
|
当你实际编译时会发生什么?在MPLAX中,红线几乎毫无意义,考虑代码解析假发的程度。项目可能仍然建立OK。右击项目& GT;代码辅助和GT;RePaySE项目通常为分析器为我修复错误标志,但结果可能会有所不同。
以上来自于百度翻译 以下为原文 What happens when you actually try to compile? A red line is almost meaningless in MPLAB X considering how much the code parsing wigs out. Project probably still builds OK. Right click project>Code Assistance>Reparse Project usually fixes false flags by the parser for me but results may vary. |
|
|
|
我不能编译,因为我没有一个主文件。我知道红线并不意味着太多,但它也不承认任何PIC寄存器。顺便说一下,它不是一条红线,更像是画一条红色背景的线。
以上来自于百度翻译 以下为原文 I can't compile because I don't have a main file. I know that a red line does not mean too much, but it also does not recognise any of the PIC registers. By the way, it is not a red line, its more like it paints the line with a red background. |
|
|
|
如果添加主文件并包含页眉,是否有任何更改?
以上来自于百度翻译 以下为原文 Any change if you add a main file and include your header? |
|
|
|
在主文件中,它不画红色线:但是如果我添加:它不编译。
以上来自于百度翻译 以下为原文 In the main file it doesn't paint red the lines: #include #include But if I add: TRISAbits.TRISA7 = 1 it does not compile. |
|
|
|
收到错误信息了吗?我现在也要删除PLIB。H,至少我不认为你需要它来识别寄存器,XC.H有。粘贴整个项目的内容(或者把它作为附件),我们可以看看它是否可以被复制。
以上来自于百度翻译 以下为原文 Got an error message? I'd also remove the plib.h for now at least, I don't believe you need it for the registers to be recognized, xc.h has them. paste the whole contents of the project (or put it up as an attachment) and we can see if it can be reproduced. |
|
|
|
我不使用PIC32 MX564 F128H,所以它可能是一个愚蠢的问题,但我必须问:这个设备甚至有一个端口A?我在数据表中没有看到。我看到端口100引脚L版本的引脚,而不是64引脚H设备。
以上来自于百度翻译 以下为原文 I don't use a PIC32MX564F128H, so it may be a silly question, but I have to ask: Does this device even have a Port A? I don't see it in the Data Sheet. I see Port A pins on the 100-pin L versions, not the 64-pin H devices. Regards, Dave |
|
|
|
如果它不是在数据表中,那么是的,大概是一个寄存器端口是不可访问的。好的Copo.OP:XC.H文件只给你在项目中选择的设备上存在的寄存器。
以上来自于百度翻译 以下为原文 If it's not in the datasheet, than yeah, presumably the port A registers won't be accessible. Good catch. OP: The xc.h file will only give you registers present on the device selected in the project. |
|
|
|
是的,这是新手错误。起初我也尝试过其他的寄存器,也把它们涂成红色。但当我尝试编译时,我只使用了端口A。我很抱歉麻烦,再一次,这是新手错误。
以上来自于百度翻译 以下为原文 Yes, it was a rookie mistake. At first I tried with other registers too and it painted them red too. But when I tried compiling I only used the port A. I am sorry for the trouble, again, it was a rookie mistake |
|
|
|
只有小组成员才能发言,加入小组>>
5166 浏览 9 评论
2000 浏览 8 评论
1929 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3175 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2227 浏览 5 评论
736浏览 1评论
619浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
507浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
633浏览 0评论
530浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-25 09:09 , Processed in 1.417872 second(s), Total 92, Slave 75 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号