Skip to main content
RShiv.1
Associate III
November 15, 2022
Question

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

  • November 15, 2022
  • 2 replies
  • 1521 views

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

This topic has been closed for replies.

2 replies

RShiv.1
RShiv.1Author
Associate III
November 15, 2022

attached is the sensor data sheet as well

RShiv.1
RShiv.1Author
Associate III
November 16, 2022

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