Hi Tomas,
Thank you for your response. I checked the clock cycles in the BIST command prior to posting the query and they match the expected number (16). But since SPI_G is the first bit to be transmitted by the SBC, it is my understanding that it indicates an error in a previous SPI transaction. If this is true, it means that the SPI_CLK error was raised for an SPI command issued prior to reading the BIST register. But such a command has not been initiated by the code. This is why I suspected that the issue may be caused by the SBC interpreting the state of the signals on the SPI lines as valid when they are not i.e. prior to SPI initialization by the MCU. Please let me know if my understanding is incorrect.
The SPI is configured so that the MCU receives data on the falling edge of the SPI clock. The response received from the SBC for the BIST command is as expected (except for the SPI error) and all subsequent transactions proceed without SPI errors.
A scope shot with all four SPI signals for the first SPI transaction (BIST Read) is attached for your reference. Please let me know if any other details are required.
Thanks and Regards,
Vimal