<?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>DFU on nrf52832</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/117958/dfu-on-nrf52832</link><description>Hi, I am having problem making DFU work on nrf52832 using nrf connect sdk 2.6.0. Below is my mcuboot.conf under child_image and prj.conf. Please guide me where I am wrong. Also when I set CONFIG_SINGLE_APPLICATION_SLOT, it builds fine but when I disables</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 Feb 2025 08:45:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/117958/dfu-on-nrf52832" /><item><title>RE: DFU on nrf52832</title><link>https://devzone.nordicsemi.com/thread/521463?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2025 08:45:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68a87a53-4813-4414-abf9-f22ab16c0b5a</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Moh"]do I need to reset the MCU manually? [/quote]
&lt;p&gt;The swap won&amp;#39;t happen unless you reset the nRF. This should be explained here&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/&lt;/a&gt;. It is also illustrated here&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.6.1/page/zephyr/samples/subsys/mgmt/mcumgr/smp_svr/README.html"&gt;https://docs.nordicsemi.com/bundle/ncs-2.6.1/page/zephyr/samples/subsys/mgmt/mcumgr/smp_svr/README.html&lt;/a&gt;&amp;nbsp;and the following section.&lt;/p&gt;
[quote user="Moh"] Lastly, why can I not send reset commands from the DFU app? Thanks, Mo[/quote]
&lt;p&gt;See the two previous links&lt;/p&gt;
[quote user="Moh"] How do I need to reduce flash and RAM usage?[/quote]
&lt;p&gt;In general you would need to follow the steps in&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.6.0/page/nrf/test_and_optimize/optimizing/index.html"&gt;https://docs.nordicsemi.com/bundle/ncs-2.6.0/page/nrf/test_and_optimize/optimizing/index.html&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You have plenty of available flash (you&amp;#39;re only using 279kB for your application). But you&amp;#39;re using almost all of the RAM. See if there&amp;#39;s something in the optimization documentation (such as reducing stack sizes) that might help you. &lt;br /&gt;&lt;br /&gt;You&amp;#39;re also using a device that is quite small (512kB flash/64kB RAM). An alternative is to upgrade to the 52833 (128 KB RAM)&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU on nrf52832</title><link>https://devzone.nordicsemi.com/thread/521172?ContentTypeID=1</link><pubDate>Mon, 03 Feb 2025 16:31:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5cd63206-61f2-4da2-8244-baf5b71e2ce4</guid><dc:creator>Moh</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Andreas, do I need to reset the MCU manually? How do I need to reduce flash and RAM usage? Lastly, why can I not send reset commands from the DFU app? Thanks, Mo&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU on nrf52832</title><link>https://devzone.nordicsemi.com/thread/520996?ContentTypeID=1</link><pubDate>Sun, 02 Feb 2025 13:03:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:726508d9-acc8-48a5-bfab-02a8b0f6d16a</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;No worries, I hope you had a good holiday :)&amp;nbsp;&lt;/p&gt;
[quote user="Moh"]Problem I am facing is that when I ran the update via the app, the update runs fine but when it completes, it doesn&amp;#39;t reset the MCU automatically.[/quote]
&lt;p&gt;You need to add a reset command at the end of the DFU process manually. Typically in the samples we just reset the DK with either nrfjprog --reset or by pressing the reset button&lt;/p&gt;
&lt;p&gt;I will have a look at the zip this week unless the above suggestion resolves the issue! :)&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU on nrf52832</title><link>https://devzone.nordicsemi.com/thread/520984?ContentTypeID=1</link><pubDate>Sat, 01 Feb 2025 19:53:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dea855ee-6a78-45c5-885f-ca38e7937394</guid><dc:creator>Moh</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi&amp;nbsp;&lt;/span&gt;&lt;span&gt;Andreas, I also would like to mention why my application size is big. This is a very basic application. It uses a lot of flash and RAM. I am building with size compiler optimisation and here is the result&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;Memory region         Used Size  Region Size  %age Used
           FLASH:      279108 B     441856 B     63.17%
             RAM:       62578 B        64 KB     95.49%
        IDT_LIST:          0 GB        32 KB      0.00%&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU on nrf52832</title><link>https://devzone.nordicsemi.com/thread/520952?ContentTypeID=1</link><pubDate>Fri, 31 Jan 2025 21:46:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:517ff236-3bbd-4944-a588-eb440553105c</guid><dc:creator>Moh</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Andreas, sorry for the late reply as away on holiday. Please find the cut down version of my project. FYI I have ran on my board and I am till seeing the same behavior.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Problem I am facing is that when I ran the update via the app, the update runs fine but when it completes, it doesn&amp;#39;t reset the MCU automatically.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/dfu_5F00_spi.zip"&gt;devzone.nordicsemi.com/.../dfu_5F00_spi.zip&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU on nrf52832</title><link>https://devzone.nordicsemi.com/thread/520194?ContentTypeID=1</link><pubDate>Mon, 27 Jan 2025 14:16:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e1add5d-2eb9-4b5a-8b7f-383af3b9983f</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi Moh,&lt;/p&gt;
&lt;p&gt;Looks to me that you&amp;#39;re stuck in an infinite restart-loop when setting up the JESD216 sample. Please zip the project you were using for your custom board together with the build log and I&amp;#39;ll have a look.&lt;/p&gt;
&lt;p&gt;Do you see the same thing with the &lt;a href="https://docs.zephyrproject.org/latest/samples/drivers/spi_flash/README.html"&gt;SPI NOR flash sample?&lt;/a&gt;. I can&amp;#39;t really help you isolating the issue in your application unless you verify that your configuring of the external flash is working in NCS 2.6.0 with a reference sample.&lt;/p&gt;
[quote user="Moh"]I have good news is that I have managed to build my app with mcuboot with slot 1 using external flash. Issue I noticed that It builds if I use conf file as prj.conf but when I build the app with either&amp;nbsp;prj_debug.conf or&amp;nbsp;prj_release.conf, it doesn&amp;#39;t build. I have no idea why it does. See prj.conf attached.&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/888325.prj.conf"&gt;8877.prj.conf&lt;/a&gt;[/quote]
&lt;p&gt;Thats good and all, but I unfortunally can&amp;#39;t extract anything from this. What build command did you use and/or how did you select the debug/release configuration? What did the build logs look like?&lt;/p&gt;
[quote user="Moh"]Lastly, how I can erase external flash&amp;nbsp;from nrfjprog or Jlink?[/quote]
&lt;p&gt;As of now we only have the -qspierasell in&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ug_nrf_cltools/page/UG/cltools/nrf_nrfjprogexe_reference.html#ariaid-title1"&gt;nrfjprog&lt;/a&gt;. This does unfortunately not work for SPI devices, so what other developers have done is to create their own solution based that handles this. I know this is a WIP to implement for SPI eraseall, but with an unkown ETA.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU on nrf52832</title><link>https://devzone.nordicsemi.com/thread/520047?ContentTypeID=1</link><pubDate>Fri, 24 Jan 2025 20:31:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f351a0af-a920-404f-b172-09ddd579ed11</guid><dc:creator>Moh</dc:creator><description>&lt;p&gt;Hi Andreas, sorry for late reply. Here is output of JESD216 sample. It doesn&amp;#39;t seem working as expected though&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting nRF Connect SDK v3.5.99-ncs1 ***

spi@40023000 SPI flash testing
==========================

Perform test on single sector
Test 1: Flash erase
*** Booting nRF Connect SDK v3.5.99-ncs1 ***

spi@40023000 SPI flash testing
==========================

Perform test on single sector
Test 1: Flash erase
*** Booting nRF Connect SDK v3.5.99-ncs1 ***

spi@40023000 SPI flash testing
==========================

Perform test on single sector
Test 1: Flash erase
*** Booting nRF Connect SDK v3.5.99-ncs1 ***&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have good news is that I have managed to build my app with mcuboot with slot 1 using external flash. Issue I noticed that It builds if I use conf file as prj.conf but when I build the app with either&amp;nbsp;prj_debug.conf or&amp;nbsp;prj_release.conf, it doesn&amp;#39;t build. I have no idea why it does. See prj.conf attached.&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8877.prj.conf"&gt;devzone.nordicsemi.com/.../8877.prj.conf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I do&amp;nbsp;manage to&amp;nbsp;run DFU using the device manager app, but when I select Test &amp;amp; Confirm, I am expecting MCU to reset towards the completion of update firmware, but it doesn&amp;#39;t. When I try to reset from the app, it doesn&amp;#39;t either. I can read two slots though.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/7217.mcuboot.conf"&gt;devzone.nordicsemi.com/.../7217.mcuboot.conf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Lastly, how I can erase external flash&amp;nbsp;from nrfjprog or Jlink?&lt;/p&gt;
&lt;p&gt;Thanks, Moh&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU on nrf52832</title><link>https://devzone.nordicsemi.com/thread/519946?ContentTypeID=1</link><pubDate>Fri, 24 Jan 2025 10:01:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b05144cc-83bc-4e0e-a819-f76d9bdbaf9c</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="AHaug"]Did you see the expected output when hooking the device up to a terminal? If you ran the JESD216 sample as well, which output did you get?[/quote]
&lt;p&gt;I still want a confirmation on this. Please attach the device logs or let me know if you need help in getting the logs from the device.&lt;/p&gt;
[quote user="AHaug"]&lt;p&gt;Next after getting these two samples up and running, which means that &lt;span style="text-decoration:underline;"&gt;if&lt;/span&gt; you got the correct output, then the external flash would&amp;#39;ve been correctly configured,&amp;nbsp;I intended for you to compare those two samples with&amp;nbsp;&lt;a href="https://github.com/aHaugl/samples_for_NCS/tree/main/bootloader/spi/smp_ble_feat_spi"&gt;https://github.com/aHaugl/samples_for_NCS/tree/main/bootloader/spi/smp_ble_feat_spi&lt;/a&gt;&amp;nbsp;and replace the mx25 flash I&amp;#39;ve used here with your at25x flash. One difference I can spot immedeatly is the difference between the &lt;a href="https://github.com/aHaugl/samples_for_NCS/blob/main/bootloader/spi/smp_ble_feat_spi/child_image/mcuboot.overlay"&gt;mcuboot.overlay&lt;/a&gt; in the smp_ble_feat_spi sample with your application and your mcuboot.overlay is that you&amp;#39;re missing to add the spi device into mcuboot.overlay (which you&amp;#39;ve done in your board file. MCUboot also needs to be aware of the external flash for it to use it.&lt;/p&gt;
&lt;p&gt;Try to get&amp;nbsp;&lt;a href="https://github.com/aHaugl/samples_for_NCS/blob/main/bootloader/spi/smp_ble_feat_spi/child_image/"&gt;https://github.com/aHaugl/samples_for_NCS/blob/main/bootloader/spi/smp_ble_feat_spi/child_image&lt;/a&gt;&amp;nbsp;up and running with your external flash and compare the setup there with your application&lt;/p&gt;[/quote]
&lt;p&gt;How about&amp;nbsp;&lt;a href="https://github.com/aHaugl/samples_for_NCS/blob/main/bootloader/spi/smp_ble_feat_spi"&gt;https://github.com/aHaugl/samples_for_NCS/blob/main/bootloader/spi/smp_ble_feat_spi&lt;/a&gt;? Are you able to run this sample with your external flash and board?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU on nrf52832</title><link>https://devzone.nordicsemi.com/thread/519876?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2025 21:04:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb46a5ef-5425-4b4c-a4fd-9661c0574e07</guid><dc:creator>Moh</dc:creator><description>&lt;p&gt;Here is the generated dts as part of the failed build for your reference.&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4571.zephyr.dts"&gt;devzone.nordicsemi.com/.../4571.zephyr.dts&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU on nrf52832</title><link>https://devzone.nordicsemi.com/thread/519873?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2025 20:37:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bab898b5-431b-4f0b-bc47-82857ff363b7</guid><dc:creator>Moh</dc:creator><description>&lt;p&gt;Hi Andreas, I have managed to build&amp;nbsp;&lt;a id="" href="https://docs.zephyrproject.org/latest/samples/drivers/spi_flash/README.html"&gt;https://docs.zephyrproject.org/latest/samples/drivers/spi_flash/README.html&lt;/a&gt;&amp;nbsp;with below dts&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;spi2 {
    compatible = &amp;quot;nordic,nrf-spi&amp;quot;;
    status = &amp;quot;okay&amp;quot;;
    pinctrl-0 = &amp;lt;&amp;amp;spi2_default&amp;gt;;
    pinctrl-1 = &amp;lt;&amp;amp;spi2_sleep&amp;gt;;
    pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
    cs-gpios = &amp;lt;&amp;amp;gpio0 16 GPIO_ACTIVE_LOW&amp;gt;;
	at25xe321d: at25xe321d@0 {
        #address-cells = &amp;lt;1&amp;gt;;
        #size-cells = &amp;lt;1&amp;gt;;
		partitions {
			compatible = &amp;quot;fixed-partitions&amp;quot;;
			#address-cells = &amp;lt;1&amp;gt;;
			#size-cells = &amp;lt;1&amp;gt;;

			slot1_partition: partition@0 {
				label = &amp;quot;image-1&amp;quot;;
				reg = &amp;lt;0x0000000 DT_SIZE_K(472)&amp;gt;;
			};
			/* to be used in firmware */
			store_partition: partition@100000 {
				label = &amp;quot;store&amp;quot;;
				reg = &amp;lt;0x00100000 0x00400000&amp;gt;;
			};
		};
		compatible = &amp;quot;jedec,spi-nor&amp;quot;;
        reg = &amp;lt;0&amp;gt;; // Chip select 0
        spi-max-frequency = &amp;lt;100000000&amp;gt;;
        jedec-id = [1F 47 0C];
        // size = &amp;lt;0x400000&amp;gt;;  // 4 MB
		size = &amp;lt;DT_SIZE_M(4)&amp;gt;;
		has-dpd;
		t-enter-dpd = &amp;lt; 3000 &amp;gt;;
		t-exit-dpd = &amp;lt; 1200000 &amp;gt;;
    };
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When I try to build my application without mciboot/DFU, it doesn&amp;#39;t build. When I commented out&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;bt_enable(&lt;/span&gt;&lt;span&gt;NULL&lt;/span&gt;&lt;span&gt;); from my code base, it builds. I am figuring out why this is the case as I need BLE enabled in my application.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU on nrf52832</title><link>https://devzone.nordicsemi.com/thread/519780?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2025 13:44:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4232d62-c8e8-4197-b96b-fa5bc8fac82d</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Some times it takes longer than a day to get back for a reply, which is why I didn&amp;#39;t get back to you before now. In these unfortunate cases, here are some resources for you to use to spend more time debugging while waiting for a reply: &lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-2-debugging/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-2-debugging/&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/develop/west/build-flash-debug.html#permanent_cmake_arguments"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/develop/west/build-flash-debug.html#permanent_cmake_arguments&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;&lt;a href="https://github.com/aHaugl/samples_for_NCS/blob/main/bootloader/spi/smp_ble_feat_spi/child_image/mcuboot.overlay"&gt;https://github.com/aHaugl/samples_for_NCS/blob/main/bootloader/spi/smp_ble_feat_spi/child_image&lt;/a&gt;&amp;nbsp;sample should&amp;#39;ve also been enough to use for comparison together with the two zephyr samples I sent in my previous reply&lt;/p&gt;
[quote user="Moh"]I have managed to build and run the sample with that dts spi2 configurations.[/quote]
&lt;p&gt;Which of the two samples are you referring to here? And great! Did you see the expected output when hooking the device up to a terminal? If you ran the JESD216 sample as well, which output did you get?&lt;/p&gt;
&lt;p&gt;Next after getting these two samples up and running, which means that &lt;span style="text-decoration:underline;"&gt;if&lt;/span&gt; you got the correct output, then the external flash would&amp;#39;ve been correctly configured,&amp;nbsp;I intended for you to compare those two samples with&amp;nbsp;&lt;a href="https://github.com/aHaugl/samples_for_NCS/tree/main/bootloader/spi/smp_ble_feat_spi"&gt;https://github.com/aHaugl/samples_for_NCS/tree/main/bootloader/spi/smp_ble_feat_spi&lt;/a&gt;&amp;nbsp;and replace the mx25 flash I&amp;#39;ve used here with your at25x flash. One difference I can spot immedeatly is the difference between the &lt;a href="https://github.com/aHaugl/samples_for_NCS/blob/main/bootloader/spi/smp_ble_feat_spi/child_image/mcuboot.overlay"&gt;mcuboot.overlay&lt;/a&gt; in the smp_ble_feat_spi sample with your application and your mcuboot.overlay is that you&amp;#39;re missing to add the spi device into mcuboot.overlay (which you&amp;#39;ve done in your board file. MCUboot also needs to be aware of the external flash for it to use it.&lt;/p&gt;
&lt;p&gt;Try to get&amp;nbsp;&lt;a href="https://github.com/aHaugl/samples_for_NCS/blob/main/bootloader/spi/smp_ble_feat_spi/child_image/"&gt;https://github.com/aHaugl/samples_for_NCS/blob/main/bootloader/spi/smp_ble_feat_spi/child_image&lt;/a&gt;&amp;nbsp;up and running with your external flash and compare the setup there with your application&lt;/p&gt;
&lt;p&gt;I hope that you&amp;#39;re successful in this and please feel free to ask follow up questions regarding the configuration and samples if needed&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU on nrf52832</title><link>https://devzone.nordicsemi.com/thread/519744?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2025 12:13:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dcac18e0-9942-41d1-a81d-e3fcaf61edcd</guid><dc:creator>Moh</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi&amp;nbsp;&lt;/span&gt;&lt;span&gt;Andreas,&amp;nbsp;do you have any update? Thanks Moh&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU on nrf52832</title><link>https://devzone.nordicsemi.com/thread/519645?ContentTypeID=1</link><pubDate>Wed, 22 Jan 2025 20:00:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44f6bec0-bf3a-4c01-873a-4d523b9d1126</guid><dc:creator>Moh</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Andreas, I have managed to build the application (without mcuboot) with above spi2 dts configuration if I comment out&amp;nbsp;&lt;/span&gt;&lt;span&gt;bt_enable(&lt;/span&gt;&lt;span&gt;NULL&lt;/span&gt;&lt;span&gt;); from my application. I have no idea why it&amp;#39;s causing that.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU on nrf52832</title><link>https://devzone.nordicsemi.com/thread/519610?ContentTypeID=1</link><pubDate>Wed, 22 Jan 2025 15:23:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d08184e0-7ccb-4351-8562-d9e36a66a7ff</guid><dc:creator>Moh</dc:creator><description>&lt;p&gt;Hi Andreas, I have managed to build and run the sample with that dts spi2 configurations. I don&amp;#39;t know why&amp;nbsp;my application doesn&amp;#39;t build.&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;spi2 {
    compatible = &amp;quot;nordic,nrf-spi&amp;quot;;
    status = &amp;quot;okay&amp;quot;;
    pinctrl-0 = &amp;lt;&amp;amp;spi2_default&amp;gt;;
    pinctrl-1 = &amp;lt;&amp;amp;spi2_sleep&amp;gt;;
    pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
    cs-gpios = &amp;lt;&amp;amp;gpio0 16 GPIO_ACTIVE_LOW&amp;gt;;
	at25xe321d: at25xe321d@0 {
        #address-cells = &amp;lt;1&amp;gt;;
        #size-cells = &amp;lt;1&amp;gt;;
		partitions {
			compatible = &amp;quot;fixed-partitions&amp;quot;;
			#address-cells = &amp;lt;1&amp;gt;;
			#size-cells = &amp;lt;1&amp;gt;;

			slot1_partition: partition@0 {
				label = &amp;quot;image-1&amp;quot;;
				reg = &amp;lt;0x0000000 DT_SIZE_K(472)&amp;gt;;
			};
			/* to be used in firmware */
			store_partition: partition@100000 {
				label = &amp;quot;store&amp;quot;;
				reg = &amp;lt;0x00100000 0x00400000&amp;gt;;
			};
		};
		compatible = &amp;quot;jedec,spi-nor&amp;quot;;
        reg = &amp;lt;0&amp;gt;; // Chip select 0
        spi-max-frequency = &amp;lt;100000000&amp;gt;;
        jedec-id = [1F 47 0C];
        // size = &amp;lt;0x400000&amp;gt;;  // 4 MB
		size = &amp;lt;DT_SIZE_M(4)&amp;gt;;
		has-dpd;
		t-enter-dpd = &amp;lt; 3000 &amp;gt;;
		t-exit-dpd = &amp;lt; 1200000 &amp;gt;;
    };
};&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU on nrf52832</title><link>https://devzone.nordicsemi.com/thread/519592?ContentTypeID=1</link><pubDate>Wed, 22 Jan 2025 14:31:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:038354e0-4985-4d0f-83f4-ec962f1b6bf9</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Do you also get the expected output from the sample, i.e are you able to run it?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU on nrf52832</title><link>https://devzone.nordicsemi.com/thread/519591?ContentTypeID=1</link><pubDate>Wed, 22 Jan 2025 14:30:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8117fb73-554a-427d-a066-8560a20451e9</guid><dc:creator>Moh</dc:creator><description>&lt;p&gt;Hi Andreas, When I try to build the sample (without mcuboot) with above attached spi2 dts configurations, I got similar error&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: zephyr/libzephyr.a(flash_map_default.c.obj):(.rodata.default_flash_map+0x4c): undefined reference to `__device_dts_ord_122&amp;#39;
/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: zephyr/libzephyr.a(flash_map_default.c.obj):(.rodata.default_flash_map+0x5c): undefined reference to `__device_dts_ord_122&amp;#39;&lt;/pre&gt;&lt;br /&gt;but when I build with without&amp;nbsp;partitions defined, It builds and runs fine.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;spi2 {
    compatible = &amp;quot;nordic,nrf-spi&amp;quot;;
    status = &amp;quot;okay&amp;quot;;
    pinctrl-0 = &amp;lt;&amp;amp;spi2_default&amp;gt;;
    pinctrl-1 = &amp;lt;&amp;amp;spi2_sleep&amp;gt;;
    pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
    cs-gpios = &amp;lt;&amp;amp;gpio0 16 GPIO_ACTIVE_LOW&amp;gt;;
	at25xe321d: at25xe321d@0 {
        #address-cells = &amp;lt;1&amp;gt;;
        #size-cells = &amp;lt;1&amp;gt;;
		compatible = &amp;quot;jedec,spi-nor&amp;quot;;
        reg = &amp;lt;0&amp;gt;; // Chip select 0
        spi-max-frequency = &amp;lt;100000000&amp;gt;;
        jedec-id = [1F 47 0C];
        // size = &amp;lt;0x400000&amp;gt;;  // 4 MB
		size = &amp;lt;DT_SIZE_M(4)&amp;gt;;
		has-dpd;
		t-enter-dpd = &amp;lt; 3000 &amp;gt;;
		t-exit-dpd = &amp;lt; 1200000 &amp;gt;;
    };
};&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU on nrf52832</title><link>https://devzone.nordicsemi.com/thread/519587?ContentTypeID=1</link><pubDate>Wed, 22 Jan 2025 14:15:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:479bcce8-9cb9-485f-b997-fbdba1b98fa0</guid><dc:creator>AHaug</dc:creator><description>[quote user="Moh"]Please find the log attached. I have also attached the prj_release file. As you can see, I have commented out&amp;nbsp;[/quote]
&lt;p&gt;My bad, I didn&amp;#39;t spot the #.&lt;/p&gt;
&lt;p&gt;Could you check with this sample (and your external flash) if you&amp;#39;re able to get the external flash device running?&amp;nbsp;&lt;a href="https://docs.zephyrproject.org/latest/samples/drivers/spi_flash/README.html"&gt;https://docs.zephyrproject.org/latest/samples/drivers/spi_flash/README.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You might need to run&amp;nbsp;&lt;a href="https://docs.zephyrproject.org/latest/samples/drivers/jesd216/README.html"&gt;https://docs.zephyrproject.org/latest/samples/drivers/jesd216/README.html&lt;/a&gt;&amp;nbsp;if the parameters in &amp;amp;spi2 is wrong&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;spi2 {
    compatible = &amp;quot;nordic,nrf-spi&amp;quot;;
    status = &amp;quot;okay&amp;quot;;
    pinctrl-0 = &amp;lt;&amp;amp;spi2_default&amp;gt;;
    pinctrl-1 = &amp;lt;&amp;amp;spi2_sleep&amp;gt;;
    pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
    cs-gpios = &amp;lt;&amp;amp;gpio0 16 GPIO_ACTIVE_LOW&amp;gt;;

    at25xe321d: at25xe321d@0 {
        #address-cells = &amp;lt;1&amp;gt;;
        #size-cells = &amp;lt;1&amp;gt;;
		partitions {
			compatible = &amp;quot;fixed-partitions&amp;quot;;
			#address-cells = &amp;lt;1&amp;gt;;
			#size-cells = &amp;lt;1&amp;gt;;

			slot1_partition: partition@0 {
				label = &amp;quot;image-1&amp;quot;;
				reg = &amp;lt;0x0000000 DT_SIZE_K(472)&amp;gt;;
			};
			/* to be used in firmware */
			store_partition: partition@100000 {
				label = &amp;quot;store&amp;quot;;
				reg = &amp;lt;0x00100000 0x00400000&amp;gt;;
			};
		};
		compatible = &amp;quot;jedec,spi-nor&amp;quot;;
        reg = &amp;lt;0&amp;gt;; // Chip select 0
        spi-max-frequency = &amp;lt;100000000&amp;gt;;
        jedec-id = [1F 47 0C];
        // size = &amp;lt;0x400000&amp;gt;;  // 4 MB
		size = &amp;lt;DT_SIZE_M(4)&amp;gt;;
		has-dpd;
		t-enter-dpd = &amp;lt; 3000 &amp;gt;;
		t-exit-dpd = &amp;lt; 1200000 &amp;gt;;
    };
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU on nrf52832</title><link>https://devzone.nordicsemi.com/thread/519474?ContentTypeID=1</link><pubDate>Wed, 22 Jan 2025 09:07:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7403790b-c674-40a8-808c-291397cde79d</guid><dc:creator>Moh</dc:creator><description>&lt;p&gt;Hi Andreas,&lt;/p&gt;
&lt;p&gt;Please find the log attached. I have also attached the prj_release file. As you can see, I have commented out&amp;nbsp; CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU. I have also attached log from devicetree.generated.h for undefined&amp;nbsp;__device_dts_ord_105&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;/* Node&amp;#39;s dependency ordinal: */&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#define &lt;/span&gt;&lt;span&gt;DT_N_S_soc_S_i2c_40004000_ORD&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;105&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#define &lt;/span&gt;&lt;span&gt;DT_N_S_soc_S_i2c_40004000_ORD_STR_SORTABLE&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;00105&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0005.prj_5F00_release.conf"&gt;devzone.nordicsemi.com/.../0005.prj_5F00_release.conf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;-- west build: building application
[1/349] Preparing syscall dependency handling

[9/349] Generating include/generated/version.h
-- Zephyr version: 3.5.99 (/opt/nordic/ncs/v2.6.0/zephyr), build: v3.5.99-ncs1
[1/271] Preparing syscall dependency handling

[4/271] Generating include/generated/version.h
-- Zephyr version: 3.5.99 (/opt/nordic/ncs/v2.6.0/zephyr), build: v3.5.99-ncs1
[266/271] Linking C executable zephyr/zephyr_pre0.elf
FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map /Users/mohsin/path-feel-zephyr-fw/app/build_release/mcuboot/zephyr/zephyr_pre0.map 
: &amp;amp;&amp;amp; ccache /opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc  -gdwarf-4 zephyr/CMakeFiles/zephyr_pre0.dir/misc/empty_file.c.obj -o zephyr/zephyr_pre0.elf  zephyr/CMakeFiles/offsets.dir/./arch/arm/core/offsets/offsets.c.obj  -fuse-ld=bfd  -T  zephyr/linker_zephyr_pre0.cmd  -Wl,-Map=/Users/mohsin/path-feel-zephyr-fw/app/build_release/mcuboot/zephyr/zephyr_pre0.map  -Wl,--whole-archive  app/libapp.a  zephyr/libzephyr.a  zephyr/arch/common/libarch__common.a  zephyr/arch/arch/arm/core/libarch__arm__core.a  zephyr/arch/arch/arm/core/cortex_m/libarch__arm__core__cortex_m.a  zephyr/arch/arch/arm/core/mpu/libarch__arm__core__mpu.a  zephyr/lib/libc/minimal/liblib__libc__minimal.a  zephyr/lib/libc/common/liblib__libc__common.a  zephyr/soc/soc/arm/nordic_nrf/libsoc__arm__nordic_nrf.a  zephyr/drivers/clock_control/libdrivers__clock_control.a  zephyr/drivers/console/libdrivers__console.a  zephyr/drivers/flash/libdrivers__flash.a  zephyr/drivers/gpio/libdrivers__gpio.a  zephyr/drivers/pinctrl/libdrivers__pinctrl.a  zephyr/drivers/serial/libdrivers__serial.a  zephyr/drivers/timer/libdrivers__timer.a  modules/nrf/lib/fprotect/lib..__nrf__lib__fprotect.a  modules/nrf/lib/fatal_error/lib..__nrf__lib__fatal_error.a  modules/mcuboot/boot/bootutil/zephyr/libmcuboot_util.a  modules/mbedtls/libmbedTLSBase.a  modules/mbedtls/libmbedTLSCrypto.a  modules/mbedtls/libmbedTLSX509.a  modules/mbedtls/libmodules__mbedtls.a  modules/hal_nordic/nrfx/libmodules__hal_nordic__nrfx.a  modules/segger/libmodules__segger.a  -Wl,--no-whole-archive  zephyr/kernel/libkernel.a  -L&amp;quot;/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/thumb/v7e-m/nofp&amp;quot;  -L/Users/mohsin/path-feel-zephyr-fw/app/build_release/mcuboot/zephyr  -lgcc  zephyr/arch/common/libisr_tables.a  modules/mbedtls/libmbedTLSBase.a  modules/mbedtls/libmbedTLSCrypto.a  modules/mbedtls/libmbedTLSX509.a  -mcpu=cortex-m4  -mthumb  -mabi=aapcs  -mfp16-format=ieee  -Wl,--gc-sections  -Wl,--build-id=none  -Wl,--sort-common=descending  -Wl,--sort-section=alignment  -Wl,-u,_OffsetAbsSyms  -Wl,-u,_ConfigAbsSyms  -nostdlib  -static  -Wl,-X  -Wl,-N  -Wl,--orphan-handling=warn  -Wl,-no-pie &amp;amp;&amp;amp; cd /Users/mohsin/path-feel-zephyr-fw/app/build_release/mcuboot/zephyr &amp;amp;&amp;amp; /opt/nordic/ncs/toolchains/580e4ef81c/Cellar/cmake/3.21.0/bin/cmake -E true
/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: zephyr/drivers/flash/libdrivers__flash.a(spi_nor.c.obj): in function `k_sleep&amp;#39;:
/Users/mohsin/path-feel-zephyr-fw/app/build_release/mcuboot/zephyr/include/generated/syscalls/kernel.h:135: undefined reference to `z_impl_k_sleep&amp;#39;
/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: /Users/mohsin/path-feel-zephyr-fw/app/build_release/mcuboot/zephyr/include/generated/syscalls/kernel.h:135: undefined reference to `z_impl_k_sleep&amp;#39;
/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: zephyr/drivers/flash/libdrivers__flash.a(spi_nor.c.obj):(.rodata.spi_nor_config_0+0x0): undefined reference to `__device_dts_ord_105&amp;#39;
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU on nrf52832</title><link>https://devzone.nordicsemi.com/thread/519469?ContentTypeID=1</link><pubDate>Wed, 22 Jan 2025 08:50:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2d851de-c83a-43a8-8163-a12ab6921bbc</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
[quote user="Moh"]Any chance to have a live session? Thanks Moh[/quote]
&lt;p&gt;Unfortunately we typically don&amp;#39;t do live sessions and when we do they have to be arranged through your regional sales manager.&lt;/p&gt;
[quote user="Moh"]If I don&amp;#39;t include&amp;nbsp;&lt;span&gt;&lt;strong&gt;at25xe321d&lt;/strong&gt;&amp;nbsp;&lt;/span&gt;in overlay, mcuboot builds fine and eventually the app[/quote]
&lt;p&gt;Ok, this is good since we now have isolated that the issue is with configuring the external flash and presumably that everything else works as it should. Could you post the build log with errors for the unsuccessful build with the external flash (for the setup without using&amp;nbsp;&lt;span&gt;CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU)? I still see in the latest 1581.prj_release.conf that you&amp;#39;re using this configuration&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU on nrf52832</title><link>https://devzone.nordicsemi.com/thread/519377?ContentTypeID=1</link><pubDate>Tue, 21 Jan 2025 16:47:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56648f9d-f5f7-4444-848b-7d4356cfcc07</guid><dc:creator>Moh</dc:creator><description>&lt;p&gt;Hi Andreas, If I don&amp;#39;t include&amp;nbsp;&lt;span&gt;&lt;strong&gt;at25xe321d&lt;/strong&gt;&amp;nbsp;&lt;/span&gt;in overlay, mcuboot builds fine and eventually the app. Any idea why it doesn&amp;#39;t like&amp;nbsp;&lt;strong&gt;&lt;span&gt;at25xe321d?&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;/delete-node/&lt;/span&gt;&lt;span&gt; &amp;amp;at25xe321d;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;/delete-node/&lt;/span&gt;&lt;span&gt; &amp;amp;i2c0;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;/delete-node/&lt;/span&gt;&lt;span&gt; &amp;amp;i2c1;&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; chosen {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;// nordic,pm-ext-flash = &amp;amp;at25xe321d;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; };&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;};&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU on nrf52832</title><link>https://devzone.nordicsemi.com/thread/519356?ContentTypeID=1</link><pubDate>Tue, 21 Jan 2025 15:27:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e576d12-b0eb-474a-914f-91b2b94a69f7</guid><dc:creator>Moh</dc:creator><description>&lt;p&gt;Hi Andreas, bootloader is not getting build. Getting same above errors. For some reason, it doesn&amp;#39;t like SPI. See files attached.&lt;/p&gt;
&lt;p&gt;Any chance to have a live session? Thanks Moh&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3644.mcuboot.overlay"&gt;devzone.nordicsemi.com/.../3644.mcuboot.overlay&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8424.mcuboot.conf"&gt;devzone.nordicsemi.com/.../8424.mcuboot.conf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1581.prj_5F00_release.conf"&gt;devzone.nordicsemi.com/.../1581.prj_5F00_release.conf&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU on nrf52832</title><link>https://devzone.nordicsemi.com/thread/519340?ContentTypeID=1</link><pubDate>Tue, 21 Jan 2025 14:37:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:afb1a4cf-090d-464f-9515-885155b8766c</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;You can stick with 2.6.0, no worries&lt;/p&gt;
&lt;p&gt;As mentioned &lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/topic/exercise-3-fota-over-bluetooth-low-energy/"&gt;here:&amp;nbsp;&lt;/a&gt;&lt;em&gt;&amp;quot;In Zephyr, a set of configurations are needed to enable FOTA. An example of how to set this up can be seen in the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/subsys/mgmt/mcumgr/smp_svr/README.html" rel="noopener noreferrer" target="_blank"&gt;SMP Server sample&lt;/a&gt;. However, the nRF Connect SDK includes the option&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU" rel="noopener noreferrer" target="_blank"&gt;&lt;code&gt;CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU&lt;/code&gt;&lt;/a&gt;, which sets all needed configurations for us. This option makes it easier for us to enable FOTA, so we will use that.&amp;nbsp;&lt;/em&gt;&lt;em&gt;This configuration is named CONFIG_NCS_SAMPLE… as it makes some assumptions about the project. For your custom project, I recommend that you look at what configurations&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU" rel="noopener noreferrer" target="_blank"&gt;&lt;code&gt;CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU&lt;/code&gt;&lt;/a&gt;&amp;nbsp;set for you, and include the ones from there you need instead.&amp;quot;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Meaning that you can have a look at&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.6.1/page/kconfig/index.html#CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU"&gt;https://docs.nordicsemi.com/bundle/ncs-2.6.1/page/kconfig/index.html#CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU&lt;/a&gt;&lt;span&gt;&amp;nbsp; and choose to add the relevant configurations line by line instead of using the &amp;quot;include all NCS_SAMPLE&amp;quot; configuration option which I&amp;#39;ve done here in the sample I sent you:&amp;nbsp;&lt;a href="https://github.com/aHaugl/samples_for_NCS/blob/f2dc920a9edd84dea711febb6f642fcbb3155e55/bootloader/spi/smp_ble_feat_spi/prj.conf"&gt;https://github.com/aHaugl/samples_for_NCS/blob/f2dc920a9edd84dea711febb6f642fcbb3155e55/bootloader/spi/smp_ble_feat_spi/prj.conf&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards,&lt;br /&gt;Andreas&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU on nrf52832</title><link>https://devzone.nordicsemi.com/thread/519337?ContentTypeID=1</link><pubDate>Tue, 21 Jan 2025 14:30:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12f2c15f-2f7c-4b17-9df6-97b396a91c0b</guid><dc:creator>Moh</dc:creator><description>&lt;p&gt;Hi Andreas, thanks for your response. Do I need to move to 2.8.0 ncs or how I can disable QSPI on 2.6.0? Thanks Moh&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU on nrf52832</title><link>https://devzone.nordicsemi.com/thread/519335?ContentTypeID=1</link><pubDate>Tue, 21 Jan 2025 14:28:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8273dc7-6fad-4db1-9e73-e5dba881f7b7</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Aha, of course! (not really, but this is an issue I&amp;#39;ve ran into when trying to set up the SPI sample I sent you earlier). In NCS 2.6,&amp;nbsp;CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU=y implies that QSPI should be selected. In other words, no matter how hard you try to disable qspi, it will still be added in if you have&amp;nbsp;CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU=y, meaning that your sample won&amp;#39;t compile for the nRF52832/33&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.6.1/page/kconfig/index.html#CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU"&gt;https://docs.nordicsemi.com/bundle/ncs-2.6.1/page/kconfig/index.html#CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If I remember correct, this config was changed in 2.8.0 due to the issues this config caused for projects based on a sample that were not going to use SPI&lt;/p&gt;
&lt;p&gt;Let me know if this explains things for you&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU on nrf52832</title><link>https://devzone.nordicsemi.com/thread/519333?ContentTypeID=1</link><pubDate>Tue, 21 Jan 2025 14:18:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc05d455-90a5-4318-92fc-c7dacd2c0aeb</guid><dc:creator>AHaug</dc:creator><description>[quote user="Moh"]As far as I understand, nRF52832 doesn&amp;#39;t support QSPI. I [/quote]
&lt;p&gt;You&amp;#39;re absolutely right. I was mixing up the available peripherals in the nRF52 family socs.&lt;/p&gt;
&lt;p&gt;Could you then provide the .config file from the previous failed build with the undefined references to qspi?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>