Skip to content

Instantly share code, notes, and snippets.

@sghctoma
Created July 23, 2019 10:39
Show Gist options
  • Save sghctoma/b12ca6cd50efb766a2f59b39a80dd9ec to your computer and use it in GitHub Desktop.
Save sghctoma/b12ca6cd50efb766a2f59b39a80dd9ec to your computer and use it in GitHub Desktop.
Commands to build/flash LOGITacker for the nRF52840 Dongle on FreeBSD
pkg install git gmake gcc-arm-embedded py27-pip
pip-2.7 install nrfutil
fetch https://www.nordicsemi.com/-/media/Software-and-other-downloads/SDKs/nRF5/Binaries/nRF5SDK153059ac345.zip
unzip nRF5SDK153059ac345.zip
cd nRF5_SDK_15.3.0_59ac345/examples/peripheral # does not have to be "examples/peripheral", only the directory depth is important (because of relative paths in the Makefile)
git clone https://github.com/mame82/LOGITacker
cd LOGITacker/pca10059/blank/armgcc/
env GNU_INSTALL_ROOT=/usr/local/gcc-arm-embedded/bin/ GNU_VERSION=8.2.1 gmake # builds without GNU_VERSION, but don't know if there are any consequences
nrfutil pkg generate --debug-mode --hw-version 52 --sd-req 0x0 --application _build/logitacker_pca10059.hex dfu.zip # debug mode and unsigned for simplicity
nrfutil dfu usb-serial -pkg dfu.zip -p /dev/cuaU0 -b 115200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment