<?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>nRF Connect SDK + MCUBoot fails to load the application</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/81360/nrf-connect-sdk-mcuboot-fails-to-load-the-application</link><description>Hi, 
 
 I&amp;#39;m struggling with running the MCUBoot with nRF Connect SDK. 
 MCUBoot fails reading image header primary image. 
 
 nRF Connect SDK version: 1.7.1(1.7.0 also) 
 CPU: nrf52832 
 
 First I have this problem in our private project, but I can reproduce</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 16 Nov 2021 14:23:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/81360/nrf-connect-sdk-mcuboot-fails-to-load-the-application" /><item><title>RE: nRF Connect SDK + MCUBoot fails to load the application</title><link>https://devzone.nordicsemi.com/thread/339259?ContentTypeID=1</link><pubDate>Tue, 16 Nov 2021 14:23:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3715b93c-9ec5-4675-b392-bb51e3c3eda0</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Good to hear you figured it out. We test with JLink only, so that is what I would recommend (if you buy a DK it comes with a built in JLink programmer that you can also use to flash your external board).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK + MCUBoot fails to load the application</title><link>https://devzone.nordicsemi.com/thread/339199?ContentTypeID=1</link><pubDate>Tue, 16 Nov 2021 10:50:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:671044cb-5e12-4c5c-ad62-900893116d2b</guid><dc:creator>yosmoc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for your answer.&lt;/p&gt;
&lt;p&gt;I switch to using the nrfjprog (jLink), it starts working.&lt;/p&gt;
&lt;p&gt;I didn&amp;#39;t dig into what is the problem in the black magic probe, but it seems to skip to write the bootloader area in the merged.hex file.&lt;/p&gt;
&lt;p&gt;Thanks for your support.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK + MCUBoot fails to load the application</title><link>https://devzone.nordicsemi.com/thread/338632?ContentTypeID=1</link><pubDate>Thu, 11 Nov 2021 15:43:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b865738f-5d01-45ea-b3ac-60135414244f</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I tried to reproduce the issue here, but for me it works fine.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I simply copied the blinky sample from Zephyr, and set&amp;nbsp;&lt;span&gt;CONFIG_BOOTLOADER_MCUBOOT=y. After flashing the nRF52DK I can see that the program starts as expected, and I see the standard output from mcuboot (the &amp;quot;Example started&amp;quot; message I added to the example myself, just to make it clear that the application was running):&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting Zephyr OS build v2.6.99-ncs1-1  ***
I: Starting bootloader
I: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
I: Boot source: none
I: Swap type: none
I: Bootloader chainload address offset: 0xc000
&amp;#255;*** Booting Zephyr OS build v2.6.99-ncs1-1  ***
Example started...&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Could you try to flash the board using nrfjprog instead?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;To do so simply run the following commands from the command line:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;nrfjprog --recover&lt;br /&gt;nrfjprog -e&lt;br /&gt;nrfjprog --program merged.hex&lt;br /&gt;nrfjprog -r&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards&lt;br /&gt;Torbjørn&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK + MCUBoot fails to load the application</title><link>https://devzone.nordicsemi.com/thread/338425?ContentTypeID=1</link><pubDate>Wed, 10 Nov 2021 15:52:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07fb7757-2d80-448b-8338-44ef040f37c3</guid><dc:creator>yosmoc</dc:creator><description>&lt;p style="padding-left:30px;"&gt;&lt;span&gt;I&amp;nbsp;&lt;/span&gt;would strongly recommend getting an nRF52DK in case you are planning to do extended development for the nRF52832.&amp;nbsp;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;I assume you have been able to run some standard examples without MCUBoot running?&lt;/p&gt;
&lt;p&gt;Yes, we have already had production-ready firmware without MCUBoot. I have also tested some standard examples (hello, dtm, NFC and so on) and works well.&amp;nbsp;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;span&gt;I will try to reproduce the issue you are seeing tomorrow and get back to you.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks. I will wait your answer.&lt;/span&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;span&gt;And as a side note, if you haven&amp;#39;t checked out&amp;nbsp;&lt;/span&gt;&lt;a href="https://jimmywongiot.com/2021/05/26/overview-on-mcuboot-zephyr-rtos/"&gt;Jimmy Wong&amp;#39;s blog on MCUBoot&lt;/a&gt;&lt;span&gt;&amp;nbsp;already, I would highly recommend it.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I will check, thanks.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK + MCUBoot fails to load the application</title><link>https://devzone.nordicsemi.com/thread/338262?ContentTypeID=1</link><pubDate>Tue, 09 Nov 2021 21:22:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43b64b7a-de89-4c94-849b-771ef18d9046</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I would strongly recommend getting an nRF52DK in case you are planning to do extended development for the nRF52832.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I assume you have been able to run some standard examples without MCUBoot running?&lt;/p&gt;
&lt;p&gt;I will try to reproduce the issue you are seeing tomorrow and get back to you.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And as a side note, if you haven&amp;#39;t checked out &lt;a href="https://jimmywongiot.com/2021/05/26/overview-on-mcuboot-zephyr-rtos/"&gt;Jimmy Wong&amp;#39;s blog on MCUBoot&lt;/a&gt; already, I would highly recommend it.&amp;nbsp;&lt;/p&gt;
[quote user=""] supposed merged.hex includes the bootloader. Is it correct?[/quote]
&lt;p&gt;That is correct.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK + MCUBoot fails to load the application</title><link>https://devzone.nordicsemi.com/thread/337746?ContentTypeID=1</link><pubDate>Fri, 05 Nov 2021 15:03:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a704b65-df7e-431d-8b8a-54aafe226953</guid><dc:creator>yosmoc</dc:creator><description>&lt;div&gt;
&lt;div&gt;&lt;span&gt;Hi,&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;Yes, I use the custom board based on nRF52832 QFAA, but I don&amp;#39;t think this is due to the custom board. Unfortunately, I don&amp;#39;t have a standard board now.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;The procedure I create the custom board are&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;1.&lt;/span&gt;&lt;span&gt; Create the custom board in VSCode + nRF Connect for VS Code version v2021.11.109&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/2021_2D00_11_2D00_05_2D00_15_2D00_42_2D00_04.png" /&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;2.&lt;/span&gt;&lt;span&gt; modify nrf52832.dts. I just add uart0 for debugging.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;// Copyright (c) 2021 Nordic Semiconductor ASA
// SPDX-License-Identifier: Apache-2.0

/dts-v1/;
#include &amp;lt;nordic/nrf52832_ciaa.dtsi&amp;gt;

/ {
	model = &amp;quot;nrf52832&amp;quot;;
	compatible = &amp;quot;nrf52832&amp;quot;;

	chosen {
		zephyr,console = &amp;amp;uart0;
		zephyr,shell-uart = &amp;amp;uart0;
		zephyr,uart-mcumgr = &amp;amp;uart0;
		zephyr,bt-mon-uart = &amp;amp;uart0;
		zephyr,bt-c2h-uart = &amp;amp;uart0;
		zephyr,sram = &amp;amp;sram0;
		zephyr,flash = &amp;amp;flash0;
		zephyr,code-partition = &amp;amp;slot0_partition;
	};
};

&amp;amp;uart0 {
	status = &amp;quot;okay&amp;quot;;
	compatible = &amp;quot;nordic,nrf-uart&amp;quot;;
	current-speed = &amp;lt;115200&amp;gt;;
	tx-pin = &amp;lt;12&amp;gt;;
	rx-pin = &amp;lt;11&amp;gt;;
	rts-pin = &amp;lt;14&amp;gt;;
	cts-pin = &amp;lt;13&amp;gt;;
};

&amp;amp;flash0 {
	partitions {
		compatible = &amp;quot;fixed-partitions&amp;quot;;
		#address-cells = &amp;lt;1&amp;gt;;
		#size-cells = &amp;lt;1&amp;gt;;

		boot_partition: partition@0 {
			label = &amp;quot;mcuboot&amp;quot;;
			reg = &amp;lt;0x0 0xc000&amp;gt;;
		};
		slot0_partition: partition@c000 {
			label = &amp;quot;image-0&amp;quot;;
			reg = &amp;lt;0xc000 0x32000&amp;gt;;
		};
		slot1_partition: partition@3e000 {
			label = &amp;quot;image-1&amp;quot;;
			reg = &amp;lt;0x3e000 0x32000&amp;gt;;
		};
		scratch_partition: partition@70000 {
			label = &amp;quot;image-scratch&amp;quot;;
			reg = &amp;lt;0x70000 0xa000&amp;gt;;
		};
		storage_partition: partition@7a000 {
			label = &amp;quot;storage&amp;quot;;
			reg = &amp;lt;0x7a000 0x6000&amp;gt;;
		};
	};
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I can run the application without a MCUBoot bootloader with this board.&lt;/p&gt;
&lt;p&gt;Here is my custom board configuration.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nrf52832.tar.gz"&gt;devzone.nordicsemi.com/.../nrf52832.tar.gz&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK + MCUBoot fails to load the application</title><link>https://devzone.nordicsemi.com/thread/337727?ContentTypeID=1</link><pubDate>Fri, 05 Nov 2021 14:19:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:039c3907-c3f0-4331-822d-31f8bd1f6eef</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;You mention that you use a custom board based on the nRF52832?&lt;/p&gt;
&lt;p&gt;Do you have a standard nRF52DK available so you can compare?&lt;br /&gt;If so, is the issue the same?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>