GPIO problems on the Raspberry Pi 2

gpio

EDIT/UPDATE: This issue is now resolved

Simply update your Raspberry Pi to fix this issue:
sudo apt-get update
sudo apt-get upgrade

There is currently an issue with using the GPIO pins on the Raspberry Pi 2. The issue concerns the RPi.GPIO Python library, which currently does not work properly. The reason for this is a bug in the Raspbian operating system. Until this bug is fixed, RPi.GPIO cannot work correctly. The author of the RPi.GPIO library, Ben Croston, is currently working on a fix for this and has had some success. However, his work is currently in an unstable ‘development’ state and hasn’t been brought into the main repositories.
At this present time, I recommend just being patient. Please do not do the following things:
  • DO NOT run rpi-update
  • DO NOT install the development version

Both of these things may leave your Pi doing unexpected things – they represent the ‘bleeding edge’ of development and they’re just not suitable for the vast majority of users.

It is likely that the issue will be fixed in the next week or two. I will report as soon as I receive word on a proper fix and how to install it.

Pimoroni have issued rather good advice concerning their products and agree with me on the state of things and the need to be patient for the proper fix.

Please bear in mind that this bug will affect everything using RPi.GPIO, including the very-popular Pibrella board and also the CamJam EduKits that we sell through The Pi Hut.

GPIO diagram at the top from Raspberry Pi Spy

7 comments for “GPIO problems on the Raspberry Pi 2

  1. 9 February 2015 at 12:28 pm

    Change the GPIO peripheral base address from 0x2000000 to 0x3f00000 and the GPIO software works. See /sys/iomem if I remember correctly. We have had to adjust all our sw for RPi2.

    • recantha
      9 February 2015 at 5:35 pm

      How does one do that?

  2. 9 February 2015 at 2:40 pm

    On the plus side, as with the Xenon 2 Megablast issue, it’s notable that the community identified the problem and proposed a workaround, in about a billionth of the time that a closed-source software house would have done. And I bet we’ll see an upstream fix a lot quicker than a certain Redmond-based OS provider would roll out to its users.

  3. Aymen
    10 February 2015 at 12:54 pm

    How can I turn a Raspberry pi card on my PC?

    • recantha
      10 February 2015 at 1:40 pm

      Can you ask that question in a different way? It doesn’t make sense.

  4. Pedro Rodrigues
    12 March 2015 at 4:47 pm

    So.. this problem is already solved, or not yet ?

    • recantha
      12 March 2015 at 4:57 pm

      Yep. This problem is now solved.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.