看了一下,这个好像不用脚本吧?
C:\Program Files (x86)\STMicroelectronics\st_toolset\stvp>STVP_CmdLine -Device=STM8S103F2 -FileProg=test.hex -progress -erase
STVP_CmdLine version 1.4
Verbose ON
Log activity ON
Display Progress ON
Message box warning if protect option byte ON
Loop mode ON
Erase device ON
Blank check device OFF
Verify device ON
Configuration:
BoardName=ST-LINK Device=STM8S103F2 Port=USB ProgMode=SWIM
直接用VB之类的写一个程序调用命令行执行就可以了
|