0

CircuitPython & Cricket project error
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

CircuitPython & Cricket project error

by Maggiieek on Mon Feb 10, 2020 11:53 pm

Hi,

I am working on the Make It Hot or Cold project (https://learn.adafruit.com/make-it-hot-or-cold). Nothing seems to be happening when I plug everything in and run the code. I have tested each component individually to make sure it is not a hardware issue (everything works). When I run the code in Mu I get the error below. I was wondering if anyone else has had this issue before or if someone could explain what this error means?

Traceback (most recent call last):
File "code.py", line 4, in <module>
File "adafruit_crickit.py", line 65, in <module>
File "adafruit_motor/stepper.py", line 60, in <module>
MemoryError: memory allocation failed, allocating 136 bytes

Thanks so much in advance!
Maggie

Maggiieek
 
Posts: 2
Joined: Mon Feb 10, 2020 11:46 pm

Re: CircuitPython & Cricket project error

by V2man on Tue Feb 11, 2020 1:59 am

Do you have this in your CIRCUITPY/boot_out.txt?
Adafruit CircuitPython 5.0.0-beta.5 on 2020-02-05;
Adafruit CircuitPlayground Express with Crickit libraries with samd21g18

If not you need to download CircuitPython 5.0.0-beta.5 uf2 file for CircuitPlaygroundExpress and Crickit found here https://circuitpython.org/board/circuitplayground_express_crickit/
Then copy the uf2 to CPLAYBOOT drive.

CPX + Crickit, Bundle Version 5.x 02/06/2020 libraries, no heating pad
Code runs without error if you have correct uf2 installed.
This is the code.py output in REPL window of MU:
Heating Pad Demo
(145.172, 0.322754)
(92.0951, 0.340088)
(144.012, 0.341064)
(144.737, 0.340576)
(145.462, 0.26709)
(144.302, 0.339355)
(145.172, 0.345703)
(145.317, 0.34375)

V2man
 
Posts: 703
Joined: Mon Dec 03, 2018 12:38 am

Re: CircuitPython & Cricket project error

by adafruit_support_carter on Tue Feb 11, 2020 6:48 pm

The latest stable firmware should also be OK, which is currently 4.1.2. But link above is correct place to download:
https://circuitpython.org/board/circuit ... s_crickit/

Note that there are two CircuitPython firmwares available for the CPX. The other one is here:
https://circuitpython.org/board/circuit ... d_express/

When you are working with Crickit, you'll want the firmware from the first link. The one that has + Crickit in the title.

If you don't know what you currently have loaded, then as suggested above, you can check your CIRCUITPY/boot_out.txt file.

adafruit_support_carter
 
Posts: 14475
Joined: Tue Nov 29, 2016 2:45 pm

Re: CircuitPython & Cricket project error

by Maggiieek on Tue Feb 11, 2020 7:01 pm

Thanks so much for your help! I had not installed the "+ Crickit". I've got it working now!!

Maggiieek
 
Posts: 2
Joined: Mon Feb 10, 2020 11:46 pm

Please be positive and constructive with your questions and comments.