Cache-related problem in some STM32 HAL drivers
Posted: Sun Mar 17, 2019 9:17 am
Hi,
Putting this here to keep track.
Several LLDs have DMA-accessible buffers inside the driver structure, this is a problem on those devices where cache coherency must be handled.
Required action: move all buffers outside the driver structure, replace those with a pointer to the actual buffer which should be aligned to cache lines.
Giovanni
Putting this here to keep track.
Several LLDs have DMA-accessible buffers inside the driver structure, this is a problem on those devices where cache coherency must be handled.
Required action: move all buffers outside the driver structure, replace those with a pointer to the actual buffer which should be aligned to cache lines.
Giovanni