I am running Visualgdb for STM32F777. I am getting a hard fault. Could you please help me, how can I find the instruction which generated this fault using Visualgdb.
You can use the Call Stack window to see the code that triggered the hard fault (unless the stack got corrupt or the stack pointer is set incorrectly). In the latter case please try simply putting a breakpoint in Reset_Handler and stepping through the initialization code to discover the line triggering the hard fault.