I2C - I want to read data from the register by the HAL (HAL_I2C_Mem_Read) but 8 bit every rime is LOW but should be HIGH.
Hello everybody!!)) I spent a few days already, try to decide this problem, this reason I decided to ask here.
I can write data to register by command HAL_I2C_Mem_Write, but can not read, because 8 register is low
uint8_t adress_read1 = 0x43;
uint8_t status = 0x1F;
uint8_t status_readed;
HAL_I2C_Mem_Read(&hi2c4, adress_read, status, 1, (int8_t*)&status_readed, 1, 10);
You can see it the photo
I try used differents types for variables, different times, different lengths for variables, different speeds for I2C but the result every rime same.
That interesting, with command HAL_I2C_Master_Receive - works without problem, but with this command, I can only read data and can not read registers. Where can be an error, please help me?
