Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

ST-LINK/V2 Programmer with LabVIEW (VISA)

Solved!
Go to solution

Thank you for the solution, love from Québec.

0 Kudos
Message 11 of 22
(4,321 Views)

The VIs that are in the image are 

Format Into String Function 

and

System Exec VI

to make a command that should look similar to this:

 

"C:\Program Files\STMicroelectronics\STM32 ST-LINK Utility\ST-LINK Utility\ST-LINK_CLI.exe" -P "C:\Users\Mr_Hach\Desktop\program.hex" -rst

 

If you make this line in command prompt it should work as intended.

0 Kudos
Message 12 of 22
(4,319 Views)

anujsaini_0-1596556725467.png

 

Hi Francis M

I have used this VI to write the hex file in micro controller, when i run this Vi i receive these errors 

 

STM32 ST-LINK CLI v3.5.0.0
STM32 ST-LINK Command Line Interface

No target connected
Unable to connect to ST-LINK!

 

0 Kudos
Message 13 of 22
(4,246 Views)

I am using ST Link V2

anujsaini_0-1596611464525.png

 

0 Kudos
Message 14 of 22
(4,234 Views)

Hello @anujsaini,

Be carrefull, ST Link Utility has to be closed, divers installed. It should first running with ST Link before to use CLI.

Francis M
0 Kudos
Message 15 of 22
(4,215 Views)

I have tested this with ST-Link hardware is communicating properly but when i have tried with CLI using LabVIEW this error is coming.

0 Kudos
Message 16 of 22
(4,209 Views)

Before call CLI with LabVIEW, you can directly open CLI and test your command. 

Francis M
0 Kudos
Message 17 of 22
(4,206 Views)

Dear Francis 

 

hello 

I need this vi for programming ARM from LabVIEW. Could I have this vi?

Thanks.

0 Kudos
Message 18 of 22
(3,941 Views)

Hello,

No idea, i'm not a specialist, just a user who had a specific problem, find and share a solution. I think you need open a new discussion.

Regards,

Francis M
0 Kudos
Message 19 of 22
(3,938 Views)

Hi Cisco,

As I am new here and also in the Labview, I wanted to ask you to share the code of this snipped image if it is possible, becasue it is just an image.
I know you already mentioned that you directly share the code but it is only a .png file and does not have information that can import to Labview.
prog stm32.pngprog stm32.png

0 Kudos
Message 20 of 22
(2,400 Views)