| 
 | 
 
 
../main.c(819): warning: result of comparison of constant 1024 with expression of type 'int8' (aka 'signed char') is always true [-Wtautological-constant-out-of-range-compare] 
  819 |                     if (frame_len <= RX_BUFFER_LEN) 
      |                         ~~~~~~~~~ ^  ~~~~~~~~~~~~~ 
../main.c(972): error: call to undeclared function 'LCD_ClearLines'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 
  972 |                          LCD_ClearLines(); 
      |                          ^ 
../main.c(977): warning: passing 'char[16]' to parameter of type 'uint8_t *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 
  977 |         OLED_ShowString(0, 2,dist_str); 
      |                              ^~~~~~~~ 
../platform\lcd_oled.h(57): note: passing argument to parameter 'p' here 
   57 | void OLED_ShowString(uint8_t x,uint8_t y, uint8_t *p); 
      |                                                    ^ 
../main.c(983): warning: passing 'char[16]' to parameter of type 'uint8_t *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 
  983 |         OLED_ShowString(0, 4,dist_str); 
      |                              ^~~~~~~~ 
../platform\lcd_oled.h(57): note: passing argument to parameter 'p' here 
   57 | void OLED_ShowString(uint8_t x,uint8_t y, uint8_t *p); 
      |                                                    ^ 
../main.c(989): warning: passing 'char[16]' to parameter of type 'uint8_t *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 
  989 |         OLED_ShowString(0, 6,dist_str); 
      |                              ^~~~~~~~ 
../platform\lcd_oled.h(57): note: passing argument to parameter 'p' here 
   57 | void OLED_ShowString(uint8_t x,uint8_t y, uint8_t *p); 
      |                                                    ^ 
../main.c(1074): warning: array index 3 is past the end of the array (that has type 'int[3]') [-Warray-bounds] 
 1074 |             angle_msg[LOCATION_INFO_START_IDX + (len++)] = (uint8)((Anthordistance[3]/10)&0xFF); 
      |                                                                     ^              ~ 
../main.c(194): note: array 'Anthordistance' declared here 
  194 | int Anthordistance[ANCHOR_MAX_NUM]; 
      | ^ 
../main.c(1075): warning: array index 3 is past the end of the array (that has type 'int[3]') [-Warray-bounds] 
 1075 |             angle_msg[LOCATION_INFO_START_IDX + (len++)] = (uint8)((Anthordistance[3]/10 >>8)&0xFF); 
      |                                                                     ^              ~ 
../main.c(194): note: array 'Anthordistance' declared here 
  194 | int Anthordistance[ANCHOR_MAX_NUM]; 
      | ^ 
14 warnings and 1 error generated. 
 
../../../Libraries/CMSIS/CM3/CoreSupport/core_cm3.c(445): error: non-ASM statement in naked function is not supported 
  445 |   uint32_t result=0; 
      |   ^ 
../../../Libraries/CMSIS/CM3/CoreSupport/core_cm3.c(442): note: attribute is here 
  442 | uint32_t __get_PSP(void) __attribute__( ( naked ) ); 
      |                                           ^ 
../../../Libraries/CMSIS/CM3/CoreSupport/core_cm3.c(465): error: parameter references not allowed in naked functions 
  465 |                   "BX  lr     \n\t" : : "r" (topOfProcStack) ); 
      |                                              ^ 
../../../Libraries/CMSIS/CM3/CoreSupport/core_cm3.c(461): note: attribute is here 
  461 | void __set_PSP(uint32_t topOfProcStack) __attribute__( ( naked ) ); 
      |                                                          ^ 
../../../Libraries/CMSIS/CM3/CoreSupport/core_cm3.c(479): error: non-ASM statement in naked function is not supported 
  479 |   uint32_t result=0; 
      |   ^ 
../../../Libraries/CMSIS/CM3/CoreSupport/core_cm3.c(476): note: attribute is here 
  476 | uint32_t __get_MSP(void) __attribute__( ( naked ) ); 
      |                                           ^ 
../../../Libraries/CMSIS/CM3/CoreSupport/core_cm3.c(499): error: parameter references not allowed in naked functions 
  499 |                   "BX  lr     \n\t" : : "r" (topOfMainStack) ); 
      |                                              ^ 
../../../Libraries/CMSIS/CM3/CoreSupport/core_cm3.c(495): note: attribute is here 
  495 | void __set_MSP(uint32_t topOfMainStack) __attribute__( ( naked ) ); 
      |                                                          ^ 
4 errors generated. 
 
../platform/port.c(301): error: call to undeclared library function 'printf' with type 'int (const char *, ...)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 
  301 |     printf("/*****************************************************************/\n"); 
      |     ^ 
../platform/port.c(301): note: include the header <stdio.h> or explicitly provide a declaration for 'printf' 
../platform/port.c(318): error: call to undeclared function 'putchar'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 
  318 |         putchar(s[i]); 
      |         ^ 
2 errors generated. 
 
../kalman/kalman.c(141): error: call to undeclared function 'MatrixMul'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 
  141 |     MatrixMul(A, tOpt.XPreOpt, X, A_ROW, X_ROW, X_COLUMN);       //  <BB><F9><D3><DA>系统<B5><C4><C9><CF>一状态<B6><F8>预<B2><E2><CF><D6><D4><DA>状态; X(k|k-1) = A(k,k-1)*X(k-1|k-1) 
      |     ^ 
../kalman/kalman.c(143): error: call to undeclared function 'MatrixCal1'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 
  143 |     MatrixCal1(A, tCov.PPreOpt, Temp4, SYS_ORDER); 
      |     ^ 
../kalman/kalman.c(144): error: call to undeclared function 'MatrixAdd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 
  144 |     MatrixAdd(Temp4, Q, P, P_ROW, P_COLUMN);                     //  预<B2><E2><CA><FD><BE>莸<C4>协<B7><BD><B2><EE><BE><D8><D5><F3>; P(k|k-1) = A(k,k-1)*P(k-1|k-1)*A(k,k-1)'+Q 
      |     ^ 
../kalman/kalman.c(146): error: call to undeclared function 'MatrixCal2'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 
  146 |     MatrixCal2(C, P, Temp1, C_ROW, C_COLUMN); 
      |     ^ 
../kalman/kalman.c(148): error: call to undeclared function 'Gauss_Jordan'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 
  148 |     Gauss_Jordan(Temp1, C_ROW); 
      |     ^ 
../kalman/kalman.c(149): error: call to undeclared function 'MatrixTrans'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 
  149 |     MatrixTrans(C, Temp2, C_ROW, C_COLUMN); 
      |     ^ 
../kalman/kalman.c(154): error: call to undeclared function 'MatrixMinus'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 
  154 |     MatrixMinus(Y, Temp1, Temp1, Y_ROW, Y_COLUMN); 
      |     ^ 
7 errors generated. 
compiling kalman.c... 
../trilateration/trilateration.c(712): error: call to undeclared library function 'printf' with type 'int (const char *, ...)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 
  712 |     printf("r1=%f , r2=%f, r3=%f,  r4=%f\r\n",r1,r2,r3,r4); 
      |     ^ 
../trilateration/trilateration.c(712): note: include the header <stdio.h> or explicitly provide a declaration for 'printf' 
../trilateration/trilateration.c(941): error: call to undeclared library function 'abs' with type 'int (int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 
  941 |         if (abs(points_AC_0 - circles[2].r) < abs(points_AC_1 - circles[2].r))//cross_point[0] 
      |             ^ 
../trilateration/trilateration.c(941): note: include the header <math.h> or explicitly provide a declaration for 'abs' 
../trilateration/trilateration.c(941): warning: using integer absolute value function 'abs' when argument is of floating point type [-Wabsolute-value] 
  941 |         if (abs(points_AC_0 - circles[2].r) < abs(points_AC_1 - circles[2].r))//cross_point[0] 
      |             ^ 
../trilateration/trilateration.c(941): note: use function 'fabs' instead 
  941 |         if (abs(points_AC_0 - circles[2].r) < abs(points_AC_1 - circles[2].r))//cross_point[0] 
      |             ^~~ 
      |             fabs 
../trilateration/trilateration.c(941): warning: using integer absolute value function 'abs' when argument is of floating point type [-Wabsolute-value] 
  941 |         if (abs(points_AC_0 - circles[2].r) < abs(points_AC_1 - circles[2].r))//cross_point[0] 
      |                                               ^ 
../trilateration/trilateration.c(941): note: use function 'fabs' instead 
  941 |         if (abs(points_AC_0 - circles[2].r) < abs(points_AC_1 - circles[2].r))//cross_point[0] 
      |                                               ^~~ 
      |                                               fabs 
2 warnings and 2 errors generated. 
compiling trilateration.c... 
../at24c16/AT24C02.c(12): error: call to undeclared library function 'printf' with type 'int (const char *, ...)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 
   12 |         printf("TEST1\r\n"); 
      |         ^ 
 
".\STM3210E-EVAL\STM3210E-EVAL.axf" - 17 Error(s), 17 Warning(s). 
 
 |   
 
 
 
 |