-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Closed as not planned
Labels
StaleWaiting for responseWaiting for author's responseWaiting for author's responsebugThe issue is a bug, or the PR is fixing a bugThe issue is a bug, or the PR is fixing a bugplatform: STM32ST Micro STM32ST Micro STM32priority: lowLow impact/importance bugLow impact/importance bug
Description
Describe the bug
SPI DMA with serial flash not working for STM32H7XX due to cache memory validation which got added in this PR,
#57786
To Reproduce
Steps to reproduce the behavior:
- We have tested this example with some modification for NUCLEO STM32H743ZI with Click 11 ( External Flash - https://www.mikroe.com/flash-11-click) for this https://github.com/zephyrproject-rtos/zephyr/tree/v3.6.0/samples/drivers/spi_flash
- I will attached the modified code soon.
- In Project Config ( Prj.conf ), If we disable this CONFIG_SPI_STM32_DMA=n, SPI Flash is working.
- In Project Config ( Prj.conf ), If we enable this CONFIG_SPI_STM32_DMA=y, SPI Flash is not working.
- If we keep CONFIG_SPI_STM32_DMA=y and comment this code at line number 959 to 964, it is working

- By further debugging, It is failing buf_within_nocache memory validation.

Expected behavior
It should work with buf_within_nocache along with SPI DMA
Logs and console output
Not working Logs :

Working Logs after commenting below code :

Environment (please complete the following information):
- OS: Windows
- Toolchain : Zephyr SDK, ...
- Commit SHA or Version used : Zephyr v3.6.0
Metadata
Metadata
Assignees
Labels
StaleWaiting for responseWaiting for author's responseWaiting for author's responsebugThe issue is a bug, or the PR is fixing a bugThe issue is a bug, or the PR is fixing a bugplatform: STM32ST Micro STM32ST Micro STM32priority: lowLow impact/importance bugLow impact/importance bug