AnsweredAssumed Answered

Reset "shadow M0AR" DMA-controller register after incomplete DMA-transfer?

Question asked by arnold_w on May 18, 2017
Latest reply on May 18, 2017 by waclawek.jan

I am working with the STM32F405 microcontroller and I have a an SPI-bus across a detachable cable (please no comments about this, it works fine and it's not the point of this post) and I'm using the DMA-controller to be able to handle large bursts of data. Problem arises when the user unplugs the cable in middle of a transaction and then plugs it back in again. Since the DMA transfer was stopped halfways when the cable was unplugged, the internal pointers in the DMA-controller will be in the wrong position when cable is plugged in again and a good, complete packet is received. I found a good link on the internet, and using the terminology from that webpage my questions is, how can I reset the "internal shadow M0AR-register" so that it points to the beginning of the buffer again?