<?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 Running DFU Sample on Custom Board with nRF5340 SDK v3.0.2</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/123214/issue-running-dfu-sample-on-custom-board-with-nrf5340-sdk-v3-0-2</link><description>I&amp;#39;m trying to run the DFU sample l9_e5_sol on a custom board using the nRF5340 and SDK version 3.0.2. 
 My goal is to perform DFU over BLE using external flash. However, before getting to that, I&amp;#39;m facing an issue that occurs even without enabling external</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 16 Sep 2025 19:16:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/123214/issue-running-dfu-sample-on-custom-board-with-nrf5340-sdk-v3-0-2" /><item><title>RE: Issue Running DFU Sample on Custom Board with nRF5340 SDK v3.0.2</title><link>https://devzone.nordicsemi.com/thread/548941?ContentTypeID=1</link><pubDate>Tue, 16 Sep 2025 19:16:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d637f3a0-06d6-467c-9e92-67fd92f3ed85</guid><dc:creator>Luis Santos</dc:creator><description>&lt;p&gt;Thanks a lot for your support, Amanda!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue Running DFU Sample on Custom Board with nRF5340 SDK v3.0.2</title><link>https://devzone.nordicsemi.com/thread/548931?ContentTypeID=1</link><pubDate>Tue, 16 Sep 2025 18:07:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89fa23f2-b8e9-4c87-9d67-156ee5d30eef</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Use the content of&amp;nbsp;&lt;span&gt;nrf5340dk.overlay for mcuboot.overlay.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue Running DFU Sample on Custom Board with nRF5340 SDK v3.0.2</title><link>https://devzone.nordicsemi.com/thread/548928?ContentTypeID=1</link><pubDate>Tue, 16 Sep 2025 17:26:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d8f2792-6cf3-4134-ba57-2b8a8c2ba5f4</guid><dc:creator>Luis Santos</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;Thanks for your reply, and sorry for the late response.&lt;/p&gt;
&lt;p&gt;Although my custom board is based on the nRF5340DK, I forgot that my external memory is an MX25R8035F (8 Mbit) instead of the MX25R6435F (64 Mbit) used on the DK. My apologies for that oversight.&lt;/p&gt;
&lt;p&gt;I tried to update the .dts for my memory, but I ran into same issues.&lt;br /&gt;Following your recommendation, I ran the spi_flash sample to verify the behavior of my external memory.&lt;/p&gt;
&lt;p&gt;Here is the relevant part of my nrf5340dk.overlay:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;/ {
  chosen {
 /delete-property/ zephyr,ipc_shm;
 /delete-property/ nordic,pm-ext-flash;
 nordic,pm-ext-flash = &amp;amp;mx25r80;
  };
};

&amp;amp;mx25r64 {
  status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;qspi {
	status = &amp;quot;okay&amp;quot;;
	pinctrl-0 = &amp;lt;&amp;amp;qspi_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;qspi_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
	mx25r80: mx25r8035f@0 {
		compatible = &amp;quot;nordic,qspi-nor&amp;quot;;
		reg = &amp;lt;0&amp;gt;;
		/* MX25R80 supports only pp and pp4io */
		writeoc = &amp;quot;pp4io&amp;quot;;
		/* MX25R80 supports all readoc options */
		readoc = &amp;quot;read4io&amp;quot;;
		sck-frequency = &amp;lt;8000000&amp;gt;;
		// size = &amp;lt;0x800000&amp;gt;;
		size-in-bytes = &amp;lt;0x800000&amp;gt;; 
		jedec-id = [c2 28 14];
		sfdp-bfp = [
			e5 20 f1 ff  ff ff 7f 00  44 eb 08 6b  08 3b 04 bb
			ee ff ff ff  ff ff 00 ff  ff ff 00 ff  0c 20 0f 52
			10 d8 00 ff  23 72 f5 00  82 ed 04 b7  44 83 38 44
			30 b0 30 b0  f7 c4 d5 5c  00 be 29 ff  f0 d0 ff ff
		];
		has-dpd;
		t-enter-dpd = &amp;lt;10000&amp;gt;;
		t-exit-dpd = &amp;lt;35000&amp;gt;;
	};
};&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;When I change the sample defines to:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;#define SPI_FLASH_TEST_REGION_OFFSET 0x1000 // or any multiples of 4096 | default value sample was 0xff000&lt;/pre&gt;&lt;br /&gt;the sample runs perfectly.&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting nRF Connect SDK v3.0.2-89ba1294ac9b ***
*** Using Zephyr OS v4.0.99-f791c49f492c ***

mx25r8035f@0 SPI flash testing
==========================

Perform test on single sector
Test 1: Flash erase
Flash erase succeeded!

Test 2: Flash write...Code&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;I&amp;rsquo;m now trying to add this new node to my DFU BLE app. When I configure it in my&amp;nbsp;nrf5340dk_nrf5340_cpuapp.overlay and on my mcuboot.overlay:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;mx25r80 {
	status = &amp;quot;okay&amp;quot;;
};

/ {
	chosen {
		nordic,pm-ext-flash = &amp;amp;mx25r80;
	};
};&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;But, I get the error:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;devicetree error: /home/santos/Desktop/l9_e5_sol/l9_e5_sol/sysbuild/mcuboot.overlay:1 (column 1): parse error: undefined node label &amp;#39;mx25r80&amp;#39;
CMake Error at /home/santos/ncs/v3.0.2/zephyr/cmake/modules/dts.cmake:305 (execute_process):
  execute_process failed command indexes:
  
    1: &amp;quot;Child return code: 1&amp;quot;

Call Stack (most recent call first):
  /home/santos/ncs/v3.0.2/zephyr/cmake/modules/zephyr_default.cmake:133 (include)
  /home/santos/ncs/v3.0.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  /home/santos/ncs/v3.0.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:18 (find_package)


-- Configuring incomplete, errors occurred!
CMake Error at cmake/modules/sysbuild_extensions.cmake:514 (message):
  CMake configure failed for Zephyr project: mcuboot

  Location: /home/santos/ncs/v3.0.2/bootloader/mcuboot/boot/zephyr/
Call Stack (most recent call first):
  cmake/modules/sysbuild_images.cmake:43 (ExternalZephyrProject_Cmake)
  cmake/modules/sysbuild_default.cmake:21 (include)
  /home/santos/ncs/v3.0.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
  /home/santos/ncs/v3.0.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  /home/santos/ncs/v3.0.2/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
  template/CMakeLists.txt:10 (find_package)


-- Configuring incomplete, errors occurred!
See also &amp;quot;/home/santos/Desktop/l9_e5_sol/l9_e5_sol/build/CMakeFiles/CMakeOutput.log&amp;quot;.
FATAL ERROR: command exited with status 1: /home/santos/ncs/toolchains/7cbc0036f4/usr/local/bin/cmake -DWEST_PYTHON=/home/santos/ncs/toolchains/7cbc0036f4/usr/local/bin/python3.12 -B/home/santos/Desktop/l9_e5_sol/l9_e5_sol/build -GNinja -DBOARD=nrf5340dk/nrf5340/cpuapp -S/home/santos/ncs/v3.0.2/zephyr/share/sysbuild -DAPP_DIR:PATH=/home/santos/Desktop/l9_e5_sol/l9_e5_sol
&lt;/pre&gt;Why isn&amp;rsquo;t my new node being recognized in my &lt;code data-start="99" data-end="116"&gt;mcuboot.overlay&lt;/code&gt;?&lt;br /&gt;&lt;br /&gt;I&amp;rsquo;ve attached this project to the final ticket.&lt;br /&gt;&lt;br /&gt;Tanks in advance.&lt;br /&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3482.l9_5F00_e5_5F00_sol.zip"&gt;devzone.nordicsemi.com/.../3482.l9_5F00_e5_5F00_sol.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue Running DFU Sample on Custom Board with nRF5340 SDK v3.0.2</title><link>https://devzone.nordicsemi.com/thread/548923?ContentTypeID=1</link><pubDate>Tue, 16 Sep 2025 17:07:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97c7e14c-c61d-408d-8a9c-c6df10279067</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Do you also update the mcuboot.overlay and mcuboot.conf?&lt;/p&gt;
&lt;p&gt;Could you provide the simple project for your&amp;nbsp;&lt;span&gt;ble dfu app&lt;/span&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue Running DFU Sample on Custom Board with nRF5340 SDK v3.0.2</title><link>https://devzone.nordicsemi.com/thread/546371?ContentTypeID=1</link><pubDate>Thu, 21 Aug 2025 18:28:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a61946a9-a8f2-4bea-9d76-3891e2172530</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have tested your uploaded file with nRF5340DK. It can output the&amp;nbsp;&lt;span&gt;RTT log, advertise and update via BLE DFU without issue.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I would suggest you run&amp;nbsp;zephyr/tree/main/samples/drivers/spi_flash to test your QSPI setting.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue Running DFU Sample on Custom Board with nRF5340 SDK v3.0.2</title><link>https://devzone.nordicsemi.com/thread/546331?ContentTypeID=1</link><pubDate>Thu, 21 Aug 2025 11:36:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de0691a3-a0e4-4df9-afbc-4284cbd2ae24</guid><dc:creator>Luis Santos</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;Thanks for your reply.&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;m trying to perform DFU only on the APP Core.&lt;br /&gt;Following the l9_e5_nrf5340_both_sol example and your configuration, the only difference I noticed is the fragment:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;SB_CONFIG_MCUBOOT_MODE_OVERWRITE_ONLY&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;but even thought with this fragment, I got the same beahavior described above.&lt;br /&gt;&lt;br /&gt;However, even with this fragment enabled, I still get the same behavior described earlier.&lt;br /&gt;&lt;/span&gt;&lt;/div&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 Running DFU Sample on Custom Board with nRF5340 SDK v3.0.2</title><link>https://devzone.nordicsemi.com/thread/546251?ContentTypeID=1</link><pubDate>Wed, 20 Aug 2025 17:10:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4b22f3c-8d01-4f40-a023-d5c9e6118d69</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Please refer to&amp;nbsp;&lt;a href="https://github.com/NordicDeveloperAcademy/ncs-inter/tree/main/l9/l9_e5_nrf5340_both_sol"&gt;https://github.com/NordicDeveloperAcademy/ncs-inter/tree/main/l9/l9_e5_nrf5340_both_sol&lt;/a&gt;&amp;nbsp;for using QSPI external flash.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue Running DFU Sample on Custom Board with nRF5340 SDK v3.0.2</title><link>https://devzone.nordicsemi.com/thread/546246?ContentTypeID=1</link><pubDate>Wed, 20 Aug 2025 16:45:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd07c594-752c-40e7-b137-0c8ce5b6a1c9</guid><dc:creator>Luis Santos</dc:creator><description>&lt;p data-start="176" data-end="191"&gt;Hello Amanda,&lt;/p&gt;
&lt;p data-start="193" data-end="258"&gt;Thanks for your reply &amp;mdash; your previous suggestion worked for me.&lt;/p&gt;
&lt;p data-start="260" data-end="421"&gt;Now I&amp;rsquo;m trying to run the same sample using my custom project structure and external memory. I&amp;rsquo;m using an &lt;strong data-start="366" data-end="377"&gt;mx25r64&lt;/strong&gt; with the same pinout as on the nRF5340DK.&lt;/p&gt;
&lt;p data-start="423" data-end="451"&gt;When I enable the fragment&lt;/p&gt;
&lt;div&gt;&lt;span&gt;SB_CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&lt;span&gt;y, &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;my code doesn&amp;rsquo;t seem to run on the MCU, since neither RTT nor debug mode on app show any activity. However, when I set.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;SB_CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY&lt;/span&gt;&lt;span&gt;=n,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;p data-start="678" data-end="713"&gt;I&amp;rsquo;m able to run DFU successfully.&lt;/p&gt;
&lt;p data-start="678" data-end="713"&gt;Running the debug mode on mcu_boot, the code stop on loader.c:&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p data-start="678" data-end="713"&gt;&lt;pre class="ui-code" data-mode="text"&gt;        for (slot = 0; slot &amp;lt; BOOT_NUM_SLOTS; slot++) {
            fa_id = flash_area_id_from_multi_image_slot(image_index, slot);
            rc = flash_area_open(fa_id, &amp;amp;BOOT_IMG_AREA(state, slot));
            assert(rc == 0);

            if (rc != 0) {
                BOOT_LOG_ERR(&amp;quot;Failed to open flash area ID %d (image %d slot %d): %d, &amp;quot;
                             &amp;quot;cannot continue&amp;quot;, fa_id, image_index, (int8_t)slot, rc);
                             
                FIH_PANIC; &amp;lt;== Stoped here
            }
        }&lt;/pre&gt;&lt;/p&gt;
&lt;p data-start="715" data-end="819"&gt;Could you please review my code to check if there are any gaps or misconfigurations I may have missed?&lt;/p&gt;
&lt;p data-start="821" data-end="858"&gt;Thanks in advance for your support.&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/l9_5F00_e5_5F00_sol.zip"&gt;devzone.nordicsemi.com/.../l9_5F00_e5_5F00_sol.zip&lt;/a&gt;&lt;/p&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 Running DFU Sample on Custom Board with nRF5340 SDK v3.0.2</title><link>https://devzone.nordicsemi.com/thread/543524?ContentTypeID=1</link><pubDate>Thu, 24 Jul 2025 13:41:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f78cf1e1-d54e-43a3-9c3e-506e28757633</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote user=""]My goal is to perform DFU over BLE using external flash. However, before getting to that, I&amp;#39;m facing an issue that occurs even without enabling external flash.[/quote]
&lt;p&gt;&lt;span&gt;Try to also add the setting in mcuboot.conf file under the&amp;nbsp;sysbuild folder.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;br /&gt;Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>