STM32F302R8 I2C1 STUCK AT GENERATE START CONDITION
Hi, I have a problem where my basic master send data code stuck at the generate start condition function. I am using STM32F302R8,
based on the reference manual, the flow chart stated that SET the I2C_CR2.START.
Then, inside my code, here is my basic code to send the data.
When it goes to inside MasterSendData(), It stuck in the GenerateStartCondition function.
Here is inside the GenerateStartCondition function and the start bit is register number 13.

But, after it finish executing the I2C_GenerateStartCondition, the register I2C_CR2_START does not SET, But, it looping inside the startup file of stm32f302r8 from CopyDataInit to LoopCopyDataInit as shown below.
So, I dont know what is the cause of this problem. Am I missing something in the setup? Hope someone can help me on this
