-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MemoryError: memory allocation failed on ATSAMD21 M0 boards #10
Comments
Alright, after banging my head against the wall all day trying to get this library working on my Trinket M0, I rolled back version 1.1.0. I get similar isses as you in my MU terminal, but after rolling back, I FINALLY have at least a functioning example program giving me SOMETHING in the terminal that isnt errors. Not sure entirely what changed between the 2 versions, but something is wrong with SAMD21 support EDIT: After another hour of troubleshooting, I've run into a new error finally! I noticed that the init.mpy file had 3kb size which I thought was odd. Pretty sure somewhere in this repo it said that file needed to be there and it needed to be empty. So I stole the one from the adafruit bus dependency. Now it's just spitting out:
|
More info in case it's useful to anyone:
So theres PLENTY of memory left. |
So sorry for the delayed response (i didn't get notified for some reason) |
Coincidentally, I've ordered some M0 boards (express and trinket), so maybe I'll get around to exploring this |
I started a @SeeTheBridges
Noteyou could use a blank EDIT links removed as development noted here is now released as of v1.2.0 |
original revisions (on working solutionSo I created a file specifically for the M0 called EDIT links removed as development noted here is now released as of v1.2.0 |
during additional testing, I kept running into "Memory Errors" and/or unresponsive freezing situations. My findingsOf the 32KB of RAM on the M0, the user code space is limited to about 20KB (after ConclusionUse the Arduino IDE (or platformIO) to program the M0 in C++. Besides application speed being slightly faster, you don't have to contend with CircuitPython's "OS"/firmware hogging up a sizable chunk of RAM. I personally recommend TMRh20's Arduino library for interfacing with the nRF24L01. I'm sorry if this is not the result you were hoping to get. Due to CircuitPython's occupation in RAM, this issue cannot be addressed/fixed, and I have to close it out. EDIT some links removed as development noted here is now released as of v1.2.0 |
@markt22 @SeeTheBridges You can try out the new |
Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.
Press any key to enter the REPL. Use CTRL-D to reload.
Adafruit CircuitPython 4.1.2 on 2019-12-18; Adafruit ItsyBitsy M0 Express with samd21g18
The text was updated successfully, but these errors were encountered: