完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
扫一扫,分享给好友
编译出错,为什么啊?请求高手指点
Build target 'Target 1' compiling STM32f10x_gpio.c... ..librariessrcstm32f10x_gpio.c(111): warning: #223-D: function "assert_param" declared implicitly ..librariessrcstm32f10x_gpio.c: assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); ..librariessrcstm32f10x_gpio.c: ^ ..librariessrcstm32f10x_gpio.c(178): warning: #223-D: function "assert_param" declared implicitly ..librariessrcstm32f10x_gpio.c: assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); ..librariessrcstm32f10x_gpio.c: ^ ..librariessrcstm32f10x_gpio.c(183): error: #20: identifier "currentmode" is undefined ..librariessrcstm32f10x_gpio.c: currentmode = ((uint32_t)GPIO_InitStruct->GPIO_Mode) & ((uint32_t)0x0F); ..librariessrcstm32f10x_gpio.c: ^ ..librariessrcstm32f10x_gpio.c(195): error: #20: identifier "tmpreg" is undefined ..librariessrcstm32f10x_gpio.c: tmpreg = GPIOx->CRL; ..librariessrcstm32f10x_gpio.c: ^ ..librariessrcstm32f10x_gpio.c(196): error: #20: identifier "pinpos" is undefined ..librariessrcstm32f10x_gpio.c: for (pinpos = 0x00; pinpos < 0x08; pinpos++) ..librariessrcstm32f10x_gpio.c: ^ ..librariessrcstm32f10x_gpio.c(198): error: #20: identifier "pos" is undefined ..librariessrcstm32f10x_gpio.c: pos = ((uint32_t)0x01) << pinpos; ..librariessrcstm32f10x_gpio.c: ^ ..librariessrcstm32f10x_gpio.c(200): error: #20: identifier "currentpin" is undefined ..librariessrcstm32f10x_gpio.c: currentpin = (GPIO_InitStruct->GPIO_Pin) & pos; ..librariessrcstm32f10x_gpio.c: ^ ..librariessrcstm32f10x_gpio.c(205): error: #20: identifier "pinmask" is undefined ..librariessrcstm32f10x_gpio.c: pinmask = ((uint32_t)0x0F) << pos; ..librariessrcstm32f10x_gpio.c: ^ ..librariessrcstm32f10x_gpio.c(230): error: #20: identifier "tmpreg" is undefined ..librariessrcstm32f10x_gpio.c: tmpreg = GPIOx->CRH; ..librariessrcstm32f10x_gpio.c: ^ ..librariessrcstm32f10x_gpio.c(231): error: #20: identifier "pinpos" is undefined ..librariessrcstm32f10x_gpio.c: for (pinpos = 0x00; pinpos < 0x08; pinpos++) ..librariessrcstm32f10x_gpio.c: ^ ..librariessrcstm32f10x_gpio.c(233): error: #20: identifier "pos" is undefined ..librariessrcstm32f10x_gpio.c: pos = (((uint32_t)0x01) << (pinpos + 0x08)); ..librariessrcstm32f10x_gpio.c: ^ ..librariessrcstm32f10x_gpio.c(235): error: #20: identifier "currentpin" is undefined ..librariessrcstm32f10x_gpio.c: currentpin = ((GPIO_InitStruct->GPIO_Pin) & pos); ..librariessrcstm32f10x_gpio.c: ^ ..librariessrcstm32f10x_gpio.c(240): error: #20: identifier "pinmask" is undefined ..librariessrcstm32f10x_gpio.c: pinmask = ((uint32_t)0x0F) << pos; ..librariessrcstm32f10x_gpio.c: ^ ..librariessrcstm32f10x_gpio.c(286): warning: #223-D: function "assert_param" declared implicitly ..librariessrcstm32f10x_gpio.c: assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); ..librariessrcstm32f10x_gpio.c: ^ ..librariessrcstm32f10x_gpio.c(308): warning: #223-D: function "assert_param" declared implicitly ..librariessrcstm32f10x_gpio.c: assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); ..librariessrcstm32f10x_gpio.c: ^ ..librariessrcstm32f10x_gpio.c(324): warning: #223-D: function "assert_param" declared implicitly ..librariessrcstm32f10x_gpio.c: assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); ..librariessrcstm32f10x_gpio.c: ^ ..librariessrcstm32f10x_gpio.c(346): warning: #223-D: function "assert_param" declared implicitly ..librariessrcstm32f10x_gpio.c: assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); ..librariessrcstm32f10x_gpio.c: ^ ..librariessrcstm32f10x_gpio.c(361): warning: #223-D: function "assert_param" declared implicitly ..librariessrcstm32f10x_gpio.c: assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); ..librariessrcstm32f10x_gpio.c: ^ ..librariessrcstm32f10x_gpio.c(377): warning: #223-D: function "assert_param" declared implicitly ..librariessrcstm32f10x_gpio.c: assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); ..librariessrcstm32f10x_gpio.c: ^ ..librariessrcstm32f10x_gpio.c(397): warning: #223-D: function "assert_param" declared implicitly ..librariessrcstm32f10x_gpio.c: assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); ..librariessrcstm32f10x_gpio.c: ^ ..librariessrcstm32f10x_gpio.c(420): warning: #223-D: function "assert_param" declared implicitly ..librariessrcstm32f10x_gpio.c: assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); ..librariessrcstm32f10x_gpio.c: ^ ..librariessrcstm32f10x_gpio.c(437): warning: #223-D: function "assert_param" declared implicitly ..librariessrcstm32f10x_gpio.c: assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); ..librariessrcstm32f10x_gpio.c: ^ ..librariessrcstm32f10x_gpio.c(466): warning: #223-D: function "assert_param" declared implicitly ..librariessrcstm32f10x_gpio.c: assert_param(IS_GPIO_EVENTOUT_PORT_SOURCE(GPIO_PortSource)); ..librariessrcstm32f10x_gpio.c: ^ ..librariessrcstm32f10x_gpio.c(486): warning: #223-D: function "assert_param" declared implicitly ..librariessrcstm32f10x_gpio.c: assert_param(IS_FUNCTIONAL_STATE(NewState)); ..librariessrcstm32f10x_gpio.c: ^ ..librariessrcstm32f10x_gpio.c(554): warning: #223-D: function "assert_param" declared implicitly ..librariessrcstm32f10x_gpio.c: assert_param(IS_GPIO_REMAP(GPIO_Remap)); ..librariessrcstm32f10x_gpio.c: ^ ..librariessrcstm32f10x_gpio.c(559): error: #136: struct " ..librariessrcstm32f10x_gpio.c: tmpreg = AFIO->MAPR2; ..librariessrcstm32f10x_gpio.c: ^ ..librariessrcstm32f10x_gpio.c(593): error: #136: struct " ..librariessrcstm32f10x_gpio.c: AFIO->MAPR2 = tmpreg; ..librariessrcstm32f10x_gpio.c: ^ ..librariessrcstm32f10x_gpio.c(613): warning: #223-D: function "assert_param" declared implicitly ..librariessrcstm32f10x_gpio.c: assert_param(IS_GPIO_EXTI_PORT_SOURCE(GPIO_PortSource)); ..librariessrcstm32f10x_gpio.c: ^ ..librariessrcstm32f10x_gpio.c(632): warning: #223-D: function "assert_param" declared implicitly ..librariessrcstm32f10x_gpio.c: assert_param(IS_GPIO_ETH_MEDIA_INTERFACE(GPIO_ETH_MediaInterface)); ..librariessrcstm32f10x_gpio.c: ^ ..librariessrcstm32f10x_gpio.c: ..librariessrcstm32f10x_gpio.c: 16 warnings, 13 errors compiling system_stm32f10x.c... ..librariesCMSISCM3DeviceSupportSTSTM32F10xstm32f10x.h(96): error: #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)" ..librariesCMSISCM3DeviceSupportSTSTM32F10xstm32f10x.h: #error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)" ..librariesCMSISCM3DeviceSupportSTSTM32F10xstm32f10x.h: ^ ..librariesCMSISCM3DeviceSupportSTSTM32F10xstm32f10x.h: ..librariesCMSISCM3DeviceSupportSTSTM32F10xsystem_stm32f10x.c: 0 warnings, 1 error Target not created |
|
相关推荐
1个回答
|
|
|
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
649 浏览 0 评论
使用stm32l451片子,对ad7606进行3通道100k采样值跳动问题?
1330 浏览 1 评论
STM32进行DMA数据转运,为什么只有A组最后一位数据被转运到B组去?
1780 浏览 2 评论
2071 浏览 3 评论
1660 浏览 0 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-9-1 12:27 , Processed in 0.454662 second(s), Total 76, Slave 57 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191