<?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>Upgradable bootloader with sysbuild</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/116895/upgradable-bootloader-with-sysbuild</link><description>Hello, 
 I&amp;#39;m sorry to ask a maybe stupid question, but I&amp;#39;m a bit lost with the available boot loader options right now. 
 I want to setup an updatable and secure bootloader. 
 I know how to do it using child and parent images, but this approach is now</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 11 Dec 2024 12:02:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/116895/upgradable-bootloader-with-sysbuild" /><item><title>RE: Upgradable bootloader with sysbuild</title><link>https://devzone.nordicsemi.com/thread/514492?ContentTypeID=1</link><pubDate>Wed, 11 Dec 2024 12:02:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a9e3a93-8633-432f-8a41-f8cb6df73bd4</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi Christian,&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s a minimal sample that showcases how to set up the bootloader chain with the secondary application slot placed on the external flash. Do note it does not have any transport layers enabled, so you will have to for instance add BLE transport if you want to test it for DFU.&lt;/p&gt;
&lt;p&gt;Tested for nRF52840, NCS 2.8.0. I see that you&amp;#39;re using a nRF5340, but the principles&amp;nbsp;&lt;em&gt;should&lt;/em&gt; be the same, but it might need some configurations. Let me know if this is enough to get you going for now&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/chain_5F00_ft_5F00_ext_5F00_flash.zip"&gt;devzone.nordicsemi.com/.../chain_5F00_ft_5F00_ext_5F00_flash.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upgradable bootloader with sysbuild</title><link>https://devzone.nordicsemi.com/thread/514446?ContentTypeID=1</link><pubDate>Wed, 11 Dec 2024 09:13:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c48d9716-ee7e-4298-accb-8837be848b1c</guid><dc:creator>Rantanplan</dc:creator><description>&lt;p&gt;Hello Andreas,&lt;/p&gt;
&lt;p&gt;this will be great.&lt;/p&gt;
&lt;p&gt;At the moment, a single-stage MCUBOOT using external flash will also be fine.&lt;/p&gt;
&lt;p&gt;Many thanks and kind regards,&lt;/p&gt;
&lt;p&gt;Christian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upgradable bootloader with sysbuild</title><link>https://devzone.nordicsemi.com/thread/514314?ContentTypeID=1</link><pubDate>Tue, 10 Dec 2024 15:08:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:199faf75-7a4c-4393-816b-949192bfd79c</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi Christian,&lt;/p&gt;
[quote user="Rantanplan"]Could you please give me some advice how to use MCUBOOT with external flash and sysbuild?[/quote]
&lt;p&gt;I will see if I can find something for you or put together a minimal sample with full bootloader chain and external flash tomorrow (Wednesday) so you don&amp;#39;t have to wait for the course I mentioned to be updated.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upgradable bootloader with sysbuild</title><link>https://devzone.nordicsemi.com/thread/514085?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2024 15:37:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1450618f-d31c-464f-81b9-7f198085d3a0</guid><dc:creator>Rantanplan</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I basically&amp;nbsp;followed&amp;nbsp;&lt;a id="" href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/topic/exercise-2-dfu-over-usb-adding-external-flash/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/topic/exercise-2-dfu-over-usb-adding-external-flash/&lt;/a&gt;&amp;nbsp;but got some troubles when I tried to add the external flash support:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/opt/nordic/ncs/toolchains/f8037e9b83/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: zephyr/zephyr_pre0.elf section `rodata&amp;#39; will not fit in region `FLASH&amp;#39;
/opt/nordic/ncs/toolchains/f8037e9b83/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: region `FLASH&amp;#39; overflowed by 4406 bytes&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Therefore, I tried this example:&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://github.com/nrfconnect/sdk-nrf/tree/main/tests/modules/mcuboot/external_flash"&gt;https://github.com/nrfconnect/sdk-nrf/tree/main/tests/modules/mcuboot/external_flash&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;and removed the child_image folder.&lt;/p&gt;
&lt;p&gt;The result was the same as above.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you please give me some advice how to use MCUBOOT with external flash and sysbuild?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Furthermore, I tested&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/samples/subsys/mgmt/mcumgr/smp_svr/README.html"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/samples/subsys/mgmt/mcumgr/smp_svr/README.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;without external flash using sysbuild.&lt;/p&gt;
&lt;p&gt;But if I want to list the use the command&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;./mcumgr-client -d /dev/tty.usbmodem144101 list&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The serial monitor shows:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;---- Opened the serial port /dev/tty.usbmodem144101 ----
*** Booting nRF Connect SDK v2.7.0-5cb85570ca43 ***
*** Using Zephyr OS v3.6.99-100befc70c74 ***
[00:00:00.000,885] &amp;lt;inf&amp;gt; smp_sample: build time: Dec 10 2024 01:21:07
AJABAACGAAF5AL9maW1hZ2Vzn79kc2xvdABndmVyc2lvbmUwLjAuMGRoYXNoWCCYUx+pSRKXePmlSlqVjRxOKLhUkRFnI/o4zGCZjbtdEGhib290YWJsZfVncGVu
hZ2Vzn79kc2xvdABndmVyc2lvbmUwLjAuMGRoYXNoWCCYUx+pSRKXePmlSlqVjRxOKLhUkRFnI/o4zGCZjbtdEGhib290YWJsZfVncGVu
ZGluZ/RpY29uZmlybWVk9WZhY3RpdmX1aXBlcm1hbmVudPT//2tzcGxpdFN0YXR&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and the firmware hangs.&lt;/p&gt;
&lt;p&gt;Could you please give me an advice what needs to be changed to avoid this behaviour?&lt;/p&gt;
&lt;p&gt;Many thanks and kind regards,&lt;/p&gt;
&lt;p&gt;Christian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upgradable bootloader with sysbuild</title><link>https://devzone.nordicsemi.com/thread/513286?ContentTypeID=1</link><pubDate>Tue, 03 Dec 2024 16:58:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44d5af25-6967-4b5e-bb45-d5fba8cd3241</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi Christian,&lt;/p&gt;
&lt;p&gt;Could you add information about which version of nRF Connect SDK you&amp;#39;re using and verify if you&amp;#39;re working with the nRF5340?&lt;/p&gt;
[quote user=""]but I&amp;#39;m a bit lost with the available boot loader options right now.[/quote]
&lt;p&gt;I understand. There&amp;#39;s a lot of information to sort through, specially when you&amp;#39;re going from one procedure to a new one. But luckily it is not too complicated once you&amp;#39;ve done it once. And relatively shortly&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/"&gt;this lesson&lt;/a&gt;&amp;nbsp;in our academy course regarding bootloaders will be updated to support sysbuild.&lt;/p&gt;
&lt;p&gt;The link you&amp;#39;re referring to should include everything you need and the explaining for how to add the bootloader chain to your application. It will largely be identical to how you did it with child and parent images.&lt;/p&gt;
&lt;p&gt;Before you enabled your configuration and bootloader chain through&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;prj.conf&amp;nbsp;&lt;/li&gt;
&lt;li&gt;pm_static.yml&lt;/li&gt;
&lt;li&gt;child_image/mcuboot.overlay and /mcuboot.conf&lt;/li&gt;
&lt;li&gt;child_image/any other relevant child_images&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Now you do it through&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;prj.conf&lt;/li&gt;
&lt;li&gt;partition_manager or .dts (if you need a static partition)&lt;/li&gt;
&lt;li&gt;sysbuild/sysbuild.conf, .overlay&lt;/li&gt;
&lt;li&gt;child_image/any other relevant child_images&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You can also have a look at the sample mentioned here:&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/samples/sysbuild/sysbuild.html"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/samples/sysbuild/sysbuild.html&lt;/a&gt;&amp;nbsp;(or here in the SDK git:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/main/samples/sysbuild"&gt;https://github.com/nrfconnect/sdk-zephyr/tree/main/samples/sysbuild&lt;/a&gt;) to see a minimal sample that showcases how to set up mcuboot through sysbuild.&lt;/p&gt;
&lt;p&gt;Let me know if this narrows down your search and feel free to ask follow up questions.&lt;/p&gt;
&lt;p&gt;Kind regard,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>