Microcontroller stm32f401ccu6
Connecting by I2c SDA-PB7, SCL-PB6
IMU MPU-9250

This sketch
Works good
I2C device found at address 0x68 !
But when I try to use sketch
I get a message
Error initializing communication with IMU
Which says that the wire does not work.
I can't find the reason for this behaviour.
The author of the library says the reason is incorrect initialization of I2C.
Help me to understand.
Microcontroller

stm32f401ccu6Connecting by I2c
SDA-PB7,SCL-PB6IMU
MPU-9250This sketch
Works good
I2C device found at address 0x68 !But when I try to use sketch
I get a message
Error initializing communication with IMUWhich says that the
wiredoes not work.I can't find the reason for this behaviour.
The author of the library says the reason is incorrect initialization of I2C.
Help me to understand.