给位大神,小弟刚刚接触STM8单片机,用IAR编写用重新定义C库文件函数时,FILE显示未定义,然后根据网上查手册是IAR normal 跟full的选择问题,但是我选择full时,就会出现下面这么多错误。
main.c
stm8s_interrupt.c
Linking
Error[Li006]: duplicate definitions for "RxBuffer"; in "D:\test\STM8FORIAR\UART1\Debug\Obj\main.o", and "D:\test\
STM8FORIAR\UART1\Debug\Obj\stm8s_interrupt.o"
Error[Li006]: duplicate definitions for "UART1_RX_IRQHandler"; in "D:\test\STM8FORIAR\UART1\Debug\Obj\
main.o", and "D:\test\STM8FORIAR\UART1\Debug\Obj\stm8s_interrupt.o"
Error[Li006]: duplicate definitions for "UART_RX_NUM"; in "D:\test\STM8FORIAR\UART1\Debug\Obj\main.o", and
"D:\test\STM8FORIAR\UART1\Debug\Obj\stm8s_interrupt.o"
Error[Li006]: duplicate definitions for "_interrupt_20"; in "D:\test\STM8FORIAR\UART1\Debug\Obj\main.o", and "D:\
test\STM8FORIAR\UART1\Debug\Obj\stm8s_interrupt.o"
Error[Li006]: duplicate definitions for "CLKPrescTable"; in "D:\test\STM8FORIAR\UART1\Debug\Obj\main.o", and
"D:\test\STM8FORIAR\UART1\Debug\Obj\uart.o"
Error[Li006]: duplicate definitions for "CLK_AdjustHSICalibrationValue"; in "D:\test\STM8FORIAR\UART1\Debug\Obj\
main.o", and "D:\test\STM8FORIAR\UART1\Debug\Obj\uart.o"
Error[Li006]: duplicate definitions for "CLK_CCOCmd"; in "D:\test\STM8FORIAR\UART1\Debug\Obj\main.o", and "D:\
test\STM8FORIAR\UART1\Debug\Obj\uart.o"
Error[Li006]: duplicate definitions for "CLK_CCOConfig"; in "D:\test\STM8FORIAR\UART1\Debug\Obj\main.o", and
"D:\test\STM8FORIAR\UART1\Debug\Obj\uart.o"
Error[Li006]: duplicate definitions for "CLK_ClearITPendingBit"; in "D:\test\STM8FORIAR\UART1\Debug\Obj\
main.o", and "D:\test\STM8FORIAR\UART1\Debug\Obj\uart.o"
Error[Li006]: duplicate definitions for "CLK_ClockSecuritySystemEnable"; in "D:\test\STM8FORIAR\UART1\Debug\
Obj\main.o", and "D:\test\STM8FORIAR\UART1\Debug\Obj\uart.o"
Error[Li006]: duplicate definitions for "CLK_ClockSwitchCmd"; in "D:\test\STM8FORIAR\UART1\Debug\Obj\main.o",
and "D:\test\STM8FORIAR\UART1\Debug\Obj\uart.o"
Error[Li006]: duplicate definitions for "CLK_ClockSwitchConfig"; in "D:\test\STM8FORIAR\UART1\Debug\Obj\
main.o", and "D:\test\STM8FORIAR\UART1\Debug\Obj\uart.o"
Error[Li006]: duplicate definitions for "CLK_DeInit"; in "D:\test\STM8FORIAR\UART1\Debug\Obj\main.o", and "D:\test\
STM8FORIAR\UART1\Debug\Obj\uart.o"
Error[Li006]: duplicate definitions for "CLK_FastHaltWakeUpCmd"; in "D:\test\STM8FORIAR\UART1\Debug\Obj\
main.o", and "D:\test\STM8FORIAR\UART1\Debug\Obj\uart.o"
Error[Li006]: duplicate definitions for "CLK_GetClockFreq"; in "D:\test\STM8FORIAR\UART1\Debug\Obj\main.o",
and "D:\test\STM8FORIAR\UART1\Debug\Obj\uart.o"
Error[Li006]: duplicate definitions for "CLK_GetFlagStatus"; in "D:\test\STM8FORIAR\UART1\Debug\Obj\main.o",
and "D:\test\STM8FORIAR\UART1\Debug\Obj\uart.o"
Error[Li006]: duplicate definitions for "CLK_GetITStatus"; in "D:\test\STM8FORIAR\UART1\Debug\Obj\main.o", and
"D:\test\STM8FORIAR\UART1\Debug\Obj\uart.o"
Error[Li006]: duplicate definitions for "CLK_GetSYSCLKSource"; in "D:\test\STM8FORIAR\UART1\Debug\Obj\
main.o", and "D:\test\STM8FORIAR\UART1\Debug\Obj\uart.o"
Error[Li006]: duplicate definitions for "CLK_HSECmd"; in "D:\test\STM8FORIAR\UART1\Debug\Obj\main.o", and "D:\
test\STM8FORIAR\UART1\Debug\Obj\uart.o"
Error[Li006]: duplicate definitions for "CLK_HSICmd"; in "D:\test\STM8FORIAR\UART1\Debug\Obj\main.o", and "D:\
test\STM8FORIAR\UART1\Debug\Obj\uart.o"
Error[Li006]: duplicate definitions for "CLK_HSIPrescalerConfig"; in "D:\test\STM8FORIAR\UART1\Debug\Obj\
main.o", and "D:\test\STM8FORIAR\UART1\Debug\Obj\uart.o"
Error[Li006]: duplicate definitions for "CLK_ITConfig"; in "D:\test\STM8FORIAR\UART1\Debug\Obj\main.o", and "D:\
test\STM8FORIAR\UART1\Debug\Obj\uart.o"
Error[Li006]: duplicate definitions for "CLK_LSICmd"; in "D:\test\STM8FORIAR\UART1\Debug\Obj\main.o", and "D:\
test\STM8FORIAR\UART1\Debug\Obj\uart.o"
Error[Li006]: duplicate definitions for "CLK_PeripheralClockConfig"; in "D:\test\STM8FORIAR\UART1\Debug\Obj\
main.o", and "D:\test\STM8FORIAR\UART1\Debug\Obj\uart.o"
Error[Li006]: duplicate definitions for "CLK_SWIMConfig"; in "D:\test\STM8FORIAR\UART1\Debug\Obj\main.o", and
"D:\test\STM8FORIAR\UART1\Debug\Obj\uart.o"
Error[Li006]: duplicate definitions for "CLK_SYSCLKConfig"; in "D:\test\STM8FORIAR\UART1\Debug\Obj\main.o",
and "D:\test\STM8FORIAR\UART1\Debug\Obj\uart.o"
Error[Li006]: duplicate definitions for "CLK_SYSCLKEmergencyClear"; in "D:\test\STM8FORIAR\UART1\Debug\Obj\
main.o", and "D:\test\STM8FORIAR\UART1\Debug\Obj\uart.o"
Error[Li006]: duplicate definitions for "CLK_SlowActiveHaltWakeUpCmd"; in "D:\test\STM8FORIAR\UART1\Debug\
Obj\main.o", and "D:\test\STM8FORIAR\UART1\Debug\Obj\uart.o"
Error[Li006]: duplicate definitions for "HSIDivFactor"; in "D:\test\STM8FORIAR\UART1\Debug\Obj\main.o", and "D:\
test\STM8FORIAR\UART1\Debug\Obj\uart.o"
Error[Li006]: duplicate definitions for "UART1_ClearFlag"; in "D:\test\STM8FORIAR\UART1\Debug\Obj\main.o", and
"D:\test\STM8FORIAR\UART1\Debug\Obj\uart.o"
Error[Li006]: duplicate definitions for "UART1_ClearITPendingBit"; in "D:\test\STM8FORIAR\UART1\Debug\Obj\
main.o", and "D:\test\STM8FORIAR\UART1\Debug\Obj\uart.o"
Error[Li006]: duplicate definitions for "UART1_Cmd"; in "D:\test\STM8FORIAR\UART1\Debug\Obj\main.o", and "D:\
test\STM8FORIAR\UART1\Debug\Obj\uart.o"
Error[Li006]: duplicate definitions for "UART1_DeInit"; in "D:\test\STM8FORIAR\UART1\Debug\Obj\main.o", and "D:\
test\STM8FORIAR\UART1\Debug\Obj\uart.o"
Error[Li006]: duplicate definitions for "UART1_GetFlagStatus"; in "D:\test\STM8FORIAR\UART1\Debug\Obj\main.o",
and "D:\test\STM8FORIAR\UART1\Debug\Obj\uart.o"
Error[Li006]: duplicate definitions for "UART1_GetITStatus"; in "D:\test\STM8FORIAR\UART1\Debug\Obj\main.o",
and "D:\test\STM8FORIAR\UART1\Debug\Obj\uart.o"
Error[Li006]: duplicate definitions for "UART1_HalfDuplexCmd"; in "D:\test\STM8FORIAR\UART1\Debug\Obj\
main.o", and "D:\test\STM8FORIAR\UART1\Debug\Obj\uart.o"
Error[Li006]: duplicate definitions for "UART1_ITConfig"; in "D:\test\STM8FORIAR\UART1\Debug\Obj\main.o", and
"D:\test\STM8FORIAR\UART1\Debug\Obj\uart.o"
Error[Li006]: duplicate definitions for "UART1_Init"; in "D:\test\STM8FORIAR\UART1\Debug\Obj\main.o", and "D:\
test\STM8FORIAR\UART1\Debug\Obj\uart.o"
Error[Li006]: duplicate definitions for "UART1_IrDACmd"; in "D:\test\STM8FORIAR\UART1\Debug\Obj\main.o", and
"D:\test\STM8FORIAR\UART1\Debug\Obj\uart.o"
Error[Li006]: duplicate definitions for "UART1_IrDAConfig"; in "D:\test\STM8FORIAR\UART1\Debug\Obj\main.o",
and "D:\test\STM8FORIAR\UART1\Debug\Obj\uart.o"
Error[Li006]: duplicate definitions for "UART1_LINBreakDetectionConfig"; in "D:\test\STM8FORIAR\UART1\Debug\
Obj\main.o", and "D:\test\STM8FORIAR\UART1\Debug\Obj\uart.o"
Error[Li006]: duplicate definitions for "UART1_LINCmd"; in "D:\test\STM8FORIAR\UART1\Debug\Obj\main.o", and
"D:\test\STM8FORIAR\UART1\Debug\Obj\uart.o"
Error[Li006]: duplicate definitions for "UART1_ReceiveData8"; in "D:\test\STM8FORIAR\UART1\Debug\Obj\main.o",
and "D:\test\STM8FORIAR\UART1\Debug\Obj\uart.o"
Error[Li006]: duplicate definitions for "UART1_ReceiveData9"; in "D:\test\STM8FORIAR\UART1\Debug\Obj\main.o",
and "D:\test\STM8FORIAR\UART1\Debug\Obj\uart.o"
Error[Li006]: duplicate definitions for "UART1_ReceiverWakeUpCmd"; in "D:\test\STM8FORIAR\UART1\Debug\Obj\
main.o", and "D:\test\STM8FORIAR\UART1\Debug\Obj\uart.o"
Error[Li006]: duplicate definitions for "UART1_SendBreak"; in "D:\test\STM8FORIAR\UART1\Debug\Obj\main.o",
and "D:\test\STM8FORIAR\UART1\Debug\Obj\uart.o"
Error[Li006]: duplicate definitions for "UART1_SendData8"; in "D:\test\STM8FORIAR\UART1\Debug\Obj\main.o",
and "D:\test\STM8FORIAR\UART1\Debug\Obj\uart.o"
Error[Li006]: duplicate definitions for "UART1_SendData9"; in "D:\test\STM8FORIAR\UART1\Debug\Obj\main.o",
and "D:\test\STM8FORIAR\UART1\Debug\Obj\uart.o"
Error[Li006]: duplicate definitions for "UART1_SetAddress"; in "D:\test\STM8FORIAR\UART1\Debug\Obj\main.o",
and "D:\test\STM8FORIAR\UART1\Debug\Obj\uart.o"
Error[Li006]: duplicate definitions for "UART1_SetGuardTime"; in "D:\test\STM8FORIAR\UART1\Debug\Obj\
main.o", and "D:\test\STM8FORIAR\UART1\Debug\Obj\uart.o"
Error[Li006]: duplicate definitions for "UART1_SetPrescaler"; in "D:\test\STM8FORIAR\UART1\Debug\Obj\main.o",
and "D:\test\STM8FORIAR\UART1\Debug\Obj\uart.o"
Error[Li006]: duplicate definitions for "UART1_SmartCardCmd"; in "D:\test\STM8FORIAR\UART1\Debug\Obj\
main.o", and "D:\test\STM8FORIAR\UART1\Debug\Obj\uart.o"
Error[Li006]: duplicate definitions for "UART1_SmartCardNACKCmd"; in "D:\test\STM8FORIAR\UART1\Debug\Obj\
main.o", and "D:\test\STM8FORIAR\UART1\Debug\Obj\uart.o"
Error[Li006]: duplicate definitions for "UART1_WakeUpConfig"; in "D:\test\STM8FORIAR\UART1\Debug\Obj\
main.o", and "D:\test\STM8FORIAR\UART1\Debug\Obj\uart.o"
Error while running Linker
|
|