I have K64 SPI0 configured has Slave using Below PINs of Port A
PTA 14 - Slave Select
PTA 15 - SPI0 SCK
PTA 16 - SPI0 SOUT
PTA 17 - SPI0 SIN
using MQX OS
i am running the below code for SPI Transfer, I am able to receive(SIN) the data from Master.
But I dont see any data sent out of the SOUT. i have attached the Processor Expert screenshot for I/O's used and configured
/************************************************************************************/
void Task1_task(os_task_param_t task_init_data)
{
/* Write your local variable definition here */
uint8_t counter;
for(counter =0;counter<200;counter++)
txbuff[counter] = counter;
#ifdef PEX_USE_RTOS
while (1) {
#endif
/* Write your code here ... */
// OSA_TimeDelay(10); /* Example code (for task release) */
if(DSPI_DRV_SlaveTransferBlocking(dspiCom1_IDX,txbuff,rxbuff,200, OSA_WAIT_FOREVER) == kStatus_DSPI_Success)
{
counter++;
}
#ifdef PEX_USE_RTOS
}
#endif
}
/*************************************************************************************************************************/