Error:Flash Download failed - "Cortex-M4"解决办法
STM32F407的芯片下载不了程序,报错Error: Flash Download failed - "Cortex-M4"如下
![在这里插入图片描述](https://img-blog.csdnimg.cn/680e41ea927b4668b5c7b0ed3939069f.png)
原因:芯片锁了,开启了读写保护模式
解决办法:
下载STM32 ST-LINK Utility
下载地址:https://www.st.com/en/development-tools/stsw-link004.html#get-software
![在这里插入图片描述](https://img-blog.csdnimg.cn/17dc06ccceee4d308eec6393877f7c03.png)
安装STM32 ST-LINK Utility
![在这里插入图片描述](https://img-blog.csdnimg.cn/71ac3851c8d045059935d590ae6639ac.png)
擦除芯片内容
![[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-IvsZ0Y52-1682497232411)(C:\Users\23206\AppData\Roaming\Typora\typora-user-images\image-20230426143946305.png)]](https://img-blog.csdnimg.cn/cd541bafd1584fceaf05eeb4cb122139.png)
擦除后再次下载验证
![在这里插入图片描述](https://img-blog.csdnimg.cn/691039d2263d471fb02198cc9f20351c.png)
能够下载代表OK;