STM32CubeIDE debugger: Target unknown error 19 Error in initializing ST-LINK device
- May 28, 2019
- 18 replies
- 12016 views
I am trying to debug with the STM32CubeIDE but it fails with message:
...
Verifying ...
Download verified successfully
Target unknown error 19
Error in initializing ST-LINK device.
Reason: Unknown. Please check power and cabling to target.
Failed to restart ST-LINK connection
Error in STM32CubeProgrammer
Target is not responding, retrying...
Target is not responding, retrying...
...
see full STM32CubeProgrammer.log attached.
I am using the STM32H753I-EVAL board and a Linux PC (Ubuntu 1604 LTS).
However, debugging is successful with Atollic TrueStudio so I think the hardware is ok and the problem is with the STM32CubeIDE.
I have also attached .launch and .prefs files from working and non working environments for comparison:
STM32CubeIDE (fails):
cube_ide_eval_board Debug.launch
org.eclipse.cdt.core.prj-cube_ide_eval_board.prefs
Atollic TrueStudio (succeeds):
eval_H7cube.elf.launch
com.atollic.truestudio.debug.hardware_device.prefs
I would like to get this running and use the latest tools.
However, I'm new to the STM32 hardware and IDE's and not sure what the benefits of STM32CubeIDE over Atollic TrueStudio are?