本帖最后由 qq1451740662 于 2021-3-8 15:51 编辑
相对应的.h文件都是已经添加了的,就是看到网上有帖子说没加就加上后编译出现了新的报错,错误代码倒是相同..\HARDWARE\LCD\lcd.c(352): warning: #167-D: argument of type "const char *" is incompatible with parameter of type "const u8 *"
WriteA_Chinese(mode,x,y,p);
..\HARDWARE\LCD\lcd.c(385): warning: #167-D: argument of type "u8 *" is incompatible with parameter of type "const char *"
LCD_ShowAllString(1,x0,y0*8,pp);
..\HARDWARE\LCD\lcd.c(389): warning: #167-D: argument of type "u8 *" is incompatible with parameter of type "const char *"
LCD_ShowAllString(show_mode,x0,y0*8,pp);
..\HARDWARE\LCD\lcd.c: 3 warnings, 0 errors
compiling led.c...
compiling Setting.c...
..\HARDWARE\SETMODE\Setting.c(12): warning: #167-D: argument of type "uint8_t *" is incompatible with parameter of type "char *__restrict__"
strcpy(value[0].Num_Temp, "0000000000");
..\HARDWARE\SETMODE\Setting.c(13): warning: #167-D: argument of type "uint8_t *" is incompatible with parameter of type "char *__restrict__"
strcpy(value[1].Num_Temp, "0000000000");
..\HARDWARE\SETMODE\Setting.c(14): warning: #167-D: argument of type "uint8_t *" is incompatible with parameter of type "char *__restrict__"
strcpy(value[2].Num_Temp, "0000000000");
..\HARDWARE\SETMODE\Setting.c(15): warning: #167-D: argument of type "uint8_t *" is incompatible with parameter of type "char *__restrict__"
strcpy(value[3].Num_Temp, "0000000000");
..\HARDWARE\SETMODE\Setting.c(16): warning: #167-D: argument of type "uint8_t *" is incompatible with parameter of type "char *__restrict__"
strcpy(value[0].name, "CH0:");
..\HARDWARE\SETMODE\Setting.c(17): warning: #167-D: argument of type "uint8_t *" is incompatible with parameter of type "char *__restrict__"
strcpy(value[1].name, "CH1:");
..\HARDWARE\SETMODE\Setting.c(18): warning: #167-D: argument of type "uint8_t *" is incompatible with parameter of type "char *__restrict__"
strcpy(value[2].name, "CH2:");
..\HARDWARE\SETMODE\Setting.c(19): warning: #167-D: argument of type "uint8_t *" is incompatible with parameter of type "char *__restrict__"
strcpy(value[3].name, "CH3:");
..\HARDWARE\SETMODE\Setting.c(37): warning: #167-D: argument of type "uint8_t *" is incompatible with parameter of type "char *__restrict__"
strcpy(value[
ine_max - 1].name, " Back ");
..\HARDWARE\SETMODE\Setting.c(46): warning: #167-D: argument of type "u8 *" is incompatible with parameter of type "char *__restrict__"
strcpy(SELECT_L, "1111");
..\HARDWARE\SETMODE\Setting.c(47): warning: #167-D: argument of type "u8 *" is incompatible with parameter of type "char *__restrict__"
strcpy(SELECT_S, "1111111111");
..\HARDWARE\SETMODE\Setting.c(79): warning: #167-D: argument of type "u8 *" is incompatible with parameter of type "char *__restrict__"
strcpy(SELECT_L, "1111");
..\HARDWARE\SETMODE\Setting.c(99): warning: #167-D: argument of type "u8 *" is incompatible with parameter of type "char *__restrict__"
strcpy(SELECT_L, "1111");
..\HARDWARE\SETMODE\Setting.c(44): warning: #177-D: variable "Set_Key" was declared but never referenced
u8 Set_Key, line = 1, OK = 0, SELECT_L[4], SELECT_S[10];
..\HARDWARE\SETMODE\Setting.c(44): warning: #177-D: variable "OK" was declared but never referenced
u8 Set_Key, line = 1, OK = 0, SELECT_L[4], SELECT_S[10];
..\HARDWARE\SETMODE\Setting.c: 15 warnings, 0 errors
compiling timer.c...
linking...
.\CE.axf: Error: L6218E: Undefined symbol MY_NVIC_PriorityGroup_Config (referred from main.o).
.\CE.axf: Error: L6218E: Undefined symbol Set_PointFre (referred from main.o).
.\CE.axf: Error: L6218E: Undefined symbol _return (referred from main.o).
.\CE.axf: Error: L6218E: Undefined symbol delay_init (referred from main.o).
.\CE.axf: Error: L6218E: Undefined symbol delay_ms (referred from main.o).
.\CE.axf: Error: L6218E: Undefined symbol SinAmp (referred from ad9959.o).
.\CE.axf: Error: L6218E: Undefined symbol SinFre (referred from ad9959.o).
.\CE.axf: Error: L6218E: Undefined symbol SinPhr (referred from ad9959.o).
.\CE.axf: Error: L6218E: Undefined symbol draw_circle_8 (referred from lcd.o).
.\CE.axf: Error: L6218E: Undefined symbol swap_int (referred from lcd.o).
.\CE.axf: Error: L6218E: Undefined symbol SweepFlag (referred from timer.o).
.\CE.axf: Error: L6218E: Undefined symbol SweepMaxFre (referred from timer.o).
.\CE.axf: Error: L6218E: Undefined symbol SweepMinFre (referred from timer.o).
.\CE.axf: Error: L6218E: Undefined symbol SweepStepFre (referred from timer.o).
.\CE.axf: Error: L6218E: Undefined symbol SweepTime (referred from timer.o).
Not enough information to list image symbols.
Not enough information to list load addresses in the image map.
Finished: 2 information, 0 warning and 15 error messages.
".\CE.axf" - 15 Error(s), 18 Warning(s).
报错和警告更多了,请问这是什么原因
|