<?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>Issue with devicetree configuration, while using MCUBoot on v2.4.1 and external flash module</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/105172/issue-with-devicetree-configuration-while-using-mcuboot-on-v2-4-1-and-external-flash-module</link><description>Dear All, At the moment we have created a custom board device tree, based on the nRF9160 SOC. At the moment we are using the v2.1.0 of the nRF SDK and everything works fine. We need to upgrade to v2.4.1 that includes the nRF7002 chip. During this transition</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 24 Nov 2023 14:26:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/105172/issue-with-devicetree-configuration-while-using-mcuboot-on-v2-4-1-and-external-flash-module" /><item><title>RE: Issue with devicetree configuration, while using MCUBoot on v2.4.1 and external flash module</title><link>https://devzone.nordicsemi.com/thread/457358?ContentTypeID=1</link><pubDate>Fri, 24 Nov 2023 14:26:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3884050c-f7f6-48d9-93b0-7989b945f100</guid><dc:creator>Shahin97</dc:creator><description>&lt;p&gt;Issue has been resolved.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with devicetree configuration, while using MCUBoot on v2.4.1 and external flash module</title><link>https://devzone.nordicsemi.com/thread/457148?ContentTypeID=1</link><pubDate>Thu, 23 Nov 2023 11:59:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42c9258e-fc64-48db-8471-17acf6e018c9</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You have the reverse scenario of this thread, where you explicitly want to enable external flash in mcuboot.&lt;/p&gt;
&lt;p&gt;You can look at how this is solved for the nrf9161dk_nrf9161_ns board here:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.5.0/applications/asset_tracker_v2/child_image/mcuboot/boards/nrf9161dk_nrf9161.conf"&gt;https://github.com/nrfconnect/sdk-nrf/blob/v2.5.0/applications/asset_tracker_v2/child_image/mcuboot/boards/nrf9161dk_nrf9161.conf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you still have issues, please open a new ticket.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with devicetree configuration, while using MCUBoot on v2.4.1 and external flash module</title><link>https://devzone.nordicsemi.com/thread/456987?ContentTypeID=1</link><pubDate>Wed, 22 Nov 2023 15:17:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c96d616-1687-40f7-9298-79fb5710806d</guid><dc:creator>Shahin97</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/hkn"&gt;Håkon Alseth&lt;/a&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/giannis-anastasopoulos"&gt;Giannis Anastasopoulos&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have an issue regarding this - SPI in the overlay works fine for the application.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;However I need to flash mcuboot bootloader using: in&amp;nbsp;bootloader/mcuboot/boot/zephyr&lt;br /&gt;&lt;br /&gt;I don&amp;#39;t think I will be able to add an overlay to this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with devicetree configuration, while using MCUBoot on v2.4.1 and external flash module</title><link>https://devzone.nordicsemi.com/thread/454920?ContentTypeID=1</link><pubDate>Thu, 09 Nov 2023 13:13:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40d41f1d-d33d-46bc-b85c-7f2df640082e</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Glad to hear you got it working as intended.&lt;/p&gt;
&lt;p&gt;Hope you have a wonderful day!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with devicetree configuration, while using MCUBoot on v2.4.1 and external flash module</title><link>https://devzone.nordicsemi.com/thread/454511?ContentTypeID=1</link><pubDate>Tue, 07 Nov 2023 14:55:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:243e17b7-fd21-4638-bf12-6aaa201cb5a5</guid><dc:creator>Giannis Anastasopoulos</dc:creator><description>&lt;p&gt;The overlay solution became needed to transition from 2.1.0 to to 2.4.1. Before that, there was no need for the overlay. So, from what I understand something changed regarding enabling SPI in the non secure part of the application in the board files. Also note that my overlay is not meant for the child_image, but the main application. And this is because I had to remove the flash definition from the common.dts and then only apply it for the non secure part.&lt;br /&gt;&lt;br /&gt;In order to fix my project without adding the overlay I had to simply disable SPI for the secure device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with devicetree configuration, while using MCUBoot on v2.4.1 and external flash module</title><link>https://devzone.nordicsemi.com/thread/454502?ContentTypeID=1</link><pubDate>Tue, 07 Nov 2023 14:35:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01f5bf04-8203-4271-b1a9-d1fbbdb770a8</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you for clarifying. I needed to ask in case it wasn&amp;#39;t the desired behavior.&lt;/p&gt;
[quote user="Giannis Anastasopoulos"]Having said that it is strange that we need to add these configurations in v2.4.1 but they were not needed in v2.1.0. What exactly has changed between the 2 versions (I think that the change is there already in v2.2.0)?[/quote]
&lt;p&gt;The change is highly likely due to the devicetree/kconfig integration work that has been in-progress between these versions. Enabling a peripheral in devicetree is mitigated through kconfig, selecting the peripheral/driver in kconfig.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s an example by adding your overlay to the mcuboot child image overlay in NCS v2.5.0:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;$ grep -r CONFIG_SPI
...
mcuboot/zephyr/.config:CONFIG_SPI=y
mcuboot/zephyr/.config:CONFIG_SPI_NOR=y
mcuboot/zephyr/.config:CONFIG_SPI_NOR_SFDP_MINIMAL=y
..&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;versus the same added overlay in ncs v2.1.0:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;$ grep -r CONFIG_SPI
...
mcuboot/zephyr/.config:# CONFIG_SPI is not set
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with devicetree configuration, while using MCUBoot on v2.4.1 and external flash module</title><link>https://devzone.nordicsemi.com/thread/454479?ContentTypeID=1</link><pubDate>Tue, 07 Nov 2023 13:52:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d6442f1-14c1-4988-9dce-00d4449e4632</guid><dc:creator>Giannis Anastasopoulos</dc:creator><description>&lt;p&gt;The external flash is used for storing data related to the application and not for dual boot. Having said that it is strange that we need to add these configurations in v2.4.1 but they were not needed in v2.1.0. What exactly has changed between the 2 versions (I think that the change is there already in v2.2.0)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with devicetree configuration, while using MCUBoot on v2.4.1 and external flash module</title><link>https://devzone.nordicsemi.com/thread/454400?ContentTypeID=1</link><pubDate>Tue, 07 Nov 2023 10:36:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:868b777d-8c0c-461e-a0dc-5885bd2e2b19</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you remove SPI/External flash from the secure part, mcuboot will not see the SPI flash, and you&amp;#39;re not able to access it for dual banking your image slot.&lt;/p&gt;
&lt;p&gt;Is this intended?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can verify this by looking at the build-folder/partitions.yml file to see if the mcuboot_secondary is located in internal or external flash.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with devicetree configuration, while using MCUBoot on v2.4.1 and external flash module</title><link>https://devzone.nordicsemi.com/thread/454377?ContentTypeID=1</link><pubDate>Tue, 07 Nov 2023 09:48:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1843f76-3e08-414f-bd0a-d80b3858a904</guid><dc:creator>Giannis Anastasopoulos</dc:creator><description>&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/hkn"&gt;Håkon Alseth&lt;/a&gt;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Based on your response and the error described in my ticket the solution for us was to remove the external flash definition from the nrf9160.dts (so the secure part) and also disable the SPI and SPI_NOR in the defconfig of our board.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with devicetree configuration, while using MCUBoot on v2.4.1 and external flash module</title><link>https://devzone.nordicsemi.com/thread/453085?ContentTypeID=1</link><pubDate>Mon, 30 Oct 2023 14:33:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83387a95-4f91-4b2a-bb3a-654c723e3edc</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It looks like the SPI module itself is not enabled for the mcuboot image.&lt;/p&gt;
&lt;p&gt;You can set mcuboot specific configurations in this specific file:&lt;/p&gt;
&lt;p&gt;..\my_project\child_image\mcuboot.conf&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Or you can set this on a board-related level:&lt;/p&gt;
&lt;p&gt;..\my_project\child_image\mcuboot\boards\$BOARD.conf&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You probably want to have a couple of other configurations set for your project, similar as shown in this mcuboot configuration:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.5.0/samples/net/aws_iot/child_image/mcuboot/boards/nrf7002dk_nrf5340_cpuapp.conf#L10-L28"&gt;https://github.com/nrfconnect/sdk-nrf/blob/v2.5.0/samples/net/aws_iot/child_image/mcuboot/boards/nrf7002dk_nrf5340_cpuapp.conf#L10-L28&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try this and report back?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>