hpm-hal icon indicating copy to clipboard operation
hpm-hal copied to clipboard

SPI finish interrupt is not working under DMA mode // Batch Async SPI Transfers with Bulk Data Exhibit Unreliable Behavior

Open andelf opened this issue 1 year ago • 2 comments

It seems that Future returns before the SPI transfer has finished.

Only occurs when bulk data is transferred under slow SPI frequency.

UPDATE:

SPI finish interrupt is not working under DMA mode.

andelf avatar Sep 27 '24 13:09 andelf

Bug in async fn transfer_inner(). DMA finish is awaited. No RX/TX finish signal is awaited.

andelf avatar Sep 27 '24 13:09 andelf

Added busy-loop waiting to address the issue. This issue will remain open to document the hardware behavior.

andelf avatar Sep 28 '24 01:09 andelf