Why is code compiled with -fPIC option causing a hardware fault?
Hi, I have generated a minimal sample code with STM32CubeIDE 1.2.0 and a Nucleo based on STM32F302R8Tx. I just added few lines to have the on board LED blinking as a confirmation that the application is running. The problem is that when I recompile the project with the option -fPIC the execution stops due to a hardware fault upon the call of HAL_SYSTICK_Config().
I am wondering what is going wrong. It should not be the vector table, because the image is flashed starting from default address 0x08000000.
Any ideas?
