Skip to main content
Explorer
July 6, 2023
Question

I2C slave transmit IT first byte FF

  • July 6, 2023
  • 0 replies
  • 1020 views

PLEASE DELETE THIS POST, I HAVE CREATED A  NEW ONE ON THE CORRECT SUBFORUM

Hi all,

I am using a Nucleo  F334R8 STM32Cube FW_F3  V1.11.4

I am trying to configure it as a slave device using interrupts , I am using HAL_I2C_AddrCallback()then it checks if dirrection == I2C_DIRECTION_TRANSMIT and HAL_I2C_Slave_Seq_Receive_IT() works fine.
Problem comes when other direction is triggered , for some reason the first byte when using HAL_I2C_Slave_Seq_Transmit_IT() is always 0xFF ,which does not happen when using the drivers in polling mode. I tried passing different values to XferOptions parameter with same result. thanks in advance for your help.

 

I am attaching code and  logic analyzer captures.

    This topic has been closed for replies.