<?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&amp;#39;t upload image in serial recovery mode with mcumgr</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/107657/can-t-upload-image-in-serial-recovery-mode-with-mcumgr</link><description>I need to add a bootloader to my custom board to update the firmware in the future. For my purpose the serial recovery mode via UART is what I&amp;#39;m looking for. I&amp;#39;ve read this example and I&amp;#39;ve adapted it to my custom board and made a test application. Now</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 Jan 2024 16:21:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/107657/can-t-upload-image-in-serial-recovery-mode-with-mcumgr" /><item><title>RE: Can't upload image in serial recovery mode with mcumgr</title><link>https://devzone.nordicsemi.com/thread/465656?ContentTypeID=1</link><pubDate>Tue, 23 Jan 2024 16:21:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4551509d-2e0c-4473-befd-b240378acbee</guid><dc:creator>Andrea Verdecchia</dc:creator><description>[quote userid="106736" url="~/f/nordic-q-a/107657/can-t-upload-image-in-serial-recovery-mode-with-mcumgr/465647"]Serial Recovery has a reduced command set for SMP, to save space. Echo is not expected to work.[/quote]
&lt;p&gt;Ok, I get it.&amp;nbsp;&lt;/p&gt;
[quote userid="106736" url="~/f/nordic-q-a/107657/can-t-upload-image-in-serial-recovery-mode-with-mcumgr/465647"]It may very well be that my example is configured wrong. It is the &amp;quot;unofficial&amp;quot; part of it, where I do not guarantee proper testing. I think I should maybe update it to not specify MTU and just use the default instead.[/quote]
&lt;p&gt;So&amp;nbsp;everything is normal, good! Thanks anyway.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't upload image in serial recovery mode with mcumgr</title><link>https://devzone.nordicsemi.com/thread/465647?ContentTypeID=1</link><pubDate>Tue, 23 Jan 2024 15:36:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79e9fe5a-dd6b-4349-9340-60f2c70da2b2</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Good job figuring that out!&lt;/p&gt;
[quote user="Thoraz"]But the echo command still not works. [/quote]
&lt;p&gt;Serial Recovery has a reduced command set for SMP, to save space. Echo is not expected to work.&lt;/p&gt;
[quote user="Thoraz"]I took the value 512 from the &lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/serial_recovery/mcuboot_serial_recovery_uart"&gt;exampe&lt;/a&gt; and I can&amp;#39;t find why for me doesn&amp;#39;t work.[/quote]
&lt;p&gt;It may very well be that my example is configured wrong. It is the &amp;quot;unofficial&amp;quot; part of it, where I do not guarantee proper testing. I think I should maybe update it to not specify MTU and just use the default instead.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't upload image in serial recovery mode with mcumgr</title><link>https://devzone.nordicsemi.com/thread/465561?ContentTypeID=1</link><pubDate>Tue, 23 Jan 2024 12:49:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:249dc05f-ca68-4105-87a7-e54b3309ca22</guid><dc:creator>Andrea Verdecchia</dc:creator><description>&lt;p&gt;Hold on!!! I think I just found the problem. In the connection configuration of mcumgr if I set the mtu=128 the upload command works! But the echo command still not works. For me is enough but can you explain me why the mtu size is the problem? I took the value 512 from the &lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/serial_recovery/mcuboot_serial_recovery_uart"&gt;exampe&lt;/a&gt; and I can&amp;#39;t find why for me doesn&amp;#39;t work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't upload image in serial recovery mode with mcumgr</title><link>https://devzone.nordicsemi.com/thread/465553?ContentTypeID=1</link><pubDate>Tue, 23 Jan 2024 12:31:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c99d355-9939-45fd-9bdd-51f8e45d7bdc</guid><dc:creator>Andrea Verdecchia</dc:creator><description>[quote userid="106736" url="~/f/nordic-q-a/107657/can-t-upload-image-in-serial-recovery-mode-with-mcumgr/465550"]Do you have a nRF Developement Kit? If so, have you been able test the sample for that?[/quote]
&lt;p&gt;I&amp;#39;ve just tested it on the nRF52840DK and it gave me same issue:&amp;nbsp; the only command that seems to work is the &lt;em&gt;&amp;quot;image list&amp;quot;&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;C:\ncsapps\gravity\sdk_2_5_1\test\smp_dfu&amp;gt;mcumgr -c COM17 image list
Images:
 image=0 slot=0
    version: 0.0.0
    bootable: false
    flags:
    hash: aad9eaa9ae50d2c4c86d7a968b5f5b55002e2159d60fd79225d95e728778758c
Split status: N/A (0)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;One question: if the &lt;em&gt;&amp;quot;image list&amp;quot;&lt;/em&gt; command returns it means that the UART serial interface in mcuboot&amp;nbsp;is working properly, am I right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't upload image in serial recovery mode with mcumgr</title><link>https://devzone.nordicsemi.com/thread/465550?ContentTypeID=1</link><pubDate>Tue, 23 Jan 2024 12:25:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da7923f7-7467-41d7-ab99-3bd06c01d122</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;First, it is a good idea to check if the issue is on the PC side or PCB side.&lt;/p&gt;
&lt;p&gt;Do you have a nRF Developement Kit? If so, have you been able test the sample for that?&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></channel></rss>