samples: code relocation in external memory of stm32h5 disco kit

Define the configuration to run the code_relocation
application on the external memory xspi flash
of the stm32h573i_dk disco kit in XIP

Signed-off-by: Francois Ramu <francois.ramu@st.com>
This commit is contained in:
Francois Ramu 2024-06-10 14:37:08 +02:00 committed by Anas Nashif
parent ead5c84547
commit 2f0dd2c66f
3 changed files with 10 additions and 0 deletions

View file

@ -0,0 +1,2 @@
CONFIG_FLASH=y
CONFIG_STM32_MEMMAP=y

View file

@ -40,6 +40,13 @@
#define EXTFLASH_ADDR DT_REG_ADDR(DT_INST(0, st_stm32_qspi_nor))
#define EXTFLASH_SIZE DT_REG_ADDR_BY_IDX(DT_INST(0, st_stm32_qspi_nor), 1)
#elif defined(CONFIG_STM32_MEMMAP) && DT_NODE_EXISTS(DT_INST(0, st_stm32_xspi_nor))
/* On stm32 XSPI, external flash is mapped in XIP region at address given by the reg property. */
#define EXTFLASH_NODE DT_INST(0, st_stm32_xspi_nor)
#define EXTFLASH_ADDR DT_REG_ADDR(DT_INST(0, st_stm32_xspi_nor))
#define EXTFLASH_SIZE DT_REG_ADDR_BY_IDX(DT_INST(0, st_stm32_xspi_nor), 1)
#else
/*

View file

@ -8,6 +8,7 @@ tests:
- nrf5340dk/nrf5340/cpuapp
- stm32f769i_disco
- stm32h7b3i_dk
- stm32h573i_dk
- b_u585i_iot02a
- stm32h745i_disco/stm32h745xx/m7
- stm32h750b_dk