I'm using STM8S207K6, it's ok with 16MHz crystal or lower. But with 20MHz crystal, it works only when i set the prescale = 2; (CPU clock = 20MHz/2 = 10MHz). So what should i do to make it work with 20MHz CPU-clock? How can i configure the wait stage?
Follow your link, using STVP, i just simple configure the wait stage to ''1 wait stage'' in the option byte tab, and it runs at 20MHz clock ^^ Many thanks ^^