Skip to content

Commit 2f73ee8

Browse files
committed
boot: zephyr: defines FLASH base address device for external NOR
FLASH_DEVICE_BASE is now given by the parent of the "st,stm32-xspi-nor" node, which is the "st,stm32-xspi" compatible Signed-off-by: Francois Ramu <[email protected]>
1 parent 5fb5e6b commit 2f73ee8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

boot/zephyr/flash_map_extended.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ BOOT_LOG_MODULE_DECLARE(mcuboot);
2525
#define FLASH_DEVICE_ID SPI_FLASH_0_ID
2626
#if DT_NODE_HAS_STATUS(DT_INST(0, st_stm32_xspi_nor), okay)
2727
#define FLASH_DEVICE_NODE DT_INST(0, st_stm32_xspi_nor)
28-
#define FLASH_DEVICE_BASE DT_REG_ADDR(DT_INST(0, st_stm32_xspi_nor))
28+
#define FLASH_DEVICE_BASE DT_REG_ADDR_BY_IDX(DT_INST(0, st_stm32_xspi),1)
2929
#elif DT_NODE_HAS_STATUS(DT_INST(0, st_stm32_ospi_nor), okay)
3030
#define FLASH_DEVICE_NODE DT_INST(0, st_stm32_ospi_nor)
3131
#define FLASH_DEVICE_BASE DT_REG_ADDR(DT_INST(0, st_stm32_ospi_nor))

0 commit comments

Comments
 (0)