<?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>How to set up GCC and Eclipse for development on the beacon kit</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4980/how-to-set-up-gcc-and-eclipse-for-development-on-the-beacon-kit</link><description>Hi, 
 I am looking to select a bluetooth chip for a new project, one of the criteria is access to free development tools.
I see that in the SDK GCC is supported.
But: how do I set this up? Is there some guidelines or user manual?
And what is this</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 05 Jan 2015 19:56:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4980/how-to-set-up-gcc-and-eclipse-for-development-on-the-beacon-kit" /><item><title>RE: How to set up GCC and Eclipse for development on the beacon kit</title><link>https://devzone.nordicsemi.com/thread/17557?ContentTypeID=1</link><pubDate>Mon, 05 Jan 2015 19:56:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7952356e-0128-4371-b62a-726e370efbda</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;Great hope you have fun with it.  All the BLE example I put on comes with an iOS counterpart to allow you to see 1 to 1 relationship. Enjoy.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set up GCC and Eclipse for development on the beacon kit</title><link>https://devzone.nordicsemi.com/thread/17556?ContentTypeID=1</link><pubDate>Mon, 05 Jan 2015 19:44:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:317eaa83-6d8b-4b47-b341-82b7ed622df0</guid><dc:creator>wim</dc:creator><description>&lt;p&gt;I think I got all the paths right this time - changed them in C/C++ general settings, and made sure that I did not tick the &amp;#39;workspace path&amp;#39; option, but use the workspace_loc variable; in that way, also the set paths in the toolchain include settings are ok&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set up GCC and Eclipse for development on the beacon kit</title><link>https://devzone.nordicsemi.com/thread/17555?ContentTypeID=1</link><pubDate>Mon, 05 Jan 2015 18:34:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac82b5a6-5017-4d3c-bcfd-11831610e7de</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;All the ble project are up to date.  Blinky is a stand alone app that does not use BLE.  I haven&amp;#39;t update it yet.  Except DFU project which is still SDK6.  I got the DFU SDK7 compiled but there is an issue with iOS nRFTool.  I haven&amp;#39;t found the issue yet.  Once I got it working, I&amp;#39;ll update that as well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set up GCC and Eclipse for development on the beacon kit</title><link>https://devzone.nordicsemi.com/thread/17554?ContentTypeID=1</link><pubDate>Mon, 05 Jan 2015 10:28:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47235783-1c9c-43a2-9aab-996f778f48c3</guid><dc:creator>wim</dc:creator><description>&lt;p&gt;I re-entered the paths in the project properties&amp;gt;C/C++ General&amp;gt;Paths and Symbols; all is fine now.
Another question: did you push the changes for the SDK7 to the Git hub? For example, the Blinky project, it still points to the old directories of SDK6 I think.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set up GCC and Eclipse for development on the beacon kit</title><link>https://devzone.nordicsemi.com/thread/17553?ContentTypeID=1</link><pubDate>Sun, 04 Jan 2015 19:49:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a99eb8a7-e7f2-4cb1-a758-31265e434ad9</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;I develop entirely on MAC.  by default Eclipse put the &amp;quot;}&amp;quot; at the end like this &amp;quot;${workspace_loc:/../../CMSIS/CMSIS/include}&amp;quot;.  That causes a problem some time, especially after an import.  I had to manually change to &amp;quot;${workspace_loc:}/../../CMSIS/CMSIS/include&amp;quot; where the &amp;quot;{}&amp;quot; should enclose the macro only.  There may be some path that still have the default. Try a full path on those you have issues with.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set up GCC and Eclipse for development on the beacon kit</title><link>https://devzone.nordicsemi.com/thread/17552?ContentTypeID=1</link><pubDate>Sun, 04 Jan 2015 10:16:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f9aca2f-e3da-445d-8e74-f89d90ad9bf0</guid><dc:creator>wim</dc:creator><description>&lt;p&gt;I think I might have confused you: I did set the workspace in Eclipse as you discussed, so to  the nRF51 directory. What I meant was, where should I put the source tree.
I tried now to start completely from scratch, so:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;check out the repository from Github&lt;/li&gt;
&lt;li&gt;copy the downloaded CMSIS and nRF SDK to the position in the source tree as you suggested&lt;/li&gt;
&lt;li&gt;select the nRF51 directory as workspace directory&lt;/li&gt;
&lt;li&gt;imported existing projects.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;On each of the projects, a warning is given on the includes directories; however, when I try to compile the CMSIS library, it does compile it properly, so the makefile does find the paths, and they are expanded correctly. So the problem is in Eclipse really. I read some things about the colon (:) working fine on Windows, but not in Linux.
On what system did you develop this? I was guessing also on Mac, as you seemed quite knowledgable about this?
I also read something about paths which are outside the tree of the workspace - the CMSIS directory is like that - that that might give problems. Any ideas?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set up GCC and Eclipse for development on the beacon kit</title><link>https://devzone.nordicsemi.com/thread/17551?ContentTypeID=1</link><pubDate>Sun, 04 Jan 2015 10:13:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d41f3e81-11d6-4a0d-bcb4-f96b260f67fb</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;The path used is relative to the workspace location. &amp;quot;${workspace_loc:}/../../CMSIS/CMSIS/include&amp;quot;.  It is based on the workspace being in the source tree.  I have indicated where the workspace should be.  Since your workspace is at different location you&amp;#39;ll need to adjust the path based on your location.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set up GCC and Eclipse for development on the beacon kit</title><link>https://devzone.nordicsemi.com/thread/17550?ContentTypeID=1</link><pubDate>Sun, 04 Jan 2015 08:42:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0cb96ac8-bba4-4a2e-9769-0528a36e616a</guid><dc:creator>wim</dc:creator><description>&lt;p&gt;I did download the CMSIS library, and did put them in the source tree, as discussed on your blog. But there seems to be something wrong with the expansion of the path using the workspace_loc path variable.
Is it important where  I put the workspace? I put it in a sub directory of my Documents folder on Mac - is this a path which might conflict?
I haven&amp;#39;t tried the precompiled libs yet, but I agree that it would be best to have the compilation ok. My guess is that the other projects will also not compile because of the same path issues. I will give that a try and get back.
Anyway, many thanks for the quick reply. It&amp;#39;s very helpful!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set up GCC and Eclipse for development on the beacon kit</title><link>https://devzone.nordicsemi.com/thread/17549?ContentTypeID=1</link><pubDate>Sat, 03 Jan 2015 22:44:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7631a183-2d37-473a-b193-c2aadf731e96</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;The CMSIS Path, because you have not downloaded the CMSIS library from ARM and put in the source tree.      There is a link to download the CMSIS on the EHAL page.  It is general for all ARM development.  The missing nrf51 path is because of the new SDK 7.  All the source tree of the new SDK have changed.  The projects are updated with SDK7.  You&amp;#39;ll need to change the path to location where you put the SDK.  Importing existing project is fine.  The SDK7 is very messy with include files all over the places.  The folder nrf51422 and nrf51822 are the old SDK6.&lt;/p&gt;
&lt;p&gt;I did put the precompiled CMSIS &amp;amp; EHAL lib in github.  For quick start, you don&amp;#39;t need to compile them.  For long term, it may be best to get them compiled on your system.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set up GCC and Eclipse for development on the beacon kit</title><link>https://devzone.nordicsemi.com/thread/17548?ContentTypeID=1</link><pubDate>Sat, 03 Jan 2015 20:23:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4d08bc3-2a62-40b2-b34f-746ff8fec1a4</guid><dc:creator>wim</dc:creator><description>&lt;p&gt;Hi Nguyen,
Your blog has given me a lot of insight so far. Have installed all the plugins, tool chain, and did all the recommended settings as from the GNU ARM Eclipse website.&lt;/p&gt;
&lt;p&gt;I now try to  build the EHAL and CMSIS library projects first.
When trying to build the CMSIS project, I get 2 warnins on include paths that are not found, although they are there, and I put them in the right place - as the nrf51_sdk directory name is not the original name but I had to rename it, could that be the reason?
Following paths were not found:
Invalid project path: Include path not found (CMSIS/CMSIS/include)
Invalid project path: Include path not found (nrf51_sdk/components/drivers_nrf/hal)&lt;/p&gt;
&lt;p&gt;Or is this error due to the way I imported the project?
I have done the import by doing Import&amp;gt;General&amp;gt;Existing projects into workspace&amp;gt; then chose the indicated workspace directory as root directory, and selected all the projects it found. Was that the right way ?&lt;/p&gt;
&lt;p&gt;But apparently the library was built ok, only warnings.&lt;/p&gt;
&lt;p&gt;However, when building the EHAL project, I do get an error on a file not found: nrf51.h. This file resides in the nrf51_sdk/components/drivers_nrf/hal directory, so here, the warning causes an error.&lt;/p&gt;
&lt;p&gt;Furthermore, I do not have the sub directories -- nrf51422 and -- nrf51822 in the SDK I downloaded from then nordic website (SDK version 7). Do I need them?
And then, I am not sure how I can port your projects to the Beacon kit hardware just yet, can you point me where to start?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set up GCC and Eclipse for development on the beacon kit</title><link>https://devzone.nordicsemi.com/thread/17547?ContentTypeID=1</link><pubDate>Fri, 02 Jan 2015 17:57:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36e6d568-bb55-44df-a035-8c7dfae11522</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;This blog post here is full Eclipse GCC on OS X.  Contains example project created with Eclipse also include iOS source code for each examples.  Current Eclipse is Mars.  Luna is not recommended.
&lt;a href="http://embeddedsoftdev.blogspot.ca/p/ehal-nrf51.html"&gt;http://embeddedsoftdev.blogspot.ca/p/ehal-nrf51.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set up GCC and Eclipse for development on the beacon kit</title><link>https://devzone.nordicsemi.com/thread/17546?ContentTypeID=1</link><pubDate>Fri, 02 Jan 2015 14:57:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5bd6439a-42ba-49a9-b8bb-f122fe2de3bb</guid><dc:creator>wim</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Ok, will check this out. One question already though: can I use this on a MAC?
I found this blog: &lt;a href="https://devzone.nordicsemi.com/blogs/22/getting-started-with-nrf51-development-on-mac-os-x/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;But there I need to download also the S110-SD-v7, but that is not unlocked using the serial number of the beacon kit. So I need to buy an additional RF51 DK for that? (already bought 3 beacon kits...). Or is they S110-SD-v7 nothing but the hex file which I can also find in the beacon kit example software directories?&lt;/p&gt;
&lt;p&gt;I want to use the bluetooth  beacon feature, but also would like to microcontroller to talk to another peripheral device via SPI, the beacon kit seemed to be well equipped for that, to build my proof of concept. And would like also to use an external interrupt to count pulses.
So: which example do I start from?&lt;/p&gt;
&lt;p&gt;I did this already on a bt chip from TI, so, I have my application firmware available already, I would just like to port it to this platform now, as I believe the nRF chip will be a more future proof choice.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set up GCC and Eclipse for development on the beacon kit</title><link>https://devzone.nordicsemi.com/thread/17545?ContentTypeID=1</link><pubDate>Fri, 02 Jan 2015 14:45:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74ec026a-bb07-4c68-b41e-9f663963aa15</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi, you may want to have a look at this blog post &lt;a href="https://devzone.nordicsemi.com/blogs/18/development-with-eclipse-and-gcc/"&gt;here&lt;/a&gt; for development with GCC and Eclipse. I used Eclipse Luna in this example, but recommend using Kepler instead as there&amp;#39;s currently a minor bug in Luna CDT.&lt;/p&gt;
&lt;p&gt;Bug description:
&lt;em&gt;&amp;quot;The debugger buttons are disabled
If you upgraded to Eclipse Luna 4.4, and you notice that the debugger buttons are not available (in fact the buttons are still there, but are greyed/disabled), you are facing a Luna CDT bug.
The workaround is to quit Eclipse and to retry.&amp;quot;&lt;/em&gt;  &lt;a href="http://gnuarmeclipse.livius.net/blog/known-problems/"&gt;link&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s a post on getting started with bluetooth development: &lt;a href="https://devzone.nordicsemi.com/blogs/39/nrf51822nrf51422-getting-started-and-documentation/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>