中级会员
 
- 积分
- 425
- 金钱
- 425
- 注册时间
- 2019-5-12
- 在线时间
- 168 小时
|
发表于 2019-9-24 21:47:34
|
显示全部楼层
编译器问题1:烧录工具无法正常连接
Thu Sep 19, 2019 16:19:03: Failed to initialize communication with hardware:
SWIM error [30200]: ST-Link connection error
解决办法:
1.查一下烧录器硬件的连接
2.打开计算机->管理->设备管理器,查一下STM32USB口的属性
如果还是无法烧录,把ST-Link的烧录器拔掉重新插上,这个问题可能是ST-Link
之前烧过其他的程序
编译器问题2:打开IAR如果无法烧录,查一下这两处问题:
解决办法:Project -> Option -> General Options -> Target
Code:选择Small
Data:选择Medium
Project -> Option -> C/C++ Compiler -> Preprocessor
在Addtional include directories one per line)中添加头文件路径
如果还是无法烧录,把ST-Link的烧录器拔掉重新插上,这个问题可能是ST-Link
之前烧过其他的程序 |
|