I'm using the Hercules TMS570LS0332 and TPS65381 running in QA mode. I'm able to communicate with and initialize the TPS chip and verify that I am in the Diagnostic state. I want to service the watchdog until the fail count reaches 0 and move to the Active state.
I find that when I am trying to answer send the tps watchdog answer the Halcogen spi driver gets stuck in an infinite loop where it looks like it's waiting for the RXINT bit to be set, see code below. I've looked at the SPI signals with an oscilloscope and have attached the results. The last command I send is the 0xE10F command and then get stuck in the while loop below. Any ideas why I'm getting stuck in this loop?
/*SAFETYMCUSW 28 D MR:NA <APPROVED> "Hardware status bit read check" */ while((spi->FLG & 0x00000100U) != 0x00000100U) { } /* Wait */