cancel
Showing results for 
Search instead for 
Did you mean: 

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

doron-k
Associate

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.

1 REPLY 1
STOne-32
ST Employee

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.