Arduino へRasPi経由で書き込みする方法
RasPi用Radio装着のまま、Arduinoのファームウェア書き換えができる。
参考:http://wp.me/P73v26-eM
- 結線
コンデンサとGPIOの7pinを緑のリードで結線する。
&ref(): File not found: "*.jpg" at page "日記/2016-03-21";
- RasPi側の準備
sudo apt-get update
sudo apt-get install git avrdude python-dev python-rpi.gpio
git clone https://github.com/openenergymonitor/avrdude-rpi.git
cd avrdude-rpi
sudo cp autoreset /usr/bin
sudo cp avrdude-autoreset /usr/bin
sudo mv /usr/bin/avrdude /usr/bin/avrdude-original
sudo ln -s /usr/bin/avrdude-autoreset /usr/bin/avrdude
- 書き込み
DVMEGA_HB_V223_UNO.cpp.hexを書き込む場合
avrdude -p m328p -c arduino -P /dev/ttyAMA0 -b 115200 -F -U flash:w:DVMEGA_HB_V223_UNO.cpp.hex -v