1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

[メモ] Arduino Zero(atsamd21/ARM Cortex-M0)系のbootloaderのビルド

Last updated at Posted at 2019-10-30

とりあえず、メモ。実機を入手したら、試す..(ので、まだ、ためしていない)

環境

  • Windows 10 64bit
  • Arduino: ---- (試す実機がない)

手順

  1. 管理者で、PowerShellを開く(左下のWindowsアイコンを右クリックして、a を押す)

  2. 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
    
  3. Arduino起動

    1. Tools > Board:"xxxxx" > Boards Manager... 選択
    2. "mkrzero"で検索し、[Install] (ARMのコンパイラなどいろいろツールがインストールされる)
    3. 待つ
    4. [Close]をおして、Arduinoも閉じる。
  4. エクスプローラーで、適当に作業フォルダ(例: C:\Dev)を作って、右クリック=> Git Bash Here

  5. bashにて、

    git clone https://github.com/arduino/ArduinoCore-samd 
    cd ArduinoCore-samd/bootloaders/zero
    
  6. make でビルド開始(デフォルト:??)

  7. タイプを指定したり、

    mkrzero向け
    BOARD_ID=arduino_mkrzero NAME=samd21_sam_ba_arduino_mkrzero make
    
  8. 全部ビルドしたり、できる

    . ./build_all_bootloaders.sh
    

その他

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?