Skip to main content
Luca1
Associate III
May 8, 2020
Solved

I2C with Nucleo - STM32F767ZI problem

  • May 8, 2020
  • 1 reply
  • 1217 views

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?

This topic has been closed for replies.
Best answer by Luca1

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

1 reply

Luca1
Luca1AuthorAnswer
Associate III
May 9, 2020

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