cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F103 I2C busy flag

ADIt
Associate II

Hi,

i am trying to use I2C1 as a slave with interrupt

But after initializing the I2C

i am calling the following to set it to slave and receiver over interrupt

   if(HAL_I2C_Slave_Receive_IT(&I2cHandle, (uint8_t*)&bTransferRequest, 1)!= HAL_OK){

   Error_Handler();

   }

but all the time it fails to do so and enters the Error_Handler() bcoz the return value is HAL_Timeout

I know about the Errata is mentioned regarding this issus

Can anyone provide a sample source for this ?

Thanks,

-Aditya

0 REPLIES 0