I am using TI-RTOS SPI drivers for using 2650 (4*4 package) in the slave configuration. But It doesn't seems to work. I checked the data coming to the 2650 from the SPI master its perfect . My master's bitRate is 100000.
SPI_Handle handle; SPI_Params params; SPI_Transaction transaction;uint8_t rxBuf[100]; // Receive buffer // Init SPI and specify non-default parameters SPI_Params_init(¶ms); params.bitRate = 1000000; params.frameFormat = SPI_POL1_PHA1; params.mode = SPI_SLAVE; // Configure the transaction transaction.count = 100; transaction.txBuf = NULL; transaction.rxBuf = rxBuf; // Open the SPI and perform the transfer handle = SPI_open(Board_SPI, ¶ms); SPI_transfer(handle, &transaction);
My board.h file is
/* SPI Board */
#define Board_SPI0_MISO IOID_6 /* RF1.4 */
#define Board_SPI0_MOSI IOID_5 /* RF1.2 */
#define Board_SPI0_CLK IOID_7 /* RF1.14 */
#define Board_SPI0_CSN IOID_3 /* RF1.12 */
board.c
Board_SPI0_CSN | PIN_GPIO_OUTPUT_EN | PIN_GPIO_HIGH | PIN_PUSHPULL, /* SPI
Is there any other configuration that needs to be made?