Question
HAL_I2C_Mem_Read_DMA problem
Hey guys.
Im using cubemx for i2c initiallization and i have a problem while using this HAL_I2C_Mem_Read_DMA function.
When i call it in while(1) it works one time and after that it returns error or busy.
while (1)
{
HAL_Delay(1000);
HAL_I2C_Mem_Read_DMA(&hi2c1,0x68<<1,0x00,I2C_MEMADD_SIZE_8BIT,buf,3);
HAL_Delay(1000);
}