cancel
Showing results for 
Search instead for 
Did you mean: 

sensor when connected using I2C to ST25R3911B we are seeing any activity

RShiv.1
Senior

Hi,

attached is the code for I2C where we are trying to read from the sensor connected using I2C...I2C_mem_write or I2C_Master Transmit...nothing is sent by the sensor.

any change in the coonfiguration ..kindly let us know.

attached the IOC file also...

Thanks and regards

Ravi chandran

2 REPLIES 2
RShiv.1
Senior

attached is the sensor data sheet as well

RShiv.1
Senior

Hi,

After adding printf we found I2C_WaitOnTXISFlagUntilTimeout flag is not being set...where could be the issue..kindly let us know

 while (hi2c->XferCount > 0U)

  {

   /* Wait until TXIS flag is set */

   if (I2C_WaitOnTXISFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK)

   {

    printf("inside while 1 HAL error = %d ",HAL_ERROR);

    return HAL_ERROR;

   }

regards

Ravi