mblockでのarduinoへのアップロードエラー
stk500_rev()の下記エラーが出てアップロードできない場合の解決方法の1つを記載。
C:\Program Files (x86)\mBlock\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\mBlock\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM6 -b57600 -D -Uflash:w:C:\Users\tsuyo\AppData\Local\Temp\build7167667021832597049.tmp/project_Demo_Avoid_Obstacle7_4.cpp.hex:i
avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch
System wide configuration file is "C:\Program Files (x86)\mBlock\Arduino\hardware\tools\avr/etc/avrdude.conf"
Using Port : COM6
Using Programmer : arduino
Overriding Baud Rate : 57600
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xa6
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xa6
avrdude: stk500_recv(): programmer is not responding
##原因
arduinoのアップロード速度の違い
旧arduino nano: 57600 bps
新arduino nano: 115200 bps
##対策
下記ファイル内のupload.speed(146行目)を57600から115200に変更
\Program Files (x86)\mBlock\Arduino\hardware\arduino\avr\boards.txt
Arduino Nano w/ATmega328(140行目以降)
修正前
nano.menu.cpu.atmega328.upload.speed=57600
修正後
nano.menu.cpu.atmega328.upload.speed=115200