Other Parts Discussed in Thread: HALCOGEN
Tool/software:
On the spiTransmitData function in the spi.c file, there's this check to see if the transmission has occured:
/*SAFETYMCUSW 28 D MR:NA <APPROVED> "Hardware status bit read check" */
while((spi->FLG & 0x00000100U) != 0x00000100U)
{
} /* Wait */
However, the documentation shows that the TX flag should be bit 9 (not 8 as in the code above). Page 1355 of spnu499c:

Also, the same flag is checked in the function spiGetData, which is the polling receiver, which further seems to point to a serious bug in the HalCoGen function. Am I missing something? Can someone confirm to me that the right approach is to change 0x0100 to 0x0200 in this function?
I'm using HalCoGen 04.07.01



