NEUCLEO-F103RB Can't get IIC working.
- July 1, 2018
- 3 replies
- 1178 views
Hi All,
Having got the USART working, and being able to exchanged data via the serial port I want to try and drive an Adafriuit IIC backpack. This uses the Holtek HT16K33 driver chip.
I have connected the backpack's SCL & SDA to the neucleo board's SCL & SDA (for I2C port 1), on CN10, and the power to the +5V & GND on CN7.
I have used CubeMX32 to setup a project with the I2C, and initialized it with the default peripheral values. I borrowed the I2C sending code from one of the ST supplied examples. However when I try and send anything to the backpack, it seems to get stuck either waiting for start ack, or more commonly waiting for address ack.
I've attached the i2c & LED source files and headers, can anybody spot anything I have done wrong or anything I should be doing?
Cheers.
Phill.