Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

MibSPI rx DMA

$
0
0

Hi,

I'm having trouble using DMA to read MibSPI rx buffers.  Attached is my current code:(Please visit the site to view this file)

Here is a screenshot after transfer is complete:

Esentially, two 16 bit bytes have been received: 0x0FFF and 0x0D4A.  Note that the memory view on the right shows the mibSPI1 RX buffer.  RX_DATA, which uses DMA to transfer from mibSPI RAM to RAM, (see value in watch) is missing the second byte, whilst RX_DATA2 (which uses mibspiGetData() as in the mibSPI example code) contains the correct two bytes as confirmed with a scope.  So, the SPI is working, but DMA copy to RAM is not.

Please take a look at my code and see if anything is wrong.  Also, I have a question - what is the function of R(T)XDMA_MAPx?  I thought MIBSPI[1] request source is hardwired to DMAREQ[0]?


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>