找回密碼
 立即注冊

QQ登錄

只需一步,快速開始

搜索
查看: 12310|回復(fù): 0
打印 上一主題 下一主題
收起左側(cè)

小白的stm32寫流水燈實驗 出現(xiàn).\Objects\LED.axf: Error: L6200E: Symbol RCC_

[復(fù)制鏈接]
跳轉(zhuǎn)到指定樓層
樓主
ID:150397 發(fā)表于 2017-3-29 22:27 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
  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ù)制代碼
我就是寫了個流水燈實驗,但是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)這些錯誤 ,請大神們指教

分享到:  QQ好友和群QQ好友和群 QQ空間QQ空間 騰訊微博騰訊微博 騰訊朋友騰訊朋友
收藏收藏 分享淘帖 頂 踩
回復(fù)

使用道具 舉報

您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規(guī)則

手機版|小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術(shù)交流QQ群281945664

Powered by 單片機教程網(wǎng)

快速回復(fù) 返回頂部 返回列表