AnsweredAssumed Answered

Cannot communicate with the tool

Question asked by zaparivanny.pavel on Mar 21, 2016
Latest reply on Jan 6, 2017 by Z_ller.Georg
Hello!
I compile sourse code stvp (http://www.st.com/web/en/catalog/tools/PF257522) in visual studio 2015. The program displays an error in console:

>>> Programming PROGRAM MEMORY
(API) ERROR : Cannot communicate with the tool.
Wrong tool selection or check tool power supply or check that a previous session
 is closed.
<<< Programming PROGRAM MEMORY fails

Full log:

D:\workspace\ApiSample\Debug>APISample.exe -Device=STM8S103K3 -ProgMode=SWIM -Port=USM -FileProg=D:\ELload.hex
STVP_CmdLine version 1.4

Verbose ON
Log activity ON
Display Progress OFF
Message box warning if protect option byte ON
Loop mode ON
Erase device OFF
Blank check device OFF
Verify device ON

Configuration:
BoardName=ST-LINK Device=STM8S103K3 Port=USM ProgMode=SWIM

>>> Filling PROGRAM MEMORY image in computer with Blank Value
<<< Filling PROGRAM MEMORY image in computer succeeds

>>> Loading file D:\STProjectGIT\El_load_2\Release\Exe\ELload.hex in PROGRAM MEM
ORY image in computer
<<< Loading file succeeds

>>> Programming PROGRAM MEMORY
(API) ERROR : Cannot communicate with the tool.
Wrong tool selection or check tool power supply or check that a previous session
 is closed.
<<< Programming PROGRAM MEMORY fails

Outcomes