OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 2229|回复: 4

USB声卡 战舰

[复制链接]

2

主题

12

帖子

0

精华

新手上路

积分
39
金钱
39
注册时间
2018-5-17
在线时间
10 小时
发表于 2018-5-17 11:04:22 | 显示全部楼层 |阅读模式
老师您好,给的压缩包是不是缺少文件了。编译报错:如下所示
*** Using Compiler 'V5.06 update 1 (build 61)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
Rebuild target 'Target 1'
compiling test.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
test.c: 0 warnings, 1 error
assembling startup_stm32f10x_hd.s...
compiling delay.c...
..\SYSTEM\delay\delay.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>      
..\SYSTEM\delay\delay.c: 0 warnings, 1 error
compiling sys.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\SYSTEM\sys\sys.c: 0 warnings, 1 error
compiling usart.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\SYSTEM\usart\usart.c: 0 warnings, 1 error
compiling led.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\HARDWARE\LED\led.c: 0 warnings, 1 error
compiling beep.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\HARDWARE\BEEP\beep.c: 0 warnings, 1 error
compiling key.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\HARDWARE\KEY\key.c: 0 warnings, 1 error
compiling exti.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\HARDWARE\EXTI\exti.c: 0 warnings, 1 error
compiling wdg.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\HARDWARE\WDG\wdg.c: 0 warnings, 1 error
compiling timer.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\HARDWARE\TIMER\timer.c: 0 warnings, 1 error
compiling tpad.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\HARDWARE\TPAD\tpad.c: 0 warnings, 1 error
compiling oled.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\HARDWARE\OLED\oled.c: 0 warnings, 1 error
compiling ILI93xx.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\HARDWARE\LCD\ILI93xx.c: 0 warnings, 1 error
compiling rtc.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\HARDWARE\RTC\rtc.c: 0 warnings, 1 error
compiling wkup.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\HARDWARE\WKUP\wkup.c: 0 warnings, 1 error
compiling adc.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\HARDWARE\ADC\adc.c: 0 warnings, 1 error
compiling dac.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\HARDWARE\DAC\dac.c: 0 warnings, 1 error
compiling audiosel.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\HARDWARE\AUDIOSEL\audiosel.c: 0 warnings, 1 error
compiling usmart.c...
..\SYSTEM\usart\usart.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\USMART\usmart.c: 0 warnings, 1 error
compiling usmart_config.c...
..\SYSTEM\delay\delay.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>      
..\USMART\usmart_config.c: 0 warnings, 1 error
compiling usmart_str.c...
compiling usb_core.c...
compiling usb_init.c...
compiling usb_int.c...
compiling usb_mem.c...
compiling usb_regs.c...
compiling hw_config.c...
C:\Keil_v5\ARM\Inc\ST\STM32F10x\stm32f10x.h(96): error:  #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
   #error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..\USB\CONFIG\hw_config.c: 0 warnings, 1 error
compiling stm32f10x_it.c...
C:\Keil_v5\ARM\Inc\ST\STM32F10x\stm32f10x.h(96): error:  #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
   #error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..\USB\CONFIG\stm32f10x_it.c: 0 warnings, 1 error
compiling usb_desc.c...
compiling usb_endp.c...
compiling usb_istr.c...
compiling usb_prop.c...
compiling usb_pwr.c...
..\USB\CONFIG\usb_pwr.c(17): error:  #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
  #include "stm32f10x_lib.h"
..\USB\CONFIG\usb_pwr.c: 0 warnings, 1 error
"..\OBJ\test.axf" - 23 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed:  00:00:02

正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

109

主题

5564

帖子

0

精华

资深版主

Rank: 8Rank: 8

积分
10572
金钱
10572
注册时间
2017-2-18
在线时间
1914 小时
发表于 2018-5-17 11:12:07 | 显示全部楼层
看看你用的MDK是不是光盘中的MDK5.14版本。是的话,编译这个程序看看

实验51 USB声卡实验.rar

391.25 KB, 下载次数: 83

回复 支持 反对

使用道具 举报

2

主题

12

帖子

0

精华

新手上路

积分
39
金钱
39
注册时间
2018-5-17
在线时间
10 小时
 楼主| 发表于 2018-5-17 11:57:20 | 显示全部楼层
peng1554 发表于 2018-5-17 11:12
看看你用的MDK是不是光盘中的MDK5.14版本。是的话,编译这个程序看看

编译没报错了,非常感谢您的帮助,麻烦您啦!!!
回复 支持 反对

使用道具 举报

2

主题

12

帖子

0

精华

新手上路

积分
39
金钱
39
注册时间
2018-5-17
在线时间
10 小时
 楼主| 发表于 2018-5-17 12:00:05 | 显示全部楼层
peng1554 发表于 2018-5-17 11:12
看看你用的MDK是不是光盘中的MDK5.14版本。是的话,编译这个程序看看

先对着教程学习,有问题再向您请教,再次感谢!!
回复 支持 反对

使用道具 举报

109

主题

5564

帖子

0

精华

资深版主

Rank: 8Rank: 8

积分
10572
金钱
10572
注册时间
2017-2-18
在线时间
1914 小时
发表于 2018-5-17 12:11:07 | 显示全部楼层
FayeYeh 发表于 2018-5-17 12:00
先对着教程学习,有问题再向您请教,再次感谢!!

不客气
回复 支持 反对

使用道具 举报

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

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2025-6-15 15:05

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

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