<?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>Serial DFU Zephyr MCU from host MCU</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/90119/serial-dfu-zephyr-mcu-from-host-mcu</link><description>Hello, 
 Is an embedded C based implementation to serially transport firmware data to a Zephyr based MCU available anywhere? 
 Background: 
 I am working on a nRF52833 solution which is serially connected (UART TTL) to a host MCU on the same PCB. The</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 26 Jul 2022 13:53:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/90119/serial-dfu-zephyr-mcu-from-host-mcu" /><item><title>RE: Serial DFU Zephyr MCU from host MCU</title><link>https://devzone.nordicsemi.com/thread/378742?ContentTypeID=1</link><pubDate>Tue, 26 Jul 2022 13:53:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5937a1ce-84d8-4239-b767-a44f761134bf</guid><dc:creator>Steve-CP</dc:creator><description>&lt;p&gt;We are not using Zephyr on the ESP32.&lt;/p&gt;
&lt;p&gt;But, it is helpful to know&amp;nbsp;that I don&amp;#39;t need to use the mcumgr protocol. Thank you for the link and the clarification.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial DFU Zephyr MCU from host MCU</title><link>https://devzone.nordicsemi.com/thread/378651?ContentTypeID=1</link><pubDate>Tue, 26 Jul 2022 09:01:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63a216b1-c757-421e-98cf-839dd922c0bf</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Are you using Zephyr on the esp32, in that case&amp;nbsp;use this sample to perform the DFU&amp;nbsp;&lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/central_smp_client/README.html"&gt;Bluetooth: Central SMP Client&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Then use the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.0/zephyr/samples/subsys/mgmt/mcumgr/smp_svr/README.html#smp-svr-sample"&gt;SMP sever Sample&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;on the Bluetooth Peripheral device&lt;/p&gt;
&lt;p&gt;You will have&amp;nbsp;to swap out the transport layer from Bluetooth to Serial.&lt;/p&gt;
&lt;p&gt;Currently&amp;nbsp;it is only possible to send the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.0.0/samples/bluetooth/central_smp_client/src/main.c#L362"&gt;echo command&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;from the Central SMP Client, so you would have to implement the other commands yourself, like&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.0/zephyr/samples/subsys/mgmt/mcumgr/smp_svr/README.html#upload-the-signed-image"&gt;upload&lt;/a&gt;,&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.0/zephyr/samples/subsys/mgmt/mcumgr/smp_svr/README.html#list-the-images"&gt;list&lt;/a&gt;,&amp;nbsp;&lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.0/zephyr/samples/subsys/mgmt/mcumgr/smp_svr/README.html#test-the-image"&gt;test&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and so on..&amp;nbsp;&lt;/p&gt;
&lt;p&gt;However,&amp;nbsp;&lt;span&gt;it is not necessary to use the smp/mcumgr protocol. This case might be useful regarding that:&amp;nbsp;&lt;/span&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/77869/update-code-via-uart-instead-of-fota-nrf9160"&gt;devzone.nordicsemi.com/.../update-code-via-uart-instead-of-fota-nrf9160&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial DFU Zephyr MCU from host MCU</title><link>https://devzone.nordicsemi.com/thread/378627?ContentTypeID=1</link><pubDate>Tue, 26 Jul 2022 06:34:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3bcf85f-dd97-4ef3-998b-9f06984afce5</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Sorry for the delays, I asked our DFU expert to help in this case.&amp;nbsp;Most likely he will respond soon.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial DFU Zephyr MCU from host MCU</title><link>https://devzone.nordicsemi.com/thread/377902?ContentTypeID=1</link><pubDate>Wed, 20 Jul 2022 13:59:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03fd37d8-b87c-49cf-adbf-e070b4e8730b</guid><dc:creator>Steve-CP</dc:creator><description>&lt;p&gt;Perhaps my original post was not clear.&amp;nbsp;I don&amp;#39;t think the link provided has any assistance for my issue.&lt;/p&gt;
&lt;p&gt;I have already successfully done a firmware update from a desktop PC to the nrf52 via serial UART. I understand the basic mechanics. I understand how to use mcumgr-cli.&lt;/p&gt;
&lt;p&gt;What I need to do is not from a desktop PC, but from another MCU. I have a single PCB with two MCUs, one of them is the nrf52, the other is an ESP32. A ESP32 UART is directly connected to an nrf52 UART on the board. The ESP32 needs to update the nrf52 via serial UART. I can&amp;#39;t use mcumgr-cli as a basis because it is written in Go language. I am looking for something in C that will run on the&amp;nbsp;&lt;span&gt;ESP32 to update the nrf52&lt;/span&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial DFU Zephyr MCU from host MCU</title><link>https://devzone.nordicsemi.com/thread/377866?ContentTypeID=1</link><pubDate>Wed, 20 Jul 2022 12:43:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00c7262b-624f-4cb6-b429-3d789654f37d</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;The MCUBoot in Zephyr should be able to use UART as transport. One of the older threads that discussed this is &lt;a href="https://github.com/zephyrproject-rtos/zephyr/issues/9509"&gt;here&lt;/a&gt;. Not sure if there are any samples to demonstrate this, but you surely do not need to reinvent the wheel as this is a common configuration, I am guessing there must be others who might have done this already on public repos.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>