您好,歡迎訪問上海意泓電子科技有限責(zé)任公司網(wǎng)站!
      4新聞資訊
      您的位置: 首頁 ->  新聞資訊 -> 單片機(jī)

      ?初學(xué)STM32遇到的一些問題

      文章出處:單片機(jī) 責(zé)任編輯:上海意泓電子科技有限責(zé)任公司 發(fā)表時(shí)間:
      2018
      05-20

      1.設(shè)置工程時(shí),如果忘記了在C/C++選項(xiàng)卡上設(shè)置STM32F10X_HD,USE_STDPEFIPH_DRIVER編譯時(shí)會(huì)報(bào)如下的錯(cuò)誤

      Build target 'USART'  

      compiling stm32f10x_it.c...  

      ..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(96): error:  #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"  

      ..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h:    #error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"  

      ..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h:     ^  

      ..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h: ..\User\stm32f10x_it.c: 0 warnings, 1 error  

      compiling main.c...  

      ..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(96): error:  #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"  

      ..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h:    #error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"  

      ..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h:     ^  

      ..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h: ..\User\main.c: 0 warnings, 1 error  

      compiling core_cm3.c...  

      compiling system_stm32f10x.c...  

      ..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(96): error:  #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"  

      ..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h:    #error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"  

      ..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h:     ^  

      ..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h: ..\User\system_stm32f10x.c: 0 warnings, 1 error  

      compiling stm32f10x_usart.c...  

      ..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(96): error:  #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"  

      ..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h:    #error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"  

      ..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h:     ^  

      ..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h: ..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_usart.c: 0 warnings, 1 error  

      compiling stm32f10x_gpio.c...  

      ..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(96): error:  #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"  

      ..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h:    #error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"  

      ..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h:     ^  

      ..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h: ..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c: 0 warnings, 1 error  

      compiling stm32f10x_rcc.c...  

      ..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(96): error:  #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"  

      ..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h:    #error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"  

      ..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h:     ^  

      ..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h: ..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c: 0 warnings, 1 error  

      Target not created  


      2.要注意新建工程包含庫文件的路徑是

      \Libraries\STM32F10x_StdPeriph_Driver\inc

      而不是

      \Libraries\STM32F10x_StdPeriph_Driver\src
       

      3.Overlapping of Algorithms at Address 08000000H錯(cuò)誤

      工程設(shè)置里,誤多添加了下載算法,刪除后即可。



      //============================================================================================

      備注::

      1>今天燒寫STM32遇到一個(gè)新問題----出現(xiàn)data not matching at address 0x80000000,最后把問題找到是燒寫的串口線出了問題 ,導(dǎo)致燒完程序再讀回驗(yàn)證出了問題。




      上海意泓電子科技有限責(zé)任公司 版權(quán)所有 未經(jīng)授權(quán)禁止復(fù)制或鏡像

      CopyRight 2020-2025 www.topsschool.com All rights reserved   滬ICP備2021005866號(hào)

      亚洲精品无码va人在线观看,少妇 逼小 水多,国产区免费av,国产精品无码观看

          人妻精品久久中文字幕| 国产一级A级高清毛片| 曰韩无码一区二区三区九动漫| 国产成人精品久久免费| 日本理论午夜精品中文字幕| 人人插人人爽| 亚洲欧美日韩精品三级| 久久97国产成人精品免费视频| 久久精品亚洲一区二区无码| 久久老司机精品午夜| 亚洲婷婷无码在线观看| 亚洲国产日韩在线人成蜜芽| 欧美激情黄视频免费看| 乱人伦中文视频在线无码| 婷婷五月综合国产激情| 免费性无码在线专区| 伊人久久综合热线大杳蕉| 东京热免费无码AV| 97美女超碰精品国产麻豆| 欧美激情a∨欧美日韩亚洲综合一区二区三区| 免费无码专区毛片高潮喷水在线| 五月天天天综合精品无码| 伊人久久综合热线大杳| 蜜臀在线观看 | 一区二区三区| 国产真人无码作爱免费看| 欧美亚洲中文精品三区| 中文字幕无码日韩专区免费| 午夜精品久久久久久久| av毛片无码中文字幕不卡|