I am trying to debug my code on STM32 MCU board made by me. I am using SWD
On attaching MCU, when I click 'Flash->Erase', I am able to erase successfully. When I click 'Flash->Download', program gets downloaded. It don't show any error like communication fail. So I consider this step as successful.
But when I click 'Start debug session', debug runs & don't stop & also I don't find where the control. The red cross button highlights to stop the debugger. When on clicking it control gets lost, & program just gets stop.
What could be problem.
I have just while(1) in main loop.
Yes reset pin is connected