Hercules RM48 - I2C Problems
Hello.
We have the Hercules RM48 Reference Board. We are using HalCogen to autogenerate I2C drivers. We tried running the "example_i2cInterrupt_Communication.c" under Halcogen examples for RM48. the I2C.c code goes into the endless loop in I2C.C (i2cSendByte function) after 8 bytes: i2cSendByte(i2cREG1,*t_buff++); in i2c.c HalcoGen Code.
1. To double check, what should the HalcoGen I2C driver be configured to under the I2C Global, Clocks and Ports sections in Halcogen UI for the TI Hercules RM48 reference board?
2. We have enabled the I2C under PINMUX in Halcogen, is there anything else here?
3. Under interrupts, I2C has been enabled, are there any other interrupts that need to be configured for this example to work?
The while loop in i2c.c i2cSendByte function:
/*SAFETYMCUSW 28 D MR:NA <APPROVED> "Potentially infinite loop found - Hardware Status check for execution sequence" */
while ((i2c->STR & (uint32)I2C_TX_INT) == 0U)
{
} /* Wait */
Thank you