Micropython PICO memory management #14060
Unanswered
mastraa
asked this question in
Using MicroPython
Replies: 1 comment 1 reply
-
If you are doing this via Thonny, the results are essentially random. Something inside the Thonny communications messes these numbers up. I got bitten by this as one of my earliest encounters with mpy on Pico. If you aren't using Thonny, you might want to give more specific examples. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Dear all,
I need some holep with PICO memory management using MicroPython.
I can't understand something:
I'm using gc.mem_alloc(), gc.mem_free() and gc.collect() toi understand how my action will influence memory usage. There's something I cannot understand.
If I call del function to delete variable no changes in memory allocated and free seems to happen. Even using gc.collect() function in between.
How do they work and how I can clean some memory between two loop for example?
PS: i get a general Memory Error even if I think memory is quite free...What could it be?
Thank you for helping
Andrea
Beta Was this translation helpful? Give feedback.
All reactions