This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Debugger Don't stop & control lost

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.

Parents
  • I had connected 0.1uF to reset pin which was creating problem, removing it had solved the problem.

    No, it never solved any problem. It only changed your hardware from having one kind of problem to having another, even bigger one.

    How to correct that issue
    Make sure your hardware creates a decent reset signal. Yours clearly doesn't, neither with the 0.1 uF connected, nor without it.

Reply
  • I had connected 0.1uF to reset pin which was creating problem, removing it had solved the problem.

    No, it never solved any problem. It only changed your hardware from having one kind of problem to having another, even bigger one.

    How to correct that issue
    Make sure your hardware creates a decent reset signal. Yours clearly doesn't, neither with the 0.1 uF connected, nor without it.

Children
No data