<?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>Upgrading to SDK 5.2.0 breaks build</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/2232/upgrading-to-sdk-5-2-0-breaks-build</link><description>I&amp;#39;ve just tried upgrading to 5.2.0 from 5.1.0. I simply downloaded the new SDK&amp;#39;s zip file, extracted it next to the old one, and adjusted my makefile to reflect the new path. 
 I get a bunch of warnings and errors in S110/*.h because of asm operand constraints</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 01 Sep 2017 09:14:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/2232/upgrading-to-sdk-5-2-0-breaks-build" /><item><title>RE: Upgrading to SDK 5.2.0 breaks build</title><link>https://devzone.nordicsemi.com/thread/9410?ContentTypeID=1</link><pubDate>Fri, 01 Sep 2017 09:14:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84e78e41-0707-4113-b2b3-c2e2dfba0d38</guid><dc:creator>Torsten Robitzki</dc:creator><description>&lt;p&gt;It&amp;#39;s fixed in 14.0! :-)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upgrading to SDK 5.2.0 breaks build</title><link>https://devzone.nordicsemi.com/thread/9409?ContentTypeID=1</link><pubDate>Wed, 01 Feb 2017 20:23:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f39c7bb-a477-4aa6-96dc-eaede1e2c50f</guid><dc:creator>Torsten Robitzki</dc:creator><description>&lt;p&gt;And the issue still persists in 12.2 :-)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upgrading to SDK 5.2.0 breaks build</title><link>https://devzone.nordicsemi.com/thread/9408?ContentTypeID=1</link><pubDate>Wed, 16 Mar 2016 08:48:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8868ca10-90b3-4b05-861c-d3054716ce78</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi David, Yes I noticed it at the time of release. RK also created a support ticket for it. This has been added to the list &lt;a href="https://devzone.nordicsemi.com/question/71366/what-are-sdk-1100-known-issues/"&gt;here&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upgrading to SDK 5.2.0 breaks build</title><link>https://devzone.nordicsemi.com/thread/9407?ContentTypeID=1</link><pubDate>Wed, 16 Mar 2016 00:13:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48604abc-5b83-424a-b040-926d9c831008</guid><dc:creator>David Robins</dc:creator><description>&lt;p&gt;Nope. In S132 2.0.0 (no alpha) there is an added GCC_CAST_CPP - but it casts to uin8_t when it should be uint16_t. This produces the following error (GCC 5.2 2015q4 Tools for ARM Embedded, Windows host):&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;C:\Nordic\s132_nrf52_2.0.0\s132_nrf52_2.0.0_API\include/ble_gap.h:1419:1: note:
in expansion of macro &amp;#39;SVCALL&amp;#39;
 SVCALL(SD_BLE_GAP_AUTH_KEY_REPLY, uint32_t, sd_ble_gap_auth_key_reply(uint16_t
conn_handle, uint8_t key_type, uint8_t const *p_key));
 ^
C:\Nordic\s132_nrf52_2.0.0\s132_nrf52_2.0.0_API\include/nrf_svc.h:69:6: error: impossible constraint in &amp;#39;asm&amp;#39;
     );                                                  
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Replacing uint8_t with uint16_t in nrf_svc.h so the line looks like&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define GCC_CAST_CPP (uint16_t)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;fixes the problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upgrading to SDK 5.2.0 breaks build</title><link>https://devzone.nordicsemi.com/thread/9406?ContentTypeID=1</link><pubDate>Mon, 25 Jan 2016 10:10:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aee39d5d-f5b5-4a3b-aa6e-b1e95a83856f</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;This has been fixed and released in s132_nrf52_2.0.0-8.alpha. On S130, it is fixed but will be released in next release.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upgrading to SDK 5.2.0 breaks build</title><link>https://devzone.nordicsemi.com/thread/9405?ContentTypeID=1</link><pubDate>Sun, 01 Feb 2015 16:18:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5eb7ab10-c07d-442e-9fe3-c79609802520</guid><dc:creator>Jim Credland</dc:creator><description>&lt;p&gt;Any chance of a fix?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upgrading to SDK 5.2.0 breaks build</title><link>https://devzone.nordicsemi.com/thread/9404?ContentTypeID=1</link><pubDate>Tue, 30 Sep 2014 20:07:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b440fa9c-ef6b-4464-8fa5-708f637f7e6e</guid><dc:creator>David Robins</dc:creator><description>&lt;p&gt;This isn&amp;#39;t fixed in 6.1.0 - any ETA on a fix?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upgrading to SDK 5.2.0 breaks build</title><link>https://devzone.nordicsemi.com/thread/9403?ContentTypeID=1</link><pubDate>Thu, 07 Aug 2014 20:57:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5fb5d10-2787-4cd1-b7e8-b66d868886de</guid><dc:creator>Torsten Robitzki</dc:creator><description>&lt;p&gt;I just added a macro definition with your fix and as the SDK header checks whether the macro is already defined or not, this works nice, without the need to change the SDK sources. I&amp;#39;m using CMake too (first project) and currently, the cmake script is looking for a SDK &lt;code&gt;file(GLOB NRF51_SDK_PATH ../nrf51_sdk_${NRF51_SDK_VERSION}*)&lt;/code&gt;. NRF51_SDK_VERSION is defined as v6_0_0 and I could use this to check for the existens of the bug.
`&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upgrading to SDK 5.2.0 breaks build</title><link>https://devzone.nordicsemi.com/thread/9402?ContentTypeID=1</link><pubDate>Thu, 07 Aug 2014 20:10:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:627cea8b-335f-4375-bfcc-992ce0d05ac1</guid><dc:creator>Anne van Rossum</dc:creator><description>&lt;p&gt;But would you adjust your code accordingly?&lt;/p&gt;
&lt;p&gt;Isn&amp;#39;t it easier to allow the user to tell before you start compiling which SDK he/she wants to use? I like cmake, so I use a cmake config file for that in my code: &lt;a href="https://github.com/mrquincle/bluenet/blob/master/CMakeBuild.config.default"&gt;github.com/.../CMakeBuild.config.default&lt;/a&gt;, where I introduce a NORDIC_SDK_VERSION variable which I also feed into the code with a -D flag. Maybe it is of use to you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upgrading to SDK 5.2.0 breaks build</title><link>https://devzone.nordicsemi.com/thread/9401?ContentTypeID=1</link><pubDate>Thu, 07 Aug 2014 19:38:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e95a0ca5-5e79-4b36-8183-0bb9fe00b85a</guid><dc:creator>Torsten Robitzki</dc:creator><description>&lt;p&gt;And the problem seems to persist in version 6. Does someone of you know some kind of macro to inquire the SDK version, so one would be able to provide a workaround for version where this bug is still present?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upgrading to SDK 5.2.0 breaks build</title><link>https://devzone.nordicsemi.com/thread/9400?ContentTypeID=1</link><pubDate>Tue, 22 Jul 2014 16:31:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eda4f0ef-2b19-4d5b-9c55-bf990affb87b</guid><dc:creator>Anne van Rossum</dc:creator><description>&lt;p&gt;There is a bug in the SDK.&lt;/p&gt;
&lt;p&gt;Change:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;quot;bx r14&amp;quot; : : &amp;quot;I&amp;quot; (number) : &amp;quot;r0&amp;quot; \
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Into:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;quot;bx r14&amp;quot; : : &amp;quot;I&amp;quot; ((uint16_t)number) : &amp;quot;r0&amp;quot; \
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>