If you’re trying to use the internal i2c on the BBC microbit v2 with Zephyr v2.50 you will run into issues, as I noticed when trying to use the gyro/accelerometer & magnetometer that is on the internal I2C bus.
You’ll need to add the compatible for i2c0
compatible = "nordic,nrf-twim";
in the bbc_microbit_v2
devicetree.
/.platformio/packages/framework-zephyr/boards/arm/bbc_microbit_v2/bbc_microbit_v2.dts
as shown below.
&i2c0 {
compatible = "nordic,nrf-twim";
status = "okay";
clock-frequency = <I2C_BITRATE_FAST>;
sda-pin = <16>;
scl-pin = <8>;
...
...
I’ll follow up with the Zephyr dev regarding the bug. Hopefully a fix will be included in the next Zephyr release.