asyncio limited subset on Trinket M0 #12556
-
I downloaded MicroPython (from here) onto my Adafruit Trinket M0, and was hoping to use asyncio. Unfortunately, I could not find the
However, I did find a
Am I missing something obvious? Does the port for this device not have a fully functional asyncio implementation? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
So it looks like the asyncio module is indeed not being built. The I tried to change this locally and build using a samd21 manifest that looked like this:
During build, however, I received this error message:
I understand this as there just isn't enough flash memory to store the micropython installation that includes asyncio. Is my understanding correct? |
Beta Was this translation helpful? Give feedback.
-
@markhildreth Just to follow up on this point -- But it does mean that you could actually install asyncio to the filesystem. |
Beta Was this translation helpful? Give feedback.
Yes, you are right. You could increase the size for the code. Then, the file system will be smaller. The code size is a setting in mpcongigboard.mk, or you can define it at the command line during build. it is MICROPY_HW_CODESIZE.