Detecting state of GPIO pins during boot up

62 views
Skip to first unread message

Rao Gobburu

unread,
Mar 28, 2017, 3:29:12 PM3/28/17
to BeagleBoard
Hi folks
I hope that I am posting to the correct group.... apologies if this is the wrong place.
We are creating a system based on the beagleboard black. We would like to implement a "Factory Reset". i.e. if I hold down a switch for a long period of time, say around 10 seconds, then we want to completely reset the system. 
Essentially the Reset pin is tied to one of the GPIO pins. So the GPIO follows the Reset pin. 
We would like to detect if the GPIO pin is still low about 10 seconds after the Reset has been asserted.
The issue is that this is the time when the system is still booting up. I am not sure how one could check on the status of the pin during the boot up.
Any ideas?
Thanks a lot
Rao



Micka

unread,
Mar 29, 2017, 5:26:08 AM3/29/17
to BeagleBoard
create a systemd service that will launch a bash code that check the gpio . If the gpio is is at value 1, switch a led on to tell the user to remove his finger. After detecting the factory reset, do what you want in your system.....

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/8dac92bb-1d9e-462b-8955-11bfc00f7706%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Rao Gobburu

unread,
Apr 3, 2017, 2:03:44 PM4/3/17
to beagl...@googlegroups.com, Micka
Hi Micka
Thanks a lot for the suggestion..... 
I am going to try it out and report back.
Many thanks
Rao



On Wed, Mar 29, 2017 at 2:25 AM, Micka <micka...@gmail.com> wrote:
create a systemd service that will launch a bash code that check the gpio . If the gpio is is at value 1, switch a led on to tell the user to remove his finger. After detecting the factory reset, do what you want in your system.....

Le mar. 28 mars 2017 à 21:29, Rao Gobburu <rao.g...@gmail.com> a écrit :
Hi folks
I hope that I am posting to the correct group.... apologies if this is the wrong place.
We are creating a system based on the beagleboard black. We would like to implement a "Factory Reset". i.e. if I hold down a switch for a long period of time, say around 10 seconds, then we want to completely reset the system. 
Essentially the Reset pin is tied to one of the GPIO pins. So the GPIO follows the Reset pin. 
We would like to detect if the GPIO pin is still low about 10 seconds after the Reset has been asserted.
The issue is that this is the time when the system is still booting up. I am not sure how one could check on the status of the pin during the boot up.
Any ideas?
Thanks a lot
Rao



--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscribe@googlegroups.com.

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/GtRcBUvzGhc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAF%2BMRt%3D93mnAnSSebhAjJnO5kL8857%2BfHatqiweKGdUVvziZkg%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages