<?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>Bootloader via UART without shell</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/108755/bootloader-via-uart-without-shell</link><description>I have a custom board with STM32L4 and nrf52840 micros. I need to upgrade the nrf52 micro with an image saved into the flash of the STM32L4 micro, so I have not a shell just an UART. 
 
 I have used the MCUMGR module to upgrade a board connected via USB</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 01 Mar 2024 08:14:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/108755/bootloader-via-uart-without-shell" /><item><title>RE: Bootloader via UART without shell</title><link>https://devzone.nordicsemi.com/thread/471695?ContentTypeID=1</link><pubDate>Fri, 01 Mar 2024 08:14:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7869b926-34d6-4169-8c7e-3f3b8ec58378</guid><dc:creator>JuanAlm</dc:creator><description>&lt;p&gt;I think it is worth having the answer here for the rest of the users.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader via UART without shell</title><link>https://devzone.nordicsemi.com/thread/471691?ContentTypeID=1</link><pubDate>Fri, 01 Mar 2024 07:59:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b2366de-e5a1-45ac-988e-69fc45d45826</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I see you posted the same questions on Discord.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader via UART without shell</title><link>https://devzone.nordicsemi.com/thread/471595?ContentTypeID=1</link><pubDate>Thu, 29 Feb 2024 14:59:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ddbd2c2-b54f-48d6-9540-a38c44f8a9a7</guid><dc:creator>JuanAlm</dc:creator><description>&lt;p&gt;&lt;span&gt;Im looking SMP client and it looks quite difficult to adapt to FreeRTOS &lt;/span&gt;&lt;span&gt;(RTOS im using in my STM32 micro&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;. So if I understand it good&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;1&lt;/span&gt;&lt;span&gt;&amp;ordm;&lt;/span&gt;&lt;span&gt;) SMP is for controlling the bootloader&lt;/span&gt;&lt;span&gt;? &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2&lt;/span&gt;&lt;span&gt;&amp;ordm;&lt;/span&gt;&lt;span&gt;) Bootloader there are 2 options&lt;/span&gt;&lt;span&gt;, MCUBoot and nRF Secure Immutable Bootloader&lt;/span&gt;&lt;span&gt;, right&lt;/span&gt;&lt;span&gt;? &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3&lt;/span&gt;&lt;span&gt;&amp;ordm;&lt;/span&gt;&lt;span&gt;) Would it be easier to code it myself something to comunicate directly with the bootloader instead of adapting SMP to FreeRTOS&lt;/span&gt;&lt;span&gt;?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Respect my last question I have found this:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/95650/dfu-without-mcumgr-and-smp-server"&gt;DFU without mcumgr and SMP server&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Any advance in this respect?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader via UART without shell</title><link>https://devzone.nordicsemi.com/thread/471508?ContentTypeID=1</link><pubDate>Thu, 29 Feb 2024 11:45:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61c5e547-1b68-45fe-b0a0-2286ebf75961</guid><dc:creator>Vidar Berg</dc:creator><description>[quote user="JuanAlm"]1º) Why I need SMP protocol on the STM32 micro side?[/quote]
&lt;p&gt;Both sides need to have a common protocol for how the FW image should be transferred over the serial interface. You could always implement another method to handle the FW update, but that would require a custom solution.&lt;/p&gt;
[quote user="JuanAlm"]Can&amp;#39;t I use directly mcumgr on both micros?[/quote]
&lt;p&gt;mcumgr is a command line tool that can be run on Linux, macos, or Windows. It cannot be used on a &amp;#39;bare-metal&amp;#39; target.&lt;/p&gt;
[quote user="JuanAlm"]3º) Where can I find the diagram/step by step to use the smp/mcumgr protocol from the STM32 micro side? I can&amp;#39;t find smp or mcumgr modules for STM32 sdk.[/quote]
&lt;p&gt;I only know what&amp;#39;s available in Zephyr/nRF Connect SDK. SMP and MCUmgr client implementations can be found here:&amp;nbsp;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/tree/0014f3dc4dda0142561b6495fc9213a4eacf8c27/subsys/mgmt/mcumgr/grp"&gt;https://github.com/zephyrproject-rtos/zephyr/tree/0014f3dc4dda0142561b6495fc9213a4eacf8c27/subsys/mgmt/mcumgr/grp&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader via UART without shell</title><link>https://devzone.nordicsemi.com/thread/471455?ContentTypeID=1</link><pubDate>Thu, 29 Feb 2024 07:34:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b15be3a-77d6-48e5-872c-54a29439a1b9</guid><dc:creator>JuanAlm</dc:creator><description>&lt;p&gt;My questions now is:&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;1&amp;ordm;) Why I need SMP protocol on the STM32 micro side?&lt;/p&gt;
&lt;p&gt;2&amp;ordm;) Can&amp;#39;t I use directly mcumgr on both micros?&lt;/p&gt;
&lt;p&gt;3&amp;ordm;) Where can I find the diagram/step by step to use the smp/mcumgr protocol from the STM32 micro side? I can&amp;#39;t find smp or mcumgr modules for STM32 sdk.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Sorry but this is a mess for me. Thanks for your support!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader via UART without shell</title><link>https://devzone.nordicsemi.com/thread/471385?ContentTypeID=1</link><pubDate>Wed, 28 Feb 2024 16:09:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3af1e7a2-b3c6-4c05-a7a0-46289fdddc2d</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Unfortunately, I am not aware of any SMP client implementation that can be used directly. However, it should be&amp;nbsp;possible&amp;nbsp;to&amp;nbsp;use many of the components already available in the SDK to create your own module.&lt;/p&gt;
[quote user="JuanAlm"]2º) I have not buttons availables to press on my custom board.[/quote]
&lt;p&gt;This is not needed if your application can receive SMP commands.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader via UART without shell</title><link>https://devzone.nordicsemi.com/thread/471370?ContentTypeID=1</link><pubDate>Wed, 28 Feb 2024 14:59:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fed2b6c-f0eb-46fd-8820-82f6dc93564c</guid><dc:creator>JuanAlm</dc:creator><description>&lt;p&gt;Thansk for the fast reply!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I checked it and now I understand better. Anyway I have some questions. The&amp;nbsp;SMP client has to be on the STM32 micro and the server on the nrf52 micro, but I cant find a client SMP sample for UART. I just found this repository with a &lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/client_smp/smp_client_ble"&gt;SMP client for BLE&amp;nbsp;&lt;/a&gt;&amp;nbsp;but it says in the step 6 and 7 that a button has to be pressed.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So i have the next problems:&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;1&amp;ordm;) I cant find a SMP client for UART&lt;/p&gt;
&lt;p&gt;2&amp;ordm;) I have not buttons availables to press on my custom board.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader via UART without shell</title><link>https://devzone.nordicsemi.com/thread/471264?ContentTypeID=1</link><pubDate>Wed, 28 Feb 2024 11:56:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4264f47e-ea5f-428b-8db9-c0a21da933ae</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;STM32L4 must implement the mcumgr and SMP protocol to transfer the FW image to nRF52 target. Documentation for these protocols can be found here:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.2/zephyr/services/device_mgmt/mcumgr.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.2/zephyr/services/device_mgmt/mcumgr.html&lt;/a&gt;.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>