cancel
Showing results for 
Search instead for 
Did you mean: 

HAL_I2C_Slave_Receive_IT Abort

joppe
Associate
Posted on May 21, 2015 at 13:08

Hello,

I'm using the CubeMXF1 Library for the STM32F103 to act as a I2C slave. This slave is usually in Slave Receive Mode. The I2C master is signaled trough a interrupt pin that the slave wants to send something. How can I abort the Slave Receive function so the I2C peripheral won't be busy anymore and is ready to go to Slave Send mode?

Thanks!

Edit:

I can give some insight in how I fix this now. Normally when I receive something I will put the I2C peripheral back in receive mode. I quick fix now is to not do that check if I need to send something if so sent it otherwise go to receive mode. But this is not a desired situation. I would like to sent something the moment I want to. I do not want to wait for a I2C Receive interrupt first. 

#i2c #cube #cubemx #stm32f103
0 REPLIES 0