hello everyone i'm trying to read the mpu6050 data with the i2c+DMA, now if i
run with the normal function without dma HAL_I2C_Mem_Read (& hi2c1,
((uint16_t *) (0x68 << 1)), 0x43, 1, data, 6,1000) reads regularly in
the loop;
the problem is when I use the dma HAL_I2C_Mem_Read_DMA (& hi2c1,
((uint16_t *) (0x68 << 1)), 0x43, 1, data, 6) it executes the reading
once then it doesn't execute it anymore
and stops here:
/ * Clear ADDR flag * /
__HAL_I2C_CLEAR_ADDRFLAG (hi2c);
/ * Generate Stop * /
SET_BIT (hi2c-> Instance-> CR1, I2C_CR1_STOP);
hi2c-> State = HAL_I2C_STATE_READY;
/ * Process Unlocked * /
__HAL_UNLOCK (hi2c);
}
return HAL_OK;
}
else
{
return HAL_BUSY;
}
}
stops HAL_BUSY .....
where can the problem be, thanks !!!