OpenEdv-开源电子网

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

请问,我建的一个hal库的第一个工程。照着手册来的。这个警告是什么意思?

[复制链接]

5

主题

26

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
294
金钱
294
注册时间
2021-3-23
在线时间
85 小时
发表于 2021-3-28 01:26:08 | 显示全部楼层 |阅读模式
1金钱
本帖最后由 13178508379 于 2021-3-28 02:55 编辑

*** Using Compiler 'V6.14', folder: 'E:\mdk5\ARM\ARMCLANG\Bin'
main.c(1): warning: In file included from...
../SYSTEM/sys\sys.h(3): warning: In file included from...
../USER\stm32f1xx.h(200): warning: In file included from...
../HALLIB/Inc\stm32f1xx_hal.h(30): warning: In file included from...
../USER\stm32f1xx_hal_conf.h(365): warning: In file included from...
../HALLIB/Inc\stm32f1xx_hal_pcd.h(29): warning: In file included from...
../HALLIB/Inc/stm32f1xx_ll_usb.h(260): warning: padding struct 'USB_EPTypeDef' with 1 byte to align 'pmaadress' [-Wpadded]
  uint16_t  pmaadress;       /*!< PMA Address
            ^
../HALLIB/Inc/stm32f1xx_ll_usb.h(272): warning: padding struct 'USB_EPTypeDef' with 1 byte to align 'tx_fifo_num' [-Wpadded]
  uint16_t  tx_fifo_num;     /*!< This parameter is not required by USB Device FS peripheral, it is used
            ^
2 warnings generated.
compiling main.c...
"main.c" - 0 Error(s), 2 Warning(s).

最佳答案

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

已解决, 在traget选择Cnde Gieneration I ARM Compiler里面的version5 , 编译之后可能还会报错,268: declaration may not appear after executable statement in block,选择 魔术棒---> c/c++ --->勾选c99mode 再报错 Error: L6200E: 这里是重复定义了某个函数,把其中一个重复定义的.c文件删了。例如Symbol HAL_MspDeInit multiply defined (by stm32f1xx_hal_msp_template.o and stm32f1xx_hal_msp.o) ...
正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

5

主题

26

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
294
金钱
294
注册时间
2021-3-23
在线时间
85 小时
 楼主| 发表于 2021-3-28 01:26:09 | 显示全部楼层
已解决,
在traget选择Cnde Gieneration I ARM Compiler里面的version5  ,
编译之后可能还会报错,268: declaration may not appear after executable statement in block,选择  魔术棒--->  c/c++  --->勾选c99mode
再报错    Error: L6200E:    这里是重复定义了某个函数,把其中一个重复定义的.c文件删了。例如Symbol HAL_MspDeInit multiply defined (by stm32f1xx_hal_msp_template.o and stm32f1xx_hal_msp.o)   
                                                                                                                                                                                                 把前面那个       stm32f1xx_hal_msp_template.c删了。
这只是我个人遇到的问题。有同种问题的可以参考参考,别忘记备份,万一行不通再恢复回去
回复

使用道具 举报

5

主题

26

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
294
金钱
294
注册时间
2021-3-23
在线时间
85 小时
 楼主| 发表于 2021-3-28 02:56:45 | 显示全部楼层
我用Beyond Compare 4对比工具,没有不一样的地方、真是中邪了
回复

使用道具 举报

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

本版积分规则



关闭

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

正点原子公众号

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

GMT+8, 2025-5-26 08:52

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

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