cancel
Showing results for 
Search instead for 
Did you mean: 

HAL CubeMX I2C START problem.

anonymous.8
Senior II

-----I FOUND THE ANSWER MYSELF. ----------

Technical environment :

-       Master : STM32F767

-       Slave : M24256 EEPROM on custom board. SCL and SDA on PH4 and PH5 with 4.7K pull-ups

-       CubeMX : V5.3.0

-       Normal transaction is : MASTER do a 3 bytes WRITE

HAL_I2C_Master_Transmit calls I2C_TransferConfig. Immediately after CR2 update two flags in ISR are set: STOPF ana NACKF. Write timeouts in I2C_WaitOnTXISFlagUntilTimeout. Logic analyzer does not show any activity. Both signals are high. Any ideas where to search for problem?

1 ACCEPTED SOLUTION

Accepted Solutions
anonymous.8
Senior II

There were two I2Cs. I just mixed the handle.

View solution in original post

1 REPLY 1
anonymous.8
Senior II

There were two I2Cs. I just mixed the handle.