How to check if MCU LINK is connected

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

How to check if MCU LINK is connected

Jump to solution
1,303 Views
_Ferrari_
Contributor IV

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 Kudos
Reply
1 Solution
1,276 Views
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

View solution in original post

0 Kudos
Reply
3 Replies
1,297 Views
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 Kudos
Reply
1,287 Views
_Ferrari_
Contributor IV

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 Kudos
Reply
1,277 Views
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 Kudos
Reply