This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

[BUG] CMSIS I2C Driver for STM32F4xx (v2.9)

Hello,

Memory overflow occurs when receiving 2 bytes using the driver.  Works fine for 1 byte.

Here is a code to simulate the problem:

I2C_STM32F4xx.c has an I2C Event Interrupt handler (I2C_EV_IRQHandler). Inside of this function there is a code to process such case (when 2 bytes remaining to receive):

But it never executed. Instead this code (in I2C_EV_IRQHandler) executes again and again, causing memory overflow:

This driver comes with Keil STM32F4xx_DFP v2.14.0.

Best regards,

Eugene

0