<?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>Unable to save image to slot 1 (External QSPI Flash) on nRF52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/121133/unable-to-save-image-to-slot-1-external-qspi-flash-on-nrf52840</link><description>Hi , 
 
 I am trying to implemenent DFU on nRF52840. Aim is to store new image to slot on QSPI external flash but it seems like nothing is sored on slot 1 as when I upload image via DFU manager, nothing is on slot 1. Please confirm my dts, mcuboot and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 13 May 2025 10:27:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/121133/unable-to-save-image-to-slot-1-external-qspi-flash-on-nrf52840" /><item><title>RE: Unable to save image to slot 1 (External QSPI Flash) on nRF52840</title><link>https://devzone.nordicsemi.com/thread/535078?ContentTypeID=1</link><pubDate>Tue, 13 May 2025 10:27:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e855f42-d626-47bc-b55e-19923490ac90</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The &amp;quot;Hash not Found (8)&amp;quot; error during DFU with MCUboot and a custom nRF52840 board&amp;nbsp;usually shows an issue like how the image management and partitioning are set up, especially when using external flash for the secondary slot.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The one of the reasons of this error is nonidentical partition size of internal and external flash.&amp;nbsp;From your DTS, I can see that the&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;primary slot (&lt;code dir="ltr"&gt;image-0&lt;/code&gt;) and secondary slot (&lt;code dir="ltr"&gt;image-1&lt;/code&gt;)&amp;nbsp;are not in&amp;nbsp;same size&lt;b&gt;.&amp;nbsp; From your DTS&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;b&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;flash0 {
    ...
    slot0_partition: partition@c000 {
        label = &amp;quot;image-0&amp;quot;;
        reg = &amp;lt;0x0000C000 DT_SIZE_K(904)&amp;gt;;
    };
    ...
};

&amp;amp;qspi {
    ...
    at25xe32: at25xe321d@0 {
        ...
        partitions {
            ...
            slot1_partition: partition@0 {
                label = &amp;quot;image-1&amp;quot;;
                reg = &amp;lt;0x00000000 0x00100000&amp;gt;; /* 1MB */
            };
            ...
        };
    };
};&lt;/pre&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;&lt;span&gt;&lt;code dir="ltr"&gt;image-0&lt;/code&gt;&amp;nbsp;size:&amp;nbsp;&lt;code dir="ltr"&gt;DT_SIZE_K(904)&lt;/code&gt;&amp;nbsp;=&amp;nbsp;&lt;strong&gt;904 kB&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;&lt;span&gt;&lt;code dir="ltr"&gt;image-1&lt;/code&gt;&amp;nbsp;size:&amp;nbsp;&lt;code dir="ltr"&gt;0x00100000&lt;/code&gt;&amp;nbsp;=&amp;nbsp;&lt;strong&gt;1024 kB (1 MB)&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;If they differ, validation will fail, and you may see errors like the one you describe. This is a common issue as seen in other cases where DFU fails due to mismatched slot sizes or insufficient space in the secondary slot&lt;b&gt; [&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/104511/mcumgr-error-not_supported-during-dfu-by-ble-with-mcuboot?ReplyFilter=Answers&amp;amp;ReplySortBy=Answers&amp;amp;ReplySortOrder=Descending" rel="noopener noreferrer" target="_blank"&gt;MCUmgr error not_supported during DFU by BLE with MCUboo&lt;/a&gt;t.&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to save image to slot 1 (External QSPI Flash) on nRF52840</title><link>https://devzone.nordicsemi.com/thread/533948?ContentTypeID=1</link><pubDate>Mon, 05 May 2025 14:23:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d587512-9119-4cfa-b4bc-5331420993e7</guid><dc:creator>Moh</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi, Any update regarding my ticket? Thanks&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to save image to slot 1 (External QSPI Flash) on nRF52840</title><link>https://devzone.nordicsemi.com/thread/533769?ContentTypeID=1</link><pubDate>Fri, 02 May 2025 14:15:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ad89dda-15a0-4046-b53e-62a23a889b77</guid><dc:creator>Moh</dc:creator><description>&lt;p&gt;Hi Kazi,&lt;/p&gt;
&lt;p&gt;I have made above suggestions. When I upload the image via Device Manager or nrf Connect app, I got the error Hash not Found (8). I am using the custom board based on nRF52840. See the updated files changes below. Thanks Moh&lt;/p&gt;
&lt;p&gt;prj.conf&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# General Debugging and Logging
CONFIG_LOG=y
CONFIG_LOG_BACKEND_UART=y
CONFIG_LOG_PRINTK=y
CONFIG_CBPRINTF_FP_SUPPORT=y
CONFIG_CONSOLE=n
CONFIG_PRINTK=n
CONFIG_SHELL=y
CONFIG_SHELL_LOG_BACKEND=y
CONFIG_SHELL_CMD_BUFF_SIZE=512
CONFIG_USE_SEGGER_RTT=y
CONFIG_LOG_BACKEND_RTT=y
CONFIG_RTT_CONSOLE=n
CONFIG_UART_CONSOLE=y
CONFIG_SEGGER_RTT_BUFFER_SIZE_UP=4096
CONFIG_SEGGER_RTT_MODE_BLOCK_IF_FIFO_FULL=y
CONFIG_LOG_BLOCK_IN_THREAD=y
CONFIG_LOG_BUFFER_SIZE=4096
CONFIG_DEBUG=n
CONFIG_DEBUG_INFO=n
CONFIG_DEBUG_THREAD_INFO=n
CONFIG_BOOT_BANNER=y
CONFIG_SERIAL=y
CONFIG_NVS_LOG_LEVEL_DBG=y
CONFIG_LOG_BACKEND_UART_BUFFER_SIZE=4096
CONFIG_LOG_DEFAULT_LEVEL=3
CONFIG_LOG_MODE_IMMEDIATE=y
CONFIG_DEBUG_OPTIMIZATIONS=n
CONFIG_MCUBOOT_UTIL_LOG_LEVEL_WRN=y

# Enable Clock Driver
# CONFIG_CLOCK_CONTROL=y
# CONFIG_CLOCK_CONTROL_NRF=y
# CONFIG_CLOCK_CONTROL_NRF_K32SRC_XTAL=y

# Peripheral and Sensor Drivers
CONFIG_I2C=y
CONFIG_SPI=y
CONFIG_SPI_NOR=y
CONFIG_NORDIC_QSPI_NOR=y
CONFIG_NORDIC_QSPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096
# CONFIG_ADC=y
CONFIG_SENSOR=y
# TMP116 is disabled (enable if in device tree)
# CONFIG_TMP116=y
CONFIG_BMI270=y
CONFIG_WDT_LOG_LEVEL_DBG=y
CONFIG_BMI270_TRIGGER_GLOBAL_THREAD=y
CONFIG_WATCHDOG=y
CONFIG_TASK_WDT=y
CONFIG_TASK_WDT_MIN_TIMEOUT=1000
CONFIG_WDT_LOG_LEVEL_ERR=y
CONFIG_WDT_DISABLE_AT_BOOT=n
CONFIG_LED=y
CONFIG_REGULATOR=y
CONFIG_MFD_NPM1300=y
CONFIG_PM_DEVICE=n
CONFIG_PM_DEVICE_RUNTIME=n
CONFIG_SYS_CLOCK_EXISTS=y
CONFIG_PM=y
CONFIG_POWEROFF=y
CONFIG_NRF_FUEL_GAUGE=y
CONFIG_TASK_WDT=y

# Enable nrfx drivers
CONFIG_NRFX_SAADC=y
CONFIG_NRFX_PPI=y
CONFIG_NRFX_DPPI=y
CONFIG_NRFX_TIMER2=y

# CONFIG_NRFX_QSPI=y
# CONFIG_NRFX_QSPI_LOG=y
# CONFIG_NORDIC_QSPI_NOR=y

# Memory Optimizations
CONFIG_MAIN_STACK_SIZE=4096
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
CONFIG_HEAP_MEM_POOL_SIZE=4096
CONFIG_ASSERT=n
CONFIG_THREAD_ANALYZER=n
CONFIG_SIZE_OPTIMIZATIONS=y
CONFIG_EVENTS=y
CONFIG_PM_SINGLE_IMAGE=y
CONFIG_RESET_ON_FATAL_ERROR=y

# Flash and Filesystem
CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_FLASH_MAP=y
CONFIG_MPU_ALLOW_FLASH_WRITE=y
CONFIG_FLASH_JESD216_API=y
CONFIG_SPI_NOR_IDLE_IN_DPD=y
CONFIG_NVS=y
CONFIG_IMG_MANAGER=y
CONFIG_IMG_ERASE_PROGRESSIVELY=n

# Enable Bluetooth settings
CONFIG_BT_SETTINGS=y

# Enable settings subsystem
CONFIG_SETTINGS=y

# Enable Bluetooth and controller settings
CONFIG_BT=y
CONFIG_BT_CTLR_TX_PWR_PLUS_4=y
CONFIG_BT_HCI=y
CONFIG_BT_CTLR=y
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_BROADCASTER=n
CONFIG_BT_SMP=y
CONFIG_BT_BONDABLE=y
CONFIG_BT_CTLR_ADV_EXT=n
CONFIG_BT_DEVICE_APPEARANCE=1345
CONFIG_BT_DEVICE_NAME_DYNAMIC=y
CONFIG_BT_GATT_CLIENT=y
CONFIG_BT_FILTER_ACCEPT_LIST=y
CONFIG_BT_SIGNING=y

# Bluetooth security and bonding settings
CONFIG_BT_KEYS_OVERWRITE_OLDEST=y
CONFIG_BT_SMP_ALLOW_UNAUTH_OVERWRITE=y
CONFIG_BT_ID_UNPAIR_MATCHING_BONDS=y
CONFIG_BT_PRIVACY=n
CONFIG_BT_TINYCRYPT_ECC=y
CONFIG_BT_CTLR_PHY_2M=y

# Bluetooth buffer and connection settings
CONFIG_BT_BUF_ACL_RX_SIZE=502
CONFIG_BT_ATT_PREPARE_COUNT=2
CONFIG_BT_BUF_ACL_TX_SIZE=251
CONFIG_BT_BUF_ACL_TX_COUNT=10
CONFIG_BT_L2CAP_TX_MTU=247
CONFIG_BT_L2CAP_TX_BUF_COUNT=10
CONFIG_BT_L2CAP_DYNAMIC_CHANNEL=y
CONFIG_BT_CTLR_DATA_LENGTH_MAX=251
CONFIG_BT_CTLR_RX_BUFFERS=2
CONFIG_BT_CONN_TX_MAX=10
CONFIG_BT_GAP_AUTO_UPDATE_CONN_PARAMS=n
CONFIG_BT_HCI_VS_EXT=n
CONFIG_BT_GATT_DM=y

# Allow only LESC pairing
# CONFIG_BT_SMP_SC_PAIR_ONLY=y

# Configure Bluetooth connection settings
CONFIG_BT_CTLR_TX_PWR_0=y
CONFIG_BT_MAX_CONN=1
CONFIG_BT_MAX_PAIRED=1

# Enable PHY updates
CONFIG_BT_USER_PHY_UPDATE=y
CONFIG_BT_USER_DATA_LEN_UPDATE=y

# Enable Bluetooth shell for debugging
CONFIG_BT_SHELL=n
CONFIG_SHELL_BACKEND_SERIAL=y

# Enable BT NUS (Nordic UART Service) shell for testing
# CONFIG_SHELL_BT_NUS=y

# Enable Battery Service (BAS) for battery level reporting
CONFIG_BT_BAS=y

# Cryptography
CONFIG_TINYCRYPT=y
CONFIG_BT_TINYCRYPT_ECC=y

# MCUboot + FOTA
CONFIG_BOOTLOADER_MCUBOOT=y
CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU=y
CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU_SPEEDUP=y
CONFIG_MCUMGR_TRANSPORT_BT_AUTHEN=n

# CONFIG_MCUMGR_MGMT_NOTIFICATION_HOOKS=y
CONFIG_MCUMGR=y
CONFIG_IMG_MANAGER=y
CONFIG_MCUMGR_GRP_IMG=y
CONFIG_MCUMGR_GRP_OS=y
# Disable the Flash Patch and Breakpoint unit for secure production
CONFIG_DISABLE_FLASH_PATCH=y

# Use internal RC oscillator instead of external 32.768 kHz crystal
CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y
CONFIG_CLOCK_CONTROL_NRF_K32SRC_500PPM=y

# Reboot and Miscellaneous
CONFIG_REBOOT=y
CONFIG_BOOT_DELAY=0&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;mcuboot.conf&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# Enable QSPI drivers for external flash
CONFIG_NORDIC_QSPI_NOR=y
CONFIG_BOOT_MAX_IMG_SECTORS=256
CONFIG_NORDIC_QSPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096
CONFIG_BOOT_MAX_IMG_SECTORS=512
CONFIG_MULTITHREADING=y
CONFIG_MAIN_STACK_SIZE=10240
CONFIG_LOG_MODE_MINIMAL=y

# Logging
CONFIG_LOG=y
CONFIG_LOG_DEFAULT_LEVEL=3

CONFIG_FLASH=y
CONFIG_FLASH_SIMULATOR=y
CONFIG_FLASH_SIMULATOR_DOUBLE_WRITES=y
CONFIG_FLASH_SIMULATOR_STATS=n

# Configure boolader to use two slots
CONFIG_SINGLE_APPLICATION_SLOT=n

# Place the secondary partition of MCUboot in the external flash instead of the internal flash
CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY=y

# Override external driver check
CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK=y

CONFIG_FLASH_MAP=y
CONFIG_IMG_MANAGER=y

# Enable bootloader signature verification using ECDSA P-256
CONFIG_BOOT_SIGNATURE_TYPE_ECDSA_P256=y

CONFIG_BOOT_SIGNATURE_KEY_FILE=&amp;quot;my-enc-ec256-priv.pem&amp;quot;

# Disable the Flash Patch and Breakpoint unit for secure production
CONFIG_DISABLE_FLASH_PATCH=y

CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y
CONFIG_CLOCK_CONTROL_NRF_K32SRC_500PPM=y

CONFIG_PM_DEVICE=n
CONFIG_PM_DEVICE_RUNTIME=n&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;mcuboot.overlay&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/delete-node/ &amp;amp;i2c0;
 / {
	chosen {
		nordic,pm-ext-flash = &amp;amp;at25xe32;
	};
};
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;dts&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;
/ {
	model = &amp;quot;custom, custom nRF52840&amp;quot;;
	compatible = &amp;quot;custom,custom-nrf52840&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;
        zephyr,entropy = &amp;amp;rng;
		// zephyr,ieee802154 = &amp;amp;ieee802154;
	};

	zephyr,user { /* User-configurable settings */
		io-channels = &amp;lt;&amp;amp;adc 0&amp;gt;; /* Assign ADC channel 0 */
	};
};

&amp;amp;adc {
	#address-cells = &amp;lt;1&amp;gt;;
	#size-cells = &amp;lt;0&amp;gt;;
	status = &amp;quot;okay&amp;quot;; /* Enable ADC */

	channel@0 {
		reg = &amp;lt;0&amp;gt;; /* ADC channel 0 */
		zephyr,gain = &amp;quot;ADC_GAIN_1_4&amp;quot;; /* ADC gain setting */
		zephyr,reference = &amp;quot;ADC_REF_VDD_1_4&amp;quot;; /* Reference voltage (VDD/4) */
		zephyr,acquisition-time = &amp;lt;ADC_ACQ_TIME_DEFAULT&amp;gt;; /* Acquisition time */
		zephyr,input-positive = &amp;lt;NRF_SAADC_AIN6&amp;gt;; /* Positive input pin (P0.30) */
		zephyr,resolution = &amp;lt;12&amp;gt;; /* ADC resolution: 12 bits */
	};
};

&amp;amp;clock {
    lfclk {
        clock-source = &amp;quot;XTAL&amp;quot;;
    };
};

&amp;amp;radio {
    status = &amp;quot;okay&amp;quot;;
};

&amp;amp;uicr {
	nfct-pins-as-gpios;
};

&amp;amp;gpiote {
	status = &amp;quot;okay&amp;quot;;
};

&amp;amp;gpio0 {
	status = &amp;quot;okay&amp;quot;;
	sense-edge-mask = &amp;lt; 0x100000 &amp;gt;;  // gpio0 20
};

&amp;amp;gpio1 {
	status = &amp;quot;okay&amp;quot;;
};

&amp;amp;uart0 {
	compatible = &amp;quot;nordic,nrf-uart&amp;quot;;
	status = &amp;quot;okay&amp;quot;;
	current-speed = &amp;lt;115200&amp;gt;;
	pinctrl-0 = &amp;lt;&amp;amp;uart0_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;uart0_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&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;;

    at25xe32: at25xe321d@0 {
		compatible = &amp;quot;nordic,qspi-nor&amp;quot;;
        reg = &amp;lt;0x0&amp;gt;;
        jedec-id = [1f 47 0c];
        sck-frequency = &amp;lt;16000000&amp;gt;;
        size = &amp;lt;33554432&amp;gt;;
        // has-dpd;
        // t-enter-dpd = &amp;lt;3000&amp;gt;;
        // t-exit-dpd = &amp;lt;200000&amp;gt;;
        // Configure to actully use Quad SPI data.
        writeoc = &amp;quot;pp4o&amp;quot;;
        readoc = &amp;quot;read4io&amp;quot;;
        quad-enable-requirements = &amp;quot;S2B1v6&amp;quot;;

        /* Storage Partitions */
        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;0x00000000 0x00100000&amp;gt;; /* 1MB */
            };
            store_partition: partition@100000 {
                label = &amp;quot;store&amp;quot;;
                reg = &amp;lt;0x00100000 0x00300000&amp;gt;; /* 3MB */
            };
        };
    };
};

// &amp;amp;ieee802154 {
// 	status = &amp;quot;okay&amp;quot;;
// };

&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;0x00000000 DT_SIZE_K(48)&amp;gt;;
		};
		slot0_partition: partition@c000 {
			label = &amp;quot;image-0&amp;quot;;
			reg = &amp;lt;0x0000C000 DT_SIZE_K(904)&amp;gt;;
		};
		// slot1_partition: partition@82000 {
		// 	label = &amp;quot;image-1&amp;quot;;
		// 	reg = &amp;lt;0x00082000 DT_SIZE_K(472)&amp;gt;;
		// };

		scratch_partition: partition@ee000 {
			label = &amp;quot;image-scratch&amp;quot;;
			reg = &amp;lt;0x000ee000 DT_SIZE_K(40)&amp;gt;;
		};
		/*
		 * The flash starting at 0x000f8000 and ending at
		 * 0x000fffff is reserved for use by the application.
		 */

		/*
		 * Storage partition will be used by FCB/LittleFS/NVS
		 * if enabled.
		 */
		storage_partition: partition@f8000 {
			label = &amp;quot;storage&amp;quot;;
			reg = &amp;lt;0x000f8000 DT_SIZE_K(32)&amp;gt;;
		};
	};
};&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to save image to slot 1 (External QSPI Flash) on nRF52840</title><link>https://devzone.nordicsemi.com/thread/533760?ContentTypeID=1</link><pubDate>Fri, 02 May 2025 13:31:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebe8441c-ea32-46e0-816f-71744f6c8ce3</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;You can add/edit the configuration of mcuboot file in the following way:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_BOOT_MAX_IMG_SECTORS=512
CONFIG_MULTITHREADING=y
CONFIG_MAIN_STACK_SIZE=10240
CONFIG_LOG_MODE_MINIMAL=y
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;You need&amp;nbsp;&lt;span&gt;&amp;nbsp;add this to your DTS file to properly identify the external flash for the partition manager&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;chosen {
nordic,pm-ext-flash = &amp;amp;at25xe32;
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If&amp;nbsp;you&amp;#39;re using a different flash chip (AT25XE321D) than the default one (MX25R6435F) that comes with the nRF52840 development kit, you should delete the default flash node in your devicetree overlay.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;qspi {
    /delete-node/ &amp;amp;mx25r64;
    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;;
    
    at25xe32: at25xe321d@0 {
        /* Your existing configuration */
    };
};&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;After adding the above-mentioned configuration and changed in the DTS file, you can try to run the sample again and let us know.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;BR&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kazi&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>