大神好,为什么我的会出现:5 w; Z8 v7 i J! D8 T# ~6 i
Driver\STM32F10x_ARM_Driver\USART_STM32F10x.h(38): error: #5: cannot open source input file "Driver_USART.h": No such file or directory : T' r% s9 a- y.\CMSIS-DAP\DAP.h(197): error: #5: cannot open source input file "cmsis_compiler.h": No such file or directory
楼主,我的板子目前可以在win7上通过KEIL烧录STM32的芯片了,在64位的win8 win10试过串口(不需要安装你发的驱动,直接就可以识别,也可以用),但是有以下2个问题:; ^& X; W5 n$ g+ X1 Q4 B0 |; a
1.在32位 64位的win7上,串口都不识别,安装你发出来的驱动,提示32位的不合适安装,64位安装了也不行,即串口不可用;
2.在win7上使用IAR,烧录会提示报错,报错内容是:CPU did not power on
win7 32bit 系统安装驱动后的截图,会有一个CMSIS-DAP CDC(COM23),但是用丁丁打开搜索,实际上没有串口的(COM1忽略,是其他设备)
9 ]+ _( \5 ]/ {. @
楼主有办法吗?
' [ K& v1 M* y7 `5 f
1. 有办法。其实Win7就是需要安装ST的USB驱动,你试一试搜索ST的Link009,有许多版本,不知应该用哪个。
2. IAR烧录报错可能有许多原因,估计与源码没有关系。排除iAR的设定错误,可能是芯片是盗版,盗版芯片也不是完全不能用,需要自己摸索可行的方法。
! I6 V; p$ p% |, [
Driver\STM32F10x_ARM_Driver\USART_STM32F10x.h(38): error: #5: cannot open source input file "Driver_USART.h": No such file or directory
.\CMSIS-DAP\DAP.h(197): error: #5: cannot open source input file "cmsis_compiler.h": No such file or directory
这两个文件都是Keil系统自带的,你看看Doc文件夹。
当然没有。SWIM是给STM8芯片使用的,只有STLINK-V2才有。
下载后usb可以正常连接,led长灭短亮,连接目标板,显示swd/jtag communication failure6 M- j; O8 |0 U6 Z- C
已经解决,打扰了1 [; x) r3 }* `3 B$ E. t ]: z0 }