<?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 over USB, can ignore the erase the external flash data?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111825/dfu-over-usb-can-ignore-the-erase-the-external-flash-data</link><description>Hi, 
 I just try to use the DFU over USB to upgrade the FW but i found one problem which is the process will erase the external flash data 
 but i put the some sensor FW data in the external flash so that means i will lose these FW after doing the DFU</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 25 Jun 2024 12:42:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111825/dfu-over-usb-can-ignore-the-erase-the-external-flash-data" /><item><title>RE: DFU over USB, can ignore the erase the external flash data?</title><link>https://devzone.nordicsemi.com/thread/490642?ContentTypeID=1</link><pubDate>Tue, 25 Jun 2024 12:42:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a63ecce-c2f4-4bd4-b485-bb1928a42ac0</guid><dc:creator>SwRa</dc:creator><description>&lt;p&gt;Hi Stanly,&lt;/p&gt;
&lt;p&gt;Could you attach these as files.? And just&amp;nbsp;share the&amp;nbsp;log here.? It is a bit difficult to review the screenshots..&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Swathy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU over USB, can ignore the erase the external flash data?</title><link>https://devzone.nordicsemi.com/thread/489892?ContentTypeID=1</link><pubDate>Fri, 21 Jun 2024 09:13:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bca75099-ab0e-48d3-97d7-43807f8ab4e5</guid><dc:creator>yclin</dc:creator><description>&lt;p&gt;Hi Swathy,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; I&amp;#39;m using a custom board with SDK version v2.4.2. Below, I&amp;#39;ve attached the log, partition layout, and pm_static.yml files. Could you please review them? If you notice anything wrong, kindly let me know. Thank you!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here is the error log after mcumgr reset.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1718960804243v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1718960623807v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Here is the partition layout&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1718960894421v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;pm_static.yml&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;# Name of partition&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;littlefs_storage&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &lt;/span&gt;&lt;span&gt;address&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &lt;/span&gt;&lt;span&gt;end_address&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;0x3000000&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &lt;/span&gt;&lt;span&gt;placement&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &lt;/span&gt;&lt;span&gt;before&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; - &lt;/span&gt;&lt;span&gt;end&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &lt;/span&gt;&lt;span&gt;region&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;external_flash&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &lt;/span&gt;&lt;span&gt;size&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;0x3000000&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Stanly&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU over USB, can ignore the erase the external flash data?</title><link>https://devzone.nordicsemi.com/thread/489048?ContentTypeID=1</link><pubDate>Mon, 17 Jun 2024 09:43:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7b2c904-911a-45da-ad7d-19c2a8f1e0b1</guid><dc:creator>SwRa</dc:creator><description>&lt;p&gt;Hi Stanly,&lt;/p&gt;
[quote user=""]By the way, i got another questions about the USB CDC chosen, can i set the console and shell-uart and uart-mcumgr all set to the &amp;amp;cdc_acm_uart0.[/quote]
&lt;p&gt;Yes, you can set a single UART interface for multiple properties like console, shell, and mcumgr. But, if possible, considering different UART interfaces for these functionalities might be a better approach. If there are hardware limitations, you can stick to the single UART interface approach.&lt;/p&gt;
[quote user=""]&lt;p&gt;I just try to use the DFU over USB to upgrade the FW but i found one problem which is the process will erase the external flash data&amp;nbsp;&lt;/p&gt;
&lt;p&gt;but i put the some sensor FW data in the external flash so that means i will lose these FW after doing the DFU update FW. Do you have any&lt;/p&gt;
&lt;p&gt;configuration settings or other way to keep this data to use the other partition. please help to take a look thanks.&lt;/p&gt;[/quote]
&lt;p&gt;I&amp;#39;m not sure why this is happening, but I guess it might be because of the partition layout. Partition layout might be setup in a way that the DFU process overlaps with external flash memory. Is there any detailed log indicating which area is being erased? I recommend checking the DTS and partition manager files (see that there is no overlapping). Assuming you are working with nRF5340, let me know if this is not the case, but is this a custom board or a DK? Could you also share which SDK version you are using here?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Swathy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU over USB, can ignore the erase the external flash data?</title><link>https://devzone.nordicsemi.com/thread/487819?ContentTypeID=1</link><pubDate>Fri, 07 Jun 2024 03:41:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:369af62b-7f23-4499-a374-efa16cd00b16</guid><dc:creator>yclin</dc:creator><description>&lt;p&gt;Hi Swathy:&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Any good news？&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Stanly&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU over USB, can ignore the erase the external flash data?</title><link>https://devzone.nordicsemi.com/thread/487522?ContentTypeID=1</link><pubDate>Wed, 05 Jun 2024 13:00:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad1135cb-d5b1-466b-8a21-f63e60ef145e</guid><dc:creator>SwRa</dc:creator><description>&lt;p&gt;Hi Stanly,&lt;/p&gt;
&lt;p&gt;I will look into this and get back to you.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Swathy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>