Getting started with Nordic nRF51822 Development on Mac OS X

The nRF51822 by Nordic Semiconductor us a multiprotocol SoC with a 2.4Ghz transceiver that is ideal for any Bluetooth Low Energy (Bluetooth Smart) application. The toolchain and documentation provided by Nordic is very much Windows centered. There are some tutorials that provide some hints for Linux (e.g., [1], [2], [3] ) As I use Mac OS X as my main developing platform, I have setup the Nordic toolchain there. In the following I describe some of the necessary steps.

Swift Journey Log

Using Preprocessor Macros: func println(object: Any) { #if DEBUG Swift.println(object) #endif } And just set “DEBUG” as a custom flag for the Swift compiler (Build Settings –> Swift Compiler –> Custom Flags) Debug: -DDEBUG Release: -DRELEASE Add a bridging header to import Objective-C code: Add empty header file to project (e.g., Bridging.h). Add all your #import statements in that file. In Project Build Settings, go to Swift Compiler - Code Generation and add path to previously created Bridging.

Useful Git Commands

Just documenting some useful git commands that I use occasionally. This list is hopefully being extended over time :-) Basic commands List all branches: git branch -a Get remote url: git config --get remote.origin.url Switch to branch: git checkout branch_name Create a new branch and push to remote: git checkout -b new_branch_name git push -u origin new_branch_name Create a new branch and switch to it: