OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 3410|回复: 4

这种136错误是什么情况???

[复制链接]

2

主题

5

帖子

0

精华

新手入门

积分
16
金钱
16
注册时间
2021-1-19
在线时间
3 小时
发表于 2021-1-19 16:02:21 | 显示全部楼层 |阅读模式
1金钱
*** 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...
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), 0 Warning(s).
Target not created.
Build Time Elapsed:  00:00:03

最佳答案

查看完整内容[请看2#楼]

你好 你这个是 库里定义的结构体,和您的不一致造成的。
正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

5

主题

39

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
368
金钱
368
注册时间
2020-7-9
在线时间
70 小时
发表于 2021-1-19 16:02:22 | 显示全部楼层
你好 你这个是  库里定义的结构体,和您的不一致造成的。
回复

使用道具 举报

109

主题

5564

帖子

0

精华

资深版主

Rank: 8Rank: 8

积分
10567
金钱
10567
注册时间
2017-2-18
在线时间
1913 小时
发表于 2021-1-19 17:02:52 | 显示全部楼层
结构体里边没有成员GPIO_Mode
是不是标注库版本不对
回复

使用道具 举报

2

主题

5

帖子

0

精华

新手入门

积分
16
金钱
16
注册时间
2021-1-19
在线时间
3 小时
 楼主| 发表于 2021-1-19 17:27:30 | 显示全部楼层
peng1554 发表于 2021-1-19 17:02
结构体里边没有成员GPIO_Mode
是不是标注库版本不对

不知道啊,在定义的时候都定义上了,而且只有136这种错误。
回复

使用道具 举报

2

主题

5

帖子

0

精华

新手入门

积分
16
金钱
16
注册时间
2021-1-19
在线时间
3 小时
 楼主| 发表于 2021-1-19 17:36:31 | 显示全部楼层
萨默尔机器人 发表于 2021-1-19 17:22
你好 你这个是  库里定义的结构体,和您的不一致造成的。

感谢,是结构体定义和使用时的大小写出现了问题,低级错误,感谢感谢。
回复

使用道具 举报

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

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2025-5-15 02:01

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

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