I’ve been struggling getting the XIAO RP2040 to work with i2c. I got it working and here’s what I learned:
I seem to have better luck with the previous Arduino editor (v 1.8)
The Seeed provided board library I’ve had problems with:
The newest one (2.7.2) won’t program at all. All I get is An error occurred while uploading the sketch
The previous release (1.12.0) will program the chip fine, but I have the same i2c issues that davekw7x does above.
However, switching to use the Earle Philhower board library that now supports the XIAO RP2040 actually works 100% fine. I switched boards to that and it “just worked”. Cheers!