I am using CubeMx F4 V1.12.0
I want to use I2C with DMA on the STM32F429 but it is not working.
In the stm32f4xx_hal_i2c.c it is noted
(+++) Configure the priority and enable the NVIC for the transfer complete interrupt on the DMA Tx or Rx Stream
and CubeMx 4.15.0 generates the code for the 2 DMA Interrupts (rx & tx) but the I2C is not working.
But in the stm32f4xx_hal_i2c.c I2C_DMAXferCplt() at line 4938 I see these lines
/* Enable EVT and ERR interrupt */
__HAL_I2C_ENABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_ERR);
So it seems that the 2 I2C Event & Error Interrupts must also be in place to finalize the transmission; Is it right?
Thanks for the clarification