i'm currently using STM8S003K3 and want to change the option byte for the beeper using STVP. But after I connected the discovery board to my PC, I can't change AFR7 because it is "reserved".
Anyone know what I'm doing wrong? Thanks.
In order to provide you the answer, let me refer to MCU's datasheet for STM8S003F3 and STM8S003K3. This is correct, that AFR7 bit from Option Bytes region is responsible for beeper. However if we refer to more detailed information in mentioned document, we can notice that:
If we use STVP and select at the beginning STM8S003F3 and then STM8S003K3, the result is the same: STM8S003F3 allows to change value of AFR7 and STM8S003K3 doesn't allow to change AFR7.
So as a result there is nothing wrong, which you do. Simply the diveice, which you use, doesn't support this feature.
Retrieving data ...