From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

VI package for St- Link/V2

Hi,

I will be using ST- Link/V2( debugging & programming STM8 and STM32 Microcontroller), I need to know how to get the serial number and software version of this connected device with in labview. It would be helpful if anyone can help me out.

0 Kudos
Message 1 of 8
(5,119 Views)

Hi Nhizanth,

 

Thanks for posting. I'd love to help you out, but I'm slightly unclear of your question.

 

Are you trying to determine these values or set them in LabVIEW?

 

If you are trying to determine the values, open NI MAX, then find the USB device under Devices and Interfaces. Upon clicking on the USB Device you should be able to see properties of it and the Serial number should be on. Second, the software version for your particular device should be found in your devices Spec. Sheet or User Manual.

 

Here is a document on connecting 3rd Party Instruments via USB:

http://www.ni.com/getting-started/set-up-hardware/instrument-control/usb-connect

 

If you are looking to set these values in LabVIEW, you will want to use the System Exec.vi to invoke the command line, or it may be possible to use NI-VISA.

 

Here is a tutorial on how to set that up:

http://www.ni.com/tutorial/2897/en/

 

Hope this helps,

 

Keddy

Keddy C.
Staff Software Engineer
National Instruments
0 Kudos
Message 2 of 8
(5,083 Views)

Hi,  

Sorry for the late reply. I can find the ST-Link in device manager  but not in the NI Max. And, also I need to know the com port number. I have attached the screenshot.

 

Thanks

Nhizanth

Download All
0 Kudos
Message 3 of 8
(5,032 Views)

Hi Nhizanth,

 

No worries.

 

If you are seeing it In Windows Device Manager, but not in NI MAX follow the steps on this Knowledge Base Article. There are a few different solutions in this article, so try to narrow down your problem, before trying all the solutions.

 

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019La2SAE&l=en-US

 

Once you are able to see your device in NI MAX, selecting the device will display device details including the Serial Number.

 

Regarding the Com Port Number, USB devices normally don't have a COM Port associated with them, unless you have a FTDI device.

 

Regards,

 

Keddy

Keddy C.
Staff Software Engineer
National Instruments
0 Kudos
Message 4 of 8
(5,006 Views)

Hi Keddy,

Thank you so much and sorry for the late reply.

I'm using St-Link utility thru command prompt and its working. 

 

Thanks

Nhizanth

0 Kudos
Message 5 of 8
(4,795 Views)

Hi Nhizanth,

 

I've to build a LabVIEW application to automaticaly flash a software in a microcontroler STM32F410 with a ST-LINK/V2 programer.

Apparently, you've done this kind of program...

Is it possible for you to share an example of what you've done?

 

Thank you per advance.

 

Regards,

 

Francis M
0 Kudos
Message 6 of 8
(4,191 Views)

Hello,

 

I am looking still for  to build a LabVIEW application to automatically flash a software in a STM32 microcontroller using ST-LINK/V2 programer.

 

have you some idea or example to share?

 

Thanks

 

Br,

tiopepe_254

0 Kudos
Message 7 of 8
(4,106 Views)

Hello,

 

If it can help, I've made an example using CLI (Commande Line Interface) of STM32 ST-LINK Utility. All commands are described in User Manual

UM0892 of ST.

 

It is here:

https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/ST-LINK-V2-Programmer-with-LabVIEW-VISA/m-p/...

Francis M
0 Kudos
Message 8 of 8
(4,036 Views)