[STM8] STM8烧录失败,导致芯片被锁

[复制链接]
1137|10
 楼主| laocuo1142 发表于 2021-1-5 14:40 | 显示全部楼层 |阅读模式
操作系统:WINDOWS 10
开发环境:IAR FOR STM8 7.1.4
下载器   : ST-LINK
开发语言:C

      第一次用IAR 给 stm8,编写程序,编译通过后,用ST-LINK烧录程序,出现这个错误,烧录失败
  • C-SPY Processor Descriptor V2.10.2.149 for STM8
  • C-SPY Debugger Driver, ST-LINK V2.10.2.149 for STM8
  • Connected to STM8 SWIM Debugging system, STM8-SWIM 1.6.10, GDI Version 1.2.6
  • Errors while setting configuration with MCU name STM8S103K3: gdi-error [40301]: The Flash Memory Read-out protection option must be disabled for debug. Disabling this option will first erase the whole
  • Flash Memory.
  • C-SPY Processor Descriptor V2.10.2.149 for STM8
  • C-SPY Debugger Driver, ST-LINK V2.10.2.149 for STM8
  • Connected to STM8 SWIM Debugging system, STM8-SWIM 1.6.10, GDI Version 1.2.6


[color=rgb(51, 102, 153) !important]复制代码


  • Failed to set ROP flag!
  • Failed to set option byte: gdi-error [40703]: Option bytes badly programmed to the chip
  • Failed to erase memory by toggling the "Read-Out Protection" bit.


[color=rgb(51, 102, 153) !important]复制代码


然后这个芯片就不能用了,这个芯片之前别人用正常,我烧录就坏了,我烧录过的芯片都坏了,已经坏了三片。硬件电路检查多次是没有问题的。
感觉芯片被锁住了,怎么解决啊,help me

guanjiaer 发表于 2021-2-2 20:09 | 显示全部楼层
怎么才能恢复原厂设置呢
heimaojingzhang 发表于 2021-2-2 20:09 | 显示全部楼层
问题是为什么烧录之后就会被锁死呢
keaibukelian 发表于 2021-2-2 20:11 | 显示全部楼层
难道执行特定的操作了吗  
labasi 发表于 2021-2-2 20:14 | 显示全部楼层
我还没有遇到过被锁死的情况发生
paotangsan 发表于 2021-2-2 20:17 | 显示全部楼层
难道掉电之后也不可以吗
paotangsan 发表于 2021-2-2 20:17 | 显示全部楼层
难道掉电之后也不可以吗
豌豆爹 发表于 2021-2-9 09:56 | 显示全部楼层

找卖家技术支持
七毛钱 发表于 2021-2-9 09:56 | 显示全部楼层

没有坏的,用STVP可以解锁,我之前也遇到过这个问题
麻花油条 发表于 2021-2-9 09:58 | 显示全部楼层
用STVD 擦除芯片试下
海滨消消 发表于 2021-2-9 09:59 | 显示全部楼层
学习了,谢谢分享。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

1296

主题

6239

帖子

15

粉丝
快速回复 在线客服 返回列表 返回顶部