<?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>Does nrf52820 support USB DFU？</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/79273/does-nrf52820-support-usb-dfu</link><description>Excuse me： 
 1、 I can&amp;#39;t find the USB DFU example of the nrf52820 in the SDK.Does nrf52820 support USB DFU？ 
 
 2、52820 needs to Implement USB OTA ，enumeration as keyboard, mouse and 2.4G wireless communication. Please help to evaluate whether the resources</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 09 Sep 2021 07:28:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/79273/does-nrf52820-support-usb-dfu" /><item><title>RE: Does nrf52820 support USB DFU？</title><link>https://devzone.nordicsemi.com/thread/328715?ContentTypeID=1</link><pubDate>Thu, 09 Sep 2021 07:28:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f50f6c42-ff06-47fb-8b74-28ef9b205134</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="helen"]1、Is the following diagram the size of the boot loader?[/quote]
&lt;p&gt;Yes and not. It is not necessarily the actual size, but it is the reserved flash for the bootloader in this example project.&lt;/p&gt;
[quote user="helen"]2、Sorry, I didn&amp;#39;t find the size of the &lt;span&gt;SoftDevice&amp;nbsp;&amp;nbsp;&lt;/span&gt;in the specification.[/quote]
&lt;p&gt;Ah, sorry, that was a typo. I meant to say the SoftDevice release notes. These are PDFs that are distributed together with the SoftDevice, also in the SDK. If lookin in the SDK folder you can for example find the relevant fil for S132 under &amp;lt;SDK 17.0.2&amp;gt;\components\softdevice\s132\doc\s132_nrf52_7.2.0_release-notes.pdf:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/s132720size.PNG" /&gt;&lt;/p&gt;
[quote user="helen"]3、&lt;span&gt;How much ram does the bootloader occupy in this example?Is there only 8 bytes left？&lt;/span&gt;[/quote]
&lt;p&gt;No. With the USB bootloader as it does not use a SoftDevice (even if it may be present it is not enabled),&amp;nbsp;8 bytes are reserved for the MBR, and the rest is used for the bootloader. The RAM usage here is not really relevant as long as it does not use more than is available. The reason is that the bootloader and application never runs at the same time, so the application can re-use the same RAM as is used by the bootloader.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does nrf52820 support USB DFU？</title><link>https://devzone.nordicsemi.com/thread/328684?ContentTypeID=1</link><pubDate>Thu, 09 Sep 2021 01:43:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:657c35bf-b62c-4ee9-ab2a-076c8fce725f</guid><dc:creator>helen</dc:creator><description>&lt;p&gt;Excuse me&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1、Is the following diagram the size of the boot loader?&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/1631151233_2800_1_2900_.png" /&gt;&lt;/p&gt;
&lt;p&gt;2、Sorry, I didn&amp;#39;t find the size of the &lt;span&gt;SoftDevice&amp;nbsp;&amp;nbsp;&lt;/span&gt;in the specification.&lt;/p&gt;
&lt;p&gt;3、&lt;span&gt;How much ram does the bootloader occupy in this example?Is there only 8 bytes left？&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/1631167121_2800_1_2900_.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does nrf52820 support USB DFU？</title><link>https://devzone.nordicsemi.com/thread/328547?ContentTypeID=1</link><pubDate>Wed, 08 Sep 2021 10:01:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:044e0a23-f9f4-4c0d-86e7-988bdef40aca</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The memory usage you see in SES there is misleading, as it includes the reserved flash. You will get a better overview if you click View -&amp;gt; Memory Usage, and expand FLASH:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/flash_5F00_usage.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;Here you see that address 0 - 0x33FFF is reserved (this is where you would have the MBR/SoftDevice, application, etc). The bootloader itself is close to the end, but there are two pages resaved after that for MBR parameters and bootloader settings. You can also see the start address of the bootloader in the linker settings, and for the&amp;nbsp;&amp;lt;SDK17.0.2&amp;gt;\examples\dfu\secure_bootloader\pca10100e_usb project this is&amp;nbsp;0x34000. The size of this bootloader is&amp;nbsp;33.2 kB, but as it requires full pages in practice it is 36 kB (0x9000 bytes).&lt;/p&gt;
&lt;p&gt;The SoftDevice sizes can be found from the SoftDevice specification. For S132 7.2.0 the size is&amp;nbsp;152 kB (0x26000 bytes). And for S112 7.2.0 it is&amp;nbsp;100.0 kB (0x19000 bytes). Note that you can always find this information in the release notes of the SoftDevice.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does nrf52820 support USB DFU？</title><link>https://devzone.nordicsemi.com/thread/328476?ContentTypeID=1</link><pubDate>Wed, 08 Sep 2021 02:31:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b075bfee-2c0e-4d23-b7aa-a473c57333bb</guid><dc:creator>helen</dc:creator><description>&lt;p&gt;Excuse me&lt;/p&gt;
&lt;p&gt;1、How much flash does the bootloader occupy in this example（&lt;span&gt;&amp;lt;SDK17.0.2&amp;gt;\examples\dfu\secure_bootloader\pca10100e_usb&lt;/span&gt;）?After compiling this project, I see that there is not much flash available.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/b61f8aca6cd21e5ef0b1e08eba726cf.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;2、How much flash and ram do S132 and S112 occupy respectively?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does nrf52820 support USB DFU？</title><link>https://devzone.nordicsemi.com/thread/328096?ContentTypeID=1</link><pubDate>Mon, 06 Sep 2021 06:51:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72b54938-4110-4aa2-8863-9cac6fd9e77f</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am not sure what you mean by Application guide?&lt;/p&gt;
&lt;p&gt;What we have is the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/ble_sdk_app_open_bootloader.html"&gt;Open Bootloader with DFU example&lt;/a&gt;&amp;nbsp;which demonstrates USB bootloader, although not with project files for the nRF52820 (those are only provided for the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/ble_sdk_app_dfu_bootloader.html"&gt;secure bootloader&lt;/a&gt;, but both can be referred to to see how to make a USB bootloader for the nRF52820. You can also refer to the documentation for the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/lib_bootloader_modules.html"&gt;bootloader modules&lt;/a&gt;&amp;nbsp;including 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;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does nrf52820 support USB DFU？</title><link>https://devzone.nordicsemi.com/thread/328071?ContentTypeID=1</link><pubDate>Mon, 06 Sep 2021 02:07:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8253534c-e8d4-49bb-a299-d77df4252e69</guid><dc:creator>helen</dc:creator><description>&lt;p&gt;Is there a USB DFU Application guide for nrf52820? Where can I get the USB DFU Application guide?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does nrf52820 support USB DFU？</title><link>https://devzone.nordicsemi.com/thread/327957?ContentTypeID=1</link><pubDate>Fri, 03 Sep 2021 11:22:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3d7672b-2736-41a9-9dc1-00a027c5e9b9</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The statement you refer to is old, from when the nRF52840 was the only nRF52 series device with USB, but has unfortunately not been updated. There is nothing preventing you from using USB DFU on the nRF52820.&amp;nbsp;There is also example projects for this in the SDK, under &amp;lt;SDK17.0.2&amp;gt;\examples\dfu\secure_bootloader\pca10100e_usb*. Note that these projects are using &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/nrf52820_user_guide.html"&gt;nRF52820 emulation on the nRF52833 DK&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>