Note: The following explains the setup on MacOS
brew install cmake
brew install ninja
brew install gperf
brew install ccache
brew install dfu-util
brew install dtc
brew install python3
Following along with the nRF Connect SDK will lead to this.
sudo cp ~/Downloads/gcc-arm-none-eabi-8-2019-q3-update-mac.tar.bz2 /opt
/opt cd /opt
/opt sudo tar -xjvf gcc-arm-none-eabi-8-2019-q3-update-mac.tar.bz2
/opt sudo mv gcc-arm-none-eabi-8-2019-q3-update gnuarmemb
Verify toolchain installation.
cd /opt
tree -L 2 gnuarmemb
gnuarmemb
├── arm-none-eabi
│ ├── bin
│ ├── include
│ ├── lib
│ └── share
├── bin
│ ├── arm-none-eabi-addr2line
│ ├── arm-none-eabi-ar
│ ├── arm-none-eabi-as
│ ├── arm-none-eabi-c++
│ ├── arm-none-eabi-c++filt
│ ├── arm-none-eabi-cpp
│ ├── arm-none-eabi-elfedit
│ ├── arm-none-eabi-g++
│ ├── arm-none-eabi-gcc
│ ├── arm-none-eabi-gcc-8.3.1
│ ├── arm-none-eabi-gcc-ar
│ ├── arm-none-eabi-gcc-nm
│ ├── arm-none-eabi-gcc-ranlib
│ ├── arm-none-eabi-gcov
│ ├── arm-none-eabi-gcov-dump
│ ├── arm-none-eabi-gcov-tool
│ ├── arm-none-eabi-gdb
│ ├── arm-none-eabi-gdb-add-index
│ ├── arm-none-eabi-gdb-add-index-py
│ ├── arm-none-eabi-gdb-py
│ ├── arm-none-eabi-gprof
│ ├── arm-none-eabi-ld
│ ├── arm-none-eabi-ld.bfd
│ ├── arm-none-eabi-nm
│ ├── arm-none-eabi-objcopy
│ ├── arm-none-eabi-objdump
│ ├── arm-none-eabi-ranlib
│ ├── arm-none-eabi-readelf
│ ├── arm-none-eabi-size
│ ├── arm-none-eabi-strings
│ └── arm-none-eabi-strip
├── lib
│ ├── gcc
│ ├── libcc1.0.so
│ └── libcc1.so -> libcc1.0.so
└── share
├── doc
└── gcc-arm-none-eabi
11 directories, 33 files
➜ /opt
Click `Verify all`
log window shows this
Address if anything is unsuccessful. One common pitfall is extracting the toolchain in /opt but not renaming it to `gnuarmemb`.
Clone the nRF Connect SDK
pip3 install west
verify west is installed
➜ ls -l /usr/local/bin/west
-rwxr-xr-x 1 user admin 231 Apr 24 05:25 /usr/local/bin/west
➜
Comments
0 comments
Please sign in to leave a comment.