<?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>Keil nrf51 SDK example won&amp;#39;t compile - 32k limit</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/7469/keil-nrf51-sdk-example-won-t-compile---32k-limit</link><description>I try to build example projects in 32k limit Keil uVision. I&amp;#39;m not able to build some of the projects (e.g. Heart Rate Service) because of the 32k limit for the compiler. 
 It seems nfr51 SDK provided libraries (softdevice etc) count towards the limit</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 19 Oct 2015 12:51:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/7469/keil-nrf51-sdk-example-won-t-compile---32k-limit" /><item><title>RE: Keil nrf51 SDK example won't compile - 32k limit</title><link>https://devzone.nordicsemi.com/thread/26596?ContentTypeID=1</link><pubDate>Mon, 19 Oct 2015 12:51:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5280606-8fc1-4108-92ef-a55c71d4f034</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;yes obviously - but the limit you were referring to in the original question, which was the compiler limit, no-longer exists. The code is limited to (total flash - softdevice start) which depends on the softdevice you&amp;#39;re using and the chip you have.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keil nrf51 SDK example won't compile - 32k limit</title><link>https://devzone.nordicsemi.com/thread/26595?ContentTypeID=1</link><pubDate>Mon, 19 Oct 2015 12:49:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18da80fe-a9a9-4c95-be2f-6bcddd74bf81</guid><dc:creator>Inspectron</dc:creator><description>&lt;p&gt;But the chip has a limit for the application&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keil nrf51 SDK example won't compile - 32k limit</title><link>https://devzone.nordicsemi.com/thread/26594?ContentTypeID=1</link><pubDate>Mon, 19 Oct 2015 12:46:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ced78a4-13e1-4fbb-88c2-a88832e9c7b3</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;There isn&amp;#39;t a limit if you have a licensed version&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keil nrf51 SDK example won't compile - 32k limit</title><link>https://devzone.nordicsemi.com/thread/26593?ContentTypeID=1</link><pubDate>Mon, 19 Oct 2015 11:43:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af8667be-656a-4853-8ec2-0434b8485550</guid><dc:creator>Inspectron</dc:creator><description>&lt;p&gt;I purchased a Keil license. What is now the code size limit for the application with a license?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keil nrf51 SDK example won't compile - 32k limit</title><link>https://devzone.nordicsemi.com/thread/26592?ContentTypeID=1</link><pubDate>Sat, 06 Jun 2015 13:06:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4cc9a586-e4d1-45ef-ac83-d68acddb877d</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;The softdevice does not count towards the limit - no. Only application code counts. The compiler has no idea at all that there even is a softdevice, it doesn&amp;#39;t link it in, doesn&amp;#39;t count in any way.&lt;/p&gt;
&lt;p&gt;So yes your options are stick below 32k, buy a Keil license or use a different compiler (like gcc from the command line or Crossworks is what I use, cost but cheaper).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>