Hi,
The following is a summary of the environment I am using:
Hardware - DM6437 EVM from spectrum digital
CCS - 3.3
DVSDK - 1.01.00.15
PSP - 1.10.03
I am trying to reuse the sample application from TI which transfers a few buffers over McBSP0 in SPI master mode and it receives it back on the receive pins of McBSP0 port itself. I am trying to get the same transfer happen on the McBSP1 port instead. The attached file has the sample McBSP0 code. Also, I am externally connecting the transmit pins of the McBSP0 to receive pins of McMSP0. The way the code is written, even if these external connections are not made, the transmission will still happen and the comparing of the received buffer with the transmitted buffer will fail.
The simple change that I have done is to change the following line:
mcbspHandle = GIO_create("/McBSP0",IOM_OUTPUT,NULL,&chanparams,&gioAttrs);
to
mcbspHandle = GIO_create("/McBSP1",IOM_OUTPUT,NULL,&chanparams,&gioAttrs);
At this point, I hoped the code will work if I now moved the external connections to connect the transmit pins of McBSP1 to receive pins of McBSP1. However, that did not happen! The GIO_submit will block forever (as I am trying to transmit in synchronous mode). In fact, if I change the timeout to say 2 seconds, we can clearly see that transmission is not happening, it times out. The more weird behavior is, suppose I revert the external connections to McBSP0 and do like below:
mcbspHandle = GIO_create("/McBSP1",IOM_OUTPUT,NULL,&chanparams,&gioAttrs);
mcbspHandle2 = GIO_create("/McBSP0",IOM_OUTPUT,NULL,&chanparams,&gioAttrs);
and I continue with GIO_submit on mcbspHandle (which refers to McBSP1), I see that the transmission and reception happens on McBSP0!! Can someone please help me in resolving this and getting McBSP1 to work as I expect it to?
Thanks in advance.
Regards,
Sreenath K R