完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
求大神指导用MPLAB IDE8.89的MPLAB C18 (mcc18.exe)写一段LED闪烁测试,但是每次编译时都出现如下提示,请问该如何解决。而且每次都提示要不要再开一个软件测试,然后需要点击否,最后出现failed to load E:PICtesttest.cof的小窗口。这样的话就不能够用PICKit2来仿真,烧录了(PS. 用范例的HEX文件可以烧录)
Debug build of project `E:BEAM-pjprojectPIC18codetest3test3.mcp' started. Preprocessor symbol `__DEBUG' is defined. Wed Jul 29 10:02:24 2015 ---------------------------------------------------------------------- Clean: Deleting intermediary and output files. Clean Warning: File "E:BEAM-pjprojectPIC18codetest3test3.o" doesn't exist. Clean Warning: File "E:BEAM-pjprojectPIC18codetest3test3.cof" doesn't exist. Clean Warning: File "E:BEAM-pjprojectPIC18codetest3test3.hex" doesn't exist. Clean Warning: File "E:BEAM-pjprojectPIC18codetest3test3.map" doesn't exist. Clean: Done. Executing: "D:MPLAB IDEMPLAB IDECoreMPLAB.exe" -p=18F87J11 "test3.c" -fo="test3.o" -D__DEBUG --extended -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa- Executing: "D:MPLAB IDEMPLAB IDECoreMPLAB.exe" "test3.o" /m"E:BEAM-pjprojectPIC18codetest3test3.map" /w /aINHX8M /o"E:BEAM-pjprojectPIC18codetest3test3.cof" ---------------------------------------------------------------------- Debug build of project `E:BEAM-pjprojectPIC18codetest3test3.mcp' succeeded. Preprocessor symbol `__DEBUG' is defined. Wed Jul 29 10:02:29 2015 ---------------------------------------------------------------------- BUILD SUCCEEDED 程序如下: #include "p18f87j11.h" void delay(int i) { while(i--); } void initial() { TRISD = 0x00; } void main() { initial(); while(1) { PORTD = 0x00; delay(2000); PORTD = 0xff; delay(2000); } } 如果使用MPLAB SIM编译则出现以下提示: Debug build of project `E:BEAM-pjprojectPIC18codetest3test3.mcp' started. Preprocessor symbol `__DEBUG' is defined. Wed Jul 29 10:20:12 2015 ---------------------------------------------------------------------- Make: The target "E:BEAM-pjprojectPIC18codetest3test3.o" is out of date. Executing: "D:MPLAB IDEMPLAB IDECoreMPLAB.exe" -p=18F87J11 "test3.c" -fo="test3.o" -D__DEBUG --extended -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa- Make: The target "E:BEAM-pjprojectPIC18codetest3test3.cof" is out of date. Executing: "D:MPLAB IDEMPLAB IDECoreMPLAB.exe" /k"D:MPLAB IDEMPASM SuiteLKR" "D:MPLAB IDEMPASM SuiteLKR18f87j11_g.lkr" "test3.o" /m"E:BEAM-pjprojectPIC18codetest3test3.map" /w /aINHX8M /o"E:BEAM-pjprojectPIC18codetest3test3.cof ---------------------------------------------------------------------- Debug build of project `E:BEAM-pjprojectPIC18codetest3test3.mcp' succeeded. Preprocessor symbol `__DEBUG' is defined. Wed Jul 29 10:20:18 2015 ---------------------------------------------------------------------- BUILD SUCCEEDED |
|
相关推荐
2个回答
|
|
不了解,表示没遇到这种问题。。。
|
|
|
|
编译信息没有错误呀,PORTD是不是有其他的默认用途?
|
|
|
|
只有小组成员才能发言,加入小组>>
求解外围电路实现的是4脚给持续低电平复位并正常工作,高电平不工作的原因
2084 浏览 1 评论
3629 浏览 3 评论
PIC1946程序有一个变量在运行过程中恢复初始值其他变量保持不变
2336 浏览 2 评论
2763 浏览 0 评论
PIC16F1825的RC5引脚,在主程序中操作无效,在中断中可以改变是为什么?
4027 浏览 5 评论
972浏览 0评论
用XC8编译PIC18F25K80时提示下面Error,求怎么解决这个问题
6359浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-3 06:23 , Processed in 0.565988 second(s), Total 82, Slave 65 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号