Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5315

General • Re: RP2040 DMA/SPI intermittent hang

$
0
0
The best solution I've been able to come up with so far:
  • Calculate a barely sufficient timeout
  • If the DMA/SPI transfer doesn't complete within the timeout, dma_channel_abort the send and receive channels
  • Retry the whole operation (which invariable [so far] succeeds)
This works, but it is obviously sub-optimal. I guess I need to try to boil this down into a smaller test case.

Statistics: Posted by carlk3 — Wed Aug 28, 2024 11:22 pm



Viewing all articles
Browse latest Browse all 5315

Trending Articles