We use Mongoose OS 2.12.1 on ESP32. In the console we see following messages:
[Apr 10 12:43:01.909] mgos_mongoose.c:66 New heap free LWM: 136596 [Apr 10 12:43:02.133] mgos_mongoose.c:66 New heap free LWM: 135448 [Apr 10 12:43:04.565] mgos_mongoose.c:66 New heap free LWM: 134620 [Apr 10 12:43:04.677] mgos_mongoose.c:66 New heap free LWM: 134232
The number decreases to some value and then app crashes dumping core but gdb shows no stacktrace.
Sometimes we see message about corrupted heap.
MGOS_ENABLE_CALL_TRACE build vars but console output is not verbose as mentioned in the doc.
How can we see the stack trace of last memory allocation attempt or get the memory dump for analysis?
Also is there a way to dump memory on demand?
And how can we disable dumping core so that device restarts as quickly as possible? This would be handy for production.
Thanks in advance.