91视频丝瓜-91视频完整版高清-91视频网-91视频网店-91视频网或将从此无大神-91视频网入口

您好,歡迎訪問上海現易電子元器件有限公司網站!

021-51870898
021-51870898   18019251567
4新聞資訊
您的位置: 首頁 ->  新聞資訊 -> 單片機

?初學STM32遇到的一些問題

文章出處:單片機 責任編輯:上海現易電子元器件有限公司 發表時間:2018-05-20

1.設置工程時,如果忘記了在C/C++選項卡上設置STM32F10X_HD,USE_STDPEFIPH_DRIVER編譯時會報如下的錯誤

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錯誤

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



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

備注::

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




上海現易電子元器件有限公司 版權所有 未經授權禁止復制或鏡像

CopyRight 2020-2025 www.urqm.cn All rights reserved   滬ICP備2020031792號

友情鏈接:

電話

易經理

18019251567

微信

易經理

易經理

頂部

咨詢
主站蜘蛛池模板: 亚洲AV在线一区二区三区 | 国产福利网站 | 怡红院老司机 | 韩国电影理伦片完整 | 国产日韩在线 | 日本三级本道在线播放 | 人妻奶水人妻系列 | 麻豆果冻传媒2024精品传媒一区下载 | 亚洲国产天堂 | 免费在线亚洲视频 | 狠狠人妻久久久久久综合九色 | 日本做爰A片AAAA | 国产精品妖精视频 | 免费大片黄国产在线观看 | 波多野结衣三级视频 | 国产免费人aa片片a片 | 日韩少妇内射免费播放 | 午夜在线观看cao | 欧美xxxx色视频在线观看 | 亚洲人成色20242024老人头 | 秋霞久久网| 亚洲电影天堂av2024 | 亚洲天堂免费在线 | 天天操天天做 | 久热首页 | 99久久精品免费看国产四区 | 麻豆 一区 精品 在线 | 伊人大香线蕉精品在线播放 | 欧美巨大另类极品video | 国产亚洲福利在线视频 | 亚洲精品AV无码喷奶水糖心 | 国产色婷婷免费视频 | 亚洲大尺度吃奶做爰电影 | 国产亚洲精品久久久久久鸭绿欲 | 精品午夜中文字幕熟女人妻在线 | 亚洲一区在线观看视频 | 青青视频观看免费99 | 成人久久欧美日韩一区二区三区 | 无限看片的动漫视频在线观看 | 精品国产三级在线观看 | 欧美三级黄色大片 |