iot: Release 1.1 does not support InputPullUp/InputPullDown mode for RaspberryPi2B

I don’t know if this is really bug but with release 1.1 I’am no longer able to set pin driver mode to InputPullUp value on my Pi Model 2B v1.1 rev. a01041.

Steps to reproduce

GpioController controller = new GpioController();
controller.OpenPin(17, PinMode.InputPullUp);

Expected behavior

When I run this code in release 1.0 everything works fine.

Actual behavior

When I run this code in release 1.1 I get exception “Pin 17 does not support mode InputPullUp”.

I debugged the source code of 1.1 and my RPi2 gets LibGpioDriver. When setting DriveMode.InputPullUp there is a condition for gpiod v1.5. But RPi2 has up-to-date version only 1.2 so I get mentioned exception. Will there be RPi2 PullUp/PullDown support added in future or do I have to switch to newer RPi? Or should I stick with release 1.0 for my antique board?

Thanks guys. Keep up good job.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 1
  • Comments: 20 (14 by maintainers)

Most upvoted comments

On my RPI4 model B rev 1.2, same issue with GpioController controller = new GpioController(); Got exception:

Unhandled exception. System.InvalidOperationException: Pin 17 does not support mode InputPullUp.
   at System.Device.Gpio.GpioController.SetPinMode(Int32 pinNumber, PinMode mode)
   at System.Device.Gpio.GpioController.OpenPin(Int32 pinNumber, PinMode mode)
   at helloworld.Program.Main(String[] args) in C:\tmp\TestGrove\TestGrove\Program.cs:line 21

with GpioController controller = new GpioController(PinNumberingScheme.Logical, new RaspberryPi3Driver());`` Got different exception:

Unhandled exception. System.PlatformNotSupportedException: Not a supported Raspberry Pi type: Unknown
   at System.Device.Gpio.Drivers.RaspberryPi3Driver..ctor()
   at helloworld.Program.Main(String[] args) in C:\tmp\TestGrove\TestGrove\Program.cs:line 20

Now the info:

processor       : 0
model name      : ARMv7 Processor rev 3 (v7l)
BogoMIPS        : 108.00
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt                         vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xd08
CPU revision    : 3

processor       : 1
model name      : ARMv7 Processor rev 3 (v7l)
BogoMIPS        : 108.00
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt                         vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xd08
CPU revision    : 3

processor       : 2
model name      : ARMv7 Processor rev 3 (v7l)
BogoMIPS        : 108.00
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt                         vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xd08
CPU revision    : 3

processor       : 3
model name      : ARMv7 Processor rev 3 (v7l)
BogoMIPS        : 108.00
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt                         vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xd08
CPU revision    : 3

Hardware        : BCM2711
Revision        : c03112
Serial          : 1000000041ead9f5
Model           : Raspberry Pi 4 Model B Rev 1.2