Post by devben on Aug 3, 2021 17:18:31 GMT -8
So I installed circuit python on my teensy 4.1 for ease of use and tried getting my gameduino working on it, everything works great with the library i got from the community circuitpy library bundle until I run
"gd.init()" in the example code, it spits out this
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "bteve/gameduino.py", line 189, in init
File "bteve/gameduino.py", line 216, in standard_startup
File "bteve/gameduino.py", line 275, in finish
File "bteve/gameduino.py", line 253, in reserve
File "bteve/gameduino.py", line 249, in getspace
CoprocessorException:
I think 'Oh ok, it gave an error at "get space", that must have something to do with the sd card.'
I try to plug in the sd card to my gameduino while i already had a sd card in my teensy 4.1, and it gave this error after running gd = eve.Gameduino():
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "bteve/gameduino_circuitpython.py", line 51, in __init__
File "bteve/gameduino_circuitpython.py", line 62, in setup_sd
OSError: [Errno 19] Unsupported operation
I try googling around and read this from the circuitpython github:
We don't yet support sdioio on the mimxrt10xx series. We'd be happy to see someone contribute an implementation to the core.
(https://github.com/adafruit/circuitpython/issues/4020)
So I had the smart idea of removing the sd card from the teensy 4.1 slot while the gameduino had an sd card in it (gd = eve.Gameduino()):
(Look Familiar?)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "bteve/gameduino_circuitpython.py", line 51, in __init__
File "bteve/gameduino_circuitpython.py", line 62, in setup_sd
OSError: [Errno 19] Unsupported operation
So then I removed the sd card from both devices and got this on gd.init()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "bteve/gameduino.py", line 189, in init
File "bteve/gameduino.py", line 216, in standard_startup
File "bteve/gameduino.py", line 275, in finish
File "bteve/gameduino.py", line 253, in reserve
File "bteve/gameduino.py", line 249, in getspace
CoprocessorException:
As far as I can tell it looks like the teensy 4.1 isnt working properly with the circuitpython library.
By the way I'm using fat32 formatted cards (I tried 4gb and 8gb different brands)
If anyone can help me with this it would really be appreciated
Also side note the gameduino library for circuit python really needs a way to deinit / stop hogging the io pins incase you are trying to debug and dont want to reboot the microcontroller a lot
In my case I had to go into program mode (hit the button on the teensy) and then click reboot and relog into my console which was kinda a pain. I know i could have unplugged the usb cable and replugged it in but I figured it was safer to do it this way due to the fact that there are SD cards involved which can get corrupted
TLDR: My teensy 4.1 doesnt work with a gameduino 3 due to an issue with presumably the sd card and i need help
EDIT:
This is running on circuit python v6.3.0
Circuit python 7.5-7.2 wont run on teensy 4.1 and circuit py 7.1 throws an error when trying to run the library that its not updated
I tried circuitpython 6.2 but it has the same issues
"gd.init()" in the example code, it spits out this
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "bteve/gameduino.py", line 189, in init
File "bteve/gameduino.py", line 216, in standard_startup
File "bteve/gameduino.py", line 275, in finish
File "bteve/gameduino.py", line 253, in reserve
File "bteve/gameduino.py", line 249, in getspace
CoprocessorException:
I think 'Oh ok, it gave an error at "get space", that must have something to do with the sd card.'
I try to plug in the sd card to my gameduino while i already had a sd card in my teensy 4.1, and it gave this error after running gd = eve.Gameduino():
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "bteve/gameduino_circuitpython.py", line 51, in __init__
File "bteve/gameduino_circuitpython.py", line 62, in setup_sd
OSError: [Errno 19] Unsupported operation
I try googling around and read this from the circuitpython github:
We don't yet support sdioio on the mimxrt10xx series. We'd be happy to see someone contribute an implementation to the core.
(https://github.com/adafruit/circuitpython/issues/4020)
So I had the smart idea of removing the sd card from the teensy 4.1 slot while the gameduino had an sd card in it (gd = eve.Gameduino()):
(Look Familiar?)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "bteve/gameduino_circuitpython.py", line 51, in __init__
File "bteve/gameduino_circuitpython.py", line 62, in setup_sd
OSError: [Errno 19] Unsupported operation
So then I removed the sd card from both devices and got this on gd.init()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "bteve/gameduino.py", line 189, in init
File "bteve/gameduino.py", line 216, in standard_startup
File "bteve/gameduino.py", line 275, in finish
File "bteve/gameduino.py", line 253, in reserve
File "bteve/gameduino.py", line 249, in getspace
CoprocessorException:
As far as I can tell it looks like the teensy 4.1 isnt working properly with the circuitpython library.
By the way I'm using fat32 formatted cards (I tried 4gb and 8gb different brands)
If anyone can help me with this it would really be appreciated
Also side note the gameduino library for circuit python really needs a way to deinit / stop hogging the io pins incase you are trying to debug and dont want to reboot the microcontroller a lot
In my case I had to go into program mode (hit the button on the teensy) and then click reboot and relog into my console which was kinda a pain. I know i could have unplugged the usb cable and replugged it in but I figured it was safer to do it this way due to the fact that there are SD cards involved which can get corrupted
TLDR: My teensy 4.1 doesnt work with a gameduino 3 due to an issue with presumably the sd card and i need help
EDIT:
This is running on circuit python v6.3.0
Circuit python 7.5-7.2 wont run on teensy 4.1 and circuit py 7.1 throws an error when trying to run the library that its not updated
I tried circuitpython 6.2 but it has the same issues