lazylinol / logicdiscovery Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/logicdiscovery
Automatically exported from code.google.com/p/logicdiscovery
How can this project run on this board?
Original issue reported on code.google.com by [email protected]
on 26 Nov 2014 at 2:11
Dear Flexz, please, put link to github on https://code.google.com/p/logicdiscovery
Thanks
Имеется последовательность импульсов с
периодом 4 с. Длительность импульса 1 с
указывается верно при sample rate 2кГц и выше.
При понижении smaple rate почему-то указываются
совершенно другие значения. Возможно я
неверно понимаю логику работы анализатора,
хотелось бы прояснить этот момент. На мой
взгляд просто должен был быть записан
более длительный образец с данными.
Используется ols клиент 0.9.7.1 в виртуальной
машине win xp в parallels.
Более подробно с картинками в приложенном
.pdf.
Original issue reported on code.google.com by [email protected]
on 7 Jan 2015 at 8:36
Attachments:
I've tried to follow the instructions but my stm32f4-discovery seems to not
work. stm32 is flashed with the supplied bin file, after power supply big
red/green LD1 is blinking and program from http://www.lxtreme.nl/ols/ shows
"Detection failed! No such port!".
I've tested it on Win7 and Ubuntu and both has the same failure. I've checked
that stm32f4-discovery COM port is properly recognized on both OS (via device
manager / dmesg).
Any ideas what might go wrong?
Original issue reported on code.google.com by [email protected]
on 28 Nov 2013 at 11:37
[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 [email protected]
on 29 Jan 2014 at 10:48
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.