Garbage Collector breaks my program

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
Ephreal
Posts: 28
Joined: Tue Jan 15, 2019 1:41 pm

Garbage Collector breaks my program

Post by Ephreal » Wed Jan 05, 2022 1:40 pm

Hi

I have a custom build for a NIOS2 softcore architecture. I have run into a problem now, because the app keeps growing, that it stalls after the garbage collector has been executed either manually or automatically. I have a bit of a difficulty debugging why this is happening.
Also, I'm a bit unsure what version of micropython were are using. I know it was updated about a year ago.

I can also see that the GC is executed way before I run out of heap memory. like 25% usages or close to it.

Any insight would be appreciated.


Regards

Post Reply