i found the problem thanks to real. I2C1 -> CR1 |= (1<8) // Missed < sign I2C1 -> CR1 |= (1<<8) This one do the work.