<?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>Jump to bootloader buttonless</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23656/jump-to-bootloader-buttonless</link><description>Hi, 
 I use the SDK12.3 and SD130 with secure_bootloader and my own application. I can flash SD and Bootloader and update my app over OTA with DFU from NRF Toolbox. My app works fine after updating. I implemented the buttonless service to do the buttonless</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 25 Jul 2017 09:06:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23656/jump-to-bootloader-buttonless" /><item><title>RE: Jump to bootloader buttonless</title><link>https://devzone.nordicsemi.com/thread/92986?ContentTypeID=1</link><pubDate>Tue, 25 Jul 2017 09:06:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7376fd7-d284-4928-8617-054d8fac1d26</guid><dc:creator>Benjamin Schlegel</dc:creator><description>&lt;p&gt;I added fs_init() just as described in &lt;a href="https://devzone.nordicsemi.com/question/132287/dfu-buttonless-entry-method-fails-to-erase-flash/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Now the flash opteration works. I still needed to add NVIC_SystemReset() at the end of enter_bootloader(). Not the intended way but now it works for me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Jump to bootloader buttonless</title><link>https://devzone.nordicsemi.com/thread/92981?ContentTypeID=1</link><pubDate>Tue, 25 Jul 2017 08:57:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:553a49c9-1a94-4799-8315-23d47b01026d</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I would suggest to test with the experimental_ble_app_buttonless_dfu and see why it works there but not in your application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Jump to bootloader buttonless</title><link>https://devzone.nordicsemi.com/thread/92980?ContentTypeID=1</link><pubDate>Mon, 24 Jul 2017 06:32:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31115958-87ad-45cf-a76c-8ea446236dd8</guid><dc:creator>Benjamin Schlegel</dc:creator><description>&lt;p&gt;You are right. flash erase fails. nrf_dfu_flash_erase() in nrf_dfu_flash_buttonless.c calls fs_erase(). I get error &amp;quot;FS_ERR_NOT_INITIALIZED&amp;quot; in fs_erase()&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Jump to bootloader buttonless</title><link>https://devzone.nordicsemi.com/thread/92984?ContentTypeID=1</link><pubDate>Fri, 21 Jul 2017 13:40:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9f4f0fd-10a1-4a5d-a4b5-62a0a3df857b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;It&amp;#39;s triggered when the flash updating is finish (writing to bootloader setting), inside flash_callback() , you can find sd_ble_gap_disconnect() called there.&lt;/p&gt;
&lt;p&gt;I suspect that flash operation has never been finished.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Jump to bootloader buttonless</title><link>https://devzone.nordicsemi.com/thread/92983?ContentTypeID=1</link><pubDate>Fri, 21 Jul 2017 13:00:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:886f6c3b-9fcc-4126-8755-4b3431ffe42a</guid><dc:creator>Benjamin Schlegel</dc:creator><description>&lt;p&gt;ble_dfu_on_ble_evt() is called in ble_evt_dispatch(). If I set a breakpoint in on_disconnect() it never stops there. Who triggers BLE_GAP_EVT_DISCONNECTED event? It seems that this event never happens. In buttonless example on_disconenct() is called. But I cant see the difference to my app.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Jump to bootloader buttonless</title><link>https://devzone.nordicsemi.com/thread/92982?ContentTypeID=1</link><pubDate>Fri, 21 Jul 2017 12:14:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8755ac5e-d9d2-4080-b015-1fcbeb80ffbc</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;on_disconnect() is called when BLE_GAP_EVT_DISCONNECTED occurs, this is handled inside ble_dfu_on_ble_evt(). Make sure you put that inside ble_evt_dispatch() in main.c .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Jump to bootloader buttonless</title><link>https://devzone.nordicsemi.com/thread/92985?ContentTypeID=1</link><pubDate>Fri, 21 Jul 2017 11:23:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ae82516-ccf5-499e-aca2-50b88d0d6086</guid><dc:creator>Benjamin Schlegel</dc:creator><description>&lt;p&gt;with the experimental ble_app_buttonless_dfu example + bootloader it works. After jump to bootloader the device is still in application even the notification states Response for: Enter Bootloader Status: Success&amp;quot;&lt;/p&gt;
&lt;p&gt;With the use of breakpoints I can see that the enter_bootloader() is called. The notification is triggered. The s_dfu_settings.enter_buttonless_dfu is set to true and nrf_dfu_settings_write gets called and runs completly. I cant see code where on_disconnect() is used after all of that. Where should on_disconenct() be called?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Jump to bootloader buttonless</title><link>https://devzone.nordicsemi.com/thread/92987?ContentTypeID=1</link><pubDate>Fri, 21 Jul 2017 10:56:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9d27646-f93d-457c-be8f-bf656ffb03c3</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Benjamin,&lt;/p&gt;
&lt;p&gt;If you test with the experimental_ble_app_buttonless_dfu , can you switch to the bootloader ?&lt;/p&gt;
&lt;p&gt;What exactly happened when you &amp;quot;never jump to the bootloader&amp;quot; ? The device continue to operate in application as normal ?&lt;/p&gt;
&lt;p&gt;Have you check if enter_bootloader() inside ble_dfu.c is called  ? What the buttonless dfu example does is to write to bootloader setting , wait for the flash update is complete, then disconnect and on_disconnect() it will trigger a softreset to jump to bootloader.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>