You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm encountering a frustrating issue while working with Thonny, MicroPython and my Adafruit AS7341. I installed Adafruit Blinka to use CircuitPython libraries for the Adafruit AS7341 color sensor in MicroPython. I added all of the necessary CircuitPython dependencies, but whenever I try to run my code, I get the following error:
Traceback (most recent call last):
File "<stdin>", line 39, in <module>
File "/lib/busio.py", line 36, in __init__
File "/lib/busio.py", line 139, in init
File "/lib/adafruit_blinka/microcontroller/rp2040/i2c.py", line 26, in __init__
File "/lib/adafruit_blinka/microcontroller/generic_micropython/__init__.py", line 22, in __repr__
MemoryError: memory allocation failed, allocating 1280 bytes
PROBLEM IN THONNY'S BACK-END: Exception while handling 'Run' (thonny.plugins.micropython.mp_back.ManagementError: Command output was not empty).
See Thonny's backend.log for more info.
You may need to press "Stop/Restart" or hard-reset your MicroPython device and try again.
Process ended with exit code 1.
Here are all of the files currently uploded to my Pico W:
The Raspberry Pi Pico W has just 848.0 kB of storage space in total, and after I installed the necessary CircuitPython dependencies, I still have 132 kB of free space left. However, I am confused as to why Thonny tries to allocate over 1 MB worth of storage to install Adafruit Blinka.
I've tried pressing "Stop/Restart" and hard-resetting my Pico, but the issue persists. I even tried reinstalling Thonny and the MicroPython firmware as well. Has anyone else faced this problem? Any suggestions on how to resolve it would be greatly appreciated!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi everyone,
I'm encountering a frustrating issue while working with Thonny, MicroPython and my Adafruit AS7341. I installed Adafruit Blinka to use CircuitPython libraries for the Adafruit AS7341 color sensor in MicroPython. I added all of the necessary CircuitPython dependencies, but whenever I try to run my code, I get the following error:
Here are all of the files currently uploded to my Pico W:
The Raspberry Pi Pico W has just 848.0 kB of storage space in total, and after I installed the necessary CircuitPython dependencies, I still have 132 kB of free space left. However, I am confused as to why Thonny tries to allocate over 1 MB worth of storage to install Adafruit Blinka.
I've tried pressing "Stop/Restart" and hard-resetting my Pico, but the issue persists. I even tried reinstalling Thonny and the MicroPython firmware as well. Has anyone else faced this problem? Any suggestions on how to resolve it would be greatly appreciated!
Thanks in advance for your help!
Beta Was this translation helpful? Give feedback.
All reactions