We’re consistently getting Memory Allocation Failed and MemoryErrors when we try to run our full code. When we remove different chunks of code we’re able to run our code again. For example, If we remove chunk #2, chunk #1 runs and vice versa. So clearly our cod vve runs on it’s own. Right now we’re thinking that our code just isn’t fitting into memory. Our code with comments is 24kB. Our code with comments stripped is 11kB. How can we confirm or deny this suspicion and if you don’t think that’s the case then how else can we resolve these memory errors?
On this note - how can we accomplish some type of garbage collection in micropython? We have a lot of stray variables and objects that we’re creating that we don’t see any apparent way to remove from memory after they’re no longer needed? What are your thoughts?