با سلام
دوستان من روی برد stm32f4 discovery کار میکنم.
سوال این جاست که هنگامی که مثال های خود ST رو rebuild میکنم ، هیچ مشکلی به وجود نمیاد و پروژه کامپایل میشه. امّا زمانی که دقیقاً (عیناً) همون پروژه رو میخواهیم خودمون به وجود بیاریم ( تمامی کتابخونه های مورد نیاز داخل پوشه پروژه کپی شده و داخل پروژه include شده اند) ، در پنجره build out پیغام های زیر نمایش داده میشود و نهایتاً پروژه کامپایل نمیشود :
کد:Rebuild target 'Target 1' compiling main.c... main.c(34): error: #20: identifier "GPIO_InitTypeDef" is undefined main.c(58): warning: #223-D: function "RCC_AHB1PeriphClockCmd" declared implicitly main.c(58): error: #20: identifier "RCC_AHB1Periph_GPIOD" is undefined main.c(61): error: #20: identifier "GPIO_Pin_12" is undefined main.c(61): error: #20: identifier "GPIO_Pin_13" is undefined main.c(61): error: #20: identifier "GPIO_Pin_14" is undefined main.c(61): error: #20: identifier "GPIO_Pin_15" is undefined main.c(62): error: #20: identifier "GPIO_Mode_OUT" is undefined main.c(63): error: #20: identifier "GPIO_OType_PP" is undefined main.c(64): error: #20: identifier "GPIO_Speed_100MHz" is undefined main.c(65): error: #20: identifier "GPIO_PuPd_NOPULL" is undefined main.c(66): warning: #223-D: function "GPIO_Init" declared implicitly main.c(71): warning: #223-D: function "GPIO_SetBits" declared implicitly main.c(94): warning: #223-D: function "GPIO_ResetBits" declared implicitly compiling stm32f4xx_it.c... compiling system_stm32f4xx.c... compiling stm32f4_discovery.c... stm32f4_discovery.c(69): error: #20: identifier "GPIO_Pin_12" is undefined stm32f4_discovery.c(69): error: #20: identifier "GPIO_Pin_13" is undefined stm32f4_discovery.c(69): error: #20: identifier "GPIO_Pin_14" is undefined stm32f4_discovery.c(70): error: #20: identifier "GPIO_Pin_15" is undefined stm32f4_discovery.c(71): error: #20: identifier "RCC_AHB1Periph_GPIOD" is undefined stm32f4_discovery.c(76): error: #20: identifier "GPIO_Pin_0" is undefined stm32f4_discovery.c(78): error: #20: identifier "RCC_AHB1Periph_GPIOA" is undefined stm32f4_discovery.c(80): error: #20: identifier "EXTI_Line0" is undefined stm32f4_discovery.c(82): error: #20: identifier "EXTI_PortSourceGPIOA" is undefined stm32f4_discovery.c(84): error: #20: identifier "EXTI_PinSource0" is undefined stm32f4_discovery.c(87): error: #20: identifier "NVIC_InitTypeDef" is undefined stm32f4_discovery.c(118): error: #20: identifier "GPIO_InitTypeDef" is undefined stm32f4_discovery.c(121): warning: #223-D: function "RCC_AHB1PeriphClockCmd" declared implicitly stm32f4_discovery.c(125): error: #20: identifier "GPIO_Mode_OUT" is undefined stm32f4_discovery.c(126): error: #20: identifier "GPIO_OType_PP" is undefined stm32f4_discovery.c(127): error: #20: identifier "GPIO_PuPd_UP" is undefined stm32f4_discovery.c(128): error: #20: identifier "GPIO_Speed_50MHz" is undefined stm32f4_discovery.c(129): warning: #223-D: function "GPIO_Init" declared implicitly stm32f4_discovery.c(190): error: #20: identifier "GPIO_InitTypeDef" is undefined stm32f4_discovery.c(191): error: #20: identifier "EXTI_InitTypeDef" is undefined stm32f4_discovery.c(192): error: #20: identifier "NVIC_InitTypeDef" is undefined stm32f4_discovery.c(195): warning: #223-D: function "RCC_AHB1PeriphClockCmd" declared implicitly stm32f4_discovery.c(196): warning: #223-D: function "RCC_APB2PeriphClockCmd" declared implicitly stm32f4_discovery.c(196): error: #20: identifier "RCC_APB2Periph_SYSCFG" is undefined stm32f4_discovery.c(199): error: #20: identifier "GPIO_Mode_IN" is undefined stm32f4_discovery.c(200): error: #20: identifier "GPIO_PuPd_NOPULL" is undefined stm32f4_discovery.c(202): warning: #223-D: function "GPIO_Init" declared implicitly stm32f4_discovery.c(207): warning: #223-D: function "SYSCFG_EXTILineConfig" declared implicitly stm32f4_discovery.c(211): error: #20: identifier "EXTI_Mode_Interrupt" is undefined stm32f4_discovery.c(212): error: #20: identifier "EXTI_Trigger_Rising" is undefined stm32f4_discovery.c(214): warning: #223-D: function "EXTI_Init" declared implicitly stm32f4_discovery.c(222): warning: #223-D: function "NVIC_Init" declared implicitly stm32f4_discovery.c(234): warning: #223-D: function "GPIO_ReadInputDataBit" declared implicitly compiling misc.c... misc.c(115): warning: #223-D: function "assert_param" declared implicitly misc.c(135): warning: #223-D: function "assert_param" declared implicitly misc.c(177): warning: #223-D: function "assert_param" declared implicitly misc.c(196): warning: #223-D: function "assert_param" declared implicitly misc.c(220): warning: #223-D: function "assert_param" declared implicitly compiling stm32f4xx_exti.c... stm32f4xx_exti.c(124): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_exti.c(193): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_exti.c(224): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_exti.c(246): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_exti.c(262): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_exti.c(285): warning: #223-D: function "assert_param" declared implicitly compiling stm32f4xx_gpio.c... stm32f4xx_gpio.c(123): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_gpio.c(187): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_gpio.c(260): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_gpio.c(304): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_gpio.c(326): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_gpio.c(343): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_gpio.c(365): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_gpio.c(383): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_gpio.c(402): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_gpio.c(422): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_gpio.c(445): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_gpio.c(459): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_gpio.c(535): warning: #223-D: function "assert_param" declared implicitly compiling stm32f4xx_syscfg.c... stm32f4xx_syscfg.c(105): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_syscfg.c(124): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_syscfg.c(142): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_syscfg.c(160): warning: #223-D: function "assert_param" declared implicitly compiling stm32f4xx_rcc.c... stm32f4xx_rcc.c(240): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_rcc.c(296): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_rcc.c(331): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_rcc.c(356): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_rcc.c(396): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_rcc.c(439): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_rcc.c(462): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_rcc.c(488): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_rcc.c(503): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_rcc.c(521): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_rcc.c(548): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_rcc.c(586): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_rcc.c(692): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_rcc.c(745): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_rcc.c(777): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_rcc.c(808): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_rcc.c(985): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_rcc.c(1015): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_rcc.c(1032): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_rcc.c(1049): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_rcc.c(1088): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_rcc.c(1120): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_rcc.c(1147): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_rcc.c(1197): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_rcc.c(1237): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_rcc.c(1276): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_rcc.c(1305): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_rcc.c(1329): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_rcc.c(1376): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_rcc.c(1412): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_rcc.c(1458): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_rcc.c(1490): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_rcc.c(1517): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_rcc.c(1567): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_rcc.c(1607): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_rcc.c(1652): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_rcc.c(1692): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_rcc.c(1754): warning: #223-D: function "assert_param" declared implicitly stm32f4xx_rcc.c(1785): warning: #223-D: function "assert_param" declared implicitly assembling startup_stm32f4xx.s... Target not createdتصویر پروژه ایجاد شده توسط بنده:
تصویر پروژه ایجاد شده توسط ST:
از دوستان ممنون میشم راهنمایی کنند .