在串口试验编程时候,程序出现在bsp.o和stm32f10x_it.o重复定义

[复制链接]
571|0
 楼主| 怎么叫都可以 发表于 2020-4-26 17:48 | 显示全部楼层 |阅读模式
.\Objects\UART-F103.axf: Error: L6200E: Symbol USART_Config multiply defined (by uart_bsp.o and stm32f10x_it.o).
.\Objects\UART-F103.axf: Error: L6200E: Symbol Usart_SendString multiply defined (by uart_bsp.o and stm32f10x_it.o).
.\Objects\UART-F103.axf: Error: L6200E: Symbol GPIO_USART1_Config multiply defined (by uart_bsp.o and stm32f10x_it.o).
.\Objects\UART-F103.axf: Error: L6200E: Symbol NVIC_Configuration multiply defined (by uart_bsp.o and stm32f10x_it.o).
.\Objects\UART-F103.axf: Error: L6200E: Symbol USART1_Config multiply defined (by uart_bsp.o and stm32f10x_it.o).
.\Objects\UART-F103.axf: Error: L6200E: Symbol USART_Interrupts_Configuration multiply defined (by uart_bsp.o and stm32f10x_it.o).
.\Objects\UART-F103.axf: Error: L6200E: Symbol Usart_SendByte multiply defined (by uart_bsp.o and stm32f10x_it.o).
Not enough information to list image symbols.
Not enough information to list load addresses in the image map.
Finished: 2 information, 0 warning and 7 error messages.
".\Objects\UART-F103.axf" - 7 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed:  00:00:09

然后我再bsp.c文件中的程序加上static 就好了 但是还没有验证能不能实现试验现象。
为什么会出现这种原因啊?stm32f10x_it.c中 我啥都没写还报错??
求大腿抱!!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

457

主题

483

帖子

1

粉丝
快速回复 在线客服 返回列表 返回顶部