AnsweredAssumed Answered

[STM32L4] I2C HAL read register problem

Question asked by robert.o on May 31, 2016
Latest reply on Jun 1, 2016 by Amel N
Hi,
I'm trying to read register in my accelerometer FXOS8700. 
I'm using code below on STM32L476:
uint8_t FXOS8700_ReadReg(uint8_t reg) {
uint8_t value=0;
HAL_I2C_Master_Transmit(&hi2c1, FXOS8700CQ_SLAVE_ADDR, &reg, 1, 100);
HAL_I2C_Master_Receive(&hi2c1, FXOS8700CQ_SLAVE_ADDR, &value, 1, 100);  
return value;
}

HAL library generate STOP between transmit and receive function. I think this is my problem, because in FXOS8700 datasheet STOP is only on the end of whole operation.

Is it possible to disable this STOP signal between transmit and receive function ?

Outcomes