OpenEdv-开源电子网

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

实验51 USB读卡器(Slave)实验 编译报错有人知道怎么回事吗?

[复制链接]

1

主题

2

帖子

0

精华

新手入门

积分
5
金钱
5
注册时间
2020-7-30
在线时间
0 小时
发表于 2020-7-30 14:33:46 | 显示全部楼层 |阅读模式
如题什么都没有改,编译报了很多错啊?

Build target 'USB_CardReader_SLAVE'
compiling usb_dcd.c...
..\USB\STM32_USB_OTG_Driver\inc\usb_regs.h(69): warning:  #47-D: incompatible redefinition of macro "USB_OTG_HS_MAX_PACKET_SIZE" (declared at line 278 of "..\HALLIB\STM32F4xx_HAL_Driver\Inc\stm32f4xx_ll_usb.h")
  #define USB_OTG_HS_MAX_PACKET_SIZE           512
..\USB\STM32_USB_OTG_Driver\inc\usb_regs.h(70): warning:  #47-D: incompatible redefinition of macro "USB_OTG_FS_MAX_PACKET_SIZE" (declared at line 279 of "..\HALLIB\STM32F4xx_HAL_Driver\Inc\stm32f4xx_ll_usb.h")
  #define USB_OTG_FS_MAX_PACKET_SIZE           64
..\USB\STM32_USB_OTG_Driver\inc\usb_regs.h(71): warning:  #47-D: incompatible redefinition of macro "USB_OTG_MAX_EP0_SIZE" (declared at line 280 of "..\HALLIB\STM32F4xx_HAL_Driver\Inc\stm32f4xx_ll_usb.h")
  #define USB_OTG_MAX_EP0_SIZE                 64
..\USB\STM32_USB_OTG_Driver\inc\usb_defines.h(61): warning:  #47-D: incompatible redefinition of macro "USB_OTG_SPEED_HIGH" (declared at line 258 of "..\HALLIB\STM32F4xx_HAL_Driver\Inc\stm32f4xx_ll_usb.h")
  #define USB_OTG_SPEED_HIGH      0
..\USB\STM32_USB_OTG_Driver\inc\usb_defines.h(62): warning:  #47-D: incompatible redefinition of macro "USB_OTG_SPEED_FULL" (declared at line 261 of "..\HALLIB\STM32F4xx_HAL_Driver\Inc\stm32f4xx_ll_usb.h")
  #define USB_OTG_SPEED_FULL      1
..\USB\STM32_USB_OTG_Driver\inc\usb_defines.h(64): warning:  #47-D: incompatible redefinition of macro "USB_OTG_ULPI_PHY" (declared at line 269 of "..\HALLIB\STM32F4xx_HAL_Driver\Inc\stm32f4xx_ll_usb.h")
  #define USB_OTG_ULPI_PHY      1
..\USB\STM32_USB_OTG_Driver\inc\usb_defines.h(65): warning:  #47-D: incompatible redefinition of macro "USB_OTG_EMBEDDED_PHY" (declared at line 270 of "..\HALLIB\STM32F4xx_HAL_Driver\Inc\stm32f4xx_ll_usb.h")
  #define USB_OTG_EMBEDDED_PHY  2
..\USB\STM32_USB_OTG_Driver\inc\usb_defines.h(86): warning:  #47-D: incompatible redefinition of macro "GRXSTS_PKTSTS_IN" (declared at line 382 of "..\HALLIB\STM32F4xx_HAL_Driver\Inc\stm32f4xx_ll_usb.h")
  #define GRXSTS_PKTSTS_IN                       2
..\USB\STM32_USB_OTG_Driver\inc\usb_defines.h(87): warning:  #47-D: incompatible redefinition of macro "GRXSTS_PKTSTS_IN_XFER_COMP" (declared at line 383 of "..\HALLIB\STM32F4xx_HAL_Driver\Inc\stm32f4xx_ll_usb.h")
  #define GRXSTS_PKTSTS_IN_XFER_COMP             3
..\USB\STM32_USB_OTG_Driver\inc\usb_defines.h(88): warning:  #47-D: incompatible redefinition of macro "GRXSTS_PKTSTS_DATA_TOGGLE_ERR" (declared at line 384 of "..\HALLIB\STM32F4xx_HAL_Driver\Inc\stm32f4xx_ll_usb.h")
  #define GRXSTS_PKTSTS_DATA_TOGGLE_ERR          5
..\USB\STM32_USB_OTG_Driver\inc\usb_defines.h(89): warning:  #47-D: incompatible redefinition of macro "GRXSTS_PKTSTS_CH_HALTED" (declared at line 385 of "..\HALLIB\STM32F4xx_HAL_Driver\Inc\stm32f4xx_ll_usb.h")
  #define GRXSTS_PKTSTS_CH_HALTED                7
..\USB\STM32_USB_OTG_Driver\inc\usb_defines.h(121): warning:  #47-D: incompatible redefinition of macro "DSTS_ENUMSPD_HS_PHY_30MHZ_OR_60MHZ" (declared at line 288 of "..\HALLIB\STM32F4xx_HAL_Driver\Inc\stm32f4xx_ll_usb.h")
正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

15

主题

1061

帖子

0

精华

资深版主

Rank: 8Rank: 8

积分
3623
金钱
3623
注册时间
2019-8-14
在线时间
1054 小时
发表于 2020-7-30 20:24:08 | 显示全部楼层
可以试试这个

实验51 USB读卡器(Slave)实验.rar

11.19 MB, 下载次数: 41

回复 支持 反对

使用道具 举报

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

本版积分规则



关闭

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

正点原子公众号

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

GMT+8, 2025-4-30 19:05

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

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