中级会员
 
- 积分
- 294
- 金钱
- 294
- 注册时间
- 2021-3-23
- 在线时间
- 85 小时
|
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)
...
|