cancel
Showing results for 
Search instead for 
Did you mean: 

nothing changed, but stlink-debugger cannot use now

dqsh06
Senior

Hello, 

I wrote a project maybe 2 weeks ago, at that time, everything was ok.  then i used stlink to download and debug the code yesterday, at first time, it worked ok, but later, i did download and debug again with stlink. it cannot work. the log as below.

dqsh06_0-1779438256201.png

my setting as below:

dqsh06_1-1779438368562.png

so what is the problem? how to fix it?

thanks.

 

1 ACCEPTED SOLUTION

Accepted Solutions
LaurentL
ST Employee

Hello dqsh06,

Can you check that there is no ST-LINK_gdbserver.exe running with task manager ?

Maybe a previous debug did not finish well.

If it is the case, kill the process and it should be fine.

Rgds,

Laurent

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.

View solution in original post

4 REPLIES 4
Andrew Neil
Super User

Clearly, something must have changed!

;)

 

This is probably the key:

AndrewNeil_0-1779438724089.png

See: Failed to bind to port 61234

 

(note that it's better to share this as text rather than a screenshot)

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.
LaurentL
ST Employee

Hello dqsh06,

Can you check that there is no ST-LINK_gdbserver.exe running with task manager ?

Maybe a previous debug did not finish well.

If it is the case, kill the process and it should be fine.

Rgds,

Laurent

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.

@LaurentL wrote:

Maybe a previous debug did not finish well.

If it is the case, kill the process and it should be fine.


That is, indeed, the solution proposed in the thread I linked earlier.

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

Hello LaurentL,

 

Maybe you are right, I killed the process of st-link_gdbserver running with task manager, and tried again, this time, it worked.

 

Thanks a lot.