mirror of
https://github.com/apache/nuttx.git
synced 2026-05-10 15:30:25 +08:00
1446961c87
Build Documentation / build-html (push) Has been cancelled
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>