Hello all,
I was using the particle argon for my product for more than one week and now the RAM space is running out. Is there any option to clear the RAM while running? Could you please provide suggestions to reduce RAM usage?
Thanks
Hello all,
I was using the particle argon for my product for more than one week and now the RAM space is running out. Is there any option to clear the RAM while running? Could you please provide suggestions to reduce RAM usage?
Thanks
You could call System.reset()
from time to time to recover the “lost” space.
But when you lose RAM gradually I’d suspect your code is suffering from heap fragmentation (e.g. “overuse” of String
objects) and maybe also some other memory leak.
To better advise we’d need to see your code.
Hi, there is this Out of memory handler that you can use.
Like ScruffR mentioned, this will only address the symptoms and not the cause.
There’s also a guide for optimizing memory usage:
https://docs.particle.io/firmware/best-practices/code-size-tips/
@ScruffR , @gusgonnet , @rickkas7 Thanks everyone for your support.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.