<?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>SDK 14 buttonless dfu not building with gcc</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29095/sdk-14-buttonless-dfu-not-building-with-gcc</link><description>I&amp;#39;m using SDK 14 and trying to build the ble_app_buttonless_dfu example. I&amp;#39;m using Linux environment, so gcc for building. When I try to build the example I&amp;#39;m getting an error as below, 
 Compiling file: ble_dfu_unbonded.c
/tmp/cchirqL7.s: Assembler</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 15 Jan 2020 16:34:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29095/sdk-14-buttonless-dfu-not-building-with-gcc" /><item><title>RE: SDK 14 buttonless dfu not building with gcc</title><link>https://devzone.nordicsemi.com/thread/229266?ContentTypeID=1</link><pubDate>Wed, 15 Jan 2020 16:34:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c32ea237-5953-4642-bb46-2320ddee64c5</guid><dc:creator>Ingo</dc:creator><description>&lt;p&gt;The following solution works for us with GCC 5.4.3&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&lt;pre class="ui-code" data-mode="text"&gt;__ASM __volatile                                            \
(                                                           \
    &amp;quot;  movs.w r12,  %0    \n&amp;quot;                               \
    &amp;quot;  svc %1             \n&amp;quot;                               \
    &amp;quot;  bx lr              \n&amp;quot;                               \
    &amp;quot;  .ltorg&amp;quot;                                              \
    : /* output */                                          \
    : /* input */                                           \
        &amp;quot;I&amp;quot;(svci_num),                                      \
        &amp;quot;I&amp;quot;(GCC_CAST_CPP NRF_SVCI_SVC_NUM)                  \
    : /* clobbers */                                        \
        &amp;quot;r12&amp;quot;                                               \
);&lt;/pre&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 14 buttonless dfu not building with gcc</title><link>https://devzone.nordicsemi.com/thread/135413?ContentTypeID=1</link><pubDate>Fri, 08 Jun 2018 20:43:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5112528d-3b63-48ad-a685-9e1dadab085e</guid><dc:creator>parco</dc:creator><description>&lt;p&gt;I was seeing this on 4.9.3 as well, had to upgrade all the way using this:&amp;nbsp;&lt;a href="https://launchpad.net/~team-gcc-arm-embedded/+archive/ubuntu/ppa"&gt;launchpad.net/.../ppa&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 14 buttonless dfu not building with gcc</title><link>https://devzone.nordicsemi.com/thread/115435?ContentTypeID=1</link><pubDate>Thu, 18 Jan 2018 09:56:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b4f24d0-bd06-407d-a847-dac83b167f28</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;I am afraid that I am unfamiliar with the Embitz IDE. My recommendation would be to go for Segger Embedded Studio which is fully supported in our SDK with lots of example. You get afree perpetual license for SES for development on Nordic ICs. In addition to that i would point out that you also get the following features:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;SES is cross-platform, i.e. runson Windows, Linux and macOS.&lt;/li&gt;
&lt;li&gt;SES allows you to view logging information sent using Seggers RTT( one of the two logging backends we support in our SDK) directly in the SES IDE, rather than having to open a RTT terminal window.&lt;/li&gt;
&lt;li&gt;SES&amp;#39;s Integrated Debugger with advanced debug information windows and direct J-Link integration.&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 14 buttonless dfu not building with gcc</title><link>https://devzone.nordicsemi.com/thread/115434?ContentTypeID=1</link><pubDate>Wed, 17 Jan 2018 21:30:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4321655d-b37f-4161-9ad5-a848ada04ae1</guid><dc:creator>gordie</dc:creator><description>&lt;p&gt;Any luck figuring out how to get it working in Embitz?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 14 buttonless dfu not building with gcc</title><link>https://devzone.nordicsemi.com/thread/115439?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2018 10:19:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5cab25e-1f13-491b-87d4-1ddc59760e77</guid><dc:creator>gordie</dc:creator><description>&lt;p&gt;Thanks for the fast reply. I am using Embitz IDE V1.00. see here &lt;a href="https://www.embitz.org/"&gt;https://www.embitz.org/&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 14 buttonless dfu not building with gcc</title><link>https://devzone.nordicsemi.com/thread/115438?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2018 08:46:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:379d0edb-b729-4d81-b55b-ae8bf0eebd09</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Which IDE are you using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 14 buttonless dfu not building with gcc</title><link>https://devzone.nordicsemi.com/thread/115437?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2018 08:09:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a1af533-85b0-4bed-a9ff-a5515addcaea</guid><dc:creator>gordie</dc:creator><description>&lt;p&gt;Thanks, one more question, once I have downloaded and installed it -  how do i select it from within my IDE? is it just something you select in project options?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 14 buttonless dfu not building with gcc</title><link>https://devzone.nordicsemi.com/thread/115436?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2018 07:14:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0d05d21-5e4d-46b4-917d-da5aa94fd8a3</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;You can find the v4.9.3 &lt;a href="https://launchpad.net/gcc-arm-embedded/4.9/4.9-2015-q3-update"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 14 buttonless dfu not building with gcc</title><link>https://devzone.nordicsemi.com/thread/115433?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2018 03:52:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d993c361-ee4f-42fd-9906-1216aa954d11</guid><dc:creator>gordie</dc:creator><description>&lt;p&gt;Hi Guys,
Was wondering if anyone here could help me out. I googled &amp;quot;gcc-arm-none-eabi-7-2017-q4-major-win32&amp;quot; and downloaded the installer and installed it. Still does not compile, am I missing something - like maybe a setting?(I am using EmBitz V1.00 IDE).
Lastly, How do I downgrade to GCC v4.9.3?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 14 buttonless dfu not building with gcc</title><link>https://devzone.nordicsemi.com/thread/115430?ContentTypeID=1</link><pubDate>Thu, 07 Dec 2017 19:21:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb9dbf3d-e958-48ce-a112-096621f175ba</guid><dc:creator>Andy Caruso</dc:creator><description>&lt;p&gt;Is there a version of the SDK planned that will work with gcc 5.3.1 or later? We had to upgrade our codebase for a different reason and are now unable to use this DFU application.&lt;/p&gt;
&lt;p&gt;If there&amp;#39;s no update planned that will upgrade the supported gcc version, are there any other ideas for a solution (since the one above seems to have issues)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 14 buttonless dfu not building with gcc</title><link>https://devzone.nordicsemi.com/thread/115429?ContentTypeID=1</link><pubDate>Thu, 07 Dec 2017 07:57:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f039a120-7cdd-48c2-aa09-64d71e592a79</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;@oamidi: Thanks for letting us know. The SDK is production tested using GCC v4.9.3, so that is the recommended solution.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 14 buttonless dfu not building with gcc</title><link>https://devzone.nordicsemi.com/thread/115428?ContentTypeID=1</link><pubDate>Wed, 06 Dec 2017 16:42:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5d330ab-2ebd-4886-83b2-271a30428d6d</guid><dc:creator>Omead</dc:creator><description>&lt;p&gt;Doing this, however, breaks the buttonless DFU application template&amp;#39;s operation. Downgrading gcc to 4.9 seems to produce the correct code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 14 buttonless dfu not building with gcc</title><link>https://devzone.nordicsemi.com/thread/115427?ContentTypeID=1</link><pubDate>Fri, 22 Sep 2017 13:29:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a143abc-6024-465c-91e0-f4ffb76a1919</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;The compiler is complaining about the following function in &lt;code&gt;nrf_svci.h&lt;/code&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;   #define SVCI_DECL(svci_num, return_type, function_name, ...)        \
        _Pragma(&amp;quot;GCC diagnostic push&amp;quot;)                                  \
        _Pragma(&amp;quot;GCC diagnostic ignored \&amp;quot;-Wreturn-type\&amp;quot;&amp;quot;)             \
        __attribute__((naked, unused))                                  \
        static return_type svci_ ## function_name(__VA_ARGS__)          \
        {                                                               \
            /* Do the SuperVisor call by using svc instruction with     \
               R12 containing the SVCI number */                        \
            __ASM __volatile                                            \
            (                                                           \
                &amp;quot;  ldr.w r12, =%0     \n&amp;quot;                               \
                &amp;quot;  svc %1             \n&amp;quot;                               \
                &amp;quot;  bx lr              \n&amp;quot;                               \
                &amp;quot;  .ltorg&amp;quot;                                              \
                : /* output */                                          \
                : /* input */                                           \
                    &amp;quot;X&amp;quot;(svci_num),                                      \
                    &amp;quot;I&amp;quot;(GCC_CAST_CPP NRF_SVCI_SVC_NUM)                  \
                : /* clobbers */                                        \
                    &amp;quot;r12&amp;quot;                                               \
            );                                                          \
        }                                                               \
        _Pragma(&amp;quot;GCC diagnostic pop&amp;quot;)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Specifically, its the optional instruction width specifier .w, which forces the LDR to generate a 32-bit instruction in Thumb-2 code, according to &lt;a href="https://stackoverflow.com/questions/9800526/difference-between-ldr-and-ldr-w"&gt;this&lt;/a&gt; Stack Overflow post.   Removing this optional specifier, i.e. leaving it t the compiler to decide the instruction width seems to do the trick ,i.e.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;quot;  ldr r12, =%0     \n&amp;quot;                               \
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 14 buttonless dfu not building with gcc</title><link>https://devzone.nordicsemi.com/thread/115431?ContentTypeID=1</link><pubDate>Thu, 21 Sep 2017 19:41:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a23742c5-e347-4d86-9465-d9e580043cfd</guid><dc:creator>idelsink</dc:creator><description>&lt;p&gt;Well the issue is still not solved, because just simply downgrading it is not a solve for any problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 14 buttonless dfu not building with gcc</title><link>https://devzone.nordicsemi.com/thread/115426?ContentTypeID=1</link><pubDate>Thu, 21 Sep 2017 09:26:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de2a2274-e69d-4d65-8913-7856f84e538c</guid><dc:creator>jithin m das</dc:creator><description>&lt;p&gt;Downgrading arm gcc from 5.4.1 to 4.9.3 solved the issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>