armauk 发表于 2013-9-25 11:22:20

STM8下载时出现"Programming failed on Option Byte"

STM8S103K3,   ST LINK V2 整个上午都碰到,快崩溃了,
 ST LINK V2拔了再手上,:lolSTVP卸了再重装,不行,能想到的都做了,最后还是NO!

发表于 2013-9-25 13:28:20

RE: STM8下载时出现

1)请用STVP解锁
2)STM8 OPTION BYTES的具体寄存器定义,请看STM8数据手册

dzc2001 发表于 2013-9-25 16:42:47

RE: STM8下载时出现

http://www.keil.com/support/docs/3454.htm
上面是Keil给出的答案,应该是可以解释的
ANSWER
Please select the Erase Sectors option rather than Full Chip Erase option, under Cortex-M Target Driver Setup - Flash Download as the erase method when downloading to Flash.
The Full Chip Erase option programs the RDP Key (part of the Flash Option bytes) and disables Flash protection. Because of this, it is not possible to program the Flash Option bytes when the Full Chip Erase option is selected.
Full Chip Erase is intended to recover a protected Flash and will execute automatically when Erase is invoked from the Flash menu. When Download is invoked from the Flash menu, then the erase method selected configured in the Flash Download Setup - DownloadFunction is used.
照着操作一遍

shenzhifang 发表于 2014-1-17 01:45:13

回复: STM8下载时出现"Programming failed on Option Byte"

 RST 要接上接电阻
页: [1]
查看完整版本: STM8下载时出现"Programming failed on Option Byte"