I am developing a program on the STM32F4Discovery board using GCC, GDB and OpenOCD.
I can compile everything just fine, but when I start debugging, the program goes straight to the HardFault Handler, instead of going to the Reset_Handler.
Also, I frequently experience problems when writing to the flash. It usually takes me two tries to successfully write my program in the flash.
Has anyone else ever had this kind of issue with this or any other cortex M4 processor?