2018-03-09 02:32 AM
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-busy2018-03-21 11:06 AM
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 ...