ST意法半导体
直播中

李英健

7年用户 141经验值
私信 关注
[问答]

为什么我无法使用STVP更改蜂鸣器的AFR7?

大家好,
我目前正在使用STM8S003K3,并希望使用STVP更改蜂鸣器的选项字节。但是在我将发现板连接到PC之后,我无法更改AFR7,因为它是“保留”的。
谁知道我做错了什么?谢谢。


#option-bytes #beeper#stm8s003k3 #stvp

以上来自于谷歌翻译


以下为原文




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 #stvp

回帖(1)

李振云

2019-6-25 10:22:25
你好雷,
为了给您答案,让我参考MCU
http://www.st.com/resource/en/datasheet/stm8s003k3.pdf
。这是正确的,来自Option Bytes区域的AFR7位负责蜂鸣器。但是,如果我们在上述文件中提到更详细的信息,我们可以注意到:在表14中,它描述了STM8S003K3的选项字节,AFR7是保留的。在表15中,它取消了STM8S003F3的选项字节,AFR7可以重新配置。如果我们使用STVP并在开始时选择STM8S003F3然后选择STM8S003K3,结果是相同的:STM8S003F3允许改变AFR7的值而STM8S003K3不允许改变AFR7。
因此,没有什么不对,你做的。您使用的潜水装置不支持此功能。
问候
 
Szymon

以上来自于谷歌翻译


以下为原文




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.


  • in Table 15, which desribes Option Bytes for STM8S003F3, AFR7 can be reconfigured.
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
举报

更多回帖

发帖
×
20
完善资料,
赚取积分