Posted 2017-05-11 04:13:06 +0200


The complete tutorial for developing and debugging nRF52 applications on a Mac

I realize that there are already multiple tutorials on how to configure GCC along with Eclipse or SEGGER Embedded Studio (for use on a Mac), but this tutorial goes over setting up a different IDE. The more choices the better, right? ;)

The IDE of choice for me is NetBeans. NetBeans is well known for Java development but not as much for C/C++ or embedded. However, I personally have been using it for embedded development for about 10 years now (both embedded Linux and MCU-level development). In this tutorial, I'll be going over how to set up and configure the development environment and NetBeans from scratch for developing and debugging nRF52 applications (I used the nRF52840 Preview Development Kit, but really the steps are transferrable to be used with any nRF5x development kit).

I must warn you that the tutorial may be a bit lengthy, but that's because I tried to include every screenshot and image showing details for each of the steps involved. Because of that, I will provide a link to the blog post (which is hosted on my website).

I thought others may benefit from this tutorial especially if they're looking for other options for development on a Mac using open source tools.

Hope you find it useful!

Read the tutorial here.


emdi gravatar image

Posted May 11, 2017, 11:26 a.m.

This is great, thanks!

jolo gravatar image

Posted May 12, 2017, 11:02 a.m.

Very good tutorial! Thank you a lot for sharing your insights.

Posted May 22, 2017, 3:11 p.m.

This is great, thanks! Though I have one issue: Code Assistance in Netbeans doesn't pick up #defines from the Makefile, e.g. CFLAGS += -DBOARD_PCA10056 and therefore sees BOARD_PCA10056 as undefined.

I can fix this by manually adding all the relevant defines to Code Assistance -> C Compiler -> Preprocessor Definitions, but that's a little laborious:)

Is there a faster way to make Netbeans' Code Assistance recognise defines from the Makefile?

Sign in to comment.

User menu

    or sign up

Recent questions

Related posts by tag