-
Notifications
You must be signed in to change notification settings - Fork 7.4k
SPI DMA with SPI FLASH not working for STM32H7XX #83124
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
Comments
triaging as low as this seems to be specific to just one SoC series |
@bhardadinesh-eaton Note that v3.6.0 is no longer supported (see https://github.com/zephyrproject-rtos/zephyr/wiki/Release-Management). |
@JarmouniA Thank you prompt response. We have tried your suggestions which you have mentioned above and debugged the same. Still looks like validation is getting failed, buf_within_nocache = (buf >= ((uintptr_t)__rodata regionstart)) && ((buf + len bytes - 1) <= ((uintptr_t)__rodata region_end)); printk("__rodata_region_start: %p, __rodata_region_end: %p\n", __rodata_region_start, __rodata_region_end); |
As mentionned V3.6.0 is no longer supported. Would you m mind confirming that your seeing the same issue on v3.7.0 ? |
@erwango We have manually checked the code for latest version too. The code is same only. So, Issue should be there in latest version too. I might need to setup for latest version for test and debug. |
@bhardadinesh-eaton there were multiple changes to the Cache management part of the driver since, notably in this PR #71048. |
This issue has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 14 days. Note, that you can always re-open a closed issue at any time. |
I didn't observe any issues on H730 as long as the buffers used in SPI transactions are correctly aligned and located within the no cache region. However, the current approach is not sustainable, as drivers that use SPI DMA on H7 require modification. |
@bhardadinesh-eaton |
This issue has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 14 days. Note, that you can always re-open a closed issue at any time. |
Uh oh!
There was an error while loading. Please reload this page.
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:
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):
cc : @darshanmirajkar-eaton
The text was updated successfully, but these errors were encountered: