Invalid GPIO pin specified

info about ReSpeaker series products

Moderators: lily.li, violet, seth.welday

tonai98
Pre-kindergarten
Pre-kindergarten
Posts: 1
Joined: Thu Jun 14, 2018 8:16 pm

Invalid GPIO pin specified

Post by tonai98 » Thu Jun 14, 2018 8:21 pm

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

thomas-bergwinkl
Pre-kindergarten
Pre-kindergarten
Posts: 3
Joined: Wed Mar 21, 2018 1:06 am

Re: Invalid GPIO pin specified

Post by thomas-bergwinkl » Fri Jun 15, 2018 2:56 am

Pin 0 is wrong, 12 should be the right GPIO pin. See the pixel_ring_server code.

hong.jiang
Staff
Staff
Posts: 200
Joined: Tue Apr 17, 2018 11:03 am

Re: Invalid GPIO pin specified

Post by hong.jiang » Fri Jun 15, 2018 9:24 am

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.

mark216
Pre-kindergarten
Pre-kindergarten
Posts: 4
Joined: Wed Mar 21, 2018 1:17 am

Re: Invalid GPIO pin specified

Post by mark216 » Mon Jun 18, 2018 3:22 am

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.

hong.jiang
Staff
Staff
Posts: 200
Joined: Tue Apr 17, 2018 11:03 am

Re: Invalid GPIO pin specified

Post by hong.jiang » Tue Jun 19, 2018 10:20 am

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

kshogan
Pre-kindergarten
Pre-kindergarten
Posts: 7
Joined: Tue Jun 19, 2018 10:21 am

Re: Invalid GPIO pin specified

Post by kshogan » Tue Jun 19, 2018 10:23 am

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

hong.jiang
Staff
Staff
Posts: 200
Joined: Tue Apr 17, 2018 11:03 am

Re: Invalid GPIO pin specified

Post by hong.jiang » Tue Jun 19, 2018 10:30 am

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

seeedstudio28
Pre-kindergarten
Pre-kindergarten
Posts: 10
Joined: Wed Nov 16, 2011 3:04 am

Re: Invalid GPIO pin specified

Post by seeedstudio28 » Sat Jul 14, 2018 12:34 am

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.

seeedstudio28
Pre-kindergarten
Pre-kindergarten
Posts: 10
Joined: Wed Nov 16, 2011 3:04 am

Re: Invalid GPIO pin specified

Post by seeedstudio28 » Sat Jul 14, 2018 3:51 am

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.

hong.jiang
Staff
Staff
Posts: 200
Joined: Tue Apr 17, 2018 11:03 am

Re: Invalid GPIO pin specified

Post by hong.jiang » Mon Jul 16, 2018 12:10 pm

Hi Chris,

We will release a 6/10 image flasher by end of July. thanks.

Seeed techsupport team
Bill

Post Reply