Other Parts Discussed in Thread: CC3220SF, CC3220S
Hi,
I am trying to communicate between CC3220SF (Master) and C2000(Slave) using SPI but not able to perform the duplex communication between two. Below are the details of the issue -
1. When Master Tx is NULL and Data Transfer from Slave(c2000) to Master(CC3220SF)-
transaction.count = SPI_MSG_LENGTH; transaction.txBuf = NULL; transaction.rxBuf = (void *) masterRxBuffer;
Below is the status -
Data On Line (MISO) | Correct |
Data in RX Buffer (CC3220SF) | Correct |
2. When Master Rx is NULL, Data Transfer from Master (CC3220SF) to Slave(C2000) -
transaction.count = SPI_MSG_LENGTH; transaction.txBuf = (void *) masterTxBuffer; transaction.rxBuf = NULL;
Below is the status -
Data On Line (MOSI) | Correct |
Data in RX Buffer (C2000) | Correct |
3. When Master Master Rx and Tx Both are not NULL-
transaction.count = SPI_MSG_LENGTH; transaction.txBuf = (void *) masterTxBuffer; transaction.rxBuf = (void *) masterRxBuffer;
Below is the status -
Data On Line (MOSI) | Correct |
Data in RX Buffer (C2000) | Correct |
Data On Line (MISO) | Correct |
Data in Rx Buffer (CC3220SF) | Incorrect |
Data Line Status -
Incorrect Receive Buffer on (CC3220SF)
Can anyone please help with the issue?
Thanks & Regards,
Kuldeep