【E1207】STM32F103板子MPU9250程序移植

2021-09-14 21:58:53      索炜达电子      817     

项目编号:E1207

文件大小:3.5M

源码说明:带中文注释

开发环境:C编译器

简要概述:

程序我是参考阿波罗H743倒腾出来的,在匿名上位机可以使用。在移植过程中,需要注意:
1.在Keil中添加MPU9250自带DMP的所有.c和.h文件;
2.需要将mpl文件夹下面的libmpllib.lib文件替换成芯片所匹配的
3.添加MPU9250的全局宏定义标识符,点击 Options for Target...(简称:魔术棒),在C/C++选项卡,然后在Define输入框输入:,MPU9250,EMPL_TARGET_STM32F4,EMPL
4.勾选One ELF Section per Function和C99 Mode选项

【E1207】STM32F103板子MPU9250程序移植

目录│文件列表:

 └ F1核心板MPU9250(标准库)

    └ F1核心板MPU9250(标准库)

       │ keilkilll.bat

       │ README.TXT

       ├ CORE

       │  │ core_cm3.c

       │  │ core_cm3.h

       │  └ startup_stm32f10x_hd.s

       ├ DMP

       │  ├ driver

       │  │  ├ eMPL

       │  │  │  │ dmpKey.h

       │  │  │  │ dmpmap.h

       │  │  │  │ inv_mpu.c

       │  │  │  │ inv_mpu.h

       │  │  │  │ inv_mpu_dmp_motion_driver.c

       │  │  │  └ inv_mpu_dmp_motion_driver.h

       │  │  ├ include

       │  │  │  │ log.h

       │  │  │  │ mlinclude.h

       │  │  │  │ mlmath.h

       │  │  │  │ mlos.h

       │  │  │  │ mltypes.h

       │  │  │  │ mpu.h

       │  │  │  └ stdint_invensense.h

       │  │  └ stm32L

       │  │     │ log_stm32.c

       │  │     └ packet.h

       │  ├ eMPL-hal

       │  │  │ eMPL_outputs.c

       │  │  └ eMPL_outputs.h

       │  ├ mllite

       │  │  │ data_builder.c

       │  │  │ data_builder.h

       │  │  │ hal_outputs.c

       │  │  │ hal_outputs.h

       │  │  │ invensense.h

       │  │  │ message_layer.c

       │  │  │ message_layer.h

       │  │  │ mlmath.c

       │  │  │ ml_math_func.c

       │  │  │ ml_math_func.h

       │  │  │ mpl.c

       │  │  │ mpl.h

       │  │  │ results_holder.c

       │  │  │ results_holder.h

       │  │  │ start_manager.c

       │  │  │ start_manager.h

       │  │  │ storage_manager.c

       │  │  └ storage_manager.h

       │  └ mpl

       │     │ accel_auto_cal.h

       │     │ compass_vec_cal.h

       │     │ fast_no_motion.h

       │     │ fusion_9axis.h

       │     │ gyro_tc.h

       │     │ heading_from_gyro.h

       │     │ invensense_adv.h

       │     │ inv_math.h

       │     │ libmpllib.lib

       │     │ mag_disturb.h

       │     │ motion_no_motion.h

       │     │ no_gyro_fusion.h

       │     └ quaternion_supervisor.h

       ├ HARDWARE

       │  ├ IIC

       │  │  │ myiic.c

       │  │  └ myiic.h

       │  ├ KEY

       │  │  │ key.c

       │  │  └ key.h

       │  └ MPU9250

       │     │ mpu9250.c

       │     └ mpu9250.h

       ├ OBJ

       │  │ core_cm3.crf

       │  │ core_cm3.d

       │  │ core_cm3.o

       │  │ data_builder.crf

       │  │ data_builder.d

       │  │ data_builder.o

       │  │ delay.crf

       │  │ delay.d

       │  │ delay.o

       │  │ empl_outputs.crf

       │  │ empl_outputs.d

       │  │ empl_outputs.o

       │  │ hal_outputs.crf

       │  │ hal_outputs.d

       │  │ hal_outputs.o

       │  │ inv_mpu.crf

       │  │ inv_mpu.d

       │  │ inv_mpu.o

       │  │ inv_mpu_dmp_motion_driver.crf

       │  │ inv_mpu_dmp_motion_driver.d

       │  │ inv_mpu_dmp_motion_driver.o

       │  │ key.crf

       │  │ key.d

       │  │ key.o

       │  │ led.crf

       │  │ led.d

       │  │ led.o

       │  │ log_stm32.crf

       │  │ log_stm32.d

       │  │ log_stm32.o

       │  │ main.crf

       │  │ main.d

       │  │ main.o

       │  │ message_layer.crf

       │  │ message_layer.d

       │  │ message_layer.o

       │  │ misc.crf

       │  │ misc.d

       │  │ misc.o

       │  │ mlmath.crf

       │  │ mlmath.d

       │  │ mlmath.o

       │  │ ml_math_func.crf

       │  │ ml_math_func.d

       │  │ ml_math_func.o

       │  │ mpl.crf

       │  │ mpl.d

       │  │ mpl.o

       │  │ mpu9250.crf

       │  │ mpu9250.d

       │  │ mpu9250.o

       │  │ myiic.crf

       │  │ myiic.d

       │  │ myiic.o

       │  │ results_holder.crf

       │  │ results_holder.d

       │  │ results_holder.o

       │  │ startup_stm32f10x_hd.d

       │  │ startup_stm32f10x_hd.o

       │  │ start_manager.crf

       │  │ start_manager.d

       │  │ start_manager.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_usart.crf

       │  │ stm32f10x_usart.d

       │  │ stm32f10x_usart.o

       │  │ storage_manager.crf

       │  │ storage_manager.d

       │  │ storage_manager.o

       │  │ sys.crf

       │  │ sys.d

       │  │ sys.o

       │  │ system_stm32f10x.crf

       │  │ system_stm32f10x.d

       │  │ system_stm32f10x.o

       │  │ USART.axf

       │  │ USART.build_log.htm

       │  │ usart.crf

       │  │ usart.d

       │  │ USART.hex

       │  │ USART.htm

       │  │ USART.lnp

       │  │ usart.o

       │  │ USART.sct

       │  └ USART_USART.dep

       ├ STM32F10x_FWLib

       │  ├ inc

       │  │  │ misc.h

       │  │  │ stm32f10x_adc.h

       │  │  │ stm32f10x_bkp.h

       │  │  │ stm32f10x_can.h

       │  │  │ stm32f10x_cec.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_cec.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

       ├ SYSTEM

       │  ├ delay

       │  │  │ delay.c

       │  │  └ delay.h

       │  ├ sys

       │  │  │ sys.c

       │  │  └ sys.h

       │  └ usart

       │     │ usart.c

       │     └ usart.h

       └ USER

          │ JLinkSettings.ini

          │ main.c

          │ startup_stm32f10x_hd.lst

          │ stm32f10x.h

          │ stm32f10x_conf.h

          │ stm32f10x_it.c

          │ stm32f10x_it.h

          │ system_stm32f10x.c

          │ system_stm32f10x.h

          │ USART.map

          │ USART.uvguix.Administrator

          │ USART.uvguix.Lin

          │ USART.uvoptx

          │ USART.uvprojx

          └ DebugConfig

             └ USART_STM32F103ZE_1.0.0.dbgconf

TAGMPU9250
  • 11 次
  • 1 分