<?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>upload new image via serial uart in mcuboot</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/82939/upload-new-image-via-serial-uart-in-mcuboot</link><description>hardware board : 52840dk_52840 
 sdk : ncs1.7.1 
 IDE: Visual Studio Code 
 in our OTA design , we have new image download and stored in a LTE module, since our application is a bit large ,which may be more than 512K bytes ,so we want to upload new image</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 20 Dec 2021 10:14:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/82939/upload-new-image-via-serial-uart-in-mcuboot" /><item><title>RE: upload new image via serial uart in mcuboot</title><link>https://devzone.nordicsemi.com/thread/344300?ContentTypeID=1</link><pubDate>Mon, 20 Dec 2021 10:14:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7e40f08-85ec-4400-bd9c-4bcf2f0a7b3f</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s a thread on this matter, with an example project on how to enable the serial recovery:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/80870/fota-update-for-nrf9160-device-via-uart"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/80870/fota-update-for-nrf9160-device-via-uart&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For multi-image&amp;nbsp;slots (dual banked), you can have a look at the smp_svr example:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.zephyrproject.org/2.6.0/samples/subsys/mgmt/mcumgr/smp_svr/README.html#building-the-sample-application"&gt;https://docs.zephyrproject.org/2.6.0/samples/subsys/mgmt/mcumgr/smp_svr/README.html#building-the-sample-application&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]1# what other configurations we need do set mcuboot using serial to upload new image in mcuboot? apart from CONFIG_MCUBOOT_SERIAL[/quote]
&lt;p&gt;technically not much, you should configure the pin you want to assert to enter recovery via &amp;quot;CONFIG_BOOT_SERIAL_DETECT_PIN&amp;quot;.&lt;/p&gt;
[quote user=""]2#which api in mcuboot use to write a new packet of image data in to flash area?[/quote][quote user=""]3#which api in mcuboot use to decode a new packet of image data ?[/quote][quote user=""]4#which api in mcuboot use to validate security feature of the new image file, signed or NOT?[/quote][quote user=""]5#which api in mcuboot use to jump to application[/quote]
&lt;p&gt;You are asking very specific questions related to how mcuboot works under-the-hood, and most of this info can be read in the mcuboot documentation and running the example(s) to get familiar with mcuboot:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/mcuboot/design.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/mcuboot/design.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>