We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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?
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?
Is your BOOT0 pin tied to ground?
Thank you guys for your fast replies!
Yes, my Boot0 pin is tied to ground, also, I'm using my own hardware, with a modified version of the Blinky program.
Today, I have tried to power the circuit and it works, but this time with the debugger totally disconnected from my board, once I connect the J-Link connector it stops to work, even though the J-Link is not powered (not connected to the USB port)
So I think that the debugger connector has some kind of passive connection that apply a reset to the MCU.
Thank you again for your tips!