Jaromir Sukuba - 2017-08-21

I verified this project with SMT8S207K6, on DIY board. I used cfg file for STM8S105, but copied/renamed to STM8S207, with no other changes.

Side note:
I'm using cheap asian st-link clone for experiments and openocd was losing contact with target at times. I recognized this as typical "floating pin" issue and inserted 12kOhm pull-up between Vdd and NRST pin, then it started to behave. Perhaps due to non-optimal cabling between st-link and target, or poor quality of st-link clone itself; I'll try to test this with genuine ST-link.
So, if your target loses connection, try adding pull-up on NRST. Pull-up here will not do any harm for other MCU or debug probes anyway.