Working on Simplelink MCU CC1352P/ any CC13xx Launchpad interfacing E-paper display via SPI TI-RTOS. The code has no error and no warnings in CCS IDE. but SPI TX is not happening. SPI mode Master. Here is my code please have a look on my code let me know what is the problem.
SPI Configuration and transferring code
SPI_Params_init(&spiParams);
spiParams.frameFormat = SPI_POL0_PHA0;
spiParams.bitRate = 10000000;
spiParams.mode = SPI_MASTER;
spiParams.dataSize = 8;
masterSpi = SPI_open(EPD_SPI0, &spiParams);
if (masterSpi == NULL) {
printf("Error initializing master SPI\n");
while (1);
}
else {
printf("Master SPI Opened\n");
}
sleep(3);
GPIO_write(EPD_CS,0);
GPIO_write(EPD_DC,0);
transaction.count = 10;
transaction.txBuf = (void *) com;
transaction.rxBuf = NULL;
transferOK = SPI_transfer(masterSpi, &transaction);
if (!transferOK){
printf("Error Transfer\n");
}
else{
printf("SPI Transferred\n");
}
DELAY_S(6);