cancel
Showing results for 
Search instead for 
Did you mean: 

Bug on I2C mem read DMA

MAI THANH.Brice
Associate III
Posted on August 16, 2016 at 09:51

Hi

I posted a bug weeks ago without any response so I start this thread. (

/public/STe2ecommunities/mcu/Lists/STM32Java/Flat.aspx?RootFolder=https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32Java/possible%20bug%20in%20HAL_I2C_Mem_Read_IT%20and%20HAL_I2C_Mem_Read_DMA&FolderCTID=0x01200200770978C69A1141439FE559EB459D758000F9A0E3A95BA69146A17C2E80209ADC21&currentviews=457

)

I search on the forum and the only topic where this problem has been discussed, no solution was proposed. 

The following screenshots show a 1 byte and 2 bytes data read with ''HAL_I2C_Mem_Read_DMA''. The ''Led'' signal is set before the read and clear in ''HAL_I2C_MemRxCpltCallback''

When I read only 1 byte, the clock stays low at the end and the I2C flag is still busy. 

This problem doesn't appears when I read 2 or more bytes.

I2C version is :

  * @file    stm32f4xx_hal_i2c.h

  * @author  MCD Application Team

  * @version V1.5.0

  * @date    06-May-2016

0690X00000604vFQAQ.png

#i2c-dma-mem-read
3 REPLIES 3
Nesrine M_O
Lead II
Posted on August 24, 2016 at 13:06

Hi Brice_38,

Thanks for highlighting this issue. I will check it with our development team & come back to you. Sorry for the inconvenience it may bring.

-Syrine-

MAI THANH.Brice
Associate III
Posted on August 24, 2016 at 17:20

Hi

I understand that there is some bug and that it takes time.

I continued to monitor the I2C driver and found something strange. 

On the following screen, the signal ?IT EVT? is a GPIO that is toggle every time I enter ?I2C1_EV_IRQHandler()?

I found strange to enter this often after the address so I monitor the different IT flag and add them on the screenshot.

Hope you could help and fix this problem

0690X00000604sCQAQ.png

Hi

I continued to monitor the I2C driver and found something strange. 

On the following screen, the signal ?IT EVT? is a GPIO that is toggle every time I enter ?I2C1_EV_IRQHandler()?

I found strange to enter this often after the address so I monitor the different IT flag and add them on the screenshot.

Hope you could help and fix this problem

0690X00000604sCQAQ.png

Hi

I continued to monitor the I2C driver and found something strange. 

On the following screen, the signal ?IT EVT? is a GPIO that is toggle every time I enter ?I2C1_EV_IRQHandler()?

I found strange to enter this often after the address so I monitor the different IT flag and add them on the screenshot.

Hope you could help and fix this problem

0690X00000604sCQAQ.png

Hi

I continued to monitor the I2C driver and found something strange. 

On the following screen, the signal ?IT EVT? is a GPIO that is toggle every time I enter ?I2C1_EV_IRQHandler()?

I found strange to enter this often after the address so I monitor the different IT flag and add them on the screenshot.

Hope you could help and fix this problem

0690X00000604sCQAQ.png

allard
Senior
Posted on November 04, 2016 at 08:50

I have the same problem (with the number of event interrupts), any news on a fix?