I have been implementing UART on 6713DSK in SPI mode.For this I used the sample code in spra633c as reference.The steps involved are as follows
-
1)Enable CSl
2)Enable interrupts and set SRGR
3)Config McBSP
4)Enable EDMA channels
5)transmit data (this fills the recvbuf array)
6)enable McBSP as a receiver
7)enable McBSP as a transmitter
8)enable Fsync
9)data transfer starts
10)close EDMA
When i run the program, the value stored in xmitbuf is correct but that stored in recvbuf is random and changes with each run. I want to know why this occurs and how to solve it. i.e. how to allign both the arrays?? Plz do help , i am stuck with this for a month now.
Thanx.