nuttx/arch/arm
alexcekay 1446961c87 arch/arm/stm32h7: Fix SPI RX DMA returning stale DCACHE data
In sporadic cases it is possible that a SPI exchange returns stale RX data from the DCACHE.

This occurs when:
- DCACHE is enabled
- DMA is used

The impact of this can be hard to debug and vanishes when the timing even changes minimally.

This is caused by the DCACHE being invalidated before the actual DMA transaction starts which violates
the recommendations from AN4839 and also does not match the implementation of other drivers on the STM32H7/STM32F7.

Fixed by invalidating the DCACHE right before the actual read, which matches the implementation
of the STM32F7 SPI driver.

Signed-off-by: alexcekay <alexander@auterion.com>
2026-04-23 16:28:36 +02:00
..
include arch/arm: add STM32H755XI chip 2026-04-17 13:18:02 +02:00
src arch/arm/stm32h7: Fix SPI RX DMA returning stale DCACHE data 2026-04-23 16:28:36 +02:00
CMakeLists.txt arch/arm: migrate to SPDX identifier 2024-12-06 09:25:23 +08:00
Kconfig arch/arm/ht32f491x3: add initial support 2026-03-30 09:48:16 +08:00