Hi ,
I have added TXIGNORE=1 as follows (1<<23):
EXAMPLE_SPI_SLAVE->FIFOWR= (0x01|
((uint32_t)SPI_FIFOWR_LEN(kSPI_Data8Bits) |
(SPI_DEASSERT_ALL & (~SPI_DEASSERTNUM_SSEL(0)))) | (1 << 23)) ;
Also i have disabled tx-interrupt and disabled data sending from slave side from ISR as follows :
// if ((SPI_GetStatusFlags(EXAMPLE_SPI_SLAVE) & kSPI_TxNotFullFlag) && (txIndex > 0U))
// {
// SPI_WriteData(EXAMPLE_SPI_SLAVE, (uint16_t)(srcBuff[BUFFER_SIZE - txIndex]), 0);
// txIndex--;
// }
After that i am not getting data properly from master:
Master sends : [0,1,2,3,4,5,6,7,8,9,10,11,12,13..........63]
Slave receives : [0,0,0,0,1,0,0,0,2,0,0,0,3,0,0,1....]
If i enable data sending from slave from ISR , then everything works fine.
I have added FIFOWR logic in init function so is that TXIGNORE bit set (1<<23) in FIFOWR is ok?
Regards,
Rahul Shah