2021-10-26 10:30:45 索煒達電子 638
項目編號:E1787
文件大小:1.4M
源碼說明:帶中文注釋
開發(fā)環(huán)境:C編譯器
簡要概述:
注意事項:
(1)主程序編譯會出現(xiàn)缺乏"stm32f10x_lib.h"文件
解決辦法:在附件中主程序目錄添加附件庫"STM32F10x",在target opition中的C/C++選項卡中的include path路徑中添加"STM32F10x"路徑。
(2)MPU模塊必須與STM32主控板共地,也就是說用板載電源供電最好。(我原先用的單獨供電模塊,結(jié)果串口輸出一直為零)
目錄│文件列表:
├ STM32-串口輸出MPU-6050
│ └ 串口
│ │ core_cm3.crf
│ │ core_cm3.d
│ │ core_cm3.o
│ │ ExtDll.iex
│ │ iic_driver.crf
│ │ iic_driver.d
│ │ iic_driver.o
│ │ JLink Regs CM3.txt
│ │ JLinkLog.txt
│ │ JLinkSettings.ini
│ │ lunzhou.axf
│ │ lunzhou.hex
│ │ lunzhou.htm
│ │ lunzhou.lnp
│ │ lunzhou.map
│ │ lunzhou.opt.bak
│ │ lunzhou.plg
│ │ lunzhou.sct
│ │ lunzhou.tra
│ │ lunzhou.Uv2.bak
│ │ lunzhou.uvgui.HDH
│ │ lunzhou.uvgui_HDH.bak
│ │ lunzhou.uvopt
│ │ lunzhou.uvproj
│ │ lunzhou_Opt.Bak
│ │ lunzhou_sct.Bak
│ │ lunzhou_Target 1.dep
│ │ lunzhou_Uv2.Bak
│ │ lunzhou_uvopt.bak
│ │ lunzhou_uvproj.bak
│ │ main.crf
│ │ main.d
│ │ misc.crf
│ │ misc.d
│ │ misc.o
│ │ startup_stm32f10x_hd.d
│ │ startup_stm32f10x_hd.lst
│ │ startup_stm32f10x_hd.o
│ │ stm32f10x_flash.crf
│ │ stm32f10x_flash.d
│ │ stm32f10x_flash.o
│ │ stm32f10x_gpio.crf
│ │ stm32f10x_gpio.d
│ │ stm32f10x_gpio.o
│ │ stm32f10x_it.crf
│ │ stm32f10x_it.d
│ │ stm32f10x_it.o
│ │ stm32f10x_rcc.crf
│ │ stm32f10x_rcc.d
│ │ stm32f10x_rcc.o
│ │ stm32f10x_tim.crf
│ │ stm32f10x_tim.d
│ │ stm32f10x_tim.o
│ │ stm32f10x_usart.crf
│ │ stm32f10x_usart.d
│ │ stm32f10x_usart.o
│ │ stm32f10x_wwdg.crf
│ │ stm32f10x_wwdg.d
│ │ stm32f10x_wwdg.o
│ │ system_stm32f10x.crf
│ │ system_stm32f10x.d
│ │ system_stm32f10x.o
│ ├ Libraries
│ │ ├ CMSIS
│ │ │ │ License.doc
│ │ │ └ Core
│ │ │ ├ CM3
│ │ │ │ │ core_cm3.c
│ │ │ │ │ core_cm3.h
│ │ │ │ │ stm32f10x.h
│ │ │ │ │ system_stm32f10x.c
│ │ │ │ │ system_stm32f10x.h
│ │ │ │ └ startup
│ │ │ │ ├ arm
│ │ │ │ │ │ startup_stm32f10x_cl.s
│ │ │ │ │ │ startup_stm32f10x_hd.s
│ │ │ │ │ │ startup_stm32f10x_ld.s
│ │ │ │ │ └ startup_stm32f10x_md.s
│ │ │ │ ├ gcc
│ │ │ │ │ │ startup_stm32f10x_cl.s
│ │ │ │ │ │ startup_stm32f10x_hd.s
│ │ │ │ │ │ startup_stm32f10x_ld.s
│ │ │ │ │ └ startup_stm32f10x_md.s
│ │ │ │ └ iar
│ │ │ │ │ startup_stm32f10x_cl.s
│ │ │ │ │ startup_stm32f10x_hd.s
│ │ │ │ │ startup_stm32f10x_ld.s
│ │ │ │ └ startup_stm32f10x_md.s
│ │ │ └ Documentation
│ │ │ └ CMSIS_Core.htm
│ │ └ STM32F10x_StdPeriph_Driver
│ │ ├ inc
│ │ │ │ misc.h
│ │ │ │ stm32f10x_adc.h
│ │ │ │ stm32f10x_bkp.h
│ │ │ │ stm32f10x_can.h
│ │ │ │ stm32f10x_crc.h
│ │ │ │ stm32f10x_dac.h
│ │ │ │ stm32f10x_dbgmcu.h
│ │ │ │ stm32f10x_dma.h
│ │ │ │ stm32f10x_exti.h
│ │ │ │ stm32f10x_flash.h
│ │ │ │ stm32f10x_fsmc.h
│ │ │ │ stm32f10x_gpio.h
│ │ │ │ stm32f10x_i2c.h
│ │ │ │ stm32f10x_iwdg.h
│ │ │ │ stm32f10x_pwr.h
│ │ │ │ stm32f10x_rcc.h
│ │ │ │ stm32f10x_rtc.h
│ │ │ │ stm32f10x_sdio.h
│ │ │ │ stm32f10x_spi.h
│ │ │ │ stm32f10x_tim.h
│ │ │ │ stm32f10x_usart.h
│ │ │ └ stm32f10x_wwdg.h
│ │ └ src
│ │ │ misc.c
│ │ │ stm32f10x_adc.c
│ │ │ stm32f10x_bkp.c
│ │ │ stm32f10x_can.c
│ │ │ stm32f10x_crc.c
│ │ │ stm32f10x_dac.c
│ │ │ stm32f10x_dbgmcu.c
│ │ │ stm32f10x_dma.c
│ │ │ stm32f10x_exti.c
│ │ │ stm32f10x_flash.c
│ │ │ stm32f10x_fsmc.c
│ │ │ stm32f10x_gpio.c
│ │ │ stm32f10x_i2c.c
│ │ │ stm32f10x_iwdg.c
│ │ │ stm32f10x_pwr.c
│ │ │ stm32f10x_rcc.c
│ │ │ stm32f10x_rtc.c
│ │ │ stm32f10x_sdio.c
│ │ │ stm32f10x_spi.c
│ │ │ stm32f10x_tim.c
│ │ │ stm32f10x_usart.c
│ │ └ stm32f10x_wwdg.c
│ └ SRC
│ │ main.c
│ │ stm32f10x_conf.h
│ │ stm32f10x_it.c
│ └ stm32f10x_it.h
└ STM32F10x
│ cortexm3_macro.h
│ stm32f10x.h
│ stm32f10x_adc.h
│ stm32f10x_bkp.h
│ stm32f10x_can.h
│ stm32f10x_cl.h
│ stm32f10x_conf.h
│ stm32f10x_crc.h
│ stm32f10x_dac.h
│ stm32f10x_dbgmcu.h
│ stm32f10x_dma.h
│ stm32f10x_exti.h
│ stm32f10x_flash.h
│ stm32f10x_fsmc.h
│ stm32f10x_gpio.h
│ stm32f10x_i2c.h
│ stm32f10x_it.h
│ stm32f10x_iwdg.h
│ stm32f10x_lib.h
│ stm32f10x_map.h
│ stm32f10x_nvic.h
│ stm32f10x_pwr.h
│ stm32f10x_rcc.h
│ stm32f10x_rtc.h
│ stm32f10x_sdio.h
│ stm32f10x_spi.h
│ stm32f10x_systick.h
│ stm32f10x_tim.h
│ stm32f10x_type.h
│ stm32f10x_usart.h
│ stm32f10x_wwdg.h
│ system_stm32f10x.h
│ system_stm32f10x_cl.h
└ USB
│ usb_core.h
│ usb_def.h
│ usb_init.h
│ usb_int.h
│ usb_lib.h
│ usb_mem.h
│ usb_regs.h
└ usb_type.h