<?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>HID Keyboard with DFU</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68533/hid-keyboard-with-dfu</link><description>Hi, 
 I want to add ble dfu to the hid keyboard example using nRF52810. I have tried unbonded and bonded，both are not work. 
 By using the bonded way, I made the following changes 
 #define NRF_SDH_BLE_SERVICE_CHANGED 1 
 #define NRF_DFU_BLE_BUTTONLESS_SUPPORTS_BONDS</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 24 Nov 2020 08:02:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68533/hid-keyboard-with-dfu" /><item><title>RE: HID Keyboard with DFU</title><link>https://devzone.nordicsemi.com/thread/281449?ContentTypeID=1</link><pubDate>Tue, 24 Nov 2020 08:02:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d46ffa5-dbdb-4c1c-9106-ad38be557126</guid><dc:creator>Yinbun Ye</dc:creator><description>&lt;p&gt;&lt;span&gt;Thank you.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID Keyboard with DFU</title><link>https://devzone.nordicsemi.com/thread/280896?ContentTypeID=1</link><pubDate>Thu, 19 Nov 2020 12:50:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a5ced00-beb1-4009-8cfb-9d3ccd13f99a</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;First of all, the nRf52810 has a quite small flash, so it may not be possible to do DFU even of the app. In order to do it you need to fit the bootloader in addition to the application and SoftDevice. That may be possible, but it is a tight fit.&lt;/p&gt;
[quote user=""]I have tried unbonded and bonded，both are not work.[/quote]
&lt;p&gt;I recommend using unbonded unless you have a compelling reason for requiring bonding. That is simpler and you avoid a few pitfalls. (You can still require bonding in order to write to the DFU characteristic in the application to put the device in DFU mode, which often makes sense.)&lt;/p&gt;
[quote user=""]&lt;p&gt;Return the error is as follow&amp;nbsp;&lt;/p&gt;
&lt;p&gt;ERROR 8 [NRF_ERROR_INVALID_STATE] at&amp;nbsp;ble_dfu_buttonless_init&lt;/p&gt;[/quote]
&lt;p&gt;&amp;nbsp;This typically happens if you call&amp;nbsp;ble_dfu_buttonless_init() before&amp;nbsp;pm_init(), as the peer manager needs to be initialized first.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>