###実現したいこと
Arduino に Eclipse からプログラムを書き込みたいです。
前提として、PCとArduino は接続されています。
また、arduino-1.8.5はインストールできまして、スケッチの書き込みに成功しています。
このパソコンにhttp://mergedoc.osdn.jp/
から、pleiades All in One 4.7 をダウンロードしてインストールしました。これにより、Eclipse 4.7 Oxygenが起動するようになりました。UltimateのFull Editionを選択しました。
次いで、
https://qiita.com/drumichiro/items/40e55f829f75e25fc464
の記事を参考に、Arduino IDE 1.5.6 betaを別途ダウンロードした後、Eclipseにプラグインをインストールし、インストール先>/hardware/tools/avr/utils に1.5.6のものをコピーしました。
###発生している問題・エラーメッセージ
23:00:29 **** インクリメンタル・ビルド of configuration Release for project ArduinoTest01 **** make all Building file: ../.ino.cpp Starting C++ compile "C:\PROGRA~2\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I"C:\PROGRA~2\Arduino\hardware\arduino\avr\cores\arduino" -I"C:\PROGRA~2\Arduino\hardware\arduino\avr\variants\standard" -MMD -MP -MF".ino.cpp.d" -MT".ino.cpp.o" -D__IN_ECLIPSE__=1 -x c++ "../.ino.cpp" -o ".ino.cpp.o" -Wall ../.ino.cpp:8:2: error: #error the file: ArduinoTest01.ino is not found in the indexer though it exists on the file system. #error the file: ArduinoTest01.ino is not found in the indexer though it exists on the file system. ^ ../.ino.cpp:9:2: error: #error this is probably due to a bad eclipse configuration : ino and pde are not marked as c++ file. #error this is probably due to a bad eclipse configuration : ino and pde are not marked as c++ file. ^ ../.ino.cpp:10:2: error: #error please check whether *.ino and *.pde are marked as C++ source code in windows->preferences->C/C++->file types. #error please check whether *.ino and *.pde are marked as C++ source code in windows->preferences->C/C++->file types. ^ make: *** [.ino.cpp.o] Error 1 23:00:30 Build Finished (took 735ms)
###該当のソースコード
C
1void setup() { 2 // put your setup code here, to run once: 3 pinMode(13,OUTPUT); 4 5} 6 7void loop() { 8 // put your main code here, to run repeatedly: 9 digitalWrite(13,HIGH); 10 delay(3000); 11 digitalWrite(13,LOW); 12 delay(500); 13 14}
###試したこと
ページ内にある、プロジェクト内の変数にパスを入力の部分を試しても、入力ウィンドウを閉じて再度開くと設定が消えている点が気になります。
なにかミスしているところがあるようでしたら、教えていただけると助かります。
よろしくお願いいたします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/11/06 14:42