HI Support,
I integrated driver of MCP2518FD (External CAN FD through SPI interface) into TI code TMS570LC4357.
SPI communication is not working.
in debugging , I can see that execution got at stuck in a while loop
( /*SAFETYMCUSW 28 D MR:NA <APPROVED> "Hardware status bit read check" */
while((spi->FLG & 0x00000100U) != 0x00000100U)
{
} /* Wait */)
inside function uint32 spiTransmitAndReceiveData(spiBASE_t *spi, spiDAT1_t *dataconfig_t, uint32 blocksize, uint8 * srcbuff, uint8 * destbuff).
What could the problem?
Note : I am using Launchpad