<?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 Multi image build with MCUBOOT + netboot</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77189/nrf5340-multi-image-build-with-mcuboot-netboot</link><description>Short Our project runs application code on the nrf5340 application core and a bt_mesh configuration on the network core. Everything works as expected when we build as two separate projects and flash the two cores independently, but things break when we</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 13 Jul 2021 13:31:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77189/nrf5340-multi-image-build-with-mcuboot-netboot" /><item><title>RE: nRF5340 Multi image build with MCUBOOT + netboot</title><link>https://devzone.nordicsemi.com/thread/319826?ContentTypeID=1</link><pubDate>Tue, 13 Jul 2021 13:31:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20441d0d-a71e-40cb-b911-bf1326e7dedc</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Could you upload your application (or a simple project that demonstrates the issue), so I can reproduce the error &amp;quot;&lt;em&gt;E: settings_subsys_init failed (err -37)&lt;/em&gt;&amp;quot; and try to get to the bottom of it.&lt;/p&gt;
&lt;p&gt;I can make the ticket private if you would like to.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Multi image build with MCUBOOT + netboot</title><link>https://devzone.nordicsemi.com/thread/319650?ContentTypeID=1</link><pubDate>Mon, 12 Jul 2021 15:18:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61f51552-f58c-452c-900d-75afc3c97dbe</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Ah, I understand. I&amp;#39;m really sorry for&amp;nbsp;being too quick to answer. I will look into it tomorrow.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Multi image build with MCUBOOT + netboot</title><link>https://devzone.nordicsemi.com/thread/319520?ContentTypeID=1</link><pubDate>Mon, 12 Jul 2021 07:24:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b9ab208-7e0a-4346-9d9a-3d48d86b487f</guid><dc:creator>Alexander Thorstensen</dc:creator><description>&lt;p&gt;This is exactly what I am trying to do, but for the code we have developed for the network core and application core. We are not running sample projects on any of the cores, and the challenge here is to implement this functionality for custom projects running on each of the cores.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Multi image build with MCUBOOT + netboot</title><link>https://devzone.nordicsemi.com/thread/319497?ContentTypeID=1</link><pubDate>Mon, 12 Jul 2021 00:18:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07b9dbfe-9868-4f1c-b7dd-8839998bbf2e</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;All you need to do is the following&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Set CONFIG_BOOTLOADER_MCUBOOT=y in the applications prj.conf (e.g. ncs/nrf/samples/bluetooth/mesh/light_switch/prj.conf)&lt;/li&gt;
&lt;li&gt;Set CONFIG_SECURE_BOOT=y in the network core sample (will be ncs/zephyr/samples/bluetooth/hci_rpmsg/prj.conf when building Bluetooth examples for the nRF53 DK).&lt;/li&gt;
&lt;li&gt;Build the BLE sample&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;This can be done by running the following commands:
&lt;ul&gt;
&lt;li&gt;cd &amp;lt;ncs location&amp;gt;/&lt;span&gt;ncs/nrf/samples/bluetooth/mesh/light_switch&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;west build -b nrf5340dk_nrf5340_cpuapp&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;If the the two conditions below are met, the hci_rpmsg sample will always be included as a child image (which will make it a multi image build)
&lt;ul&gt;
&lt;li&gt;Using the board name nrf5340dk_nrf5340_cpuapp&lt;/li&gt;
&lt;li&gt;Bulding a BLE example (e.g. the mesh light_switch sample, or the sample nrf/samples/bluetooth/peripheral_uart)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Then you can see that the sample hci_rpmsg is added as a child image:&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/1280x240/__key/communityserver-discussions-components-files/4/2248.pastedimage1626048515072v1.png" /&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;And that CONFIG_SECURE_BOOT=y for the network core sample (hci_rpmsg):&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/4466.pastedimage1626048785431v2.png" alt=" " /&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;When CONFIG_SECURE_BOOT=y in the network core sample (hci_rpmsg) the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.0/nrf/samples/nrf5340/netboot/README.html"&gt;netboot&lt;/a&gt; will be included as well&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Next you can run west flash from&amp;nbsp;&lt;span&gt;&amp;lt;ncs location&amp;gt;/&lt;/span&gt;&lt;span&gt;ncs/nrf/samples/bluetooth/mesh/light_switch and both the network core and the application core will get flashed with respectively the hci_rpmsg sample and the light_switch sample (If you use SEGGER, &lt;a href="https://devzone.nordicsemi.com/nordic/nrf-connect-sdk-guides/b/getting-started/posts/nrf-connect-sdk-tutorial---part-1-ncs-v1-4-0#h67sk646yl2d1o7b0c616t5mlg1flcovq"&gt;the net core won&amp;#39;t get flashed automatically&lt;/a&gt;, and you need to flash it separately).&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Then you can follow the steps under &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.5.0/nrf/samples/nrf5340/netboot/README.html#testing"&gt;Network core Bootloader--&amp;gt;Testing&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;If you see the log &lt;em&gt;&amp;quot;Done updating network core&amp;quot;&lt;/em&gt;, it works successfully&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;span&gt;It does not seem like it is necessary to execute step 2 (set CONFIG_SECURE_BOOT=y) in the hci_rpmsg, as it will happen automatically, as explained in &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.0/nrf/samples/nrf5340/netboot/README.html#building-and-running"&gt;the documentation&lt;/a&gt;:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/1280x120/__key/communityserver-discussions-components-files/4/2313.pastedimage1626049360063v1.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Multi image build with MCUBOOT + netboot</title><link>https://devzone.nordicsemi.com/thread/319221?ContentTypeID=1</link><pubDate>Thu, 08 Jul 2021 14:44:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df2d8fdf-3ebe-4216-aeb5-c2b471f86535</guid><dc:creator>Alexander Thorstensen</dc:creator><description>&lt;p&gt;My understanding was that this would enable mcuboot for the application core, but not for the network core. The additional steps were all in an effort to add bootloader support for the network core. &lt;br /&gt;&lt;br /&gt;My approach was based on the solution documented here: &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.5.0/nrf/samples/nrf5340/netboot/README.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.5.0/nrf/samples/nrf5340/netboot/README.html&lt;br /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The end goal is to implement a recovery mode where both the application core and network core can receive new images from a serial interface. I am new to zephyr and the nRF SDK, and more than happy to take a different approach if you have suggestions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Multi image build with MCUBOOT + netboot</title><link>https://devzone.nordicsemi.com/thread/319209?ContentTypeID=1</link><pubDate>Thu, 08 Jul 2021 14:02:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f09cc171-e85a-449c-a6d5-085bc097f8b8</guid><dc:creator>Simon</dc:creator><description>[quote user=""]Enable MCUBOOT with netboot support on the application core[/quote][quote user=""]Enabeling multi-image build breakes the settings subsys on the network core[/quote]
&lt;p&gt;Why are you doing this? If you set CONFIG_BOOTLOADER_MCUBOOT=y in the pjr.conf of you application, the mcuboot will get added as a child image and you will have a multi image build (the partition manager will also get enabled and used to partition the flash). There is no need to enable multi-image build in this case explicitly.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>