とりあえず、メモ。実機を入手したら、試す..(ので、まだ、ためしていない)
環境
- Windows 10 64bit
- Arduino: ---- (試す実機がない)
手順
-
管理者で、PowerShellを開く(左下のWindowsアイコンを右クリックして、
a
を押す) -
Chocolateyインストールし、git, make, arduino をインストール
以下こぴぺSet-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) cinst -y git make arduino
-
Arduino起動
- Tools > Board:"xxxxx" > Boards Manager... 選択
- "mkrzero"で検索し、[Install] (ARMのコンパイラなどいろいろツールがインストールされる)
- 待つ
- [Close]をおして、Arduinoも閉じる。
-
エクスプローラーで、適当に作業フォルダ(例:
C:\Dev
)を作って、右クリック=> Git Bash Here -
bashにて、
git clone https://github.com/arduino/ArduinoCore-samd cd ArduinoCore-samd/bootloaders/zero
-
make
でビルド開始(デフォルト:??) -
タイプを指定したり、
mkrzero向けBOARD_ID=arduino_mkrzero NAME=samd21_sam_ba_arduino_mkrzero make
-
全部ビルドしたり、できる
. ./build_all_bootloaders.sh