0

Feather M0 Express Memory Errors
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Feather M0 Express Memory Errors

by Sparklebeard on Sat Apr 10, 2021 8:15 pm

Hello,

This might be behaving correctly I wanted to ask anyway in case I am doing something wrong.

I've got an M0 Express feather and I am trying to import the DS3232 library and the 7 segment library.

Code: Select all | TOGGLE FULL SIZE
import board
import busio
from adafruit_ds3231 import DS3231
from adafruit_ht16k33.segments import Seg7x4


I hit a memory error right on the import line for the segment display
Code: Select all | TOGGLE FULL SIZE
  File "code.py", line 4, in <module>
  File "adafruit_ht16k33/segments.py", line 12, in <module>
MemoryError:


I know that the M0 boards are memory constrained but I was surprised that this doesn't work. Are these significantly bigger libraries than they seem on the surface? Is there a workaround to get these working together or should I do it in Arduino instead?

Sparklebeard
 
Posts: 22
Joined: Thu Feb 11, 2021 12:09 am

Re: Feather M0 Express Memory Errors

by jerryn on Sun Apr 11, 2021 10:31 am

Are you using the .mpy versions of the libraries from the 6.x bundle? They require less memory than the .py versions when being imported.
https://circuitpython.org/libraries

jerryn
 
Posts: 1466
Joined: Sat Sep 14, 2013 9:05 am

Re: Feather M0 Express Memory Errors

by Sparklebeard on Sun Apr 11, 2021 2:26 pm

I believe so. I have attached the library files currently on the device, copied from the current bundle release
Attachments
Screen Shot 2021-04-11 at 11.22.55 AM.png
Screen Shot 2021-04-11 at 11.22.55 AM.png (110.37 KiB) Viewed 41 times

Sparklebeard
 
Posts: 22
Joined: Thu Feb 11, 2021 12:09 am

Re: Feather M0 Express Memory Errors

by jerryn on Sun Apr 11, 2021 3:14 pm

Sadly, I don't think you are doing anything wrong. I tried it on mine and get the same results.
I don't think this libraries will fit into an M0 express.

jerryn
 
Posts: 1466
Joined: Sat Sep 14, 2013 9:05 am

Please be positive and constructive with your questions and comments.