Tool/software:
Following on from:
I have a similar setup, where I have TGs of length 1 8-bit element, using frame size to vary the transfer length. TG one-shot is disabled (DMACTRL enabled)
Data is getting from normal RAM to the SPI bus via DMA to the TxRAM buffers ok - I can see that on the 'scope. But I have 2 issues:
1. TGENA is never cleared and TGTDx also remains set - This means the transfer occurs only once.
2. The CS doesn't de-assert once the transfer completes (CSHOLD is enabled, as I don't want is to be de-asserted between elements) .
Should the DMA completing not clear TGENA ? Do I have to set up an interrupt to do this?
Since I only have 1 buffer in the transfer group, I can't disable CSHOLD in the last buffer, so how do I get around this?
Many thanks.