Cannot start debug session: MCUXpresso is stuck at "Target Discovery"

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Cannot start debug session: MCUXpresso is stuck at "Target Discovery"

Jump to solution
2,821 Views
stefanopietrosa
Contributor II

A month ago MCUXpresso stopped being able to launch debug sessions, it now gets stuck at "Target Discovery":

stefanopietrosa_0-1635935596956.png

After a while I get this error message:

stefanopietrosa_1-1635935637876.png

Redlink server console:

stefanopietrosa_2-1635936171076.png

 

I am using MCUXpresso IDE v11.4.1 [Build 6260] [2021-09-15] with a LPC-Link2 debugger.

I have tried reinstalling MCUXpresso and re-flashing the debug probe but the problem keeps happening. Note that this problem happens regardless if I have any debug probe connected to the PC or not.

Thanks

0 Kudos
1 Solution
2,764 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello,

How about delete the folder of .metadata under MCUXpresso IDE workspace, then use a simple project to debug.

 

BR

Alice

View solution in original post

0 Kudos
6 Replies
2,663 Views
zophai
Contributor I

I just solved this problem.

1.check the firewall and secure software on your PC, allow redlinkserv and mcuxpresso(just like other answers mentioned)

2.try to use VPN, maybe your request was banned by your country's firewall

This works for me, hope it can help you.

0 Kudos
2,663 Views
zophai
Contributor I

zophai_0-1637746477076.png

zophai_1-1637746503132.png

Windows defender's configration

0 Kudos
2,817 Views
converse
Senior Contributor V

Check your firewall and/or AV software. It looks like the IDE is being blocked from communicating with the debugger.

0 Kudos
2,812 Views
stefanopietrosa
Contributor II

Sorry I forgot to mention that I disabled both the AV software and firewall, which already had exclusions set or MCUXpresso and redlinkserv. I used to be able to debug without issues just with the exclusions.

0 Kudos
2,765 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello,

How about delete the folder of .metadata under MCUXpresso IDE workspace, then use a simple project to debug.

 

BR

Alice

0 Kudos
2,751 Views
stefanopietrosa
Contributor II

Hi,

I have deleted the .metadata folder, re-added my .launch file and the debug session started normally.

Thank you!

Tags (1)
0 Kudos