JiZzJiZZ国产免费A_国产午夜成人AV在线播放_亚洲欧美在线观看一区二区_91久久久久精品无嫩草影院_欧美高清一区二区三区_欧美日韩国产码高清_亚洲精品国产电影_亚洲AV无码专区亚洲AV桃
廣告招募

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

2025年07月15日 08:30:22      來源:江蘇瑞易通電子科技有限公司 >> 進(jìn)入該公司展臺      閱讀量:1

分享:

1.設(shè)置工程時,如果忘記了在C/C++選項(xiàng)卡上設(shè)置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 H錯誤

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



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

備注::

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




版權(quán)與免責(zé)聲明:
1.凡本網(wǎng)注明"來源:中美貿(mào)易網(wǎng)"的所有作品,版權(quán)均屬于中美貿(mào)易網(wǎng),轉(zhuǎn)載請必須注明中美貿(mào)易網(wǎng)。違反者本網(wǎng)將追究相關(guān)法律責(zé)任。
2.企業(yè)發(fā)布的公司新聞、技術(shù)文章、資料下載等內(nèi)容,如涉及侵權(quán)、違規(guī)遭投訴的,一律由發(fā)布企業(yè)自行承擔(dān)責(zé)任,本網(wǎng)有權(quán)刪除內(nèi)容并追溯責(zé)任。
3.本網(wǎng)轉(zhuǎn)載并注明自其它來源的作品,目的在于傳遞更多信息,并不代表本網(wǎng)贊同其觀點(diǎn)或證實(shí)其內(nèi)容的真實(shí)性,不承擔(dān)此類作品侵權(quán)行為的直接責(zé)任及連帶責(zé)任。其他媒體、網(wǎng)站或個人從本網(wǎng)轉(zhuǎn)載時,必須保留本網(wǎng)注明的作品來源,并自負(fù)版權(quán)等法律責(zé)任。 4.如涉及作品內(nèi)容、版權(quán)等問題,請?jiān)谧髌钒l(fā)表之日起一周內(nèi)與本網(wǎng)聯(lián)系。

JiZzJiZZ国产免费A_国产午夜成人AV在线播放_亚洲欧美在线观看一区二区_91久久久久精品无嫩草影院_欧美高清一区二区三区_欧美日韩国产码高清_亚洲精品国产电影_亚洲AV无码专区亚洲AV桃