Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ошибки сборки #2

Open
GoogleCodeExporter opened this issue May 23, 2015 · 4 comments
Open

Ошибки сборки #2

GoogleCodeExporter opened this issue May 23, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

[nikll@nikll ~/LogicDiscovery ]$ gmake
--
-------- begin --------
arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors) 4.8.3 20131129 
(release) [ARM/embedded-4_8-branch revision 205641]
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Assembling: platform/stm32f4/startup.S
arm-none-eabi-gcc -c -mthumb -mcpu=cortex-m4 -mthumb-interwork -I. -x 
assembler-with-cpp  -Wa,-adhlns=platform/stm32f4/startup.lst,--gdwarf-2 
platform/stm32f4/startup.S -o platform/stm32f4/startup.o
[Compiling C] ./platform/stm32f4/system.c
[Compiling C] syscalls.c
syscalls.c: In function '_sbrk_r':
syscalls.c:155:3: warning: nested extern declaration of 'end' [-Wnested-externs]
   extern char   end asm ("end"); /* Defined by the linker.  */
   ^
[Compiling C] 
/home/nikll/stm_lib/STM32F4xx_DSP_StdPeriph_Lib_V1.0.1/Libraries/STM32F4xx_StdPe
riph_Driver/src/stm32f4xx_dma.c
[Compiling C] 
/home/nikll/stm_lib/STM32F4xx_DSP_StdPeriph_Lib_V1.0.1/Libraries/STM32F4xx_StdPe
riph_Driver/src/stm32f4xx_tim.c
[Compiling C] 
/home/nikll/stm_lib/STM32F4xx_DSP_StdPeriph_Lib_V1.0.1/Libraries/STM32F4xx_StdPe
riph_Driver/src/stm32f4xx_gpio.c
[Compiling C] 
/home/nikll/stm_lib/STM32F4xx_DSP_StdPeriph_Lib_V1.0.1/Libraries/STM32F4xx_StdPe
riph_Driver/src/stm32f4xx_fsmc.c
[Compiling C] 
/home/nikll/stm_lib/STM32F4xx_DSP_StdPeriph_Lib_V1.0.1/Libraries/STM32F4xx_StdPe
riph_Driver/src/stm32f4xx_usart.c
[Compiling C] 
/home/nikll/stm_lib/STM32F4xx_DSP_StdPeriph_Lib_V1.0.1/Libraries/STM32F4xx_StdPe
riph_Driver/src/stm32f4xx_adc.c
[Compiling C] 
/home/nikll/stm_lib/STM32F4xx_DSP_StdPeriph_Lib_V1.0.1/Libraries/STM32F4xx_StdPe
riph_Driver/src/misc.c
[Compiling C] 
/home/nikll/stm_lib/STM32F4xx_DSP_StdPeriph_Lib_V1.0.1/Libraries/STM32F4xx_StdPe
riph_Driver/src/stm32f4xx_exti.c
[Compiling C] 
/home/nikll/stm_lib/STM32F4xx_DSP_StdPeriph_Lib_V1.0.1/Libraries/STM32F4xx_StdPe
riph_Driver/src/stm32f4xx_syscfg.c
[Compiling C] 
/home/nikll/stm_lib/STM32F4xx_DSP_StdPeriph_Lib_V1.0.1/Libraries/STM32F4xx_StdPe
riph_Driver/src/stm32f4xx_rcc.c
[Compiling C] 
/home/nikll/stm_lib/STM32F4xx_DSP_StdPeriph_Lib_V1.0.1/Libraries/STM32F4xx_StdPe
riph_Driver/src/stm32f4xx_dcmi.c
[Compiling C] delay.c
[Compiling C] 
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_Device_
Library/Core/src/usbd_core.c
In file included from 
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Dri
ver/inc/usb_dcd.h:33:0,
                 from /home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_Device_Library/Core/inc/usbd_core.h:33,
                 from /home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_Device_Library/Core/src/usbd_core.c:29:
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Dri
ver/inc/usb_core.h:392:14: warning: redundant redeclaration of 
'USB_OTG_ReadDevAllInEPItr' [-Wredundant-decls]
 uint32_t     USB_OTG_ReadDevAllInEPItr   (USB_OTG_CORE_HANDLE *pdev);
              ^
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Dri
ver/inc/usb_core.h:381:14: note: previous declaration of 
'USB_OTG_ReadDevAllInEPItr' was here
 uint32_t     USB_OTG_ReadDevAllInEPItr           (USB_OTG_CORE_HANDLE *pdev);
              ^
[Compiling C] 
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_Device_
Library/Core/src/usbd_ioreq.c
In file included from 
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Dri
ver/inc/usb_dcd.h:33:0,
                 from /home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_Device_Library/Core/inc/usbd_core.h:33,
                 from /home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_Device_Library/Core/inc/usbd_ioreq.h:35,
                 from /home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_Device_Library/Core/src/usbd_ioreq.c:29:
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Dri
ver/inc/usb_core.h:392:14: warning: redundant redeclaration of 
'USB_OTG_ReadDevAllInEPItr' [-Wredundant-decls]
 uint32_t     USB_OTG_ReadDevAllInEPItr   (USB_OTG_CORE_HANDLE *pdev);
              ^
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Dri
ver/inc/usb_core.h:381:14: note: previous declaration of 
'USB_OTG_ReadDevAllInEPItr' was here
 uint32_t     USB_OTG_ReadDevAllInEPItr           (USB_OTG_CORE_HANDLE *pdev);
              ^
[Compiling C] 
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_Device_
Library/Core/src/usbd_req.c
In file included from 
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Dri
ver/inc/usb_dcd.h:33:0,
                 from /home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_Device_Library/Core/inc/usbd_core.h:33,
                 from /home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_Device_Library/Core/inc/usbd_req.h:35,
                 from /home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_Device_Library/Core/src/usbd_req.c:29:
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Dri
ver/inc/usb_core.h:392:14: warning: redundant redeclaration of 
'USB_OTG_ReadDevAllInEPItr' [-Wredundant-decls]
 uint32_t     USB_OTG_ReadDevAllInEPItr   (USB_OTG_CORE_HANDLE *pdev);
              ^
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Dri
ver/inc/usb_core.h:381:14: note: previous declaration of 
'USB_OTG_ReadDevAllInEPItr' was here
 uint32_t     USB_OTG_ReadDevAllInEPItr           (USB_OTG_CORE_HANDLE *pdev);
              ^
[Compiling C] ./usb/vcp/usbd_usr.c
In file included from 
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Dri
ver/inc/usb_dcd.h:33:0,
                 from /home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_Device_Library/Core/inc/usbd_core.h:33,
                 from /home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_Device_Library/Core/inc/usbd_usr.h:33,
                 from ./usb/vcp/usbd_usr.c:29:
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Dri
ver/inc/usb_core.h:392:14: warning: redundant redeclaration of 
'USB_OTG_ReadDevAllInEPItr' [-Wredundant-decls]
 uint32_t     USB_OTG_ReadDevAllInEPItr   (USB_OTG_CORE_HANDLE *pdev);
              ^
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Dri
ver/inc/usb_core.h:381:14: note: previous declaration of 
'USB_OTG_ReadDevAllInEPItr' was here
 uint32_t     USB_OTG_ReadDevAllInEPItr           (USB_OTG_CORE_HANDLE *pdev);
              ^
[Compiling C] 
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Dri
ver/src/usb_dcd.c
In file included from 
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Dri
ver/inc/usb_dcd.h:33:0,
                 from /home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Driver/src/usb_dcd.c:29:
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Dri
ver/inc/usb_core.h:392:14: warning: redundant redeclaration of 
'USB_OTG_ReadDevAllInEPItr' [-Wredundant-decls]
 uint32_t     USB_OTG_ReadDevAllInEPItr   (USB_OTG_CORE_HANDLE *pdev);
              ^
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Dri
ver/inc/usb_core.h:381:14: note: previous declaration of 
'USB_OTG_ReadDevAllInEPItr' was here
 uint32_t     USB_OTG_ReadDevAllInEPItr           (USB_OTG_CORE_HANDLE *pdev);
              ^
[Compiling C] 
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Dri
ver/src/usb_core.c
In file included from 
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Dri
ver/src/usb_core.c:29:0:
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Dri
ver/inc/usb_core.h:392:14: warning: redundant redeclaration of 
'USB_OTG_ReadDevAllInEPItr' [-Wredundant-decls]
 uint32_t     USB_OTG_ReadDevAllInEPItr   (USB_OTG_CORE_HANDLE *pdev);
              ^
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Dri
ver/inc/usb_core.h:381:14: note: previous declaration of 
'USB_OTG_ReadDevAllInEPItr' was here
 uint32_t     USB_OTG_ReadDevAllInEPItr           (USB_OTG_CORE_HANDLE *pdev);
              ^
In file included from 
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Dri
ver/inc/usb_core.h:35:0,
                 from /home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Driver/src/usb_core.c:29:
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Dri
ver/src/usb_core.c: In function 'USB_OTG_WritePacket':
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Dri
ver/src/usb_core.c:183:36: warning: cast increases required alignment of target 
type [-Wcast-align]
       USB_OTG_WRITE_REG32( fifo, *((__packed uint32_t *)src) );
                                    ^
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Dri
ver/inc/usb_defines.h:224:65: note: in definition of macro 'USB_OTG_WRITE_REG32'
 #define USB_OTG_WRITE_REG32(reg,value) (*(__IO uint32_t *)reg = value)
                                                                 ^
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Dri
ver/src/usb_core.c: In function 'USB_OTG_ReadPacket':
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Dri
ver/src/usb_core.c:208:6: warning: cast increases required alignment of target 
type [-Wcast-align]
     *(__packed uint32_t *)dest = USB_OTG_READ_REG32(fifo);
      ^
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Dri
ver/src/usb_core.c: In function 'USB_OTG_ActiveRemoteWakeup':
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Dri
ver/src/usb_core.c:1964:9: warning: dereferencing type-punned pointer will 
break strict-aliasing rules [-Wstrict-aliasing]
         power.d32 = USB_OTG_READ_REG32(&pdev->regs.PCGCCTL);
         ^
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Dri
ver/src/usb_core.c: In function 'USB_OTG_UngateClock':
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Dri
ver/src/usb_core.c:1998:7: warning: dereferencing type-punned pointer will 
break strict-aliasing rules [-Wstrict-aliasing]
       power.d32 = USB_OTG_READ_REG32(&pdev->regs.PCGCCTL);
       ^
[Compiling C] 
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Dri
ver/src/usb_dcd_int.c
In file included from 
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Dri
ver/inc/usb_dcd.h:33:0,
                 from /home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Driver/inc/usb_dcd_int.h:33,
                 from /home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Driver/src/usb_dcd_int.c:29:
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Dri
ver/inc/usb_core.h:392:14: warning: redundant redeclaration of 
'USB_OTG_ReadDevAllInEPItr' [-Wredundant-decls]
 uint32_t     USB_OTG_ReadDevAllInEPItr   (USB_OTG_CORE_HANDLE *pdev);
              ^
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Dri
ver/inc/usb_core.h:381:14: note: previous declaration of 
'USB_OTG_ReadDevAllInEPItr' was here
 uint32_t     USB_OTG_ReadDevAllInEPItr           (USB_OTG_CORE_HANDLE *pdev);
              ^
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Dri
ver/src/usb_dcd_int.c: In function 'DCD_HandleResume_ISR':
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Dri
ver/src/usb_dcd_int.c:355:5: warning: dereferencing type-punned pointer will 
break strict-aliasing rules [-Wstrict-aliasing]
     power.d32 = USB_OTG_READ_REG32(&pdev->regs.PCGCCTL);
     ^
[Compiling C] ./usb/vcp/usbd_desc.c
In file included from 
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Dri
ver/inc/usb_dcd.h:33:0,
                 from /home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_Device_Library/Core/inc/usbd_core.h:33,
                 from ./usb/vcp/usbd_desc.c:29:
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Dri
ver/inc/usb_core.h:392:14: warning: redundant redeclaration of 
'USB_OTG_ReadDevAllInEPItr' [-Wredundant-decls]
 uint32_t     USB_OTG_ReadDevAllInEPItr   (USB_OTG_CORE_HANDLE *pdev);
              ^
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Dri
ver/inc/usb_core.h:381:14: note: previous declaration of 
'USB_OTG_ReadDevAllInEPItr' was here
 uint32_t     USB_OTG_ReadDevAllInEPItr           (USB_OTG_CORE_HANDLE *pdev);
              ^
./usb/vcp/usbd_desc.c: In function 'USBD_USR_ProductStrDescriptor':
./usb/vcp/usbd_desc.c:224:5: warning: pointer targets in passing argument 1 of 
'USBD_GetString' differ in signedness [-Wpointer-sign]
     USBD_GetString (USBD_PRODUCT_HS_STRING, USBD_StrDesc, length);
     ^
In file included from ./usb/vcp/usbd_desc.c:31:0:
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_Device_
Library/Core/inc/usbd_req.h:92:6: note: expected 'uint8_t *' but argument is of 
type 'char *'
 void USBD_GetString(uint8_t *desc, uint8_t *unicode, uint16_t *len);
      ^
./usb/vcp/usbd_desc.c:228:5: warning: pointer targets in passing argument 1 of 
'USBD_GetString' differ in signedness [-Wpointer-sign]
     USBD_GetString (USBD_PRODUCT_FS_STRING, USBD_StrDesc, length);    
     ^
In file included from ./usb/vcp/usbd_desc.c:31:0:
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_Device_
Library/Core/inc/usbd_req.h:92:6: note: expected 'uint8_t *' but argument is of 
type 'char *'
 void USBD_GetString(uint8_t *desc, uint8_t *unicode, uint16_t *len);
      ^
./usb/vcp/usbd_desc.c: In function 'USBD_USR_ManufacturerStrDescriptor':
./usb/vcp/usbd_desc.c:242:3: warning: pointer targets in passing argument 1 of 
'USBD_GetString' differ in signedness [-Wpointer-sign]
   USBD_GetString (USBD_MANUFACTURER_STRING, USBD_StrDesc, length);
   ^
In file included from ./usb/vcp/usbd_desc.c:31:0:
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_Device_
Library/Core/inc/usbd_req.h:92:6: note: expected 'uint8_t *' but argument is of 
type 'char *'
 void USBD_GetString(uint8_t *desc, uint8_t *unicode, uint16_t *len);
      ^
./usb/vcp/usbd_desc.c: In function 'USBD_USR_SerialStrDescriptor':
./usb/vcp/usbd_desc.c:257:5: warning: pointer targets in passing argument 1 of 
'USBD_GetString' differ in signedness [-Wpointer-sign]
     USBD_GetString (USBD_SERIALNUMBER_HS_STRING, USBD_StrDesc, length);
     ^
In file included from ./usb/vcp/usbd_desc.c:31:0:
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_Device_
Library/Core/inc/usbd_req.h:92:6: note: expected 'uint8_t *' but argument is of 
type 'char *'
 void USBD_GetString(uint8_t *desc, uint8_t *unicode, uint16_t *len);
      ^
./usb/vcp/usbd_desc.c:261:5: warning: pointer targets in passing argument 1 of 
'USBD_GetString' differ in signedness [-Wpointer-sign]
     USBD_GetString (USBD_SERIALNUMBER_FS_STRING, USBD_StrDesc, length);    
     ^
In file included from ./usb/vcp/usbd_desc.c:31:0:
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_Device_
Library/Core/inc/usbd_req.h:92:6: note: expected 'uint8_t *' but argument is of 
type 'char *'
 void USBD_GetString(uint8_t *desc, uint8_t *unicode, uint16_t *len);
      ^
./usb/vcp/usbd_desc.c: In function 'USBD_USR_ConfigStrDescriptor':
./usb/vcp/usbd_desc.c:277:5: warning: pointer targets in passing argument 1 of 
'USBD_GetString' differ in signedness [-Wpointer-sign]
     USBD_GetString (USBD_CONFIGURATION_HS_STRING, USBD_StrDesc, length);
     ^
In file included from ./usb/vcp/usbd_desc.c:31:0:
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_Device_
Library/Core/inc/usbd_req.h:92:6: note: expected 'uint8_t *' but argument is of 
type 'char *'
 void USBD_GetString(uint8_t *desc, uint8_t *unicode, uint16_t *len);
      ^
./usb/vcp/usbd_desc.c:281:5: warning: pointer targets in passing argument 1 of 
'USBD_GetString' differ in signedness [-Wpointer-sign]
     USBD_GetString (USBD_CONFIGURATION_FS_STRING, USBD_StrDesc, length); 
     ^
In file included from ./usb/vcp/usbd_desc.c:31:0:
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_Device_
Library/Core/inc/usbd_req.h:92:6: note: expected 'uint8_t *' but argument is of 
type 'char *'
 void USBD_GetString(uint8_t *desc, uint8_t *unicode, uint16_t *len);
      ^
./usb/vcp/usbd_desc.c: In function 'USBD_USR_InterfaceStrDescriptor':
./usb/vcp/usbd_desc.c:298:5: warning: pointer targets in passing argument 1 of 
'USBD_GetString' differ in signedness [-Wpointer-sign]
     USBD_GetString (USBD_INTERFACE_HS_STRING, USBD_StrDesc, length);
     ^
In file included from ./usb/vcp/usbd_desc.c:31:0:
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_Device_
Library/Core/inc/usbd_req.h:92:6: note: expected 'uint8_t *' but argument is of 
type 'char *'
 void USBD_GetString(uint8_t *desc, uint8_t *unicode, uint16_t *len);
      ^
./usb/vcp/usbd_desc.c:302:5: warning: pointer targets in passing argument 1 of 
'USBD_GetString' differ in signedness [-Wpointer-sign]
     USBD_GetString (USBD_INTERFACE_FS_STRING, USBD_StrDesc, length);
     ^
In file included from ./usb/vcp/usbd_desc.c:31:0:
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_Device_
Library/Core/inc/usbd_req.h:92:6: note: expected 'uint8_t *' but argument is of 
type 'char *'
 void USBD_GetString(uint8_t *desc, uint8_t *unicode, uint16_t *len);
      ^
[Compiling C] ./usb/vcp/usbd_cdc_vcp.c
In file included from 
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Dri
ver/inc/usb_dcd.h:33:0,
                 from /home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_Device_Library/Core/inc/usbd_core.h:33,
                 from /home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_Device_Library/Core/inc/usbd_ioreq.h:35,
                 from ./usb/vcp/usbd_cdc_core.h:33,
                 from ./usb/vcp/usbd_cdc_vcp.h:35,
                 from ./usb/vcp/usbd_cdc_vcp.c:33:
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Dri
ver/inc/usb_core.h:392:14: warning: redundant redeclaration of 
'USB_OTG_ReadDevAllInEPItr' [-Wredundant-decls]
 uint32_t     USB_OTG_ReadDevAllInEPItr   (USB_OTG_CORE_HANDLE *pdev);
              ^
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Dri
ver/inc/usb_core.h:381:14: note: previous declaration of 
'USB_OTG_ReadDevAllInEPItr' was here
 uint32_t     USB_OTG_ReadDevAllInEPItr           (USB_OTG_CORE_HANDLE *pdev);
              ^
./usb/vcp/usbd_cdc_vcp.c: In function 'VCP_Init':
./usb/vcp/usbd_cdc_vcp.c:89:20: warning: unused variable 'NVIC_InitStructure' 
[-Wunused-variable]
   NVIC_InitTypeDef NVIC_InitStructure;
                    ^
./usb/vcp/usbd_cdc_vcp.c: In function 'VCP_DataRx':
./usb/vcp/usbd_cdc_vcp.c:269:8: warning: unused variable 'text' 
[-Wunused-variable]
   char text[40];
        ^
[Compiling C] ./usb/vcp/usbd_cdc_core.c
In file included from 
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Dri
ver/inc/usb_dcd.h:33:0,
                 from /home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_Device_Library/Core/inc/usbd_core.h:33,
                 from /home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_Device_Library/Core/inc/usbd_ioreq.h:35,
                 from ./usb/vcp/usbd_cdc_core.h:33,
                 from ./usb/vcp/usbd_cdc_core.c:67:
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Dri
ver/inc/usb_core.h:392:14: warning: redundant redeclaration of 
'USB_OTG_ReadDevAllInEPItr' [-Wredundant-decls]
 uint32_t     USB_OTG_ReadDevAllInEPItr   (USB_OTG_CORE_HANDLE *pdev);
              ^
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Dri
ver/inc/usb_core.h:381:14: note: previous declaration of 
'USB_OTG_ReadDevAllInEPItr' was here
 uint32_t     USB_OTG_ReadDevAllInEPItr           (USB_OTG_CORE_HANDLE *pdev);
              ^
./usb/vcp/usbd_cdc_core.c:136:16: warning: redundant redeclaration of 
'USBD_DeviceDesc' [-Wredundant-decls]
 extern uint8_t USBD_DeviceDesc   [USB_SIZ_DEVICE_DESC];
                ^
In file included from ./usb/vcp/usbd_cdc_core.c:68:0:
./usb/vcp/usbd_desc.h:80:17: note: previous declaration of 'USBD_DeviceDesc' 
was here
 extern  uint8_t USBD_DeviceDesc  [USB_SIZ_DEVICE_DESC];
                 ^
./usb/vcp/usbd_cdc_core.c: In function 'usbd_cdc_Setup':
./usb/vcp/usbd_cdc_core.c:577:25: warning: cast discards 
'__attribute__((noreturn))' qualifier from pointer target type [-Wcast-qual]
                         (uint8_t *)&usbd_cdc_AltSet,
                         ^
[Compiling C++] main.cpp
arm-none-eabi-g++ -c -mthumb -mcpu=cortex-m4 -mthumb-interwork -I. -gdwarf-2 
-mfpu=fpv4-sp-d16 -mfloat-abi=hard -Dgcc -DSTM32F20X -DSTM32F4XX 
-DHSE_VALUE=8000000  -DCFG_LINKER_HAS_ISR_SECTION -DUSE_STDPERIPH_DRIVER  
-DHAVE_CONFIG_H -DFALSE=false -DTRUE=true  -Os -Wall -Wimplicit  -Wcast-align 
-Wpointer-arith -Wswitch -Wredundant-decls -Wreturn-type -Wunused 
-Wa,-adhlns=main.lst  
-I/home/nikll/stm_lib/STM32F4xx_DSP_StdPeriph_Lib_V1.0.1/Libraries/STM32F4xx_Std
Periph_Driver/inc -I./usb/vcp 
-I/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_Devic
e_Library/Core/inc -I/inc 
-I/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_D
river/inc 
-I/home/nikll/stm_lib/STM32F4xx_DSP_StdPeriph_Lib_V1.0.1/Libraries/CMSIS/Device/
ST/STM32F4xx/Include -I./print -I./platform/stm32f4 
-I/home/nikll/stm_lib/STM32F4xx_DSP_StdPeriph_Lib_V1.0.1/Libraries/CMSIS/Include
 -I./lcd -I./la -Wcast-qual -MD -MP -MF .dep/main.o.d -fno-exceptions 
-fno-strict-aliasing main.cpp -o main.o 
cc1plus: warning: command line option '-Wimplicit' is valid for C/ObjC but not 
for C++ [enabled by default]
In file included from 
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Dri
ver/inc/usb_bsp.h:33:0,
                 from usb.h:11,
                 from main.cpp:5:
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Dri
ver/inc/usb_core.h:392:68: warning: redundant redeclaration of 'uint32_t 
USB_OTG_ReadDevAllInEPItr(USB_OTG_CORE_HANDLE*)' in same scope 
[-Wredundant-decls]
 uint32_t     USB_OTG_ReadDevAllInEPItr   (USB_OTG_CORE_HANDLE *pdev);
                                                                    ^
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Dri
ver/inc/usb_core.h:381:14: warning: previous declaration of 'uint32_t 
USB_OTG_ReadDevAllInEPItr(USB_OTG_CORE_HANDLE*)' [-Wredundant-decls]
 uint32_t     USB_OTG_ReadDevAllInEPItr           (USB_OTG_CORE_HANDLE *pdev);
              ^
[Compiling C++] nvic.cpp
arm-none-eabi-g++ -c -mthumb -mcpu=cortex-m4 -mthumb-interwork -I. -gdwarf-2 
-mfpu=fpv4-sp-d16 -mfloat-abi=hard -Dgcc -DSTM32F20X -DSTM32F4XX 
-DHSE_VALUE=8000000  -DCFG_LINKER_HAS_ISR_SECTION -DUSE_STDPERIPH_DRIVER  
-DHAVE_CONFIG_H -DFALSE=false -DTRUE=true  -Os -Wall -Wimplicit  -Wcast-align 
-Wpointer-arith -Wswitch -Wredundant-decls -Wreturn-type -Wunused 
-Wa,-adhlns=nvic.lst  
-I/home/nikll/stm_lib/STM32F4xx_DSP_StdPeriph_Lib_V1.0.1/Libraries/STM32F4xx_Std
Periph_Driver/inc -I./usb/vcp 
-I/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_Devic
e_Library/Core/inc -I/inc 
-I/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_D
river/inc 
-I/home/nikll/stm_lib/STM32F4xx_DSP_StdPeriph_Lib_V1.0.1/Libraries/CMSIS/Device/
ST/STM32F4xx/Include -I./print -I./platform/stm32f4 
-I/home/nikll/stm_lib/STM32F4xx_DSP_StdPeriph_Lib_V1.0.1/Libraries/CMSIS/Include
 -I./lcd -I./la -Wcast-qual -MD -MP -MF .dep/nvic.o.d -fno-exceptions 
-fno-strict-aliasing nvic.cpp -o nvic.o 
cc1plus: warning: command line option '-Wimplicit' is valid for C/ObjC but not 
for C++ [enabled by default]
[Compiling C++] usb.cpp
arm-none-eabi-g++ -c -mthumb -mcpu=cortex-m4 -mthumb-interwork -I. -gdwarf-2 
-mfpu=fpv4-sp-d16 -mfloat-abi=hard -Dgcc -DSTM32F20X -DSTM32F4XX 
-DHSE_VALUE=8000000  -DCFG_LINKER_HAS_ISR_SECTION -DUSE_STDPERIPH_DRIVER  
-DHAVE_CONFIG_H -DFALSE=false -DTRUE=true  -Os -Wall -Wimplicit  -Wcast-align 
-Wpointer-arith -Wswitch -Wredundant-decls -Wreturn-type -Wunused 
-Wa,-adhlns=usb.lst  
-I/home/nikll/stm_lib/STM32F4xx_DSP_StdPeriph_Lib_V1.0.1/Libraries/STM32F4xx_Std
Periph_Driver/inc -I./usb/vcp 
-I/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_Devic
e_Library/Core/inc -I/inc 
-I/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_D
river/inc 
-I/home/nikll/stm_lib/STM32F4xx_DSP_StdPeriph_Lib_V1.0.1/Libraries/CMSIS/Device/
ST/STM32F4xx/Include -I./print -I./platform/stm32f4 
-I/home/nikll/stm_lib/STM32F4xx_DSP_StdPeriph_Lib_V1.0.1/Libraries/CMSIS/Include
 -I./lcd -I./la -Wcast-qual -MD -MP -MF .dep/usb.o.d -fno-exceptions 
-fno-strict-aliasing usb.cpp -o usb.o 
cc1plus: warning: command line option '-Wimplicit' is valid for C/ObjC but not 
for C++ [enabled by default]
In file included from 
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Dri
ver/inc/usb_bsp.h:33:0,
                 from usb.h:11,
                 from usb.cpp:10:
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Dri
ver/inc/usb_core.h:392:68: warning: redundant redeclaration of 'uint32_t 
USB_OTG_ReadDevAllInEPItr(USB_OTG_CORE_HANDLE*)' in same scope 
[-Wredundant-decls]
 uint32_t     USB_OTG_ReadDevAllInEPItr   (USB_OTG_CORE_HANDLE *pdev);
                                                                    ^
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Dri
ver/inc/usb_core.h:381:14: warning: previous declaration of 'uint32_t 
USB_OTG_ReadDevAllInEPItr(USB_OTG_CORE_HANDLE*)' [-Wredundant-decls]
 uint32_t     USB_OTG_ReadDevAllInEPItr           (USB_OTG_CORE_HANDLE *pdev);
              ^
In file included from usb.h:11:0,
                 from usb.cpp:10:
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Dri
ver/inc/usb_bsp.h: In function 'void USB_OTG_BSP_Init(USB_OTG_CORE_HANDLE*)':
/home/nikll/stm_lib/STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Dri
ver/inc/usb_bsp.h:81:6: error: previous declaration of 'void 
USB_OTG_BSP_Init(USB_OTG_CORE_HANDLE*)' with 'C++' linkage
 void USB_OTG_BSP_Init (USB_OTG_CORE_HANDLE *pdev);
      ^
usb.cpp:42:59: error: conflicts with new declaration with 'C' linkage
 extern "C" void USB_OTG_BSP_Init(USB_OTG_CORE_HANDLE *pdev)
                                                           ^
usb.cpp: In function 'void USB_OTG_BSP_EnableInterrupt(USB_OTG_CORE_HANDLE*)':
usb.cpp:178:20: warning: unused variable 'NVIC_InitStructure' 
[-Wunused-variable]
   NVIC_InitTypeDef NVIC_InitStructure;
                    ^
gmake: *** [usb.o] Ошибка 1

Original issue reported on code.google.com by nikll....@gmail.com on 29 Jan 2014 at 10:48

@GoogleCodeExporter
Copy link
Author

Нашел вроде как решение, позаворачивать 
все содержимое хидеров библиотеки юсб в:
#ifdef __cplusplus
extern "C" {
#endif

...

#ifdef __cplusplus
}
#endif

Original comment by nikll....@gmail.com on 29 Jan 2014 at 12:42

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

When I try to compile, the first error is the same. Then I put the last comment 
on usb.h and I have another error.

-------- begin --------
arm-none-eabi-gcc (4.8.2-14ubuntu1+6) 4.8.2
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


[Linking] LogicDiscovery.elf
usb.o: In function `usbInit':
/home/usuario/logic/logic/usb.cpp:34: undefined reference to 
`USBD_Init(USB_OTG_handle*, USB_OTG_CORE_ID_TypeDef, _Device_TypeDef*, 
_Device_cb*, _USBD_USR_PROP*)'
usb.o: In function `OTG_HS_IRQHandler':
/home/usuario/logic/logic/usb.cpp:211: undefined reference to 
`USBD_OTG_ISR_Handler(USB_OTG_handle*)'
usb.o: In function `OTG_FS_IRQHandler':
/home/usuario/logic/logic/usb.cpp:205: undefined reference to 
`USBD_OTG_ISR_Handler(USB_OTG_handle*)'
collect2: error: ld returned 1 exit status
make: *** [LogicDiscovery.elf] Error 1

Original comment by acaballo...@gmail.com on 25 Oct 2014 at 7:07

@GoogleCodeExporter
Copy link
Author

Now it's compiling

Original comment by acaballo...@gmail.com on 28 Oct 2014 at 12:13

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant