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

Fix SPI async busy wait

Open andelf opened this issue 1 year ago • 1 comments

See-also #33

only async write is fixed.

To get END irq work:

  • ~~DMA Bust must 1 for SPI~~
  • ~~DMA transize must be actual_size + 1 for SPI~~

UPDATE

After some investigation:

  • Only special values trigger this bug
  • SPI END interrupt state is marked (INTRST.ENDINT is set), SPI interrupt is enabled(both peripheral and PLIC). But irq handler is never reached

andelf avatar Sep 30 '24 09:09 andelf