cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with HAL_I2C_Slave_Transmit_IT

Siragh ASUTP
Associate II
Posted on March 09, 2018 at 11:32

Hello everybody.

The are:

1.stm32f103c8t6

2.arduino uno

3. lcd 1602 i2c

I wont to connect these 3 devices via the i2c bus.

stm32f103c8t6 has on board two i2c buses (i2c1 and i2c2), i2c1 will be configure the master and i2c2 slave.

Connection: 

uno(master)-------i2c2(slave) // does not work, the new value is acceptted after resetting stm32

i2c1(master)-------lcd1602(slave) //works fine

I connected a logic analyzer, the master sends a request with the slave address (10) but the slave (i2c2) does not respond, the slave state is hal_i2c_slave_busy_tx. What could be the problem?

#i2c-busy
1 REPLY 1
Siragh ASUTP
Associate II
Posted on March 21, 2018 at 19:06

In general, I realized that my microcontroller stm32 hovered. 

I do not know why this happens. As a solution I added a watchdog timer. 

So everything works ...