Skip to content

Instantly share code, notes, and snippets.

@danielbank
Last active January 13, 2020 03:40
Show Gist options
  • Select an option

  • Save danielbank/2fcb63be7553c8d174392d365b69dfd4 to your computer and use it in GitHub Desktop.

Select an option

Save danielbank/2fcb63be7553c8d174392d365b69dfd4 to your computer and use it in GitHub Desktop.
NRF Workshop

Workshop Repo

Flashing with a pkg.zip

  • 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

Going Off Road with Zephyr West which is not required for the Workshop

Install PyEnv

  • 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_profile or .zshrc or 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 Zephyr Toolchain

  • 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment