Hello i´m trying to run I2C example, but i have a problem. In the example sends "H E R C U L E S M I R O - T I" and simulates the reception. After sends 9 bytes the program stop de trasmition and keep waiting in a bucle while in the rutine I2Crecivebyte:
uint8 i2cReceiveByte(i2cBASE_t *i2c)
{
/*SAFETYMCUSW 28 D MR:NA <APPROVED> "Potentially infinite loop found - Hardware Status check for execution sequence" */
while ((i2c->STR & (uint32)I2C_RX_INT) == 0U)
{
} /* Wait */
/* USER CODE BEGIN (25) */
/* USER CODE END */
return i2c->DRR;
}
the program "stoped" in the line "while ((i2c->STR & (uint32)I2C_RX_INT) == 0U) "
What can be the problem?
Thank you