Firmware · Memory and DMA

The heap and fragmentation

Dynamic memory allocation can fail on a small device even when the total free space looks large, and the reason is how it is arranged.