diff --git a/arch/arm/src/stm32h7/stm32_spi.c b/arch/arm/src/stm32h7/stm32_spi.c index b7ae80a6b3..268f22093b 100644 --- a/arch/arm/src/stm32h7/stm32_spi.c +++ b/arch/arm/src/stm32h7/stm32_spi.c @@ -57,6 +57,7 @@ #include #include +#include #include #include #include @@ -709,10 +710,11 @@ static const struct spi_ops_s g_sp6iops = }; #if defined(SPI6_DMABUFSIZE_ADJUSTED) -static uint8_t g_spi6_txbuf[SPI6_DMABUFSIZE_ADJUSTED] SPI6_DMABUFSIZE_ALGN; -static uint8_t g_spi6_rxbuf[SPI6_DMABUFSIZE_ADJUSTED] SPI6_DMABUFSIZE_ALGN; +static uint8_t g_spi6_txbuf[SPI6_DMABUFSIZE_ADJUSTED] SPI6_DMABUFSIZE_ALGN + locate_data(".sram4"); +static uint8_t g_spi6_rxbuf[SPI6_DMABUFSIZE_ADJUSTED] SPI6_DMABUFSIZE_ALGN + locate_data(".sram4"); #endif - static struct stm32_spidev_s g_spi6dev = { .spidev =