Invalid GPIO pin specified
Moderators: lily.li, violet, seth.welday
Invalid GPIO pin specified
Hi,
I just purchased the board (V2) and trying to mess around.
Followed the instructions and playing with GPIO from Python, however, it gave me "Invalid GPIO pin specified" error.
>>> import mraa
>>> x = mraa.Gpio(0)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/dist-packages/mraa.py", line 755, in __init__
this = _mraa.new_Gpio(pin, owner, raw)
ValueError: Invalid GPIO pin specified
>>>
This is the list of GPIO.
respeaker@v2:~$ mraa-gpio list
00 GPIO91: GPIO
01 VCC:
02 GPIO43: GPIO
03 GPIO127: GPIO
04 GPIO17: GPIO
05 GPIO67: GPIO
06 GND:
07 GPIO13: GPIO
08 I2C2_SCL: I2C
09 I2C2_SDA: I2C
10 VCC:
11 GND:
12 GPIO66: GPIO
respeaker@v2:~$
Could anyone advice please?
Thanks
I just purchased the board (V2) and trying to mess around.
Followed the instructions and playing with GPIO from Python, however, it gave me "Invalid GPIO pin specified" error.
>>> import mraa
>>> x = mraa.Gpio(0)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/dist-packages/mraa.py", line 755, in __init__
this = _mraa.new_Gpio(pin, owner, raw)
ValueError: Invalid GPIO pin specified
>>>
This is the list of GPIO.
respeaker@v2:~$ mraa-gpio list
00 GPIO91: GPIO
01 VCC:
02 GPIO43: GPIO
03 GPIO127: GPIO
04 GPIO17: GPIO
05 GPIO67: GPIO
06 GND:
07 GPIO13: GPIO
08 I2C2_SCL: I2C
09 I2C2_SDA: I2C
10 VCC:
11 GND:
12 GPIO66: GPIO
respeaker@v2:~$
Could anyone advice please?
Thanks
-
- Pre-kindergarten
- Posts: 3
- Joined: Wed Mar 21, 2018 1:06 am
Re: Invalid GPIO pin specified
Pin 0 is wrong, 12 should be the right GPIO pin. See the pixel_ring_server code.
-
- Staff
- Posts: 200
- Joined: Tue Apr 17, 2018 11:03 am
Re: Invalid GPIO pin specified
Dear customer:
I have got your question. Please use this two firmware (https://drive.google.com/file/d/1yqH4nj ... 2szro/view) (https://drive.google.com/file/d/10Cqqt_ ... dOM23/view).And we are updating the wiki.
I have got your question. Please use this two firmware (https://drive.google.com/file/d/1yqH4nj ... 2szro/view) (https://drive.google.com/file/d/10Cqqt_ ... dOM23/view).And we are updating the wiki.
Re: Invalid GPIO pin specified
The linked firmware won't even boot on my ReSpeaker Core v2.
At power up I get a green light, followed by activity on both blue lights, a single blink of three red lights near mics 2,3,4 on the back of the board -- then the cycle just repeats. I get no serial port presented on the OTG connection and no network on my wired ethernet port.
-M.
At power up I get a green light, followed by activity on both blue lights, a single blink of three red lights near mics 2,3,4 on the back of the board -- then the cycle just repeats. I get no serial port presented on the OTG connection and no network on my wired ethernet port.
-M.
-
- Staff
- Posts: 200
- Joined: Tue Apr 17, 2018 11:03 am
Re: Invalid GPIO pin specified
Hi Mark,
We tested it work well. Please download https://github.com/SeeedDocument/forum_ ... .sha256sum to verify the image. If it is good, please try to re-burn the SD card and let us know the result. thanks.
Seeed Techsupport Team
Bill
We tested it work well. Please download https://github.com/SeeedDocument/forum_ ... .sha256sum to verify the image. If it is good, please try to re-burn the SD card and let us know the result. thanks.
Seeed Techsupport Team
Bill
Re: Invalid GPIO pin specified
Can we get just the changees needed instead of a complete image? Much work to re-install all packages and customizations.
We get same issue, and our pixel_ring_server is using gpio12
We get same issue, and our pixel_ring_server is using gpio12
-
- Staff
- Posts: 200
- Joined: Tue Apr 17, 2018 11:03 am
Re: Invalid GPIO pin specified
Hi, we optimized more than 60% of code from uboot to kernal to improve the performance on the new image. We suggest change to new firmware. thanks for understanding.
Seeed techsupport team
Bill
Seeed techsupport team
Bill
-
- Pre-kindergarten
- Posts: 10
- Joined: Wed Nov 16, 2011 3:04 am
Re: Invalid GPIO pin specified
Any chance there is a "flasher" image of this version of the OS?
I have been able to find a earlier versions on your various one drive/google drive/random other locations that the docs point you to, but have as of yet found one for the 20180610 version.
chris.
I have been able to find a earlier versions on your various one drive/google drive/random other locations that the docs point you to, but have as of yet found one for the 20180610 version.
chris.
-
- Pre-kindergarten
- Posts: 10
- Joined: Wed Nov 16, 2011 3:04 am
Re: Invalid GPIO pin specified
WARNING: While this looks like it should work it doesn't
Looks like any image can be made a 'flasher' image simply by booting from the sd card with the image you want written to it (either iot or lxqt) and then running /opt/scripts/init-eMMC-flasher-respeaker.sh as root...
Thats all the image builder script does when it creates a flasher image. It just auto executes that script on boot.
This also exposes a nice way to create an "image" easily. Just boot from the SD card, do all your work to get it the way you want, and then use it to flash each respeaker you want.
UPDATE: Just did that on one of my core v2's and sadly while the script runs, and it looks like it works, it doesn't result in a bootable device after the fact.
So I'll stick to booting off a SD card for now, as all the flasher images don't actually have working a GPIO pin for the LED enable pin.
And my question still stands Seeed. Is there a more update to date functional flasher image?
chris.
Looks like any image can be made a 'flasher' image simply by booting from the sd card with the image you want written to it (either iot or lxqt) and then running /opt/scripts/init-eMMC-flasher-respeaker.sh as root...
Thats all the image builder script does when it creates a flasher image. It just auto executes that script on boot.
This also exposes a nice way to create an "image" easily. Just boot from the SD card, do all your work to get it the way you want, and then use it to flash each respeaker you want.
UPDATE: Just did that on one of my core v2's and sadly while the script runs, and it looks like it works, it doesn't result in a bootable device after the fact.
So I'll stick to booting off a SD card for now, as all the flasher images don't actually have working a GPIO pin for the LED enable pin.
And my question still stands Seeed. Is there a more update to date functional flasher image?
chris.
-
- Staff
- Posts: 200
- Joined: Tue Apr 17, 2018 11:03 am
Re: Invalid GPIO pin specified
Hi Chris,
We will release a 6/10 image flasher by end of July. thanks.
Seeed techsupport team
Bill
We will release a 6/10 image flasher by end of July. thanks.
Seeed techsupport team
Bill