In a previous thread, I saw that the _malloc_r() hardfault bug was fixed in STM32CubeIDE 1.7. However, it is still broken (or broken again) in versions 1.13.1 and 1.15.1 (I didn't try 1.14).The MCU is an STM32L562.Snippet to reproduce. For simplicity...