<?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 Enabling MCUboot on Custom Board with nRF5340</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/116480/issue-with-enabling-mcuboot-on-custom-board-with-nrf5340</link><description>Hello, 
 I am working on a custom Agora board that includes a BT40 module with an nRF5340 MCU. I am trying to enable the MCUboot bootloader by setting CONFIG_BOOTLOADER_MCUBOOT=y in my prj.conf file. However, I encounter an error during the initial configuration</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 17 Jan 2025 09:13:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/116480/issue-with-enabling-mcuboot-on-custom-board-with-nrf5340" /><item><title>RE: Issue with Enabling MCUboot on Custom Board with nRF5340</title><link>https://devzone.nordicsemi.com/thread/518793?ContentTypeID=1</link><pubDate>Fri, 17 Jan 2025 09:13:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c609a34-59b9-4b4d-93b6-5e7add34975c</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The error in the previous post indicate attemting to communicate with an external flash device (the one that is on the DK), but that does not work. So it seems like your board files stil refer to the external flash from the DK even though that is not present on your custom board? If so, that should be removed. It could be that just adding this in an .overlay to start with would be enough:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/delete-node/ &amp;amp;mx25r64;

&amp;amp;qspi {
	status = &amp;quot;disabled&amp;quot;;
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;(but this needs to be disabled both in the app and the bootloader, so fixing the board files is best and cleanest)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with Enabling MCUboot on Custom Board with nRF5340</title><link>https://devzone.nordicsemi.com/thread/518769?ContentTypeID=1</link><pubDate>Fri, 17 Jan 2025 07:01:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42c8d674-d188-48e6-8574-eba016e95ff1</guid><dc:creator>Yashaswini S</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;when I checked in debug mode I got below response, after uploading to new image.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2025_2D00_01_2D00_17-122756.png" /&gt;&lt;/p&gt;
&lt;p&gt;By the time it enters to line no 327 board will start reset.&lt;/p&gt;
&lt;p&gt;I am not able to understand the behavior, why it is resting.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with Enabling MCUboot on Custom Board with nRF5340</title><link>https://devzone.nordicsemi.com/thread/518754?ContentTypeID=1</link><pubDate>Fri, 17 Jan 2025 05:38:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b7bc312-28d3-4ed7-b8cd-86c8f59c8983</guid><dc:creator>Yashaswini S</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2025_2D00_01_2D00_16-184529.png" /&gt;&lt;/p&gt;
&lt;p&gt;After updating the above commands on mcuboot.conf in the RTT log I&amp;#39;m getting these debug messages.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with Enabling MCUboot on Custom Board with nRF5340</title><link>https://devzone.nordicsemi.com/thread/518204?ContentTypeID=1</link><pubDate>Mon, 13 Jan 2025 15:28:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4728fa6d-1cbc-48a2-933e-f07ecad8344a</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;In most cases it should be enough to ensure you have the following in the mcuboot configuration:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_LOG=y
CONFIG_MCUBOOT_LOG_LEVEL_INF=y&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with Enabling MCUboot on Custom Board with nRF5340</title><link>https://devzone.nordicsemi.com/thread/518078?ContentTypeID=1</link><pubDate>Mon, 13 Jan 2025 04:58:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:694f5f06-aeee-4d90-993f-57d7ebf6a2b4</guid><dc:creator>Yashaswini S</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Logging enabled in mcuboot: can you give, how can I do this to enable see the logs.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with Enabling MCUboot on Custom Board with nRF5340</title><link>https://devzone.nordicsemi.com/thread/517926?ContentTypeID=1</link><pubDate>Fri, 10 Jan 2025 11:59:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40ce7ccc-e4d9-4e70-80c0-58500f0dd1b5</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Yashaswini S"]above Image that you shared also the one of the issues I&amp;#39;m getting, rather than that I have major one, for that issue itself I raised the ticket.[/quote]
&lt;p&gt;Yes, I thought that was for the DK? If not, it is odd that mcumgr communication worked first, and then suddently did not.&lt;/p&gt;
[quote user="Yashaswini S"]The same bootloader that works successfully on DK board, when I tried same thing with the custom board, new firmware is not updating in the hardware, but commands are working.[/quote]
&lt;p&gt;OK, everything looks good here, with nothing here explaining why the new image is not activated. Do you have logging enabled in MCUboot? If not, can you enable it and share the log here? That should show us what happens after the reste when the new image should have been swapped in and booted.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with Enabling MCUboot on Custom Board with nRF5340</title><link>https://devzone.nordicsemi.com/thread/517881?ContentTypeID=1</link><pubDate>Fri, 10 Jan 2025 09:02:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e287ec83-0392-4a62-837d-ffa600f6c2f8</guid><dc:creator>Yashaswini S</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;above Image that you shared also the one of the issues I&amp;#39;m getting, rather than that I have major one, for that issue itself I raised the ticket.&lt;/p&gt;
&lt;div class="content full threaded-reply-content user-defined-markup" data-replyid="515902" data-userid="135881" data-permalink="~/f/nordic-q-a/116480/issue-with-enabling-mcuboot-on-custom-board-with-nrf5340/515902"&gt;
&lt;div class="content"&gt;
&lt;p&gt;In the down I mentioned can you that and help us to resolve that,&lt;/p&gt;
&lt;p&gt;1. The difference between the dk and custom board will be on dts file and peripherals.&lt;/p&gt;
&lt;p&gt;2. I am using mcumgr command line tool to perform DFU. I have used same commands mentioned in&amp;nbsp;&lt;span&gt;.&amp;nbsp;&lt;/span&gt;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/topic/exercise-1-dfu-over-uart/"&gt;Exercise 1 - DFU over UART - Nordic Developer Academy&lt;/a&gt;&amp;nbsp;By using this i am able do the DFU for nRF5340dk board and new firmware upgrade sucessfully.&lt;/p&gt;
&lt;p&gt;I will share the commands which used to update new firmware using mcumgr commands.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1734693691779v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;At this time new firmware binary file upload but after the reset that new is not reflecting the hardware.&lt;/p&gt;
&lt;p&gt;You can see the pending permanent after trying swap to primary address.&lt;/p&gt;
&lt;p&gt;after that I will do reset then also the same.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The same bootloader that works successfully on DK board, when I tried same thing with the custom board, new firmware is not updating in the hardware, but commands are working.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with Enabling MCUboot on Custom Board with nRF5340</title><link>https://devzone.nordicsemi.com/thread/517870?ContentTypeID=1</link><pubDate>Fri, 10 Jan 2025 08:21:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c484531-685f-437c-895a-c101611a7e25</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I see. Can you show the terminal output from all mcumgr command you use when you upload the image to the custom board? If I understand correctly, the only log I have seen from that is this, which does not show any successfull communication:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3051.pastedimage1734693841813v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;If you are able to upload the firmware via SMP but not activate it, that is odd, but seeing the whole set of commands (including the listed images before you attempt to test or confirm) could be usefull. Plese show the shole sequence of commands and responses by copy-pasting from the terminal.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with Enabling MCUboot on Custom Board with nRF5340</title><link>https://devzone.nordicsemi.com/thread/517621?ContentTypeID=1</link><pubDate>Thu, 09 Jan 2025 09:14:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35b1172e-3ea0-4647-be6d-9b83bdee2490</guid><dc:creator>Yashaswini S</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;1. I am a bit confused about this, as from what I am able to see you are not able to communicate at all with the custom board over UART with mcumgr. So is this with a DK, or did I misunderstand?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;No, with the DK able to communicate and bootloader loads the new firmware using mcumgr commands, but with the custom board which is having the mrf5340mcu with BT40 module to this module not able to upload the new firmware.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But the commands are working fine, if i give upload the new binary file it loads but after the reset it is not reflecting in hardware.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;2. After the firmware is transvered it needs to be activated. This can be done permanently or a single time (&amp;quot;test&amp;quot;). This must be configured before the reset, and then the bootloader will&amp;nbsp;swap in the new image upon boot. If there are issues here, perhaps you can share exactly what you are doing (specifying board and step by step instrutions), and in what way it does not work?&lt;/p&gt;
&lt;p&gt;After the updating I&amp;#39;m giving the &lt;strong&gt;confirm&lt;/strong&gt; to done permanently swap with primary address.This one also I&amp;#39;m doing before the reset it itself by giving&amp;nbsp;&lt;strong&gt;mcumgr -c testDK image confirm &amp;lt;NEW_HASH&amp;gt;.&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with Enabling MCUboot on Custom Board with nRF5340</title><link>https://devzone.nordicsemi.com/thread/517420?ContentTypeID=1</link><pubDate>Wed, 08 Jan 2025 09:58:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a92cfa2-43aa-461a-a838-49ea515985f7</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Yashaswini S"]I have crosschecked the pin details on devicetree and everything is mapped according to the datasheet.[/quote]
&lt;p&gt;Do you get UART working for other use cases, such as logging? With the same instance? If not, it could be good to verify that the UART pins used in the genrated zephyr.dts in the build folder points to the actual UART pins on your hardware.&lt;/p&gt;
[quote user="Yashaswini S"]I am having another issue, that I mentioned earlier like dual swap method is not reflecting in the hardware, which I shared the commands also in previous discussion. we have tried[/quote]
&lt;p&gt;I am a bit confused about this, as from what I am able to see you are not able to communicate at all with the custom board over UART with mcumgr. So is this with a DK, or did I misunderstand?&lt;/p&gt;
[quote user="Yashaswini S"]These are thing which we tried but the successfully new bin file is loading but once i press the reset after that, changes are not reflecting in the hardw[/quote]
&lt;p&gt;After the firmware is transvered it needs to be activated. This can be done permanently or a single time (&amp;quot;test&amp;quot;). This must be configured before the reset, and then the bootloader will&amp;nbsp;swap in the new image upon boot. If there are issues here, perhaps you can share exactly what you are doing (specifying board and step by step instrutions), and in what way it does not work?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with Enabling MCUboot on Custom Board with nRF5340</title><link>https://devzone.nordicsemi.com/thread/517131?ContentTypeID=1</link><pubDate>Tue, 07 Jan 2025 06:31:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad1532d6-9052-4203-b449-0b015629d912</guid><dc:creator>Yashaswini S</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have crosschecked the pin details on devicetree and everything is mapped according to the datasheet.&lt;/p&gt;
&lt;p&gt;I am having another issue, that I mentioned earlier like dual swap method is not reflecting in the hardware, which I shared the commands also in previous discussion. we have tried&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;We already tried taking the NRF5340DK_nrf5340 folder and copying it to an Agora_bt40 folder, then replaced all references to nrf5340dk_nrf5340 with Agora_bt40.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;We took the elements of the agora_bt40.dts file which are different from the standard nRf5340DK and reflected those changes in the agora_bt40_common.dtsi file. But the response is same.&lt;/li&gt;
&lt;li&gt;Also, the slot partitions changed in agora_bt40_common.dtsi wrt agora_bt40.dts.&lt;/li&gt;
&lt;li&gt;We made the agora_bt40.dts to agora_bt40.overlay and tried.&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Still the LED blink bin file loading through bootloader doesn&amp;rsquo;t reflect in the hardware.&lt;/p&gt;
&lt;p&gt;These are thing which we tried but the successfully new bin file is loading but once i press the reset after that, changes are not reflecting in the hardware.&lt;/p&gt;
&lt;p&gt;But in the dk board it works successfully, with the custom board the issue is happening.&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with Enabling MCUboot on Custom Board with nRF5340</title><link>https://devzone.nordicsemi.com/thread/517061?ContentTypeID=1</link><pubDate>Mon, 06 Jan 2025 15:25:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5c37d28-f908-49d9-875c-1bf434d7ffa4</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am sorry for the delay. As you get a timeout it seems that there is no communication, as mentionned earlier. Which UART pins are you using on the custom board, and how have you configured your devicetree accordingly? And have you connected the correct pins to your USB-UART interface?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with Enabling MCUboot on Custom Board with nRF5340</title><link>https://devzone.nordicsemi.com/thread/516023?ContentTypeID=1</link><pubDate>Sat, 21 Dec 2024 04:50:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8811d29d-74d4-45a7-84d9-38ebab8da043</guid><dc:creator>Yashaswini S</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not using the UART for different communication and also the not using same port at a time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with Enabling MCUboot on Custom Board with nRF5340</title><link>https://devzone.nordicsemi.com/thread/515961?ContentTypeID=1</link><pubDate>Fri, 20 Dec 2024 14:55:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d95af91e-1217-47a8-9e99-edd5d35e7bf5</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I see. NMP timeout indicate UART communication problems. Are you using the UART for something else, or perhaps you have a serial terminal open for the same port at the same time?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with Enabling MCUboot on Custom Board with nRF5340</title><link>https://devzone.nordicsemi.com/thread/515902?ContentTypeID=1</link><pubDate>Fri, 20 Dec 2024 11:26:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4941fee1-f714-4dab-9a88-a077efe2da8c</guid><dc:creator>Yashaswini S</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;1. The difference between the dk and custom board will be on dts file and peripherals.&lt;/p&gt;
&lt;p&gt;2. I am using mcumgr command line tool to perform DFU. I have used same commands mentioned in&amp;nbsp;&lt;span&gt;.&amp;nbsp;&lt;/span&gt;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/topic/exercise-1-dfu-over-uart/"&gt;Exercise 1 - DFU over UART - Nordic Developer Academy&lt;/a&gt;&amp;nbsp;By using this i am able do the DFU for nRF5340dk board and new firmware upgrade sucessfully.&lt;/p&gt;
&lt;p&gt;I will share the commands which used to update new firmware using mcumgr commands.&lt;/p&gt;
&lt;p&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/pastedimage1734693691779v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;For the custom board, I am using the same commands to update the new firmware.&lt;/p&gt;
&lt;p&gt;1.To update new firmware for custom board, do I need to change anything in command?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2.while doing, sometimes I will face error called NMP_timeout.&lt;/p&gt;
&lt;p&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/pastedimage1734693841813v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;What could be the reason for this and how to solve this?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with Enabling MCUboot on Custom Board with nRF5340</title><link>https://devzone.nordicsemi.com/thread/515757?ContentTypeID=1</link><pubDate>Thu, 19 Dec 2024 13:54:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0c7e63c-0aec-430c-b105-f4135b1cb4c2</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I see. We need to know more about what is happening (logging/debug information).&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;What is the difference when you do it on a DK and you custom board?&lt;/li&gt;
&lt;li&gt;How do you perform the DFU (using MCUmgr or nRF connect on a phone or similar?
&lt;ol&gt;
&lt;li&gt;Do you do it in the same way?&lt;/li&gt;
&lt;li&gt;Can you share logs?&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Can you enable logging and share logs from the nRF?&lt;/li&gt;
&lt;li&gt;What else have you found by testing/debugging?&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with Enabling MCUboot on Custom Board with nRF5340</title><link>https://devzone.nordicsemi.com/thread/515748?ContentTypeID=1</link><pubDate>Thu, 19 Dec 2024 13:34:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b370339c-f260-47d0-90bf-48a39fdf2c9c</guid><dc:creator>Yashaswini S</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;We have tried in nRF5340 DK and everything works as per the Nordic exercise: Single slot and Dual slot methods for DFU over UART.&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/topic/exercise-1-dfu-over-uart/"&gt;Exercise 1 - DFU over UART - Nordic Developer Academy&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;But when we have a nRF5340 custom board with different or updated board files, following the same procedure gives different results.&lt;/p&gt;
&lt;p&gt;Firmware loads but doesn&amp;rsquo;t reflect in board. Also slot swap doesn&amp;rsquo;t work.&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with Enabling MCUboot on Custom Board with nRF5340</title><link>https://devzone.nordicsemi.com/thread/515301?ContentTypeID=1</link><pubDate>Tue, 17 Dec 2024 14:46:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7b10a12-53be-471c-9727-e4e4d4409431</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Adding keys are described under &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/app_dev/bootloaders_dfu/mcuboot_nsib/bootloader_adding_sysbuild.html"&gt;Enabling a bootloader chain using sysbuild&lt;/a&gt;. For older SDK versions or if you are using the parent-child image, you need to follow the instructions under &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/app_dev/bootloaders_dfu/mcuboot_nsib/bootloader_adding.html"&gt;Enabling a bootloader chain using child and parent images (deprecated)&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you face issues, can you elaborate on what you are doing an in what way it does not work?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with Enabling MCUboot on Custom Board with nRF5340</title><link>https://devzone.nordicsemi.com/thread/515111?ContentTypeID=1</link><pubDate>Mon, 16 Dec 2024 13:15:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:347c540e-5586-49b6-a065-f9bccbfa9261</guid><dc:creator>Yashaswini S</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I tried by creating byown private and public key and adding with to existing project.&lt;/p&gt;
&lt;p&gt;Do you any reference for the adding the keys to existing project.since after adding the keys also not reflcting in the project.&lt;/p&gt;
&lt;p&gt;and also issue still persists.&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with Enabling MCUboot on Custom Board with nRF5340</title><link>https://devzone.nordicsemi.com/thread/514442?ContentTypeID=1</link><pubDate>Wed, 11 Dec 2024 09:04:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8492cf02-c1aa-4d6a-a8cb-c1928a06e56e</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am glad to see you were able to get the board files right.&lt;/p&gt;
&lt;p&gt;Regarding the DFU issue, I see uploading the image works well, but soemthing goes wrong during activation/swapping and the new image is never booted. There could be serveral reasons for that, though. Is the version of the new image not higher? Or is it signed with an invalid key? One way to see this better is to enable logging in the bootlodaer and see what it does (and why).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with Enabling MCUboot on Custom Board with nRF5340</title><link>https://devzone.nordicsemi.com/thread/514014?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2024 12:26:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8b64e63-81fb-4d97-ab29-62edfa988d13</guid><dc:creator>Yashaswini S</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have followed the steps as you mentioned, copied all the dk files and renamed to custom board name. That is working fine now. able to build successfully without error and also try to update the firmware using mcumgr commands.&lt;/p&gt;
&lt;p&gt;But now i have another issue,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1.here the once after giving uart configurations that has to show two image slots information that is not getting here.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2024_2D00_12_2D00_09-152342.png" /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2.once after giving new firmware using upload command it is taking after that it is showing complete two slots details.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2024_2D00_12_2D00_09-152355.png" /&gt;&lt;/p&gt;
&lt;p&gt;3. After updating the secondary memory details to primary using HASH value return with done.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2024_2D00_12_2D00_09-152439.png" /&gt;&lt;/p&gt;
&lt;p&gt;4. since after that need to reset the microcontroller then the new firmware will load into primary address i.e image 0 where the main application is running. but here after the reset it is not updating with new firmware, once after giving to check image list i am able to see only the slot 0 details with previous HASH value not with new firmware updated value.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2024_2D00_12_2D00_09-152446.png" /&gt;&lt;/p&gt;
&lt;p&gt;Could you help me to address this, what is the reason for this?&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with Enabling MCUboot on Custom Board with nRF5340</title><link>https://devzone.nordicsemi.com/thread/513575?ContentTypeID=1</link><pubDate>Thu, 05 Dec 2024 09:15:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e935455a-0702-4ecf-a426-4f25407d3292</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There are 3 main boards for the nRF5340 DK in the SDK:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;nrf5340dk_nrf5340_cpuapp&lt;/li&gt;
&lt;li&gt;nrf5340dk_nrf5340_cpuapp_ns&lt;/li&gt;
&lt;li&gt;nrf5340dk_nrf5340_cpunet&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;All these boards consist of several files each. If you are using the net core as well as the app core (which you always need for using the radio), you need&amp;nbsp;nrf5340dk_nrf5340_cpunet in addition to&amp;nbsp;nrf5340dk_nrf5340_cpuapp. And if you are using TrustZone, you need nrf5340dk_nrf5340_cpuapp_ns for the non-secure application. However, you also need&amp;nbsp;nrf5340dk_nrf5340_cpuapp for the secure builds, which is for instance the bootloader. The bootloader is always a secure build. And the error you are getting indicate that you are attempting to build the bootlodaser for a non-secure board, which will not work.&lt;/p&gt;
&lt;p&gt;For the files you list:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;nrf5340_cpuapp_common.dtsi file is included in both the&amp;nbsp;nrf5340dk_nrf5340_cpuapp and&amp;nbsp;nrf5340dk_nrf5340_cpuapp_ns boards.&lt;/li&gt;
&lt;li&gt;nrf5340_cpuapp_partition_conf.dtsi is also includedin both, by being included in&amp;nbsp;nrf5340_cpuapp_common.dtsi.&lt;/li&gt;
&lt;li&gt;&lt;span&gt;nrf5340dk_nrf5340_cpuapp.dts is the device tree file for the secure board. This is used for all secure builds (bootloaders etc), but not non-secure applications.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;nrf5340dk_nrf5340_cpuapp_ns.dts is used if you have a non-secure application (i.e. you are including TF-M to utilize TrustZone).&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;In short, as you are using a non-secure application, you need both secure and non-secure boards. And as this is quite complex to get right, I recomend you take all of the nRF5340 DK&amp;nbsp;files and copy and rename to use as your custom baord files. You can see more practical information on this under &lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-3-adding-custom-board-support/topic/board-files-for-multi-core-hardware-tf-m/"&gt;Board files for multi-core hardware &amp;amp; TF-M&lt;/a&gt;&amp;nbsp;in the intermediate nRF Connect SDK course.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with Enabling MCUboot on Custom Board with nRF5340</title><link>https://devzone.nordicsemi.com/thread/513131?ContentTypeID=1</link><pubDate>Tue, 03 Dec 2024 08:54:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5703c368-c4c6-493c-b51e-f0c026573a79</guid><dc:creator>Yashaswini S</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;While working on DTS file, in&amp;nbsp;C:\ncs\v2.7.0\zephyr\boards\nordic\nrf5340dk I have seen different dts file so here which one has to select to work with bootloader development.&lt;/p&gt;
&lt;p&gt;nrf5340_cpuapp_common.dtsi,&amp;nbsp;nrf5340_cpuapp_partition_conf.dtsi,nrf5340dk_nrf5340_cpuapp.dts,nrf5340dk_nrf5340_cpuapp_ns.dts so I have seen these 4 dts files.&lt;/p&gt;
&lt;p&gt;While in our customized agora board we having nrf5340dk, when i try to compare with dts file which file should I need to consider, in that 4.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with Enabling MCUboot on Custom Board with nRF5340</title><link>https://devzone.nordicsemi.com/thread/512278?ContentTypeID=1</link><pubDate>Wed, 27 Nov 2024 08:50:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:388413d7-599f-4537-8301-17d5a386c213</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The error point to missing SPU configuration in the board as disussed before, so it seems MCU boot is built for non-secure or that the secure board configuration is incorrect, and does not contain the SPU (which it must). The nRF5340 is quite complex, so to avoid this the simplest is to copy all of the nRF5340 board files, and modify as needed for your custom HW. Note that you need both secure and non-secure board files as MCUboot will always be built as secure even if the application is non-secure.&lt;/p&gt;
&lt;p&gt;If you have not made any progress, can you share your board files as well as &lt;em&gt;full&lt;/em&gt; build log (so that I see how you build the project as well as any errors)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with Enabling MCUboot on Custom Board with nRF5340</title><link>https://devzone.nordicsemi.com/thread/511863?ContentTypeID=1</link><pubDate>Mon, 25 Nov 2024 10:40:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9306438e-73cf-4b73-b606-7f1b3ed23fbf</guid><dc:creator>Yashaswini S</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Even after modifying the dts file from the nrf5340dk into customized agora_bt40 dts, continue to encounter the same error.&lt;/p&gt;
&lt;p&gt;After enabling the mcuboot on prj.conf it through error, otherwise builds without error.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>