cancel
Showing results for 
Search instead for 
Did you mean: 

Flash problem (original STLINK & IC from DigiKey)

TVan .2
Associate II

I am getting this error, while the setup in cubemx is for this chip... Using SW4STM32.

Wrong device detected, check your project and the board(s) connected

 Open On-Chip Debugger 0.10.0+dev-00021-g524e8c8 (2019-04-12-08:48)

 Licensed under GNU GPL v2

 For bug reports, read

  http://openocd.org/doc/doxygen/bugs.html

 none separate

 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 v3 JTAG v1 API v3 SWIM v1 VID 0x0483 PID 0x374F

 Info : using stlink api v3

 Info : Target voltage: 3.309742

 Info : Unable to match requested speed 4000 kHz, using 3300 kHz

 Info : Stlink adapter speed set to 3300 kHz

 Warn : UNEXPECTED idcode: 0x0bc11477

 Error: expected 1 of 1: 0x2ba01477

 in procedure 'program' 

 in procedure 'init' called at file "embedded:startup.tcl", line 495

 in procedure 'ocd_bouncer'

 ** OpenOCD init failed **

 shutdown command invoked

1 REPLY 1
Uwe Bonnes
Principal III

The first line says it all. Revisit your config file.