2020-05-08 01:44 AM
Hi to all!
I'm new to STM32, so i want to learn. I have a Nucleo-STM32F767ZI board and i try to interface this board with the MPU9150 sensor via I2c.
The problem is that i can't able to communicate with the sensor. Using a logic analyzer i see that the board get-out the SDA and SCL signals, but the sensor answer with a NACK. Also If i use a read operation, i see the correct slave address (0x69) on the logic analyzer, but if i use a write operation i see a wrong value of the slave address (0x68).
I use the STM32CUBEIDE to generate the project, and i use a default configuration for I2C1 with no filters enable, rise time and fall time set to zero. The output pins are mapped to the PB8 and PB9.
Please, someone can help me to find where i'm wrong?
Solved! Go to Solution.
2020-05-09 01:35 PM
I have found the solution of my problem, it was the slave address that is not left shifted by one. Now the I2C works.
2020-05-09 01:35 PM
I have found the solution of my problem, it was the slave address that is not left shifted by one. Now the I2C works.