2025-03-24 4:29 AM
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.
2025-04-06 9:54 PM
I have attached the image of setup which showing the connection between STM8S103F3 which is mounted on relay module with Debugger.
When I tried to give supply from ST-link/V2 debugger using VCC PIN 1 (3.3v) the debugger was unable to provide the supply. That's why I have given external 12v dc supply to module.
I have made below connections:
Relay module | ST-LINK/V2 ISOL (20 pin) pin no. |
GND (grey) | 12 |
SWIM (pink) | 10 |
RST (black) | 14 |
Thanks, and regards.
Saurav.
2025-04-06 11:07 PM
Can you please upload a schematic of the relay module?