Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linking error while using DMA for OCTOSPI with STM32H573 discovery board (STM32H573i_dk) #83323

Open
HemantFargade-eaton opened this issue Dec 23, 2024 · 2 comments
Assignees
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

Comments

@HemantFargade-eaton
Copy link

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):

  • OS: Windows 10
  • Toolchain : zephyr-sdk-0.16.5-1
  • Commit SHA : 468eb56

Additional context

@HemantFargade-eaton HemantFargade-eaton added the bug The issue is a bug, or the PR is fixing a bug label Dec 23, 2024
Copy link

Hi @HemantFargade-eaton! We appreciate you submitting your first issue for our open-source project. 🌟

Even though I'm a bot, I can assure you that the whole community is genuinely grateful for your time and effort. 🤖💙

@nordicjm nordicjm added the platform: STM32 ST Micro STM32 label Dec 23, 2024
@kartben kartben added the priority: low Low impact/importance bug label Dec 25, 2024
@marwaiehm-st
Copy link
Collaborator

Hi @HemantFargade-eaton,
Thanks for raising this issue, but please note that v3.6.0 is coming to end of life shortly (https://github.com/zephyrproject-rtos/zephyr/wiki/Release-Management).
Would you mind testing on a more recent Zephyr version v3.7.0 for instance, which is a Long Term Support version ?

@marwaiehm-st marwaiehm-st added the area: OSPI Octo SPI label Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

5 participants