Description
Frequency:
Wire.begin() should default to 100kHz clock for the I2C bus. In the default appears to give 116kHz. Wire.setClock(400kHz) gives 333kHz.
Waveform:
The waveform for the SCL line is not normal. It stays low for <2 mu seconds and then goes high. If frequency was the only problem you'd expect 4.3 mus (half of the period). This may be evidence it's a code issue and not a bungled circuit.
Attached are 2 pics showing scope traces of the SCL (yellow trace) and SDA( red trace). The same code running on UNO (first pic) and another of it running on the Portenta (second pic). UNO is right on frequency and has that nice clock signal shape.
Some I2C devices did successfully receive data from the Portenta on the I2C Bus however I couldn't get several sensors to send data back. The same sensors have no issue on the UNO. My sensor connectivity challenge could be related to the waveform issue, I don't know.