完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨,我最近买了一个PIC18F47 K42 XPress评估套件。在尝试编译一个非常简单的项目时,我收到了这个错误:程序文件(x86)Microchip xC8v1.44包含pIC18F47 K42.h:382:错误:(1098)变量“StasuSuthad”(E:Project文件(x86)Microchip xC8v1.44 包含 PIC18F47 K42·h:382)在其显示的头文件中的冲突声明下面的DelCursStudio向上和向下滚动文件,我看到已经用这种方式声明了多个变量。但是这一个给出了错误。有人有任何建议来解决这个问题吗?此外,头文件几乎是2MB,不能附加在这里。
C(7.23 KB)-下载50次 以上来自于百度翻译 以下为原文 hi, i recently bought a pic18f47k42 xpress evaluation kit. upon trying to compile a very simple project i receive this error E:Program Files (x86)Microchipxc8v1.44includepic18f47k42.h:382: error: (1098) conflicting declarations for variable "STATUS_SHAD" (E:Program Files (x86)Microchipxc8v1.44includepic18f47k42.h:382) in the header file it shows the following delcarations // Register: STATUS_SHAD #define STATUS_SHAD STATUS_SHAD extern volatile unsigned char STATUS_SHAD @ 0x3884; scrolling up and down the file, i see that multiple variables have been declared this way. but this one gives the error. Does anyone has any suggestions to sort this out? also the header file is almost 2Mb, can't attach it here. Attachment(s) main.c (6.75 KB) - downloaded 41 times mcc.c (7.23 KB) - downloaded 50 times |
|
相关推荐
9个回答
|
|
尝试发布完整的代码,Meal.C和配置位。信息很少,人们很难猜测。
以上来自于百度翻译 以下为原文 Try to post your full code, main.C and configuration bits. It will be difficult for people to guess with little information supplied. |
|
|
|
刚才意识到这条线在开始的时候。把它改为正确的名称。现在它建造了这个项目。仍然不知道如何编程XPress评估板。拖拽和删除HEX文件不起作用。
以上来自于百度翻译 以下为原文 just realized that there is this line at the beginning of main.c #include changed it to the correct name. and now it builds the project. Still cant figure out how to program the xpress evaluation board. Dragging and droping the hex file doesnt work |
|
|
|
可能因为Ma.C有这条直线-你不应该改变它-你应该删除它。已经包含正确的文件-xc.h。
以上来自于百度翻译 以下为原文 Probably because main.c has this line #include edit - you shouldn't change it - you should remove it. mcc.h already includes the correct file - xc.h |
|
|
|
+1删除特定于设备的头文件。你不应该包括他们,因为这个确切的原因。只是包括XC.H照顾你。
以上来自于百度翻译 以下为原文 +1 Get rid of the device specific header file. You should NEVER include them, for this precise reason. Just including xc.h takes care of it for you. |
|
|
|
您可以从本文中学习如何编写XPress评估板:http://MyCHIPCDeave/COM/XPress:XPress示例2
以上来自于百度翻译 以下为原文 You can learn how to program the Xpress evaluation board from this article: http://microchipdeveloper.com/xpress:xpressexample2 |
|
|
|
我正在做所有这些,我甚至把我的项目导入到在线的XPress IDE中。但是它仍然无法编程。板上有一个默认程序,它切换所有的I/O。每当我将HEX文件复制到XPress板上时,程序LED会短暂地变红一段时间,但之后,默认的切换程序继续运行。
以上来自于百度翻译 以下为原文 i am doing all of that, i even imported my project to the online xpress IDE. but still it wont program. The board had a default program on it which toggles all of the I/Os. whenever i copy the hex file on to the xpress board, the program LED does turn red briefly for a moment, but after that the default toggle program continues to run. |
|
|
|
我有一个皮卡3。我能用它代替默认的USB程序员吗?
以上来自于百度翻译 以下为原文 I have a pickit 3. Can i use that instead of the default u*** programmer? |
|
|
|
我知道XPress板的16F18855,不幸的是,没有皮卡或ICD连接器和FrPIC18F47 K42看起来是相同的。所以你必须弄清楚每个引脚是否在编程所需的板上,并不知何故连接拾取器3。另一种方法是将PICTIT3与5个电阻器连接。将其放置在识别PIC18F47 K42和机载编程器的线路上。如果你不是用USB供电的板,应该没有问题的机载程序员。如果有问题,你可以将电阻器除掉。但是在尝试使用皮卡之前,试着在没有MCC的情况下编写一些C程序。只需打开一个LED,车载程序员就可以工作了。
以上来自于百度翻译 以下为原文 I know the Xpress Board for 16F18855 and unfortunately, there is no pickit or icd connector and for pic18f47k42 it looks the same. So you got to figure out if every pin is on the board needed for programming and connect somehow the pickit 3. The other way is to connect the pickit3 with the 5 resistors which are placed on the line which identifies the pic18f47k42 and the onboard programmer. If you are not powering the board with u***, there should be no problem with the onboard programmer. If there are problems you can desolder the resistors. But before trying to use the pickit, try writing some little C program without MCC. Eg turn just one LED ON. The onboard programmer should work... |
|
|
|
它起作用了。不知道我做错了什么,谢谢大家。
以上来自于百度翻译 以下为原文 it works. dunno what i was doing wrong. Thanks everyone. |
|
|
|
只有小组成员才能发言,加入小组>>
5160 浏览 9 评论
1998 浏览 8 评论
1927 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3170 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2225 浏览 5 评论
729浏览 1评论
613浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
503浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
628浏览 0评论
526浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-22 11:44 , Processed in 1.245912 second(s), Total 63, Slave 56 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号