<?xml version="1.0" encoding="UTF-8" ?>
<?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/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Is a pure Linux development environment possible for nRF52?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/9327/is-a-pure-linux-development-environment-possible-for-nrf52</link><description>Hello everyone, 
 I&amp;#39;m brand-new here. I have developed quite a bit of software on desktop PC&amp;#39;s, but this is my first experience with embedded programming. A few weeks ago, I was handed an nRF52 development board, a temporary computer for development</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 14 Jul 2016 17:24:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/9327/is-a-pure-linux-development-environment-possible-for-nrf52" /><item><title>RE: Is a pure Linux development environment possible for nRF52?</title><link>https://devzone.nordicsemi.com/thread/34441?ContentTypeID=1</link><pubDate>Thu, 14 Jul 2016 17:24:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:725529de-54b2-41ba-af83-3ec09a819c67</guid><dc:creator>Thomas Stenersen</dc:creator><description>&lt;p&gt;If someone still needs any help. Here is an example project for building and flashing a blinky application using CMake with arm-none-eabi-gcc and nrftools. Should work on Windows, OS X and Linux.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/thomsten/nrf-blinky"&gt;github.com/.../nrf-blinky&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is a pure Linux development environment possible for nRF52?</title><link>https://devzone.nordicsemi.com/thread/34440?ContentTypeID=1</link><pubDate>Thu, 14 Jul 2016 17:12:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e01c991f-ff62-442b-8d98-8addceb80e60</guid><dc:creator>Gustavo Reynaga</dc:creator><description>&lt;p&gt;Hi, maybe this article be useful for someone:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://leavesified.wordpress.com/2016/03/24/setup-nrf51-development-on-linux/"&gt;Setup nRF51 Development on Linux&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is a pure Linux development environment possible for nRF52?</title><link>https://devzone.nordicsemi.com/thread/34439?ContentTypeID=1</link><pubDate>Wed, 30 Sep 2015 06:30:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d0ddddb-f147-4b0e-90ab-9c19f3fe006a</guid><dc:creator>Torsten Robitzki</dc:creator><description>&lt;p&gt;Hi Ladasky,
I&amp;#39;m using CMake. CMake is a make file generator. Writing cmake is much easier than writing make files.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is a pure Linux development environment possible for nRF52?</title><link>https://devzone.nordicsemi.com/thread/34435?ContentTypeID=1</link><pubDate>Wed, 30 Sep 2015 00:28:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2970144-c32b-4a67-8c64-563549bd8133</guid><dc:creator>Ladasky</dc:creator><description>&lt;p&gt;Thanks again for following up with me, Michael.  If you look at my reply to Torsten above: I am now compilng, building and flashing programs manually.&lt;/p&gt;
&lt;p&gt;I now have to make some decisions about automating the process for my code development.  I&amp;#39;m not sure whether to use Eclipse (new to me, and very complex), Geany (my standard, lightweight IDE), or the command prompt.&lt;/p&gt;
&lt;p&gt;I have come to understand that Eclipse lets you choose between basing a project around GNU makefiles and its own internal project files.  I guess I should have realized that &amp;quot;Cross GCC&amp;quot; meant &amp;quot;cross-compile using the ARM instruction set&amp;quot;, but it was a bit too cryptic for me.&lt;/p&gt;
&lt;p&gt;Concerning the link to the tutorial you just shared, it is for Windows and MinGW, not for Linux.  I may get some help from it, but perhaps not.  And I can see I&amp;#39;ve already accomplished Part 1, installing the toolchain.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is a pure Linux development environment possible for nRF52?</title><link>https://devzone.nordicsemi.com/thread/34438?ContentTypeID=1</link><pubDate>Wed, 30 Sep 2015 00:18:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bba9135e-6a2e-431b-8bc7-5b727394ecdd</guid><dc:creator>Ladasky</dc:creator><description>&lt;p&gt;Follow-up: Thanks again Torsten, I have followed your instructions through to a successful conclusion.&lt;/p&gt;
&lt;p&gt;I succeeded in manually compiling Blinky using Nordic&amp;#39;s provided Makefile (deeply nested inside the examples folders, I had to hunt for a while!).&lt;/p&gt;
&lt;p&gt;I also found the SEGGER JLink package in the Linux repositories, and I have used JLinkExe to flash the chip.   I have two versions of Blinky with different LED flash rates, so I know when the program changes.&lt;/p&gt;
&lt;p&gt;Now, it&amp;#39;s still going to be a challenge to write versions of the Nordic makefiles which can be moved to other folders.  Many of the paths are hard-coded to match the folder structure of the SDK.  Working on that next.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is a pure Linux development environment possible for nRF52?</title><link>https://devzone.nordicsemi.com/thread/34434?ContentTypeID=1</link><pubDate>Sat, 26 Sep 2015 12:03:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4eaa0f6-c521-4f39-b026-884adf9ed7ac</guid><dc:creator>Michael Dietz</dc:creator><description>&lt;p&gt;here it is: this was the tutorial that helped me the most. just follow this one if your still struggling
&lt;a href="http://www.hertaville.com/gcc-arm-toolchain-stm32f0discovery.html"&gt;www.hertaville.com/gcc-arm-toolchain-stm32f0discovery.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is a pure Linux development environment possible for nRF52?</title><link>https://devzone.nordicsemi.com/thread/34433?ContentTypeID=1</link><pubDate>Fri, 25 Sep 2015 07:34:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7436e0b-2546-413a-a946-270a676e91e8</guid><dc:creator>Michael Dietz</dc:creator><description>&lt;p&gt;I think Cross GCC is the correct toolchain (thats what I have selected). It looks like you have all the correct software installed. (Although you will probably need to install some eclipse plug ins if you havent already).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is a pure Linux development environment possible for nRF52?</title><link>https://devzone.nordicsemi.com/thread/34437?ContentTypeID=1</link><pubDate>Wed, 23 Sep 2015 21:41:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26e2e106-b99f-46f0-b2ce-8051ff81e8fe</guid><dc:creator>Ladasky</dc:creator><description>&lt;p&gt;Hi Torsten,
Thanks for your reply.  I am trying Michael Dietz&amp;#39;s approach using Eclipse, but while I&amp;#39;ve gotten stuck, I will also try your command-line approach.  (I&amp;#39;ve been using Geany.  I&amp;#39;m overwhelmed by the complexity of Eclipse.)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is a pure Linux development environment possible for nRF52?</title><link>https://devzone.nordicsemi.com/thread/34432?ContentTypeID=1</link><pubDate>Wed, 23 Sep 2015 21:38:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:294615ae-e464-49ac-a6b4-00fc1d735992</guid><dc:creator>Ladasky</dc:creator><description>&lt;p&gt;Thanks for your reply. I&amp;#39;m a little confused by steps 4 and 5.  Does Eclipse actually use GNU make?  Or does it perform the jobs that make would do, using information in its project files?&lt;/p&gt;
&lt;p&gt;In case my system configuration matters: Ubuntu 15.04 x86_64, Eclipse 4.5.0, gcc-arm-none-eabi 4.8.3.  I took care to download only 64-bit packages.  I have also downloaded and extracted nRF5x_MDK_8_0_4_GCC, nRF52_SDK_0.9.1_3639cc9, and s132_nrf52_1.0.0-3.alpha.&lt;/p&gt;
&lt;p&gt;I am building and executing C that runs on my host machine successfully from within Eclipse.&lt;/p&gt;
&lt;p&gt;From the Eclipse main menu, if I click File &amp;gt; New &amp;gt; C Project, a dialog appears.  On the right side of the window, the toolchain selector shows &amp;quot;Cross GCC&amp;quot; and &amp;quot;Linux GCC&amp;quot;.  If I uncheck the box at the bottom of the window, five more toolchains appear, but not the ARM Embedded toolchain.  How do I add ARM Embedded to this list?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is a pure Linux development environment possible for nRF52?</title><link>https://devzone.nordicsemi.com/thread/34436?ContentTypeID=1</link><pubDate>Sat, 19 Sep 2015 12:34:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c80a472-a20c-440d-b948-9723956b7161</guid><dc:creator>Torsten Robitzki</dc:creator><description>&lt;p&gt;I&amp;#39;m developing software for nrf51 on OS/X using gcc. I think its much more long time stable to use just a compiler and make (and maybe a tool like cmake) for a project and leave the decision for an optional IDE to the individual developers.&lt;/p&gt;
&lt;p&gt;I prefere make files over some xml-like IDE-projects settings, because changes to a makefile can be tracked by version managment tools like git/svn very well. If someone changes a compiler setting in an IDE project setting, it usually results in some undocumented changes in a large xml file.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve worked on a project where 4 different micro controllers where used from 3 different vendors. If we where using the vendors prefered IDE and compiler, we would have to use at least 2 different flavors of windows and 3 modified versions of eclipse ;-)&lt;/p&gt;
&lt;p&gt;Here is a small example of a nrf51 project, that uses GCC and should work without any changes on OS/X, windows (with mingw of cause) and linux: &lt;a href="https://github.com/TorstenRobitzki/bluetoe/tree/master/examples/nrf51"&gt;github.com/.../nrf51&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;CMakeLIsts.txt: that&amp;#39;s some kind of makefile&lt;/li&gt;
&lt;li&gt;gcc_nrf51_common.ld, nrf51_xxaa.ld: slightly changed linker scripts from nordic&lt;/li&gt;
&lt;li&gt;system_nrf51.h,  system_nrf51422.c, gcc_startup_nrf51.s : startup filed provided by nordic&lt;/li&gt;
&lt;li&gt;runtime.cpp: minimum runtime support for C++&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In addition, you will need the SDK, that contains headers that decribe the layout of the registers.&lt;/p&gt;
&lt;p&gt;hth Torsten&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is a pure Linux development environment possible for nRF52?</title><link>https://devzone.nordicsemi.com/thread/34431?ContentTypeID=1</link><pubDate>Sat, 19 Sep 2015 09:49:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8bb76a31-ac56-4073-8b05-18d0fd770890</guid><dc:creator>Michael Dietz</dc:creator><description>&lt;p&gt;1.) Download the arm-none-eabi compiler for linux.
2.) Download the Java JDK (needed by eclipse).
3.) Download eclipse for c/c++ development
4.) Get eclipse working with arm-non-eabi compiler.
5.) Create a makefile based project in eclipse and select existing code, use the nordic sdk base folder.
6.) Each project has an example makefile, look at these and use them as guidance. Also example linker scripts but you shouldnt have to touch these.
7.) get a project compiling with gcc. You&amp;#39;ll have to build for the targets in the makefile.&lt;/p&gt;
&lt;p&gt;-You can download some segger tool plugins for eclipse and debug from eclipse.&lt;/p&gt;
&lt;p&gt;To flash from linux:
download latest nRF5x tools (i think these are supported for linux). now use nrfjprog to flash hex files to your board. use pynrfjprog to write scripts and automate process. use mergehex to merge hex files (if you want to).&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;This is very undetailed - I know. but it might help. there are tutorials out there for each step but youll have to do some search.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;figure a quick answer was better than nothing. maybe someone else can help more. good luck!
-Mike&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>