cancel
Showing results for 
Search instead for 
Did you mean: 

I2C with Nucleo - STM32F767ZI problem

Luca1
Senior

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?

1 ACCEPTED SOLUTION

Accepted Solutions
Luca1
Senior

I have found the solution of my problem, it was the slave address that is not left shifted by one. Now the I2C works.

View solution in original post

1 REPLY 1
Luca1
Senior

I have found the solution of my problem, it was the slave address that is not left shifted by one. Now the I2C works.