<?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>gcc compiled Experimental Buttonless DFU not working</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/17816/gcc-compiled-experimental-buttonless-dfu-not-working</link><description>Experimental Buttonless DFU worked correctly when compiled with keil, but the same example compiled in eclipse by gcc is not switching to bootloader mode. value 0x01 is updated at control point.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 18 Nov 2016 13:08:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/17816/gcc-compiled-experimental-buttonless-dfu-not-working" /><item><title>RE: gcc compiled Experimental Buttonless DFU not working</title><link>https://devzone.nordicsemi.com/thread/68665?ContentTypeID=1</link><pubDate>Fri, 18 Nov 2016 13:08:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2cdb9b5a-9910-4629-a4fc-6ac43728cfdd</guid><dc:creator>raju</dc:creator><description>&lt;p&gt;Thank you Hung Bui, it was same problem, I edited the linker file and it worked&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;/* Linker script to configure memory regions. */

SEARCH_DIR(.)
GROUP(-lgcc -lc -lnosys)

MEMORY
{
  FLASH (rx) : ORIGIN = 0x1b000, LENGTH = 0x25000
  RAM (rwx) :  ORIGIN = 0x20001fe8, LENGTH = 0x6018
    /** Location of bootloader setting in flash. */
  BOOTLOADER_SETTINGS (rw) : ORIGIN = 0x0003FC00, LENGTH = 0x1000 

}

SECTIONS
{
   /* Place the bootloader settings page in flash. */
  .bootloaderSettings(NOLOAD) :
  {

  } &amp;gt; BOOTLOADER_SETTINGS

  .fs_data :
  {
    PROVIDE(__start_fs_data = .);
    KEEP(*(.fs_data))
    PROVIDE(__stop_fs_data = .);
  } &amp;gt; RAM
} INSERT AFTER .data;

INCLUDE &amp;quot;nrf5x_common.ld&amp;quot;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Bootloader origin is specified by BOOTLOADER_SETTINGS_ADDRESS in nrf_dfu_types.h&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: gcc compiled Experimental Buttonless DFU not working</title><link>https://devzone.nordicsemi.com/thread/68663?ContentTypeID=1</link><pubDate>Fri, 18 Nov 2016 11:39:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:967b9fbc-3566-455e-b503-cd23e870e7c6</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@raju: Would you issue similar to this: &lt;a href="https://devzone.nordicsemi.com/question/95193/sdk12pca10040ble_app_buttonless_dfu-not-resetting-to-bootloader/?answer=95279#post-id-95279"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: gcc compiled Experimental Buttonless DFU not working</title><link>https://devzone.nordicsemi.com/thread/68664?ContentTypeID=1</link><pubDate>Fri, 18 Nov 2016 11:34:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:984e5b54-9878-45f3-8acf-a9846292d417</guid><dc:creator>raju</dc:creator><description>&lt;p&gt;Hi Roger, Thanks a tonne. That might be it, but I&amp;#39;m unable to check the memory size in the linker file. How does one do that? Below is my linker file:&lt;/p&gt;
&lt;p&gt;/* Linker script to configure memory regions. */&lt;/p&gt;
&lt;p&gt;SEARCH_DIR(.)
GROUP(-lgcc -lc -lnosys)&lt;/p&gt;
&lt;p&gt;MEMORY
{
FLASH (rx) : ORIGIN = 0x1b000, LENGTH = 0x25000
RAM (rwx) :  ORIGIN = 0x20001fe8, LENGTH = 0x6018
}&lt;/p&gt;
&lt;p&gt;SECTIONS
{
.fs_data :
{
PROVIDE(__start_fs_data = .);
KEEP(*(.fs_data))
PROVIDE(__stop_fs_data = .);
} &amp;gt; RAM
} INSERT AFTER .data;&lt;/p&gt;
&lt;p&gt;INCLUDE &amp;quot;nrf5x_common.ld&amp;quot;&lt;/p&gt;
&lt;p&gt;Thanks a tonne!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: gcc compiled Experimental Buttonless DFU not working</title><link>https://devzone.nordicsemi.com/thread/68662?ContentTypeID=1</link><pubDate>Thu, 17 Nov 2016 23:15:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b225ba88-ebee-4533-808c-03860e3b89b3</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;Keil and GCC have different stack handling, are you sure your linker file has the correct memory size (RAM) for the device you are using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>