ESP32 Memory Management: floats and MALLOC_CAP_32BIT
We can dynamically allocate memory with malloc() or use the dedicated ESP32 specific functions. In general we need to use byte aligned allocations (MALLOC_CAP_8BIT). When we have used up all available memory space, we still have 4 byte aligned memory available that we can use to store arrays of int32_t data. Unfortunately we can not use this to store floats. Here is the info from the documentation: Please note that on ESP32 series chips, MALLOC_CAP_32BIT Read more






