Skip to main content
Ocebe.1
Associate II
November 7, 2020
Question

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 .

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

This topic has been closed for replies.

5 replies

Tesla DeLorean
Guru
November 7, 2020

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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
Ocebe.1
Ocebe.1Author
Associate II
November 7, 2020

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

Tesla DeLorean
Guru
November 7, 2020

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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
Ocebe.1
Ocebe.1Author
Associate II
November 7, 2020

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

Peter BENSCH
ST Technical Moderator
November 11, 2020

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.