question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Release 1.1 does not support InputPullUp/InputPullDown mode for RaspberryPi2B

See original GitHub issue

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.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
Ellerbachcommented, Nov 14, 2020

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
Read more comments on GitHub >

github_iconTop Results From Across the Web

Raspberry Pi hardware - Raspberry Pi Documentation
This document explains how the boot modes work, and which ones are supported for Linux booting. Special bootcode.bin -only boot mode. USB host...
Read more >
Raspberry Pi
Raspberry Pi 1 and Zero support only soft-float (armel) which is slower than hard-float. This has apparently been resolved. The Raspberry Pi ...
Read more >
Raspberry Pi
Raspberry Pi is a series of small single-board computers (SBCs) developed in the United Kingdom by the Raspberry Pi Foundation in association with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found