@SPing.1 , die you solve the issue? I have a very similar issue.I set up an empty project for an STM32H7 (without any additional code). It runs fine without the "-fPIC" flag. As soon, as I add the flag in the IDE settings, my code crashes in HAL_Init...