STMicroelectronics / stm32l4xx_hal_driver

Provides the STM32Cube MCU Component "hal_driver" of the STM32L4 series.
BSD 3-Clause "New" or "Revised" License
35 stars 15 forks source link

I2C: Mixed transfers methods causing Interrupts to hang MCU #13

Closed flatirondesigns closed 9 months ago

flatirondesigns commented 9 months ago

STM32CubeIDE v 1.14.0 NUCLEO-L412KB

This issue appears to be the same as https://github.com/STMicroelectronics/STM32CubeH7/issues/260#top

If I do a DMA transfer over I2C then followed by HAL_I2C_Mem_Write, it hangs. The TXIE is still set after the DMA transfer. If I manually clear it through the IDE before executing the Mem_Write, it does not hang.

RJMSTM commented 9 months ago

Hello @flatirondesigns,

Thank you for this report, actually this issue has already been detected and fixed. The fix is already available in the frame of the v1.18.0 release published a couple of weeks ago. The error should disappear once you will upgrade to this version.

Thank you again for your contribution. With regards,

flatirondesigns commented 9 months ago

Oh, sorry. I didn't see a new version. I will check again. Thank you.

flatirondesigns commented 9 months ago

Sorry, I didn't realize there was a separate menu option to download the latest FW. It does fix my issue. Thanks again.