Skip to main content
anonymous.8
Senior II
September 5, 2019
Solved

HAL CubeMX I2C START problem.

  • September 5, 2019
  • 1 reply
  • 814 views

-----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?

This topic has been closed for replies.
Best answer by anonymous.8

There were two I2Cs. I just mixed the handle.

1 reply

anonymous.8
anonymous.8AuthorBest answer
Senior II
September 9, 2019

There were two I2Cs. I just mixed the handle.