josafrik said:
I'm getting this from SVTP tool
> Reading PROGRAM MEMORY area...
Error : Cannot communicate with the device !
Check the SWIM cable connection and check all the needed pin connections on the SWIM connector.
If the application code uses Swim Disable and Reset pin as Output or has disabled SWIM Clock Divider:
Try Now to SWITCH OFF and ON the application Power Supply while NRST Reset pin is forced low.
Error : < PROGRAM MEMORY reading failed.
This is the st-link I'm using:
https://www.ebay.es/itm/ST-Link-V2-Programming-Unit-mini-STM8-STM32-Emulator-Downloader-NEW/112713630569?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2057872.m2749.l2649
Double checked the pinout, it seems correct. I have shortened the cables to the minimum possible as recommended, and I no longer know what else to do.
Any suggestions?
Just to check are you programming the motor controller or an lcd screen? I ask because the same device is used to program the LCD3 screen.
Have you tried without an extension cable at all? You should be able to use some TE PCB connectors to plug into the motor controller. This would eliminate any problems with shorts/solder problems in the programming cable.
Finally, it is mentioned that the quality of ST-Link usb units can be variable on the wiki. I bought 3 just in case from different suppliers as they were cheap. The 2 I have tried have both worked well enough so far but it may be the ST-Link usb device? I
Also its worth trying another computer. USB driver issues are pretty common in different hardware setups.
Just a few avenues you might be able to pursue. They might give you a clue as to the root cause?