i found out the answer. Two things need to be done : The STM8S IC requires electrolytic capacitor from 0.47uF to 3.3uF to be connected between its VCAP and ground pin.External 5V power supply should be given to VDD and GND pins of SWIM connector of S...