<?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>Not able to update firmware over UART using MCUboot: flag shows pending</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/101461/not-able-to-update-firmware-over-uart-using-mcuboot-flag-shows-pending</link><description>I tried to update firmware over UART (using MCUboot). 
 The flag shows test pending , and was able to test the application and provide expected output. 
 But was not able to &amp;quot;confirm image&amp;quot;, it shows Error:NMP timeout, when the confirm image command is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 22 Aug 2023 13:49:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/101461/not-able-to-update-firmware-over-uart-using-mcuboot-flag-shows-pending" /><item><title>RE: Not able to update firmware over UART using MCUboot: flag shows pending</title><link>https://devzone.nordicsemi.com/thread/442599?ContentTypeID=1</link><pubDate>Tue, 22 Aug 2023 13:49:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03ac9550-d457-4d0b-8ef1-f270602afc1c</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I will continue to help in this case.&lt;/p&gt;
&lt;p&gt;In your case, I would recommend using Serial Recovery mode.&lt;br /&gt;See my unofficial explanation and samples at &lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/serial_recovery"&gt;https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/serial_recovery&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to update firmware over UART using MCUboot: flag shows pending</title><link>https://devzone.nordicsemi.com/thread/442178?ContentTypeID=1</link><pubDate>Sun, 20 Aug 2023 14:32:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41797028-5bd3-4f0f-8222-c80748aec1c8</guid><dc:creator>lorao</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/hungbui"&gt;Hung Bui&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am trying to implement a logic on nRF52840, to send image file over UART in bootloader mode.&lt;br /&gt;Please can you suggest what needs to be taken care for this.&lt;/p&gt;
&lt;p&gt;Note: I don&amp;#39;t want to use dependencies like mcumgr.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to update firmware over UART using MCUboot: flag shows pending</title><link>https://devzone.nordicsemi.com/thread/440162?ContentTypeID=1</link><pubDate>Mon, 07 Aug 2023 14:44:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09009ef8-9182-4972-864f-2605251ccb83</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Rao,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am not really sure what you are planning to do.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you following any example ? Have you looked at&amp;nbsp;\zephyr\tests\subsys\dfu\img_util example ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to update firmware over UART using MCUboot: flag shows pending</title><link>https://devzone.nordicsemi.com/thread/440129?ContentTypeID=1</link><pubDate>Mon, 07 Aug 2023 13:33:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22f55e01-a1f3-45f4-baf6-ccabedc4a63b</guid><dc:creator>lorao</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/hungbui"&gt;Hung Bui&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1691044504806v1.png" /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It works fine, when just&amp;nbsp;&lt;strong&gt;flash_img.h&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;is included.&lt;/p&gt;
&lt;p&gt;But, when I try to use&lt;strong&gt;&amp;nbsp;flash_img_init_id and&amp;nbsp;flash_img_buffered_write which is defined in&amp;nbsp;&lt;em&gt;flash_img.h&lt;/em&gt;&lt;span&gt;&lt;em&gt;&amp;nbsp;&lt;/em&gt;shows an linker error. Also tried to add this in CmakeList.txt, but still shows an linker error:&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span&gt;Error:&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1691045364370v1.png" /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span&gt;Thank you&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to update firmware over UART using MCUboot: flag shows pending</title><link>https://devzone.nordicsemi.com/thread/439543?ContentTypeID=1</link><pubDate>Wed, 02 Aug 2023 14:51:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6aaf04dd-ff36-48f7-a035-2c83e707e1aa</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Rao,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sigurd is away for a few weeks and I will take over the case.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you please explain what you want to achieve with the LED ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As far as I know the CONFIG_MCUBOOT_INDICATION_LED only works with the MCUBoot serial recovery mode.&amp;nbsp;&lt;br /&gt;So if the device doesn&amp;#39;t enter the MCUBoot&amp;#39;s recovery mode, the LED will not turn on.&lt;br /&gt;When the MCUBoot enters serial recovery mode, it will not boot the application.&amp;nbsp;&lt;br /&gt;So I don&amp;#39;t expect to see the LED to be turned on when the application is running.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to update firmware over UART using MCUboot: flag shows pending</title><link>https://devzone.nordicsemi.com/thread/439183?ContentTypeID=1</link><pubDate>Tue, 01 Aug 2023 08:12:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35014b47-8b4f-4c9e-94f7-ea12bbed6bfa</guid><dc:creator>lorao</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/sigurd-hellesvik"&gt;Sigurd Hellesvik&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I am using&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;CONFIG_MCUBOOT_SERIAL&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;from&amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;&amp;#39;ncs\v2.4.0\bootloader\mcuboot\boot\zephyr\main.c&amp;#39;&lt;span&gt;&amp;nbsp;&lt;/span&gt;in&amp;nbsp;&lt;/strong&gt;the application running on nRF52840dk.&lt;/p&gt;
&lt;p&gt;And the&amp;nbsp;&lt;strong&gt;CONFIG_MCUBOOT_SERIAL&lt;/strong&gt;&lt;span&gt;&amp;nbsp;is configured to use LED (as shown below)&lt;/span&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/2746.pastedimage1690877250199v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Also included in mcuboot.conf file (see below)&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/0602.pastedimage1690877373907v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But the LED doesn&amp;#39;t go ON when this application is executed.&lt;br /&gt;Please can you comment here, if something else needs to be taken care?&lt;br /&gt;&lt;br /&gt;Thankyou&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to update firmware over UART using MCUboot: flag shows pending</title><link>https://devzone.nordicsemi.com/thread/438026?ContentTypeID=1</link><pubDate>Tue, 25 Jul 2023 09:31:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea688ad1-f2d1-4dc8-93da-14e47f411bbe</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="lorao"] am trying to update firmware from one nordic board to an other nordic board.&lt;br /&gt;Is it possible to do it &lt;strong&gt;without&lt;/strong&gt; &lt;strong&gt;using&amp;nbsp;mcumgr command?&amp;nbsp;&lt;/strong&gt;[/quote]
&lt;p&gt;Yes. you can use an SMP Client on one nordic board and an SMP Server on another nordic board.&lt;br /&gt;See my answer in&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/102004/trying-to-perform-ota-to-a-nrf52840-device-via-nrf9160-lte-connection/437216"&gt;RE: Trying to perform OTA to a nRF52840 device via nRF9160 LTE connection&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to update firmware over UART using MCUboot: flag shows pending</title><link>https://devzone.nordicsemi.com/thread/437763?ContentTypeID=1</link><pubDate>Sun, 23 Jul 2023 20:14:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:419dab39-1995-4c44-9f0f-38f7963cae5a</guid><dc:creator>lorao</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/sigurd-hellesvik"&gt;Sigurd Hellesvik&lt;/a&gt;&amp;nbsp;&lt;br /&gt;I am trying to update firmware from one nordic board to an other nordic board.&lt;br /&gt;Is it possible to do it &lt;strong&gt;without&lt;/strong&gt; &lt;strong&gt;using&amp;nbsp;mcumgr command?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Can we send a custom commands to SMP server over UART&amp;nbsp;in order to update the firmware?&amp;nbsp;&lt;br /&gt;&lt;/strong&gt;Please let me know the possibilities here.&lt;br /&gt;&lt;br /&gt;Thank you!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to update firmware over UART using MCUboot: flag shows pending</title><link>https://devzone.nordicsemi.com/thread/437013?ContentTypeID=1</link><pubDate>Tue, 18 Jul 2023 12:27:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b1036bf-d313-4b87-8307-ade18a9bfd09</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;In that case, the USB TTL serial cable has an COM port or ACM port for use. &lt;br /&gt;This port can be refferenced by mcumgr&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to update firmware over UART using MCUboot: flag shows pending</title><link>https://devzone.nordicsemi.com/thread/436876?ContentTypeID=1</link><pubDate>Tue, 18 Jul 2023 05:50:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4d0d5e4-9eb1-48c8-91b3-d2b0b8d89bb1</guid><dc:creator>lorao</dc:creator><description>&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/sigurd-hellesvik"&gt;Sigurd Hellesvik&lt;/a&gt;&amp;nbsp;Yes im using&amp;nbsp;USB TTL Serial cables.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to update firmware over UART using MCUboot: flag shows pending</title><link>https://devzone.nordicsemi.com/thread/436641?ContentTypeID=1</link><pubDate>Mon, 17 Jul 2023 07:03:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4cc661a-bd99-4169-a7dc-d4cb41ca650d</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;How will you connect the UART from your laptop?&lt;/p&gt;
&lt;p&gt;Will you use some kind of USB to UART converter?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to update firmware over UART using MCUboot: flag shows pending</title><link>https://devzone.nordicsemi.com/thread/436603?ContentTypeID=1</link><pubDate>Sun, 16 Jul 2023 21:28:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b50673cf-0a1a-4906-866b-504bc0ef5d6a</guid><dc:creator>lorao</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/sigurd-hellesvik"&gt;Sigurd Hellesvik&lt;/a&gt;&amp;nbsp;Thank you for the link.&lt;br /&gt;Since I&amp;#39;m trying to run SMP client using UART (run in the laptop), where it can send commands to SMP server, I did not find any example or document for UART.&lt;/p&gt;
&lt;p&gt;Please can you suggest what method can be followed here and any example that can be used by modifying it.&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to update firmware over UART using MCUboot: flag shows pending</title><link>https://devzone.nordicsemi.com/thread/436162?ContentTypeID=1</link><pubDate>Thu, 13 Jul 2023 08:06:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89b14df0-0963-4842-8696-301e3e1f12d2</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.0/zephyr/services/device_mgmt/mcumgr.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.0/zephyr/services/device_mgmt/mcumgr.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to update firmware over UART using MCUboot: flag shows pending</title><link>https://devzone.nordicsemi.com/thread/436067?ContentTypeID=1</link><pubDate>Wed, 12 Jul 2023 16:56:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c95c54a-d4e2-4ba5-a3f0-5eb916829f2a</guid><dc:creator>lorao</dc:creator><description>&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/sigurd-hellesvik"&gt;Sigurd Hellesvik&lt;/a&gt;&amp;nbsp;with&amp;nbsp;&amp;nbsp;v2.4.0 it works fine.&lt;/p&gt;
&lt;p&gt;Please can you provide an example for&lt;strong&gt; &amp;quot;SMP Client&amp;quot;&lt;/strong&gt;&amp;nbsp;(to transfer over UART) or suggestions on how to implement this?&lt;br /&gt;&lt;strong&gt;I am planning to run SMP Client in my laptop itself&lt;/strong&gt;, &lt;strong&gt;to update firmware over UART.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Any information on this is much appreciated.&amp;nbsp;&lt;br /&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to update firmware over UART using MCUboot: flag shows pending</title><link>https://devzone.nordicsemi.com/thread/435974?ContentTypeID=1</link><pubDate>Wed, 12 Jul 2023 12:34:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a828baf9-2579-4305-8bff-6e77eb366178</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;In v2.4.0, Serial Recovery was upgraded to print some more information about the image.&lt;/p&gt;
&lt;p&gt;What you see is expected before v2.4.0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to update firmware over UART using MCUboot: flag shows pending</title><link>https://devzone.nordicsemi.com/thread/435941?ContentTypeID=1</link><pubDate>Wed, 12 Jul 2023 10:48:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d136f08-8dd3-4202-8e8c-708fd9a481b0</guid><dc:creator>lorao</dc:creator><description>&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/sigurd-hellesvik"&gt;Sigurd Hellesvik&lt;/a&gt;&amp;nbsp;Thank you so much for the feedback.&lt;br /&gt;I will try it again if not then I will use &amp;#39;ncs 2.4.0&amp;#39; version.&lt;br /&gt;&lt;br /&gt;Also in my case I dont see the &amp;#39;hash&amp;#39; value as shown below:&lt;/p&gt;
&lt;p&gt;Images:&lt;br /&gt; image=0 slot=0&lt;br /&gt; version: 0.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;br /&gt;&lt;br /&gt;Any reason why&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to update firmware over UART using MCUboot: flag shows pending</title><link>https://devzone.nordicsemi.com/thread/435907?ContentTypeID=1</link><pubDate>Wed, 12 Jul 2023 09:27:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63c3e860-8316-4c71-836a-e5ceb6db6487</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Your sample works for me. See the recording:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/main.c-_2D00_-MCUboot_5F00_FW_5F00_update_5F00_wait_5F00_time-_2D00_-Visual-Studio-Code-2023_2D00_07_2D00_12-11_2D00_20_2D00_02.mp4"&gt;devzone.nordicsemi.com/.../main.c-_2D00_-MCUboot_5F00_FW_5F00_update_5F00_wait_5F00_time-_2D00_-Visual-Studio-Code-2023_2D00_07_2D00_12-11_2D00_20_2D00_02.mp4&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to update firmware over UART using MCUboot: flag shows pending</title><link>https://devzone.nordicsemi.com/thread/435797?ContentTypeID=1</link><pubDate>Tue, 11 Jul 2023 16:53:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bab4c8cb-ad09-4be7-a081-853b7541824c</guid><dc:creator>lorao</dc:creator><description>&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/sigurd-hellesvik"&gt;Sigurd Hellesvik&lt;/a&gt;&amp;nbsp;Please find the attachment below:&lt;br /&gt;Issue: I can update the image file but the application does not run after update And also it stays in the bootloader mode.&lt;br /&gt;Thank you&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to update firmware over UART using MCUboot: flag shows pending</title><link>https://devzone.nordicsemi.com/thread/435779?ContentTypeID=1</link><pubDate>Tue, 11 Jul 2023 14:40:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85820c9f-6dc1-4376-8566-b0f8a69587fd</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="lorao"]&lt;div&gt;&lt;span&gt;CONFIG_BOOT_SERIAL_WAIT_FOR_DFU&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BOOT_SERIAL_WAIT_FOR_DFU_TIMEOUT&lt;/span&gt;&lt;span&gt;=10000&lt;/span&gt;&lt;/div&gt;[/quote]
&lt;p&gt;I tried this briefly, and I can update the application multiple times.&lt;/p&gt;
&lt;p&gt;Can you upload a zip of the sample you use so I can use that to reproduce?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to update firmware over UART using MCUboot: flag shows pending</title><link>https://devzone.nordicsemi.com/thread/435532?ContentTypeID=1</link><pubDate>Mon, 10 Jul 2023 14:22:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27f6d3b4-90be-48fd-b6aa-dde26b40186f</guid><dc:creator>lorao</dc:creator><description>&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/sigurd-hellesvik"&gt;Sigurd Hellesvik&lt;/a&gt;&amp;nbsp;Now the bootloader lit&amp;#39;s up the LED for 5 sec and waits for&amp;nbsp;&lt;strong&gt;&lt;em&gt;mcumgr &lt;/em&gt;&lt;/strong&gt;command and if there are no commands&amp;nbsp;send in 5 sec then LED turn off (works as expected)&lt;/p&gt;
&lt;p&gt;&lt;span class="go"&gt;&lt;strong&gt;But after updating the application firmware, and resetting the device, then later the LED turns ON back after 5 secs and never runs the application.&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;And it works fine if the below configs are not included:&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;&lt;span&gt;# Enable wait for DFU functionality&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BOOT_SERIAL_WAIT_FOR_DFU&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BOOT_SERIAL_WAIT_FOR_DFU_TIMEOUT&lt;/span&gt;&lt;span&gt;=10000&lt;/span&gt;&lt;/div&gt;
&lt;p&gt;&lt;span class="go"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to update firmware over UART using MCUboot: flag shows pending</title><link>https://devzone.nordicsemi.com/thread/435520?ContentTypeID=1</link><pubDate>Mon, 10 Jul 2023 13:30:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c2611ec-a541-47ca-8650-9062f5916b18</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;This works fine on my end.&lt;/p&gt;
&lt;p&gt;Turns out that &lt;a href="https://github.com/nrfconnect/sdk-mcuboot/blob/4e84f31172c5120bb9d300603d28ff2759d7b640/boot/zephyr/Kconfig#L501C1-L501C30"&gt;CONFIG_MCUBOOT_INDICATION_LED&lt;/a&gt; only works for Button mode, and is not supported for Wait mode.&lt;/p&gt;
&lt;p&gt;If you want to enable this for Wait mode, you can apply these changes&amp;nbsp; temporarily to MCUboot:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;diff --git a/boot/zephyr/main.c b/boot/zephyr/main.c
index 2c5f9afd..3081f845 100644
--- a/boot/zephyr/main.c
+++ b/boot/zephyr/main.c
@@ -620,9 +620,14 @@ void main(void)
      * some time, so it&amp;#39;s better to reuse thistime to already receive the
      * initial mcumgr command(s) into our buffers
      */
+
+#ifdef CONFIG_MCUBOOT_INDICATION_LED
+        gpio_pin_set_dt(&amp;amp;led0, 1);
+#endif
     rc = boot_console_init();
     int timeout_in_ms = CONFIG_BOOT_SERIAL_WAIT_FOR_DFU_TIMEOUT;
     uint32_t start = k_uptime_get_32();
+
 #endif
 
     FIH_CALL(boot_go, fih_rc, &amp;amp;rsp);
@@ -646,6 +651,10 @@ void main(void)
         timeout_in_ms = 1;
     }
     boot_serial_check_start(&amp;amp;boot_funcs,timeout_in_ms);
+
+#ifdef CONFIG_MCUBOOT_INDICATION_LED
+        gpio_pin_set_dt(&amp;amp;led0, 0);
+#endif
 #endif
 
     if (FIH_NOT_EQ(fih_rc, FIH_SUCCESS)) {
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Are you able to see that sys_reboot(SYS_REBOOT_COLD) works with these changes?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to update firmware over UART using MCUboot: flag shows pending</title><link>https://devzone.nordicsemi.com/thread/435503?ContentTypeID=1</link><pubDate>Mon, 10 Jul 2023 12:55:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be8bed7c-6a5e-4c05-81a5-db73c8d5e8a5</guid><dc:creator>lorao</dc:creator><description>&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/sigurd-hellesvik"&gt;Sigurd Hellesvik&lt;/a&gt;&amp;nbsp;Yes by pressing&amp;nbsp;&lt;strong&gt;button 1&lt;/strong&gt; while power cycle the bootloader runs fine.&lt;br /&gt;Also LED lights up (&lt;strong&gt;LED 1&lt;/strong&gt;) for&amp;nbsp;&lt;strong&gt;&lt;em&gt;&amp;nbsp;&lt;strong class="final-path"&gt;mcuboot_serial_recovery_uart&lt;/strong&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;But not with reset button&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to update firmware over UART using MCUboot: flag shows pending</title><link>https://devzone.nordicsemi.com/thread/435475?ContentTypeID=1</link><pubDate>Mon, 10 Jul 2023 11:53:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17e1d6dd-5d1e-4c93-aa1b-35d6fb92beab</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Does the bootloader run if you reboot the device manually? (via button or reset pin)&lt;/p&gt;
&lt;p&gt;Also, try to set &lt;a href="https://github.com/nrfconnect/sdk-mcuboot/blob/4e84f31172c5120bb9d300603d28ff2759d7b640/boot/zephyr/Kconfig#L501C1-L501C30"&gt;CONFIG_MCUBOOT_INDICATION_LED&lt;/a&gt; for MCUboot, and see if the LED lights up&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to update firmware over UART using MCUboot: flag shows pending</title><link>https://devzone.nordicsemi.com/thread/435470?ContentTypeID=1</link><pubDate>Mon, 10 Jul 2023 11:50:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7a8cd7e-3584-4b95-bc64-695e00738b94</guid><dc:creator>lorao</dc:creator><description>&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/sigurd-hellesvik"&gt;Sigurd Hellesvik&lt;/a&gt;&amp;nbsp;&amp;nbsp;I have implemented UART handler to call&amp;nbsp;&lt;strong&gt;sys_reboot(SYS_REBOOT_COLD).&lt;/strong&gt;&lt;em&gt;&lt;br /&gt;&lt;/em&gt;And using bootloader from your example&lt;strong&gt;&lt;em&gt;&amp;nbsp;&lt;strong class="final-path"&gt;mcuboot_serial_recovery_uart &lt;/strong&gt;&lt;/em&gt;&lt;/strong&gt;by adding&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;# Enable wait for DFU functionality&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BOOT_SERIAL_WAIT_FOR_DFU&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BOOT_SERIAL_WAIT_FOR_DFU_TIMEOUT&lt;/span&gt;&lt;span&gt;=10000&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;And it does not start bootloader after reboot.&lt;br /&gt;Please can you suggest, if something else needs to be taken care of.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Thank you!&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to update firmware over UART using MCUboot: flag shows pending</title><link>https://devzone.nordicsemi.com/thread/435393?ContentTypeID=1</link><pubDate>Mon, 10 Jul 2023 06:49:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33d476ad-7075-4836-bd19-1b4c2773651f</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="Sigurd Hellesvik"]In your application, you can create an UART handler which calls sys_reboot() on your device.[/quote]
&lt;p&gt;Main application&lt;/p&gt;
[quote user="Sigurd Hellesvik"]Then send an mcumgr command during the wait period.[/quote]
&lt;p&gt;External device.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The bootlaoder runs before the application, and stops when the application is running&lt;br /&gt;Therefore, you can not receive input to the bootloader when the main application is running.&lt;br /&gt;The device must be reset for the bootloader to run again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>