问答

汇集网友智慧,解决技术难题

21ic问答首页 - 部分中文没有 求助MPLAB X IDE 新建工程出现的编译问题

IDE mplab 编译 Fault default

部分中文没有 求助MPLAB X IDE 新建工程出现的编译问题

hsxs2020-11-09
本帖最后由 hsxs 于 2020-11-10 10:33 编辑

之前没有接触过PIC的单片机
因为工作的需要,使用PIC12LF1501,
今天查了一遍网上的教程,
安装好IDE和 编译器之后,
新建了一下工程,
编译始终出现这个问题,换过老的版本V5.00,也是这个样子






CLEAN SUCCESSFUL (total time: 25ms)
make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf
make[1]: Entering directory 'D:/PIC/demo/demo.X'
make  -f nbproject/Makefile-default.mk dist/default/production/demo.X.production.hex
make[2]: Entering directory 'D:/PIC/demo/demo.X'
"C:\Program Files\Microchip\xc8\v2.31\bin\xc8-cc.exe"  -mcpu=12LF1501 -c  -fno-short-double -fno-short-float -O0 -fasmfile -maddrqual=ignore -xassembler-with-cpp -I"C:/Program Files/Microchip/xc8/v2.31/pic/include" -Wa,-a -DXPRJ_default=default  -msummary=-psect,-class,+mem,-hex,-file  -ginhx032 -Wl,--data-init -mno-keep-startup -mno-osccal -mno-resetbits -mno-save-resetbits -mno-download -mno-stackcall   -std=c99 -gdwarf-3 -mstack=compiled:auto:auto     -o build/default/production/main.p1 main.c
make[2]: *** [build/default/production/main.p1] Error 1
terminate called after throwing an instance of 'std::invalid_argument'
make[1]: *** [.build-conf] Error 2
  what():  No such file or directory
make: *** [.build-impl] Error 2
error: clang frontend command failed with exit code 3 (use -v to see invocation)
(908) exit status = 1
nbproject/Makefile-default.mk:105: recipe for target 'build/default/production/main.p1' failed
make[2]: Leaving directory 'D:/PIC/demo/demo.X'
nbproject/Makefile-default.mk:90: recipe for target '.build-conf' failed
make[1]: Leaving directory 'D:/PIC/demo/demo.X'
nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed

BUILD FAILED (exit value 2, total time: 1s)




回答 +关注 12
1539人浏览 14人回答问题 分享 举报
14 个回答
12下一页

您需要登录后才可以回复 登录 | 注册