野火电子论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 12928|回复: 2

U盘实验 编译有问题

[复制链接]
发表于 2016-6-8 08:17:17 | 显示全部楼层 |阅读模式
F429  3-程序源码\1-固件库例程\1-固件库例程\U盘实验
U盘实验 编译有问题呀,我是用KEIL5编译的?难道还需要设置什么吗?


*** Using Compiler 'V5.05 update 2 (build 169)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
Build target 'U盘读写测试'
compiling main.c...
..\..\USER\./APP/usbh_bsp.h(22): error:  #5: cannot open source input file "usb_bsp.h": No such file or directory
  #include "usb_bsp.h"
..\..\USER\main.c: 0 warnings, 1 error
compiling stm32f4xx_it.c...
..\..\USER\stm32f4xx_it.c(34): error:  #5: cannot open source input file "usb_bsp.h": No such file or directory
  #include "usb_bsp.h"
..\..\USER\stm32f4xx_it.c: 0 warnings, 1 error
compiling diskio.c...
..\..\USER\./APP/usbh_bsp.h(22): error:  #5: cannot open source input file "usb_bsp.h": No such file or directory
  #include "usb_bsp.h"
..\..\USER\FATFS\diskio.c: 0 warnings, 1 error
compiling usb_hcd_int.c...
"no source": Error:  #5: cannot open source input file "..\..\Libraries\STM32_USB_OTG_Driver\src\usb_hcd_int.c": No such file or directory
..\..\Libraries\STM32_USB_OTG_Driver\src\usb_hcd_int.c: 0 warnings, 1 error
compiling usb_hcd.c...
"no source": Error:  #5: cannot open source input file "..\..\Libraries\STM32_USB_OTG_Driver\src\usb_hcd.c": No such file or directory
..\..\Libraries\STM32_USB_OTG_Driver\src\usb_hcd.c: 0 warnings, 1 error
compiling usb_core.c...
"no source": Error:  #5: cannot open source input file "..\..\Libraries\STM32_USB_OTG_Driver\src\usb_core.c": No such file or directory
..\..\Libraries\STM32_USB_OTG_Driver\src\usb_core.c: 0 warnings, 1 error
compiling usbh_core.c...
"no source": Error:  #5: cannot open source input file "..\..\Libraries\STM32_USB_HOST_Library\Core\src\usbh_core.c": No such file or directory
..\..\Libraries\STM32_USB_HOST_Library\Core\src\usbh_core.c: 0 warnings, 1 error
compiling usbh_hcs.c...
"no source": Error:  #5: cannot open source input file "..\..\Libraries\STM32_USB_HOST_Library\Core\src\usbh_hcs.c": No such file or directory
..\..\Libraries\STM32_USB_HOST_Library\Core\src\usbh_hcs.c: 0 warnings, 1 error
compiling usbh_ioreq.c...
"no source": Error:  #5: cannot open source input file "..\..\Libraries\STM32_USB_HOST_Library\Core\src\usbh_ioreq.c": No such file or directory
..\..\Libraries\STM32_USB_HOST_Library\Core\src\usbh_ioreq.c: 0 warnings, 1 error
compiling usbh_stdreq.c...
"no source": Error:  #5: cannot open source input file "..\..\Libraries\STM32_USB_HOST_Library\Core\src\usbh_stdreq.c": No such file or directory
..\..\Libraries\STM32_USB_HOST_Library\Core\src\usbh_stdreq.c: 0 warnings, 1 error
compiling usbh_msc_bot.c...
"no source": Error:  #5: cannot open source input file "..\..\Libraries\STM32_USB_HOST_Library\Class\MSC\src\usbh_msc_bot.c": No such file or directory
..\..\Libraries\STM32_USB_HOST_Library\Class\MSC\src\usbh_msc_bot.c: 0 warnings, 1 error
compiling usbh_msc_core.c...
"no source": Error:  #5: cannot open source input file "..\..\Libraries\STM32_USB_HOST_Library\Class\MSC\src\usbh_msc_core.c": No such file or directory
..\..\Libraries\STM32_USB_HOST_Library\Class\MSC\src\usbh_msc_core.c: 0 warnings, 1 error
compiling usbh_msc_scsi.c...
"no source": Error:  #5: cannot open source input file "..\..\Libraries\STM32_USB_HOST_Library\Class\MSC\src\usbh_msc_scsi.c": No such file or directory
..\..\Libraries\STM32_USB_HOST_Library\Class\MSC\src\usbh_msc_scsi.c: 0 warnings, 1 error
compiling usb_bsp.c...
..\..\USER\APP\usb_bsp.c(30): error:  #5: cannot open source input file "usb_bsp.h": No such file or directory
  #include "usb_bsp.h"
..\..\USER\APP\usb_bsp.c: 0 warnings, 1 error
compiling usbh_usr.c...
..\..\USER\./APP/usbh_usr.h(34): error:  #5: cannot open source input file "usbh_core.h": No such file or directory
  #include "usbh_core.h"
..\..\USER\APP\usbh_usr.c: 0 warnings, 1 error
"..\..\Output\U盘读写测试.axf" - 5 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed:  00:00:03

回复

使用道具 举报

发表于 2016-6-8 08:58:13 | 显示全部楼层
光盘里的这个代码有问题,用这个代替:

USB_OTG—开发板作USB主机读取U盘.zip (2.05 MB, 下载次数: 15665)
回复 支持 反对

使用道具 举报

 楼主| 发表于 2016-6-8 13:49:17 | 显示全部楼层
好的,谢谢了
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

联系站长|手机版|野火电子官网|野火淘宝店铺|野火电子论坛 ( 粤ICP备14069197号 ) 大学生ARM嵌入式2群

GMT+8, 2025-1-12 07:55 , Processed in 0.043739 second(s), 26 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表