野火电子论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 23222|回复: 1

请问这个136错误是什么啊???

[复制链接]
发表于 2021-1-19 17:02:32 | 显示全部楼层 |阅读模式
*** Using Compiler 'V5.06 update 1 (build 61)', folder: 'C:\HUGE\Keil_v5\ARM\ARMCC\Bin'
Rebuild target 'Template-REG'
assembling startup_stm32f10x_hd.s...
compiling main.c...
main.c(50): warning:  #177-D: variable "GPIO_InitStructure" was declared but never referenced
        GPIO_InitTypeDef GPIO_InitStructure;
main.c: 1 warning, 0 errors
compiling stm32f10x_gpio.c...
stm32f10x_gpio.c(25): error:  #136: struct "<unnamed>" has no field "GPIO_Mode"
    currentmode = (((uint32)GPIO_InitStruct->GPIO_Mode) & ((uint32)0x0F));
stm32f10x_gpio.c(29): error:  #136: struct "<unnamed>" has no field "GPIO_Mode"
    if ((((uint32)GPIO_InitStruct->GPIO_Mode) & ((uint32)0x10)) != 0x00)
stm32f10x_gpio.c(32): error:  #136: struct "<unnamed>" has no field "GPIO_Speed"
      currentmode |= (uint32)GPIO_InitStruct->GPIO_Speed;
stm32f10x_gpio.c(36): error:  #136: struct "<unnamed>" has no field "GPIO_Pin"
    if (((uint32)GPIO_InitStruct->GPIO_Pin & ((uint32)0x00FF)) != 0x00)
stm32f10x_gpio.c(48): error:  #136: struct "<unnamed>" has no field "GPIO_Pin"
        currentpin = (GPIO_InitStruct->GPIO_Pin) & pos;
stm32f10x_gpio.c(63): error:  #136: struct "<unnamed>" has no field "GPIO_Mode"
          if (GPIO_InitStruct->GPIO_Mode == GPIO_Mode_IPD)
stm32f10x_gpio.c(71): error:  #136: struct "<unnamed>" has no field "GPIO_Mode"
            if (GPIO_InitStruct->GPIO_Mode == GPIO_Mode_IPU)
stm32f10x_gpio.c(84): error:  #136: struct "<unnamed>" has no field "GPIO_Pin"
    if (GPIO_InitStruct->GPIO_Pin > 0x00FF)
stm32f10x_gpio.c(95): error:  #136: struct "<unnamed>" has no field "GPIO_Pin"
        currentpin = ((GPIO_InitStruct->GPIO_Pin) & pos);
stm32f10x_gpio.c(111): error:  #136: struct "<unnamed>" has no field "GPIO_Mode"
          if (GPIO_InitStruct->GPIO_Mode == GPIO_Mode_IPD)
stm32f10x_gpio.c(117): error:  #136: struct "<unnamed>" has no field "GPIO_Mode"
          if (GPIO_InitStruct->GPIO_Mode == GPIO_Mode_IPU)
stm32f10x_gpio.c: 0 warnings, 11 errors
".\Objects\Template-REG.axf" - 11 Error(s), 1 Warning(s).
Target not created.
Build Time Elapsed:  00:00:02

回复

使用道具 举报

 楼主| 发表于 2021-1-19 17:47:07 | 显示全部楼层
好了好了解决了,结构体定义和使用大小写不一致造成的,低级错误,严谨严谨。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

联系站长|手机版|野火电子官网|野火淘宝店铺|野火电子论坛 ( 粤ICP备14069197号 ) 大学生ARM嵌入式2群

GMT+8, 2024-11-25 00:55 , Processed in 0.032103 second(s), 23 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表