平衡车工程keil5编译报错log分析_191202

*** Using Compiler 'V5.06 update 6 (build 750)', folder: 'D:\SoftWareTools\2.DesignTools\Keil_v5\ARM\ARMCC\Bin'
Rebuild target 'Target 1'
compiling stm32f10x_dma.c...
compiling stm32f10x_gpio.c...
compiling misc.c...
compiling stm32f10x_i2c.c...
compiling stm32f10x_tim.c...
compiling stm32f10x_exti.c...
compiling stm32f10x_rcc.c...
compiling stm32f10x_crc.c...
compiling stm32f10x_cec.c...
compiling stm32f10x_dac.c...
compiling stm32f10x_bkp.c...
compiling stm32f10x_usart.c...
compiling stm32f10x_adc.c...
compiling stm32f10x_can.c...
compiling stm32f10x_dbgmcu.c...
compiling stm32f10x_iwdg.c...
compiling stm32f10x_fsmc.c...
compiling stm32f10x_rtc.c...
compiling stm32f10x_flash.c...
compiling stm32f10x_pwr.c...
compiling stm32f10x_sdio.c...
compiling stm32f10x_wwdg.c...
compiling delay.c...
compiling system_stm32f10x.c...
compiling stm32f10x_spi.c...
compiling I2C_MPU6050.c...
User\I2C_MPU6050.c(190): warning:  #223-D: function "delay_ms" declared implicitly
  	delay_ms(100);
User\I2C_MPU6050.c: 1 warning, 0 errors
compiling core_cm3.c...
compiling I2C.c...
compiling motor.c...
compiling main.c...
compiling led.c...
compiling pwm.c...
compiling stm32f10x_it.c...
compiling OUTPUTDATA.c...
compiling MPU6050.c...
assembling startup_stm32f10x_md.s...
compiling systick.c...
compiling usart.c...
User\usart.c(217): error:  #928: incorrect use of va_start
  	va_start(ap, Data);
User\usart.c(217): error:  #253: expected a ","
  	va_start(ap, Data);
User\usart.c(217): error:  #29: expected an expression
  	va_start(ap, Data);
User\usart.c(245): error:  #929: incorrect use of va_arg
  			s = va_arg(ap, const char *);
User\usart.c(255): error:  #929: incorrect use of va_arg
  	d = va_arg(ap, int);
User\usart.c: 0 warnings, 5 errors
compiling timer.c...
compiling UltrasonicWave.c...
compiling adc.c...
compiling upstandingcar.c...
D:\SoftWareTools\2.DesignTools\ADSv1_2\INCLUDE\math.h(352): error:  #147: declaration is incompatible with "int y1"  (declared at line 66 of "User\upstandingcar.h")
  __inline double y1(double __x) { return _FPMANGLE(y1)(__x); }
User\upstandingcar.c(115): error:  #147: declaration is incompatible with "double y1(double)"  (declared at line 352 of "D:\SoftWareTools\2.DesignTools\ADSv1_2\INCLUDE\math.h")
  int x,y1,z1,y2,z2,flagbt;
User\upstandingcar.c: 0 warnings, 2 errors
compiling inv_mpu.c...
compiling inv_mpu_dmp_motion_driver.c...
".\Output\BST Balance 0507.axf" - 7 Error(s), 1 Warning(s).
Target not created.
Build Time Elapsed:  00:00:05

ADS1.2与MDK不兼容问题的解决

发布了56 篇原创文章 · 获赞 12 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/I_feige/article/details/103342551
今日推荐