0
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 3 years have passed since last update.

macOS Big SurでSPRENSENSE SDKを使う

Posted at

macOS Big Surで、SPRESENSE SDKの構築に手間取ったのでそのメモ。

KCONFIGのインストール

よりMacPortsのmacOS Big Sur版をダウンロードして、インストール。

sudo port install kconfig-frontends

SPRESENSE SDKの構築

xcode-select --install
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew install wget
curl -L https://raw.githubusercontent.com/sonydevworld/spresense/master/install-tools.sh > install-tools.sh
bash install-tools.sh
source ~/spresenseenv/setup

※ sourceコマンドは.bash_profileに追記しておく

git clone --recursive https://github.com/sonydevworld/spresense.git

コンフィグレーション

cd spresense/sdk
tools/config.py examples/hello

ここで、下記メッセージが表示

tools/config.py examples/hello
WARNING: New loader v2.2.0 is required, please download and install.
         Download URL   : https://developer.sony.com/file/download/download-spresense-firmware-v2-2-000
         Install command:
                          1. Extract loader archive into host PC.
                             ./tools/flash.sh -e <download zip file>
                          2. Flash loader into Board.
                             ./tools/flash.sh -l /Volumes/Datas/workspace_sony/sdk/spresense/firmware/spresense -c <port>

に接続し、spresense-binaries-v2.2.0.zipをGet。

Host PC(Mac)に取り込み

./tools/flash.sh -e ~/Downloads/spresense-binaries-v2.2.0.zip 

SPRESENSEに焼き込む、この時 /dev/tty.*で認識されているSPRESENSEのデバイスを指定する。

./tools/flash.sh -l /Volumes/Datas/workspace_sony/sdk/spresense/firmware/spresense -c /dev/tty.usbserial-14430

Build

make

焼き込む

tools/flash.sh -c /dev/tty.usbserial-14430 nuttx.spk

動作確認

screen /dev/tty.usbserial-14430 115200
NuttShell (NSH) NuttX-8.2
nsh> hello
Hello, World!!
nsh> 

CTRL + Aを押したあとにkを教えて終了

0
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
0
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?