priema
Posts: 5
Joined: Sat Jan 24, 2015 4:35 pm

Wiring Pi gpio not working after a time

Sat Jan 24, 2015 5:46 pm

I have the same problem .. i also added program_board_rev=2 to my config.txt but it still not works
the strange thing is that i can read 3-4 seconds (pir sensor) before this error appears:
piBoardRev: Unable to determine board revision from /proc/cpuinfo
-> Unable to open /proc/cpuinfo
-> You may want to check:
-> http://www.raspberrypi.org/phpBB3/viewt ... 10#p184410

here my cpuinfo:
processor : 0
model name : ARMv6-compatible processor rev 7 (v6l)
Features : swp half thumb fastmult vfp edsp java tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xb76
CPU revision : 7

Hardware : BCM2708
Revision : 000e
Serial : 00000000ebf39724

User avatar
gordon@drogon.net
Posts: 2020
Joined: Tue Feb 07, 2012 2:14 pm
Location: Devon, UK
Contact: Website

Re: Revision 0000 - gpio not working

Sat Jan 24, 2015 10:00 pm

priema wrote:I have the same problem .. i also added program_board_rev=2 to my config.txt but it still not works
the strange thing is that i can read 3-4 seconds (pir sensor) before this error appears:
piBoardRev: Unable to determine board revision from /proc/cpuinfo
-> Unable to open /proc/cpuinfo
-> You may want to check:
-> http://www.raspberrypi.org/phpBB3/viewt ... 10#p184410

here my cpuinfo:
processor : 0
model name : ARMv6-compatible processor rev 7 (v6l)
Features : swp half thumb fastmult vfp edsp java tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xb76
CPU revision : 7

Hardware : BCM2708
Revision : 000e
Serial : 00000000ebf39724
Are you using U-Boot? I had an email recently from someone who was and saw this issue...

-Gordon
--
Gordons projects: https://projects.drogon.net/

priema
Posts: 5
Joined: Sat Jan 24, 2015 4:35 pm

Re: Revision 0000 - gpio not working

Sat Jan 24, 2015 10:36 pm

gordon@drogon.net wrote:
priema wrote:I have the same problem .. i also added program_board_rev=2 to my config.txt but it still not works
the strange thing is that i can read 3-4 seconds (pir sensor) before this error appears:
piBoardRev: Unable to determine board revision from /proc/cpuinfo
-> Unable to open /proc/cpuinfo
-> You may want to check:
-> http://www.raspberrypi.org/phpBB3/viewt ... 10#p184410

here my cpuinfo:
processor : 0
model name : ARMv6-compatible processor rev 7 (v6l)
Features : swp half thumb fastmult vfp edsp java tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xb76
CPU revision : 7

Hardware : BCM2708
Revision : 000e
Serial : 00000000ebf39724
Are you using U-Boot? I had an email recently from someone who was and saw this issue...

-Gordon
what? i don't understand ..
i'm using raspbian

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

Re: Revision 0000 - gpio not working

Sat Jan 24, 2015 10:44 pm

@priema

You have a revision of 000e (14 in decimal) which indicates a model B Rev.2 board. Your error seems to have nothing to do with the error reported by the original poster.

DirkS
Posts: 10363
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Revision 0000 - gpio not working

Sat Jan 24, 2015 10:55 pm

joan wrote:@priema

You have a revision of 000e (14 in decimal) which indicates a model B Rev.2 board. Your error seems to have nothing to do with the error reported by the original poster.
Agree. Seems to be a coding problem.
Bit of guesswork: using RPi.GPIO in Python and initialising it in a loop...

@priema: please create new topic and post your code (don't forget to use a [/b] block.

priema
Posts: 5
Joined: Sat Jan 24, 2015 4:35 pm

Re: Revision 0000 - gpio not working

Sun Jan 25, 2015 8:02 am

DirkS wrote:
joan wrote:@priema

You have a revision of 000e (14 in decimal) which indicates a model B Rev.2 board. Your error seems to have nothing to do with the error reported by the original poster.
Agree. Seems to be a coding problem.
Bit of guesswork: using RPi.GPIO in Python and initialising it in a loop...

@priema: please create new topic and post your code (don't forget to use a [/b] block.
omg you're right .. i init it in the loop .. thx :D

User avatar
gordon@drogon.net
Posts: 2020
Joined: Tue Feb 07, 2012 2:14 pm
Location: Devon, UK
Contact: Website

Re: Revision 0000 - gpio not working

Sun Jan 25, 2015 10:17 am

priema wrote:
DirkS wrote:
joan wrote:@priema

You have a revision of 000e (14 in decimal) which indicates a model B Rev.2 board. Your error seems to have nothing to do with the error reported by the original poster.
Agree. Seems to be a coding problem.
Bit of guesswork: using RPi.GPIO in Python and initialising it in a loop...

@priema: please create new topic and post your code (don't forget to use a [/b] block.
omg you're right .. i init it in the loop .. thx :D
Ah - that'll work for the first 4000 or so loops, then croak when you run out of file handles. Maybe I'll put a check in wiringPi for it, but there's only so much you can do to protect yourself...

-Gordon
--
Gordons projects: https://projects.drogon.net/

girin
Posts: 4
Joined: Mon Dec 22, 2014 4:12 am

Re: Revision 0000 - gpio not working

Wed Jan 27, 2016 12:49 am

I have same problem.
Code operate well for 6 hour. but message show below

piBoardRev: Unable to determine board revision from /proc/cpuinfo
-> Unable to open /proc/cpuinfo
-> You may want to check:
-> http://www.raspberrypi.org/phpBB3/viewt ... 10#p184410

my board info -----

pi@raspberrypi /boot $ cat /proc/cpuinfo
processor : 0
model name : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS : 2.00
Features : half thumb fastmult vfp edsp java tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xb76
CPU revision : 7

Hardware : BCM2708
Revision : 0010
Serial : 00000000c0c710d2

User avatar
gordon@drogon.net
Posts: 2020
Joined: Tue Feb 07, 2012 2:14 pm
Location: Devon, UK
Contact: Website

Re: Revision 0000 - gpio not working

Wed Jan 27, 2016 7:13 am

girin wrote:I have same problem.
Code operate well for 6 hour. but message show below

piBoardRev: Unable to determine board revision from /proc/cpuinfo
You are also calling wiringPiSetup() more than once per program run. This is a coding error on your part. Don't do it.

-Gordon
--
Gordons projects: https://projects.drogon.net/

girin
Posts: 4
Joined: Mon Dec 22, 2014 4:12 am

Re: Revision 0000 - gpio not working

Wed Jan 27, 2016 8:48 am

girin wrote:I have same problem.
Code operate well for 6 hour. but message show below

piBoardRev: Unable to determine board revision from /proc/cpuinfo
-> Unable to open /proc/cpuinfo
-> You may want to check:
-> http://www.raspberrypi.org/phpBB3/viewt ... 10#p184410

my board info -----

pi@raspberrypi /boot $ cat /proc/cpuinfo
processor : 0
model name : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS : 2.00
Features : half thumb fastmult vfp edsp java tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xb76
CPU revision : 7

Hardware : BCM2708
Revision : 0010
Serial : 00000000c0c710d2

This Problem look like about program code.

User avatar
gordon@drogon.net
Posts: 2020
Joined: Tue Feb 07, 2012 2:14 pm
Location: Devon, UK
Contact: Website

Re: Revision 0000 - gpio not working

Wed Jan 27, 2016 9:58 am

girin wrote:
girin wrote:I have same problem.
Code operate well for 6 hour. but message show below

piBoardRev: Unable to determine board revision from /proc/cpuinfo
-> Unable to open /proc/cpuinfo
-> You may want to check:
-> http://www.raspberrypi.org/phpBB3/viewt ... 10#p184410

my board info -----

pi@raspberrypi /boot $ cat /proc/cpuinfo
processor : 0
model name : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS : 2.00
Features : half thumb fastmult vfp edsp java tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xb76
CPU revision : 7

Hardware : BCM2708
Revision : 0010
Serial : 00000000c0c710d2

This Problem look like about program code.
That error comes from the function: piBoardRev(). This is called by the various wiringPiSetup() functions. The wiringPiSetup() function should only be called once per program run. If you call it in a loop then you eventually run out of file handles resulting in some weird errors. The tell-tale for me here is your comment: Code operate well for 6 hour. but message show below That suggests to me that either (a) you wait 6 hours before calling wiringPiSetup (highly unlikely!) or (b) you're calling it in a loop and eventually you run out of resources. You need to fix your code. Move the wiringPiSetup call to the start of your code.

The next release of wiringPi will check for this.

-Gordon
--
Gordons projects: https://projects.drogon.net/

Return to “Interfacing (DSI, CSI, I2C, etc.)”