cancel
Showing results for 
Search instead for 
Did you mean: 

STLink Command Line - connect & stay connected?

Andrew Neil
Evangelist
Posted on November 10, 2016 at 15:59

Is there a way to get the STLink Command Line utility to connect to the target and stay connected?

If I issue the -C (Connect) command, it does connect - but then immediately disconnects & exits back to the Windows command prompt.

How do I get it to

stay

connected - so that I can enter further commands interactively?

Is it possible?

#stlink-st-link
2 REPLIES 2
slimen
Senior
Posted on November 15, 2016 at 13:40

Hi,

- The [HOTPLUG] option allows to connect to the target without halt or reset.

For more details, refer to the 

http://www.st.com/content/ccc/resource/technical/document/user_manual/e6/10/d8/80/d6/1d/4a/f2/CD00262073.pdf/files/CD00262073.pdf/jcr:content/translations/en.CD00262073.pdf

 in the ''STM32 ST-LINK utility command line interface (CLI)'' section.

Regards

Andrew Neil
Evangelist
Posted on November 15, 2016 at 14:48

Sorry, that's not what I was asking at all.

I'm talking about having the Command-Line interface remain connected to the target.

But ST Support confirms this is not possible: the CLI will just execute one command, and then disconnect form the Target.

But they did add:

you can chain the commands in the same command line and add -pause in between to request user to proceed for next command.

I haven't tried that - I managed to achieve what I want using OpenOCD ...