How to check if MCU LINK is connected

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

How to check if MCU LINK is connected

跳至解决方案
2,142 次查看
_Ferrari_
Contributor V

Dear al,

 

I have very strange question

I'm developing a project using LPC5526 CPU. Is there any possibility to check if the MCU LINK is connected to the target ?

Thank you very much for your help and cooperation

best regards

0 项奖励
回复
1 解答
2,115 次查看
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello, maybe you could try with BLHOST and send the command get property.

blhost -p COMX get-property 1

Pavel_Hernandez_0-1706920281003.png

MCUBLHOSTUG.pdf (nxp.com)

Best regards,
Pavel

在原帖中查看解决方案

0 项奖励
回复
3 回复数
2,136 次查看
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello, my name is Pavel, and I will be supporting your case, about your doubts are you using an EVK, or you are referring to the MCU and the external tool? if I do not understand right, please could you elaborate further, and use images if you might be necessary.

Best regards,
Pavel

0 项奖励
回复
2,126 次查看
_Ferrari_
Contributor V

Dear Pavel, thank you for your prompt answare

Using the __NVIC_SystemReset() I can generate a system reset and the POWER_GetWakeUpCause function provides a way to distinguish between a power-on reset and a system reset by examining the return parameters.

However a system reset can also be triggered by the MCU Link debug probe so, when the program starts, I can't know if the System Reset is generate because __NVIC_SystemReset() is called or or if System Reset is generated by MCU Link probe.

So my question is: Is there any trick or procedure that permits to know if MCU Link probe is connected to the target CPU ? (i.e. checking some special CPU register or I/O port, ....)

0 项奖励
回复
2,116 次查看
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello, maybe you could try with BLHOST and send the command get property.

blhost -p COMX get-property 1

Pavel_Hernandez_0-1706920281003.png

MCUBLHOSTUG.pdf (nxp.com)

Best regards,
Pavel

0 项奖励
回复