<?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>How can I add an enable button to NCS BLE DFU?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113350/how-can-i-add-an-enable-button-to-ncs-ble-dfu</link><description>I am using NCS SDK 2.6.1 , developing nrf52840 firmware, coding with zephyr. 
 I need BLE DFU function, so I add two lines to my prj.conf, following this URL: https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/software/posts/ncs-dfu#mcetoc_1h90kb1ii2</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 26 Jul 2024 09:12:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113350/how-can-i-add-an-enable-button-to-ncs-ble-dfu" /><item><title>RE: How can I add an enable button to NCS BLE DFU?</title><link>https://devzone.nordicsemi.com/thread/495781?ContentTypeID=1</link><pubDate>Fri, 26 Jul 2024 09:12:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:171869f4-ba70-4b72-823e-fdbef4fefd6d</guid><dc:creator>JY wu</dc:creator><description>&lt;p&gt;Hi~&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Got it, thank you very much!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I add an enable button to NCS BLE DFU?</title><link>https://devzone.nordicsemi.com/thread/495774?ContentTypeID=1</link><pubDate>Fri, 26 Jul 2024 08:59:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f64f569-b44a-4a7c-bb34-39c2b6108121</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I’m not entirely sure if I’ve understood your requirement correctly, but I’ll try to explain what I gather.&lt;/p&gt;
&lt;p&gt;Implementing Button Control for DFU&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Use one button to enable DFU mode (allow firmware updates via BLE).&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Use another button to disable DFU mode (prevent firmware updates).&lt;/li&gt;
&lt;li&gt;You are implementing this method to make a secure BLE OTA.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;AFAIK, with the nRF Connect SDK and BLE DFU, the device does not enter a special DFU mode per se. Instead, the firmware must support DFU over BLE, which is based on the BLE Simple Management Protocol (SMP). The bootloader handles entering a specific mode that allows the device to accept firmware images from a mobile application or peripheral.&lt;/p&gt;
&lt;p&gt;Therefore, you will likely need a combination of application logic and bootloader configuration.&lt;br /&gt;- Use a specific flash address to store the DFU state.&lt;br /&gt;- In the application code, handle button presses to update the DFU state.&lt;br /&gt;- In the bootloader code, check the DFU state from flash before allowing a DFU request.&lt;/p&gt;
&lt;p&gt;Note that implementing this method will involve updating the bootloader code, so you should consider the impact of each SDK update.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I add an enable button to NCS BLE DFU?</title><link>https://devzone.nordicsemi.com/thread/495459?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2024 14:22:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6abf139e-2622-4e96-8354-306b87c12c0c</guid><dc:creator>JY wu</dc:creator><description>&lt;p&gt;Hi~&lt;/p&gt;
&lt;p&gt;We had add our private Signature to our code.&lt;/p&gt;
&lt;p&gt;The behavior of nrf connect device manager app is: still can connect, upload firmware, but always fails when upload finished.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The error message on nrf connect device manager is : Hash not found (8)&lt;/p&gt;
&lt;p&gt;It looks like firmware with different signatures can&amp;#39;t replace each other.&lt;/p&gt;
&lt;p&gt;This solved security issue. But this solution is still buttonless.&lt;/p&gt;
&lt;p&gt;Would you please tell me: Is it possible to add an enable button in SDK v2.6.1 ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I add an enable button to NCS BLE DFU?</title><link>https://devzone.nordicsemi.com/thread/495448?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2024 13:51:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f15b6bb6-9230-4f82-982b-99aa310f40d0</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Please refer to the section on &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/samples/subsys/mgmt/mcumgr/smp_svr/README.html#signing_the_sample_image"&gt;Signing the Sample Images&lt;/a&gt;&amp;nbsp;and read about &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/config_and_build/bootloaders/bootloader_adding.html#configuring_mcuboot_as_an_immutable_bootloader"&gt;Adding a Custom Signature Key File with MCUboot&lt;/a&gt;&amp;nbsp;as the bootloader. For a detailed explanation of image signing and encryption in MCUboot, you can review&lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/keys_and_signatures"&gt; this repository.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>