2021-05-04 07:30 AM
Used tools:
Questions:
Log of stm32cubeprogrammer:
16:12:13 : ST-LINK SN : 55FF6F064986565728531287
16:12:13 : ST-LINK FW : V2J37S7
16:12:13 : Board : --
16:12:13 : Voltage : 3.28V
16:12:13 : Error: ST-LINK error (DEV_TARGET_CMD_ERR)
16:12:18 : ST-LINK SN : 55FF6F064986565728531287
16:12:18 : ST-LINK FW : V2J37S7
16:12:18 : Board : --
16:12:18 : Voltage : 3.28V
16:12:18 : Error: ST-LINK error (DEV_TARGET_CMD_ERR)
16:12:23 : ST-LINK SN : 55FF6F064986565728531287
16:12:23 : ST-LINK FW : V2J37S7
16:12:23 : Board : --
16:12:23 : Voltage : 3.28V
16:12:23 : Error: ST-LINK error (DEV_TARGET_CMD_ERR)
16:12:35 : ST-LINK SN : 55FF6F064986565728531287
16:12:35 : ST-LINK FW : V2J37S7
16:12:35 : Board : --
16:12:35 : Voltage : 3.28V
16:12:35 : Error: No STM32 target found!
Log from openocd:
openocd -f /usr/share/openocd/scripts/interface/stlink-v2.cfg -f /usr/share/openocd/scripts/target/stm32f0x.cfg -c 'init'
Open On-Chip Debugger 0.10.0
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'.
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
none separate
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 v37 API v2 SWIM v7 VID 0x0483 PID 0x3748
Info : using stlink api v2
Info : Target voltage: 3.282795
Error: init mode failed (unable to connect to the target)
in procedure 'init'
in procedure 'ocd_bouncer'
2021-05-04 08:00 AM
Almost certainly the boards bought from banggood are counterfeit. May or may not be the issue here. I would double check solder connections and BOOT0 pin status.
2021-05-04 12:29 PM
Hi,
Thanks for the feedback.
Unfortunately, I tested 2 units and none of them worked (same behavior, even after trials to change boot0 pin status). Therefore, the soldering issue probability seems to be poor. I just have an other question: do you have another (more trustable) supplier of such parts ? I could try to order and test a few of these and finally notice if the parts behave similarly than those found on banggood.
2021-05-04 12:42 PM
Perhaps you can take a picture of the board/chip you actually have, the picture above seems like stock photography. Large, Clear and In Focus.
Does yours have the B2 or RESET pin? Connect Under Reset modes would need connection to the NRST pin of the ST-LINK/V2
2021-05-04 01:04 PM
2021-05-05 12:56 AM
What if they are just not flashed with any code so SWD peripheral is not set?
Where they blinking when you first plugged them to power out of the box?
by the way if its bluepill the normal chip you would expect is the stm32f103c8