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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
3,123 次查看
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 项奖励
回复
1 解答
3,066 次查看
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 项奖励
回复
6 回复数
2,965 次查看
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 项奖励
回复
2,965 次查看
zophai
Contributor I

zophai_0-1637746477076.png

zophai_1-1637746503132.png

Windows defender's configration

0 项奖励
回复
3,119 次查看
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 项奖励
回复
3,114 次查看
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 项奖励
回复
3,067 次查看
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 项奖励
回复
3,053 次查看
stefanopietrosa
Contributor II

Hi,

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

Thank you!

标记 (1)
0 项奖励
回复