richx
Posts: 6
Joined: Thu Jul 19, 2012 1:37 am

pigpio/gpiotest fails with Raspberry Pi 3 Model B+ ?

Fri Aug 17, 2018 4:24 am

This is with a Raspberry Pi 3 Model B+ (Revision a020d3):
$ ./gpiotest
This program checks the Pi's (user) gpios.

The program reads and writes all the gpios. Make sure NOTHING
is connected to the gpios during this test.

The program uses the pigpio daemon which must be running.

To start the daemon use the command sudo pigpiod.

Press the ENTER key to continue or ctrl-C to abort...

Testing...
Write 1 to gpio 28 failed.
Pull up on gpio 28 failed.
Pull up on gpio 30 failed.
Pull down on gpio 31 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 21 22 23 24 25 26 27 28 29 30 31
Failed user gpios: 28 30 31

GPIO28, GPIO30 and GPIO31 are not on the 40 pin header, are these three GPIOs used for or connected to anything else on the 3B+?

Looks like odd partial failures if the GPIOs are not connected to anything, hopefully it's safe writing 0/1 to these..

User avatar
joan
Posts: 13578
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: pigpio/gpiotest fails with Raspberry Pi 3 Model B+ ?

Fri Aug 17, 2018 8:04 am

pigpio has not correctly identified the Pi model. The pigpio version you are using (64?) assumes GPIO 0-31 are present on the expansion header if the Pi model can not be recognised. This is wrong for the Pi3B+ as only GPIO 0-27 are present. pigpio is therefore testing GPIO which should not be touched. It is unlikely to do any harm. However any failures for GPIO 28-31 are erroneous as they are being used by the "system".

Later versions of pigpio (>64) assume GPIO 0-27 are present if the Pi model can't be recognised.

The command pigs pigpv will show the pigpio version. The command pigs hwver will show the Pi model number (as a long hex number).

richx
Posts: 6
Joined: Thu Jul 19, 2012 1:37 am

Re: pigpio/gpiotest fails with Raspberry Pi 3 Model B+ ?

Fri Aug 17, 2018 4:34 pm

That's what I was thinking, it is version 64 from the latest Raspian image. pigs hwver shows 10494163.

Good that later versions are narrowing the default range, perhaps a warning if pigpio does not recognize the hardware version would be useful.

Thanks Joan.

Return to “Troubleshooting”