AnsweredAssumed Answered

STLink can not connect to Nucleo as "Wrong device detected"

Question asked by Takayoshi Ishii on Jun 20, 2017
Latest reply on Nov 6, 2017 by Mahmud Ahmad



I am a new for STM32.

I bought Nucreo-L053R8 board, and installed latest Systemworkbench and STLink USB driver stsw-link009 on my PC. My OS is windows 8.1. I made a very short program and it could be compiled.


When I connect Nucreo board to my PC, I can see it as "USB BUS DEVICE-STM32 STLink".

Then I did run on Systemworkbench, then a window is opend and said "OpenOCD Problem Occured, Reason: Wrong device detedted".

After few second, USB is disconnected and I can see it as unknown device.


When I made the project, I select the device as L053.


Console shows like following.


Wrong device detected
Open On-Chip Debugger 0.10.0-dev-00278-ga53935e-dirty (2017-05-09-09:25)
Licensed under GNU GPL v2
For bug reports, read
srst_only separate srst_nogate srst_open_drain connect_assert_srst
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 4000 kHz
adapter_nsrst_delay: 100
Info : clock speed 4000 kHz
Info : STLINK v2 JTAG v25 API v2 SWIM v14 VID 0x0483 PID 0x3748
Info : vid/pid are not identical: 0x0483/0x374B 0x0483/0x3748
Info : using stlink api v2
Error: init mode failed (unable to connect to the target)
in procedure 'program'
in procedure 'init' called at file "embedded:startup.tcl", line 473
in procedure 'ocd_bouncer'
** OpenOCD init failed **
shutdown command invoked



Let me know how should I do.