cancel
Showing results for 
Search instead for 
Did you mean: 

Hello,I write a program with asembbly for seven segment display.When ı debugged code,it ran but ı get error when I debug again I receive' a Error in initializing ST-LINK device. Reason: No device found on target.' this message .

Ocebe.1
Associate III

How can I solve this problem.If I earse mychip maybe I can solve but I dont know how can ı do

5 REPLIES 5

Probably because you have reconfigured the GPIOA pins used by the debugger. ie a blind write into configuration registers, breaking PA13/PA14

To erase, select "connect under reset" option for tools, or strap BOOT0 High so it doesn't run your code.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Ocebe.1
Associate III

when I debug my code ,at debugger options ,reset behaviour is 'connect under reset' but it doesnt work

It won't matter what setting you have if you disconnect the pins the debugger is using while it is running.

Look critically at your code

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Ocebe.1
Associate III

I understand you but in my board, boot0 pin is PA14 but I dont se on the board PA14

Looks like the problem is solved, but in a community like this one, how you solved it is always interesting to other users.

When your question is answered, please close this topic by choosing Select as Best.

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.