1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
<html>
<body>
<pre>
<h1>µVision Build Log</h1>
<h2>Tool Versions:</h2>
IDE-Version: ¦ÌVision V5.30.0.0
Copyright (C) 2020 ARM Ltd and ARM Germany GmbH. All rights reserved.
License Information: qweq xookko@outlook.com, qweqeq, LIC=47GU5-GD9Z0-FWK2N-Y9XQ0-MH3EA-KZ8D2
 
Tool Versions:
Toolchain:       MDK-ARM Plus  Version: 5.30.0.0
Toolchain Path:  d:\Keil_v5\ARM\ARMCLANG\Bin
C Compiler:      ArmClang.exe V6.14
Assembler:       Armasm.exe V6.14
Linker/Locator:  ArmLink.exe V6.14
Library Manager: ArmAr.exe V6.14
Hex Converter:   FromElf.exe V6.14
CPU DLL:         SARMCM3.DLL V5.30.0.0
Dialog DLL:      DARMCM1.DLL V1.19.3.0
Target DLL:      Segger\JL2CM3.dll V2.99.38.0
Dialog DLL:      TARMCM1.DLL V1.14.2.0
 
<h2>Project:</h2>
D:\project_chen\ChinaUWBProject_URT no UWB\ChinaUWBProject\keil\uwb_simple_example.uvprojx
Project File Date:  03/14/2025
 
<h2>Output:</h2>
*** Using Compiler 'V6.14', folder: 'd:\Keil_v5\ARM\ARMCLANG\Bin'
Rebuild target 'MK8000 Release'
compiling cmp_svec.c...
compiling mk_dma.c...
compiling startup_MK800X.c...
compiling system_MK800X.c...
compiling mk_io.c...
compiling mk_gpio.c...
compiling mk_clock.c...
compiling mk_reset.c...
compiling mk_dual_timer.c...
compiling mk_calib.c...
include/drivers/mk_adc.c(464): warning: 'NUM_SAMPLES' macro redefined [-Wmacro-redefined]
#define NUM_SAMPLES (3)
        ^
include/drivers/mk_adc.c(415): note: previous definition is here
#define NUM_SAMPLES (1)
        ^
1 warning generated.
compiling mk_adc.c...
compiling mk_misc.c...
compiling mk_power.c...
compiling mk_sleep_timer.c...
compiling mk_aes.c...
compiling mk_rtc.c...
compiling mk_wdt.c...
compiling mk_flash.c...
compiling mk_uwb.c...
compiling mk_uart.c...
include/drivers/global_param.c(9): warning: no previous prototype for function 'parameter_check' [-Wmissing-prototypes]
uint8_t parameter_check(void)
        ^
include/drivers/global_param.c(9): note: declare 'static' if the function is not intended to be used outside of this translation unit
uint8_t parameter_check(void)
^
static 
include/drivers/global_param.c(46): warning: implicit conversion changes signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
                result=flash_open(FLASH_ID0,NULL);
                      ~^~~~~~~~~~~~~~~~~~~~~~~~~~
include/drivers/global_param.c(70): warning: implicit conversion changes signedness: 'int' to 'uint16_t' (aka 'unsigned short') [-Wsign-conversion]
                g_com_map[DIST_OFFSET]=-31;
                                      ~^~~
include/drivers/global_param.c(107): warning: implicit conversion changes signedness: 'int' to 'uint16_t' (aka 'unsigned short') [-Wsign-conversion]
                g_com_map[DIST_OFFSET]=-31;
                                      ~^~~
include/drivers/global_param.c(129): warning: no newline at end of file [-Wnewline-eof]
}
 ^
5 warnings generated.
compiling global_param.c...
include/drivers/serial_at_cmd_app.c(43): warning: no previous extern declaration for non-static variable 'j_ct' [-Wmissing-variable-declarations]
uint8_t j_ct=0,CT_satrt_temp=0,CT_satrt=0,numb_base=0   ;
        ^
include/drivers/serial_at_cmd_app.c(43): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint8_t j_ct=0,CT_satrt_temp=0,CT_satrt=0,numb_base=0   ;
^
include/drivers/serial_at_cmd_app.c(43): warning: no previous extern declaration for non-static variable 'CT_satrt_temp' [-Wmissing-variable-declarations]
uint8_t j_ct=0,CT_satrt_temp=0,CT_satrt=0,numb_base=0   ;
               ^
include/drivers/serial_at_cmd_app.c(43): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint8_t j_ct=0,CT_satrt_temp=0,CT_satrt=0,numb_base=0   ;
^
include/drivers/serial_at_cmd_app.c(43): warning: no previous extern declaration for non-static variable 'CT_satrt' [-Wmissing-variable-declarations]
uint8_t j_ct=0,CT_satrt_temp=0,CT_satrt=0,numb_base=0   ;
                               ^
include/drivers/serial_at_cmd_app.c(43): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint8_t j_ct=0,CT_satrt_temp=0,CT_satrt=0,numb_base=0   ;
^
include/drivers/serial_at_cmd_app.c(43): warning: no previous extern declaration for non-static variable 'numb_base' [-Wmissing-variable-declarations]
uint8_t j_ct=0,CT_satrt_temp=0,CT_satrt=0,numb_base=0   ;
                                          ^
include/drivers/serial_at_cmd_app.c(43): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint8_t j_ct=0,CT_satrt_temp=0,CT_satrt=0,numb_base=0   ;
^
include/drivers/serial_at_cmd_app.c(45): warning: no previous extern declaration for non-static variable 'id_cmpare' [-Wmissing-variable-declarations]
uint8_t id_cmpare[12]={0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x30, 0x30, 0x30, 0x31};//123456780001//<B2><E2><CA><D4>//RC2202A<A3><BA>
        ^
include/drivers/serial_at_cmd_app.c(45): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint8_t id_cmpare[12]={0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x30, 0x30, 0x30, 0x31};//123456780001//<B2><E2><CA><D4>//RC2202A<A3><BA>
^
include/drivers/serial_at_cmd_app.c(46): warning: no previous extern declaration for non-static variable 'CT_sum' [-Wmissing-variable-declarations]
uint32_t CT_sum=0;
         ^
include/drivers/serial_at_cmd_app.c(46): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint32_t CT_sum=0;
^
include/drivers/serial_at_cmd_app.c(58): warning: no previous prototype for function 'Checksum_u16' [-Wmissing-prototypes]
uint16_t Checksum_u16(uint8_t* pdata, uint32_t len) 
         ^
include/drivers/serial_at_cmd_app.c(58): note: declare 'static' if the function is not intended to be used outside of this translation unit
uint16_t Checksum_u16(uint8_t* pdata, uint32_t len) 
^
static 
include/drivers/serial_at_cmd_app.c(67): warning: no previous prototype for function 'SendComMap0' [-Wmissing-prototypes]
void SendComMap0(uint8_t data_length, uint8_t index)//<B1><ED>ʾ<B3>ɹ<A6><B6><C1>È¡<B5>Ä»<D8>Ó¦<B0><FC>
     ^
include/drivers/serial_at_cmd_app.c(67): note: declare 'static' if the function is not intended to be used outside of this translation unit
void SendComMap0(uint8_t data_length, uint8_t index)//<B1><ED>ʾ<B3>ɹ<A6><B6><C1>È¡<B5>Ä»<D8>Ó¦<B0><FC>
^
static 
include/drivers/serial_at_cmd_app.c(88): warning: no previous prototype for function 'SendComMap' [-Wmissing-prototypes]
void SendComMap(uint8_t data_length, uint8_t index)//<B1><ED>ʾ<B3>ɹ<A6><B6><C1>È¡<B5>Ä»<D8>Ó¦<B0><FC>
     ^
include/drivers/serial_at_cmd_app.c(88): note: declare 'static' if the function is not intended to be used outside of this translation unit
void SendComMap(uint8_t data_length, uint8_t index)//<B1><ED>ʾ<B3>ɹ<A6><B6><C1>È¡<B5>Ä»<D8>Ó¦<B0><FC>
^
static 
include/drivers/serial_at_cmd_app.c(116): warning: implicit conversion changes signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
        result = flash_open(FLASH_ID0,NULL);
               ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~
include/drivers/serial_at_cmd_app.c(119): warning: implicit conversion changes signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
          result = flash_write_nbytes(FLASH_ID0,APP_CONFIG_IAPFLAG_MAP,(uint8_t*)&tmp,2);
                 ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/drivers/serial_at_cmd_app.c(121): warning: illegal character encoding in string literal [-Winvalid-source-encoding]
        Serial0PutString("<BD><F8><C8><EB><C9><FD><BC><B6>ģʽ\r\n");
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/drivers/mk_uart.h(70): note: expanded from macro 'Serial0PutString'
#define Serial0PutString(x)   Serial0_PutString((uint8_t*)(x))
                                                           ^
include/drivers/serial_at_cmd_app.c(180): warning: 'break' will never be executed [-Wunreachable-code-break]
                                        break;
                                        ^~~~~
include/drivers/serial_at_cmd_app.c(242): warning: unused variable 'checksum' [-Wunused-variable]
        uint16_t checksum = 0;
                 ^
include/drivers/serial_at_cmd_app.c(244): warning: unused variable 'pack_datalen' [-Wunused-variable]
        static uint8_t pack_datalen = 0,pack_length = 0,pack_index = 0,pack_msgtype = 0,pack_cmd = CMD_READ;
                       ^
include/drivers/serial_at_cmd_app.c(244): warning: unused variable 'pack_length' [-Wunused-variable]
        static uint8_t pack_datalen = 0,pack_length = 0,pack_index = 0,pack_msgtype = 0,pack_cmd = CMD_READ;
                                        ^
include/drivers/serial_at_cmd_app.c(244): warning: unused variable 'pack_index' [-Wunused-variable]
        static uint8_t pack_datalen = 0,pack_length = 0,pack_index = 0,pack_msgtype = 0,pack_cmd = CMD_READ;
                                                        ^
include/drivers/serial_at_cmd_app.c(244): warning: unused variable 'pack_msgtype' [-Wunused-variable]
        static uint8_t pack_datalen = 0,pack_length = 0,pack_index = 0,pack_msgtype = 0,pack_cmd = CMD_READ;
                                                                       ^
include/drivers/serial_at_cmd_app.c(244): warning: unused variable 'pack_cmd' [-Wunused-variable]
        static uint8_t pack_datalen = 0,pack_length = 0,pack_index = 0,pack_msgtype = 0,pack_cmd = CMD_READ;
                                                                                        ^
include/drivers/serial_at_cmd_app.c(42): warning: no previous extern declaration for non-static variable 'mUsart2ReceivePack_before' [-Wmissing-variable-declarations]
uint8_t  mUsart2ReceivePack_before , mUsart2ReceivePack_now;
         ^
include/drivers/serial_at_cmd_app.c(42): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint8_t  mUsart2ReceivePack_before , mUsart2ReceivePack_now;
^
include/drivers/serial_at_cmd_app.c(42): warning: no previous extern declaration for non-static variable 'mUsart2ReceivePack_now' [-Wmissing-variable-declarations]
uint8_t  mUsart2ReceivePack_before , mUsart2ReceivePack_now;
                                     ^
include/drivers/serial_at_cmd_app.c(42): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint8_t  mUsart2ReceivePack_before , mUsart2ReceivePack_now;
^
include/drivers/serial_at_cmd_app.c(47): warning: no previous extern declaration for non-static variable 'char_broadcast_data' [-Wmissing-variable-declarations]
char char_broadcast_data[80];//<B9>ã²¥<CA><FD><BE><DD>
     ^
include/drivers/serial_at_cmd_app.c(47): note: declare 'static' if the variable is not intended to be used outside of this translation unit
char char_broadcast_data[80];//<B9>ã²¥<CA><FD><BE><DD>
^
include/drivers/serial_at_cmd_app.c(49): warning: no previous extern declaration for non-static variable 'Lora_TXD_bff' [-Wmissing-variable-declarations]
uint8_t  Lora_TXD_bff[Lora_TXD_bff_MAX]; //lora<B7><A2><CB>Í»<BA><B4><E6><C7><F8>
         ^
include/drivers/serial_at_cmd_app.c(49): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint8_t  Lora_TXD_bff[Lora_TXD_bff_MAX]; //lora<B7><A2><CB>Í»<BA><B4><E6><C7><F8>
^
include/drivers/serial_at_cmd_app.c(50): warning: no previous extern declaration for non-static variable 'data_buff' [-Wmissing-variable-declarations]
uint16_t data_buff[data_buff_MAX][2];    //<BB><F9>Õ¾<CA><FD><BE>Ý»<BA><B4><E6><C7><F8>
         ^
include/drivers/serial_at_cmd_app.c(50): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint16_t data_buff[data_buff_MAX][2];    //<BB><F9>Õ¾<CA><FD><BE>Ý»<BA><B4><E6><C7><F8>
^
include/drivers/serial_at_cmd_app.c(52): warning: no previous extern declaration for non-static variable 'char_mac' [-Wmissing-variable-declarations]
char  char_mac[14],char_ssi[6];
      ^
include/drivers/serial_at_cmd_app.c(52): note: declare 'static' if the variable is not intended to be used outside of this translation unit
char  char_mac[14],char_ssi[6];
^
include/drivers/serial_at_cmd_app.c(52): warning: no previous extern declaration for non-static variable 'char_ssi' [-Wmissing-variable-declarations]
char  char_mac[14],char_ssi[6];
                   ^
include/drivers/serial_at_cmd_app.c(52): note: declare 'static' if the variable is not intended to be used outside of this translation unit
char  char_mac[14],char_ssi[6];
^
include/drivers/serial_at_cmd_app.c(54): warning: no previous extern declaration for non-static variable 'ssi_double' [-Wmissing-variable-declarations]
double ssi_double;
       ^
include/drivers/serial_at_cmd_app.c(54): note: declare 'static' if the variable is not intended to be used outside of this translation unit
double ssi_double;
^
include/drivers/serial_at_cmd_app.c(55): warning: no previous extern declaration for non-static variable 'temp_16' [-Wmissing-variable-declarations]
uint16_t temp_16,temp_16_id,temp_16_distance,data_buff_start;
         ^
include/drivers/serial_at_cmd_app.c(55): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint16_t temp_16,temp_16_id,temp_16_distance,data_buff_start;
^
include/drivers/serial_at_cmd_app.c(55): warning: no previous extern declaration for non-static variable 'temp_16_id' [-Wmissing-variable-declarations]
uint16_t temp_16,temp_16_id,temp_16_distance,data_buff_start;
                 ^
include/drivers/serial_at_cmd_app.c(55): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint16_t temp_16,temp_16_id,temp_16_distance,data_buff_start;
^
include/drivers/serial_at_cmd_app.c(55): warning: no previous extern declaration for non-static variable 'temp_16_distance' [-Wmissing-variable-declarations]
uint16_t temp_16,temp_16_id,temp_16_distance,data_buff_start;
                            ^
include/drivers/serial_at_cmd_app.c(55): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint16_t temp_16,temp_16_id,temp_16_distance,data_buff_start;
^
include/drivers/serial_at_cmd_app.c(55): warning: no previous extern declaration for non-static variable 'data_buff_start' [-Wmissing-variable-declarations]
uint16_t temp_16,temp_16_id,temp_16_distance,data_buff_start;
                                             ^
include/drivers/serial_at_cmd_app.c(55): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint16_t temp_16,temp_16_id,temp_16_distance,data_buff_start;
^
31 warnings generated.
compiling serial_at_cmd_app.c...
include/drivers/Usart1.c(12): warning: no previous extern declaration for non-static variable 'm_EUART1_TxFrm_Tail' [-Wmissing-variable-declarations]
volatile int8_t m_EUART1_TxFrm_Tail = 0;                                        //<CA><FD><BE>Ý·<A2><CB><CD>Ö¡<B6><D3><C1><D0>βָ<D5><EB>
                ^
include/drivers/Usart1.c(12): note: declare 'static' if the variable is not intended to be used outside of this translation unit
volatile int8_t m_EUART1_TxFrm_Tail = 0;                                        //<CA><FD><BE>Ý·<A2><CB><CD>Ö¡<B6><D3><C1><D0>βָ<D5><EB>
         ^
include/drivers/Usart1.c(13): warning: no previous extern declaration for non-static variable 'm_EUART1_TxFrm_Head' [-Wmissing-variable-declarations]
volatile int8_t m_EUART1_TxFrm_Head = 0;                                        //<CA><FD><BE>Ý·<A2><CB><CD>Ö¡<B6><D3><C1><D0>Í·Ö¸<D5><EB>
                ^
include/drivers/Usart1.c(13): note: declare 'static' if the variable is not intended to be used outside of this translation unit
volatile int8_t m_EUART1_TxFrm_Head = 0;                                        //<CA><FD><BE>Ý·<A2><CB><CD>Ö¡<B6><D3><C1><D0>Í·Ö¸<D5><EB>
         ^
include/drivers/Usart1.c(14): warning: no previous extern declaration for non-static variable 'm_EUART1_TxFrm_FreeFrmLen' [-Wmissing-variable-declarations]
volatile int8_t m_EUART1_TxFrm_FreeFrmLen = 0;                  //<CA><FD><BE>Ý·<A2><CB><CD>Ö¡<B6><D3><C1><D0>Ê£<D3><E0>Ö¡<CA><FD>
                ^
include/drivers/Usart1.c(14): note: declare 'static' if the variable is not intended to be used outside of this translation unit
volatile int8_t m_EUART1_TxFrm_FreeFrmLen = 0;                  //<CA><FD><BE>Ý·<A2><CB><CD>Ö¡<B6><D3><C1><D0>Ê£<D3><E0>Ö¡<CA><FD>
         ^
include/drivers/Usart1.c(17): warning: no previous extern declaration for non-static variable 'm_EUART1_DMA_RXPtr' [-Wmissing-variable-declarations]
volatile int32_t m_EUART1_DMA_RXPtr = 0;                                        //<B5><B1>ǰ<CA><FD><BE>ݵ<D8>Ö·
                 ^
include/drivers/Usart1.c(17): note: declare 'static' if the variable is not intended to be used outside of this translation unit
volatile int32_t m_EUART1_DMA_RXPtr = 0;                                        //<B5><B1>ǰ<CA><FD><BE>ݵ<D8>Ö·
         ^
include/drivers/Usart1.c(21): warning: no previous extern declaration for non-static variable 'm_bEUART1PushingFrms' [-Wmissing-variable-declarations]
volatile uint8_t m_bEUART1PushingFrms = 0;                              //<D5><FD><D4><DA><CD><F9><B7><A2><CB>Ͷ<D3><C1>д<E6><CA><FD><BE><DD>
                 ^
include/drivers/Usart1.c(21): note: declare 'static' if the variable is not intended to be used outside of this translation unit
volatile uint8_t m_bEUART1PushingFrms = 0;                              //<D5><FD><D4><DA><CD><F9><B7><A2><CB>Ͷ<D3><C1>д<E6><CA><FD><BE><DD>
         ^
include/drivers/Usart1.c(22): warning: no previous extern declaration for non-static variable 'm_bEUART1CheckingSend' [-Wmissing-variable-declarations]
volatile uint8_t m_bEUART1CheckingSend = 0;                             //<D5><FD><D4><DA>È·<C8><CF><CA><FD><BE>Ý·<A2><CB><CD>
                 ^
include/drivers/Usart1.c(22): note: declare 'static' if the variable is not intended to be used outside of this translation unit
volatile uint8_t m_bEUART1CheckingSend = 0;                             //<D5><FD><D4><DA>È·<C8><CF><CA><FD><BE>Ý·<A2><CB><CD>
         ^
include/drivers/Usart1.c(23): warning: no previous extern declaration for non-static variable 'm_bEUART1CheckingRec' [-Wmissing-variable-declarations]
volatile uint8_t m_bEUART1CheckingRec = 0;                              //<D5><FD><D4><DA>È·<C8>Ͻ<D3><CA><D5><CA><FD><BE><DD>
                 ^
include/drivers/Usart1.c(23): note: declare 'static' if the variable is not intended to be used outside of this translation unit
volatile uint8_t m_bEUART1CheckingRec = 0;                              //<D5><FD><D4><DA>È·<C8>Ͻ<D3><CA><D5><CA><FD><BE><DD>
         ^
include/drivers/Usart1.c(24): warning: no previous extern declaration for non-static variable 'm_bEUART1TxEn' [-Wmissing-variable-declarations]
volatile uint8_t m_bEUART1TxEn = 0;                                             //ʹ<C4>Ü·<A2><CB><CD>
                 ^
include/drivers/Usart1.c(24): note: declare 'static' if the variable is not intended to be used outside of this translation unit
volatile uint8_t m_bEUART1TxEn = 0;                                             //ʹ<C4>Ü·<A2><CB><CD>
         ^
include/drivers/Usart1.c(27): warning: no previous prototype for function 'Usart2InitVariables' [-Wmissing-prototypes]
void Usart2InitVariables(void)
     ^
include/drivers/Usart1.c(27): note: declare 'static' if the function is not intended to be used outside of this translation unit
void Usart2InitVariables(void)
^
static 
include/drivers/Usart1.c(43): warning: no previous prototype for function 'UART1_CheckReceive' [-Wmissing-prototypes]
void UART1_CheckReceive(void)
     ^
include/drivers/Usart1.c(43): note: declare 'static' if the function is not intended to be used outside of this translation unit
void UART1_CheckReceive(void)
^
static 
include/drivers/Usart1.c(62): warning: code will never be executed [-Wunreachable-code]
        while( m_EUART1_DMA_RXPtr != DMACnt2 && MaxDataLen2 > 0)
               ^~~~~~~~~~~~~~~~~~
include/drivers/Usart1.c(120): warning: implicit declaration of function 'delay_us' is invalid in C99 [-Wimplicit-function-declaration]
                delay_us(10);
                ^
include/drivers/Usart1.c(96): warning: code will never be executed [-Wunreachable-code]
        if(m_EUART1_TxFrm_Head == m_EUART1_TxFrm_Tail)                                  //<B6><D3><C1><D0>Ϊ<BF><D5>
           ^~~~~~~~~~~~~~~~~~~
include/drivers/Usart1.c(203): warning: implicit conversion changes signedness: 'int32_t' (aka 'int') to 'unsigned int' [-Wsign-conversion]
        memcpy((uint8_t*)m_EUART1_TxFrames[m_EUART1_TxFrm_Head].buf, (uint8_t*)pdata, data_len);
        ~~~~~~                                                                        ^~~~~~~~
include/drivers/Usart1.c(251): warning: no previous prototype for function 'Uart1_SendByte' [-Wmissing-prototypes]
void Uart1_SendByte(  uint8_t ch )
     ^
include/drivers/Usart1.c(251): note: declare 'static' if the function is not intended to be used outside of this translation unit
void Uart1_SendByte(  uint8_t ch )
^
static 
include/drivers/Usart1.c(11): warning: no previous extern declaration for non-static variable 'm_EUART1_TxFrames' [-Wmissing-variable-declarations]
EUART1_Frame m_EUART1_TxFrames[EUART1_TX_FRM_SIZE];     //<CA><FD><BE>Ý·<A2><CB><CD>Ö¡<B6><D3><C1><D0>        
             ^
include/drivers/Usart1.c(11): note: declare 'static' if the variable is not intended to be used outside of this translation unit
EUART1_Frame m_EUART1_TxFrames[EUART1_TX_FRM_SIZE];     //<CA><FD><BE>Ý·<A2><CB><CD>Ö¡<B6><D3><C1><D0>        
^
include/drivers/Usart1.c(38): warning: no previous extern declaration for non-static variable 't1' [-Wmissing-variable-declarations]
uint16_t t1;
         ^
include/drivers/Usart1.c(38): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint16_t t1;
^
17 warnings generated.
compiling Usart1.c...
include/drivers/Usart.c(10): warning: no previous extern declaration for non-static variable 'm_EUART_TxFrm_Tail' [-Wmissing-variable-declarations]
volatile int8_t m_EUART_TxFrm_Tail = 0;                                 //<CA><FD><BE>Ý·<A2><CB><CD>Ö¡<B6><D3><C1><D0>βָ<D5><EB>
                ^
include/drivers/Usart.c(10): note: declare 'static' if the variable is not intended to be used outside of this translation unit
volatile int8_t m_EUART_TxFrm_Tail = 0;                                 //<CA><FD><BE>Ý·<A2><CB><CD>Ö¡<B6><D3><C1><D0>βָ<D5><EB>
         ^
include/drivers/Usart.c(11): warning: no previous extern declaration for non-static variable 'm_EUART_TxFrm_Head' [-Wmissing-variable-declarations]
volatile int8_t m_EUART_TxFrm_Head = 0;                                 //<CA><FD><BE>Ý·<A2><CB><CD>Ö¡<B6><D3><C1><D0>Í·Ö¸<D5><EB>
                ^
include/drivers/Usart.c(11): note: declare 'static' if the variable is not intended to be used outside of this translation unit
volatile int8_t m_EUART_TxFrm_Head = 0;                                 //<CA><FD><BE>Ý·<A2><CB><CD>Ö¡<B6><D3><C1><D0>Í·Ö¸<D5><EB>
         ^
include/drivers/Usart.c(12): warning: no previous extern declaration for non-static variable 'm_EUART_TxFrm_FreeFrmLen' [-Wmissing-variable-declarations]
volatile int8_t m_EUART_TxFrm_FreeFrmLen = 0;                   //<CA><FD><BE>Ý·<A2><CB><CD>Ö¡<B6><D3><C1><D0>Ê£<D3><E0>Ö¡<CA><FD>
                ^
include/drivers/Usart.c(12): note: declare 'static' if the variable is not intended to be used outside of this translation unit
volatile int8_t m_EUART_TxFrm_FreeFrmLen = 0;                   //<CA><FD><BE>Ý·<A2><CB><CD>Ö¡<B6><D3><C1><D0>Ê£<D3><E0>Ö¡<CA><FD>
         ^
include/drivers/Usart.c(15): warning: no previous extern declaration for non-static variable 'm_EUART_DMA_RXPtr' [-Wmissing-variable-declarations]
volatile int32_t m_EUART_DMA_RXPtr = 0;                                 //<B5><B1>ǰ<CA><FD><BE>ݵ<D8>Ö·
                 ^
include/drivers/Usart.c(15): note: declare 'static' if the variable is not intended to be used outside of this translation unit
volatile int32_t m_EUART_DMA_RXPtr = 0;                                 //<B5><B1>ǰ<CA><FD><BE>ݵ<D8>Ö·
         ^
include/drivers/Usart.c(19): warning: no previous extern declaration for non-static variable 'm_bEUARTPushingFrms' [-Wmissing-variable-declarations]
volatile uint8_t m_bEUARTPushingFrms = 0;                               //<D5><FD><D4><DA><CD><F9><B7><A2><CB>Ͷ<D3><C1>д<E6><CA><FD><BE><DD>
                 ^
include/drivers/Usart.c(19): note: declare 'static' if the variable is not intended to be used outside of this translation unit
volatile uint8_t m_bEUARTPushingFrms = 0;                               //<D5><FD><D4><DA><CD><F9><B7><A2><CB>Ͷ<D3><C1>д<E6><CA><FD><BE><DD>
         ^
include/drivers/Usart.c(20): warning: no previous extern declaration for non-static variable 'm_bEUARTCheckingSend' [-Wmissing-variable-declarations]
volatile uint8_t m_bEUARTCheckingSend = 0;                              //<D5><FD><D4><DA>È·<C8><CF><CA><FD><BE>Ý·<A2><CB><CD>
                 ^
include/drivers/Usart.c(20): note: declare 'static' if the variable is not intended to be used outside of this translation unit
volatile uint8_t m_bEUARTCheckingSend = 0;                              //<D5><FD><D4><DA>È·<C8><CF><CA><FD><BE>Ý·<A2><CB><CD>
         ^
include/drivers/Usart.c(21): warning: no previous extern declaration for non-static variable 'm_bEUARTCheckingRec' [-Wmissing-variable-declarations]
volatile uint8_t m_bEUARTCheckingRec = 0;                               //<D5><FD><D4><DA>È·<C8>Ͻ<D3><CA><D5><CA><FD><BE><DD>
                 ^
include/drivers/Usart.c(21): note: declare 'static' if the variable is not intended to be used outside of this translation unit
volatile uint8_t m_bEUARTCheckingRec = 0;                               //<D5><FD><D4><DA>È·<C8>Ͻ<D3><CA><D5><CA><FD><BE><DD>
         ^
include/drivers/Usart.c(22): warning: no previous extern declaration for non-static variable 'm_bEUARTTxEn' [-Wmissing-variable-declarations]
volatile uint8_t m_bEUARTTxEn = 0;                                              //ʹ<C4>Ü·<A2><CB><CD>
                 ^
include/drivers/Usart.c(22): note: declare 'static' if the variable is not intended to be used outside of this translation unit
volatile uint8_t m_bEUARTTxEn = 0;                                              //ʹ<C4>Ü·<A2><CB><CD>
         ^
include/drivers/Usart.c(25): warning: no previous prototype for function 'Usart1InitVariables' [-Wmissing-prototypes]
void Usart1InitVariables(void)
     ^
include/drivers/Usart.c(25): note: declare 'static' if the function is not intended to be used outside of this translation unit
void Usart1InitVariables(void)
^
static 
include/drivers/Usart.c(38): warning: no previous extern declaration for non-static variable 'cndtr' [-Wmissing-variable-declarations]
uint32_t cndtr=0;
         ^
include/drivers/Usart.c(38): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint32_t cndtr=0;
^
include/drivers/Usart.c(57): warning: implicit conversion changes signedness: 'unsigned int' to 'int32_t' (aka 'int') [-Wsign-conversion]
        DMACnt = EUART_RX_BUF_SIZE - cndtr;
               ~ ~~~~~~~~~~~~~~~~~~^~~~~~~
include/drivers/Usart.c(67): warning: implicit conversion changes signedness: 'unsigned int' to 'int32_t' (aka 'int') [-Wsign-conversion]
                DMACnt = EUART_RX_BUF_SIZE - cndtr;
                       ~ ~~~~~~~~~~~~~~~~~~^~~~~~~
include/drivers/Usart.c(92): warning: implicit conversion changes signedness: 'unsigned int' to 'int32_t' (aka 'int') [-Wsign-conversion]
        DMACnt = EUART_RX_BUF_SIZE - cndtr;
               ~ ~~~~~~~~~~~~~~~~~~^~~~~~~
include/drivers/Usart.c(102): warning: implicit conversion changes signedness: 'unsigned int' to 'int32_t' (aka 'int') [-Wsign-conversion]
                DMACnt = EUART_RX_BUF_SIZE - cndtr;
                       ~ ~~~~~~~~~~~~~~~~~~^~~~~~~
include/drivers/Usart.c(239): warning: implicit conversion changes signedness: 'int32_t' (aka 'int') to 'unsigned int' [-Wsign-conversion]
        memcpy((uint8_t*)m_EUART_TxFrames[m_EUART_TxFrm_Head].buf, (uint8_t*)pdata, data_len);
        ~~~~~~                                                                      ^~~~~~~~
include/drivers/Usart.c(259): warning: no previous prototype for function 'USART_putc' [-Wmissing-prototypes]
void USART_putc(uint8_t c)
     ^
include/drivers/Usart.c(259): note: declare 'static' if the function is not intended to be used outside of this translation unit
void USART_putc(uint8_t c)
^
static 
include/drivers/Usart.c(269): warning: no previous prototype for function 'USART_puts' [-Wmissing-prototypes]
void USART_puts(uint8_t *s,uint8_t len)
     ^
include/drivers/Usart.c(269): note: declare 'static' if the function is not intended to be used outside of this translation unit
void USART_puts(uint8_t *s,uint8_t len)
^
static 
include/drivers/Usart.c(9): warning: no previous extern declaration for non-static variable 'm_EUART_TxFrames' [-Wmissing-variable-declarations]
EUART_Frame m_EUART_TxFrames[EUART_TX_FRM_SIZE];        //<CA><FD><BE>Ý·<A2><CB><CD>Ö¡<B6><D3><C1><D0>        
            ^
include/drivers/Usart.c(9): note: declare 'static' if the variable is not intended to be used outside of this translation unit
EUART_Frame m_EUART_TxFrames[EUART_TX_FRM_SIZE];        //<CA><FD><BE>Ý·<A2><CB><CD>Ö¡<B6><D3><C1><D0>        
^
include/drivers/Usart.c(37): warning: no previous extern declaration for non-static variable 't3' [-Wmissing-variable-declarations]
uint16_t t3;
         ^
include/drivers/Usart.c(37): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint16_t t3;
^
19 warnings generated.
compiling Usart.c...
compiling mk_trace.c...
compiling pin_config.c...
compiling board.c...
compiling wsf_assert.c...
dw_app.c(1): warning: In file included from...
./dw_app.h(132): warning: no newline at end of file [-Wnewline-eof]
#endif
      ^
dw_app.c(52): warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion]
            clockOffsetRatio = anc_clockoffset[i] * (FREQ_OFFSET_MULTIPLIER * HERTZ_TO_PPM_MULTIPLIER_CHAN_5 / 1.0e6) ;//MK8000<D0><U+07B8><C4>
                             ~ ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dw_app.c(60): warning: implicit conversion turns floating-point number into integer: 'double' to 'int32_t' (aka 'int') [-Wfloat-conversion]
            nearbase_distlist[i]  = distance+anc_distoffset[i];
                                  ~ ~~~~~~~~^~~~~~~~~~~~~~~~~~
dw_app.c(131): warning: implicit conversion turns floating-point number into integer: 'double' to 'uint16_t' (aka 'unsigned short') [-Wfloat-conversion]
            taglist_dist[i+taglist_current_index]  = distance+(int16_t)g_com_map[DIST_OFFSET];//offsetδ<BC><D3>
                                                   ~ ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dw_app.c(141): warning: no newline at end of file [-Wnewline-eof]
//#endif
        ^
dw_app.c(133): warning: implicit conversion from 'int' to 'uint16_t' (aka 'unsigned short') changes value from 196607 to 65535 [-Wconstant-conversion]
                                                taglist_dist[i] = 0x2ffff;
                                                                ~ ^~~~~~~
dw_app.c(11): warning: no previous extern declaration for non-static variable 'tof' [-Wmissing-variable-declarations]
double tof,distance;
       ^
dw_app.c(11): note: declare 'static' if the variable is not intended to be used outside of this translation unit
double tof,distance;
^
dw_app.c(11): warning: no previous extern declaration for non-static variable 'distance' [-Wmissing-variable-declarations]
double tof,distance;
           ^
dw_app.c(11): note: declare 'static' if the variable is not intended to be used outside of this translation unit
double tof,distance;
^
dw_app.c(26): warning: no previous extern declaration for non-static variable 'temp_freq_offset' [-Wmissing-variable-declarations]
int32_t temp_freq_offset;
        ^
dw_app.c(26): note: declare 'static' if the variable is not intended to be used outside of this translation unit
int32_t temp_freq_offset;
^
dw_app.c(27): warning: no previous extern declaration for non-static variable 'tround_temp' [-Wmissing-variable-declarations]
int64_t tround_temp,treply_temp;
        ^
dw_app.c(27): note: declare 'static' if the variable is not intended to be used outside of this translation unit
int64_t tround_temp,treply_temp;
^
dw_app.c(27): warning: no previous extern declaration for non-static variable 'treply_temp' [-Wmissing-variable-declarations]
int64_t tround_temp,treply_temp;
                    ^
dw_app.c(27): note: declare 'static' if the variable is not intended to be used outside of this translation unit
int64_t tround_temp,treply_temp;
^
dw_app.c(28): warning: no previous extern declaration for non-static variable 'tof_i' [-Wmissing-variable-declarations]
int32_t tof_i;
        ^
dw_app.c(28): note: declare 'static' if the variable is not intended to be used outside of this translation unit
int32_t tof_i;
^
dw_app.c(29): warning: no previous extern declaration for non-static variable 'tof_i_ui' [-Wmissing-variable-declarations]
uint32_t tof_i_ui;
         ^
dw_app.c(29): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint32_t tof_i_ui;
^
dw_app.c(30): warning: no previous extern declaration for non-static variable 'tof_f' [-Wmissing-variable-declarations]
double tof_f;
       ^
dw_app.c(30): note: declare 'static' if the variable is not intended to be used outside of this translation unit
double tof_f;
^
14 warnings generated.
compiling dw_app.c...
compiling wsf_heap.c...
compiling wsf_bufio.c...
compiling wsf_msg.c...
include/main/main.c(57): warning: no previous extern declaration for non-static variable 'trx_buf' [-Wmissing-variable-declarations]
uint8_t trx_buf[10] = {0};
        ^
include/main/main.c(57): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint8_t trx_buf[10] = {0};
^
include/main/main.c(72): warning: no previous extern declaration for non-static variable 'test_uart_cfg' [-Wmissing-variable-declarations]
struct UART_CFG_T test_uart_cfg =
                  ^
include/main/main.c(72): note: declare 'static' if the variable is not intended to be used outside of this translation unit
struct UART_CFG_T test_uart_cfg =
^
include/main/main.c(97): warning: illegal character encoding in string literal [-Winvalid-source-encoding]
    ASSERT(status, "WDT TIMEOUT<A3><AC><B3><CC><D0><F2><B8><B4>λ");
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/drivers\mk_trace.h(144): note: expanded from macro 'ASSERT'
    trace_assert_dump(__FILE__, __FUNCTION__, __LINE__, str, ##__VA_ARGS__)
                                                        ^~~
include/main/main.c(114): warning: no previous extern declaration for non-static variable 'app_wdt_cfg' [-Wmissing-variable-declarations]
 struct WDT_CFG_T app_wdt_cfg = {
                  ^
include/main/main.c(114): note: declare 'static' if the variable is not intended to be used outside of this translation unit
 struct WDT_CFG_T app_wdt_cfg = {
 ^
include/main/main.c(121): warning: no previous extern declaration for non-static variable 'state5v' [-Wmissing-variable-declarations]
uint8_t state5v = 0;
        ^
include/main/main.c(121): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint8_t state5v = 0;
^
include/main/main.c(122): warning: no previous extern declaration for non-static variable 'bat_percent' [-Wmissing-variable-declarations]
uint8_t bat_percent=0,g_start_send_flag=1;
        ^
include/main/main.c(122): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint8_t bat_percent=0,g_start_send_flag=1;
^
include/main/main.c(122): warning: no previous extern declaration for non-static variable 'g_start_send_flag' [-Wmissing-variable-declarations]
uint8_t bat_percent=0,g_start_send_flag=1;
                      ^
include/main/main.c(122): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint8_t bat_percent=0,g_start_send_flag=1;
^
include/main/main.c(136): warning: no previous extern declaration for non-static variable 'sleep_limit_time' [-Wmissing-variable-declarations]
uint8_t sleep_limit_time=1;
        ^
include/main/main.c(136): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint8_t sleep_limit_time=1;
^
include/main/main.c(172): warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion]
            bat_percent = ((fVoltage_mv - 3000) /8);
                        ~  ~~~~~~~~~~~~~~~~~~~~~^~
include/main/main.c(179): warning: unused variable 'lost_jumpcount' [-Wunused-variable]
        static uint8_t lost_jumpcount=0;
                       ^
include/main/main.c(226): warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion]
            bat_percent = ((fVoltage_mv - 3300) /8);
                        ~  ~~~~~~~~~~~~~~~~~~~~~^~
include/main/main.c(240): warning: implicit conversion loses integer precision: 'uint16_t' (aka 'unsigned short') to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion]
group_id=g_com_map[GROUP_ID];
        ~^~~~~~~~~~~~~~~~~~~
include/main/main.c(242): warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion]
tag_frequency=1000/g_com_map[COM_INTERVAL];     
             ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
include/main/main.c(244): warning: illegal character encoding in string literal [-Winvalid-source-encoding]
LOG_INFO(TRACE_MODULE_APP,"<C9>豸ID: %x .\r\n",dev_id);
                           ^~~~
./include/drivers\mk_trace.h(170): note: expanded from macro 'LOG_INFO'
#define LOG_INFO(LOG_MODULE, str, ...) TRACE(LOG_MODULE, TRACE_LEVEL_INFO, str, ##__VA_ARGS__)
                                                                           ^~~
./include/drivers\mk_trace.h(132): note: expanded from macro 'TRACE'
#define TRACE(module, level, str, ...) trace_printf((module), (level), (str), ##__VA_ARGS__)
                                                                        ^~~
include/main/main.c(245): warning: illegal character encoding in string literal [-Winvalid-source-encoding]
LOG_INFO(TRACE_MODULE_APP,"<B9>̼<FE><B0>æ±¾:UWB-<C3>â²¼<CF><DF><D0>ű<EA> V%d.%d. \r\n",g_com_map[VERSION]>>8,g_com_map[VERSION]&0xff);
                           ^~~~~~~~~~~~       ~~~~ ~~~~~~~~~~~~ ~~~~
./include/drivers\mk_trace.h(170): note: expanded from macro 'LOG_INFO'
#define LOG_INFO(LOG_MODULE, str, ...) TRACE(LOG_MODULE, TRACE_LEVEL_INFO, str, ##__VA_ARGS__)
                                                                           ^~~
./include/drivers\mk_trace.h(132): note: expanded from macro 'TRACE'
#define TRACE(module, level, str, ...) trace_printf((module), (level), (str), ##__VA_ARGS__)
                                                                        ^~~
include/main/main.c(291): warning: implicit declaration of function 'reset_cause_get' is invalid in C99 [-Wimplicit-function-declaration]
    reset_cause_get();
    ^
include/main/main.c(292): warning: implicit declaration of function 'reset_cause_clear' is invalid in C99 [-Wimplicit-function-declaration]
    reset_cause_clear();
    ^
include/main/main.c(333): warning: implicit declaration of function 'Tag_uwb_init' is invalid in C99 [-Wimplicit-function-declaration]
                Tag_uwb_init();
                ^
include/main/main.c(358): warning: implicit declaration of function 'LoraUp_Poll' is invalid in C99 [-Wimplicit-function-declaration]
                        LoraUp_Poll();
                        ^
include/main/main.c(68): warning: no previous extern declaration for non-static variable 'enable_sleep_count' [-Wmissing-variable-declarations]
uint8_t enable_sleep_count,sleep_flag;
        ^
include/main/main.c(68): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint8_t enable_sleep_count,sleep_flag;
^
include/main/main.c(68): warning: no previous extern declaration for non-static variable 'sleep_flag' [-Wmissing-variable-declarations]
uint8_t enable_sleep_count,sleep_flag;
                           ^
include/main/main.c(68): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint8_t enable_sleep_count,sleep_flag;
^
include/main/main.c(69): warning: no previous extern declaration for non-static variable 'battery_get_count' [-Wmissing-variable-declarations]
uint32_t battery_get_count;
         ^
include/main/main.c(69): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint32_t battery_get_count;
^
include/main/main.c(71): warning: no previous extern declaration for non-static variable 'reboot_num' [-Wmissing-variable-declarations]
uint32_t reboot_num;
         ^
include/main/main.c(71): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint32_t reboot_num;
^
include/main/main.c(123): warning: no previous extern declaration for non-static variable 'fVoltage_mv' [-Wmissing-variable-declarations]
int16_t fVoltage_mv;
        ^
include/main/main.c(123): note: declare 'static' if the variable is not intended to be used outside of this translation unit
int16_t fVoltage_mv;
^
include/main/main.c(128): warning: no previous extern declaration for non-static variable 'tag_frequency' [-Wmissing-variable-declarations]
uint8_t tag_frequency;
        ^
include/main/main.c(128): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint8_t tag_frequency;
^
include/main/main.c(247): warning: no previous extern declaration for non-static variable 'test1' [-Wmissing-variable-declarations]
uint8_t test1;
        ^
include/main/main.c(247): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint8_t test1;
^
include/main/main.c(100): warning: unused variable 'sample' [-Wunused-variable]
static uint32_t sample[NUM_SAMPLES] = {0};
                ^
include/main/main.c(101): warning: unused variable 'usr_adc_cfg' [-Wunused-variable]
static struct ADC_CFG_T usr_adc_cfg = {
                        ^
include/main/main.c(207): warning: unused function 'adc_callback' [-Wunused-function]
static void adc_callback(void *data, uint32_t number)
            ^
include/main/main.c(232): warning: unused function 'voltage_input_handler' [-Wunused-function]
static void voltage_input_handler(enum IO_PIN_T pin)
            ^
30 warnings generated.
compiling main.c...
compiling wsf_buf.c...
compiling wsf_nvm.c...
compiling wsf_os.c...
compiling wsf_queue.c...
compiling wsf_timer.c...
compiling wsf_trace.c...
compiling pal_flash.c...
compiling pal_uart.c...
compiling pal_sys.c...
uwb_tag_.c(9): warning: In file included from...
./dw_app.h(132): warning: no newline at end of file [-Wnewline-eof]
#endif
      ^
uwb_tag_.c(184): warning: no previous extern declaration for non-static variable 'anclost_times' [-Wmissing-variable-declarations]
uint8_t anclost_times=0 , mainbase_lost_count=0,exsistbase_list[MAX_NEARBASE_NUM],get_newbase=0,nearbase_num,last_nearbase_num,next_nearbase_num;
        ^
uwb_tag_.c(184): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint8_t anclost_times=0 , mainbase_lost_count=0,exsistbase_list[MAX_NEARBASE_NUM],get_newbase=0,nearbase_num,last_nearbase_num,next_nearbase_num;
^
uwb_tag_.c(184): warning: no previous extern declaration for non-static variable 'mainbase_lost_count' [-Wmissing-variable-declarations]
uint8_t anclost_times=0 , mainbase_lost_count=0,exsistbase_list[MAX_NEARBASE_NUM],get_newbase=0,nearbase_num,last_nearbase_num,next_nearbase_num;
                          ^
uwb_tag_.c(184): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint8_t anclost_times=0 , mainbase_lost_count=0,exsistbase_list[MAX_NEARBASE_NUM],get_newbase=0,nearbase_num,last_nearbase_num,next_nearbase_num;
^
uwb_tag_.c(184): warning: no previous extern declaration for non-static variable 'get_newbase' [-Wmissing-variable-declarations]
uint8_t anclost_times=0 , mainbase_lost_count=0,exsistbase_list[MAX_NEARBASE_NUM],get_newbase=0,nearbase_num,last_nearbase_num,next_nearbase_num;
                                                                                  ^
uwb_tag_.c(184): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint8_t anclost_times=0 , mainbase_lost_count=0,exsistbase_list[MAX_NEARBASE_NUM],get_newbase=0,nearbase_num,last_nearbase_num,next_nearbase_num;
^
uwb_tag_.c(187): warning: no previous extern declaration for non-static variable 'temp_count1' [-Wmissing-variable-declarations]
uint32_t temp_count1=0;
         ^
uwb_tag_.c(187): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint32_t temp_count1=0;
^
uwb_tag_.c(188): warning: no previous extern declaration for non-static variable 'temp_count2' [-Wmissing-variable-declarations]
uint32_t temp_count2=0;
         ^
uwb_tag_.c(188): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint32_t temp_count2=0;
^
uwb_tag_.c(189): warning: no previous extern declaration for non-static variable 'temp_count3' [-Wmissing-variable-declarations]
uint32_t temp_count3=0;
         ^
uwb_tag_.c(189): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint32_t temp_count3=0;
^
uwb_tag_.c(190): warning: no previous extern declaration for non-static variable 'temp_count4' [-Wmissing-variable-declarations]
uint32_t temp_count4=0;
         ^
uwb_tag_.c(190): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint32_t temp_count4=0;
^
uwb_tag_.c(191): warning: no previous extern declaration for non-static variable 'tempflag' [-Wmissing-variable-declarations]
uint32_t tempflag=0;
         ^
uwb_tag_.c(191): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint32_t tempflag=0;
^
uwb_tag_.c(212): warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion]
         tag_num_tosend = taglist_total_num-taglist_current_index;
                        ~ ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
uwb_tag_.c(205): warning: no previous prototype for function 'uwb_poll_buffer_construct' [-Wmissing-prototypes]
void uwb_poll_buffer_construct(void)
     ^
uwb_tag_.c(205): note: declare 'static' if the function is not intended to be used outside of this translation unit
void uwb_poll_buffer_construct(void)
^
static 
uwb_tag_.c(364): warning: no previous prototype for function 'FindNearBasePos' [-Wmissing-prototypes]
uint8_t FindNearBasePos(uint16_t baseid)//Ѱ<D5>Òµ<B1>ǰ<C1>б<ED><D6>еĻ<F9>Õ¾<B7><B5><BB><D8><CB><F7><D2><FD>
        ^
uwb_tag_.c(364): note: declare 'static' if the function is not intended to be used outside of this translation unit
uint8_t FindNearBasePos(uint16_t baseid)//Ѱ<D5>Òµ<B1>ǰ<C1>б<ED><D6>еĻ<F9>Õ¾<B7><B5><BB><D8><CB><F7><D2><FD>
^
static 
uwb_tag_.c(374): warning: non-void function does not return a value in all control paths [-Wreturn-type]
}
^
uwb_tag_.c(398): warning: unused variable 'temp' [-Wunused-variable]
        uint16_t i,j=0,temp[TAG_NUM_IN_SYS];
                       ^
uwb_tag_.c(419): warning: implicit conversion changes signedness: 'int32_t' (aka 'int') to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
                                                temp_dist=true_nearbase_distlist[j];
                                                         ~^~~~~~~~~~~~~~~~~~~~~~~~~
uwb_tag_.c(421): warning: implicit conversion changes signedness: 'int32_t' (aka 'int') to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
                                                temp_exsis=true_exsistbase_list[i];
                                                          ~^~~~~~~~~~~~~~~~~~~~~~~
uwb_tag_.c(426): warning: implicit conversion changes signedness: 'uint32_t' (aka 'unsigned int') to 'int32_t' (aka 'int') [-Wsign-conversion]
                                                true_nearbase_distlist[j+1]=temp_dist;
                                                                           ~^~~~~~~~~
uwb_tag_.c(427): warning: implicit conversion loses integer precision: 'uint32_t' (aka 'unsigned int') to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion]
                                                true_nearbase_idlist[j+1]=temp_id;
                                                                         ~^~~~~~~
uwb_tag_.c(428): warning: implicit conversion changes signedness: 'uint32_t' (aka 'unsigned int') to 'int32_t' (aka 'int') [-Wsign-conversion]
                                                true_exsistbase_list[j+1]=temp_exsis;
                                                                         ~^~~~~~~~~~
uwb_tag_.c(436): warning: implicit conversion loses integer precision: 'int32_t' (aka 'int') to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion]
                                exsistbase_list[i] = true_exsistbase_list[i];
                                                   ~ ^~~~~~~~~~~~~~~~~~~~~~~
uwb_tag_.c(450): warning: variable 'temp' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
    if(taglist_total_num<MAX_TAG_LIST_NUM)
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
uwb_tag_.c(452): note: uninitialized use occurs here
        return temp;
               ^~~~
uwb_tag_.c(450): note: remove the 'if' if its condition is always true
    if(taglist_total_num<MAX_TAG_LIST_NUM)
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
uwb_tag_.c(441): note: initialize the variable 'temp' to silence this warning
    uint16_t temp;
                 ^
                  = 0
uwb_tag_.c(455): warning: no previous extern declaration for non-static variable 'tt' [-Wmissing-variable-declarations]
int tt=1;
    ^
uwb_tag_.c(455): note: declare 'static' if the variable is not intended to be used outside of this translation unit
int tt=1;
^
uwb_tag_.c(496): warning: no previous extern declaration for non-static variable 'sleep_time_step' [-Wmissing-variable-declarations]
int sleep_time_step=SLEEP_COUNT;
    ^
uwb_tag_.c(496): note: declare 'static' if the variable is not intended to be used outside of this translation unit
int sleep_time_step=SLEEP_COUNT;
^
uwb_tag_.c(505): warning: no previous extern declaration for non-static variable 'time' [-Wmissing-variable-declarations]
uint8_t shengji_flag,time=5;
                     ^
uwb_tag_.c(505): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint8_t shengji_flag,time=5;
^
uwb_tag_.c(512): warning: implicit declaration of function 'Checksum_u16' is invalid in C99 [-Wimplicit-function-declaration]
                    checksum1=Checksum_u16(rx_buf,rx_length-2);
                              ^
uwb_tag_.c(512): warning: implicit conversion loses integer precision: 'int' to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion]
                    checksum1=Checksum_u16(rx_buf,rx_length-2);
                             ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
uwb_tag_.c(558): warning: illegal character encoding in string literal [-Winvalid-source-encoding]
                                    LOG_INFO(TRACE_MODULE_APP, "<BD><F8><C8><EB><C9><FD><BC><B6>ģʽ,<BD><D3><CA><D5><CE>ļ<FE><B4><F3>С%d\r\n",rec_wenjian_daxiao); 
                                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   ~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~
./include/drivers\mk_trace.h(170): note: expanded from macro 'LOG_INFO'
#define LOG_INFO(LOG_MODULE, str, ...) TRACE(LOG_MODULE, TRACE_LEVEL_INFO, str, ##__VA_ARGS__)
                                                                           ^~~
./include/drivers\mk_trace.h(132): note: expanded from macro 'TRACE'
#define TRACE(module, level, str, ...) trace_printf((module), (level), (str), ##__VA_ARGS__)
                                                                        ^~~
uwb_tag_.c(509): warning: no previous prototype for function 'Uwb_Update' [-Wmissing-prototypes]
void Uwb_Update(void)
     ^
uwb_tag_.c(509): note: declare 'static' if the function is not intended to be used outside of this translation unit
void Uwb_Update(void)
^
static 
uwb_tag_.c(550): warning: result of comparison of constant 331776 with expression of type 'uint16_t' (aka 'unsigned short') is always false [-Wtautological-constant-out-of-range-compare]
                                    if(rec_wenjian_daxiao>APP_SIZE||rec_wenjian_daxiao==0)
                                       ~~~~~~~~~~~~~~~~~~^~~~~~~~~
uwb_tag_.c(543): warning: 'break' will never be executed [-Wunreachable-code-break]
                                    break; 
                                    ^~~~~
uwb_tag_.c(584): warning: implicit declaration of function 'Checksum_u16' is invalid in C99 [-Wimplicit-function-declaration]
        checksum = Checksum_u16(uwb_sendbuffer,11+data_length);
                   ^
uwb_tag_.c(584): warning: implicit conversion loses integer precision: 'int' to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion]
        checksum = Checksum_u16(uwb_sendbuffer,11+data_length);
                 ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
uwb_tag_.c(589): warning: implicit conversion changes signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
    tempflag=uwb_tx(uwb_sendbuffer,data_length+13,1,poll_tx_en_start_u32);//<C1><A2><BC><B4><B7><A2><CB><CD>  
            ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
uwb_tag_.c(602): warning: implicit conversion changes signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
                tempflag=uwb_tx(uwb_sendbuffer,13+4*tag_num_tosend,1,poll_tx_en_start_u32);//<C1><A2><BC><B4><B7><A2><CB><CD>
                        ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
uwb_tag_.c(618): warning: implicit conversion changes signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
        tempflag=uwb_rx(1,resp_rx_en_start_u32, RESP_RX_TIMEOUT_US);
                ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
uwb_tag_.c(638): warning: implicit declaration of function 'IdleTask' is invalid in C99 [-Wimplicit-function-declaration]
                                                IdleTask();
                                                ^
uwb_tag_.c(650): warning: implicit conversion changes signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
                        tempflag=uwb_rx(0, 0, RESP_RX_TIMEOUT_US);//<C1><A2><BC><B4><BF><AA><C6><F4><BD><D3><CA>ܲ<A2><C9><E8><D6><C3>0<B3><AC>ʱ
                                ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
uwb_tag_.c(660): warning: implicit conversion loses integer precision: 'uint16_t' (aka 'unsigned short') to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion]
                                                                rec_tag_index = CmpTagInList(rec_nearbaseid);//<B5><B1>ǰ<D0><C2><C0><B4><B5><C4><D5><E2><B0><FC><CA><FD><BE>ݲ<E5><C8>뵱ǰ<B1><ED><D6>е<C4>λ<D6><C3><CB><F7><D2><FD>
                                                                              ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
uwb_tag_.c(664): warning: implicit conversion loses integer precision: 'uint16_t' (aka 'unsigned short') to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion]
                                                                        SetANCTimestap(temp_index,&rx_buf[RESP_MSG_POLL_RX_TS_IDX],&rx_buf[RESP_MSG_RESP_TX_TS_IDX],(uint32_t)resp_rx_ts_i64,&rx_buf[RESP_MSG_ANC_DISTOFFSET],test2,(uint32_t)poll_tx_ts_i64);
                                                                        ~~~~~~~~~~~~~~ ^~~~~~~~~~
uwb_tag_.c(687): warning: implicit conversion changes signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
                tempflag=uwb_rx(0, 0, RESP_RX_TIMEOUT_US);//<C1><A2><BC><B4><BF><AA><C6><F4><BD><D3><CA>ܲ<A2><C9><E8><D6><C3>0<B3><AC>ʱ
                        ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
uwb_tag_.c(719): warning: non-void function does not return a value [-Wreturn-type]
}
^
uwb_tag_.c(721): warning: no previous prototype for function 'UpdateCRC16' [-Wmissing-prototypes]
uint16_t UpdateCRC16(uint16_t crcIn, uint8_t byte)
         ^
uwb_tag_.c(721): note: declare 'static' if the function is not intended to be used outside of this translation unit
uint16_t UpdateCRC16(uint16_t crcIn, uint8_t byte)
^
static 
uwb_tag_.c(758): warning: implicit conversion loses integer precision: 'uint32_t' (aka 'unsigned int') to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion]
    crc = UpdateCRC16(crc,*data++);
          ~~~~~~~~~~~ ^~~
uwb_tag_.c(760): warning: implicit conversion loses integer precision: 'uint32_t' (aka 'unsigned int') to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion]
  crc = UpdateCRC16(crc,0);
        ~~~~~~~~~~~ ^~~
uwb_tag_.c(761): warning: implicit conversion loses integer precision: 'uint32_t' (aka 'unsigned int') to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion]
  crc = UpdateCRC16(crc,0);
        ~~~~~~~~~~~ ^~~
uwb_tag_.c(751): warning: no previous prototype for function 'Cal_CRC16' [-Wmissing-prototypes]
uint16_t Cal_CRC16(const uint8_t* data, uint32_t size)
         ^
uwb_tag_.c(751): note: declare 'static' if the function is not intended to be used outside of this translation unit
uint16_t Cal_CRC16(const uint8_t* data, uint32_t size)
^
static 
uwb_tag_.c(765): warning: no previous prototype for function 'delay_ms' [-Wmissing-prototypes]
void delay_ms(uint32_t nTimer)  
     ^
uwb_tag_.c(765): note: declare 'static' if the function is not intended to be used outside of this translation unit
void delay_ms(uint32_t nTimer)  
^
static 
uwb_tag_.c(801): warning: implicit declaration of function 'Checksum_u16' is invalid in C99 [-Wimplicit-function-declaration]
    crc16=Checksum_u16(send_lora_data,6);
          ^
uwb_tag_.c(801): warning: implicit conversion loses integer precision: 'int' to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion]
    crc16=Checksum_u16(send_lora_data,6);
         ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
uwb_tag_.c(807): warning: implicit conversion changes signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
    tempflag=uwb_tx(send_lora_data,8+2,1,poll_tx_en_start_u32);//<C1><A2><BC><B4><B7><A2><CB><CD>  
            ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
uwb_tag_.c(813): warning: implicit conversion loses integer precision: 'int' to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion]
    result=flash_open(FLASH_ID0,NULL);
          ~^~~~~~~~~~~~~~~~~~~~~~~~~~
uwb_tag_.c(835): warning: implicit conversion loses integer precision: 'int' to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion]
                crc16=Checksum_u16(send_lora_data,8);
                     ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
uwb_tag_.c(839): warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion]
                jindu=(muqiandeshengjibao*100)/final_bag_num;
                     ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
uwb_tag_.c(840): warning: illegal character encoding in string literal [-Winvalid-source-encoding]
                LOG_INFO(TRACE_MODULE_APP, "<C9><FD><BC><B6><BD><F8><B6><C8>%d\r\n",jindu);
                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/drivers\mk_trace.h(170): note: expanded from macro 'LOG_INFO'
#define LOG_INFO(LOG_MODULE, str, ...) TRACE(LOG_MODULE, TRACE_LEVEL_INFO, str, ##__VA_ARGS__)
                                                                           ^~~
./include/drivers\mk_trace.h(132): note: expanded from macro 'TRACE'
#define TRACE(module, level, str, ...) trace_printf((module), (level), (str), ##__VA_ARGS__)
                                                                        ^~~
uwb_tag_.c(843): warning: implicit conversion changes signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
                tempflag=uwb_tx(send_lora_data,10+2,1,poll_tx_en_start_u32);//<C1><A2><BC><B4><B7><A2><CB><CD>
                        ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
uwb_tag_.c(850): warning: implicit conversion changes signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
                tempflag=uwb_rx(0,0, 50000);
                        ~^~~~~~~~~~~~~~~~~~
uwb_tag_.c(862): warning: implicit conversion loses integer precision: 'int' to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion]
                     result=flash_open(FLASH_ID0,NULL);
                           ~^~~~~~~~~~~~~~~~~~~~~~~~~~
uwb_tag_.c(864): warning: implicit conversion loses integer precision: 'int' to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion]
                     result12=flash_write_nbytes(FLASH_ID0, APP2_ADRESS+ONE_BAG_DAXIAO*muqiandeshengjibao, (uint8_t*)Zhongjian_data, ONE_BAG_DAXIAO);
                             ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
uwb_tag_.c(865): warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses]
                     while(!result12==0)
                           ^        ~~
uwb_tag_.c(865): note: add parentheses after the '!' to evaluate the comparison first
                     while(!result12==0)
                           ^
                            (          )
uwb_tag_.c(865): note: add parentheses around left hand side expression to silence this warning
                     while(!result12==0)
                           ^
                           (        )
uwb_tag_.c(867): warning: implicit conversion loses integer precision: 'int' to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion]
                     result12=flash_write_nbytes(FLASH_ID0, APP2_ADRESS+ONE_BAG_DAXIAO*muqiandeshengjibao, (uint8_t*)Zhongjian_data, ONE_BAG_DAXIAO);
                             ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
uwb_tag_.c(902): warning: implicit conversion loses integer precision: 'int' to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion]
                crc16=Checksum_u16(send_lora_data,6);
                     ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
uwb_tag_.c(906): warning: illegal character encoding in string literal [-Winvalid-source-encoding]
                LOG_INFO(TRACE_MODULE_APP, "<D5><FD><D4>Ú·<A2><CB><CD><D7><EE><BA><F3>Ò»<B0><FC>\r\n");    
                                            ^~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~
./include/drivers\mk_trace.h(170): note: expanded from macro 'LOG_INFO'
#define LOG_INFO(LOG_MODULE, str, ...) TRACE(LOG_MODULE, TRACE_LEVEL_INFO, str, ##__VA_ARGS__)
                                                                           ^~~
./include/drivers\mk_trace.h(132): note: expanded from macro 'TRACE'
#define TRACE(module, level, str, ...) trace_printf((module), (level), (str), ##__VA_ARGS__)
                                                                        ^~~
uwb_tag_.c(908): warning: implicit conversion changes signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
                tempflag=uwb_tx(send_lora_data,8+2,1,poll_tx_en_start_u32);//<C1><A2><BC><B4><B7><A2><CB><CD>  
                        ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
uwb_tag_.c(915): warning: implicit conversion loses integer precision: 'int' to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion]
                result=flash_open(FLASH_ID0,NULL); 
                      ~^~~~~~~~~~~~~~~~~~~~~~~~~~
uwb_tag_.c(916): warning: implicit conversion loses integer precision: 'int' to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion]
                result11=flash_erase(FLASH_ID0,APP_1OR2_ADRESS,0x1000);
                        ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
uwb_tag_.c(786): warning: no previous prototype for function 'LoraUp_Poll' [-Wmissing-prototypes]
void LoraUp_Poll(void)
     ^
uwb_tag_.c(786): note: declare 'static' if the function is not intended to be used outside of this translation unit
void LoraUp_Poll(void)
^
static 
uwb_tag_.c(893): warning: 'break' will never be executed [-Wunreachable-code-break]
                    break;
                    ^~~~~
uwb_tag_.c(52): warning: no previous extern declaration for non-static variable 'dev_id' [-Wmissing-variable-declarations]
uint32_t dev_id;
         ^
uwb_tag_.c(52): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint32_t dev_id;
^
uwb_tag_.c(53): warning: no previous extern declaration for non-static variable 'group_id' [-Wmissing-variable-declarations]
uint8_t group_id;
        ^
uwb_tag_.c(53): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint8_t group_id;
^
uwb_tag_.c(185): warning: no previous extern declaration for non-static variable 'rec_nearbaseid' [-Wmissing-variable-declarations]
uint16_t nearbaseid_list[MAX_NEARBASE_NUM],mainbase_id,true_nearbase_idlist[MAX_NEARBASE_NUM],rec_nearbaseid,rec_nearbasepos;
                                                                                              ^
uwb_tag_.c(185): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint16_t nearbaseid_list[MAX_NEARBASE_NUM],mainbase_id,true_nearbase_idlist[MAX_NEARBASE_NUM],rec_nearbaseid,rec_nearbasepos;
^
uwb_tag_.c(173): warning: no previous extern declaration for non-static variable 'temp_tag_num' [-Wmissing-variable-declarations]
uint8_t temp_tag_num;
        ^
uwb_tag_.c(173): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint8_t temp_tag_num;
^
uwb_tag_.c(174): warning: no previous extern declaration for non-static variable 'test2' [-Wmissing-variable-declarations]
int32_t test2;
        ^
uwb_tag_.c(174): note: declare 'static' if the variable is not intended to be used outside of this translation unit
int32_t test2;
^
uwb_tag_.c(177): warning: no previous extern declaration for non-static variable 'taglist_total_num' [-Wmissing-variable-declarations]
uint16_t  taglist_total_num,taglist_current_index;  //<B5><B1>ǰ<C1>б<ED><D7><DC><CA><FD><C1><BF>
          ^
uwb_tag_.c(177): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint16_t  taglist_total_num,taglist_current_index;  //<B5><B1>ǰ<C1>б<ED><D7><DC><CA><FD><C1><BF>
^
uwb_tag_.c(177): warning: no previous extern declaration for non-static variable 'taglist_current_index' [-Wmissing-variable-declarations]
uint16_t  taglist_total_num,taglist_current_index;  //<B5><B1>ǰ<C1>б<ED><D7><DC><CA><FD><C1><BF>
                            ^
uwb_tag_.c(177): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint16_t  taglist_total_num,taglist_current_index;  //<B5><B1>ǰ<C1>б<ED><D7><DC><CA><FD><C1><BF>
^
uwb_tag_.c(179): warning: no previous extern declaration for non-static variable 'start_receive_count' [-Wmissing-variable-declarations]
uint32_t start_receive_count,end_receive_count,poll_timeout,current_count,temp_resp;
         ^
uwb_tag_.c(179): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint32_t start_receive_count,end_receive_count,poll_timeout,current_count,temp_resp;
^
uwb_tag_.c(179): warning: no previous extern declaration for non-static variable 'end_receive_count' [-Wmissing-variable-declarations]
uint32_t start_receive_count,end_receive_count,poll_timeout,current_count,temp_resp;
                             ^
uwb_tag_.c(179): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint32_t start_receive_count,end_receive_count,poll_timeout,current_count,temp_resp;
^
uwb_tag_.c(179): warning: no previous extern declaration for non-static variable 'poll_timeout' [-Wmissing-variable-declarations]
uint32_t start_receive_count,end_receive_count,poll_timeout,current_count,temp_resp;
                                               ^
uwb_tag_.c(179): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint32_t start_receive_count,end_receive_count,poll_timeout,current_count,temp_resp;
^
uwb_tag_.c(179): warning: no previous extern declaration for non-static variable 'current_count' [-Wmissing-variable-declarations]
uint32_t start_receive_count,end_receive_count,poll_timeout,current_count,temp_resp;
                                                            ^
uwb_tag_.c(179): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint32_t start_receive_count,end_receive_count,poll_timeout,current_count,temp_resp;
^
uwb_tag_.c(179): warning: no previous extern declaration for non-static variable 'temp_resp' [-Wmissing-variable-declarations]
uint32_t start_receive_count,end_receive_count,poll_timeout,current_count,temp_resp;
                                                                          ^
uwb_tag_.c(179): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint32_t start_receive_count,end_receive_count,poll_timeout,current_count,temp_resp;
^
uwb_tag_.c(180): warning: no previous extern declaration for non-static variable 'taglist_keeptime' [-Wmissing-variable-declarations]
uint8_t  taglist_keeptime[MAX_TAG_LIST_NUM]; //ÿ<B8><F6><B1><EA>Ç©<B4><E6><BB><EE>ʱ<BC><E4>
         ^
uwb_tag_.c(180): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint8_t  taglist_keeptime[MAX_TAG_LIST_NUM]; //ÿ<B8><F6><B1><EA>Ç©<B4><E6><BB><EE>ʱ<BC><E4>
^
uwb_tag_.c(181): warning: no previous extern declaration for non-static variable 'taglist_id' [-Wmissing-variable-declarations]
uint16_t taglist_id[MAX_TAG_LIST_NUM],taglist_dist[MAX_TAG_LIST_NUM],temp_index; //<B1><EA>Ç©<BE><E0><C0><EB><BA>ͱ<EA>Ç©<B5><C4>ID
         ^
uwb_tag_.c(181): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint16_t taglist_id[MAX_TAG_LIST_NUM],taglist_dist[MAX_TAG_LIST_NUM],temp_index; //<B1><EA>Ç©<BE><E0><C0><EB><BA>ͱ<EA>Ç©<B5><C4>ID
^
uwb_tag_.c(181): warning: no previous extern declaration for non-static variable 'taglist_dist' [-Wmissing-variable-declarations]
uint16_t taglist_id[MAX_TAG_LIST_NUM],taglist_dist[MAX_TAG_LIST_NUM],temp_index; //<B1><EA>Ç©<BE><E0><C0><EB><BA>ͱ<EA>Ç©<B5><C4>ID
                                      ^
uwb_tag_.c(181): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint16_t taglist_id[MAX_TAG_LIST_NUM],taglist_dist[MAX_TAG_LIST_NUM],temp_index; //<B1><EA>Ç©<BE><E0><C0><EB><BA>ͱ<EA>Ç©<B5><C4>ID
^
uwb_tag_.c(181): warning: no previous extern declaration for non-static variable 'temp_index' [-Wmissing-variable-declarations]
uint16_t taglist_id[MAX_TAG_LIST_NUM],taglist_dist[MAX_TAG_LIST_NUM],temp_index; //<B1><EA>Ç©<BE><E0><C0><EB><BA>ͱ<EA>Ç©<B5><C4>ID
                                                                     ^
uwb_tag_.c(181): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint16_t taglist_id[MAX_TAG_LIST_NUM],taglist_dist[MAX_TAG_LIST_NUM],temp_index; //<B1><EA>Ç©<BE><E0><C0><EB><BA>ͱ<EA>Ç©<B5><C4>ID
^
uwb_tag_.c(183): warning: no previous extern declaration for non-static variable 'mainbase_dist' [-Wmissing-variable-declarations]
int32_t mainbase_dist,nearbase_distlist[MAX_NEARBASE_NUM],true_nearbase_distlist[MAX_NEARBASE_NUM],true_exsistbase_list[MAX_NEARBASE_NUM],ancsync_time,nextpoll_delaytime,offsettimeus;
        ^
uwb_tag_.c(183): note: declare 'static' if the variable is not intended to be used outside of this translation unit
int32_t mainbase_dist,nearbase_distlist[MAX_NEARBASE_NUM],true_nearbase_distlist[MAX_NEARBASE_NUM],true_exsistbase_list[MAX_NEARBASE_NUM],ancsync_time,nextpoll_delaytime,offsettimeus;
^
uwb_tag_.c(183): warning: no previous extern declaration for non-static variable 'nearbase_distlist' [-Wmissing-variable-declarations]
int32_t mainbase_dist,nearbase_distlist[MAX_NEARBASE_NUM],true_nearbase_distlist[MAX_NEARBASE_NUM],true_exsistbase_list[MAX_NEARBASE_NUM],ancsync_time,nextpoll_delaytime,offsettimeus;
                      ^
uwb_tag_.c(183): note: declare 'static' if the variable is not intended to be used outside of this translation unit
int32_t mainbase_dist,nearbase_distlist[MAX_NEARBASE_NUM],true_nearbase_distlist[MAX_NEARBASE_NUM],true_exsistbase_list[MAX_NEARBASE_NUM],ancsync_time,nextpoll_delaytime,offsettimeus;
^
uwb_tag_.c(183): warning: no previous extern declaration for non-static variable 'true_nearbase_distlist' [-Wmissing-variable-declarations]
int32_t mainbase_dist,nearbase_distlist[MAX_NEARBASE_NUM],true_nearbase_distlist[MAX_NEARBASE_NUM],true_exsistbase_list[MAX_NEARBASE_NUM],ancsync_time,nextpoll_delaytime,offsettimeus;
                                                          ^
uwb_tag_.c(183): note: declare 'static' if the variable is not intended to be used outside of this translation unit
int32_t mainbase_dist,nearbase_distlist[MAX_NEARBASE_NUM],true_nearbase_distlist[MAX_NEARBASE_NUM],true_exsistbase_list[MAX_NEARBASE_NUM],ancsync_time,nextpoll_delaytime,offsettimeus;
^
uwb_tag_.c(183): warning: no previous extern declaration for non-static variable 'true_exsistbase_list' [-Wmissing-variable-declarations]
int32_t mainbase_dist,nearbase_distlist[MAX_NEARBASE_NUM],true_nearbase_distlist[MAX_NEARBASE_NUM],true_exsistbase_list[MAX_NEARBASE_NUM],ancsync_time,nextpoll_delaytime,offsettimeus;
                                                                                                   ^
uwb_tag_.c(183): note: declare 'static' if the variable is not intended to be used outside of this translation unit
int32_t mainbase_dist,nearbase_distlist[MAX_NEARBASE_NUM],true_nearbase_distlist[MAX_NEARBASE_NUM],true_exsistbase_list[MAX_NEARBASE_NUM],ancsync_time,nextpoll_delaytime,offsettimeus;
^
uwb_tag_.c(183): warning: no previous extern declaration for non-static variable 'ancsync_time' [-Wmissing-variable-declarations]
int32_t mainbase_dist,nearbase_distlist[MAX_NEARBASE_NUM],true_nearbase_distlist[MAX_NEARBASE_NUM],true_exsistbase_list[MAX_NEARBASE_NUM],ancsync_time,nextpoll_delaytime,offsettimeus;
                                                                                                                                          ^
uwb_tag_.c(183): note: declare 'static' if the variable is not intended to be used outside of this translation unit
int32_t mainbase_dist,nearbase_distlist[MAX_NEARBASE_NUM],true_nearbase_distlist[MAX_NEARBASE_NUM],true_exsistbase_list[MAX_NEARBASE_NUM],ancsync_time,nextpoll_delaytime,offsettimeus;
^
uwb_tag_.c(183): warning: no previous extern declaration for non-static variable 'nextpoll_delaytime' [-Wmissing-variable-declarations]
int32_t mainbase_dist,nearbase_distlist[MAX_NEARBASE_NUM],true_nearbase_distlist[MAX_NEARBASE_NUM],true_exsistbase_list[MAX_NEARBASE_NUM],ancsync_time,nextpoll_delaytime,offsettimeus;
                                                                                                                                                       ^
uwb_tag_.c(183): note: declare 'static' if the variable is not intended to be used outside of this translation unit
int32_t mainbase_dist,nearbase_distlist[MAX_NEARBASE_NUM],true_nearbase_distlist[MAX_NEARBASE_NUM],true_exsistbase_list[MAX_NEARBASE_NUM],ancsync_time,nextpoll_delaytime,offsettimeus;
^
uwb_tag_.c(183): warning: no previous extern declaration for non-static variable 'offsettimeus' [-Wmissing-variable-declarations]
int32_t mainbase_dist,nearbase_distlist[MAX_NEARBASE_NUM],true_nearbase_distlist[MAX_NEARBASE_NUM],true_exsistbase_list[MAX_NEARBASE_NUM],ancsync_time,nextpoll_delaytime,offsettimeus;
                                                                                                                                                                          ^
uwb_tag_.c(183): note: declare 'static' if the variable is not intended to be used outside of this translation unit
int32_t mainbase_dist,nearbase_distlist[MAX_NEARBASE_NUM],true_nearbase_distlist[MAX_NEARBASE_NUM],true_exsistbase_list[MAX_NEARBASE_NUM],ancsync_time,nextpoll_delaytime,offsettimeus;
^
uwb_tag_.c(184): warning: no previous extern declaration for non-static variable 'exsistbase_list' [-Wmissing-variable-declarations]
uint8_t anclost_times=0 , mainbase_lost_count=0,exsistbase_list[MAX_NEARBASE_NUM],get_newbase=0,nearbase_num,last_nearbase_num,next_nearbase_num;
                                                ^
uwb_tag_.c(184): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint8_t anclost_times=0 , mainbase_lost_count=0,exsistbase_list[MAX_NEARBASE_NUM],get_newbase=0,nearbase_num,last_nearbase_num,next_nearbase_num;
^
uwb_tag_.c(184): warning: no previous extern declaration for non-static variable 'nearbase_num' [-Wmissing-variable-declarations]
uint8_t anclost_times=0 , mainbase_lost_count=0,exsistbase_list[MAX_NEARBASE_NUM],get_newbase=0,nearbase_num,last_nearbase_num,next_nearbase_num;
                                                                                                ^
uwb_tag_.c(184): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint8_t anclost_times=0 , mainbase_lost_count=0,exsistbase_list[MAX_NEARBASE_NUM],get_newbase=0,nearbase_num,last_nearbase_num,next_nearbase_num;
^
uwb_tag_.c(184): warning: no previous extern declaration for non-static variable 'last_nearbase_num' [-Wmissing-variable-declarations]
uint8_t anclost_times=0 , mainbase_lost_count=0,exsistbase_list[MAX_NEARBASE_NUM],get_newbase=0,nearbase_num,last_nearbase_num,next_nearbase_num;
                                                                                                             ^
uwb_tag_.c(184): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint8_t anclost_times=0 , mainbase_lost_count=0,exsistbase_list[MAX_NEARBASE_NUM],get_newbase=0,nearbase_num,last_nearbase_num,next_nearbase_num;
^
uwb_tag_.c(184): warning: no previous extern declaration for non-static variable 'next_nearbase_num' [-Wmissing-variable-declarations]
uint8_t anclost_times=0 , mainbase_lost_count=0,exsistbase_list[MAX_NEARBASE_NUM],get_newbase=0,nearbase_num,last_nearbase_num,next_nearbase_num;
                                                                                                                               ^
uwb_tag_.c(184): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint8_t anclost_times=0 , mainbase_lost_count=0,exsistbase_list[MAX_NEARBASE_NUM],get_newbase=0,nearbase_num,last_nearbase_num,next_nearbase_num;
^
uwb_tag_.c(185): warning: no previous extern declaration for non-static variable 'nearbaseid_list' [-Wmissing-variable-declarations]
uint16_t nearbaseid_list[MAX_NEARBASE_NUM],mainbase_id,true_nearbase_idlist[MAX_NEARBASE_NUM],rec_nearbaseid,rec_nearbasepos;
         ^
uwb_tag_.c(185): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint16_t nearbaseid_list[MAX_NEARBASE_NUM],mainbase_id,true_nearbase_idlist[MAX_NEARBASE_NUM],rec_nearbaseid,rec_nearbasepos;
^
uwb_tag_.c(185): warning: no previous extern declaration for non-static variable 'mainbase_id' [-Wmissing-variable-declarations]
uint16_t nearbaseid_list[MAX_NEARBASE_NUM],mainbase_id,true_nearbase_idlist[MAX_NEARBASE_NUM],rec_nearbaseid,rec_nearbasepos;
                                           ^
uwb_tag_.c(185): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint16_t nearbaseid_list[MAX_NEARBASE_NUM],mainbase_id,true_nearbase_idlist[MAX_NEARBASE_NUM],rec_nearbaseid,rec_nearbasepos;
^
uwb_tag_.c(185): warning: no previous extern declaration for non-static variable 'true_nearbase_idlist' [-Wmissing-variable-declarations]
uint16_t nearbaseid_list[MAX_NEARBASE_NUM],mainbase_id,true_nearbase_idlist[MAX_NEARBASE_NUM],rec_nearbaseid,rec_nearbasepos;
                                                       ^
uwb_tag_.c(185): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint16_t nearbaseid_list[MAX_NEARBASE_NUM],mainbase_id,true_nearbase_idlist[MAX_NEARBASE_NUM],rec_nearbaseid,rec_nearbasepos;
^
uwb_tag_.c(185): warning: no previous extern declaration for non-static variable 'rec_nearbasepos' [-Wmissing-variable-declarations]
uint16_t nearbaseid_list[MAX_NEARBASE_NUM],mainbase_id,true_nearbase_idlist[MAX_NEARBASE_NUM],rec_nearbaseid,rec_nearbasepos;
                                                                                                             ^
uwb_tag_.c(185): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint16_t nearbaseid_list[MAX_NEARBASE_NUM],mainbase_id,true_nearbase_idlist[MAX_NEARBASE_NUM],rec_nearbaseid,rec_nearbasepos;
^
uwb_tag_.c(186): warning: no previous extern declaration for non-static variable 'u16_nearbase_distlist' [-Wmissing-variable-declarations]
uint16_t u16_nearbase_distlist[MAX_NEARBASE_NUM];
         ^
uwb_tag_.c(186): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint16_t u16_nearbase_distlist[MAX_NEARBASE_NUM];
^
uwb_tag_.c(192): warning: no previous extern declaration for non-static variable 'freq_offset' [-Wmissing-variable-declarations]
int32_t freq_offset,freq_offset_filter; 
        ^
uwb_tag_.c(192): note: declare 'static' if the variable is not intended to be used outside of this translation unit
int32_t freq_offset,freq_offset_filter; 
^
uwb_tag_.c(192): warning: no previous extern declaration for non-static variable 'freq_offset_filter' [-Wmissing-variable-declarations]
int32_t freq_offset,freq_offset_filter; 
                    ^
uwb_tag_.c(192): note: declare 'static' if the variable is not intended to be used outside of this translation unit
int32_t freq_offset,freq_offset_filter; 
^
uwb_tag_.c(193): warning: no previous extern declaration for non-static variable 'temp_flag' [-Wmissing-variable-declarations]
int temp_flag,poll_tx_num,resp_rx_num;
    ^
uwb_tag_.c(193): note: declare 'static' if the variable is not intended to be used outside of this translation unit
int temp_flag,poll_tx_num,resp_rx_num;
^
uwb_tag_.c(193): warning: no previous extern declaration for non-static variable 'poll_tx_num' [-Wmissing-variable-declarations]
int temp_flag,poll_tx_num,resp_rx_num;
              ^
uwb_tag_.c(193): note: declare 'static' if the variable is not intended to be used outside of this translation unit
int temp_flag,poll_tx_num,resp_rx_num;
^
uwb_tag_.c(193): warning: no previous extern declaration for non-static variable 'resp_rx_num' [-Wmissing-variable-declarations]
int temp_flag,poll_tx_num,resp_rx_num;
                          ^
uwb_tag_.c(193): note: declare 'static' if the variable is not intended to be used outside of this translation unit
int temp_flag,poll_tx_num,resp_rx_num;
^
uwb_tag_.c(196): warning: no previous extern declaration for non-static variable 'count1' [-Wmissing-variable-declarations]
uint32_t count1,count2;
         ^
uwb_tag_.c(196): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint32_t count1,count2;
^
uwb_tag_.c(196): warning: no previous extern declaration for non-static variable 'count2' [-Wmissing-variable-declarations]
uint32_t count1,count2;
                ^
uwb_tag_.c(196): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint32_t count1,count2;
^
uwb_tag_.c(263): warning: no previous extern declaration for non-static variable 'temp_rx_first_stamp' [-Wmissing-variable-declarations]
uint32_t temp_rx_first_stamp,temp_rx_second_stamp;
         ^
uwb_tag_.c(263): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint32_t temp_rx_first_stamp,temp_rx_second_stamp;
^
uwb_tag_.c(263): warning: no previous extern declaration for non-static variable 'temp_rx_second_stamp' [-Wmissing-variable-declarations]
uint32_t temp_rx_first_stamp,temp_rx_second_stamp;
                             ^
uwb_tag_.c(263): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint32_t temp_rx_first_stamp,temp_rx_second_stamp;
^
uwb_tag_.c(264): warning: no previous extern declaration for non-static variable 'temp_rx_first_id' [-Wmissing-variable-declarations]
uint16_t temp_rx_first_id,temp_rx_second_id;
         ^
uwb_tag_.c(264): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint16_t temp_rx_first_id,temp_rx_second_id;
^
uwb_tag_.c(264): warning: no previous extern declaration for non-static variable 'temp_rx_second_id' [-Wmissing-variable-declarations]
uint16_t temp_rx_first_id,temp_rx_second_id;
                          ^
uwb_tag_.c(264): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint16_t temp_rx_first_id,temp_rx_second_id;
^
uwb_tag_.c(395): warning: no previous extern declaration for non-static variable 'temp_j' [-Wmissing-variable-declarations]
int temp_j;
    ^
uwb_tag_.c(395): note: declare 'static' if the variable is not intended to be used outside of this translation unit
int temp_j;
^
uwb_tag_.c(454): warning: no previous extern declaration for non-static variable 'count_index' [-Wmissing-variable-declarations]
uint32_t count_index;
         ^
uwb_tag_.c(454): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint32_t count_index;
^
uwb_tag_.c(456): warning: no previous extern declaration for non-static variable 'freqlost_count' [-Wmissing-variable-declarations]
float freqlost_count;
      ^
uwb_tag_.c(456): note: declare 'static' if the variable is not intended to be used outside of this translation unit
float freqlost_count;
^
uwb_tag_.c(497): warning: no previous extern declaration for non-static variable 'rand_temp' [-Wmissing-variable-declarations]
int rand_temp;
    ^
uwb_tag_.c(497): note: declare 'static' if the variable is not intended to be used outside of this translation unit
int rand_temp;
^
uwb_tag_.c(499): warning: no previous extern declaration for non-static variable 'rec_index' [-Wmissing-variable-declarations]
uint8_t rec_index,rec_secdelay;
        ^
uwb_tag_.c(499): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint8_t rec_index,rec_secdelay;
^
uwb_tag_.c(499): warning: no previous extern declaration for non-static variable 'rec_secdelay' [-Wmissing-variable-declarations]
uint8_t rec_index,rec_secdelay;
                  ^
uwb_tag_.c(499): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint8_t rec_index,rec_secdelay;
^
uwb_tag_.c(500): warning: no previous extern declaration for non-static variable 'rec_value' [-Wmissing-variable-declarations]
uint16_t rec_value;
         ^
uwb_tag_.c(500): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint16_t rec_value;
^
uwb_tag_.c(501): warning: no previous extern declaration for non-static variable 'readgcom_flag' [-Wmissing-variable-declarations]
uint8_t readgcom_flag;
        ^
uwb_tag_.c(501): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint8_t readgcom_flag;
^
uwb_tag_.c(502): warning: no previous extern declaration for non-static variable 'wg_report_id' [-Wmissing-variable-declarations]
uint16_t wg_report_id;
         ^
uwb_tag_.c(502): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint16_t wg_report_id;
^
uwb_tag_.c(781): warning: no previous extern declaration for non-static variable 'rec_wenjian_daxiao' [-Wmissing-variable-declarations]
uint16_t rec_wenjian_daxiao;
         ^
uwb_tag_.c(781): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint16_t rec_wenjian_daxiao;
^
uwb_tag_.c(778): warning: no previous extern declaration for non-static variable 'wangguan_up_id' [-Wmissing-variable-declarations]
uint16_t wangguan_up_id;
         ^
uwb_tag_.c(778): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint16_t wangguan_up_id;
^
uwb_tag_.c(777): warning: no previous extern declaration for non-static variable 'shengji_flag' [-Wmissing-variable-declarations]
uint8_t shengji_flag;
        ^
uwb_tag_.c(777): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint8_t shengji_flag;
^
uwb_tag_.c(780): warning: no previous extern declaration for non-static variable 'LoraUp_flag' [-Wmissing-variable-declarations]
uint8_t LoraUp_flag;
        ^
uwb_tag_.c(780): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint8_t LoraUp_flag;
^
uwb_tag_.c(508): warning: no previous extern declaration for non-static variable 'checksum1' [-Wmissing-variable-declarations]
uint16_t checksum1;
         ^
uwb_tag_.c(508): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint16_t checksum1;
^
uwb_tag_.c(770): warning: no previous extern declaration for non-static variable 'send_lora_data' [-Wmissing-variable-declarations]
uint8_t send_lora_data[250];
        ^
uwb_tag_.c(770): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint8_t send_lora_data[250];
^
uwb_tag_.c(771): warning: no previous extern declaration for non-static variable 'muqiandeshengjibao' [-Wmissing-variable-declarations]
uint16_t muqiandeshengjibao;
         ^
uwb_tag_.c(771): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint16_t muqiandeshengjibao;
^
uwb_tag_.c(773): warning: no previous extern declaration for non-static variable 'huifushengjibaoerror_num' [-Wmissing-variable-declarations]
uint8_t huifushengjibaoerror_num;
        ^
uwb_tag_.c(773): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint8_t huifushengjibaoerror_num;
^
uwb_tag_.c(775): warning: no previous extern declaration for non-static variable 'testflag' [-Wmissing-variable-declarations]
uint16_t testflag;
         ^
uwb_tag_.c(775): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint16_t testflag;
^
uwb_tag_.c(776): warning: no previous extern declaration for non-static variable 'Zhongjian_data' [-Wmissing-variable-declarations]
uint32_t Zhongjian_data[60];
         ^
uwb_tag_.c(776): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint32_t Zhongjian_data[60];
^
uwb_tag_.c(779): warning: no previous extern declaration for non-static variable 'huifushengjibao_flag' [-Wmissing-variable-declarations]
uint8_t huifushengjibao_flag;
        ^
uwb_tag_.c(779): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint8_t huifushengjibao_flag;
^
uwb_tag_.c(782): warning: no previous extern declaration for non-static variable 'lora_up_rec_flag' [-Wmissing-variable-declarations]
uint8_t lora_up_rec_flag;
        ^
uwb_tag_.c(782): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint8_t lora_up_rec_flag;
^
uwb_tag_.c(783): warning: no previous extern declaration for non-static variable 'flash_shuju' [-Wmissing-variable-declarations]
uint16_t flash_shuju;
         ^
uwb_tag_.c(783): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint16_t flash_shuju;
^
uwb_tag_.c(151): warning: unused variable 'tx_poll_msg' [-Wunused-variable]
static uint8_t tx_poll_msg[] = {0x41, 0x88, 0, 0x4D, 0x4B, 0x53, 0x45, 0x4D, 0x49, 0x02};
               ^
uwb_tag_.c(152): warning: unused variable 'rx_resp_msg' [-Wunused-variable]
static uint8_t rx_resp_msg[] = {0x41, 0x88, 0, 0x4D, 0x4B, 0x4D, 0x49, 0x53, 0x45, 0x03, 0x07};
               ^
uwb_tag_.c(153): warning: unused variable 'tx_final_msg' [-Wunused-variable]
static uint8_t tx_final_msg[] = {0x41, 0x88, 0, 0x4D, 0x4B, 0x53, 0x45, 0x4D, 0x49, 0x04, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
               ^
uwb_tag_.c(158): warning: unused variable 'final_tx_en_start_u32' [-Wunused-variable]
static uint32_t final_tx_en_start_u32;
                ^
uwb_tag_.c(163): warning: unused variable 'final_tx_ts_i64' [-Wunused-variable]
static int64_t final_tx_ts_i64;
               ^
uwb_tag_.c(230): warning: unused variable 'state' [-Wunused-variable]
static enum SIMPLE_FSM_T state = SIMPLE_IDLE;
                         ^
uwb_tag_.c(772): warning: unused variable 'current_count1' [-Wunused-variable]
static uint16_t current_count1,target_count1,end_count1,start_count1;
                ^
uwb_tag_.c(772): warning: unused variable 'target_count1' [-Wunused-variable]
static uint16_t current_count1,target_count1,end_count1,start_count1;
                               ^
uwb_tag_.c(772): warning: unused variable 'end_count1' [-Wunused-variable]
static uint16_t current_count1,target_count1,end_count1,start_count1;
                                             ^
uwb_tag_.c(772): warning: unused variable 'start_count1' [-Wunused-variable]
static uint16_t current_count1,target_count1,end_count1,start_count1;
                                                        ^
uwb_tag_.c(784): warning: unused variable 'status_reg' [-Wunused-variable]
static uint32_t status_reg;
                ^
uwb_tag_.c(785): warning: unused variable 'frame_len' [-Wunused-variable]
static uint32_t frame_len;
                ^
144 warnings generated.
compiling uwb_tag_.c...
compiling crc.c...
compiling libc.c...
linking...
.\include\devices\MK800X\Source\ARM\MK800X_ac6_copy.sct(25): warning: L6314W: No section matches pattern *(.XIP_SECTION).
Program Size: Code=52780 RO-data=7296 RW-data=1284 ZI-data=26988  
Finished: 0 information, 1 warning and 0 error messages.
FromELF: creating hex file...
After Build - User command #1: fromelf.exe --bincombined -o "Output\uwb_simple_example.bin" "D:\project_chen\ChinaUWBProject_URT no UWB\ChinaUWBProject\keil\Objects\uwb_simple_example.axf"
".\Objects\uwb_simple_example.axf" - 0 Error(s), 262 Warning(s).
 
<h2>Software Packages used:</h2>
 
Package Vendor: MKSEMI
                http://www.mk-semi.com/MKSEMI.MK800X_DFP.1.0.3.pack
                MKSEMI.MK800X_DFP.1.0.3
                Device Family Pack for MK800X
 
<h2>Collection of Component include folders:</h2>
  .\RTE\_MK8000_Release
  d:\Users\xookk\AppData\Local\Arm\Packs\MKSEMI\MK800X_DFP\1.0.3\Device\Include
 
<h2>Collection of Component Files used:</h2>
Build Time Elapsed:  00:00:14
</pre>
</body>
</html>