Subject: SC20100 / FEZ Duino — Cannot OpenPin PB8/PB9 as GPIO (I2C1 conflict)

Hi,
I’m using TinyCLR 2.3.0.1000 on a FEZ Duino (SC20100).

My custom PCB connects limit switches to PB8 (pin 24) and PB9 (pin 25).

When I call GpioController.GetDefault().OpenPin(25) I get CLR_E_INVALID_OPERATION.
I2C1 seems to be reserved by TinyCLR at boot and is blocking these pins.

I2cController.FromName(SC20100.I2cBus.I2c1) also fails with Acquire error.
Is there a way to release I2C1 and use PB8/PB9 as GPIO in TinyCLR 2.3 ?

Looks like you found a problem and its source. We will look into it.

Does it happen on 2.4.0.1000?

I don’t think i2c is hold by default. Is there anything initialize before openning the pin?