<?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>Handle OTA update on nRF52840 using an ESP32 with AT COMMANDS as Cloud Interface</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92671/handle-ota-update-on-nrf52840-using-an-esp32-with-at-commands-as-cloud-interface</link><description>Hi there, 
 This topic coul be part of a BLOG POST called OTA updates of a Nordic Device I think 
 Btw, my issue is this: Handle an OTA update of a Nordic Device, getting the firmware from cloud. 
 My actual system is composed by: - ESP32 with AT-COMMANDS</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 26 Oct 2022 13:28:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92671/handle-ota-update-on-nrf52840-using-an-esp32-with-at-commands-as-cloud-interface" /><item><title>RE: Handle OTA update on nRF52840 using an ESP32 with AT COMMANDS as Cloud Interface</title><link>https://devzone.nordicsemi.com/thread/392644?ContentTypeID=1</link><pubDate>Wed, 26 Oct 2022 13:28:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ad90c51-56c0-4dc0-91fe-8bdc93f9e456</guid><dc:creator>enpre</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/hakon"&gt;Hakon&lt;/a&gt;&amp;nbsp;thank you so much, your help is really gold for me.&lt;br /&gt;&lt;br /&gt;That was not the post we discussed on with Simon, but it was quite exactly my situation.&lt;br /&gt;Uart connection between ESP32 and Nordic nRF52840 is implemented and working on my system, so the transfer of the bin should be quite easy.&lt;/p&gt;
&lt;p&gt;I have &amp;quot;only&amp;quot; to set up the transfer of the bin and the MCUboot settings for swapping the images. &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f604.svg" title="Smile"&gt;&amp;#x1f604;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I have to go deep into MCUBoot handling for understanding how to implement what you suggest. maybe this can help me...&lt;br /&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/mcuboot/design.html"&gt;developer.nordicsemi.com/.../design.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Handle OTA update on nRF52840 using an ESP32 with AT COMMANDS as Cloud Interface</title><link>https://devzone.nordicsemi.com/thread/392576?ContentTypeID=1</link><pubDate>Wed, 26 Oct 2022 10:34:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b29b279-ac1a-4ef0-8508-88b6ffe59ac7</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;I&amp;#39;m assuming &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/77869/update-code-via-uart-instead-of-fota-nrf9160"&gt;this&lt;/a&gt; is the post you are referring to. &lt;/p&gt;
[quote user=""]once I have the .bin into RAM of nRF52840, I have to implement the ( ? CRC or Md5 ) to &lt;strong&gt;check if the .bin is okay&lt;/strong&gt; and not corrupted during download[/quote]
&lt;p&gt;You don&amp;#39;t need to implement this yourself, it will be handled by MCUboot. You will need to make sure that MCUboot uses the public key associated with the private key used to sign the .bin file.&lt;/p&gt;
&lt;p&gt;Also, have you tried to ask on &lt;a href="https://www.esp32.com/viewforum.php?f=23&amp;amp;sid=d4f57be1c4ccf724557eda8283592a75"&gt;this forum&lt;/a&gt;? It should be more helpful with ESP32 specific questions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Handle OTA update on nRF52840 using an ESP32 with AT COMMANDS as Cloud Interface</title><link>https://devzone.nordicsemi.com/thread/392209?ContentTypeID=1</link><pubDate>Mon, 24 Oct 2022 14:58:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44a0a929-f26f-4fd0-b581-a104665f3d53</guid><dc:creator>enpre</dc:creator><description>&lt;p&gt;Hi Hakon, we talk with&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/simoniversen"&gt;Simon&lt;/a&gt;&amp;nbsp; in other posts about this issue.&lt;br /&gt;The example you quoted me is very interesting...&amp;nbsp;&lt;br /&gt;&lt;br /&gt;It seems to be something near my task... I have one question, as it&amp;#39;s important:&lt;br /&gt;&lt;br /&gt;How much of that example and connected library can I re-use?&amp;nbsp;&lt;br /&gt;I mean, if I have to implement from scratch the&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;fmfu_fdev_load ( )&lt;br /&gt;&lt;br /&gt;Function ?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;In that case, I have to re-implement also&amp;nbsp;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;nrf_modem_full_dfu_init ( )&amp;nbsp;&lt;br /&gt;to put my nRF52840 in DFU mode ...?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;It seems quite a huge work for something that is quite requested from the market, and that&amp;#39;s why I asked if someone has implement already something to continue... I can and I&amp;#39;m happy to collaborate with someone in order to release a guide for FOTA updates with Nordic devs, but I&amp;#39;m not an extreme expert of Zephyr/NCS even if I had work on from some months ago... but alone, it could take months to make it from scratch.&lt;br /&gt;&lt;br /&gt;Thank you for your BIG support guys!&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Handle OTA update on nRF52840 using an ESP32 with AT COMMANDS as Cloud Interface</title><link>https://devzone.nordicsemi.com/thread/389975?ContentTypeID=1</link><pubDate>Mon, 10 Oct 2022 10:37:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d62c81a-2c1c-492a-aa05-ea9dba88452c</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]What I have to understand is how to implement theese parts, or if there&amp;#39;s a quicker method to implement an update over the air in a semi-automatic way.[/quote]
&lt;p&gt;There some samples in the SDK that demontrate how to do firmware upgrades over the air. You can look at &lt;a href="https://github.com/nrfconnect/sdk-nrf/tree/main/samples/nrf9160/http_update/application_update"&gt;this sample&lt;/a&gt;, and port it to your device.&lt;/p&gt;
[quote user=""]Can we make together a guide for this ? Open a blog post in order to give help to future guys who will be here at my same point,&amp;nbsp;trying to update their magic devices?[/quote]
&lt;p&gt;If you want to write a blog post about this, that would be much appreciated and helpful to the community.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>