2017-03-22 05:22 AM
'Can not connect to target'error message popup appears,when i am trying connect target.I am using St link utility.can some one help me out.
I am using STM32l017K8 Microcontroller.and also i am using SWD interface to program.i had gave following signals.
1.VDD-3.3V
2.SWDIO
3.SWCLK
4.GND
5.NRST
Kindly help me on this issue.
Thanks in advance
2017-03-22 06:07 AM
Hello,
I recommend you to upgrade the ST-Link firmware version to V2-1 through this
Imen
2017-03-22 06:38 AM
If not the ST-LINK firmware,
Make sure you have the interface pins wired up correctly.
Make sure the part is actually functional, it has power, the analogue supply is connected, and it is not locked in reset.
Make sure the VTref pin of the external ST-LINK is connected to 3.3V, it powers the buffers on the ST-LINK
If it functioned, and then stopped functioning, make sure your code doesn't reconfigure the SWDIO/SWCLK pins. Pull BOOT0 High, or try 'Connect under Reset' options.
2018-01-22 11:43 AM
Just bricked my BluePill board (STM32F103C8) and was not able to connect to it through the ST-Link:
-I got the message ''cannot connect to the target'' in the log window
-ST-Link was stuck with the status ''Old ST-LINK firmware/ST-LINK already used'' (I have the latest firmware on the st-link device so the message was irrelevant)
Nothing helped (connect under reset, low speed, etc), so I re-flashed the board using STMFlashLoader Demo (I pulled the boot0 high to enter DFU mode and start the bootloader - as per your suggestion) and it fixed the issue.
I downloaded the original firmware to the STM32F103C8 (using UART1).
---------------------------------------------------------------------------------------------------------------------
The root cause of the issue (in my case):
I tried to flash the board with the firmware where the SWDIO/SWCLK were disabled. So the solution was about re-flashing the device using bootloader.
Thanks for the suggestion!.
2018-01-22 12:09 PM
Entering the bootloader should be sufficient to 'not run your code', and it should be accessible via SWD
2018-01-22 12:18 PM
Makes sense. I tried this but I failed. Probably for another reason (the ST-link was still unresponsive).