PEC Controller Heap full
One moth ago I had the problem that the heap of my PEC controller was full. I was not able to download anymore until i enlarged the heap from 16mb to 32mb.
Now, one moth later and just some little changes in the controller, there is again the message "the heap is full"
What could be the problem? What is stored in the heap?
> "What is stored in the heap?"
Basically everything that you program. Application code, variables etc
> "What could be the problem?"
If the heap size is growing but the code doesnt change you have a "memory leak". It isnt really possible to say whether this is from your application code or the firm ware - though of course ultimately it comes from the firmware, because your application has no direct control over memory.
The first thing to do check the memory usage, cold start the controller and check the memory usage again.
Then monitor the memory usage closely. Start monitoring every few mins, if it isnt growing then check every few hours, then every day etc. You especially need to monitor the memory usage every time you go online and every time you download - even if your down loaded changes are tiny.
I have experienced similar issues before. Even though the changes to the application are quite small, repeated downloading several times per hour for a few weeks - ie during commissioning - did cause memory creep. Cold starting the controller resolved this problem.
If the memory is still steadily ncreasing then you should also open a support line case for this issue.