<?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>Can you give me a sample about how to USB to DFU the network core?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96263/can-you-give-me-a-sample-about-how-to-usb-to-dfu-the-network-core</link><description>Hello 
 
 The NCS version is 2.1.0 
 I can use the sample &amp;quot;zephyr\samples\subsys\usb\dfu&amp;quot; to DFU the applicate core. 
 But I don&amp;#39;t know how to DFU the network core, can you give a sample( network core DFU ) base on the &amp;quot;zephyr\samples\subsys\usb\dfu&amp;quot;</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 06 Feb 2023 10:25:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96263/can-you-give-me-a-sample-about-how-to-usb-to-dfu-the-network-core" /><item><title>RE: Can you give me a sample about how to USB to DFU the network core?</title><link>https://devzone.nordicsemi.com/thread/408238?ContentTypeID=1</link><pubDate>Mon, 06 Feb 2023 10:25:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f39388a7-b2af-4345-ad44-9b8eb810463e</guid><dc:creator>ken.oujingxue</dc:creator><description>&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can you give me a sample about how to USB to DFU the network core?</title><link>https://devzone.nordicsemi.com/thread/408056?ContentTypeID=1</link><pubDate>Fri, 03 Feb 2023 15:20:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:401c67c5-8bd4-4504-b6a3-0bf37f15d43a</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;See my colleague&amp;#39;s&amp;nbsp;&lt;span&gt;sample to test updatable bootloaders at&amp;nbsp;&lt;/span&gt;&lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/updatable_bootloader/nsib_mcuboot_smp"&gt;Sample on how to use NSIB(b0) to update MCUBoot feat. SMP Server&lt;/a&gt;&lt;span&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can you give me a sample about how to USB to DFU the network core?</title><link>https://devzone.nordicsemi.com/thread/407955?ContentTypeID=1</link><pubDate>Fri, 03 Feb 2023 10:07:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:477a4d3a-5567-45d8-bdb5-d1e3580d9688</guid><dc:creator>ken.oujingxue</dc:creator><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;Thank you for your reply.&lt;br /&gt;Another question, how to DFU the mucboot？&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can you give me a sample about how to USB to DFU the network core?</title><link>https://devzone.nordicsemi.com/thread/407849?ContentTypeID=1</link><pubDate>Thu, 02 Feb 2023 18:28:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4dc8b7a-ef90-4194-a556-b0c2131fbab0</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have nRF53 MCUBoot Serial Recovery Sample over USB CDC for netcore and appcore with mcumgr sample&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/netcore_5F00_serial_5F00_recovery_5F00_cdc_5F00_acm.7z"&gt;devzone.nordicsemi.com/.../netcore_5F00_serial_5F00_recovery_5F00_cdc_5F00_acm.7z&lt;/a&gt;&amp;nbsp;for NCS2.2.0, but it&amp;#39;s not based on that USB sample.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Add the following log to the main function in the&amp;nbsp;zephyr\samples\bluetooth\hci_rpmsg\src\main.c&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;	printk(&amp;quot;Board config %s\n&amp;quot;, CONFIG_BOARD);
	printk(&amp;quot;IMAGE_VERSION %d\n&amp;quot;, CONFIG_FW_INFO_FIRMWARE_VERSION);
	printk(&amp;quot;build time: &amp;quot; __DATE__ &amp;quot; &amp;quot; __TIME__ &amp;quot;\n&amp;quot;);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Build and flash the program using west:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;west build -p -b nrf5340dk_nrf5340_cpuapp &amp;amp;&amp;amp; west flash --recover&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Connect the terminal, and it would show as the following.&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/0160.pastedimage1675369679107v3.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;Then, Modify the version number in the&amp;nbsp;prj.conf and&amp;nbsp;hci_rpmsg.conf, and recompile the project for the update.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;To activate the Serial Recovery Mode, hold Button 1 while restarting the Developement Kit. Now, you should be able to communicate with the bootloader using&amp;nbsp;&lt;/span&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/zephyr/guides/device_mgmt/mcumgr.html" rel="nofollow"&gt;mcumgr&lt;/a&gt;&lt;span&gt;:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;mcumgr conn add acm46 type=&amp;quot;serial&amp;quot; connstring=&amp;quot;COM46,baud=115200,mtu=512&amp;quot;&lt;/code&gt;&lt;br /&gt;&lt;code&gt;mcumgr -c acm46 image list&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The list command should print:&lt;/span&gt;&lt;br /&gt;Images:&lt;br /&gt; image=0 slot=0&lt;br /&gt; version: 1.0.0.0&lt;br /&gt; bootable: false&lt;br /&gt; flags:&lt;br /&gt; hash: Unavailable&lt;br /&gt;Split status: N/A (0)&lt;/p&gt;
&lt;p&gt;Locate under build\zephyr and update new images for appcore and netcore:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;mcumgr -c acm46&amp;nbsp; image upload -e app_update.bin -n 1&lt;/code&gt;&lt;br /&gt;&lt;code&gt;mcumgr -c acm46&amp;nbsp; image upload -e net_core_app_update.bin -n 3&lt;/code&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/8664.pastedimage1675360591378v4.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Redet the nRF5340DK:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4454.pastedimage1675370086049v5.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;The netcore would not boot up with the new image in after updating in v2.1.0. It&amp;#39;s fixed in v2.2.0.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hope this can help.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>