<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Getting started with nRF51 development on Mac OS X</title><link>/nordic/nordic-blog/b/blog/posts/getting-started-with-nrf51-development-on-mac-os-x</link><description>Update: Since this blog was originally written the nrfjprog tool has been ported to OS X (now macOS). This means that the flash programming is much simpler, and it is simply a matter of following the documentation for the tool. Also, nRF Toolbox for </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><item><title>RE: Getting started with nRF51 development on Mac OS X</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/getting-started-with-nrf51-development-on-mac-os-x</link><pubDate>Fri, 29 Sep 2017 07:39:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c886449-a94d-4e84-9ac3-e9a36edebdc1</guid><dc:creator>Eirik Midttun</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Thanks for heads up! I added a warning at the top for now to avoid more people being misled.&lt;/p&gt;
&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=753&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Getting started with nRF51 development on Mac OS X</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/getting-started-with-nrf51-development-on-mac-os-x</link><pubDate>Thu, 28 Sep 2017 21:59:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c886449-a94d-4e84-9ac3-e9a36edebdc1</guid><dc:creator>Ryan</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;It would be great if this post were updated as nrfjprog has been ported to Mac OS (&lt;a rel="nofollow" target="_blank" href="https://devzone.nordicsemi.com/blogs/840/nrfjprog-pynrfjprog-intro-mac-os-x-linux-now-suppo/)"&gt;devzone.nordicsemi.com/.../)&lt;/a&gt;. I&amp;#39;m just getting started using this toolchain and feel like I very nearly went down an old and more painful road. Considering that the previous comment is only a handful of months old as well it appears like I&amp;#39;m not the only one.&lt;/p&gt;
&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=753&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Getting started with nRF51 development on Mac OS X</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/getting-started-with-nrf51-development-on-mac-os-x</link><pubDate>Sun, 30 Apr 2017 19:13:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c886449-a94d-4e84-9ac3-e9a36edebdc1</guid><dc:creator>Lola</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;This is working great! although there are many modifications had to be made in the new s132.
Also for some reason you said we should drag the s132 hex file into the _build folder then you :
loadbin s110_nrf51822_7.0.0_softdevice.bin instead of using the .hex file for some reason.
I did it with the hex and it worked.&lt;/p&gt;
&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=753&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Getting started with nRF51 development on Mac OS X</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/getting-started-with-nrf51-development-on-mac-os-x</link><pubDate>Fri, 05 Aug 2016 23:11:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c886449-a94d-4e84-9ac3-e9a36edebdc1</guid><dc:creator>Carlos Villavicencio</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;I think it would important to include some tasks to flash the softdevice because erase-all cleans everything.&lt;/p&gt;
&lt;p&gt;This is my code:&lt;/p&gt;
&lt;pre&gt;flash-softdevice-jlink: flash-softdevice.jlink
    $(JLINK) flash-softdevice.jlink

flash-softdevice.jlink:
    printf &amp;quot;loadbin ../../../../../../components/softdevice/s130/hex/s130_nrf51_2.0.0_softdevice.hex 0\nr\ng\nexit\n&amp;quot; &amp;gt; flash-softdevice.jlink
&lt;/pre&gt;
&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=753&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Getting started with nRF51 development on Mac OS X</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/getting-started-with-nrf51-development-on-mac-os-x</link><pubDate>Mon, 16 Nov 2015 08:51:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c886449-a94d-4e84-9ac3-e9a36edebdc1</guid><dc:creator>hawk</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Great!   I want to continue  to write code  on my mac!&lt;/p&gt;
&lt;p&gt;Next step , it  had better to use  vim as editor.&lt;/p&gt;
&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=753&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Getting started with nRF51 development on Mac OS X</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/getting-started-with-nrf51-development-on-mac-os-x</link><pubDate>Wed, 28 Oct 2015 13:51:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c886449-a94d-4e84-9ac3-e9a36edebdc1</guid><dc:creator>gap</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Thanks for this guide.&lt;/p&gt;
&lt;p&gt;Here are some updates for compiling with the latest SDK (9.0.0):&lt;/p&gt;
&lt;p&gt;The location of makefile.posix has changed from:&lt;/p&gt;
&lt;pre&gt;(SDK location)/nrf51822/Source/templates/gcc/Makefile.posix
&lt;/pre&gt;
&lt;p&gt;to:&lt;/p&gt;
&lt;pre&gt;(SDK location)/components/toolchain/gcc/Makefile.posix
&lt;/pre&gt;
&lt;p&gt;For the compilation example, the path and filenames have changed a little:&lt;/p&gt;
&lt;p&gt;old:&lt;/p&gt;
&lt;pre&gt;cd &amp;lt;SDK location&amp;gt;/nrf51822/Board/pca10001/s110/ble_app_hrs/gcc
make -f ble_app_hrs.Makefile all
&lt;/pre&gt;
&lt;p&gt;new (just one makefile in the folder):&lt;/p&gt;
&lt;pre&gt;cd &amp;lt;SDK location&amp;gt;/examples/ble_peripheral/ble_app_hrs/pca10028/s110/armgcc
make -f Makefile all
&lt;/pre&gt;
&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=753&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Getting started with nRF51 development on Mac OS X</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/getting-started-with-nrf51-development-on-mac-os-x</link><pubDate>Wed, 05 Aug 2015 11:01:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c886449-a94d-4e84-9ac3-e9a36edebdc1</guid><dc:creator>Eirik Midttun</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;@patrick: The site you posted to was not launched when I first wrote this blog post. I have updated the link in the post. I also removed the comment that a login is required; it no longer is :)&lt;/p&gt;
&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=753&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Getting started with nRF51 development on Mac OS X</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/getting-started-with-nrf51-development-on-mac-os-x</link><pubDate>Tue, 28 Jul 2015 20:51:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c886449-a94d-4e84-9ac3-e9a36edebdc1</guid><dc:creator>patrick</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;I have been going through the example.  A quicker link to the SDK.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://developer.nordicsemi.com"&gt;http://developer.nordicsemi.com&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I was confused when it was not in the download section and spent a good amount of time looking through the IOT sdk.&lt;/p&gt;
&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=753&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Getting started with nRF51 development on Mac OS X</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/getting-started-with-nrf51-development-on-mac-os-x</link><pubDate>Tue, 12 May 2015 00:09:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c886449-a94d-4e84-9ac3-e9a36edebdc1</guid><dc:creator>Shlomo Zippel</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;I just played around with getting SDK v.8 samples to work on mac. A few notes that might save you some time:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;There is no need to specify the flash start address when flashing samples build with SoftDevice support. The .hex file contains the correct offsets (based on the sections defined in the custom linker scripts) and LinkExe ignores the start address&lt;/li&gt;
&lt;li&gt;$(OUTPUT_FILENAME) isn&amp;#39;t defined when Makefile.posix is imported into the various example Makefiles. I added hardcoded OUTPUT_FILENAME := nrf51422_xxac to the posix makefile just to get the examples working without changing every makefile individually.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;@kerem - it looks like you copied the entire line including the shell prompt. Try dropping the gcc em$ from the command you&amp;#39;re trying to run.&lt;/p&gt;
&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=753&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Getting started with nRF51 development on Mac OS X</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/getting-started-with-nrf51-development-on-mac-os-x</link><pubDate>Wed, 22 Apr 2015 01:04:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c886449-a94d-4e84-9ac3-e9a36edebdc1</guid><dc:creator>kerem</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;I am having problems with compiling the samples using gcc for arm 4.9 on os x 10.9 and nrf51 sdk 8.0. I am getting errors such as:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;clang: error: unknown argument: &amp;#39;-f&amp;#39;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;clang: error: no such file or
directory: &amp;#39;em$&amp;#39;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;clang: error: no such
file or directory: &amp;#39;make&amp;#39;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Is there a more recent guide for simply compiling any of the examples on os x? Should I just go for the virtualbox/win7/keil setup as that&amp;#39;s more relevant to the current documentation?&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t have the development board but only a nrf5188 beacon, I&amp;#39;m trying to build one of the examples and flash it on the beacon using nRF Master Control Panel application on Android.&lt;/p&gt;
&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=753&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Getting started with nRF51 development on Mac OS X</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/getting-started-with-nrf51-development-on-mac-os-x</link><pubDate>Sun, 01 Feb 2015 16:02:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c886449-a94d-4e84-9ac3-e9a36edebdc1</guid><dc:creator>Jim Credland</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;This is great stuff. Thank you!  I also found some links which helped set up Xcode as the editor, with some Makefile integration and indexing of the nordic headers.&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_blank" href="http://hiltmon.com/blog/2013/07/07/xcode-4-code-completion-for-external-build-projects/"&gt;hiltmon.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Was the key one.&lt;/p&gt;
&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=753&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Getting started with nRF51 development on Mac OS X</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/getting-started-with-nrf51-development-on-mac-os-x</link><pubDate>Sat, 13 Sep 2014 20:52:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c886449-a94d-4e84-9ac3-e9a36edebdc1</guid><dc:creator>Antonio</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Great!!! I have been wanting to stop using windows on my mac!&lt;/p&gt;
&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=753&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Getting started with nRF51 development on Mac OS X</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/getting-started-with-nrf51-development-on-mac-os-x</link><pubDate>Fri, 12 Sep 2014 10:36:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c886449-a94d-4e84-9ac3-e9a36edebdc1</guid><dc:creator>Frederik</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Most of these instructions are also applicable for linux development, flashing &amp;amp; debugging too, if anybody has problems with that.&lt;/p&gt;
&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=753&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Getting started with nRF51 development on Mac OS X</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/getting-started-with-nrf51-development-on-mac-os-x</link><pubDate>Tue, 02 Sep 2014 16:23:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c886449-a94d-4e84-9ac3-e9a36edebdc1</guid><dc:creator>Janek Mann</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;A nice summary!&lt;/p&gt;
&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=753&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Getting started with nRF51 development on Mac OS X</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/getting-started-with-nrf51-development-on-mac-os-x</link><pubDate>Tue, 02 Sep 2014 13:44:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c886449-a94d-4e84-9ac3-e9a36edebdc1</guid><dc:creator>sprhawk</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Great !&lt;/p&gt;
&lt;p&gt;I have my own scripts here:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_blank" href="https://github.com/sprhawk/nrf51822-macosx-build-scripts"&gt;github.com/.../nrf51822-macosx-build-scripts&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;and a demo:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_blank" href="https://github.com/sprhawk/nrf51822-first-fw"&gt;github.com/.../nrf51822-first-fw&lt;/a&gt;&lt;/p&gt;
&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=753&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>