cancel
Showing results for 
Search instead for 
Did you mean: 

I2C slave transmit IT first byte FF

edgar3
Associate

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.

0 REPLIES 0