NUCLEO-G474re Arduino I2C not working.
I'm trying to do a quick eval of a NUCLEO-G474re board for use of the SoC as a product communication controller (I2C, SPI, RS-485, etc.), initially using the Arduino environment for rapid testing. Initial attempt to bring up I2C causes NO activity on SCL/SDA as observed on a logic analyzer.
Relevant code fragments for a DS1683 at 7-bit address 0x6B:
#include <Wire.h>
Wire.begin(); // SCL/SDA on Arduino D15/D14 (G474 PB8/PB9)
Wire.setClock(100000L); // 100 kHz
Wire.beginTransmission(0x6B);
Wire.write(0x01); // Check the Status register
Wire.requestFrom(0x6B, 1);
byte RegData = Wire.read();
Wire.endTransmission();
Am I missing something obvious? Why is the I2C bus quiet?
Thanks!
Edit: Downloaded an I2C Scanner sketch. No I2C activity on the NUCLEO, but works on an Arduino Due.
-BobC
