Skip to content

Instantly share code, notes, and snippets.

@moyashi
Last active December 6, 2021 17:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moyashi/fdc78da117694686390336b57ad581b8 to your computer and use it in GitHub Desktop.
Save moyashi/fdc78da117694686390336b57ad581b8 to your computer and use it in GitHub Desktop.
macOSでCNCコントロールボードへコマンドラインからGrblのhexを書き込む
Arduino IDEを「/Applications/Arduino.app」にインストールしてあり、
書き込み対象のGrblのhexがファイル名「firmware.hex」として「~/Downloads」にあり、
CNCコントロールボードのシリアルポートが「/dev/tty.wchusbserial14510」であると
仮定。
Grblのhexはここにある https://github.com/gnea/grbl/releases
Grbl0.9から1.1へのアップデートをする場合は、事前に$$で設定を書き出し、コピペして保存しておく。
cd ~/Downloads
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude -p m328p -C /Applications/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf -q -c arduino -b 115200 -P /dev/tty.wchusbserial14510 -U flash:w:firmware.hex:i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment