質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
MacOS(OSX)

MacOSとは、Appleの開発していたGUI(グラフィカルユーザーインターフェース)を採用したオペレーションシステム(OS)です。Macintoshと共に、市場に出てGUIの普及に大きく貢献しました。

Arduino

Arduinoは、AVRマイコン、単純なI/O(入出力)ポートを備えた基板、C言語を元としたArduinoのプログラム言語と、それを実装した統合開発環境から構成されたシステムです。

Q&A

解決済

1回答

4665閲覧

Arduino Nanoにプログラムが書き込めない

arailly

総合スコア17

MacOS(OSX)

MacOSとは、Appleの開発していたGUI(グラフィカルユーザーインターフェース)を採用したオペレーションシステム(OS)です。Macintoshと共に、市場に出てGUIの普及に大きく貢献しました。

Arduino

Arduinoは、AVRマイコン、単純なI/O(入出力)ポートを備えた基板、C言語を元としたArduinoのプログラム言語と、それを実装した統合開発環境から構成されたシステムです。

0グッド

0クリップ

投稿2018/11/25 11:45

編集2018/11/25 11:49

Arduinoにプログラムを書き込みたい

未使用のArduinoをPCに接続して+5VピンとGNDに抵抗とLEDを繋いで動作を確認した後,
書いたコードを書き込もうとしたら,以下のエラーメッセージが発生して書き込めません.助けてください.

発生している問題・エラーメッセージ

Arduino:1.8.7 Hourly Build 2018/10/05 11:12 (Mac OS X), ボード:"Arduino Nano, ATmega328P" 最大30720バイトのフラッシュメモリのうち、スケッチが930バイト(3%)を使っています。 最大2048バイトのRAMのうち、グローバル変数が9バイト(0%)を使っていて、ローカル変数で2039バイト使うことができます。 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00 マイコンボードに書き込もうとしましたが、エラーが発生しました。 このページを参考にしてください。 http://www.arduino.cc/en/Guide/Troubleshooting#upload 「ファイル」メニューの「環境設定」から 「より詳細な情報を表示する:コンパイル」を有効にすると より詳しい情報が表示されます。

詳細なコンパイルを有効にしてみると,以下の関係がありそうなメッセージが追加されました.

Using Port : /dev/cu.usbserial-A105ACDI Using Programmer : arduino Overriding Baud Rate : 115200

該当のソースコード

c

1/* 2 Blink 3 4 Turns an LED on for one second, then off for one second, repeatedly. 5 6 Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO 7 it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN is set to 8 the correct LED pin independent of which board is used. 9 If you want to know what pin the on-board LED is connected to on your Arduino 10 model, check the Technical Specs of your board at: 11 https://www.arduino.cc/en/Main/Products 12 13 modified 8 May 2014 14 by Scott Fitzgerald 15 modified 2 Sep 2016 16 by Arturo Guadalupi 17 modified 8 Sep 2016 18 by Colby Newman 19 20 This example code is in the public domain. 21 22 http://www.arduino.cc/en/Tutorial/Blink 23*/ 24 25// the setup function runs once when you press reset or power the board 26void setup() { 27 // initialize digital pin LED_BUILTIN as an output. 28 pinMode(LED_BUILTIN, OUTPUT); 29} 30 31// the loop function runs over and over again forever 32void loop() { 33 digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level) 34 delay(1000); // wait for a second 35 digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW 36 delay(1000); // wait for a second 37}

試したこと

  • PCの再起動
  • FTDIドライバのインストール・アンインストール

環境

Macbook Pro 2018
macOS Mojave 10.14.1
Arduino IDE 1.8.7


ご回答よろしくお願いいたします.

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

ベストアンサー

ArduinoのRESETピンをGNDに落としてませんか?
あるいはTxD、RxDのラインをどこかにショートしているとか。

まずは、配線をチェックしましょう

投稿2018/11/25 11:50

y_waiwai

総合スコア87774

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

arailly

2018/11/25 11:52

ご回答ありがとうございます. 全てのピンからリード線を外した状態で書き込もうとしても以上のエラーが出てしまいます.
y_waiwai

2018/11/25 11:56

なら、 ポート番号があってるかをチェックする、 書き込み対象の設定を、ATmega328P(OldBootloader)にしてみる などしてみよう
arailly

2018/11/25 12:01

ATmega328P(OldBootloader)に設定したら書き込みが成功し,想定した動作になりました! ありがとうございました!
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問