<?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 throw BLE and USB</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69339/dfu-throw-ble-and-usb</link><description>Hi, 
 
 My project already has the ability to DFU throw BLE. 
 How can I add to it the Serial DFU throw USB ? 
 Is it possible to have one boot-loader that can handle both!? 
 If yes what parts I need to add from the USB_DFU_bootloade_example to my boot</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 04 Jan 2021 09:46:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69339/dfu-throw-ble-and-usb" /><item><title>RE: DFU throw BLE and USB</title><link>https://devzone.nordicsemi.com/thread/287162?ContentTypeID=1</link><pubDate>Mon, 04 Jan 2021 09:46:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:792c77b2-be94-489f-aa3b-c2abd742a76f</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi JK,&lt;/p&gt;
&lt;p&gt;You can support buttonless DFU over USB by adding the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/lib_dfu_trigger_usb.html"&gt;DFU Trigger Library&lt;/a&gt;&amp;nbsp;in your application and calling&amp;nbsp;nrf_dfu_trigger_usb_init() after initializing USB. See&amp;nbsp;examples\connectivity\ble_connectivity\main.c for an example where that is done.&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU throw BLE and USB</title><link>https://devzone.nordicsemi.com/thread/286738?ContentTypeID=1</link><pubDate>Mon, 28 Dec 2020 14:22:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c4ed0b1-7a88-43ee-aa6f-3e81a1bc8cf5</guid><dc:creator>jawadk</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;my application already handles the buttonless DFU throw BLE, what do I need to add to my application to handle it throw USB also !?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for your help.&lt;/p&gt;
&lt;p&gt;Best Regards&lt;/p&gt;
&lt;p&gt;JK&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU throw BLE and USB</title><link>https://devzone.nordicsemi.com/thread/286028?ContentTypeID=1</link><pubDate>Mon, 21 Dec 2020 11:56:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca0e12a7-6b33-4856-93ff-89d2bebbffbc</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi JK,&lt;/p&gt;
[quote user="jawadk"]I have no idea how to let the macro&amp;nbsp;NRF_SECTION_ITEM_COUNT(dfu_trans, nrf_dfu_transport_t)&lt;strong&gt; &lt;/strong&gt;return the number 2&lt;strong&gt;.&amp;nbsp;&lt;/strong&gt;[/quote]
&lt;p&gt;That is done automatically by the linker when you add nrf_dfu_serial_usb.c to your project (as the file contains&amp;nbsp;DFU_TRANSPORT_REGISTER). You do not need to do anything else in that regard.&lt;/p&gt;
[quote user="jawadk"]or how to add the init function for the USB.[/quote]
&lt;p&gt;That is also handled automatically. As long as you have all the required files in place and proper configuration in sdk_config.h (just refer to example USB bootloader for both, and adjust the bootloader start address to make everything fit, this should work by itself. The reason is that as long as the USB backend is registered (which happens automatically as described), the init function will be called automatically. There is literally no code changes required in the example bootloader at al, just a need to do what I have described.&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU throw BLE and USB</title><link>https://devzone.nordicsemi.com/thread/285966?ContentTypeID=1</link><pubDate>Mon, 21 Dec 2020 07:19:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ca91a2d-3b93-436f-85ff-71921dd36242</guid><dc:creator>jawadk</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I need help with that please.&lt;/p&gt;
&lt;p&gt;I have no idea how to let the macro&amp;nbsp;NRF_SECTION_ITEM_COUNT(dfu_trans, nrf_dfu_transport_t)&lt;strong&gt; &lt;/strong&gt;return the number 2&lt;strong&gt;.&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;or how to add the init function for the USB.&lt;/p&gt;
&lt;p&gt;Best Regards&lt;/p&gt;
&lt;p&gt;JK&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU throw BLE and USB</title><link>https://devzone.nordicsemi.com/thread/284327?ContentTypeID=1</link><pubDate>Thu, 10 Dec 2020 12:52:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58a4af14-60f1-40cf-86db-f7c60df6df38</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi JK,&lt;/p&gt;
&lt;p&gt;Yes, you can have multippel transports at the same time in the nRF5 SDK bootloader.&amp;nbsp;In principle&amp;nbsp;you just need to add the USB transport implementation to the secure BLE project, but that also means that you must add any dependencies and configurations needed for USB (lock at the open USB bootloader to see which), and you need to adjust the start address and size of the bootloader to fit both. You should also make sure to &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/66400/bootloader-inactivity-timeout-not-triggering-when-interrupting-usb-dfu/272702#272702"&gt;handle the 32 kHz clock properly&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>