sora03
Posts: 192
Joined: Mon Dec 29, 2014 4:11 pm
Contact: Website

GPIO pins are dead?

Tue Jun 26, 2018 12:48 pm

Troubleshooting part is done but I still do not know how all of my GPIO pins are dead. I have a RPi 2B, i2c peripherals DS3231 and BMP180, SPI MCP3002 with MQ2. 2 LEDs with 100 ohm and 2 LEDs with 150 ohm resistors. 2 Buttons with 10K and 1K resistors connected to 3v3 and a GPIO pin. It just stopped working, at first the BMP180 and DS3231 does not register at all to i2cdetect -y 1. Then the buttons are not triggered on the python script. MCP3002 shows zero reading on the MQ2.

I have removed all GPIO connections and downloaded/installed wiringPi pintest and pigpiod gpiotest the results are as follows:

Code: Select all

$ sudo ./wiringPi/gpio/pintest
PinTest
=======

This is a simple utility to test the GPIO pins on your Raspberry Pi.

NOTE: All GPIO peripherals must be removed to perform this test. This
  includes serial, I2C and SPI connections. You may get incorrect results
  if something is connected and it interferes with the test.

This test can only test the input side of things. It uses the internal
pull-up and pull-down resistors to simulate inputs. It does not test
the output drivers.

You will need to reboot your Pi after this test if you wish to use the 
serial port as it will be left in GPIO mode rather than serial mode.

This test only tests the original pins present on the Rev A and B. It
does not test the extra pins on the Revision A2, B2 nor the A+ or B+

Please make sure everything is removed and press the ENTER key to continue,
or Control-C to abort... 
          The main 8 GPIO pins  0: 7: 
 --> Pin 0 failure. Expected 1, got 0
 --> Pin 1 failure. Expected 1, got 0
 --> Pin 2 failure. Expected 1, got 0
 --> Pin 3 failure. Expected 1, got 0
 --> Pin 4 failure. Expected 1, got 0
 --> Pin 5 failure. Expected 1, got 0
 --> Pin 6 failure. Expected 1, got 0
 --> Pin 7 failure. Expected 1, got 0
8 faults detected
                The 5 SPI pins 10:14: 
 --> Pin 10 failure. Expected 1, got 0
 --> Pin 11 failure. Expected 1, got 0
 --> Pin 12 failure. Expected 1, got 0
 --> Pin 13 failure. Expected 1, got 0
 --> Pin 14 failure. Expected 1, got 0
5 faults detected
               The serial pins 15:16: 
 --> Pin 15 failure. Expected 1, got 0
 --> Pin 16 failure. Expected 1, got 0
2 faults detected
                  The I2C pins  8: 9: Pin 8 failure - expected 1, got 0
Pin 9 failure - expected 1, got 0
2 faults detected


Faults detected! Output of 'readall':
 +-----+-----+---------+------+---+---Pi 2---+---+------+---------+-----+-----+
 | BCM | wPi |   Name  | Mode | V | Physical | V | Mode | Name    | wPi | BCM |
 +-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+
 |     |     |    3.3v |      |   |  1 || 2  |   |      | 5v      |     |     |
 |   2 |   8 |   SDA.1 |   IN | 0 |  3 || 4  |   |      | 5v      |     |     |
 |   3 |   9 |   SCL.1 |   IN | 0 |  5 || 6  |   |      | 0v      |     |     |
 |   4 |   7 | GPIO. 7 |   IN | 0 |  7 || 8  | 0 | IN   | TxD     | 15  | 14  |
 |     |     |      0v |      |   |  9 || 10 | 0 | IN   | RxD     | 16  | 15  |
 |  17 |   0 | GPIO. 0 |   IN | 0 | 11 || 12 | 0 | IN   | GPIO. 1 | 1   | 18  |
 |  27 |   2 | GPIO. 2 |   IN | 0 | 13 || 14 |   |      | 0v      |     |     |
 |  22 |   3 | GPIO. 3 |   IN | 0 | 15 || 16 | 0 | IN   | GPIO. 4 | 4   | 23  |
 |     |     |    3.3v |      |   | 17 || 18 | 0 | IN   | GPIO. 5 | 5   | 24  |
 |  10 |  12 |    MOSI |   IN | 0 | 19 || 20 |   |      | 0v      |     |     |
 |   9 |  13 |    MISO |   IN | 0 | 21 || 22 | 0 | IN   | GPIO. 6 | 6   | 25  |
 |  11 |  14 |    SCLK |   IN | 0 | 23 || 24 | 0 | IN   | CE0     | 10  | 8   |
 |     |     |      0v |      |   | 25 || 26 | 0 | IN   | CE1     | 11  | 7   |
 |   0 |  30 |   SDA.0 |   IN | 0 | 27 || 28 | 0 | IN   | SCL.0   | 31  | 1   |
 |   5 |  21 | GPIO.21 |   IN | 0 | 29 || 30 |   |      | 0v      |     |     |
 |   6 |  22 | GPIO.22 |  OUT | 0 | 31 || 32 | 0 | IN   | GPIO.26 | 26  | 12  |
 |  13 |  23 | GPIO.23 |   IN | 0 | 33 || 34 |   |      | 0v      |     |     |
 |  19 |  24 | GPIO.24 |   IN | 0 | 35 || 36 | 0 | OUT  | GPIO.27 | 27  | 16  |
 |  26 |  25 | GPIO.25 |   IN | 0 | 37 || 38 | 0 | IN   | GPIO.28 | 28  | 20  |
 |     |     |      0v |      |   | 39 || 40 | 0 | IN   | GPIO.29 | 29  | 21  |
 +-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+
 | BCM | wPi |   Name  | Mode | V | Physical | V | Mode | Name    | wPi | BCM |
 +-----+-----+---------+------+---+---Pi 2---+---+------+---------+-----+-----+
for gpiotest

Code: Select all

$ sudo ./gpiotest/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 2 failed.
Pull up on gpio 2 failed.
Write 1 to gpio 3 failed.
Pull up on gpio 3 failed.
Write 1 to gpio 4 failed.
Pull up on gpio 4 failed.
Write 1 to gpio 5 failed.
Pull up on gpio 5 failed.
Write 1 to gpio 6 failed.
Pull up on gpio 6 failed.
Write 1 to gpio 7 failed.
Pull up on gpio 7 failed.
Write 1 to gpio 8 failed.
Pull up on gpio 8 failed.
Write 1 to gpio 9 failed.
Pull up on gpio 9 failed.
Write 1 to gpio 10 failed.
Pull up on gpio 10 failed.
Write 1 to gpio 11 failed.
Pull up on gpio 11 failed.
Write 1 to gpio 12 failed.
Pull up on gpio 12 failed.
Write 1 to gpio 13 failed.
Pull up on gpio 13 failed.
Write 1 to gpio 14 failed.
Pull up on gpio 14 failed.
Write 1 to gpio 15 failed.
Pull up on gpio 15 failed.
Write 1 to gpio 16 failed.
Pull up on gpio 16 failed.
Write 1 to gpio 17 failed.
Pull up on gpio 17 failed.
Write 1 to gpio 18 failed.
Pull up on gpio 18 failed.
Write 1 to gpio 19 failed.
Pull up on gpio 19 failed.
Write 1 to gpio 20 failed.
Pull up on gpio 20 failed.
Write 1 to gpio 21 failed.
Pull up on gpio 21 failed.
Write 1 to gpio 22 failed.
Pull up on gpio 22 failed.
Write 1 to gpio 23 failed.
Pull up on gpio 23 failed.
Write 1 to gpio 24 failed.
Pull up on gpio 24 failed.
Write 1 to gpio 25 failed.
Pull up on gpio 25 failed.
Write 1 to gpio 26 failed.
Pull up on gpio 26 failed.
Write 1 to gpio 27 failed.
Pull up on gpio 27 failed.
Skipped non-user gpios: 0 1 28 29 30 31 
Tested user gpios: 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 
Failed user gpios: 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 
The Pi is powered by DC Buck converter MP1584 with max of 3A 5v from a laptop charger source.
I also have a USB Hub to power wireless adapters also powered by MP1584 separated from the Pi's MP1584 to avoid any damage. there is also a 1000 uF capacitor at my 5v GPIO if that matters. The Pi does have a MicroSD but only for booting to the external HDD. The OS is raspbian latest with a old kernel 4.9.80 with grsec hardened custom compiled by me.
I also downloaded a rpiburn power test, the Pi is headless so I SSH to it, here is the result of rpiburn:

Code: Select all

Preparing BCM2836 system processor...
Power consumption test in progress...
PSU OK
I do not know why the gpio pins all of them are fried? they can still be used as outputs but not Inputs. Also, Pins BCM 25, BCM 26 and BCM 27 are COMPLETELY DEAD no HIGH output to an LED. Pi's CPU temp is as of this moment is 48 deg C.

Should I replace the Pi? what is the failure rate of a Pi anyway? As of now I do not have any money to buy a new Pi getting it took me months... The Pi is running for about 2 years of 24/7 use and it has a UPS too.
FLOSS enthusiast, Debian user (linux-libre)

User avatar
RaTTuS
Posts: 10365
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK

Re: GPIO pins are dead?

Tue Jun 26, 2018 12:52 pm

post your circuit diagram of all the stuff you have attached.
if you put in 5V on a GPIO or more mA than you should you will kill things
Last edited by RaTTuS on Wed Jun 27, 2018 10:49 am, edited 1 time in total.
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

User avatar
Z80 Refugee
Posts: 358
Joined: Sun Feb 09, 2014 1:53 pm

Re: GPIO pins are dead?

Tue Jun 26, 2018 4:14 pm

sora03 wrote:
Tue Jun 26, 2018 12:48 pm
I do not know why the gpio pins all of them are fried?
Beginners Guide to Wiring Things to the GPIO
Military and Automotive Electronics Design Engineer (retired)

For the best service: make your thread title properly descriptive, and put all relevant details in the first post (including links - don't make us search)!

Return to “Troubleshooting”