nRF52 Development with CLion

image description

TL;DR

If you just want to navigate (without debugging) through the nRF5-SDK using CLion, follow the following steps. For debugging go to “Debugging the nRF52 with CLion” in the full post.

  1. (optional) Create a backup for your current nrf5-SDK directory
  2. cd into the root of the nrf5-SDK directory
  3. curl -s https://raw.githubusercontent.com/Jumperr-labs/nrf5-sdk-clion/master/nrf5-sdk-to-clion.sh | bash
  4. Open “./CMakeLists.txt” and uncomment the desired project’s path (you can uncomment multiple projects)
  5. From CLion, go to File → Open and choose the root directory of the nRF5-SDK.

The Full Story

While working on Jumper's µLogger, I decided enough is enough and I needed a proper IDE for developing embedded software. I wrote a script that lets you use CLion for navigating through the nRF5-SDK and even connect it to a debugger.

Check out the full post on Medium