<?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>MCUmgr how to choose where to store signed image after upload?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110215/mcumgr-how-to-choose-where-to-store-signed-image-after-upload</link><description>Hello, I have a problem that when uploading signed image to Thingy53 - nrf5340 it will save it on to external flash. At least I am thinking that because it uses address of external flash in writing to flash function. My question is how can i choose target</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 16 Apr 2024 12:50:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110215/mcumgr-how-to-choose-where-to-store-signed-image-after-upload" /><item><title>RE: MCUmgr how to choose where to store signed image after upload?</title><link>https://devzone.nordicsemi.com/thread/478992?ContentTypeID=1</link><pubDate>Tue, 16 Apr 2024 12:50:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e00e6f8-6680-425b-adc0-90b87aaed77a</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;&lt;span&gt;During a FOTA update, there might not be enough space available in internal flash storage to store the existing application and network core images as well as the incoming images, so the incoming images must be stored in external flash storage.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Please take a look at the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/device_guides/working_with_nrf/nrf53/thingy53.html#thingy-53-application-guide"&gt;Thingy:53 application guide&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUmgr how to choose where to store signed image after upload?</title><link>https://devzone.nordicsemi.com/thread/478897?ContentTypeID=1</link><pubDate>Tue, 16 Apr 2024 08:55:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1be090ba-881e-4216-b73d-975a79d0b9b5</guid><dc:creator>Daver</dc:creator><description>&lt;p&gt;&lt;span&gt;Thank you for your answer.&amp;nbsp;I&amp;#39;m pretty new to partitions and DTS configurations. I will try the approach you recommended and read more about&amp;nbsp;&lt;a title="https://developer.nordicsemi.com/nrf_connect_sdk/doc/latest/nrf/config_and_build/bootloaders/bootloader.html#static-partition-requirement-for-dfu" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/config_and_build/bootloaders/bootloader.html#static-partition-requirement-for-dfu" rel="noopener noreferrer" target="_blank"&gt;Static partition requirement for DFU&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;My goal is simply to make smpsrv work on the other device using same&amp;nbsp;SoC (nrf5340) so I can perform OTA updates on the other device without using external flash. &lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUmgr how to choose where to store signed image after upload?</title><link>https://devzone.nordicsemi.com/thread/478814?ContentTypeID=1</link><pubDate>Mon, 15 Apr 2024 14:18:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00d2e134-3997-4ac4-9f45-8749eee13ff9</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote user=""]At least I am thinking that because it uses address of external flash in writing to flash function.[/quote]
&lt;p&gt;You can use the memory report to check the memory layout. If it uses the external memory, the layout would look like this.&lt;br /&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/pastedimage1713189448056v1.png" alt=" " /&gt;&lt;/p&gt;
[quote user=""]My question is how can i choose target destination of uploaded image? There is a project with nrf5340 without external flash so with pretty similar configuration it will freeze during uploading.[/quote]
&lt;p&gt;In general, the file will upload to&lt;span&gt;&amp;nbsp;th&lt;/span&gt;e&amp;nbsp;second slot&amp;nbsp;to&lt;span&gt; write the new image.&amp;nbsp;You should use the&amp;nbsp;&lt;span dir="ltr"&gt;static partitioning if you don&amp;#39;t.&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span dir="ltr"&gt;See &lt;a title="https://developer.nordicsemi.com/nrf_connect_sdk/doc/latest/nrf/config_and_build/bootloaders/bootloader.html#static-partition-requirement-for-dfu" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/config_and_build/bootloaders/bootloader.html#static-partition-requirement-for-dfu" rel="noopener noreferrer" target="_blank"&gt;Static partition requirement for DFU&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;The pm_static.yml of&amp;nbsp;smpsrv sample might be suitable for thingy53, so you could duplicate&amp;nbsp;partitions.yml under the build folder and then rename and replace the&amp;nbsp;pm_static.yml.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
[quote user=""](to be specific on thingy53 i use smpsrv sample with prj config and additional shown bellow[/quote]
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;Not sure why you have &amp;quot;CONFIG_SMP_CLIENT=y&amp;quot;. Are you making it as the&amp;nbsp;&lt;/span&gt;&lt;/span&gt;SMP Client? What would you want to achieve? Could you explain the goal?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;&lt;/span&gt;&lt;/span&gt;I see you can work with the default configs in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/109057/image-swap-with-mcumgr-does-not-work-after-reset-device-end-up-in-endless-loop/472930"&gt;this post&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>