Forum: Mikrocontroller und Digitale Elektronik Umstieg von Atollic zu CooCox CoIDE


von Patrick B. (p51d)


Lesenswert?

Hallo miteinander

Bei meinen Experimenten mit dem STM32F4 bin ich jetzt an die Grenzen 
gestossen, die die Lite-Version von Atollic Truestudio hergibt. Auf der 
Suche nach einer unbeschrenkten Alternative bin ich dann auf die CoIDE 
gestossen, welche sehr vielversprechend ist.
Nur stellen sich bei mir jetzt ein paar Probleme beim portieren von 
bisherigen Projekten.
Hier ein kleiner Ausschnitt aus dem Buil-Report:
1
 [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_audio_codec.c:198:1: error: unknown type name 'DMA_InitTypeDef'
2
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_audio_codec.c:199:1: error: unknown type name 'DMA_InitTypeDef'
3
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_audio_codec.c:260:36: error: 'RCC_AHB1Periph_DMA1' undeclared here (not in a function)
4
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_audio_codec.c:263:36: error: 'DMA_Channel_0' undeclared here (not in a function)
5
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_audio_codec.c:265:36: error: 'DMA_FLAG_TCIF7' undeclared here (not in a function)
6
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_audio_codec.c:266:36: error: 'DMA_FLAG_HTIF7' undeclared here (not in a function)
7
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_audio_codec.c:267:36: error: 'DMA_FLAG_FEIF7' undeclared here (not in a function)
8
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_audio_codec.c:268:36: error: 'DMA_FLAG_TEIF7' undeclared here (not in a function)
9
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_audio_codec.c:269:36: error: 'DMA_FLAG_DMEIF7' undeclared here (not in a function)
10
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_audio_codec.c: In function 'EVAL_AUDIO_SetAudioInterface':
11
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_audio_codec.c:302:30: error: 'DMA_FLAG_TCIF0' undeclared (first use in this function)
12
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_audio_codec.c:302:30: note: each undeclared identifier is reported only once for each function it appears in
13
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_audio_codec.c:303:30: error: 'DMA_FLAG_HTIF0' undeclared (first use in this function)
14
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_audio_codec.c:304:30: error: 'DMA_FLAG_FEIF0' undeclared (first use in this function)
15
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_audio_codec.c:305:30: error: 'DMA_FLAG_TEIF0' undeclared (first use in this function)
16
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_audio_codec.c:306:30: error: 'DMA_FLAG_DMEIF0' undeclared (first use in this function)
17
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_audio_codec.c: In function 'Audio_MAL_IRQHandler':
18
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_audio_codec.c:476:3: warning: implicit declaration of function 'DMA_GetFlagStatus' [-Wimplicit-function-declaration]
19
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_audio_codec.c:483:7: warning: implicit declaration of function 'DMA_GetCmdStatus' [-Wimplicit-function-declaration]
20
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_audio_codec.c:487:7: warning: implicit declaration of function 'DMA_ClearFlag' [-Wimplicit-function-declaration]
21
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_audio_codec.c:490:24: error: request for member 'DMA_Memory0BaseAddr' in something not a structure or union
22
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_audio_codec.c:491:24: error: request for member 'DMA_BufferSize' in something not a structure or union

Die Build-Datei ist so gesetzt (Inlcue-Paths):
1
-.;
2
-cmsis; 
3
-cmsis_boot; 
4
-cmsis_lib/include; 
5
-libraries/stm32_usb_device_library/class/cdc/inc; -libraries/stm32_usb_device_library/core/inc; -libraries/stm32_usb_otg_driver/inc; 
6
-libraries/stm32f4-discovery;

Wenn ich beim Editor dann einen Fehler begutachte, wird mir das PopUp 
eingebledet welches ja eigentlich den unbekannten Teil definiert, also 
ist er ja nicht unbekannt.

Kann mir da jemand helfen? Was habe ich vergessen oder falsch gemacht?
Besten Dank für die Antworten
MFG
Patrick

von Timmo H. (masterfx)


Lesenswert?

Du musst im Projekt noch die i2c lib für den f4 einbinden. Da ist die 
"stm32f4xx_dma.h" mit drin, in welcher deine Fehlen #defines sind.

von Patrick B. (p51d)


Lesenswert?

Die I2C-Lib ist schon dabei:
cmsis_lib:
1
misc.h
2
stm32f4xx_adc.h
3
stm32f4xx_dma.h
4
stm32f4xx_gpio.h
5
stm32f4xx_i2c.h
6
stm32f4xx_rcc.h

Wie gesagt, es ist nur ein Auszug der Fehler... Hier ist der noch der 
Rest:
1
       [cc] G:\ARM\Projects\USB_VCP\main.c: In function 'Fail_Handler':
2
       [cc] G:\ARM\Projects\USB_VCP\main.c:383:3: warning: implicit declaration of function 'FLASH_EraseSector' [-Wimplicit-function-declaration]
3
       [cc] G:\ARM\Projects\USB_VCP\main.c:383:21: error: 'FLASH_Sector_11' undeclared (first use in this function)
4
       [cc] G:\ARM\Projects\USB_VCP\main.c:383:21: note: each undeclared identifier is reported only once for each function it appears in
5
       [cc] G:\ARM\Projects\USB_VCP\main.c:383:38: error: 'VoltageRange_3' undeclared (first use in this function)
6
       [cc] G:\ARM\Projects\USB_VCP\main.c:385:3: warning: implicit declaration of function 'FLASH_ProgramWord' [-Wimplicit-function-declaration]
7
       [cc] G:\ARM\Projects\USB_VCP\stm32f4xx_it.c: In function 'OTG_FS_WKUP_IRQHandler':
8
       [cc] G:\ARM\Projects\USB_VCP\stm32f4xx_it.c:187:3: warning: implicit declaration of function 'EXTI_ClearITPendingBit' [-Wimplicit-function-declaration]
9
       [cc] G:\ARM\Projects\USB_VCP\stm32f4xx_it.c:187:26: error: 'EXTI_Line18' undeclared (first use in this function)
10
       [cc] G:\ARM\Projects\USB_VCP\stm32f4xx_it.c:187:26: note: each undeclared identifier is reported only once for each function it appears in
11
       [cc] G:\ARM\Projects\USB_VCP\usbd_desc.c: In function 'USBD_USR_ProductStrDescriptor':
12
       [cc] G:\ARM\Projects\USB_VCP\usbd_desc.c:219:5: warning: pointer targets in passing argument 1 of 'USBD_GetString' differ in signedness [-Wpointer-sign]
13
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32_USB_Device_Library\Core\inc/usbd_req.h:92:6: note: expected 'uint8_t *' but argument is of type 'char *'
14
       [cc] G:\ARM\Projects\USB_VCP\usbd_desc.c:223:5: warning: pointer targets in passing argument 1 of 'USBD_GetString' differ in signedness [-Wpointer-sign]
15
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32_USB_Device_Library\Core\inc/usbd_req.h:92:6: note: expected 'uint8_t *' but argument is of type 'char *'
16
       [cc] G:\ARM\Projects\USB_VCP\usbd_desc.c: In function 'USBD_USR_ManufacturerStrDescriptor':
17
       [cc] G:\ARM\Projects\USB_VCP\usbd_desc.c:237:3: warning: pointer targets in passing argument 1 of 'USBD_GetString' differ in signedness [-Wpointer-sign]
18
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32_USB_Device_Library\Core\inc/usbd_req.h:92:6: note: expected 'uint8_t *' but argument is of type 'char *'
19
       [cc] G:\ARM\Projects\USB_VCP\usbd_desc.c: In function 'USBD_USR_SerialStrDescriptor':
20
       [cc] G:\ARM\Projects\USB_VCP\usbd_desc.c:252:5: warning: pointer targets in passing argument 1 of 'USBD_GetString' differ in signedness [-Wpointer-sign]
21
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32_USB_Device_Library\Core\inc/usbd_req.h:92:6: note: expected 'uint8_t *' but argument is of type 'char *'
22
       [cc] G:\ARM\Projects\USB_VCP\usbd_desc.c:256:5: warning: pointer targets in passing argument 1 of 'USBD_GetString' differ in signedness [-Wpointer-sign]
23
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32_USB_Device_Library\Core\inc/usbd_req.h:92:6: note: expected 'uint8_t *' but argument is of type 'char *'
24
       [cc] G:\ARM\Projects\USB_VCP\usbd_desc.c: In function 'USBD_USR_ConfigStrDescriptor':
25
       [cc] G:\ARM\Projects\USB_VCP\usbd_desc.c:272:5: warning: pointer targets in passing argument 1 of 'USBD_GetString' differ in signedness [-Wpointer-sign]
26
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32_USB_Device_Library\Core\inc/usbd_req.h:92:6: note: expected 'uint8_t *' but argument is of type 'char *'
27
       [cc] G:\ARM\Projects\USB_VCP\usbd_desc.c:276:5: warning: pointer targets in passing argument 1 of 'USBD_GetString' differ in signedness [-Wpointer-sign]
28
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32_USB_Device_Library\Core\inc/usbd_req.h:92:6: note: expected 'uint8_t *' but argument is of type 'char *'
29
       [cc] G:\ARM\Projects\USB_VCP\usbd_desc.c: In function 'USBD_USR_InterfaceStrDescriptor':
30
       [cc] G:\ARM\Projects\USB_VCP\usbd_desc.c:293:5: warning: pointer targets in passing argument 1 of 'USBD_GetString' differ in signedness [-Wpointer-sign]
31
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32_USB_Device_Library\Core\inc/usbd_req.h:92:6: note: expected 'uint8_t *' but argument is of type 'char *'
32
       [cc] G:\ARM\Projects\USB_VCP\usbd_desc.c:297:5: warning: pointer targets in passing argument 1 of 'USBD_GetString' differ in signedness [-Wpointer-sign]
33
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32_USB_Device_Library\Core\inc/usbd_req.h:92:6: note: expected 'uint8_t *' but argument is of type 'char *'
34
       [cc] G:\ARM\Projects\USB_VCP\usbd_cdc_vcp.c:51:1: error: unknown type name 'USART_InitTypeDef'
35
       [cc] G:\ARM\Projects\USB_VCP\usb_bsp.c:96:3: error: unknown type name 'GPIO_InitTypeDef'
36
       [cc] G:\ARM\Projects\USB_VCP\usb_bsp.c: In function 'USB_OTG_BSP_Init':
37
       [cc] G:\ARM\Projects\USB_VCP\usb_bsp.c:108:3: warning: implicit declaration of function 'RCC_AHB1PeriphClockCmd' [-Wimplicit-function-declaration]
38
       [cc] G:\ARM\Projects\USB_VCP\usb_bsp.c:108:27: error: 'RCC_AHB1Periph_GPIOA' undeclared (first use in this function)
39
       [cc] G:\ARM\Projects\USB_VCP\usb_bsp.c:108:27: note: each undeclared identifier is reported only once for each function it appears in
40
       [cc] G:\ARM\Projects\USB_VCP\usb_bsp.c:111:21: error: request for member 'GPIO_Pin' in something not a structure or union
41
       [cc] G:\ARM\Projects\USB_VCP\usb_bsp.c:111:33: error: 'GPIO_Pin_8' undeclared (first use in this function)
42
       [cc] G:\ARM\Projects\USB_VCP\usb_bsp.c:112:5: error: 'GPIO_Pin_9' undeclared (first use in this function)
43
       [cc] G:\ARM\Projects\USB_VCP\usb_bsp.c:113:7: error: 'GPIO_Pin_11' undeclared (first use in this function)
44
       [cc] G:\ARM\Projects\USB_VCP\usb_bsp.c:114:9: error: 'GPIO_Pin_12' undeclared (first use in this function)
45
       [cc] G:\ARM\Projects\USB_VCP\usb_bsp.c:116:21: error: request for member 'GPIO_Speed' in something not a structure or union
46
       [cc] G:\ARM\Projects\USB_VCP\usb_bsp.c:116:35: error: 'GPIO_Speed_100MHz' undeclared (first use in this function)
47
       [cc] G:\ARM\Projects\USB_VCP\usb_bsp.c:117:21: error: request for member 'GPIO_Mode' in something not a structure or union
48
       [cc] G:\ARM\Projects\USB_VCP\usb_bsp.c:117:34: error: 'GPIO_Mode_AF' undeclared (first use in this function)
49
       [cc] G:\ARM\Projects\USB_VCP\usb_bsp.c:118:21: error: request for member 'GPIO_OType' in something not a structure or union
50
       [cc] G:\ARM\Projects\USB_VCP\usb_bsp.c:118:35: error: 'GPIO_OType_PP' undeclared (first use in this function)
51
       [cc] G:\ARM\Projects\USB_VCP\usb_bsp.c:119:21: error: request for member 'GPIO_PuPd' in something not a structure or union
52
       [cc] G:\ARM\Projects\USB_VCP\usb_bsp.c:119:34: error: 'GPIO_PuPd_NOPULL' undeclared (first use in this function)
53
       [cc] G:\ARM\Projects\USB_VCP\usb_bsp.c:120:3: warning: implicit declaration of function 'GPIO_Init' [-Wimplicit-function-declaration]
54
       [cc] G:\ARM\Projects\USB_VCP\usb_bsp.c:122:3: warning: implicit declaration of function 'GPIO_PinAFConfig' [-Wimplicit-function-declaration]
55
       [cc] G:\ARM\Projects\USB_VCP\usb_bsp.c:122:26: error: 'GPIO_PinSource8' undeclared (first use in this function)
56
       [cc] G:\ARM\Projects\USB_VCP\usb_bsp.c:122:42: error: 'GPIO_AF_OTG1_FS' undeclared (first use in this function)
57
       [cc] G:\ARM\Projects\USB_VCP\usb_bsp.c:123:26: error: 'GPIO_PinSource9' undeclared (first use in this function)
58
       [cc] G:\ARM\Projects\USB_VCP\usb_bsp.c:124:26: error: 'GPIO_PinSource11' undeclared (first use in this function)
59
       [cc] G:\ARM\Projects\USB_VCP\usb_bsp.c:125:26: error: 'GPIO_PinSource12' undeclared (first use in this function)
60
       [cc] G:\ARM\Projects\USB_VCP\usb_bsp.c:130:21: error: request for member 'GPIO_Pin' in something not a structure or union
61
       [cc] G:\ARM\Projects\USB_VCP\usb_bsp.c:130:34: error: 'GPIO_Pin_10' undeclared (first use in this function)
62
       [cc] G:\ARM\Projects\USB_VCP\usb_bsp.c:131:21: error: request for member 'GPIO_OType' in something not a structure or union
63
       [cc] G:\ARM\Projects\USB_VCP\usb_bsp.c:131:35: error: 'GPIO_OType_OD' undeclared (first use in this function)
64
       [cc] G:\ARM\Projects\USB_VCP\usb_bsp.c:132:21: error: request for member 'GPIO_PuPd' in something not a structure or union
65
       [cc] G:\ARM\Projects\USB_VCP\usb_bsp.c:132:34: error: 'GPIO_PuPd_UP' undeclared (first use in this function)
66
       [cc] G:\ARM\Projects\USB_VCP\usb_bsp.c:133:21: error: request for member 'GPIO_Speed' in something not a structure or union
67
       [cc] G:\ARM\Projects\USB_VCP\usb_bsp.c:135:26: error: 'GPIO_PinSource10' undeclared (first use in this function)
68
       [cc] G:\ARM\Projects\USB_VCP\usb_bsp.c:137:3: warning: implicit declaration of function 'RCC_APB2PeriphClockCmd' [-Wimplicit-function-declaration]
69
       [cc] G:\ARM\Projects\USB_VCP\usb_bsp.c:137:26: error: 'RCC_APB2Periph_SYSCFG' undeclared (first use in this function)
70
       [cc] G:\ARM\Projects\USB_VCP\usb_bsp.c:138:3: warning: implicit declaration of function 'RCC_AHB2PeriphClockCmd' [-Wimplicit-function-declaration]
71
       [cc] G:\ARM\Projects\USB_VCP\usb_bsp.c:138:26: error: 'RCC_AHB2Periph_OTG_FS' undeclared (first use in this function)
72
       [cc] G:\ARM\Projects\USB_VCP\usb_bsp.c:256:3: warning: implicit declaration of function 'RCC_APB1PeriphResetCmd' [-Wimplicit-function-declaration]
73
       [cc] G:\ARM\Projects\USB_VCP\usb_bsp.c:256:26: error: 'RCC_APB1Periph_PWR' undeclared (first use in this function)
74
       [cc] G:\ARM\Projects\USB_VCP\usb_bsp.c:301:3: warning: implicit declaration of function 'EXTI_ClearITPendingBit' [-Wimplicit-function-declaration]
75
       [cc] G:\ARM\Projects\USB_VCP\usb_bsp.c:301:26: error: 'EXTI_Line0' undeclared (first use in this function)
76
       [cc] G:\ARM\Projects\USB_VCP\usb_bsp.c: In function 'USB_OTG_BSP_EnableInterrupt':
77
       [cc] G:\ARM\Projects\USB_VCP\usb_bsp.c:311:3: error: unknown type name 'NVIC_InitTypeDef'
78
       [cc] G:\ARM\Projects\USB_VCP\usb_bsp.c:313:3: warning: implicit declaration of function 'NVIC_PriorityGroupConfig' [-Wimplicit-function-declaration]
79
       [cc] G:\ARM\Projects\USB_VCP\usb_bsp.c:313:28: error: 'NVIC_PriorityGroup_1' undeclared (first use in this function)
80
       [cc] G:\ARM\Projects\USB_VCP\usb_bsp.c:317:21: error: request for member 'NVIC_IRQChannel' in something not a structure or union
81
       [cc] G:\ARM\Projects\USB_VCP\usb_bsp.c:319:21: error: request for member 'NVIC_IRQChannelPreemptionPriority' in something not a structure or union
82
       [cc] G:\ARM\Projects\USB_VCP\usb_bsp.c:320:21: error: request for member 'NVIC_IRQChannelSubPriority' in something not a structure or union
83
       [cc] G:\ARM\Projects\USB_VCP\usb_bsp.c:321:21: error: request for member 'NVIC_IRQChannelCmd' in something not a structure or union
84
       [cc] G:\ARM\Projects\USB_VCP\usb_bsp.c:322:3: warning: implicit declaration of function 'NVIC_Init' [-Wimplicit-function-declaration]
85
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c: In function 'LIS302DL_Write':
86
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:274:3: warning: implicit declaration of function 'GPIO_ResetBits' [-Wimplicit-function-declaration]
87
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:274:3: error: 'GPIO_Pin_3' undeclared (first use in this function)
88
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:274:3: note: each undeclared identifier is reported only once for each function it appears in
89
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:287:3: warning: implicit declaration of function 'GPIO_SetBits' [-Wimplicit-function-declaration]
90
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c: In function 'LIS302DL_Read':
91
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:308:3: error: 'GPIO_Pin_3' undeclared (first use in this function)
92
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c: In function 'LIS302DL_LowLevel_Init':
93
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:370:3: error: unknown type name 'GPIO_InitTypeDef'
94
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:371:3: error: unknown type name 'SPI_InitTypeDef'
95
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:374:3: warning: implicit declaration of function 'RCC_APB2PeriphClockCmd' [-Wimplicit-function-declaration]
96
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:374:26: error: 'RCC_APB2Periph_SPI1' undeclared (first use in this function)
97
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:377:3: warning: implicit declaration of function 'RCC_AHB1PeriphClockCmd' [-Wimplicit-function-declaration]
98
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:377:26: error: 'RCC_AHB1Periph_GPIOA' undeclared (first use in this function)
99
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:380:26: error: 'RCC_AHB1Periph_GPIOE' undeclared (first use in this function)
100
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:388:3: warning: implicit declaration of function 'GPIO_PinAFConfig' [-Wimplicit-function-declaration]
101
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:388:48: error: 'GPIO_PinSource5' undeclared (first use in this function)
102
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:388:73: error: 'GPIO_AF_SPI1' undeclared (first use in this function)
103
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:389:49: error: 'GPIO_PinSource6' undeclared (first use in this function)
104
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:390:49: error: 'GPIO_PinSource7' undeclared (first use in this function)
105
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:392:21: error: request for member 'GPIO_Mode' in something not a structure or union
106
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:392:34: error: 'GPIO_Mode_AF' undeclared (first use in this function)
107
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:393:21: error: request for member 'GPIO_OType' in something not a structure or union
108
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:393:35: error: 'GPIO_OType_PP' undeclared (first use in this function)
109
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:394:21: error: request for member 'GPIO_PuPd' in something not a structure or union
110
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:394:35: error: 'GPIO_PuPd_DOWN' undeclared (first use in this function)
111
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:395:21: error: request for member 'GPIO_Speed' in something not a structure or union
112
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:395:35: error: 'GPIO_Speed_50MHz' undeclared (first use in this function)
113
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:398:21: error: request for member 'GPIO_Pin' in something not a structure or union
114
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:398:33: error: 'GPIO_Pin_5' undeclared (first use in this function)
115
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:399:3: warning: implicit declaration of function 'GPIO_Init' [-Wimplicit-function-declaration]
116
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:402:21: error: request for member 'GPIO_Pin' in something not a structure or union
117
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:402:34: error: 'GPIO_Pin_7' undeclared (first use in this function)
118
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:406:21: error: request for member 'GPIO_Pin' in something not a structure or union
119
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:406:33: error: 'GPIO_Pin_6' undeclared (first use in this function)
120
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:410:3: warning: implicit declaration of function 'SPI_I2S_DeInit' [-Wimplicit-function-declaration]
121
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:411:20: error: request for member 'SPI_Direction' in something not a structure or union
122
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:411:37: error: 'SPI_Direction_2Lines_FullDuplex' undeclared (first use in this function)
123
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:412:20: error: request for member 'SPI_DataSize' in something not a structure or union
124
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:412:36: error: 'SPI_DataSize_8b' undeclared (first use in this function)
125
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:413:20: error: request for member 'SPI_CPOL' in something not a structure or union
126
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:413:32: error: 'SPI_CPOL_Low' undeclared (first use in this function)
127
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:414:20: error: request for member 'SPI_CPHA' in something not a structure or union
128
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:414:32: error: 'SPI_CPHA_1Edge' undeclared (first use in this function)
129
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:415:20: error: request for member 'SPI_NSS' in something not a structure or union
130
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:415:31: error: 'SPI_NSS_Soft' undeclared (first use in this function)
131
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:416:20: error: request for member 'SPI_BaudRatePrescaler' in something not a structure or union
132
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:416:45: error: 'SPI_BaudRatePrescaler_4' undeclared (first use in this function)
133
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:417:20: error: request for member 'SPI_FirstBit' in something not a structure or union
134
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:417:36: error: 'SPI_FirstBit_MSB' undeclared (first use in this function)
135
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:418:20: error: request for member 'SPI_CRCPolynomial' in something not a structure or union
136
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:419:20: error: request for member 'SPI_Mode' in something not a structure or union
137
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:419:32: error: 'SPI_Mode_Master' undeclared (first use in this function)
138
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:420:3: warning: implicit declaration of function 'SPI_Init' [-Wimplicit-function-declaration]
139
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:423:3: warning: implicit declaration of function 'SPI_Cmd' [-Wimplicit-function-declaration]
140
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:426:21: error: request for member 'GPIO_Pin' in something not a structure or union
141
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:426:33: error: 'GPIO_Pin_3' undeclared (first use in this function)
142
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:427:21: error: request for member 'GPIO_Mode' in something not a structure or union
143
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:427:34: error: 'GPIO_Mode_OUT' undeclared (first use in this function)
144
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:428:21: error: request for member 'GPIO_OType' in something not a structure or union
145
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:429:21: error: request for member 'GPIO_Speed' in something not a structure or union
146
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:436:21: error: request for member 'GPIO_Pin' in something not a structure or union
147
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:436:33: error: 'GPIO_Pin_0' undeclared (first use in this function)
148
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:437:21: error: request for member 'GPIO_Mode' in something not a structure or union
149
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:437:34: error: 'GPIO_Mode_IN' undeclared (first use in this function)
150
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:438:21: error: request for member 'GPIO_OType' in something not a structure or union
151
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:439:21: error: request for member 'GPIO_Speed' in something not a structure or union
152
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:440:21: error: request for member 'GPIO_PuPd' in something not a structure or union
153
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:440:35: error: 'GPIO_PuPd_NOPULL' undeclared (first use in this function)
154
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:443:21: error: request for member 'GPIO_Pin' in something not a structure or union
155
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:443:33: error: 'GPIO_Pin_1' undeclared (first use in this function)
156
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c: In function 'LIS302DL_SendByte':
157
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:457:3: warning: implicit declaration of function 'SPI_I2S_GetFlagStatus' [-Wimplicit-function-declaration]
158
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:457:46: error: 'SPI_I2S_FLAG_TXE' undeclared (first use in this function)
159
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:463:3: warning: implicit declaration of function 'SPI_I2S_SendData' [-Wimplicit-function-declaration]
160
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:467:46: error: 'SPI_I2S_FLAG_RXNE' undeclared (first use in this function)
161
       [cc] G:\ARM\Projects\USB_VCP\Libraries\STM32F4-Discovery\stm32f4_discovery_lis302dl.c:473:3: warning: implicit declaration of function 'SPI_I2S_ReceiveData' [-Wimplicit-function-declaration]
Ebenfalls sind noch viele Warnungen dabei, dies vorher bei Atollic nicht 
gegeben hat.
Ich habe schon gelesen, dass "exclude from build" angewand wurde. Dies 
kann ich mir aber nicht vorstellen und diese Funktion existiert sowieso 
bei der Version 1.6.2 nicht mehr (konnte sie nicht finden).

von Michael F. (startrekmichi)


Lesenswert?

Hast du in der "stm32f4xx_conf.h" alle benötigten #includes 
einkommentiert? Das wird nämlich blöderweise nicht automatisch gemacht, 
wenn du die Komponenten im Repository aktivierst.

von Patrick B. (p51d)


Lesenswert?

Michael Frangenberg schrieb:
> Das wird nämlich blöderweise nicht automatisch gemacht,
> wenn du die Komponenten im Repository aktivierst

Danke, das war die Lösung.
Wäre aber eine kleinigkeit, dies noch zu ändern... Schade.

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.