<?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>[SDK12][PCA10040]ble_app_buttonless_dfu not resetting to bootloader</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16467/sdk12-pca10040-ble_app_buttonless_dfu-not-resetting-to-bootloader</link><description>Hi, 
 I have modified my files as mentioned here . When I upload the package, the template device show and I am able to connect. But when I subscribe to the notification and write 0x01, the device doesn&amp;#39;t reboot. 
 In bootloader log it asks to change</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 06 Feb 2017 20:35:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16467/sdk12-pca10040-ble_app_buttonless_dfu-not-resetting-to-bootloader" /><item><title>RE: [SDK12][PCA10040]ble_app_buttonless_dfu not resetting to bootloader</title><link>https://devzone.nordicsemi.com/thread/63043?ContentTypeID=1</link><pubDate>Mon, 06 Feb 2017 20:35:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fde0e789-1b36-4aec-88e8-59e83b9b98ba</guid><dc:creator>Kevin</dc:creator><description>&lt;p&gt;@bjorn-spockeli yes, I&amp;#39;m looking for the same solution discovered by Keton (original linker file was lacking .bootloaderSettings section) but for the nRF51 since the location of the bootloader settings will likely be different.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;EDIT&lt;/strong&gt;
@bjorn-spockeli I realized I could just look at the linker script of the bootloader I am using to find the corresponding locations in memory:
/** Location of bootloader setting in at the last flash page. */
BOOTLOADER_SETTINGS (rw) : ORIGIN = 0x0003FC00, LENGTH = 0x0400&lt;/p&gt;
&lt;p&gt;I also found that the BLE_UUID_DFU_SERVICE is missing from the advertised services list in main.c. Until I added this I could not write to the service to place the board in dfu mode.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [SDK12][PCA10040]ble_app_buttonless_dfu not resetting to bootloader</title><link>https://devzone.nordicsemi.com/thread/63041?ContentTypeID=1</link><pubDate>Mon, 06 Feb 2017 15:06:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:860e0883-e40d-4e82-bb92-a4e81d932e74</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;@kevinpk: A linker script that is compatible for nRF51 and SDK v12.2.0?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [SDK12][PCA10040]ble_app_buttonless_dfu not resetting to bootloader</title><link>https://devzone.nordicsemi.com/thread/63042?ContentTypeID=1</link><pubDate>Fri, 03 Feb 2017 22:31:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6418bc5e-d633-4f10-aa63-e3430556475c</guid><dc:creator>Kevin</dc:creator><description>&lt;p&gt;Does anyone have the equivalent linker file settings for an nRF51?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [SDK12][PCA10040]ble_app_buttonless_dfu not resetting to bootloader</title><link>https://devzone.nordicsemi.com/thread/63040?ContentTypeID=1</link><pubDate>Mon, 30 Jan 2017 18:54:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3784fadf-21a3-4e5f-b83b-61312bf80f1f</guid><dc:creator>Justin</dc:creator><description>&lt;p&gt;In SDK12.2 the GCC linker script for experimental_ble_app_buttonless_dfu still seems to be missing these sections.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [SDK12][PCA10040]ble_app_buttonless_dfu not resetting to bootloader</title><link>https://devzone.nordicsemi.com/thread/63039?ContentTypeID=1</link><pubDate>Thu, 22 Sep 2016 17:22:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57479931-1880-4b74-b776-48918afba2ea</guid><dc:creator>Raj</dc:creator><description>&lt;p&gt;@keton and @lalit thank you fast response. And it working when I sent 0x01 manually to control point characteristic&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [SDK12][PCA10040]ble_app_buttonless_dfu not resetting to bootloader</title><link>https://devzone.nordicsemi.com/thread/63038?ContentTypeID=1</link><pubDate>Thu, 22 Sep 2016 15:35:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d8e045d-e2e6-45db-ba66-bd9498a0e3fa</guid><dc:creator>Keton</dc:creator><description>&lt;p&gt;@Raj make sure that you edited ble_dfu service files and added write permission to dfu control point: &lt;a href="https://devzone.nordicsemi.com/question/93414/sdk12-ble_app_buttonless_dfu/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Also in case of SDK12 bootloader nRF Connect app won&amp;#39;t detect dfu service inside your application. You have to manually enable control point notifications and write 0x01.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [SDK12][PCA10040]ble_app_buttonless_dfu not resetting to bootloader</title><link>https://devzone.nordicsemi.com/thread/63037?ContentTypeID=1</link><pubDate>Thu, 22 Sep 2016 15:32:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d03772a-f7ac-4e2f-982d-aad6bb6af5b5</guid><dc:creator>Lalit Kumar</dc:creator><description>&lt;p&gt;Did you burn the bootloader first?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [SDK12][PCA10040]ble_app_buttonless_dfu not resetting to bootloader</title><link>https://devzone.nordicsemi.com/thread/63036?ContentTypeID=1</link><pubDate>Thu, 22 Sep 2016 15:31:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8e1cf5f-5adf-443d-91c0-ee55c486031a</guid><dc:creator>Raj</dc:creator><description>&lt;p&gt;Hi, I&amp;#39;m working on button_less_dfu project in sdk12 and I made the changes in linker script as mentioned above and added write property to rx characteristic in ble_dfu.c  but still it not switching to boot loader it showing error as &amp;quot;device does not have DFU enabled&amp;quot; in nRF Toolboox. I&amp;#39;m working on eclipse windows plat form can any one help me to solve these.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m also tried with @keton attached files it also giving same error.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [SDK12][PCA10040]ble_app_buttonless_dfu not resetting to bootloader</title><link>https://devzone.nordicsemi.com/thread/63035?ContentTypeID=1</link><pubDate>Mon, 19 Sep 2016 07:37:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05b34f4d-43fe-4ee0-865d-93b6c0aa21a5</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;@keton: You are correct, the bootloaders settings section is missing from the linker script. I&amp;#39;øll make sure that this is posted under the SDK v12.0.0 Known Issues thread. Thanks for finding this :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [SDK12][PCA10040]ble_app_buttonless_dfu not resetting to bootloader</title><link>https://devzone.nordicsemi.com/thread/63029?ContentTypeID=1</link><pubDate>Fri, 16 Sep 2016 15:53:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b51da651-c499-4ce3-8608-25f93657dee2</guid><dc:creator>Keton</dc:creator><description>&lt;p&gt;Just for clarification:&lt;/p&gt;
&lt;p&gt;When I was writting about linker file problems I was referring to &lt;code&gt;.fs_data&lt;/code&gt; section in SDK11, for example this: &lt;a href="https://devzone.nordicsemi.com/question/63766/peer-manager-and-gcc/?answer=64147#post-id-64147"&gt;devzone.nordicsemi.com/.../&lt;/a&gt; or this: &lt;a href="https://devzone.nordicsemi.com/question/76584/startup-data-initialisation-problems-with-gcc493-under-eclipse-environnement/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt; It&amp;#39;s relevant because it&amp;#39;s another example of messed up linker file and flash section in gcc not because it&amp;#39;s bootloader related. Till SDK12 dfu used device_manager module and bug was (is?) in peer_manager.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [SDK12][PCA10040]ble_app_buttonless_dfu not resetting to bootloader</title><link>https://devzone.nordicsemi.com/thread/63028?ContentTypeID=1</link><pubDate>Fri, 16 Sep 2016 15:44:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dea47f1d-137b-4dfc-8649-c05953dd78f6</guid><dc:creator>Lalit Kumar</dc:creator><description>&lt;p&gt;I can confirm that the changes have resolved the problem.&lt;/p&gt;
&lt;p&gt;But this seems to be an issue in the SDK12 only. I checked SDK11 hrs_dfu examples, in the linker files the bootloader region is not mentioned, and the dfu_settings are similar for SDK11 and SDK12, both expecting .bootloaderSetting as mentioned by @Keton. This issue never occured in SDK11.&lt;/p&gt;
&lt;p&gt;Also in the secure_dfu_gcc_nrf52_debug.ld, the bootloader address is stored in UICR address, so it looks like it should be recovered during when we try to enter DFU mode, but that isn&amp;#39;t happening in SDK12. For now I&amp;#39;ll go with the solution provided by @Keton, but it would be great if someone from Nordic could confirm that this is happening only in SDK12.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [SDK12][PCA10040]ble_app_buttonless_dfu not resetting to bootloader</title><link>https://devzone.nordicsemi.com/thread/63031?ContentTypeID=1</link><pubDate>Fri, 16 Sep 2016 15:44:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:261830a4-6fcc-4175-9e2e-e9268d7f8e23</guid><dc:creator>Lalit Kumar</dc:creator><description>&lt;p&gt;Thanks, the solution works :). I&amp;#39;ll dig in deep to find out why this wasn&amp;#39;t happening in previous SDKs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [SDK12][PCA10040]ble_app_buttonless_dfu not resetting to bootloader</title><link>https://devzone.nordicsemi.com/thread/63033?ContentTypeID=1</link><pubDate>Fri, 16 Sep 2016 14:40:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6851191-4d4b-4fe8-a2fa-b64037bb1678</guid><dc:creator>Keton</dc:creator><description>&lt;p&gt;and it seems we have a winner :)&lt;/p&gt;
&lt;p&gt;That&amp;#39;s how bootloader section definition looks like:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;MEMORY
{
  /** Flash start address for the bootloader. This setting will also be stored in UICR to allow the
   *  MBR to init the bootloader when starting the system. This value must correspond to
   *  BOOTLOADER_REGION_START found in dfu_types.h. The system is prevented from starting up if
   *  those values do not match. The check is performed in main.c, see
   *  APP_ERROR_CHECK_BOOL(*((uint32_t *)NRF_UICR_BOOT_START_ADDRESS) == BOOTLOADER_REGION_START);
   */
  FLASH (rx) : ORIGIN = 0x75000, LENGTH = 0x9000

  /** RAM Region for bootloader. This setting is suitable when used with s132. */
  RAM (rwx) :  ORIGIN = 0x20002C00, LENGTH = 0x5380

  /** Location of non initialized RAM. Non initialized RAM is used for exchanging bond information
   *  from application to bootloader when using buttonluss DFU OTA.
   */
  NOINIT (rwx) :  ORIGIN = 0x20007F80, LENGTH = 0x80

  /** Location of bootloader setting in flash. */
  BOOTLOADER_SETTINGS (rw) : ORIGIN = 0x0007F000, LENGTH = 0x1000

  /** Location in UICR where bootloader start address is stored. */
  UICR_BOOTLOADER (r) : ORIGIN = 0x10001014, LENGTH = 0x04

  /** Location of mbr params page in flash. */
  MBR_PARAMS_PAGE (rw) : ORIGIN = 0x0007E000, LENGTH = 0x1000

  /** Location in UICR where mbr params page address is stored. */
  UICR_MBR_PARAM_PAGE(r) : ORIGIN = 0x10001018, LENGTH = 0x04
}

SECTIONS
{
  /* Place the bootloader settings page in flash. */
  .bootloaderSettings(NOLOAD) :
  {

  } &amp;gt; BOOTLOADER_SETTINGS

  /* Write the bootloader address in UICR. */
  .uicrBootStartAddress :
  {
    KEEP(*(.uicrBootStartAddress))
  } &amp;gt; UICR_BOOTLOADER

  /* Place the mbr params page in flash. */
    .mbrParamsPage(NOLOAD) :
  {

  } &amp;gt; MBR_PARAMS_PAGE

  /* Write the bootloader address in UICR. */
  .uicrMbrParamsPageAddress :
  {
    KEEP(*(.uicrMbrParamsPageAddress))
  } &amp;gt; UICR_MBR_PARAM_PAGE

  /* No init RAM section in bootloader. Used for bond information exchange. */
  .noinit(NOLOAD) :
  {

  } &amp;gt; NOINIT
  /* other placements follow here... */
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;note the &lt;code&gt;.bootloaderSettings&lt;/code&gt; section. I&amp;#39;m no expert in gcc linker files but it seems ok. Now take a look at buttonless_dfu example .ld file:&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 = 0x1f000, LENGTH = 0x61000
  RAM (rwx) :  ORIGIN = 0x20002128, LENGTH = 0xded8
}

SECTIONS
{
  .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;note that there&amp;#39;s no &lt;code&gt;.bootloaderSettings&lt;/code&gt; here nor in &lt;code&gt;nrf5x_common.ld&lt;/code&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [SDK12][PCA10040]ble_app_buttonless_dfu not resetting to bootloader</title><link>https://devzone.nordicsemi.com/thread/63032?ContentTypeID=1</link><pubDate>Fri, 16 Sep 2016 14:36:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:202452d4-9709-4fbb-947c-0f6fda83534d</guid><dc:creator>Lalit Kumar</dc:creator><description>&lt;p&gt;I have not implemented &amp;quot;.bootloaderSettings&amp;quot;, will look at it. If this was a bug in SDK11 too, I didn&amp;#39;t have any problem in it. I have been using DFU with GCC since SDK9 and haven&amp;#39;t experienced this issue. Might be luck, but I&amp;#39;ll take a look.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [SDK12][PCA10040]ble_app_buttonless_dfu not resetting to bootloader</title><link>https://devzone.nordicsemi.com/thread/63034?ContentTypeID=1</link><pubDate>Fri, 16 Sep 2016 14:20:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c83c51c4-c461-476e-9a5f-f5e0b8dc9a7e</guid><dc:creator>Lalit Kumar</dc:creator><description>&lt;p&gt;Your files work. Seems like a problem with GCC setup then. I&amp;#39;d like to mention that in the Makefile of bootloader, in target flash I have removed --chiperase, so that the softdevice is not removed. I doubt that is the cause but thought it might be worth mentioning. I&amp;#39;ll wait for a response from nordic team.
Thanks for help :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [SDK12][PCA10040]ble_app_buttonless_dfu not resetting to bootloader</title><link>https://devzone.nordicsemi.com/thread/63030?ContentTypeID=1</link><pubDate>Fri, 16 Sep 2016 14:07:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96f4aec8-3ac6-4777-a842-4f1a7a00da43</guid><dc:creator>Keton</dc:creator><description>&lt;p&gt;Update .zip: &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0652.dfu.zip"&gt;dfu.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;bootloader &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2388.nrf52832_5F00_xxaa_5F00_s132.hex"&gt;nrf52832_xxaa_s132.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;EDIT:&lt;/p&gt;
&lt;p&gt;I took a look how bootloader setting address is defined and this seems like relevant part:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#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));
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;So for Keil you have a fixed address but for gcc there should be a custom section in linker file named &lt;code&gt;&amp;quot;.bootloaderSettings&amp;quot;&lt;/code&gt;. Question is have you implemented it? I think that it should be placed in both bootloader and application linker file.&lt;/p&gt;
&lt;p&gt;And this is very similar to fstorage bug form SDK11 where the difference between Keil and gcc was exactly the same as here - fixed flash address vs. custom section.&lt;/p&gt;
&lt;p&gt;EDIT2:&lt;/p&gt;
&lt;p&gt;Following linker file for buttonless_dfu app fixes the problem:&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 = 0x1f000, LENGTH = 0x61000
  RAM (rwx) :  ORIGIN = 0x20002128, LENGTH = 0xded8
  
  /** Location of bootloader setting in flash. */
  BOOTLOADER_SETTINGS (rw) : ORIGIN = 0x0007F000, 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;Original one was lacking &lt;code&gt;.bootloaderSettings&lt;/code&gt; section&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [SDK12][PCA10040]ble_app_buttonless_dfu not resetting to bootloader</title><link>https://devzone.nordicsemi.com/thread/63027?ContentTypeID=1</link><pubDate>Fri, 16 Sep 2016 14:05:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:552c4ea9-104c-4728-95fa-60fbb0d8e5fa</guid><dc:creator>Lalit Kumar</dc:creator><description>&lt;p&gt;Please provide bootloader .hex and update .zip. I&amp;#39;ll also check with Keil and see how it works. This might be a bug in SDK12.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [SDK12][PCA10040]ble_app_buttonless_dfu not resetting to bootloader</title><link>https://devzone.nordicsemi.com/thread/63026?ContentTypeID=1</link><pubDate>Fri, 16 Sep 2016 14:02:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1c5d265-747e-4372-8ff7-39301f247a82</guid><dc:creator>Keton</dc:creator><description>&lt;p&gt;I see on difference that may be significant - I use Keil 5.21a. I don&amp;#39;t want to spread FUD here but there was some kind of problem related to experimental_section_vars (used in fstorage module) and gcc in SDK11. It resulted in wrong memory map and overwriting parts of the program.&lt;/p&gt;
&lt;p&gt;This part of your log:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;:INFO:Erasing old settings at: 0x200021ac
:INFO:Erasing: 0x200021ac, num: 1
:INFO:Erase failed: 6
:INFO:Failed to erase bootloader settings
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;hints that something is wrong with flash access. For comparison my instance of ble_app_buttonless_dfu show following:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;:INFO:Erasing old settings at: 0x0007f000
:INFO:Erasing: 0x0007f000, num: 1
:INFO:Writing 0x00000057 words
:INFO:Writing settings...
:INFO:Obtained settings, enter dfu is 1
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Note that bootloader configuration page address is different. By default bootloader flash starts at 0x73000 and is 0xB000 (45kb) long. Address 0x0007f000 points to 508th kilobyte of flash, more or less where bootloader ends. Address 0x200021ac from your log points to ~536 &lt;strong&gt;megabyte&lt;/strong&gt; of flash which is most likely outside of nRF52 address space. So it&amp;#39;s likely that some macro that should calculate bootloader address doesn&amp;#39;t work for gcc.
For reference I can attach my bootloader .hex and update .zip so you can rule out hardware problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [SDK12][PCA10040]ble_app_buttonless_dfu not resetting to bootloader</title><link>https://devzone.nordicsemi.com/thread/63025?ContentTypeID=1</link><pubDate>Fri, 16 Sep 2016 10:01:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b655a15-5ab6-488e-a531-e86dfb611416</guid><dc:creator>Keton</dc:creator><description>&lt;p&gt;this is very puzzling as everything seems to be ok at your side.&lt;/p&gt;
&lt;p&gt;Could you please do a full chip erase, flash bootloader+softdevice and upload via ota package containing experimental_ble_app_buttonless_dfu with the only modification from stock SDK would be adding write permission to dfu control point as I&amp;#39;ve described here: &lt;a href="https://devzone.nordicsemi.com/question/93414/sdk12-ble_app_buttonless_dfu/?answer=93756#post-id-93756"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If that won&amp;#39;t work I give up as identical setup is working for me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [SDK12][PCA10040]ble_app_buttonless_dfu not resetting to bootloader</title><link>https://devzone.nordicsemi.com/thread/63024?ContentTypeID=1</link><pubDate>Fri, 16 Sep 2016 09:23:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c9747bc-aff6-42df-b882-cf4df4e03698</guid><dc:creator>Lalit Kumar</dc:creator><description>&lt;p&gt;Edited the question to include the logs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [SDK12][PCA10040]ble_app_buttonless_dfu not resetting to bootloader</title><link>https://devzone.nordicsemi.com/thread/63023?ContentTypeID=1</link><pubDate>Fri, 16 Sep 2016 08:29:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:322ca32c-e188-415e-abf0-ea21af8e0e7d</guid><dc:creator>Keton</dc:creator><description>&lt;p&gt;Could you show your log output when you manually trigger the bootloader by holding BUTTON4 and powering the board on? Also do you get &amp;quot;bootloader ready&amp;quot; state (LED2 and LED4 on) when you do so?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>