Linking error while using DMA for OCTOSPI with STM32H573 discovery board (STM32H573i_dk) #83323
Labels
area: OSPI
Octo SPI
bug
The issue is a bug, or the PR is fixing a bug
platform: STM32
ST Micro STM32
priority: low
Low impact/importance bug
Describe the bug
Linking error for DMA for OCTOSPI with STM32H573 Discovery board (STM32H573i_dk)
I am trying to enable DMA for Currently supported OCTOSPI flash driver on Discovery board.
Compatible for QSPI driver = "st,stm32-ospi"
Compatible for flash nor driver = "st,stm32-ospi-nor"
To Reproduce
Zephyr version: 3.6.0
Added below dmas property in overlay file to activate DMA in OCTOSPI node
&octospi1 {
pinctrl-0 = <&octospi1_io0_pb1 &octospi1_io1_pd12
&octospi1_clk_pf10 &octospi1_ncs_pg6>;
/* request 57 for XSPI1 */
dmas = <&gpdma1 4 57 STM32_DMA_PERIPH_TX
&gpdma1 5 57 STM32_DMA_PERIPH_RX>;
dma-names = "tx", "rx";
mx25lm51245: ospi-nor-flash@90000000 {
spi-bus-width = <OSPI_SPI_MODE>;
data-rate = <OSPI_STR_TRANSFER>;
};
};
prj.conf :
CONFIG_STDOUT_CONSOLE=y
CONFIG_FLASH=y
CONFIG_SPI=y
step to compile code: west build -b stm32h573i_dk -p
Expected behavior
Compliable with DMA.
Impact
showstopper
Logs and console output
Getting linking errors:
/zephyr/drivers/flash/flash_stm32_ospi.c:1979:41: error: 'XSPI_HandleTypeDef' has no member named 'hdma'; did you mean 'hdmatx'?
1979 | __HAL_LINKDMA(&dev_data->hospi, hdma, hdma);
| ^~~~
1979 | __HAL_LINKDMA(&dev_data->hospi, hdma, hdma);
Environment (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: