I2C Communication Issue with STM32 Nucleo Board: Unable to Find Slave Address

77 views Asked by At

I am working with the STM32H743ZI2 NUCLEO BOARD. I have configured and programmed the board for general purposes, including GPIO, ADC, PWM, I2C, and SPI. To validate the I2C part, I created a test board with two I2C devices on it. I confirmed address scanning, data transmission, and data reception with this test board.

Later, I attempted to communicate with another board containing a different I2C device using the programmed NUCLEO BOARD. However, when I executed the address scanning command, I couldn't find the slave address of the device, and I couldn't write data. I consulted a colleague, and they asked if I had connected pull-up resistors to the SDA-SCL pins. Upon reviewing the boards, I noticed that the test board, where I found the slave address, had pull-up resistors, while the other board did not.

Could this be the issue? If so, can I use pull-up resistors on the NUCLEO BOARD instead of the device where I cannot find the address?

0

There are 0 answers