Unable to program flash of STM8S105C6T8 using stlinkv2 although I can read the flash.
I am unable to write to flash of STM8S105C6T8 although I can read the flash. I am using stlinkV2 via SWIM and stm8flash programming tool under ubuntu. I tried to reset option bytes to factory default and use the -u (unlock) option of stm8flash but both failed. I tried this on two boards (which I built); on one, the read out was all zero, and on the other one there seems to be something there. I had experienced something similar before and that problem was fixed by writing option bytes to default values. Can anyone help?
