Feather M0 Express Memory allocation error

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Bluegoldfish
 
Posts: 9
Joined: Wed Feb 06, 2013 5:30 am

Feather M0 Express Memory allocation error

Post by Bluegoldfish »

I am trying to run the simple example of the TLC59711 LED driver using a Feather M0 Express.

The latest release of Circuitpython has been installed along with the latest available version of the adafruit_tlc59711.mpy library.

I am getting the following error immediately after a reboot of the vboard...

Code: Select all

Adafruit CircuitPython 7.3.1 on 2022-06-22; Adafruit Feather M0 Express with samd21g18
>>> import board
>>> import busio
>>> import digitalio
>>> import adafruit_tlc59711
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "adafruit_tlc59711.py", line 958, in <module>
  File "adafruit_tlc59711.py", line 1014, in TLC59711AutoShow
MemoryError: memory allocation failed, allocating 64 bytes
>>> 
Please can anyone offer a solution to this problem? Any help will be appreciated.

User avatar
dastels
 
Posts: 15829
Joined: Tue Oct 20, 2015 3:22 pm

Re: Feather M0 Express Memory allocation error

Post by dastels »

What's happening is that the code won't fit into memory. The SAMD21 just doesn't have much RAM. It's a big problem in this case since you haven't even gotten to your application code yet! It choking on just the TLC59711 library, the others are in the runtime. Switching to a SAMD51 board (e.g. Feather M4 Express) will solve the problem.

Dave

User avatar
Bluegoldfish
 
Posts: 9
Joined: Wed Feb 06, 2013 5:30 am

Re: Feather M0 Express Memory allocation error

Post by Bluegoldfish »

Thanks for the rapid reply. I'll order a Feather M4 Express ans see how I get on.

Regards,

Chris

User avatar
dastels
 
Posts: 15829
Joined: Tue Oct 20, 2015 3:22 pm

Re: Feather M0 Express Memory allocation error

Post by dastels »

Cool. It should do well for you. It's a very nice CircuitPython platform.

Dave

Locked
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”