cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot change the option byte AFR7 for beeper using STVP

Lei Sun
Associate II
Posted on July 23, 2017 at 17:20

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''. 

0690X00000607eHQAQ.png

Anyone know what I'm doing wrong? Thanks.

Bo

#option-bytes #beeper #stm8s003k3 #stvp
1 REPLY 1
Szymon PANECKI
Senior III
Posted on July 24, 2017 at 09:07

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:
  • in Table 14, which desribes Option Bytes for STM8S003K3, AFR7 is reserved.
0690X00000607fyQAA.png
  • in Table 15, which desribes Option Bytes for STM8S003F3, AFR7 can be reconfigured.
0690X00000607eRQAQ.png

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.

0690X00000607eWQAQ.png

So as a result there is nothing wrong, which you do. Simply the diveice, which you use, doesn't support this feature.

Regards

Szymon