<?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>DFU reconnect problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21522/dfu-reconnect-problem</link><description>Hi! 
 I am having trouble with DFU. When I try to send new application via NrfConnect, device goes to bootloader, but file transfer is not starting. Only when I reconnect and try again, while device is in bootloader, transfer goes through.
DFU code</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 22 Apr 2017 08:51:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21522/dfu-reconnect-problem" /><item><title>RE: DFU reconnect problem</title><link>https://devzone.nordicsemi.com/thread/84499?ContentTypeID=1</link><pubDate>Sat, 22 Apr 2017 08:51:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5aa640d7-1c5f-483f-8724-3f3d7ea27f4a</guid><dc:creator>Sejl</dc:creator><description>&lt;p&gt;I found it. Problem was in bootloader. File dfu_ble_svc.c has to be configured in Keil in following manner:
Right click on file, select &amp;quot;options for dfu_ble_svc.c&amp;quot; and set IRAM2 for Zero Initialized Data.&lt;/p&gt;
&lt;p&gt;Hopefully, someone will find this helpful :)&lt;/p&gt;
&lt;p&gt;Bjorn, thank you again for patience! Have a beautiful weekend!&lt;/p&gt;
&lt;p&gt;Best regards,
Sejl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU reconnect problem</title><link>https://devzone.nordicsemi.com/thread/84488?ContentTypeID=1</link><pubDate>Fri, 21 Apr 2017 16:19:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c30d3bb1-4ed4-410d-b440-d634e9010416</guid><dc:creator>Sejl</dc:creator><description>&lt;p&gt;Ok. I have tried, but with no success. I guess problem is somewhere in code.&lt;/p&gt;
&lt;p&gt;I am using UICR_ADDR_0x84 and 0x88 for holding info about device serial number; do you thing this could mess things with DFU?&lt;/p&gt;
&lt;p&gt;Another thing is - DFU procedure correctly starts bootloader, and bootloader correctly carries on DFU update. Only thing missing is detection of active bootloader from the nrfConnect side. Somwhere I have read that this is maybe due to different address of bluetooth device while in bootloader. How can I send info to DFU to expect different device address?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU reconnect problem</title><link>https://devzone.nordicsemi.com/thread/84494?ContentTypeID=1</link><pubDate>Fri, 21 Apr 2017 15:53:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b008cfa4-c7f8-43b2-9ee4-b0268a899d34</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Yes, those values look correct.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU reconnect problem</title><link>https://devzone.nordicsemi.com/thread/84491?ContentTypeID=1</link><pubDate>Fri, 21 Apr 2017 15:13:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:204d9793-a61d-463c-ab3d-06a1c43aeb20</guid><dc:creator>Sejl</dc:creator><description>&lt;p&gt;Ok, just to confirm memory settings:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Bootloader:
IROM1: 0x3C000/0x3C00
IRAM1: 0x20002C00/0x1380
IRAM2: 0x20003F80/0x80 (noinit)

Application:
IRAM1: 0x1B000/0x21000
IROM1: 0x20002800/0x1800
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Is this correct?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU reconnect problem</title><link>https://devzone.nordicsemi.com/thread/84492?ContentTypeID=1</link><pubDate>Fri, 21 Apr 2017 14:54:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92aac2c3-9836-43ec-8279-d2eab4231473</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Sure, if you&amp;#39;re using SDK v11.0.0, then you&amp;#39;ll have to set the following memory settings&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/legacy_5F00_bootloader_5F00_qfaa_5F00_settings.PNG" alt="image description" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU reconnect problem</title><link>https://devzone.nordicsemi.com/thread/84493?ContentTypeID=1</link><pubDate>Fri, 21 Apr 2017 13:51:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d4b8a3b-e565-4a3c-a391-39533c541f4f</guid><dc:creator>Sejl</dc:creator><description>&lt;p&gt;I have tried with SDK 11.0.0 and S130 v2.0.0. Same thing.
Can we try to debug this using SDK 11? I don&amp;#39;t need secure DFU, and all code is already written for S130 v2.0.0.&lt;/p&gt;
&lt;p&gt;Btw, thank you for helping me :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU reconnect problem</title><link>https://devzone.nordicsemi.com/thread/84490?ContentTypeID=1</link><pubDate>Fri, 21 Apr 2017 13:36:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:577d4bb7-a3c9-43c8-99f8-b24db2e1ba6f</guid><dc:creator>Sejl</dc:creator><description>&lt;p&gt;Well, I am using softdevice s130 v2.0.1 from SDK v12.2.0, everything else is from SDK v11.0.0. Of course, I have updated softdevice headers and source files.
I will try to go back to S130 from SDK v11 just to test if it is working with older version.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU reconnect problem</title><link>https://devzone.nordicsemi.com/thread/84497?ContentTypeID=1</link><pubDate>Fri, 21 Apr 2017 12:34:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3dc28388-f339-400e-a66a-f263a4a21696</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Are you sure that you&amp;#39;re using the bootloader from SDK v12.2.0? The Secure bootloader does not have any IRAM2 section. I have attached a screenshot of the correct settings below
&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/secure_5F00_bootloader_5F00_qfaa_5F00_settings.PNG" alt="image description" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU reconnect problem</title><link>https://devzone.nordicsemi.com/thread/84498?ContentTypeID=1</link><pubDate>Fri, 21 Apr 2017 12:20:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0496a330-d329-4275-a4c2-c8a8e44eb4e4</guid><dc:creator>Sejl</dc:creator><description>&lt;p&gt;Yes, I am using DFU button.
IRAM/IROM settings are as follows:&lt;/p&gt;
&lt;p&gt;Application:
IROM1: 0x1B000/0x24000
IRAM1: 0x20002800/0x1800 (noinit deselected)&lt;/p&gt;
&lt;p&gt;Bootloader:
IROM1: 0x3C000/0X4000
IRAM1: 0x20002800/0x1780 (noinit deselected)
IRAM2: 0x20003F80/0x80 (noinit selected)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU reconnect problem</title><link>https://devzone.nordicsemi.com/thread/84496?ContentTypeID=1</link><pubDate>Fri, 21 Apr 2017 12:14:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0061ad8e-6cfd-4c85-a43e-657ebbf63b11</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;You&amp;#39;re using the DFU button in the upper right corner to perform DFU right? You not writing to the control point characteristic manually. Furthermore, since you&amp;#39;re using the nRF51822 QFAA, have you adjusted the IRAM settings so that they correspond to 16kB of RAM and not 32kB? (The SDK examples are designed for the QFAC variant).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU reconnect problem</title><link>https://devzone.nordicsemi.com/thread/84489?ContentTypeID=1</link><pubDate>Fri, 21 Apr 2017 11:50:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7bb3820d-b3b4-4d39-9369-bc094766b9ba</guid><dc:creator>Sejl</dc:creator><description>&lt;p&gt;I am using SDK 12.2.0. Programming in Keil v5&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU reconnect problem</title><link>https://devzone.nordicsemi.com/thread/84495?ContentTypeID=1</link><pubDate>Fri, 21 Apr 2017 11:48:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c99b292-7f38-46f6-87f0-d801bb7916ac</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Which SDK version are you using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>