chen
2024-11-01 631a90c1116fa33382a88a747c89bf761bc0fa9b
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
<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\anbang_Anchor\ChinaUWBProject\dualboots_Gai_youhua\keil\customboot\customboot.uvprojx
Project File Date:  11/01/2024
 
<h2>Output:</h2>
*** Using Compiler 'V6.14', folder: 'd:\Keil_v5\ARM\ARMCLANG\Bin'
Rebuild target 'MK8000 Release'
include/drivers/mk_calib.c(41): warning: In file included from...
./include/drivers/mk_calib.h(43): warning: In file included from...
./include/drivers/mk_common.h(53): warning: In file included from...
../../src/customboot\user_config.h(32): warning: 'XTAL32K_EN' is not defined, evaluates to 0 [-Wundef]
#if XTAL32K_EN
    ^
include/drivers/mk_calib.c(100): warning: 'HIGH_PERFORMANCE_MODE_EN' is not defined, evaluates to 0 [-Wundef]
#if HIGH_PERFORMANCE_MODE_EN
    ^
include/drivers/mk_calib.c(168): warning: 'LOW_POWER_EN' is not defined, evaluates to 0 [-Wundef]
#if (LOW_POWER_EN) && (XTAL32K_EN == 0)
     ^
3 warnings generated.
compiling mk_calib.c...
include/drivers/mk_dma.c(41): warning: In file included from...
./include/drivers/mk_dma.h(43): warning: In file included from...
./include/drivers/mk_common.h(53): warning: In file included from...
../../src/customboot\user_config.h(32): warning: 'XTAL32K_EN' is not defined, evaluates to 0 [-Wundef]
#if XTAL32K_EN
    ^
1 warning generated.
compiling mk_dma.c...
include/drivers/mk_misc.c(41): warning: In file included from...
./include/drivers/mk_misc.h(43): warning: In file included from...
./include/drivers/mk_common.h(53): warning: In file included from...
../../src/customboot\user_config.h(32): warning: 'XTAL32K_EN' is not defined, evaluates to 0 [-Wundef]
#if XTAL32K_EN
    ^
1 warning generated.
compiling mk_misc.c...
include/drivers/mk_clock.c(41): warning: In file included from...
./include/drivers/mk_clock.h(43): warning: In file included from...
./include/drivers/mk_common.h(53): warning: In file included from...
../../src/customboot\user_config.h(32): warning: 'XTAL32K_EN' is not defined, evaluates to 0 [-Wundef]
#if XTAL32K_EN
    ^
1 warning generated.
compiling mk_clock.c...
include/drivers/mk_reset.c(41): warning: In file included from...
./include/drivers/mk_reset.h(43): warning: In file included from...
./include/drivers/mk_common.h(53): warning: In file included from...
../../src/customboot\user_config.h(32): warning: 'XTAL32K_EN' is not defined, evaluates to 0 [-Wundef]
#if XTAL32K_EN
    ^
1 warning generated.
compiling mk_reset.c...
include/drivers/mk_uart.c(41): warning: In file included from...
./include/drivers/mk_uart.h(43): warning: In file included from...
./include/drivers/mk_common.h(53): warning: In file included from...
../../src/customboot\user_config.h(32): warning: 'XTAL32K_EN' is not defined, evaluates to 0 [-Wundef]
#if XTAL32K_EN
    ^
1 warning generated.
compiling mk_uart.c...
include/drivers/mk_io.c(41): warning: In file included from...
./include/drivers/mk_io.h(44): warning: In file included from...
./include/drivers/mk_common.h(53): warning: In file included from...
../../src/customboot\user_config.h(32): warning: 'XTAL32K_EN' is not defined, evaluates to 0 [-Wundef]
#if XTAL32K_EN
    ^
1 warning generated.
compiling mk_io.c...
include/drivers/aes.c(4): warning: no previous extern declaration for non-static variable 'kTable' [-Wmissing-variable-declarations]
const unsigned char kTable[32] =
                    ^
include/drivers/aes.c(4): note: declare 'static' if the variable is not intended to be used outside of this translation unit
const unsigned char kTable[32] =
      ^
include/drivers/aes.c(25): warning: declaration shadows a variable in the global scope [-Wshadow]
void CalcPowLog(unsigned char *powTbl, unsigned char *logTbl)
                               ^
include/drivers/aes.c(19): note: previous declaration is here
unsigned char *powTbl; //!< Final location of exponentiation lookup table.
               ^
include/drivers/aes.c(25): warning: declaration shadows a variable in the global scope [-Wshadow]
void CalcPowLog(unsigned char *powTbl, unsigned char *logTbl)
                                                      ^
include/drivers/aes.c(20): note: previous declaration is here
unsigned char *logTbl; //!< Final location of logarithm lookup table.
               ^
include/drivers/aes.c(25): warning: no previous prototype for function 'CalcPowLog' [-Wmissing-prototypes]
void CalcPowLog(unsigned char *powTbl, unsigned char *logTbl)
     ^
include/drivers/aes.c(25): note: declare 'static' if the function is not intended to be used outside of this translation unit
void CalcPowLog(unsigned char *powTbl, unsigned char *logTbl)
^
static 
include/drivers/aes.c(45): warning: declaration shadows a variable in the global scope [-Wshadow]
void CalcSBox( unsigned char * sBox )
                               ^
include/drivers/aes.c(21): note: previous declaration is here
unsigned char *sBox; //!< Final location of s-box.
               ^
include/drivers/aes.c(69): warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wimplicit-int-conversion]
      temp = (temp<<1) | (temp>>7);
           ~ ~~~~~~~~~~^~~~~~~~~~~
include/drivers/aes.c(45): warning: no previous prototype for function 'CalcSBox' [-Wmissing-prototypes]
void CalcSBox( unsigned char * sBox )
     ^
include/drivers/aes.c(45): note: declare 'static' if the function is not intended to be used outside of this translation unit
void CalcSBox( unsigned char * sBox )
^
static 
include/drivers/aes.c(82): warning: declaration shadows a variable in the global scope [-Wshadow]
void CalcSBoxInv( unsigned char * sBox, unsigned char * sBoxInv )
                                  ^
include/drivers/aes.c(21): note: previous declaration is here
unsigned char *sBox; //!< Final location of s-box.
               ^
include/drivers/aes.c(82): warning: declaration shadows a variable in the global scope [-Wshadow]
void CalcSBoxInv( unsigned char * sBox, unsigned char * sBoxInv )
                                                        ^
include/drivers/aes.c(22): note: previous declaration is here
unsigned char *sBoxInv; //!< Final location of inverse s-box.
               ^
include/drivers/aes.c(82): warning: no previous prototype for function 'CalcSBoxInv' [-Wmissing-prototypes]
void CalcSBoxInv( unsigned char * sBox, unsigned char * sBoxInv )
     ^
include/drivers/aes.c(82): note: declare 'static' if the function is not intended to be used outside of this translation unit
void CalcSBoxInv( unsigned char * sBox, unsigned char * sBoxInv )
^
static 
include/drivers/aes.c(104): warning: no previous prototype for function 'CycleLeft' [-Wmissing-prototypes]
void CycleLeft( unsigned char * row )
     ^
include/drivers/aes.c(104): note: declare 'static' if the function is not intended to be used outside of this translation unit
void CycleLeft( unsigned char * row )
^
static 
include/drivers/aes.c(122): warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wimplicit-int-conversion]
    *col = (*col << 1) ^ (*col & 0x80 ? BPOLY : 0);
         ~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/drivers/aes.c(116): warning: no previous prototype for function 'CalcCols' [-Wmissing-prototypes]
void CalcCols(unsigned char *col)
     ^
include/drivers/aes.c(116): note: declare 'static' if the function is not intended to be used outside of this translation unit
void CalcCols(unsigned char *col)
^
static 
include/drivers/aes.c(127): warning: no previous prototype for function 'InvMixColumn' [-Wmissing-prototypes]
void InvMixColumn( unsigned char * column )
     ^
include/drivers/aes.c(127): note: declare 'static' if the function is not intended to be used outside of this translation unit
void InvMixColumn( unsigned char * column )
^
static 
include/drivers/aes.c(180): warning: no previous prototype for function 'SubBytes' [-Wmissing-prototypes]
void SubBytes( unsigned char * bytes, unsigned char count )
     ^
include/drivers/aes.c(180): note: declare 'static' if the function is not intended to be used outside of this translation unit
void SubBytes( unsigned char * bytes, unsigned char count )
^
static 
include/drivers/aes.c(190): warning: no previous prototype for function 'InvSubBytesAndXOR' [-Wmissing-prototypes]
void InvSubBytesAndXOR( unsigned char * bytes, unsigned char * key, unsigned char count )
     ^
include/drivers/aes.c(190): note: declare 'static' if the function is not intended to be used outside of this translation unit
void InvSubBytesAndXOR( unsigned char * bytes, unsigned char * key, unsigned char count )
^
static 
include/drivers/aes.c(201): warning: no previous prototype for function 'InvShiftRows' [-Wmissing-prototypes]
void InvShiftRows( unsigned char * state )
     ^
include/drivers/aes.c(201): note: declare 'static' if the function is not intended to be used outside of this translation unit
void InvShiftRows( unsigned char * state )
^
static 
include/drivers/aes.c(242): warning: no previous prototype for function 'XORBytes' [-Wmissing-prototypes]
void XORBytes( unsigned char * bytes1, unsigned char * bytes2, unsigned char count )
     ^
include/drivers/aes.c(242): note: declare 'static' if the function is not intended to be used outside of this translation unit
void XORBytes( unsigned char * bytes1, unsigned char * bytes2, unsigned char count )
^
static 
include/drivers/aes.c(253): warning: no previous prototype for function 'CopyBytes' [-Wmissing-prototypes]
void CopyBytes( unsigned char * to, unsigned char * from, unsigned char count )
     ^
include/drivers/aes.c(253): note: declare 'static' if the function is not intended to be used outside of this translation unit
void CopyBytes( unsigned char * to, unsigned char * from, unsigned char count )
^
static 
include/drivers/aes.c(264): warning: declaration shadows a variable in the global scope [-Wshadow]
void KeyExpansion( unsigned char * expandedKey )
                                   ^
include/drivers/aes.c(23): note: previous declaration is here
unsigned char *expandedKey; //!< Final location of expanded key.
               ^
include/drivers/aes.c(299): warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wimplicit-int-conversion]
      *Rcon = (*Rcon << 1) ^ (*Rcon & 0x80 ? BPOLY : 0);
            ~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/drivers/aes.c(264): warning: no previous prototype for function 'KeyExpansion' [-Wmissing-prototypes]
void KeyExpansion( unsigned char * expandedKey )
     ^
include/drivers/aes.c(264): note: declare 'static' if the function is not intended to be used outside of this translation unit
void KeyExpansion( unsigned char * expandedKey )
^
static 
include/drivers/aes.c(327): warning: declaration shadows a variable in the global scope [-Wshadow]
void InvCipher( unsigned char * block, unsigned char * expandedKey )
                                                       ^
include/drivers/aes.c(23): note: previous declaration is here
unsigned char *expandedKey; //!< Final location of expanded key.
               ^
include/drivers/aes.c(327): warning: no previous prototype for function 'InvCipher' [-Wmissing-prototypes]
void InvCipher( unsigned char * block, unsigned char * expandedKey )
     ^
include/drivers/aes.c(327): note: declare 'static' if the function is not intended to be used outside of this translation unit
void InvCipher( unsigned char * block, unsigned char * expandedKey )
^
static 
include/drivers/aes.c(393): warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wimplicit-int-conversion]
    num = (num << 1) ^ (num & 0x80 ? BPOLY : 0);
        ~ ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
include/drivers/aes.c(375): warning: no previous prototype for function 'Multiply' [-Wmissing-prototypes]
unsigned char Multiply( unsigned char num, unsigned char factor )
              ^
include/drivers/aes.c(375): note: declare 'static' if the function is not intended to be used outside of this translation unit
unsigned char Multiply( unsigned char num, unsigned char factor )
^
static 
include/drivers/aes.c(400): warning: no previous prototype for function 'DotProduct' [-Wmissing-prototypes]
unsigned char DotProduct( const unsigned char * vector1, unsigned char * vector2 )
              ^
include/drivers/aes.c(400): note: declare 'static' if the function is not intended to be used outside of this translation unit
unsigned char DotProduct( const unsigned char * vector1, unsigned char * vector2 )
^
static 
include/drivers/aes.c(416): warning: no previous prototype for function 'MixColumn' [-Wmissing-prototypes]
void MixColumn( unsigned char * column )
     ^
include/drivers/aes.c(416): note: declare 'static' if the function is not intended to be used outside of this translation unit
void MixColumn( unsigned char * column )
^
static 
include/drivers/aes.c(447): warning: no previous prototype for function 'ShiftRows' [-Wmissing-prototypes]
void ShiftRows( unsigned char * state )
     ^
include/drivers/aes.c(447): note: declare 'static' if the function is not intended to be used outside of this translation unit
void ShiftRows( unsigned char * state )
^
static 
include/drivers/aes.c(477): warning: declaration shadows a variable in the global scope [-Wshadow]
void Cipher( unsigned char * block, unsigned char * expandedKey )
                                                    ^
include/drivers/aes.c(23): note: previous declaration is here
unsigned char *expandedKey; //!< Final location of expanded key.
               ^
include/drivers/aes.c(477): warning: no previous prototype for function 'Cipher' [-Wmissing-prototypes]
void Cipher( unsigned char * block, unsigned char * expandedKey )
     ^
include/drivers/aes.c(477): note: declare 'static' if the function is not intended to be used outside of this translation unit
void Cipher( unsigned char * block, unsigned char * expandedKey )
^
static 
include/drivers/aes.c(15): warning: no previous extern declaration for non-static variable 'block1' [-Wmissing-variable-declarations]
unsigned char block1[256]; //!< Workspace 1.
              ^
include/drivers/aes.c(15): note: declare 'static' if the variable is not intended to be used outside of this translation unit
unsigned char block1[256]; //!< Workspace 1.
^
include/drivers/aes.c(16): warning: no previous extern declaration for non-static variable 'block2' [-Wmissing-variable-declarations]
unsigned char block2[256]; //!< Worksapce 2.
              ^
include/drivers/aes.c(16): note: declare 'static' if the variable is not intended to be used outside of this translation unit
unsigned char block2[256]; //!< Worksapce 2.
^
include/drivers/aes.c(17): warning: no previous extern declaration for non-static variable 'tempbuf' [-Wmissing-variable-declarations]
unsigned char tempbuf[256];
              ^
include/drivers/aes.c(17): note: declare 'static' if the variable is not intended to be used outside of this translation unit
unsigned char tempbuf[256];
^
include/drivers/aes.c(19): warning: no previous extern declaration for non-static variable 'powTbl' [-Wmissing-variable-declarations]
unsigned char *powTbl; //!< Final location of exponentiation lookup table.
               ^
include/drivers/aes.c(19): note: declare 'static' if the variable is not intended to be used outside of this translation unit
unsigned char *powTbl; //!< Final location of exponentiation lookup table.
^
include/drivers/aes.c(20): warning: no previous extern declaration for non-static variable 'logTbl' [-Wmissing-variable-declarations]
unsigned char *logTbl; //!< Final location of logarithm lookup table.
               ^
include/drivers/aes.c(20): note: declare 'static' if the variable is not intended to be used outside of this translation unit
unsigned char *logTbl; //!< Final location of logarithm lookup table.
^
include/drivers/aes.c(21): warning: no previous extern declaration for non-static variable 'sBox' [-Wmissing-variable-declarations]
unsigned char *sBox; //!< Final location of s-box.
               ^
include/drivers/aes.c(21): note: declare 'static' if the variable is not intended to be used outside of this translation unit
unsigned char *sBox; //!< Final location of s-box.
^
include/drivers/aes.c(22): warning: no previous extern declaration for non-static variable 'sBoxInv' [-Wmissing-variable-declarations]
unsigned char *sBoxInv; //!< Final location of inverse s-box.
               ^
include/drivers/aes.c(22): note: declare 'static' if the variable is not intended to be used outside of this translation unit
unsigned char *sBoxInv; //!< Final location of inverse s-box.
^
38 warnings generated.
compiling aes.c...
compiling startup_MK800X.c...
compiling system_MK800X.c...
include/drivers/mk_power.c(41): warning: In file included from...
./include/drivers/mk_power.h(43): warning: In file included from...
./include/drivers/mk_common.h(53): warning: In file included from...
../../src/customboot\user_config.h(32): warning: 'XTAL32K_EN' is not defined, evaluates to 0 [-Wundef]
#if XTAL32K_EN
    ^
1 warning generated.
compiling mk_power.c...
include/drivers/mk_gpio.c(41): warning: In file included from...
./include/drivers/mk_gpio.h(43): warning: In file included from...
./include/drivers/mk_common.h(53): warning: In file included from...
../../src/customboot\user_config.h(32): warning: 'XTAL32K_EN' is not defined, evaluates to 0 [-Wundef]
#if XTAL32K_EN
    ^
1 warning generated.
compiling mk_gpio.c...
include/drivers/mk_wdt.c(41): warning: In file included from...
./include/drivers/mk_wdt.h(43): warning: In file included from...
./include/drivers/mk_common.h(53): warning: In file included from...
../../src/customboot\user_config.h(32): warning: 'XTAL32K_EN' is not defined, evaluates to 0 [-Wundef]
#if XTAL32K_EN
    ^
1 warning generated.
compiling mk_wdt.c...
include/drivers/mk_dual_timer.c(41): warning: In file included from...
./include/drivers/mk_dual_timer.h(43): warning: In file included from...
./include/drivers/mk_common.h(53): warning: In file included from...
../../src/customboot\user_config.h(32): warning: 'XTAL32K_EN' is not defined, evaluates to 0 [-Wundef]
#if XTAL32K_EN
    ^
1 warning generated.
compiling mk_dual_timer.c...
include/drivers/mk_sleep_timer.c(41): warning: In file included from...
./include/drivers/mk_sleep_timer.h(48): warning: In file included from...
./include/drivers/mk_common.h(53): warning: In file included from...
../../src/customboot\user_config.h(32): warning: 'XTAL32K_EN' is not defined, evaluates to 0 [-Wundef]
#if XTAL32K_EN
    ^
1 warning generated.
compiling mk_sleep_timer.c...
include/drivers/menu.c(3): warning: In file included from...
./include/drivers/mk_flash.h(44): warning: In file included from...
./include/drivers/mk_common.h(53): warning: In file included from...
../../src/customboot\user_config.h(32): warning: 'XTAL32K_EN' is not defined, evaluates to 0 [-Wundef]
#if XTAL32K_EN
    ^
include/drivers/menu.c(16): warning: no previous extern declaration for non-static variable 'FlashProtection' [-Wmissing-variable-declarations]
uint32_t FlashProtection = 0;
         ^
include/drivers/menu.c(16): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint32_t FlashProtection = 0;
^
include/drivers/menu.c(17): warning: no previous extern declaration for non-static variable 'tab_1024' [-Wmissing-variable-declarations]
uint8_t tab_1024[1024] =
        ^
include/drivers/menu.c(17): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint8_t tab_1024[1024] =
^
include/drivers/menu.c(28): warning: implicit conversion loses integer precision: 'unsigned int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion]
    str[j++] = (intnum / Div) + 48;
             ~ ~~~~~~~~~~~~~~~^~~~
include/drivers/menu.c(28): warning: implicit conversion changes signedness: 'int32_t' (aka 'int') to 'unsigned int' [-Wsign-conversion]
    str[j++] = (intnum / Div) + 48;
                ^~~~~~ ~
include/drivers/menu.c(30): warning: implicit conversion changes signedness: 'unsigned int' to 'int32_t' (aka 'int') [-Wsign-conversion]
    intnum = intnum % Div;
           ~ ~~~~~~~^~~~~
include/drivers/menu.c(30): warning: implicit conversion changes signedness: 'int32_t' (aka 'int') to 'unsigned int' [-Wsign-conversion]
    intnum = intnum % Div;
             ^~~~~~ ~
include/drivers/menu.c(22): warning: no previous prototype for function 'Int2Str' [-Wmissing-prototypes]
void Int2Str(uint8_t* str, int32_t intnum)
     ^
include/drivers/menu.c(22): note: declare 'static' if the function is not intended to be used outside of this translation unit
void Int2Str(uint8_t* str, int32_t intnum)
^
static 
include/drivers/menu.c(42): warning: no previous prototype for function 'IAP_JumpTo' [-Wmissing-prototypes]
uint32_t IAP_JumpTo(uint32_t ApplicationAddress)
         ^
include/drivers/menu.c(42): note: declare 'static' if the function is not intended to be used outside of this translation unit
uint32_t IAP_JumpTo(uint32_t ApplicationAddress)
^
static 
include/drivers/menu.c(68): warning: no previous prototype for function 'SerialDownload' [-Wmissing-prototypes]
unsigned char SerialDownload(void)
              ^
include/drivers/menu.c(68): note: declare 'static' if the function is not intended to be used outside of this translation unit
unsigned char SerialDownload(void)
^
static 
include/drivers/menu.c(113): warning: no previous prototype for function 'GetKey' [-Wmissing-prototypes]
uint8_t GetKey(void)
        ^
include/drivers/menu.c(113): note: declare 'static' if the function is not intended to be used outside of this translation unit
uint8_t GetKey(void)
^
static 
include/drivers/menu.c(125): warning: no previous prototype for function 'SerialUpload' [-Wmissing-prototypes]
void SerialUpload(void)
     ^
include/drivers/menu.c(125): note: declare 'static' if the function is not intended to be used outside of this translation unit
void SerialUpload(void)
^
static 
include/drivers/menu.c(153): warning: no previous prototype for function 'delay_ms' [-Wmissing-prototypes]
void delay_ms(uint32_t nTimer)  
     ^
include/drivers/menu.c(153): note: declare 'static' if the function is not intended to be used outside of this translation unit
void delay_ms(uint32_t nTimer)  
^
static 
include/drivers/menu.c(160): warning: unused variable 'key' [-Wunused-variable]
  uint8_t key = 0;
          ^
include/drivers/menu.c(13): warning: no previous extern declaration for non-static variable 'Jump_To_Application' [-Wmissing-variable-declarations]
pFunction Jump_To_Application;
          ^
include/drivers/menu.c(13): note: declare 'static' if the variable is not intended to be used outside of this translation unit
pFunction Jump_To_Application;
^
include/drivers/menu.c(14): warning: no previous extern declaration for non-static variable 'JumpAddress' [-Wmissing-variable-declarations]
uint32_t JumpAddress;
         ^
include/drivers/menu.c(14): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint32_t JumpAddress;
^
include/drivers/menu.c(61): warning: no previous extern declaration for non-static variable 'FileName' [-Wmissing-variable-declarations]
uint8_t FileName[FILE_NAME_LENGTH];
        ^
include/drivers/menu.c(61): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint8_t FileName[FILE_NAME_LENGTH];
^
17 warnings generated.
compiling menu.c...
include/drivers/mk_flash.c(41): warning: In file included from...
./include/drivers/mk_flash.h(44): warning: In file included from...
./include/drivers/mk_common.h(53): warning: In file included from...
../../src/customboot\user_config.h(32): warning: 'XTAL32K_EN' is not defined, evaluates to 0 [-Wundef]
#if XTAL32K_EN
    ^
1 warning generated.
compiling mk_flash.c...
../../src/customboot/customboot.c(7): warning: In file included from...
./include/drivers\mk_flash.h(44): warning: In file included from...
./include/drivers/mk_common.h(53): warning: In file included from...
../../src/customboot\user_config.h(32): warning: 'XTAL32K_EN' is not defined, evaluates to 0 [-Wundef]
#if XTAL32K_EN
    ^
../../src/customboot/customboot.c(27): warning: no previous extern declaration for non-static variable 'time32_reset' [-Wmissing-variable-declarations]
volatile unsigned long time32_reset = 0;
                       ^
../../src/customboot/customboot.c(27): note: declare 'static' if the variable is not intended to be used outside of this translation unit
volatile unsigned long time32_reset = 0;
         ^
../../src/customboot/customboot.c(29): warning: no previous extern declaration for non-static variable 'key' [-Wmissing-variable-declarations]
uint8_t key[16]={0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
        ^
../../src/customboot/customboot.c(29): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint8_t key[16]={0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
^
../../src/customboot/customboot.c(110): warning: unused variable 'tmp' [-Wunused-variable]
                uint16_t tmp = 0xAAAA,result;               
                         ^
../../src/customboot/customboot.c(110): warning: unused variable 'result' [-Wunused-variable]
                uint16_t tmp = 0xAAAA,result;               
                                      ^
../../src/customboot/customboot.c(32): warning: no previous prototype for function 'usartdata_process' [-Wmissing-prototypes]
void usartdata_process( uint8_t data)
     ^
../../src/customboot/customboot.c(32): note: declare 'static' if the function is not intended to be used outside of this translation unit
void usartdata_process( uint8_t data)
^
static 
../../src/customboot/customboot.c(120): warning: no previous extern declaration for non-static variable 'updata_byte' [-Wmissing-variable-declarations]
unsigned short int updata_byte = 0;
                   ^
../../src/customboot/customboot.c(120): note: declare 'static' if the variable is not intended to be used outside of this translation unit
unsigned short int updata_byte = 0;
^
../../src/customboot/customboot.c(121): warning: no previous extern declaration for non-static variable 'trx_buf' [-Wmissing-variable-declarations]
uint8_t trx_buf[10] = {0};
        ^
../../src/customboot/customboot.c(121): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint8_t trx_buf[10] = {0};
^
../../src/customboot/customboot.c(165): warning: illegal character encoding in string literal [-Winvalid-source-encoding]
                 SerialPutString("MK8000-BootLoader-V1.0<C6><F4><B6><AF>\r\n");
                                                        ^~~~~~~~~~~~~~~~
./include/drivers/mk_uart.h(69): note: expanded from macro 'SerialPutString'
#define SerialPutString(x)   Serial_PutString((uint8_t*)(x))
                                                         ^
../../src/customboot/customboot.c(183): warning: illegal character encoding in string literal [-Winvalid-source-encoding]
        SerialPutString("<B4><AE><BF><DA><C9><FD><BC><B6><C6><F4><B6><AF>\r\n");
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/drivers/mk_uart.h(69): note: expanded from macro 'SerialPutString'
#define SerialPutString(x)   Serial_PutString((uint8_t*)(x))
                                                         ^
../../src/customboot/customboot.c(195): warning: illegal character encoding in string literal [-Winvalid-source-encoding]
        SerialPutString("<CD><F8><C2><E7><C9><FD><BC><B6><C6><F4><B6><AF><C6><F4><B6><AF>\r\n");
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/drivers/mk_uart.h(69): note: expanded from macro 'SerialPutString'
#define SerialPutString(x)   Serial_PutString((uint8_t*)(x))
                                                         ^
../../src/customboot/customboot.c(229): warning: implicit declaration of function 'delay_ms' is invalid in C99 [-Wimplicit-function-declaration]
                                delay_ms(500);
                                ^
../../src/customboot/customboot.c(192): warning: unused variable 'JumpAddress' [-Wunused-variable]
        uint32_t JumpAddress;
                 ^
../../src/customboot/customboot.c(193): warning: unused variable 'Jump_To_Application' [-Wunused-variable]
        pFunction Jump_To_Application;
                  ^
../../src/customboot/customboot.c(240): warning: illegal character encoding in string literal [-Winvalid-source-encoding]
        SerialPutString("OTA<C9><FD><BC><B6><C6><F4><B6><AF>\r\n");
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/drivers/mk_uart.h(69): note: expanded from macro 'SerialPutString'
#define SerialPutString(x)   Serial_PutString((uint8_t*)(x))
                                                         ^
../../src/customboot/customboot.c(241): warning: implicit declaration of function 'IAP_JumpTo' is invalid in C99 [-Wimplicit-function-declaration]
        IAP_JumpTo(SRAM_BASE);
        ^
../../src/customboot/customboot.c(123): warning: unused variable 'c' [-Wunused-variable]
{               uint8_t c;
                        ^
../../src/customboot/customboot.c(26): warning: no previous extern declaration for non-static variable 'time32_incr' [-Wmissing-variable-declarations]
volatile unsigned long time32_incr;
                       ^
../../src/customboot/customboot.c(26): note: declare 'static' if the variable is not intended to be used outside of this translation unit
volatile unsigned long time32_incr;
         ^
../../src/customboot/customboot.c(17): warning: unused variable 'fw_addr' [-Wunused-const-variable]
static const uint32_t fw_addr = 0x04004000;
                      ^
../../src/customboot/customboot.c(18): warning: unused variable 'fw_bytes' [-Wunused-const-variable]
static const uint32_t fw_bytes = 14712;
                      ^
20 warnings generated.
compiling customboot.c...
include/drivers/ymodem.c(33): warning: In file included from...
./include/drivers/mk_flash.h(44): warning: In file included from...
./include/drivers/mk_common.h(53): warning: In file included from...
../../src/customboot\user_config.h(32): warning: 'XTAL32K_EN' is not defined, evaluates to 0 [-Wundef]
#if XTAL32K_EN
    ^
include/drivers/ymodem.c(74): warning: implicit conversion changes signedness: 'uint32_t' (aka 'unsigned int') to 'int32_t' (aka 'int') [-Wsign-conversion]
        *intnum = val;
                ~ ^~~
include/drivers/ymodem.c(102): warning: implicit conversion changes signedness: 'uint32_t' (aka 'unsigned int') to 'int32_t' (aka 'int') [-Wsign-conversion]
        *intnum = val;
                ~ ^~~
include/drivers/ymodem.c(110): warning: implicit conversion changes signedness: 'uint32_t' (aka 'unsigned int') to 'int32_t' (aka 'int') [-Wsign-conversion]
        *intnum = val;
                ~ ^~~
include/drivers/ymodem.c(117): warning: implicit conversion changes signedness: 'uint32_t' (aka 'unsigned int') to 'int32_t' (aka 'int') [-Wsign-conversion]
        *intnum = val;
                ~ ^~~
include/drivers/ymodem.c(59): warning: no previous prototype for function 'Str2Int' [-Wmissing-prototypes]
uint32_t Str2Int(uint8_t *inputstr, int32_t *intnum)
         ^
include/drivers/ymodem.c(59): note: declare 'static' if the function is not intended to be used outside of this translation unit
uint32_t Str2Int(uint8_t *inputstr, int32_t *intnum)
^
static 
include/drivers/ymodem.c(148): warning: no previous prototype for function 'Receive_Byte' [-Wmissing-prototypes]
 int32_t Receive_Byte (uint8_t *c, uint32_t timeout)
         ^
include/drivers/ymodem.c(148): note: declare 'static' if the function is not intended to be used outside of this translation unit
 int32_t Receive_Byte (uint8_t *c, uint32_t timeout)
 ^
 static 
include/drivers/ymodem.c(216): warning: implicit conversion loses integer precision: 'uint32_t' (aka 'unsigned int') to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion]
    crc = UpdateCRC16(crc,*data++);
          ~~~~~~~~~~~ ^~~
include/drivers/ymodem.c(218): warning: implicit conversion loses integer precision: 'uint32_t' (aka 'unsigned int') to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion]
  crc = UpdateCRC16(crc,0);
        ~~~~~~~~~~~ ^~~
include/drivers/ymodem.c(219): warning: implicit conversion loses integer precision: 'uint32_t' (aka 'unsigned int') to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion]
  crc = UpdateCRC16(crc,0);
        ~~~~~~~~~~~ ^~~
include/drivers/ymodem.c(335): warning: no previous extern declaration for non-static variable 'bufferOut' [-Wmissing-variable-declarations]
uint8_t bufferOut[16]={0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
        ^
include/drivers/ymodem.c(335): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint8_t bufferOut[16]={0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
^
include/drivers/ymodem.c(337): warning: no previous extern declaration for non-static variable 'size' [-Wmissing-variable-declarations]
int32_t i, j, packet_length, session_done, file_done, packets_received, errors, session_begin, size = 0;
                                                                                               ^
include/drivers/ymodem.c(337): note: declare 'static' if the variable is not intended to be used outside of this translation unit
int32_t i, j, packet_length, session_done, file_done, packets_received, errors, session_begin, size = 0;
^
include/drivers/ymodem.c(422): warning: implicit conversion changes signedness: 'int32_t' (aka 'int') to 'unsigned int' [-Wsign-conversion]
                  memcpy(buf_ptr, packet_data + PACKET_HEADER, packet_length);
                  ~~~~~~                                       ^~~~~~~~~~~~~
include/drivers/ymodem.c(453): warning: implicit conversion changes signedness: 'int32_t' (aka 'int') to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
                                                                        if(flash_write_nbytes(FLASH_ID0,flashdestination, buf, packet_length)== 0&&(flashdestination==tempaddress||tempaddress>size))
                                                                           ~~~~~~~~~~~~~~~~~~                                  ^~~~~~~~~~~~~
include/drivers/ymodem.c(455): warning: implicit conversion changes signedness: 'int32_t' (aka 'int') to 'unsigned int' [-Wsign-conversion]
                                                                        flashdestination += packet_length;
                                                                                         ~~ ^~~~~~~~~~~~~
include/drivers/ymodem.c(453): warning: comparison of integers of different signs: 'uint32_t' (aka 'unsigned int') and 'int32_t' (aka 'int') [-Wsign-compare]
                                                                        if(flash_write_nbytes(FLASH_ID0,flashdestination, buf, packet_length)== 0&&(flashdestination==tempaddress||tempaddress>size))
                                                                                                                                                                                   ~~~~~~~~~~~^~~~~
include/drivers/ymodem.c(512): warning: declaration shadows a variable in the global scope [-Wshadow]
int32_t Ymodem_CheckResponse(uint8_t c)
                                     ^
include/drivers/ymodem.c(256): note: previous declaration is here
uint8_t c;
        ^
include/drivers/ymodem.c(524): warning: declaration shadows a variable in the global scope [-Wshadow]
  uint16_t i, j;
           ^
include/drivers/ymodem.c(337): note: previous declaration is here
int32_t i, j, packet_length, session_done, file_done, packets_received, errors, session_begin, size = 0;
        ^
include/drivers/ymodem.c(524): warning: declaration shadows a variable in the global scope [-Wshadow]
  uint16_t i, j;
              ^
include/drivers/ymodem.c(337): note: previous declaration is here
int32_t i, j, packet_length, session_done, file_done, packets_received, errors, session_begin, size = 0;
           ^
include/drivers/ymodem.c(525): warning: declaration shadows a variable in the global scope [-Wshadow]
  uint8_t file_ptr[10];
          ^
include/drivers/ymodem.c(334): note: previous declaration is here
uint8_t packet_data[PACKET_1K_SIZE + PACKET_OVERHEAD], file_size[FILE_SIZE_LENGTH], *file_ptr, *buf_ptr;        //1024 + 5
                                                                                     ^
include/drivers/ymodem.c(540): warning: implicit conversion changes signedness: 'uint32_t' (aka 'unsigned int') to 'int32_t' (aka 'int') [-Wsign-conversion]
  Int2Str (file_ptr, *length);
  ~~~~~~~            ^~~~~~~
include/drivers/ymodem.c(559): warning: declaration shadows a variable in the global scope [-Wshadow]
  uint16_t i, size, packetSize;
           ^
include/drivers/ymodem.c(337): note: previous declaration is here
int32_t i, j, packet_length, session_done, file_done, packets_received, errors, session_begin, size = 0;
        ^
include/drivers/ymodem.c(559): warning: declaration shadows a variable in the global scope [-Wshadow]
  uint16_t i, size, packetSize;
              ^
include/drivers/ymodem.c(337): note: previous declaration is here
int32_t i, j, packet_length, session_done, file_done, packets_received, errors, session_begin, size = 0;
                                                                                               ^
include/drivers/ymodem.c(560): warning: declaration shadows a variable in the global scope [-Wshadow]
  uint8_t* file_ptr;
           ^
include/drivers/ymodem.c(334): note: previous declaration is here
uint8_t packet_data[PACKET_1K_SIZE + PACKET_OVERHEAD], file_size[FILE_SIZE_LENGTH], *file_ptr, *buf_ptr;        //1024 + 5
                                                                                     ^
include/drivers/ymodem.c(564): warning: implicit conversion loses integer precision: 'uint32_t' (aka 'unsigned int') to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion]
  size = sizeBlk < packetSize ? sizeBlk :packetSize;
       ~                        ^~~~~~~
include/drivers/ymodem.c(599): warning: declaration shadows a variable in the global scope [-Wshadow]
  uint16_t i;
           ^
include/drivers/ymodem.c(337): note: previous declaration is here
int32_t i, j, packet_length, session_done, file_done, packets_received, errors, session_begin, size = 0;
        ^
include/drivers/ymodem.c(629): warning: declaration shadows a variable in the global scope [-Wshadow]
  uint8_t packet_data[PACKET_1K_SIZE + PACKET_OVERHEAD];
          ^
include/drivers/ymodem.c(334): note: previous declaration is here
uint8_t packet_data[PACKET_1K_SIZE + PACKET_OVERHEAD], file_size[FILE_SIZE_LENGTH], *file_ptr, *buf_ptr;        //1024 + 5
        ^
include/drivers/ymodem.c(630): warning: declaration shadows a variable in the global scope [-Wshadow]
  uint8_t FileName[FILE_NAME_LENGTH];
          ^
include/drivers/ymodem.c(54): note: previous declaration is here
extern uint8_t FileName[];
               ^
include/drivers/ymodem.c(631): warning: declaration shadows a variable in the global scope [-Wshadow]
  uint8_t *buf_ptr, tempCheckSum ;
           ^
include/drivers/ymodem.c(334): note: previous declaration is here
uint8_t packet_data[PACKET_1K_SIZE + PACKET_OVERHEAD], file_size[FILE_SIZE_LENGTH], *file_ptr, *buf_ptr;        //1024 + 5
                                                                                                ^
include/drivers/ymodem.c(633): warning: declaration shadows a variable in the global scope [-Wshadow]
  uint8_t receivedC[2], CRC16_F = 0, i;
                                     ^
include/drivers/ymodem.c(337): note: previous declaration is here
int32_t i, j, packet_length, session_done, file_done, packets_received, errors, session_begin, size = 0;
        ^
include/drivers/ymodem.c(634): warning: declaration shadows a variable in the global scope [-Wshadow]
  uint32_t errors = 0, ackReceived = 0, size = 0, pktSize;
           ^
include/drivers/ymodem.c(337): note: previous declaration is here
int32_t i, j, packet_length, session_done, file_done, packets_received, errors, session_begin, size = 0;
                                                                        ^
include/drivers/ymodem.c(634): warning: declaration shadows a variable in the global scope [-Wshadow]
  uint32_t errors = 0, ackReceived = 0, size = 0, pktSize;
                                        ^
include/drivers/ymodem.c(337): note: previous declaration is here
int32_t i, j, packet_length, session_done, file_done, packets_received, errors, session_begin, size = 0;
                                                                                               ^
include/drivers/ymodem.c(680): warning: implicit conversion loses integer precision: 'uint32_t' (aka 'unsigned int') to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion]
    return errors;
    ~~~~~~ ^~~~~~
include/drivers/ymodem.c(690): warning: implicit conversion loses integer precision: 'uint16_t' (aka 'unsigned short') to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion]
    Ymodem_PreparePacket(buf_ptr, &packet_data[0], blkNumber, size);
    ~~~~~~~~~~~~~~~~~~~~                           ^~~~~~~~~
include/drivers/ymodem.c(706): warning: implicit conversion loses integer precision: 'unsigned int' to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion]
      Ymodem_SendPacket(packet_data, pktSize + PACKET_HEADER);
      ~~~~~~~~~~~~~~~~~              ~~~~~~~~^~~~~~~~~~~~~~~
include/drivers/ymodem.c(754): warning: implicit conversion loses integer precision: 'uint32_t' (aka 'unsigned int') to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion]
      return errors;
      ~~~~~~ ^~~~~~
include/drivers/ymodem.c(768): warning: implicit conversion loses integer precision: 'uint16_t' (aka 'unsigned short') to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion]
                receivedC[0]= (uint16_t)(uart_handle[1].base->RX_DATA&(uint16_t)0x01FF);
                            ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/drivers/ymodem.c(785): warning: implicit conversion loses integer precision: 'uint32_t' (aka 'unsigned int') to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion]
    return errors;
    ~~~~~~ ^~~~~~
include/drivers/ymodem.c(831): warning: implicit conversion loses integer precision: 'uint32_t' (aka 'unsigned int') to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion]
    return errors;
    ~~~~~~ ^~~~~~
include/drivers/ymodem.c(854): warning: implicit conversion loses integer precision: 'uint32_t' (aka 'unsigned int') to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion]
    return errors;
    ~~~~~~ ^~~~~~
include/drivers/ymodem.c(255): warning: no previous extern declaration for non-static variable 'current_seqno' [-Wmissing-variable-declarations]
uint16_t current_seqno,flash_seqno,i2;
         ^
include/drivers/ymodem.c(255): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint16_t current_seqno,flash_seqno,i2;
^
include/drivers/ymodem.c(255): warning: no previous extern declaration for non-static variable 'flash_seqno' [-Wmissing-variable-declarations]
uint16_t current_seqno,flash_seqno,i2;
                       ^
include/drivers/ymodem.c(255): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint16_t current_seqno,flash_seqno,i2;
^
include/drivers/ymodem.c(255): warning: no previous extern declaration for non-static variable 'i2' [-Wmissing-variable-declarations]
uint16_t current_seqno,flash_seqno,i2;
                                   ^
include/drivers/ymodem.c(255): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint16_t current_seqno,flash_seqno,i2;
^
include/drivers/ymodem.c(256): warning: no previous extern declaration for non-static variable 'c' [-Wmissing-variable-declarations]
uint8_t c;
        ^
include/drivers/ymodem.c(256): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint8_t c;
^
include/drivers/ymodem.c(334): warning: no previous extern declaration for non-static variable 'packet_data' [-Wmissing-variable-declarations]
uint8_t packet_data[PACKET_1K_SIZE + PACKET_OVERHEAD], file_size[FILE_SIZE_LENGTH], *file_ptr, *buf_ptr;        //1024 + 5
        ^
include/drivers/ymodem.c(334): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint8_t packet_data[PACKET_1K_SIZE + PACKET_OVERHEAD], file_size[FILE_SIZE_LENGTH], *file_ptr, *buf_ptr;        //1024 + 5
^
include/drivers/ymodem.c(334): warning: no previous extern declaration for non-static variable 'file_size' [-Wmissing-variable-declarations]
uint8_t packet_data[PACKET_1K_SIZE + PACKET_OVERHEAD], file_size[FILE_SIZE_LENGTH], *file_ptr, *buf_ptr;        //1024 + 5
                                                       ^
include/drivers/ymodem.c(334): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint8_t packet_data[PACKET_1K_SIZE + PACKET_OVERHEAD], file_size[FILE_SIZE_LENGTH], *file_ptr, *buf_ptr;        //1024 + 5
^
include/drivers/ymodem.c(334): warning: no previous extern declaration for non-static variable 'file_ptr' [-Wmissing-variable-declarations]
uint8_t packet_data[PACKET_1K_SIZE + PACKET_OVERHEAD], file_size[FILE_SIZE_LENGTH], *file_ptr, *buf_ptr;        //1024 + 5
                                                                                     ^
include/drivers/ymodem.c(334): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint8_t packet_data[PACKET_1K_SIZE + PACKET_OVERHEAD], file_size[FILE_SIZE_LENGTH], *file_ptr, *buf_ptr;        //1024 + 5
^
include/drivers/ymodem.c(334): warning: no previous extern declaration for non-static variable 'buf_ptr' [-Wmissing-variable-declarations]
uint8_t packet_data[PACKET_1K_SIZE + PACKET_OVERHEAD], file_size[FILE_SIZE_LENGTH], *file_ptr, *buf_ptr;        //1024 + 5
                                                                                                ^
include/drivers/ymodem.c(334): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint8_t packet_data[PACKET_1K_SIZE + PACKET_OVERHEAD], file_size[FILE_SIZE_LENGTH], *file_ptr, *buf_ptr;        //1024 + 5
^
include/drivers/ymodem.c(336): warning: no previous extern declaration for non-static variable 'BufferIn' [-Wmissing-variable-declarations]
uint8_t *BufferIn;
         ^
include/drivers/ymodem.c(336): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint8_t *BufferIn;
^
include/drivers/ymodem.c(337): warning: no previous extern declaration for non-static variable 'i' [-Wmissing-variable-declarations]
int32_t i, j, packet_length, session_done, file_done, packets_received, errors, session_begin, size = 0;
        ^
include/drivers/ymodem.c(337): note: declare 'static' if the variable is not intended to be used outside of this translation unit
int32_t i, j, packet_length, session_done, file_done, packets_received, errors, session_begin, size = 0;
^
include/drivers/ymodem.c(337): warning: no previous extern declaration for non-static variable 'j' [-Wmissing-variable-declarations]
int32_t i, j, packet_length, session_done, file_done, packets_received, errors, session_begin, size = 0;
           ^
include/drivers/ymodem.c(337): note: declare 'static' if the variable is not intended to be used outside of this translation unit
int32_t i, j, packet_length, session_done, file_done, packets_received, errors, session_begin, size = 0;
^
include/drivers/ymodem.c(337): warning: no previous extern declaration for non-static variable 'packet_length' [-Wmissing-variable-declarations]
int32_t i, j, packet_length, session_done, file_done, packets_received, errors, session_begin, size = 0;
              ^
include/drivers/ymodem.c(337): note: declare 'static' if the variable is not intended to be used outside of this translation unit
int32_t i, j, packet_length, session_done, file_done, packets_received, errors, session_begin, size = 0;
^
include/drivers/ymodem.c(337): warning: no previous extern declaration for non-static variable 'session_done' [-Wmissing-variable-declarations]
int32_t i, j, packet_length, session_done, file_done, packets_received, errors, session_begin, size = 0;
                             ^
include/drivers/ymodem.c(337): note: declare 'static' if the variable is not intended to be used outside of this translation unit
int32_t i, j, packet_length, session_done, file_done, packets_received, errors, session_begin, size = 0;
^
include/drivers/ymodem.c(337): warning: no previous extern declaration for non-static variable 'file_done' [-Wmissing-variable-declarations]
int32_t i, j, packet_length, session_done, file_done, packets_received, errors, session_begin, size = 0;
                                           ^
include/drivers/ymodem.c(337): note: declare 'static' if the variable is not intended to be used outside of this translation unit
int32_t i, j, packet_length, session_done, file_done, packets_received, errors, session_begin, size = 0;
^
include/drivers/ymodem.c(337): warning: no previous extern declaration for non-static variable 'packets_received' [-Wmissing-variable-declarations]
int32_t i, j, packet_length, session_done, file_done, packets_received, errors, session_begin, size = 0;
                                                      ^
include/drivers/ymodem.c(337): note: declare 'static' if the variable is not intended to be used outside of this translation unit
int32_t i, j, packet_length, session_done, file_done, packets_received, errors, session_begin, size = 0;
^
include/drivers/ymodem.c(337): warning: no previous extern declaration for non-static variable 'errors' [-Wmissing-variable-declarations]
int32_t i, j, packet_length, session_done, file_done, packets_received, errors, session_begin, size = 0;
                                                                        ^
include/drivers/ymodem.c(337): note: declare 'static' if the variable is not intended to be used outside of this translation unit
int32_t i, j, packet_length, session_done, file_done, packets_received, errors, session_begin, size = 0;
^
include/drivers/ymodem.c(337): warning: no previous extern declaration for non-static variable 'session_begin' [-Wmissing-variable-declarations]
int32_t i, j, packet_length, session_done, file_done, packets_received, errors, session_begin, size = 0;
                                                                                ^
include/drivers/ymodem.c(337): note: declare 'static' if the variable is not intended to be used outside of this translation unit
int32_t i, j, packet_length, session_done, file_done, packets_received, errors, session_begin, size = 0;
^
include/drivers/ymodem.c(338): warning: no previous extern declaration for non-static variable 'flashdestination' [-Wmissing-variable-declarations]
uint32_t flashdestination, ramsource,tempaddress;
         ^
include/drivers/ymodem.c(338): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint32_t flashdestination, ramsource,tempaddress;
^
include/drivers/ymodem.c(338): warning: no previous extern declaration for non-static variable 'ramsource' [-Wmissing-variable-declarations]
uint32_t flashdestination, ramsource,tempaddress;
                           ^
include/drivers/ymodem.c(338): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint32_t flashdestination, ramsource,tempaddress;
^
include/drivers/ymodem.c(338): warning: no previous extern declaration for non-static variable 'tempaddress' [-Wmissing-variable-declarations]
uint32_t flashdestination, ramsource,tempaddress;
                                     ^
include/drivers/ymodem.c(338): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint32_t flashdestination, ramsource,tempaddress;
^
60 warnings generated.
compiling ymodem.c...
include/boards/board.c(41): warning: In file included from...
./include/boards/board.h(44): warning: In file included from...
./include/drivers\mk_common.h(53): warning: In file included from...
../../src/customboot\user_config.h(32): warning: 'XTAL32K_EN' is not defined, evaluates to 0 [-Wundef]
#if XTAL32K_EN
    ^
1 warning generated.
compiling board.c...
../../src/customboot/pin_config.c(41): warning: In file included from...
./include/drivers\mk_io.h(44): warning: In file included from...
./include/drivers/mk_common.h(53): warning: In file included from...
../../src/customboot\user_config.h(32): warning: 'XTAL32K_EN' is not defined, evaluates to 0 [-Wundef]
#if XTAL32K_EN
    ^
1 warning generated.
compiling pin_config.c...
linking...
Program Size: Code=16856 RO-data=876 RW-data=488 ZI-data=3960  
FromELF: creating hex file...
After Build - User command #1: fromelf.exe --bincombined -o "Output\customboot.bin" "D:\project chen\anbang_Anchor\ChinaUWBProject\dualboots_Gai_youhua\keil\customboot\Objects\customboot.axf"
".\Objects\customboot.axf" - 0 Error(s), 152 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:03
</pre>
</body>
</html>