Bootstrap

STM8 IAR不识别ST-LINK V2问题解决

以前一直玩STM32,淘宝推荐发现STM8S103F3P6最小系统板3.6元一个,就买回来玩玩了。一值用Keil,现在改IAR,安装IAR for STM8,但是发现

the debugging session could not be started,Either the debugger initialization failed,or else the file"D…hex"was corrupt or of an unsupported format.
There might be more information in the Debug Log window

没办法就找百度吧,有的说改成STM8S003,STM8S103K3.改完没用,换个集成开发环境STVD+COSMIC,STVP中烧录程序试试结果也报错,error : the device is protected

参考STM8芯片写程序提示The device is protected,芯片烧写程序写保护的解决方法https://blog.csdn.net/ll148305879/article/details/107330655?utm_medium=distribute.pc_relevant_ask_down.none-task-blog-baidujs-1.nonecase&depth_1-utm_source=distribute.pc_relevant_ask_down.none-task-blog-baidujs-1.nonecase

单击Current tab之后会对芯片进行解密,解密之后就可以烧录程序了,然后再试试IAR,发现可以调试了,说明IAR不提示芯片烧写程序写保护。

;