Target connection fails with "Cannot identify target as a stm32x" (although STM32L053 works)
Hi there,
I’ve been quite busy in private matters and had no time to get any further with my STM32 problem until today.
However, at first, thanks for all your answers!
@LaurentL:
I’ve updated five minutes ago my System Workbench installation to v1.12 and the problem still exists unchanged.
I investigated the incorrect read target voltage a bit:
It’s also misread when using the Nucleo STM32 debugger along with the Nucleo board (STM32L053).
I’ve measured on both the Nucleo board and my custom board the voltages between GND and 3.3V target voltage conector on side of the debugger, both times it’s around 3.3 VDC (3.31 - 3.35V), so as it seems, this is clearly misread by OpenOCD.
But I don’t suspect this to be the cause for my ‘signature problem’, as like already mentioned, flashing and debugging the Nucleo board works.
@kfishy:
Yes, I tried that, flashing both my custom board and the original nucleo board works using the ST-Link Utility.
@Vetch:
Thanks for your suggestion.
I’ve had the debugger connected to a passive USB 2.0 hub, connected to a USB 2.0 port.
However, neither updating the drivers under windows, nor connecting the debugger directly to a USB2 or one of the (Intel) USB 3.0 ports did change anything.
Propably I did some mistake when building up my prototype board?
I’ve added below two pictures of the schematic and the bread board setup.
Please note I’ve used for this first basic setup a bread board adapter for the QFP48 package.
I also double checked that every connection you see on the schematic is correct on the board (the airwires left to route in eagle are connected using straight wires).
The connectors JP6 and JP1 can be ignored,as they aren’t connected at the moment.
JP1 was connected to the Nucleo board debugger as follows:
JP1-1 -> Debugger-1
JP1-2 -> Debugger-2
JP1-3 -> Debugger-4
JP1-4 -> Debugger-5
JP1-5 -> Debugger-3
Link to board image
Link to schematic image
Link to zipped eagle files
Output from latest target flashing trial:
14:39:03 **** Programing project stm32f0_blinky on chip ****
/home/markus/Ac6/SystemWorkbench/plugins/fr.ac6.mcu.externaltools.openocd.linux64_1.12.0.201611241417/tools/openocd/bin/openocd -f stm32f0_blinky.cfg -s /home/markus/Projekte/stm32f0_blinky/stm32f0_blinky/SW4STM32/stm32f0_blinky -s /home/markus/Ac6/SystemWorkbench/plugins/fr.ac6.mcu.debug_1.11.2.201612060912/resources/openocd/scripts -c “program Debug/stm32f0_blinky.elf verify reset exit”
Open On-Chip Debugger 0.10.0-dev-00273-g394abef (2016-11-24-15:12)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 1000 kHz
adapter_nsrst_delay: 100
srst_only separate srst_nogate srst_open_drain connect_assert_srst
srst_only separate srst_nogate srst_open_drain connect_assert_srst
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : clock speed 950 kHz
Info : STLINK v2 JTAG v27 API v2 M v15 VID 0x0483 PID 0x374B
Info : using stlink api v2
Info : Target voltage: 0.012648
Error: target voltage may be too low for reliable debugging
Info : stm32f0x.cpu: hardware has 4 breakpoints, 2 watchpoints
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : Unable to match requested speed 1000 kHz, using 950 kHz
adapter speed: 950 kHz
stm32f0x.cpu: target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0xc1000000 pc: 0xfffffffe msp: 0xfffffffc
in procedure ‘program’
in procedure ‘reset’ called at file “embedded:startup.tcl”, line 478
in procedure ‘ocd_bouncer’
in procedure ‘ocd_process_reset’
in procedure ‘ocd_process_reset_inner’ called at file “embedded:startup.tcl”, line 248
in procedure ‘stm32f0x.cpu’ called at file “embedded:startup.tcl”, line 370
in procedure ‘ocd_bouncer’
- Programming Started **
auto erase enabled
Error: Cannot identify target as a stm32x
Error: auto_probe failed
- Programming Failed **
shutdown command invoked
14:39:03 Build Finished (took 142ms)
A little footnote:
This last trial of flashing was done under my linux system, but the result is the same under my windows installation.