標(biāo)題: 小白的stm32寫流水燈實(shí)驗(yàn) 出現(xiàn).\Objects\LED.axf: Error: L6200E: Symbol RCC_ [打印本頁(yè)]

作者: 春天的花蕊    時(shí)間: 2017-3-29 22:27
標(biāo)題: 小白的stm32寫流水燈實(shí)驗(yàn) 出現(xiàn).\Objects\LED.axf: Error: L6200E: Symbol RCC_
  1. #include "stm32f10x.h"

  2. GPIO_InitTypeDef GPIO_InitStructure;


  3. int main(void)
  4. {

  5.         int i;
  6.         RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOC,ENABLE);
  7.         

  8.         GPIO_InitStructure.GPIO_Pin=GPIO_Pin_6|GPIO_Pin_7|GPIO_Pin_8|GPIO_Pin_9;

  9.         GPIO_InitStructure.GPIO_Speed=GPIO_Speed_50MHz;
  10.         GPIO_InitStructure.GPIO_Mode=GPIO_Mode_Out_PP;

  11.         GPIO_Init(GPIOC,&GPIO_InitStructure);
  12.         
  13.         GPIO_SetBits(GPIOC,GPIO_Pin_6|GPIO_Pin_7|GPIO_Pin_8|GPIO_Pin_9);
  14.         
  15.         while(1)
  16.         {
  17.                 GPIO_ResetBits(GPIOC,GPIO_Pin_6);

  18.                 for(i=0;i<50000;i++)
  19.                 {}
  20.                 GPIO_SetBits(GPIOC,GPIO_Pin_6);

  21.                 GPIO_ResetBits(GPIOC,GPIO_Pin_7);
  22.                 for(i=0;i<50000;i++)
  23.                 {}
  24.                 GPIO_SetBits(GPIOC,GPIO_Pin_7);

  25.                 GPIO_ResetBits(GPIOC,GPIO_Pin_8);

  26.                 for(i=0;i<50000;i++)
  27.                 {}
  28.                 GPIO_SetBits(GPIOC,GPIO_Pin_8);

  29.                 GPIO_ResetBits(GPIOC,GPIO_Pin_9);

  30.                 for(i=0;i<50000;i++)
  31.                 {}
  32.                 GPIO_SetBits(GPIOC,GPIO_Pin_9);
  33.         }        
  34.         
  35. }
復(fù)制代碼
我就是寫了個(gè)流水燈實(shí)驗(yàn),但是linking....\Objects\LED.axf: Error: L6200E: Symbol RCC_APB2PeriphClockCmd multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\LED.axf: Error: L6200E: Symbol RCC_ADCCLKConfig multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\LED.axf: Error: L6200E: Symbol RCC_AHBPeriphClockCmd multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\LED.axf: Error: L6200E: Symbol RCC_APB1PeriphClockCmd multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\LED.axf: Error: L6200E: Symbol RCC_APB1PeriphResetCmd multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\LED.axf: Error: L6200E: Symbol RCC_APB2PeriphResetCmd multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\LED.axf: Error: L6200E: Symbol RCC_AdjustHSICalibrationValue multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\LED.axf: Error: L6200E: Symbol RCC_BackupResetCmd multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\LED.axf: Error: L6200E: Symbol RCC_ClearFlag multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\LED.axf: Error: L6200E: Symbol RCC_ClearITPendingBit multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\LED.axf: Error: L6200E: Symbol RCC_ClockSecuritySystemCmd multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\LED.axf: Error: L6200E: Symbol RCC_DeInit multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\LED.axf: Error: L6200E: Symbol RCC_GetClocksFreq multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\LED.axf: Error: L6200E: Symbol RCC_GetFlagStatus multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\LED.axf: Error: L6200E: Symbol RCC_GetITStatus multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\LED.axf: Error: L6200E: Symbol RCC_GetSYSCLKSource multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\LED.axf: Error: L6200E: Symbol RCC_HCLKConfig multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\LED.axf: Error: L6200E: Symbol RCC_HSEConfig multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\LED.axf: Error: L6200E: Symbol RCC_HSICmd multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\LED.axf: Error: L6200E: Symbol RCC_ITConfig multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\LED.axf: Error: L6200E: Symbol RCC_LSEConfig multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\LED.axf: Error: L6200E: Symbol RCC_LSICmd multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\LED.axf: Error: L6200E: Symbol RCC_MCOConfig multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\LED.axf: Error: L6200E: Symbol RCC_PCLK1Config multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\LED.axf: Error: L6200E: Symbol RCC_PCLK2Config multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\LED.axf: Error: L6200E: Symbol RCC_PLLCmd multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\LED.axf: Error: L6200E: Symbol RCC_PLLConfig multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\LED.axf: Error: L6200E: Symbol RCC_RTCCLKCmd multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\LED.axf: Error: L6200E: Symbol RCC_RTCCLKConfig multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\LED.axf: Error: L6200E: Symbol RCC_SYSCLKConfig multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\LED.axf: Error: L6200E: Symbol RCC_USBCLKConfig multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\LED.axf: Error: L6200E: Symbol RCC_WaitForHSEStartUp multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).出現(xiàn)這些錯(cuò)誤 ,請(qǐng)大神們指教






歡迎光臨 (http://www.torrancerestoration.com/bbs/) Powered by Discuz! X3.1