Strictly necessary cookies are on by default and cannot be turned off. Functional, Performance and Tracking/targeting/sharing cookies can be turned on below based on your preferences (this banner will remain available for you to accept cookies). You may change your cookie settings by deleting cookies from your browser. Then this banner will appear again. You can learn more details about cookies HERE.
Strictly necessary (always on)
Functional, Performance and Tracking/targeting/sharing (default off)
I'm new to these forums, so hopefully this is the right place to ask for some guidance from the pSoC experts 🙂
I'm attempting to use the DMA engine to transfer data from the digital filter block to an external DAC using the SPI (configured as master mode). I've connected the DFB's DMA_Req_B output to the DMA drq input and verified that the DMA does transfer the desired data correctly if I target an SRAM memory location.
If I attempt to direct data to the SPI FIFO however, the interface remains quiet and the status bits reflect the FIFO is empty at all times (just as though the data isn't making it to the FIFO at all). The following code snippet shows my configuration:
The DMA's nrq output toggles after every instant I'd *expect* a transfer to have occurred, but still no SPI data appears. I've tried many permutations of SPI buffer address, pointer etc, but haven't found a combination that works. DMA writing to a global variable in SRAM is OK, though.
The SPI interface seems to be correctly configured - manually dropping a word into the buffer via:
Does anyone have any idea what I'm missing? It's driving me crackers!