AnsweredAssumed Answered

The I2C doesn't work! (STM32f030 and STM32f103)

Question asked by fairchild.brian on Sep 2, 2014
Latest reply on Sep 6, 2014 by fairchild.brian
Hi ST partisans! (Wink)

I have written two program for my two MCU. STM32F103RET6 and STM32f030. in the circuit, the STM32F030 should send "Rohalamin" string over I2C (as Master) . on the other hand, the STM32F103RET6 should recieve the string and if it's correct, the STM32F103RET6 should turn on an LED by the PB0.

Ok, now you know that What's the configurations and I have attached several pictures from circuit:

and you can see the configurations for I2C in the debug environment:

ok, let's to run it on MCU. When I turn on only the STM32F030, I can see just this in the logic analyzer:

and when I connect the STM32F030 to the STM32F103RET6 and turn on the whole of the circuit, the output in the logic analyzer is this:

and also when I check the STM32F103RET6 in the debug environment, it doesn't go to the interrupt routin. in my opinion, the problem is in the I2C interrupt of the STM32F103RET (totally I think the problem is STM32F103RET6) . and also I think the hardwares of the circuit is ok.  Really What's the problem? Why doesn't it work correctly?