<?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>Can&amp;#39;t get DFU to work</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77404/can-t-get-dfu-to-work</link><description>I am developing an app for the 51822 with 16KB RAM, which is supposed to integrate the buttonless DFU. 
 I have attached the whole hex of the merged application+softdevice+bootloader, and also the linker script for my app. 
 Sadly, I have lost the linker</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 13 Jul 2021 16:16:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77404/can-t-get-dfu-to-work" /><item><title>RE: Can't get DFU to work</title><link>https://devzone.nordicsemi.com/thread/319884?ContentTypeID=1</link><pubDate>Tue, 13 Jul 2021 16:16:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ba91fa6-2926-4a75-a212-aa5aac7a7d99</guid><dc:creator>Daniel Dakhno</dc:creator><description>&lt;p&gt;Indeed it turned out that my linker script was incomplete.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8156.freshener_5F00_nrf51.ld"&gt;devzone.nordicsemi.com/.../8156.freshener_5F00_nrf51.ld&lt;/a&gt;demonstrates how it&amp;nbsp;works for me when compiling using armgcc and make.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't get DFU to work</title><link>https://devzone.nordicsemi.com/thread/319880?ContentTypeID=1</link><pubDate>Tue, 13 Jul 2021 15:39:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b492d36-e8f7-4106-87ff-e72401568096</guid><dc:creator>Daniel Dakhno</dc:creator><description>&lt;p&gt;I am using the armgcc folder on the command line with &amp;quot;arm-none-eabi-gcc&amp;quot; as my compiler through &amp;quot;make build&amp;quot;.&lt;/p&gt;
&lt;p&gt;Here is what I found out:&lt;/p&gt;
&lt;p&gt;nrf_dfu_settings.c states&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/** @brief  This variable reserves a codepage for bootloader specific settings,
 *          to ensure the compiler doesn&amp;#39;t locate any code or variables at his location.
 */
#if defined (__CC_ARM )
    uint8_t  m_dfu_settings_buffer[CODE_PAGE_SIZE] __attribute__((at(BOOTLOADER_SETTINGS_ADDRESS)))
                                                   __attribute__((used));

#elif defined ( __GNUC__ )

    uint8_t m_dfu_settings_buffer[CODE_PAGE_SIZE] __attribute__ ((section(&amp;quot;.bootloaderSettings&amp;quot;)))
                                                  __attribute__((used));

#elif defined ( __ICCARM__ )

    __no_init __root uint8_t m_dfu_settings_buffer[CODE_PAGE_SIZE] @ BOOTLOADER_SETTINGS_ADDRESS;

#else

    #error Not a valid compiler/linker for m_dfu_settings placement.

#endif&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;During the compilation, &amp;quot;__GNUC__&amp;quot; seems to be set, which seems to involve&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;section&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&amp;quot;.bootloaderSettings&amp;quot;&lt;/span&gt;&lt;span&gt;), which is not configured in my linker script.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Is there any adjustment I need to make to my linker script?&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't get DFU to work</title><link>https://devzone.nordicsemi.com/thread/319844?ContentTypeID=1</link><pubDate>Tue, 13 Jul 2021 13:54:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb10aef4-1c9a-4e8a-ad7a-b208bfe9b081</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Daniel,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Did you do any modification to the bootloader ?&amp;nbsp;&lt;br /&gt;What showed in the log looks strange. The&amp;nbsp;m_dfu_settings_buffer should be located in flash at location&amp;nbsp;BOOTLOADER_SETTINGS_ADDRESS (&amp;nbsp;0x0003FC00) but in your log it&amp;#39;s located at&amp;nbsp;&lt;span&gt;0x200021e8 which is RAM.&amp;nbsp;&lt;br /&gt;This setting is configurated in nrf_dfu_settings.c . Could you let me know which compiler do you use ?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Have you tried to test updating a very small example using unmodified bootloader from the SDK ? I have a step by step guide &lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/software-development-kit/posts/getting-started-with-nordics-secure-dfu-bootloader"&gt;here&lt;/a&gt;.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>