Skip to main content
Visitor II
July 14, 2024
Question

STM32CubeIDE 1.16.0 + STM32CubeU5 1.6.0: bug in HAL_I2C_MspInit() generated code

  • July 14, 2024
  • 1 reply
  • 1028 views

In `HAL_I2C_MspInit()`, `I2C4_ER_IRQn` and `I2C4_EV_IRQn` are switched.

In CubeMX, ticking an Event interrupt for I2C4 generates an Error interrupt, and vice versa.

The same behavior was observed in STM32CubeIDE 1.11.0.

This topic has been closed for replies.

1 reply

STOne-32
ST Technical Moderator
July 14, 2024

Dear @doron-k ,

 

Thank you for joining our STCommunity.    Many thanks for spotting this issue , for tracking purposes please have this #186522 number.   It seems similar to this one on august 2023 - STM32CubeIde generates incorrect code for I2C4 · Issue #5 · STMicroelectronics/STM32CubeH5 · GitHub.  

Thank you again.

Cheers,

STOne-32.