STM8烧录失败,导致芯片被锁
操作系统: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 : 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
Failed to set ROP flag!
Failed to set option byte: gdi-error : Option bytes badly programmed to the chip
Failed to erase memory by toggling the "Read-Out Protection" bit.
然后这个芯片就不能用了,这个芯片之前别人用正常,我烧录就坏了,我烧录过的芯片都坏了,已经坏了三片。硬件电路检查多次是没有问题的。
感觉芯片被锁住了,怎么解决啊,help me。
本帖最后由 风离蓝 于 2018-7-3 17:16 编辑
我这边使用STM8S003F3也出现这个错误已解决了,而且只要用IAR一下载调试,就会出现以下错误,而且芯片会被锁住: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
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
Failed to set ROP flag!
Failed to set option byte: gdi-error : Option bytes badly programmed to the chip
Failed to erase memory by toggling the "Read-Out Protection" bit. 芯片锁住问题可以解决:使用STVP,在option bytes页面将ROP改成OFF,点击编程按钮解锁;
而我碰到以上问题的根本原因在于工程配置选项,如附图:
去掉图中的三个选项即可;
用的是这款 ST-LINK
找卖家技术支持 qing wen ni shi zen mo jie jue de,wo shu ru fa huai le 请问你的问题解决了吗,我也遇到了这个问题,方便传授一下解决办法吗?? 没有坏的,用STVP可以解锁,我之前也遇到过这个问题 如何解决的, 出现同样的问题。 用STVD 擦除芯片试下 风离蓝 发表于 2018-7-3 17:09
我这边使用STM8S003F3也出现这个错误已解决了,而且只要用IAR一下载调试,就会出现以下错误,而且芯片会被 ...
感谢分享,经过测试确实解决了问题,感谢
页:
[1]
2