2017-07-23 08:20 AM
Hi all,
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.
Bo
#option-bytes #beeper #stm8s003k3 #stvp2017-07-24 12:07 AM
Hello Lei,
In order to provide you the answer, let me refer to MCU's
http://www.st.com/resource/en/datasheet/stm8s003k3.pdf
. 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.
Regards
Szymon