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.

    But now I have some other problem:

    When I connect debugger & start debugging the code wroks fine & running. But when I try to run my code without debugger i.e directly with power to check how it work in real situation.

    Code does not run. But when I connect debugger only it runs as debugger pulls reset pin which causes MCU to come out of reset state.
    How to correct that issue

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

    But now I have some other problem:

    When I connect debugger & start debugging the code wroks fine & running. But when I try to run my code without debugger i.e directly with power to check how it work in real situation.

    Code does not run. But when I connect debugger only it runs as debugger pulls reset pin which causes MCU to come out of reset state.
    How to correct that issue

Children