mallinfo or malloc_stats might shed some light. Also, see things like PICO_USE_STACK_GUARDS and PICO_MALLOC_PANIC in Chapter 5. SDK configuration of Raspberry Pi Pico-series C/C++ SDK.
Statistics: Posted by carlk3 — Fri Jan 17, 2025 11:16 pm