One complication is that I have several FreeRTOS tasks running. I'm not sure why that should matter, but I think it does. (I have double and triple checked my mutex locks.) I can't think of anything the DMA would be touching that is on the stack. I've tried suspending the scheduler here and there to no avail.
Also, the problem never seems to happen when writing, with RX DMA INCR_WRITE and INCR_READ both false and TX INCR_WRITE false and INCR_READ true. It only happens when reading, with RX INCR_WRITE true and INCR_READ false and TX INCR_WRITE and INCR_READ both false.
(A version of) the code in question is my_spi.c.
Also, the problem never seems to happen when writing, with RX DMA INCR_WRITE and INCR_READ both false and TX INCR_WRITE false and INCR_READ true. It only happens when reading, with RX INCR_WRITE true and INCR_READ false and TX INCR_WRITE and INCR_READ both false.
(A version of) the code in question is my_spi.c.
Statistics: Posted by carlk3 — Thu Aug 29, 2024 2:43 am