<?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>nrf51 SDK 5.2.0, S120 examples and gcc</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/1931/nrf51-sdk-5-2-0-s120-examples-and-gcc</link><description>I downloaded nRF51 SDK 5.2.0 and I am studying the examples for S120. 
 I notices that there&amp;#39;s no gcc directory, thus only Keil compiler can be used. Is there a way to use gcc?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 23 Mar 2014 18:40:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/1931/nrf51-sdk-5-2-0-s120-examples-and-gcc" /><item><title>RE: nrf51 SDK 5.2.0, S120 examples and gcc</title><link>https://devzone.nordicsemi.com/thread/8282?ContentTypeID=1</link><pubDate>Sun, 23 Mar 2014 18:40:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1b7eadc-297b-4165-a4c9-f330da93e0d6</guid><dc:creator>lankong525</dc:creator><description>&lt;p&gt;lankong525  @  qq.com&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51 SDK 5.2.0, S120 examples and gcc</title><link>https://devzone.nordicsemi.com/thread/8283?ContentTypeID=1</link><pubDate>Sun, 23 Mar 2014 18:39:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7ced52e-cd68-42c4-a4d8-4eb120a8c082</guid><dc:creator>lankong525</dc:creator><description>&lt;p&gt;Do you have nRF51 SDK 5.2.O and s120 softdevice? Could you send them to my email?I also want to studying the examples for S120 .My email is lankong525@qq.com&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51 SDK 5.2.0, S120 examples and gcc</title><link>https://devzone.nordicsemi.com/thread/8284?ContentTypeID=1</link><pubDate>Wed, 19 Mar 2014 19:44:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b406c695-1ec2-4d0d-a2f1-fb1e5e643393</guid><dc:creator>mtsunstrum</dc:creator><description>&lt;p&gt;Most example projects in the SDK were not built under gcc, hence you will see there are no gcc subdirectory/makefile/....&lt;/p&gt;
&lt;p&gt;But it is very much possible. To start, you can follow the general instructions in AN-29.&lt;/p&gt;
&lt;p&gt;I am just in the process of setting up a S120-based project running under Windows/GCC/Eclipse.&lt;/p&gt;
&lt;p&gt;I am &amp;quot;porting&amp;quot; [nrf51822\Board\nrf6310\s120\experimental\ble_app_multilink_central] application to pca10001 device (nRF51822 Evaluation Kit). It runs right now, but I have not yet gotten to a step where I can connect to a peripheral. Still trying to understand the sample code better ...&lt;/p&gt;
&lt;p&gt;Few things to note:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;you will have to create your own gcc Makefile to get started. I copied another example, and edited it from there.&lt;/li&gt;
&lt;li&gt;Setup information in AN-29 is a bit light/incomplete. But if you are proficient in setting up software tool environments, you can work your way through it&lt;/li&gt;
&lt;li&gt;I recommend putting nRF51 SDK 5.2.0 into a directory path that has no spaces in it. By default, the SDK .msi installer puts spaces in it.&lt;/li&gt;
&lt;li&gt;&amp;quot;experimental&amp;quot; S120 projects have their own &amp;quot;common&amp;quot; subfolder, which I believe you are to use the files in there, versus files found in the SDK&amp;#39;s &amp;quot;sd_common&amp;quot; subfolder.&lt;/li&gt;
&lt;li&gt;with existing Makefile.common file setup, it appears to not handle being able to compile C files in a subfolder such as &amp;quot;common&amp;quot;. (Could be limitations in my own knowledge). I had to copy those &amp;quot;common&amp;quot; files and place them directly into my projects source folder (right below gcc subfolder)&lt;/li&gt;
&lt;li&gt;various things in S120 examples and SDK prevented compiling right away. (SDK function prototype errors, missing #define #include statements, ...)&lt;/li&gt;
&lt;li&gt;copy gcc_startup_nrf51.s file into your project directory, and edit for your needs. For my sample project, the build linker indicated I was out of RAM. Had to edit this file to reduce default Heap_Size.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Thx, Martin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>