<?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>Problem building DFU example, SDK10</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/44251/problem-building-dfu-example-sdk10</link><description>I am currently working with an nRF51822, SDK 10 (can&amp;#39;t be changed), s110. I have a nRf51822-DK (aka pca10028) and wanted to try the d fu_dual_bank_ble_s110_pca10028 example compiling with armgcc. (nRF51_SDK_10.0.0_dc26b5e/examples/dfu/bootloader/pca10028</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 11 Mar 2019 18:57:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/44251/problem-building-dfu-example-sdk10" /><item><title>RE: Problem building DFU example, SDK10</title><link>https://devzone.nordicsemi.com/thread/175478?ContentTypeID=1</link><pubDate>Mon, 11 Mar 2019 18:57:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12610807-6d45-4dd0-819b-60f1d9222f1a</guid><dc:creator>Lisandro Dami&amp;#225;n Nicanor P&amp;#233;rez Meyer</dc:creator><description>&lt;p&gt;Solves the issue. Sorry for the long delay. Client accepted the risk of going back to old compiler...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem building DFU example, SDK10</title><link>https://devzone.nordicsemi.com/thread/174868?ContentTypeID=1</link><pubDate>Thu, 07 Mar 2019 15:52:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49429742-5e01-4318-ae64-091efde3f34e</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;But in order to find the root cause of the issue, it would be&amp;nbsp;beneficial to know if using the&amp;nbsp;&lt;span&gt;4.9 2015q1 resolves the issue. Also running make with verbose logging(make VERBOSE=1) could provide useful information during linking(e.g. to see that the correct optimization flags are being set).&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem building DFU example, SDK10</title><link>https://devzone.nordicsemi.com/thread/173711?ContentTypeID=1</link><pubDate>Fri, 01 Mar 2019 13:19:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11e836ef-fbee-47b8-ab92-0ea74f2531fa</guid><dc:creator>Lisandro Dami&amp;#225;n Nicanor P&amp;#233;rez Meyer</dc:creator><description>[quote userid="15146" url="~/f/nordic-q-a/44251/problem-building-dfu-example-sdk10/173707"]Could you try to download a fresh copy of SDK 10 from &lt;a href="https://developer.nordicsemi.com/nRF5_SDK/nRF51_SDK_v10.x.x/"&gt;here&lt;/a&gt;, and see if it builds?[/quote]
&lt;p&gt;I did before filing this case, to no avail.&lt;/p&gt;
[quote userid="15146" url="~/f/nordic-q-a/44251/problem-building-dfu-example-sdk10/173707"]If it does not build, then test with&amp;nbsp;&lt;span&gt;GCC ARM Embedded 4.9 2015q1&amp;nbsp;&lt;/span&gt;[/quote]
&lt;p&gt;I could, but it won&amp;#39;t&amp;nbsp;help me: this is part of an upgrade to an already existing development which uses the current compiler. Switching back to such an old compiler will surely mean lots of tests to already deployed devices.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem building DFU example, SDK10</title><link>https://devzone.nordicsemi.com/thread/173707?ContentTypeID=1</link><pubDate>Fri, 01 Mar 2019 13:06:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3bd467de-78f1-4bae-8412-7861d8892404</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Could you try to download a fresh copy of SDK 10 from &lt;a href="https://developer.nordicsemi.com/nRF5_SDK/nRF51_SDK_v10.x.x/"&gt;here&lt;/a&gt;, and see if it builds?&lt;/p&gt;
&lt;p&gt;If it does not build, then test with&amp;nbsp;&lt;span&gt;GCC ARM Embedded 4.9 2015q1&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem building DFU example, SDK10</title><link>https://devzone.nordicsemi.com/thread/173699?ContentTypeID=1</link><pubDate>Fri, 01 Mar 2019 12:32:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7def70c-fe61-4e41-90eb-6f74bce23f37</guid><dc:creator>Lisandro Dami&amp;#225;n Nicanor P&amp;#233;rez Meyer</dc:creator><description>[quote userid="15146" url="~/f/nordic-q-a/44251/problem-building-dfu-example-sdk10/173698"]Have you done any changes to the bootloader files, or to the&amp;nbsp;dfu_gcc_nrf51.ld file ?[/quote]
&lt;p&gt;No changes except for the compiler.&lt;/p&gt;
[quote userid="15146" url="~/f/nordic-q-a/44251/problem-building-dfu-example-sdk10/173698"]We have seen some issues with GCC version 7 when link time optimization (LTO) is enabled. Are you building the bootloader with the &amp;quot;-flto&amp;quot; option? If so, can you see if removing it helps? (See &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/34224/device-does-not-reset-after-dfu/131706#131706"&gt;this post&lt;/a&gt;)[/quote]
&lt;p&gt;No explicitly by me, might be happening if somehow that&amp;#39;s the default. I&amp;#39;ll check the post and the build log and come back with more info.&lt;/p&gt;
[quote userid="15146" url="~/f/nordic-q-a/44251/problem-building-dfu-example-sdk10/173698"]Note that&amp;nbsp;we used GCC ARM Embedded 4.9 2015q1 for testing and verification of SDK 10.[/quote]
&lt;p&gt;Noted, that&amp;#39;s why I added the relevant compiler info. The strange thing is that it&amp;#39;s the very first code that fails to build so far.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem building DFU example, SDK10</title><link>https://devzone.nordicsemi.com/thread/173698?ContentTypeID=1</link><pubDate>Fri, 01 Mar 2019 12:28:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8426c113-7400-4071-95ad-6545144ef98a</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Have you done any changes to the bootloader files, or to the&amp;nbsp;dfu_gcc_nrf51.ld file ?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;We have seen some issues with GCC version 7 when link time optimization (LTO) is enabled. Are you building the bootloader with the &amp;quot;-flto&amp;quot; option? If so, can you see if removing it helps? (See &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/34224/device-does-not-reset-after-dfu/131706#131706"&gt;this post&lt;/a&gt;)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Note that&amp;nbsp;we used GCC ARM Embedded 4.9 2015q1 for testing and verification of SDK 10.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>