External Flash Error QSPI

Hello,

I have a problem with using custom external Flash. QSPI communication.

nrf52840 + NCS2.9.0 , sysbuild.

Flash chip is GD25Q32, datasheet link

An error occurred at the beginning of BLE DFU, please help me solve the problem. Thank you.

log print,

00> [00:10:05.327,545] <err> qspi_nor: read error: address or size exceeds expected values.Addr: 0xebff0 size 16
00> [00:10:05.327,545] <inf> mcuboot_util: Secondary image of image pair (0.) is unreachable. Treat it as empty
00> [00:10:05.327,545] <inf> mcuboot_util: Image index: 0, Swap type: none
00> [00:10:05.327,606] <err> qspi_nor: read error: address or size exceeds expected values.Addr: 0xebff0 size 16
00> [00:10:05.327,606] <inf> mcuboot_util: Secondary image of image pair (0.) is unreachable. Treat it as empty
00> [00:10:05.327,606] <inf> mcuboot_util: Image index: 0, Swap type: none
00> [00:10:05.327,728] <err> STREAM_FLASH: Incorrect parameter
00> [00:10:05.327,728] <err> mcumgr_img_grp: Irrecoverable error: flash write failed: 10

sysbuild.conf

SB_CONFIG_BOOTLOADER_MCUBOOT=y
SB_CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY=y
SB_CONFIG_BOOT_SIGNATURE_TYPE_NONE=y

prj.conf

CONFIG_NCS_BOOT_BANNER=y
CONFIG_BOOT_BANNER=y
CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU=y
CONFIG_MCUMGR_GRP_ZBASIC_STORAGE_ERASE=n
CONFIG_NORDIC_QSPI_NOR=y
CONFIG_LOG=y
CONFIG_USE_SEGGER_RTT=y
CONFIG_LOG_BACKEND_RTT=y

sysbuil/mcuboot.conf

CONFIG_NORDIC_QSPI_NOR=y
CONFIG_BOOT_MAX_IMG_SECTORS=256
CONFIG_NCS_BOOT_BANNER=y
CONFIG_BOOT_BANNER=y
CONFIG_LOG=y
CONFIG_USE_SEGGER_RTT=y
CONFIG_LOG_BACKEND_RTT=y

sysbuil/mcuboot.overlay

&qspi {
	gd25q32: gd25q32esig@0 {
		status = "okay";
		compatible = "nordic,qspi-nor";
		reg = <0>;                 
		jedec-id = [c8 40 16];
		sck-frequency = <8000000>;  
		writeoc = "pp4io";
		readoc = "read4io";
		size = <0x400000>;         
		has-dpd;                   
		t-enter-dpd = <10000>;
		t-exit-dpd = <35000>;
	};
};

/ {
	chosen {
		nordic,pm-ext-flash = &gd25q32;
	};
};

nrf52840dk_nrf52840.overlay

&qspi {
	gd25q32: gd25q32es@0 {
		status = "okay";
		compatible = "nordic,qspi-nor";
		reg = <0>;                  
		jedec-id = [c8 40 16];
		sck-frequency = <8000000>;  
		writeoc = "pp4io";
		readoc = "read4io";
		size = <0x400000>;         
		has-dpd;                    
		t-enter-dpd = <10000>;
		t-exit-dpd = <35000>;
	};

};

/ {
	chosen {
		nordic,pm-ext-flash = &gd25q32;
	};
};

Related