OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 1783|回复: 10

移植正点原子例程mpu9520 程序报的错误

[复制链接]

11

主题

63

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
311
金钱
311
注册时间
2015-6-27
在线时间
63 小时
发表于 2021-1-3 21:03:09 | 显示全部楼层 |阅读模式
本帖最后由 双规导航 于 2021-1-3 21:45 编辑

..\HARDWARE\MPU9250\MPL\driver\eMPL\inv_mpu.h(50): error:  #169: expected a declaration
  };
test.c(60): warning:  #177-D: variable "led0sta" was declared but never referenced
                u8 led0sta=1;
test.c(61): warning:  #177-D: variable "t" was declared but never referenced
        u8 t=0,report=1;                //默认开启上报
test.c(61): warning:  #177-D: variable "report" was declared but never referenced
        u8 t=0,report=1;                //默认开启上报
test.c(62): warning:  #177-D: variable "key" was declared but never referenced
        u8 key;
test.c(63): warning:  #177-D: variable "pitch" was declared but never referenced
        float pitch,roll,yaw;           //欧拉角
test.c(63): warning:  #177-D: variable "roll" was declared but never referenced
        float pitch,roll,yaw;           //欧拉角
test.c(63): warning:  #177-D: variable "yaw" was declared but never referenced
        float pitch,roll,yaw;           //欧拉角
test.c(64): warning:  #177-D: variable "aacx" was declared but never referenced
        short aacx,aacy,aacz;           //加速度传感器原始数据
test.c(64): warning:  #177-D: variable "aacy" was declared but never referenced
        short aacx,aacy,aacz;           //加速度传感器原始数据
test.c(64): warning:  #177-D: variable "aacz" was declared but never referenced
        short aacx,aacy,aacz;           //加速度传感器原始数据
test.c(65): warning:  #177-D: variable "gyrox" was declared but never referenced
        short gyrox,gyroy,gyroz;        //陀螺仪原始数据
test.c(65): warning:  #177-D: variable "gyroy" was declared but never referenced
        short gyrox,gyroy,gyroz;        //陀螺仪原始数据
test.c(65): warning:  #177-D: variable "gyroz" was declared but never referenced
        short gyrox,gyroy,gyroz;        //陀螺仪原始数据
test.c(66): warning:  #177-D: variable "temp" was declared but never referenced
        short temp;                             //温度
test.c: 14 warnings, 1 error
compiling delay.c...
compiling sys.c...
compiling usart.c...
compiling led.c...
compiling rs485.c...
compiling 24cxx.c...
compiling myiic.c...
compiling adc.c...
compiling dma.c...
compiling exti.c...
compiling mpu.c...
compiling pcf8574.c...
compiling key.c...
compiling mpu9250.c...
compiling modbus.c...
compiling ModbusCRC.c...
compiling MOTOR_MODBUG.c...
compiling Function.C...
compiling inv_mpu.c...
..\HARDWARE\MPU9250\MPL\driver\eMPL\inv_mpu.h(50): error:  #169: expected a declaration
  };
..\HARDWARE\MPU9250\MPL\mllite\ml_math_func.h(34): warning:  #260-D: explicit type is missing ("int" assumed)
      static inline float inv_q30_to_float(long q30)
..\HARDWARE\MPU9250\MPL\mllite\ml_math_func.h(34): error:  #65: expected a ";"
      static inline float inv_q30_to_float(long q30)
..\HARDWARE\MPU9250\MPL\mllite\ml_math_func.h(57): warning:  #12-D: parsing restarts here after previous syntax error
      long inv_q29_mult(long a, long b);
..\HARDWARE\MPU9250\MPL\mllite\ml_math_func.h(113): warning:  #260-D: explicit type is missing ("int" assumed)
      static inline long inv_delta_time_ms(inv_time_t t1, inv_time_t t2)
..\HARDWARE\MPU9250\MPL\mllite\ml_math_func.h(113): error:  #65: expected a ";"
      static inline long inv_delta_time_ms(inv_time_t t1, inv_time_t t2)
..\HARDWARE\MPU9250\MPL\mllite\ml_math_func.h(119): warning:  #12-D: parsing restarts here after previous syntax error
      double quaternion_to_rotation_angle(const long *quat);
..\HARDWARE\MPU9250\MPL\driver\include\log.h(339): warning:  #260-D: explicit type is missing ("int" assumed)
  static inline void __print_result_location(int result,
..\HARDWARE\MPU9250\MPL\driver\include\log.h(339): error:  #65: expected a ";"
  static inline void __print_result_location(int result,
..\HARDWARE\MPU9250\MPL\mpl\accel_auto_cal.h(23): warning:  #12-D: parsing restarts here after previous syntax error
  inv_error_t inv_enable_in_use_auto_calibration(void);
..\HARDWARE\MPU9250\MPL\driver\eMPL\inv_mpu.c(133): error:  #35: #error directive: Gyro driver is missing the system layer implementations.
  #error  Gyro driver is missing the system layer implementations.
..\HARDWARE\MPU9250\MPL\driver\eMPL\inv_mpu.c: 6 warnings, 5 errors
compiling inv_mpu_dmp_motion_driver.c...
..\HARDWARE\MPU9250\MPL\driver\eMPL\inv_mpu.h(50): error:  #169: expected a declaration
  };
..\HARDWARE\MPU9250\MPL\driver\eMPL\inv_mpu_dmp_motion_driver.c(73): error:  #35: #error directive: Gyro driver is missing the system layer implementations.
  #error  Gyro driver is missing the system layer implementations.
..\HARDWARE\MPU9250\MPL\driver\eMPL\inv_mpu_dmp_motion_driver.c: 0 warnings, 2 errors
compiling log_stm32.c...
..\HARDWARE\MPU9250\MPL\driver\include\log.h(339): warning:  #260-D: explicit type is missing ("int" assumed)
  static inline void __print_result_location(int result,
..\HARDWARE\MPU9250\MPL\driver\include\log.h(339): error:  #65: expected a ";"
  static inline void __print_result_location(int result,
..\SYSTEM\sys\stm32f767xx.h(187): warning:  #12-D: parsing restarts here after previous syntax error
  } IRQn_Type;
..\SYSTEM\sys\core_cm7.h(1834): error:  #20: identifier "IRQn_Type" is undefined
  __STATIC_INLINE void NVIC_EnableIRQ(IRQn_Type IRQn)
..\SYSTEM\sys\core_cm7.h(1845): error:  #20: identifier "IRQn_Type" is undefined
  __STATIC_INLINE void NVIC_DisableIRQ(IRQn_Type IRQn)
..\SYSTEM\sys\core_cm7.h(1858): error:  #20: identifier "IRQn_Type" is undefined
  __STATIC_INLINE uint32_t NVIC_GetPendingIRQ(IRQn_Type IRQn)
..\SYSTEM\sys\core_cm7.h(1869): error:  #20: identifier "IRQn_Type" is undefined
  __STATIC_INLINE void NVIC_SetPendingIRQ(IRQn_Type IRQn)
..\SYSTEM\sys\core_cm7.h(1880): error:  #20: identifier "IRQn_Type" is undefined
  __STATIC_INLINE void NVIC_ClearPendingIRQ(IRQn_Type IRQn)
..\SYSTEM\sys\core_cm7.h(1893): error:  #20: identifier "IRQn_Type" is undefined
  __STATIC_INLINE uint32_t NVIC_GetActive(IRQn_Type IRQn)
..\SYSTEM\sys\core_cm7.h(1906): error:  #20: identifier "IRQn_Type" is undefined
  __STATIC_INLINE void NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority)
..\SYSTEM\sys\core_cm7.h(1928): error:  #20: identifier "IRQn_Type" is undefined
  __STATIC_INLINE uint32_t NVIC_GetPriority(IRQn_Type IRQn)
..\SYSTEM\sys\core_cm7.h(2413): error:  #20: identifier "SysTick_IRQn" is undefined
    NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */
..\HARDWARE\MPU9250\MPL\driver\stm32L\log_stm32.c(148): error:  #268: declaration may not appear after executable statement in block
      FILE * noUse;
..\HARDWARE\MPU9250\MPL\driver\stm32L\log_stm32.c: 2 warnings, 11 errors
compiling eMPL_outputs.c...
..\HARDWARE\MPU9250\MPL\mllite\ml_math_func.h(34): warning:  #260-D: explicit type is missing ("int" assumed)
      static inline float inv_q30_to_float(long q30)
..\HARDWARE\MPU9250\MPL\mllite\ml_math_func.h(34): error:  #65: expected a ";"
      static inline float inv_q30_to_float(long q30)
..\HARDWARE\MPU9250\MPL\mllite\ml_math_func.h(57): warning:  #12-D: parsing restarts here after previous syntax error
      long inv_q29_mult(long a, long b);
..\HARDWARE\MPU9250\MPL\mllite\ml_math_func.h(113): warning:  #260-D: explicit type is missing ("int" assumed)
      static inline long inv_delta_time_ms(inv_time_t t1, inv_time_t t2)
..\HARDWARE\MPU9250\MPL\mllite\ml_math_func.h(113): error:  #65: expected a ";"
      static inline long inv_delta_time_ms(inv_time_t t1, inv_time_t t2)
..\HARDWARE\MPU9250\MPL\mllite\ml_math_func.h(119): warning:  #12-D: parsing restarts here after previous syntax error
      double quaternion_to_rotation_angle(const long *quat);
..\HARDWARE\MPU9250\MPL\eMPL-hal\eMPL_outputs.c(100): warning:  #223-D: function "memcpy" declared implicitly
      memcpy(data, eMPL_out.quat, sizeof(eMPL_out.quat));
..\HARDWARE\MPU9250\MPL\eMPL-hal\eMPL_outputs.c(119): warning:  #223-D: function "inv_q29_mult" declared implicitly
      q00 = inv_q29_mult(eMPL_out.quat[0], eMPL_out.quat[0]);
..\HARDWARE\MPU9250\MPL\eMPL-hal\eMPL_outputs.c(157): warning:  #223-D: function "inv_q29_mult" declared implicitly
      q00 = inv_q29_mult(eMPL_out.quat[0], eMPL_out.quat[0]);
..\HARDWARE\MPU9250\MPL\eMPL-hal\eMPL_outputs.c(295): warning:  #223-D: function "memset" declared implicitly
      memset(&eMPL_out, 0, sizeof(eMPL_out));
..\HARDWARE\MPU9250\MPL\eMPL-hal\eMPL_outputs.c: 8 warnings, 2 errors
compiling data_builder.c...
..\HARDWARE\MPU9250\MPL\mllite\ml_math_func.h(34): warning:  #260-D: explicit type is missing ("int" assumed)
      static inline float inv_q30_to_float(long q30)
..\HARDWARE\MPU9250\MPL\mllite\ml_math_func.h(34): error:  #65: expected a ";"
      static inline float inv_q30_to_float(long q30)
..\HARDWARE\MPU9250\MPL\mllite\ml_math_func.h(57): warning:  #12-D: parsing restarts here after previous syntax error
      long inv_q29_mult(long a, long b);
..\HARDWARE\MPU9250\MPL\mllite\ml_math_func.h(113): warning:  #260-D: explicit type is missing ("int" assumed)
      static inline long inv_delta_time_ms(inv_time_t t1, inv_time_t t2)
..\HARDWARE\MPU9250\MPL\mllite\ml_math_func.h(113): error:  #65: expected a ";"
      static inline long inv_delta_time_ms(inv_time_t t1, inv_time_t t2)
..\HARDWARE\MPU9250\MPL\mllite\ml_math_func.h(119): warning:  #12-D: parsing restarts here after previous syntax error
      double quaternion_to_rotation_angle(const long *quat);
..\HARDWARE\MPU9250\MPL\driver\include\log.h(339): warning:  #260-D: explicit type is missing ("int" assumed)
  static inline void __print_result_location(int result,
..\HARDWARE\MPU9250\MPL\driver\include\log.h(339): error:  #65: expected a ";"
  static inline void __print_result_location(int result,
..\HARDWARE\MPU9250\MPL\mllite\data_builder.c(34): warning:  #12-D: parsing restarts here after previous syntax error
  typedef inv_error_t (*inv_process_cb_func)(struct inv_sensor_cal_t *data);
..\HARDWARE\MPU9250\MPL\mllite\data_builder.c(37): error:  #20: identifier "inv_process_cb_func" is undefined
      inv_process_cb_func func;
..\HARDWARE\MPU9250\MPL\mllite\data_builder.c(1168): warning:  #223-D: function "inv_q30_to_float" declared implicitly
          sensors.soft_iron.matrix_f = inv_q30_to_float(matrix);
..\HARDWARE\MPU9250\MPL\mllite\data_builder.c: 7 warnings, 4 errors
compiling hal_outputs.c...
..\HARDWARE\MPU9250\MPL\driver\include\log.h(339): warning:  #260-D: explicit type is missing ("int" assumed)
  static inline void __print_result_location(int result,
..\HARDWARE\MPU9250\MPL\driver\include\log.h(339): error:  #65: expected a ";"
  static inline void __print_result_location(int result,
..\HARDWARE\MPU9250\MPL\mllite\ml_math_func.h(32): warning:  #12-D: parsing restarts here after previous syntax error
      }   inv_biquad_filter_t;
..\HARDWARE\MPU9250\MPL\mllite\ml_math_func.h(34): warning:  #260-D: explicit type is missing ("int" assumed)
      static inline float inv_q30_to_float(long q30)
..\HARDWARE\MPU9250\MPL\mllite\ml_math_func.h(34): error:  #65: expected a ";"
      static inline float inv_q30_to_float(long q30)
..\HARDWARE\MPU9250\MPL\mllite\ml_math_func.h(57): warning:  #12-D: parsing restarts here after previous syntax error
      long inv_q29_mult(long a, long b);
..\HARDWARE\MPU9250\MPL\mllite\ml_math_func.h(113): warning:  #260-D: explicit type is missing ("int" assumed)
      static inline long inv_delta_time_ms(inv_time_t t1, inv_time_t t2)
..\HARDWARE\MPU9250\MPL\mllite\ml_math_func.h(113): error:  #65: expected a ";"
      static inline long inv_delta_time_ms(inv_time_t t1, inv_time_t t2)
..\HARDWARE\MPU9250\MPL\mllite\ml_math_func.h(119): warning:  #12-D: parsing restarts here after previous syntax error
      double quaternion_to_rotation_angle(const long *quat);
..\HARDWARE\MPU9250\MPL\mllite\ml_math_func.h(122): error:  #20: identifier "inv_biquad_filter_t" is undefined
      void inv_init_biquad_filter(inv_biquad_filter_t *pFilter, float *pBiquadCoeff);
..\HARDWARE\MPU9250\MPL\mllite\ml_math_func.h(123): error:  #20: identifier "inv_biquad_filter_t" is undefined
      float inv_biquad_filter_process(inv_biquad_filter_t *pFilter, float input);
..\HARDWARE\MPU9250\MPL\mllite\ml_math_func.h(124): error:  #20: identifier "inv_biquad_filter_t" is undefined
      void inv_calc_state_to_match_output(inv_biquad_filter_t *pFilter, float input);
..\HARDWARE\MPU9250\MPL\mllite\hal_outputs.c(43): error:  #20: identifier "inv_biquad_filter_t" is undefined
      inv_biquad_filter_t lp_filter[3];
..\HARDWARE\MPU9250\MPL\mllite\hal_outputs.c: 6 warnings, 7 errors
compiling message_layer.c...
..\HARDWARE\MPU9250\MPL\driver\include\log.h(339): warning:  #260-D: explicit type is missing ("int" assumed)
  static inline void __print_result_location(int result,
..\HARDWARE\MPU9250\MPL\driver\include\log.h(339): error:  #65: expected a ";"
  static inline void __print_result_location(int result,
..\HARDWARE\MPU9250\MPL\mllite\message_layer.c(21): warning:  #12-D: parsing restarts here after previous syntax error
  };
..\HARDWARE\MPU9250\MPL\mllite\message_layer.c(36): error:  #70: incomplete type is not allowed
          mh.message &= ~clear;
..\HARDWARE\MPU9250\MPL\mllite\message_layer.c(37): error:  #70: incomplete type is not allowed
          mh.message |= set;
..\HARDWARE\MPU9250\MPL\mllite\message_layer.c(50): error:  #70: incomplete type is not allowed
      msg = mh.message;
..\HARDWARE\MPU9250\MPL\mllite\message_layer.c(52): error:  #70: incomplete type is not allowed
          mh.message = 0;
..\HARDWARE\MPU9250\MPL\mllite\message_layer.c(23): error:  #235: variable "mh" was declared with a never-completed type
  static struct message_holder_t mh;
..\HARDWARE\MPU9250\MPL\mllite\message_layer.c: 2 warnings, 6 errors
compiling ml_math_func.c...
..\HARDWARE\MPU9250\MPL\mllite\ml_math_func.h(34): warning:  #260-D: explicit type is missing ("int" assumed)
      static inline float inv_q30_to_float(long q30)
..\HARDWARE\MPU9250\MPL\mllite\ml_math_func.h(34): error:  #65: expected a ";"
      static inline float inv_q30_to_float(long q30)
..\HARDWARE\MPU9250\MPL\mllite\ml_math_func.h(57): warning:  #12-D: parsing restarts here after previous syntax error
      long inv_q29_mult(long a, long b);
..\HARDWARE\MPU9250\MPL\mllite\ml_math_func.h(113): warning:  #260-D: explicit type is missing ("int" assumed)
      static inline long inv_delta_time_ms(inv_time_t t1, inv_time_t t2)
..\HARDWARE\MPU9250\MPL\mllite\ml_math_func.h(113): error:  #65: expected a ";"
      static inline long inv_delta_time_ms(inv_time_t t1, inv_time_t t2)
..\HARDWARE\MPU9250\MPL\mllite\ml_math_func.h(119): warning:  #12-D: parsing restarts here after previous syntax error
      double quaternion_to_rotation_angle(const long *quat);
..\HARDWARE\MPU9250\MPL\mllite\ml_math_func.c(114): warning:  #223-D: function "inv_q30_to_float" declared implicitly
      angW = -atan2f(inv_q30_to_float(q2[2]), inv_q30_to_float(q2[1]));
..\HARDWARE\MPU9250\MPL\mllite\ml_math_func.c(258): warning:  #223-D: function "inv_q30_to_double" declared implicitly
              inv_q30_to_double(vec[ii]) * inv_q30_to_double(vec[ii]);
..\HARDWARE\MPU9250\MPL\mllite\ml_math_func.c: 6 warnings, 2 errors
compiling mpl.c...
..\HARDWARE\MPU9250\MPL\mllite\storage_manager.h(19): error:  #20: identifier "size_t" is undefined
                             size_t size, unsigned int key);
..\HARDWARE\MPU9250\MPL\mllite\storage_manager.h(22): error:  #20: identifier "size_t" is undefined
  inv_error_t inv_get_mpl_state_size(size_t *size);
..\HARDWARE\MPU9250\MPL\mllite\storage_manager.h(23): error:  #20: identifier "size_t" is undefined
  inv_error_t inv_load_mpl_states(const unsigned char *data, size_t len);
..\HARDWARE\MPU9250\MPL\mllite\storage_manager.h(24): error:  #20: identifier "size_t" is undefined
  inv_error_t inv_save_mpl_states(unsigned char *data, size_t len);
..\HARDWARE\MPU9250\MPL\driver\include\log.h(339): warning:  #260-D: explicit type is missing ("int" assumed)
  static inline void __print_result_location(int result,
..\HARDWARE\MPU9250\MPL\driver\include\log.h(339): error:  #65: expected a ";"
  static inline void __print_result_location(int result,
..\HARDWARE\MPU9250\MPL\mllite\mpl.h(16): warning:  #12-D: parsing restarts here after previous syntax error
  inv_error_t inv_init_mpl(void);
..\HARDWARE\MPU9250\MPL\mllite\mpl.c(34): warning:  #223-D: function "__print_result_location" declared implicitly
      INV_ERROR_CHECK(inv_init_start_manager());
..\HARDWARE\MPU9250\MPL\mllite\mpl.c(37): warning:  #223-D: function "__print_result_location" declared implicitly
      INV_ERROR_CHECK(inv_init_data_builder());
..\HARDWARE\MPU9250\MPL\mllite\mpl.c(39): warning:  #223-D: function "__print_result_location" declared implicitly
      INV_ERROR_CHECK(inv_enable_results_holder());
..\HARDWARE\MPU9250\MPL\mllite\mpl.c(66): warning:  #223-D: function "__print_result_location" declared implicitly
      INV_ERROR_CHECK(inv_execute_mpl_start_notification());
..\HARDWARE\MPU9250\MPL\mllite\mpl.c: 6 warnings, 5 errors
compiling results_holder.c...
..\HARDWARE\MPU9250\MPL\mllite\ml_math_func.h(34): warning:  #260-D: explicit type is missing ("int" assumed)
      static inline float inv_q30_to_float(long q30)
..\HARDWARE\MPU9250\MPL\mllite\ml_math_func.h(34): error:  #65: expected a ";"
      static inline float inv_q30_to_float(long q30)
..\HARDWARE\MPU9250\MPL\mllite\ml_math_func.h(57): warning:  #12-D: parsing restarts here after previous syntax error
      long inv_q29_mult(long a, long b);
..\HARDWARE\MPU9250\MPL\mllite\ml_math_func.h(113): warning:  #260-D: explicit type is missing ("int" assumed)
      static inline long inv_delta_time_ms(inv_time_t t1, inv_time_t t2)
..\HARDWARE\MPU9250\MPL\mllite\ml_math_func.h(113): error:  #65: expected a ";"
      static inline long inv_delta_time_ms(inv_time_t t1, inv_time_t t2)
..\HARDWARE\MPU9250\MPL\mllite\ml_math_func.h(119): warning:  #12-D: parsing restarts here after previous syntax error
      double quaternion_to_rotation_angle(const long *quat);
..\HARDWARE\MPU9250\MPL\driver\include\log.h(339): warning:  #260-D: explicit type is missing ("int" assumed)
  static inline void __print_result_location(int result,
..\HARDWARE\MPU9250\MPL\driver\include\log.h(339): error:  #65: expected a ";"
  static inline void __print_result_location(int result,
..\HARDWARE\MPU9250\MPL\mllite\results_holder.c(51): warning:  #12-D: parsing restarts here after previous syntax error
  };
..\HARDWARE\MPU9250\MPL\mllite\results_holder.c(61): error:  #70: incomplete type is not allowed
      rh.status |= INV_6_AXIS_QUAT_SET;
..\HARDWARE\MPU9250\MPL\mllite\results_holder.c(62): error:  #70: incomplete type is not allowed
      memcpy(&rh.gam_quat, quat, sizeof(rh.gam_quat));
..\HARDWARE\MPU9250\MPL\mllite\results_holder.c(62): error:  #70: incomplete type is not allowed
      memcpy(&rh.gam_quat, quat, sizeof(rh.gam_quat));
..\HARDWARE\MPU9250\MPL\mllite\results_holder.c(63): error:  #70: incomplete type is not allowed
      rh.gam_timestamp = timestamp;
..\HARDWARE\MPU9250\MPL\mllite\results_holder.c(73): error:  #70: incomplete type is not allowed
      rh.status |= INV_COMPASS_CORRECTION_SET;
..\HARDWARE\MPU9250\MPL\mllite\results_holder.c(74): error:  #70: incomplete type is not allowed
      memcpy(rh.compass_correction, data, sizeof(rh.compass_correction));
..\HARDWARE\MPU9250\MPL\mllite\results_holder.c(74): error:  #70: incomplete type is not allowed
      memcpy(rh.compass_correction, data, sizeof(rh.compass_correction));
..\HARDWARE\MPU9250\MPL\mllite\results_holder.c(75): error:  #70: incomplete type is not allowed
      rh.nav_timestamp = timestamp;
..\HARDWARE\MPU9250\MPL\mllite\results_holder.c(85): error:  #70: incomplete type is not allowed
      memcpy(data, rh.compass_correction, sizeof(rh.compass_correction));
..\HARDWARE\MPU9250\MPL\mllite\results_holder.c(85): error:  #70: incomplete type is not allowed
      memcpy(data, rh.compass_correction, sizeof(rh.compass_correction));
..\HARDWARE\MPU9250\MPL\mllite\results_holder.c(86): error:  #70: incomplete type is not allowed
      *timestamp = rh.nav_timestamp;
..\HARDWARE\MPU9250\MPL\mllite\results_holder.c(94): error:  #70: incomplete type is not allowed
      return rh.large_mag_field;
..\HARDWARE\MPU9250\MPL\mllite\results_holder.c(102): error:  #70: incomplete type is not allowed
      rh.large_mag_field = state;
..\HARDWARE\MPU9250\MPL\mllite\results_holder.c(110): error:  #70: incomplete type is not allowed
      return rh.acc_state;
..\HARDWARE\MPU9250\MPL\mllite\results_holder.c(118): error:  #70: incomplete type is not allowed
      rh.acc_state = state;
..\HARDWARE\MPU9250\MPL\mllite\results_holder.c(128): error:  #70: incomplete type is not allowed
      *cntr = rh.motion_state_counter;
..\HARDWARE\MPU9250\MPL\mllite\results_holder.c(129): error:  #70: incomplete type is not allowed
      return rh.motion_state;
..\HARDWARE\MPU9250\MPL\mllite\results_holder.c(139): error:  #70: incomplete type is not allowed
      if (state == rh.motion_state) {
..\HARDWARE\MPU9250\MPL\mllite\results_holder.c(141): error:  #70: incomplete type is not allowed
              rh.motion_state_counter++;
..\HARDWARE\MPU9250\MPL\mllite\results_holder.c(143): error:  #70: incomplete type is not allowed
              rh.motion_state_counter = 0;
..\HARDWARE\MPU9250\MPL\mllite\results_holder.c(147): error:  #70: incomplete type is not allowed
      rh.motion_state_counter = 0;
..\HARDWARE\MPU9250\MPL\mllite\results_holder.c(148): error:  #70: incomplete type is not allowed
      rh.motion_state = state;
..\HARDWARE\MPU9250\MPL\mllite\results_holder.c(164): error:  #70: incomplete type is not allowed
      memcpy(rh.local_field, data, sizeof(rh.local_field));
..\HARDWARE\MPU9250\MPL\mllite\results_holder.c(164): error:  #70: incomplete type is not allowed
      memcpy(rh.local_field, data, sizeof(rh.local_field));
..\HARDWARE\MPU9250\MPL\mllite\results_holder.c(174): error:  #70: incomplete type is not allowed
      memcpy(data, rh.local_field, sizeof(rh.local_field));
..\HARDWARE\MPU9250\MPL\mllite\results_holder.c(174): error:  #70: incomplete type is not allowed
      memcpy(data, rh.local_field, sizeof(rh.local_field));
..\HARDWARE\MPU9250\MPL\mllite\results_holder.c(183): error:  #70: incomplete type is not allowed
      memcpy(rh.mag_scale, data, sizeof(rh.mag_scale));
..\HARDWARE\MPU9250\MPL\mllite\results_holder.c: 6 warnings, 30 errors
compiling start_manager.c...
..\HARDWARE\MPU9250\MPL\driver\include\log.h(339): warning:  #260-D: explicit type is missing ("int" assumed)
  static inline void __print_result_location(int result,
..\HARDWARE\MPU9250\MPL\driver\include\log.h(339): error:  #65: expected a ";"
  static inline void __print_result_location(int result,
..\HARDWARE\MPU9250\MPL\driver\include\mltypes.h(109): error:  #20: identifier "int8_t" is undefined
  typedef int8_t   __s8;
..\HARDWARE\MPU9250\MPL\mllite\start_manager.c: 1 warning, 2 errors
compiling storage_manager.c...
..\HARDWARE\MPU9250\MPL\driver\include\log.h(339): warning:  #260-D: explicit type is missing ("int" assumed)
  static inline void __print_result_location(int result,
..\HARDWARE\MPU9250\MPL\driver\include\log.h(339): error:  #65: expected a ";"
  static inline void __print_result_location(int result,
..\HARDWARE\MPU9250\MPL\mllite\ml_math_func.h(32): warning:  #12-D: parsing restarts here after previous syntax error
      }   inv_biquad_filter_t;
..\HARDWARE\MPU9250\MPL\mllite\ml_math_func.h(34): warning:  #260-D: explicit type is missing ("int" assumed)
      static inline float inv_q30_to_float(long q30)
..\HARDWARE\MPU9250\MPL\mllite\ml_math_func.h(34): error:  #65: expected a ";"
      static inline float inv_q30_to_float(long q30)
..\HARDWARE\MPU9250\MPL\mllite\ml_math_func.h(57): warning:  #12-D: parsing restarts here after previous syntax error
      long inv_q29_mult(long a, long b);
..\HARDWARE\MPU9250\MPL\mllite\ml_math_func.h(113): warning:  #260-D: explicit type is missing ("int" assumed)
      static inline long inv_delta_time_ms(inv_time_t t1, inv_time_t t2)
..\HARDWARE\MPU9250\MPL\mllite\ml_math_func.h(113): error:  #65: expected a ";"
      static inline long inv_delta_time_ms(inv_time_t t1, inv_time_t t2)
..\HARDWARE\MPU9250\MPL\mllite\ml_math_func.h(119): warning:  #12-D: parsing restarts here after previous syntax error
      double quaternion_to_rotation_angle(const long *quat);
..\HARDWARE\MPU9250\MPL\mllite\ml_math_func.h(122): error:  #20: identifier "inv_biquad_filter_t" is undefined
      void inv_init_biquad_filter(inv_biquad_filter_t *pFilter, float *pBiquadCoeff);
..\HARDWARE\MPU9250\MPL\mllite\ml_math_func.h(123): error:  #20: identifier "inv_biquad_filter_t" is undefined
      float inv_biquad_filter_process(inv_biquad_filter_t *pFilter, float input);
..\HARDWARE\MPU9250\MPL\mllite\ml_math_func.h(124): error:  #20: identifier "inv_biquad_filter_t" is undefined
      void inv_calc_state_to_match_output(inv_biquad_filter_t *pFilter, float input);
..\HARDWARE\MPU9250\MPL\mllite\storage_manager.c: 6 warnings, 6 errors
compiling usmart.c...
..\USMART\usmart.c(391): error:  #20: identifier "USART_RX_BUF" is undefined
                USART_RX_BUF[len]='\0'; //在末尾加入结束符.
..\USMART\usmart.c: 0 warnings, 1 error
compiling usmart_config.c...
compiling usmart_str.c...
"..\OBJ\TEST.axf" - 84 Error(s), 70 Warning(s).
Target not created.
Build Time Elapsed:  00:00:20

正点原子例程.png
正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

13

主题

250

帖子

0

精华

金牌会员

Rank: 6Rank: 6

积分
2248
金钱
2248
注册时间
2019-8-7
在线时间
364 小时
发表于 2021-1-5 18:01:55 | 显示全部楼层

回帖奖励 +10 金钱

这个错误咋那么像是少了个  ;  的感觉
回复 支持 反对

使用道具 举报

11

主题

63

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
311
金钱
311
注册时间
2015-6-27
在线时间
63 小时
 楼主| 发表于 2021-1-6 11:10:19 | 显示全部楼层
远命 发表于 2021-1-5 18:01
这个错误咋那么像是少了个  ;  的感觉

正点原子OK例程我拿来用的
回复 支持 反对

使用道具 举报

11

主题

63

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
311
金钱
311
注册时间
2015-6-27
在线时间
63 小时
 楼主| 发表于 2021-1-6 11:13:56 | 显示全部楼层
本帖最后由 双规导航 于 2021-1-6 11:16 编辑
双规导航 发表于 2021-1-6 11:10
正点原子OK例程我拿来用的

static inline 去掉 报错就少很多
微信截图_20210106111441.png
QQ截图20210104122621.png
回复 支持 反对

使用道具 举报

13

主题

250

帖子

0

精华

金牌会员

Rank: 6Rank: 6

积分
2248
金钱
2248
注册时间
2019-8-7
在线时间
364 小时
发表于 2021-1-6 11:28:28 | 显示全部楼层

回帖奖励 +10 金钱

双规导航 发表于 2021-1-6 11:13
把 static inline 去掉 报错就少很多

是不是少了啥文件 你在他的例程里面进行移植试试
回复 支持 反对

使用道具 举报

11

主题

63

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
311
金钱
311
注册时间
2015-6-27
在线时间
63 小时
 楼主| 发表于 2021-1-6 11:34:27 | 显示全部楼层
远命 发表于 2021-1-6 11:28
是不是少了啥文件 你在他的例程里面进行移植试试

也只能逆像思维了
回复 支持 反对

使用道具 举报

11

主题

63

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
311
金钱
311
注册时间
2015-6-27
在线时间
63 小时
 楼主| 发表于 2021-1-7 17:55:01 | 显示全部楼层
远命 发表于 2021-1-6 11:28
是不是少了啥文件 你在他的例程里面进行移植试试

逆向成功了  
回复 支持 反对

使用道具 举报

13

主题

250

帖子

0

精华

金牌会员

Rank: 6Rank: 6

积分
2248
金钱
2248
注册时间
2019-8-7
在线时间
364 小时
发表于 2021-1-11 09:07:11 | 显示全部楼层

看来是哪里没注意到 没改成 深究可能一天也找不到问题在哪
回复 支持 反对

使用道具 举报

10

主题

205

帖子

0

精华

金牌会员

Rank: 6Rank: 6

积分
1322
金钱
1322
注册时间
2015-3-3
在线时间
127 小时
发表于 2021-2-2 09:17:00 | 显示全部楼层

回帖奖励 +10 金钱

用过JY901,是串口直接打印的数据,没原始数据/
海纳百川者,荣耀伴一生!
回复 支持 反对

使用道具 举报

2

主题

592

帖子

0

精华

金牌会员

Rank: 6Rank: 6

积分
1458
金钱
1458
注册时间
2019-7-28
在线时间
137 小时
发表于 2021-12-28 15:21:09 | 显示全部楼层

回帖奖励 +10 金钱

报错比较多
回复 支持 反对

使用道具 举报

2

主题

592

帖子

0

精华

金牌会员

Rank: 6Rank: 6

积分
1458
金钱
1458
注册时间
2019-7-28
在线时间
137 小时
发表于 2021-12-28 15:21:30 | 显示全部楼层

回帖奖励 +10 金钱

这个太长了,要慢慢看下
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2025-2-26 10:02

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

快速回复 返回顶部 返回列表