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

Starting up my code

I'm using J-Link debugger to program my STM32F103 MCU, and everything is going fine.
However when I disconnect the debugger from the controller board, the MCU doesn't work anymore, even if I reset it.

Could you please give me any hint, what to do to allow my MCU to work without being connected the debugger?

Parents
  • Are you using own hardware or a development board?

    Is the hw reset circuit working? A debug adapter can hide this problem since the debug adapter can reset the chip.

    Another thing - do you place your program at the correct location for it to be able to start ot its own? Using a debug adapter means you can place the application in RAM and have the debugger modify the program counter. Without the debug adapter, the chip must be able to find your application without external help.

    Can you use any of the sample applications - such as a blinky - on the hardware and see if there is a problem with your project configuration?

Reply
  • Are you using own hardware or a development board?

    Is the hw reset circuit working? A debug adapter can hide this problem since the debug adapter can reset the chip.

    Another thing - do you place your program at the correct location for it to be able to start ot its own? Using a debug adapter means you can place the application in RAM and have the debugger modify the program counter. Without the debug adapter, the chip must be able to find your application without external help.

    Can you use any of the sample applications - such as a blinky - on the hardware and see if there is a problem with your project configuration?

Children
No data