After soldering a header on my Pi Zero W I used pigpio's gpiotest utility to check for problems.

I was dismayed that this produced no output and crashed the Pi. After stepping through the tests I found what had caused the problem (operator error).

I was still surprised by the output:-

Pull up on gpio 30 failed.
Skipped non-user gpios: 
Tested user gpios: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 23 24 25 26 27 28 29 30 31 
Failed user gpios: 30 

I can find no mention of gpio 30 except P5 of the Pi B Model 2. gpiotest doesn't seem to have been updated since 2104, so it is not surprising it is testing the wrong pins.

My question is - does anyone know if gpio 30 is used on current models? I had some vague idea it was used, but can find no reference.

grep Revision /proc/cpuinfo reports

Revision    : 9000c1

1 Answer 1


That is a fault in pigpio/gpiotest and/or the hardware revision returned by the Pi Zero W.

gpiotest relies on pigpio to tell it which GPIO are safe to write.

pigpio relies on the hardware revision returned by the Pi to assemble the list of safe to write GPIO.

If pigpio does not understand the hardware revision it defaults to granting access to GPIO 0-31.

I shall change the default to the 40 pin header in pigpio (GPIO 2-27).

In hindsight that is probably a better default now.

What revision does your Pi Zero W report?

grep Revision /proc/cpuinfo

As an aside if you start the pigpio daemon with

sudo pigpiod -x0x0000000FFFFFFC

gpiotest should run as intended (assuming they are the correct permissions for the Pi Zero W).

  • pigs m 30 w reports ERROR: no permission to update GPIO on Pi3 but no error on Pi Zero W. I haven't looked through pigpio code.
    – Milliways
    May 19, 2017 at 7:48
  • 1
    @Milliways It should fail with permissions on the Pi Zero W as well. I don't know what GPIO 30 is used for, something important apparently. My assumption that the Pi Zero W returned the same model information as the Pi Zero is clearly wrong.
    – joan
    May 19, 2017 at 8:23
  • Just tried restarting the deamon as suggested, which works. Hardware : BCM2835 Revision : 9000c1
    – Milliways
    May 19, 2017 at 8:24
  • 2
    Okay, thanks. I will update pigpio to correct the error (it will be corrected in the next release, V65).
    – joan
    May 19, 2017 at 8:34
  • 1
    Has this release been deployed? Using apt-get install pigpio I get latest version 1.64-1
    – ffleandro
    Apr 13, 2018 at 14:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.