2018-11-10 03:01 AM
Hello everyone,
I recently bought a single STM8S105K4 to fiddle with. I've soldered it to a board and I'm trying to flash it using the stm8flash utility and an STLINKv2. I've made the following connections to the MCU:
STLINK -- MCU
RST -- PIN 6 (NRST)
SWIM -- PIN 31 (SWIM)
3.3V -- PIN 11 (VDD)
GND -- PIN 9 (VSS)
Additionally there is a 470 nF ceramic capacitor between VCAP and VSS and a 100 nF one between VDD and VSS.
Whenever I try running "stm8flash -c stlinkv2 -p stm8s105k4 -u" the command fails saying "tries exceeded", seemingly because it couldn't establish a connection with the MCU.
Are my assumptions correct? Am I missing something?