ファームウェア書き込み方法
ソースファイルのダウンロード
環境構築
C:\arduino\hardware\tools\avr\bin\ このパスが辿れることを確認
IDE 2.x以降はディレクトリ構成が変わったため使用不可
Arduinoへ書き込み
python flash.py COMxもしくはpy -2 flash.py COMxで書き込み (COMは各自確認)
以下、実行結果 (参考)
code:cmd
C:\firmware>py -2 flash.py COM5
Using serial device 'COM5' from command line.
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.02s
avrdude: Device signature = 0x1e9801 (probably m2560)
avrdude: reading input file "LasaurGrbl.hex"
avrdude: writing flash (16948 bytes):
Writing | ################################################## | 100% 3.01s
avrdude: 16948 bytes of flash written
avrdude: verifying flash memory against LasaurGrbl.hex:
avrdude: load data flash data from input file LasaurGrbl.hex:
avrdude: input file LasaurGrbl.hex contains 16948 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 2.38s
avrdude: verifying ...
avrdude: 16948 bytes of flash verified
avrdude: safemode: Fuses OK (E:FF, H:D8, L:FF)
avrdude done. Thank you.
Cleaning up build files.