I have a ChibiOS application where I'm using dynamic memory allocation via malloc().
However, I observed that 100% of the time I call malloc(), it returns NULL. I have confirmed that:
- The microcontroller memory is not full
- The error also occurs for size-1 malloc calls, so the memory chunk size is not the cause of the issues.
errnois alwaysENOMEMafter themalloc()call
How can I resolve this issue?