<?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>With Butonless DFU &amp;quot;bootloader_secure_ble&amp;quot;  geting out DFU mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/37981/with-butonless-dfu-bootloader_secure_ble-geting-out-dfu-mode</link><description>Hi 
 I did DFU with button, i can enter and load zip pack over nrfToolbox mobile. 
 I tried butonlessDFU, i copied services &amp;quot;experimental_ble_app_buttonless_dfu&amp;quot; and with sending request device enter to boot but jump back apk quickly with a reset. 
 With</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 05 Sep 2019 07:55:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/37981/with-butonless-dfu-bootloader_secure_ble-geting-out-dfu-mode" /><item><title>RE: With Butonless DFU "bootloader_secure_ble"  geting out DFU mode</title><link>https://devzone.nordicsemi.com/thread/208119?ContentTypeID=1</link><pubDate>Thu, 05 Sep 2019 07:55:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6436b84a-4416-4dbb-ad9b-2401302a7c94</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;When do you want to exit without update? When you get a disconnect? If you have a valid application? if the WDT times out?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: With Butonless DFU "bootloader_secure_ble"  geting out DFU mode</title><link>https://devzone.nordicsemi.com/thread/208079?ContentTypeID=1</link><pubDate>Thu, 05 Sep 2019 03:42:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56897562-f58a-4439-a0f7-bd8756ea25bf</guid><dc:creator>jwx</dc:creator><description>&lt;p&gt;if&amp;nbsp;I&amp;nbsp;want&amp;nbsp;to&amp;nbsp;exit&amp;nbsp;boot&amp;nbsp;without&amp;nbsp;update&amp;nbsp;in&amp;nbsp;boot&amp;nbsp;mode，how&amp;nbsp;to&amp;nbsp;change？use&amp;nbsp;sdk13.0&amp;nbsp;dfu&amp;nbsp;demo&amp;nbsp;code。&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: With Butonless DFU "bootloader_secure_ble"  geting out DFU mode</title><link>https://devzone.nordicsemi.com/thread/147741?ContentTypeID=1</link><pubDate>Fri, 07 Sep 2018 09:21:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9957a9b5-bec4-44c2-905e-d6ecea0ff519</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Sorry for the late reply, Ferhat! I have been out of office this week.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Yes. The WDT will still count after switching to bootloader. Once started, you can&amp;#39;t stop it. The only way to stop it is a power cycle. (Power off -&amp;gt; Power on).&lt;/p&gt;
&lt;p&gt;Do you have bonding required in your bootloader?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You say that you &amp;quot;use SDK13.0 and &amp;#39;bootloader_secure_ble&amp;#39; and almost original&amp;quot;. What have you changed?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regarding where to write 0100 and where to write 01, there is actually described wrong. You should write 0200 to the client characteristics configuration, and 01 to the Secure DFU characteristics.&lt;/p&gt;
&lt;p&gt;Alternatively, just press the &amp;quot;play button&amp;quot;, and write 01 to the characteristics.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-bd82036c955c4a89b1b43b578e8a5e01/pastedimage1536311809879v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you do this, the device will disconnect, and start advertising as DfuTarg instead. The reason why it takes so long is probably because of the timeout waiting to happen before it starts to scan again.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you use the DFU icon in the top right corner, next to the settings icon, it will disconnect and connect to the DfuTarg immediately.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Are you using the nRF Connect app? Desktop or Mobile? Or are you implementing your own DFU app?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you use a custom app, it is worth knowing that the device will advertise as DfuTarg once you write 1 to the Buttonless Secure Dfu without bonds service. It will advertise with bluetooth address 1 higher than the address that the Nordic_Buttonless advertised with. So in my case, it will use D4 instead of D3.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: With Butonless DFU "bootloader_secure_ble"  geting out DFU mode</title><link>https://devzone.nordicsemi.com/thread/147551?ContentTypeID=1</link><pubDate>Thu, 06 Sep 2018 10:26:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb841cf3-90c0-4812-9a3b-d56d7b0b8e3b</guid><dc:creator>Ferhat B</dc:creator><description>&lt;p&gt;Hello Edvin&lt;/p&gt;
&lt;p&gt;I found the reason, I have WDT in my apk and&amp;nbsp; still countsafter jumping bootloader.&lt;/p&gt;
&lt;p&gt;I have another issue, please answer, two days passed you replied.&lt;/p&gt;
&lt;p&gt;How can i make faster connecting DFUTarg.&lt;/p&gt;
&lt;p&gt;If i pass DFU mode with button it takes 2sec to connect to DFUTarg.&lt;/p&gt;
&lt;p&gt;if i pass DFU mode with butonless with Sending Request it takes up to 15sec&lt;/p&gt;
&lt;p&gt;and if i cancel in that while nrf52832 still stay connected. Im closing mobile phone BLE and turn on again than being available.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Ferhat&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: With Butonless DFU "bootloader_secure_ble"  geting out DFU mode</title><link>https://devzone.nordicsemi.com/thread/147394?ContentTypeID=1</link><pubDate>Wed, 05 Sep 2018 13:25:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0eb4d05-052c-489f-9417-3d4e080c993c</guid><dc:creator>Ferhat B</dc:creator><description>&lt;p&gt;Hello Edvin, please help. My previous message and this one.&lt;/p&gt;
&lt;p&gt;I prepared zip package for &amp;quot;ble_app_buttonless_dfu&amp;quot; example, and used evaluation board as hardware.&lt;/p&gt;
&lt;p&gt;I loaded with nRFConnect with using button for entering bootloader.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I can not achieve description told in picture below.&lt;/p&gt;
&lt;p&gt;There is only Secure DFU Service and I can send Command or Request. No palce to enter that values 0100 or 01.&lt;/p&gt;
&lt;p&gt;When i connect with nRFConnect Led1 in ON&lt;/p&gt;
&lt;p&gt;When i send request Led1 goes OFF than start blinking. And disonnection happen.&lt;/p&gt;
&lt;p&gt;For command nothing happens.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Ferhat&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Description-for-butonless-DFU.jpg" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: With Butonless DFU "bootloader_secure_ble"  geting out DFU mode</title><link>https://devzone.nordicsemi.com/thread/147217?ContentTypeID=1</link><pubDate>Tue, 04 Sep 2018 14:41:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6d37b78-1933-42de-b16e-016d2d8eecd6</guid><dc:creator>Ferhat B</dc:creator><description>&lt;p&gt;Hello Edvin&lt;/p&gt;
&lt;p&gt;I dont want to change &amp;quot;bootloader_start()&amp;quot; function , i tested that first then tried writing to register0xB1 directly. I add these functions here becouse i get BLE_GATTS_EVT_RW_AUTHORIZE_REQUEST by clicking &amp;quot;Butonless DFU&amp;quot;&amp;nbsp; with nrF Connect (Android)&lt;/p&gt;
&lt;p&gt;-------------------------------------------------------------------&lt;/p&gt;
&lt;p&gt;I can enter BLE_GATTS_EVT_HVC event. All orginal &amp;quot;ble_dfu.c&amp;quot; at SDK13&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;I removed snipnet above and make orginal at &amp;quot;ble_dfu.c&amp;quot; in my applicaion.&lt;/li&gt;
&lt;li&gt;I load softdevice and bootcode by nRFgo&lt;/li&gt;
&lt;li&gt;I load my zip file by clicking buton with nRF Connect (Andrıid). Here i see DFUTarg&lt;/li&gt;
&lt;li&gt;My apk started. I see my SSID now. My apk has Secure DFU Service.&lt;/li&gt;
&lt;li&gt;I connected to my SSID with nRF Connect (Android)&lt;/li&gt;
&lt;li&gt;I can see DFU symol near DISCONNECT,&amp;nbsp; Click it, Select zip file again,&lt;/li&gt;
&lt;li&gt;Writing&amp;nbsp; Starting bootloader than Connecting than Starting bootloader again... goes like that&lt;/li&gt;
&lt;li&gt;Not jumping boot area.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Ferhat&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: With Butonless DFU "bootloader_secure_ble"  geting out DFU mode</title><link>https://devzone.nordicsemi.com/thread/147144?ContentTypeID=1</link><pubDate>Tue, 04 Sep 2018 10:10:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12e25bfd-62c4-4f79-a468-552915e1c0d0</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Sorry for the late reply. Does it work if you use the bootloader_start() function instead of only writing to the register?&lt;/p&gt;
&lt;p&gt;I have not had the time to test this myself yet (I am out of office, but I try to check in on my cases every now and then). I understand that you might want to change the bootloader_start() function, but I want to know whether the issue is writing to the register, or if it is the check of the register that fails. I believe the bootloader_start() function should work.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: With Butonless DFU "bootloader_secure_ble"  geting out DFU mode</title><link>https://devzone.nordicsemi.com/thread/147028?ContentTypeID=1</link><pubDate>Mon, 03 Sep 2018 15:15:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:826345b7-aa17-4b83-9244-f9c838fc5755</guid><dc:creator>Ferhat B</dc:creator><description>&lt;p&gt;Hi, any suggestion for me?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: With Butonless DFU "bootloader_secure_ble"  geting out DFU mode</title><link>https://devzone.nordicsemi.com/thread/146823?ContentTypeID=1</link><pubDate>Fri, 31 Aug 2018 16:44:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a52e8121-7cb2-4e94-9d3a-b63cf03939e6</guid><dc:creator>Ferhat B</dc:creator><description>&lt;p&gt;Im using SDK 13, Code snipnet fetced from ble_dfu.c. &lt;/p&gt;
&lt;p&gt;I copied dfu service from &amp;quot;experimental_ble_app_buttonless_dfu&amp;quot; and add to my main.c&lt;/p&gt;
&lt;p&gt;I can enter boot area with using with &amp;quot;(void)bootloader_start();&amp;quot; method&lt;/p&gt;
&lt;p&gt;Or i can enter boot area with using two lines below;&lt;/p&gt;
&lt;p&gt;NRF_POWER-&amp;gt;GPREGRET = 0xB1;&lt;br /&gt;NVIC_SystemReset();&lt;/p&gt;
&lt;p&gt;----------------------------------------&lt;/p&gt;
&lt;p&gt;So i dont have problem jumping bootaddress.&lt;/p&gt;
&lt;p&gt;I have led blink in &amp;quot;bootloader_secure_ble&amp;quot; loaded in bootloder area, Im understanding jumping boot success when with this blinking. Below code snipnet from &amp;quot;nrf_dfu.c&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static void wait_for_event()
{
    // Transport is waiting for event?
    nrf_gpio_pin_write(14,1);
    while(true)
    {
        // Can&amp;#39;t be emptied like this because of lack of static variables
#ifdef BLE_STACK_SUPPORT_REQD
        //(void)sd_app_evt_wait();
#else
        __WFI();
#endif
        app_sched_execute();
        Blink01();
    }
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;GPREGRET = 0xB1 control pass one time&amp;nbsp; with nrf_dfu_enter_check(). I think after 2-3 second, makes a reset but i think NRF_POWER-&amp;gt;GPREGRET not still 0xB1.&lt;/p&gt;
&lt;p&gt;So my problem is in &amp;quot;bootloader_secure_ble&amp;quot; where bootloader area loaded.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: With Butonless DFU "bootloader_secure_ble"  geting out DFU mode</title><link>https://devzone.nordicsemi.com/thread/146723?ContentTypeID=1</link><pubDate>Fri, 31 Aug 2018 10:36:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2408bba-4201-443d-99eb-243ab0ef218d</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Out of curiosity, where is this snippet fetched from? Which SDK do you use, and is this from the ble_app_buttonless_dfu example?&lt;/p&gt;
&lt;p&gt;However, If the error is related to writing to NRF_POWER-&amp;gt;GPREGRET, it might be that the writing is not finished before you reset. You can try to add a short delay before you call NVIC_SystemReset();&lt;/p&gt;
&lt;p&gt;Try to read the register, and call add a while loop while the GPREGRET is not the correct value.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But why did you need to change this? I am not too familiar with the bootloader source code, but did it not work, or do you want to something else?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>