<?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>NRF5340 firmware update using STM32 controller via serial recovery mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/118631/nrf5340-firmware-update-using-stm32-controller-via-serial-recovery-mode</link><description>Hi all, 
 i am trying to update the nrf5340 firmware using STM32 as the master controller via UART. i initially tried to upload the .bin file of my project to nrf5340 using MCUmgr tool and it was successful. so i tried to incorporate the SMP (simple Management</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 Feb 2025 12:54:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/118631/nrf5340-firmware-update-using-stm32-controller-via-serial-recovery-mode" /><item><title>RE: NRF5340 firmware update using STM32 controller via serial recovery mode</title><link>https://devzone.nordicsemi.com/thread/521547?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2025 12:54:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cfa2d552-c2ec-4081-bae4-c617b52d8c49</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If your nRF5340 can receive the firmware image from the main application, you can use the&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/libraries/dfu/dfu_target.html"&gt;DFU target&lt;/a&gt; library to stage updates in the secondary slots. It does not matter how the .bin files are transferred to the device if you&amp;nbsp;would prefer to use another transfer method than SMP. With serial recovery, you are limited to the SMP protocol unless you are prepared to customize the bootloader.&amp;nbsp;&lt;/p&gt;
[quote user=""]however, i failed to implement it since i could not get proper data packeting and encoding format. [/quote]
&lt;p&gt;I would compare it with the packets sent by the MCUmgr tool to&amp;nbsp;see&amp;nbsp;what the differences are.&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>