-
Download the release zip: https://github.com/larsgk/web-nrf52-dongle/releases
-
Put the device into bootloader mode by pressing the teeny tiny button on the side of the component next to the obvious button (near the N logo in Nordic). It will flash red
-
Find the device address, look for the odd one out:
ls -lha /dev/tty*- Flash the device:
nrfutil dfu serial -pkg pkg.zip -p /dev/tty.usbmodemE12DB15768271- Install PyEnv using Brew
brew update
brew install pyenv- Install Python 3.7
pyenv install 3.7.4 - Install virtualenvwrapper for PyEnv
brew install pyenv-virtualenvwrapper- Update your
.bash_profileor.zshrcor what have you
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
if command -v pyenv 1>/dev/null 2>&1; then
eval "$(pyenv init -)"
fi
export PYENV_VIRTUALENVWRAPPER_PREFER_PYVENV="true"
pyenv global 3.7.4- Install nrfutil:
pip install nrfutil- Install west:
pip install west- Install more dependencies:
brew install cmake ninja gperf ccache dfu-util qemu dtc python3- Create Zephyrproject folder:
cd ~
west init zephyrproject
cd zephyrproject