STM32F030/103 I2C slave not returning to listen state (0x28) after transaction
Edits: see updates below for listen state
Generated code using the latest CubeIDE . I2C_GetMode is always 00h. Under which conditions does this mode value change to "slave" and how to move it into slave mode ?
mode = HAL_I2C_GetMode (&hi2c1);
// HAL I2C Mode value coding follow below described bitmap :
// b7 (not used) x : Should be set to 0
// b6 0 : None 1 : Memory (HAL I2C communication is in Memory Mode)
// b5 0 : None 1 : Slave (HAL I2C communication is in Slave Mode)
// b4 0 : None 1 : Master (HAL I2C communication is in Master Mode)
// b3-b2-b1-b0 (not used) xxxx : Should be set to 0000
HAL_I2C_GetState (&hi2c1); returns 0x28 (Listening and IP initialized and ready to use) A call to HAL_I2C_Slave_Receive_IT returns 0x02 (busy) - not sure how to clear this ?
Reference: UM1785
