MPLAB X IDE v4.20にて湿度のロギングのプログラムを作成しています。
とりあえず簡単なところでビルドしてみたのですが、いじっていないところでエラーが出てしまい困っています。
御助力お願いいたします。
エラーメッセージ
CLEAN SUCCESSFUL (total time: 275ms) make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf make[1]: Entering directory 'C:/MPLABXProjects/dry2.X' make -f nbproject/Makefile-default.mk dist/default/production/dry2.X.production.hex make[2]: Entering directory 'C:/MPLABXProjects/dry2.X' "C:\Program Files (x86)\Microchip\xc8\v2.00\bin\xc8-cc.exe" -mcpu=16F1823 -c -fno-short-double -fno-short-float -O0 -fasmfile -maddrqual=ignore -xassembler-with-cpp -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/dry2.p1 dry2.c "C:\Program Files (x86)\Microchip\xc8\v2.00\bin\xc8-cc.exe" -mcpu=16F1823 -c -fno-short-double -fno-short-float -O0 -fasmfile -maddrqual=ignore -xassembler-with-cpp -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/mcc_generated_files/device_config.p1 mcc_generated_files/device_config.c "C:\Program Files (x86)\Microchip\xc8\v2.00\bin\xc8-cc.exe" -mcpu=16F1823 -c -fno-short-double -fno-short-float -O0 -fasmfile -maddrqual=ignore -xassembler-with-cpp -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/mcc_generated_files/mcc.p1 mcc_generated_files/mcc.c "C:\Program Files (x86)\Microchip\xc8\v2.00\bin\xc8-cc.exe" -mcpu=16F1823 -c -fno-short-double -fno-short-float -O0 -fasmfile -maddrqual=ignore -xassembler-with-cpp -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/mcc_generated_files/pin_manager.p1 mcc_generated_files/pin_manager.c "C:\Program Files (x86)\Microchip\xc8\v2.00\bin\xc8-cc.exe" -mcpu=16F1823 -c -fno-short-double -fno-short-float -O0 -fasmfile -maddrqual=ignore -xassembler-with-cpp -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/mcc_generated_files/adc.p1 mcc_generated_files/adc.c terminate called after throwing an instance of 'std::invalid_argument' what(): No such file or directory error: clang frontend command failed with exit code 3 (use -v to see invocation) (908) exit status = 1 nbproject/Makefile-default.mk:140: recipe for target 'build/default/production/mcc_generated_files/pin_manager.p1' failed make[2]: *** [build/default/production/mcc_generated_files/pin_manager.p1] Error 1 make[2]: *** Waiting for unfinished jobs.... terminate called after throwing an instance of 'std::invalid_argument' what(): No such file or directory error: clang frontend command failed with exit code 3 (use -v to see invocation) (908) exit status = 1 nbproject/Makefile-default.mk:154: recipe for target 'build/default/production/mcc_generated_files/device_config.p1' failed make[2]: *** [build/default/production/mcc_generated_files/device_config.p1] Error 1 terminate called after throwing an instance of 'std::invalid_argument' what(): No such file or directory error: clang frontend command failed with exit code 3 (use -v to see invocation) (908) exit status = 1 nbproject/Makefile-default.mk:147: recipe for target 'build/default/production/mcc_generated_files/mcc.p1' failed make[2]: *** [build/default/production/mcc_generated_files/mcc.p1] Error 1 make[2]: *** [build/default/production/mcc_generated_files/adc.p1] Error 1 terminate called after throwing an instance of 'std::invalid_argument' what(): No such file or directory error: clang frontend command failed with exit code 3 (use -v to see invocation) (908) exit status = 1 nbproject/Makefile-default.mk:161: recipe for target 'build/default/production/mcc_generated_files/adc.p1' failed terminate called after throwing an instance of 'std::invalid_argument' what(): No such file or directory error: clang frontend command failed with exit code 3 (use -v to see invocation) (908) exit status = 1 nbproject/Makefile-default.mk:133: recipe for target 'build/default/production/dry2.p1' failed make[2]: Leaving directory 'C:/MPLABXProjects/dry2.X' nbproject/Makefile-default.mk:90: recipe for target '.build-conf' failed make[1]: Leaving directory 'C:/MPLABXProjects/dry2.X' nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed make[2]: *** [build/default/production/dry2.p1] Error 1 make[1]: *** [.build-conf] Error 2 make: *** [.build-impl] Error 2 BUILD FAILED (exit value 2, total time: 1m 3s)
該当のソースコード
C言語
1#include <stdio.h> 2#include <stdlib.h> 3#include <pic16f1823.h> 4#include <xc.h> 5 6#define IO RC0 7#define VAL RA2 8#define SW RA5 9#define FAN RA1 10 11 12#pragma config PLLEN = OFF , FOSC = INTOSC , OSCCON=0b01111010 , ANCELA = 0b000000,TRISA = 0b00101000 13 14int main() { 15 int hum = 0;//humidity 16 for(;;){ 17 if( SW == 1 ){//SWITCH ON 18 //FAN ON 19 FAN = 1; 20 21 //IMPORT DATA 22 //LOGING 23 24 //FAN OFF 25 if(hum < 40 ) FAN = 0; 26 } 27 } 28 return 0; 29}
試したこと
クリーンビルドは試してみましたが駄目でした。
ネット上のソースなどを試してみましたがそちらも駄目でした。
補足情報(FW/ツールのバージョンなど)
pickit3で書き込み予定です。
あなたの回答
tips
プレビュー