Question
HAL_I2C_Master_Transmit_DMA sends only a START and leave both I2C lines in low state.
I'm trying to send and receive data to and from a BH1750 and the microcontroler (NUCLEO-F446RE / STM32F446RE) onlyh sends a START when using the function HAL_I2C_Master_Transmit_DMA.
I used a logic analyser to try to see whats is going on (picture attached).
if(HAL_I2C_IsDeviceReady(&hi2c1, bh1750Address, 2, bh1750TimeOut) == HAL_OK){
__NOP();
}
transmitBuffer[0] = 0x10; // Continuous high res meas mode BH1750
HAL_I2C_Master_Transmit_DMA(&hi2c1, (uint8_t) bh1750Address, (uint8_t*)transmitBuffer, 1);When I use the function "HAL_I2C_Master_Transmit"} everything works properly.
M'I doing something wrong? Is there a bug in the HAL driver?
Thanks!
