Цитата(hd44780 @ May 16 2013, 12:24)

Охота пуще неволи
Это стандартные файлы из ST-шных библиотек.
Лежат обычно здесь - Libraries\STM32_USB_OTG_Driver\inc
Включите этот каталог в пути кокоса...
Если FA_WRITE не указать, то fwrite сразу же возвращается с кодом FR_DENIED. Файл при этом даже не формируется.
Добавил в проект все необходимые файлы и попёрла у меня куча ошибок компиляции. Если есть у Вас такая возможность прописать путь именно только к моему проекту не включая другие библиотеки и подсказать в чём моя ошибка.
GCC HOME: C:\CooCox\arm-2011.03-coocox\bin
compile:
[mkdir] Created dir: C:\CooCox\CoIDE\workspace\flash\flash\Debug\bin
[mkdir] Created dir: C:\CooCox\CoIDE\workspace\flash\flash\Debug\obj
[cc] 200
[cc] 25 total files to be compiled.
[cc] arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -Wall -ffunction-sections -g -O0 -c -DSTM32F407VG -DSTM32F4XX -ID:\STM32F4\lib\LIBRIARY -ID:\STM32F4\lib\LIBRIARY\FlashTest\USB -IC:\CooCox\CoIDE\workspace\flash\cmsis_boot -IC:\CooCox\CoIDE\workspace -ID:\STM32F4\lib\LIBRIARY\FlashTest -ID:\STM32F4\lib -IC:\CooCox\CoIDE\workspace\flash -IC:\CooCox\CoIDE\workspace\flash\cmsis -IC:\CooCox\CoIDE\workspace\flash\cmsis_lib\include -IC:\CooCox\CoIDE\workspace\flash\cmsis_lib -ID:\STM32F4\lib\LIBRIARY\FlashTest\FATFS D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_core.c D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usbh_hcs.c D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usbh_stdreq.c C:\CooCox\CoIDE\workspace\flash\cmsis_boot\startup\startup_stm32f4xx.c D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c D:\STM32F4\lib\LIBRIARY\FlashTest\main.c C:\CooCox\CoIDE\workspace\flash\cmsis_lib\source\stm32f4xx_rcc.c D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4xx_it.c D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usbh_msc_core.c D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usbh_core.c D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4xx_gpio.c D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usbh_msc_scsi.c C:\CooCox\CoIDE\workspace\flash\cmsis_boot\system_stm32f4xx.c D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4xx_dma.c D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usbh_usr.c D:\STM32F4\lib\LIBRIARY\FlashTest\FATFS\ccsbcs.c D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c D:\STM32F4\lib\LIBRIARY\FlashTest\FATFS\ff.c D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_hcd.c D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usbh_msc_bot.c D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4xx_exti.c D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usbh_ioreq.c D:\STM32F4\lib\LIBRIARY\FlashTest\FATFS\fattime.c D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4xx_tim.c D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_hcd_int.c
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:69:34: error: 'GPIO_Pin_12' undeclared here (not in a function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:69:44: error: 'GPIO_Pin_13' undeclared here (not in a function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:69:54: error: 'GPIO_Pin_14' undeclared here (not in a function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:70:34: error: 'GPIO_Pin_15' undeclared here (not in a function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:71:34: error: 'RCC_AHB1Periph_GPIOD' undeclared here (not in a function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:76:39: error: 'GPIO_Pin_0' undeclared here (not in a function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:78:39: error: 'RCC_AHB1Periph_GPIOA' undeclared here (not in a function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:80:45: error: 'EXTI_Line0' undeclared here (not in a function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:82:46: error: 'EXTI_PortSourceGPIOA' undeclared here (not in a function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:84:45: error: 'EXTI_PinSource0' undeclared here (not in a function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:87:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'NVIC_InitStructure'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c: In function 'STM_EVAL_LEDInit':
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:118:3: error: 'GPIO_InitTypeDef' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:118:3: note: each undeclared identifier is reported only once for each function it appears in
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:118:21: error: expected ';' before 'GPIO_InitStructure'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:121:3: warning: implicit declaration of function 'RCC_AHB1PeriphClockCmd'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:124:3: error: 'GPIO_InitStructure' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:125:34: error: 'GPIO_Mode_OUT' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:126:35: error: 'GPIO_OType_PP' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:127:34: error: 'GPIO_PuPd_UP' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:128:35: error: 'GPIO_Speed_50MHz' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:129:3: warning: implicit declaration of function 'GPIO_Init'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c: In function 'STM_EVAL_PBInit':
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:190:3: error: 'GPIO_InitTypeDef' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:190:20: error: expected ';' before 'GPIO_InitStructure'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:191:3: error: 'EXTI_InitTypeDef' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:191:20: error: expected ';' before 'EXTI_InitStructure'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:192:3: error: 'NVIC_InitTypeDef' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:192:20: error: expected ';' before 'NVIC_InitStructure'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:196:3: warning: implicit declaration of function 'RCC_APB2PeriphClockCmd'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:196:26: error: 'RCC_APB2Periph_SYSCFG' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:199:3: error: 'GPIO_InitStructure' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:199:34: error: 'GPIO_Mode_IN' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:200:34: error: 'GPIO_PuPd_NOPULL' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:207:5: warning: implicit declaration of function 'SYSCFG_EXTILineConfig'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:210:5: error: 'EXTI_InitStructure' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:211:36: error: 'EXTI_Mode_Interrupt' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:212:39: error: 'EXTI_Trigger_Rising' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:214:5: warning: implicit declaration of function 'EXTI_Init'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:217:5: error: 'NVIC_InitStructure' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:222:5: warning: implicit declaration of function 'NVIC_Init'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c: In function 'STM_EVAL_PBGetState':
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4_discovery.c:234:3: warning: implicit declaration of function 'GPIO_ReadInputDataBit'
[cc] In file included from D:\STM32F4\lib\LIBRIARY\FlashTest\main.c:3:0:
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\/stm32f4xx_conf.h:34:27: fatal error: stm32f4xx_adc.h: No such file or directory
[cc] compilation terminated.
[cc] C:\CooCox\CoIDE\workspace\flash\cmsis_lib\source\stm32f4xx_rcc.c: In function 'RCC_HSEConfig':
[cc] C:\CooCox\CoIDE\workspace\flash\cmsis_lib\source\stm32f4xx_rcc.c:240:3: warning: implicit declaration of function 'assert_param'
[cc] In file included from D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4xx_it.c:27:0:
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\/stm32f4xx_conf.h:34:27: fatal error: stm32f4xx_adc.h: No such file or directory
[cc] compilation terminated.
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4xx_gpio.c: In function 'GPIO_DeInit':
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4xx_gpio.c:123:3: warning: implicit declaration of function 'assert_param'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4xx_dma.c: In function 'DMA_DeInit':
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4xx_dma.c:191:3: warning: implicit declaration of function 'assert_param'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usbh_usr.c: In function 'USBH_USR_DeviceAttached':
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usbh_usr.c:84:2: warning: implicit declaration of function 'GPIO_SetBits'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usbh_usr.c:84:22: error: 'GPIO_Pin_14' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usbh_usr.c:84:22: note: each undeclared identifier is reported only once for each function it appears in
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usbh_usr.c: In function 'USBH_USR_DeviceDisconnected':
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usbh_usr.c:104:2: warning: implicit declaration of function 'GPIO_ResetBits'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usbh_usr.c:104:24: error: 'GPIO_Pin_14' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usbh_usr.c:105:24: error: 'GPIO_Pin_12' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usbh_usr.c: In function 'USBH_USR_MSC_Application':
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usbh_usr.c:253:22: error: 'GPIO_Pin_12' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c: In function 'USB_OTG_BSP_Init':
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:87:2: error: 'GPIO_InitTypeDef' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:87:2: note: each undeclared identifier is reported only once for each function it appears in
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:87:19: error: expected ';' before 'GPIO_InitStructure'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:90:2: warning: implicit declaration of function 'RCC_AHB1PeriphClockCmd'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:90:26: error: 'RCC_AHB1Periph_GPIOA' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:93:2: error: 'GPIO_InitStructure' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:93:32: error: 'GPIO_Pin_9' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:94:4: error: 'GPIO_Pin_11' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:95:4: error: 'GPIO_Pin_12' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:97:34: error: 'GPIO_Speed_100MHz' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:98:33: error: 'GPIO_Mode_AF' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:99:34: error: 'GPIO_OType_PP' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:100:33: error: 'GPIO_PuPd_NOPULL' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:101:2: warning: implicit declaration of function 'GPIO_Init'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:103:2: warning: implicit declaration of function 'GPIO_PinAFConfig'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:103:25: error: 'GPIO_PinSource9' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:103:41: error: 'GPIO_AF_OTG1_FS' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:104:25: error: 'GPIO_PinSource11' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:105:25: error: 'GPIO_PinSource12' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:110:33: error: 'GPIO_Pin_10' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:111:34: error: 'GPIO_OType_OD' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:112:33: error: 'GPIO_PuPd_UP' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:115:25: error: 'GPIO_PinSource10' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:118:2: warning: implicit declaration of function 'RCC_APB2PeriphClockCmd'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:118:25: error: 'RCC_APB2Periph_SYSCFG' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:119:2: warning: implicit declaration of function 'RCC_AHB2PeriphClockCmd'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:119:25: error: 'RCC_AHB2Periph_OTG_FS' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c: In function 'USB_OTG_BSP_EnableInterrupt':
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:248:2: error: 'NVIC_InitTypeDef' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:248:19: error: expected ';' before 'NVIC_InitStructure'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:250:2: warning: implicit declaration of function 'NVIC_PriorityGroupConfig'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:250:27: error: 'NVIC_PriorityGroup_1' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:252:2: error: 'NVIC_InitStructure' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:256:2: warning: implicit declaration of function 'NVIC_Init'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c: In function 'USB_OTG_BSP_DriveVBUS':
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:290:3: warning: implicit declaration of function 'GPIO_SetBits'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:290:35: error: 'GPIO_Pin_0' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:295:3: warning: implicit declaration of function 'GPIO_ResetBits'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c: In function 'USB_OTG_BSP_ConfigVBUS':
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:307:2: error: 'GPIO_InitTypeDef' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:307:19: error: expected ';' before 'GPIO_InitStructure'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:310:25: error: 'RCC_AHB1Periph_GPIOC' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:314:2: error: 'GPIO_InitStructure' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:314:32: error: 'GPIO_Pin_0' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:315:34: error: 'GPIO_Speed_50MHz' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:316:33: error: 'GPIO_Mode_OUT' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:317:34: error: 'GPIO_OType_PP' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:318:33: error: 'GPIO_PuPd_NOPULL' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c: In function 'USB_OTG_BSP_TimeInit':
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:339:2: error: 'NVIC_InitTypeDef' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:339:19: error: expected ';' before 'NVIC_InitStructure'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:342:2: warning: implicit declaration of function 'NVIC_SetVectorTable'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:342:22: error: 'NVIC_VectTab_FLASH' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:345:27: error: 'NVIC_PriorityGroup_2' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:348:2: error: 'NVIC_InitStructure' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:355:2: warning: implicit declaration of function 'RCC_APB1PeriphClockCmd'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:355:25: error: 'RCC_APB1Periph_TIM2' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c: In function 'USB_OTG_BSP_TimerIRQ':
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:410:2: warning: implicit declaration of function 'TIM_GetITStatus'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:410:28: error: 'TIM_IT_Update' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:412:3: warning: implicit declaration of function 'TIM_ClearITPendingBit'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:419:4: warning: implicit declaration of function 'TIM_Cmd'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c: In function 'BSP_SetTime':
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:451:2: error: 'TIM_TimeBaseInitTypeDef' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:451:27: error: expected ';' before 'TIM_TimeBaseStructure'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:454:2: warning: implicit declaration of function 'TIM_ITConfig'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:454:21: error: 'TIM_IT_Update' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:459:3: error: 'TIM_TimeBaseStructure' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:467:42: error: 'TIM_CounterMode_Up' undeclared (first use in this function)
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:469:2: warning: implicit declaration of function 'TIM_TimeBaseInit'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\USB\usb_bsp.c:472:2: warning: implicit declaration of function 'TIM_ARRPreloadConfig'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4xx_exti.c: In function 'EXTI_Init':
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4xx_exti.c:124:3: warning: implicit declaration of function 'assert_param'
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4xx_tim.c: In function 'TIM_DeInit':
[cc] D:\STM32F4\lib\LIBRIARY\FlashTest\stm32f4xx_tim.c:197:3: warning: implicit declaration of function 'assert_param'
BUILD FAILED
Total time: 5 seconds