If I understand malloc() correctly, then it should either return NULL (if out of memory) or a valid pointer.However, certain sequences of calls to malloc() cause a hard fault instead. Here is a minimalistic sample project for an STM32L431 with 64kB R...