cancel
Showing results for 
Search instead for 
Did you mean: 

12v dc 4 channel relay module / Error : Cannot communicate with the device !

saurav
Associate

Hi everyone,

I have 12v dc 4 channel relay module which have stm8s103f3 on it.

i am using ST visual develop and STVP to flash program using ST-Link V2 programmer.

ST-Link V2 Pins: 1- RST,  3- GND, 5- Swim, 7- 3.3v (which is required for relay module).

when i make the connections as above pinouts and try to program using In ST programmer, the module gets turned ON but it gives: 

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 verifying failed.

I have attached the image of Module and programmer.

please help to find the solution on it.

 

Thanks, and regards.

Saurav.

1 REPLY 1
Peter BENSCH
ST Employee

Welcome @saurav, to the community!

Ahm... you use a fake ST-LINK/V2 with a counterfeit STM32F103 in one of those colourful tin cans and expect STMicroelectronics to support it?

A solution would be a genuine ST-LINK/V2 from an authorised dealer, e.g. from the eStore of STMicroelectronics. Yes, it's a little more expensive, but it also works.

Regards
/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.