-
Notifications
You must be signed in to change notification settings - Fork 0
/
startup.lst
2544 lines (2047 loc) · 79.1 KB
/
startup.lst
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
ARM Macro Assembler Page 1
1 00000000 ; <<< Use Configuration Wizard in Context Menu >>>
2 00000000 ;*******************************************************
***********************
3 00000000 ;
4 00000000 ; startup_rvmdk.S - Startup code for use with Keil's uVi
sion.
5 00000000 ;
6 00000000 ; Copyright (c) 2012 Texas Instruments Incorporated. Al
l rights reserved.
7 00000000 ; Software License Agreement
8 00000000 ;
9 00000000 ; Texas Instruments (TI) is supplying this software for
use solely and
10 00000000 ; exclusively on TI's microcontroller products. The soft
ware is owned by
11 00000000 ; TI and/or its suppliers, and is protected under applic
able copyright
12 00000000 ; laws. You may not combine this software with "viral" o
pen-source
13 00000000 ; software in order to form a larger program.
14 00000000 ;
15 00000000 ; THIS SOFTWARE IS PROVIDED "AS IS" AND WITH ALL FAULTS.
16 00000000 ; NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY,
INCLUDING, BUT
17 00000000 ; NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR
18 00000000 ; A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. TI SHALL
NOT, UNDER ANY
19 00000000 ; CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR C
ONSEQUENTIAL
20 00000000 ; DAMAGES, FOR ANY REASON WHATSOEVER.
21 00000000 ;
22 00000000 ; This is part of revision 9453 of the EK-LM4F120XL Firm
ware Package.
23 00000000 ;
24 00000000 ;*******************************************************
***********************
25 00000000 ; Edited to conform with ISR names as described in
26 00000000 ; "Embedded Systems: Introduction to ARM Cortex M Micr
ocontrollers",
27 00000000 ; ISBN: 978-1469998749, Jonathan Valvano, copyright (c
) 2012
28 00000000 ; "Embedded Systems: Real Time Interfacing to ARM Cort
ex M Microcontrollers",
29 00000000 ; ISBN: 978-1463590154, Jonathan Valvano, copyright (c
) 2012
30 00000000 ; "Embedded Systems: Real-Time Operating Systems for A
RM Cortex M Microcontrollers",
31 00000000 ; ISBN: 978-1466468863, Jonathan Valvano, copyright (c
) 2013
32 00000000 ;
33 00000000 ;*******************************************************
***********************
34 00000000 ;
35 00000000 ; <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>
36 00000000 ;
37 00000000 ;*******************************************************
***********************
ARM Macro Assembler Page 2
38 00000000 00000400
Stack EQU 0x00000400
39 00000000
40 00000000 ;*******************************************************
***********************
41 00000000 ;
42 00000000 ; <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>
43 00000000 ;
44 00000000 ;*******************************************************
***********************
45 00000000 00000000
Heap EQU 0x00000000
46 00000000
47 00000000 ;*******************************************************
***********************
48 00000000 ;
49 00000000 ; Allocate space for the stack.
50 00000000 ;
51 00000000 ;*******************************************************
***********************
52 00000000 AREA STACK, NOINIT, READWRITE, ALIGN
=3
53 00000000 StackMem
54 00000000 SPACE Stack
55 00000400 __initial_sp
56 00000400
57 00000400 ;*******************************************************
***********************
58 00000400 ;
59 00000400 ; Allocate space for the heap.
60 00000400 ;
61 00000400 ;*******************************************************
***********************
62 00000400 AREA HEAP, NOINIT, READWRITE, ALIGN=
3
63 00000000 __heap_base
64 00000000 HeapMem
65 00000000 SPACE Heap
66 00000000 __heap_limit
67 00000000
68 00000000 ;*******************************************************
***********************
69 00000000 ;
70 00000000 ; Indicate that the code in this file preserves 8-byte a
lignment of the stack.
71 00000000 ;
72 00000000 ;*******************************************************
***********************
73 00000000 PRESERVE8
74 00000000
75 00000000 ;*******************************************************
***********************
76 00000000 ;
77 00000000 ; Place code into the reset code section.
78 00000000 ;
79 00000000 ;*******************************************************
***********************
80 00000000 AREA RESET, CODE, READONLY
81 00000000 THUMB
ARM Macro Assembler Page 3
82 00000000
83 00000000 ;*******************************************************
***********************
84 00000000 ;
85 00000000 ; The vector table.
86 00000000 ;
87 00000000 ;*******************************************************
***********************
88 00000000 EXPORT __Vectors
89 00000000 __Vectors
90 00000000 00000400 DCD StackMem + Stack ; Top of Stack
91 00000004 00000000 DCD Reset_Handler ; Reset Handler
92 00000008 00000000 DCD NMI_Handler ; NMI Handler
93 0000000C 00000000 DCD HardFault_Handler ; Hard Fault
Handler
94 00000010 00000000 DCD MemManage_Handler
; MPU Fault Handler
95 00000014 00000000 DCD BusFault_Handler
; Bus Fault Handler
96 00000018 00000000 DCD UsageFault_Handler ; Usage Faul
t Handler
97 0000001C 00000000 DCD 0 ; Reserved
98 00000020 00000000 DCD 0 ; Reserved
99 00000024 00000000 DCD 0 ; Reserved
100 00000028 00000000 DCD 0 ; Reserved
101 0000002C 00000000 DCD SVC_Handler ; SVCall Handler
102 00000030 00000000 DCD DebugMon_Handler ; Debug Monito
r Handler
103 00000034 00000000 DCD 0 ; Reserved
104 00000038 00000000 DCD PendSV_Handler ; PendSV Handler
105 0000003C 00000000 DCD SysTick_Handler
; SysTick Handler
106 00000040 00000000 DCD GPIOPortA_Handler ; GPIO Port A
107 00000044 00000000 DCD GPIOPortB_Handler ; GPIO Port B
108 00000048 00000000 DCD GPIOPortC_Handler ; GPIO Port C
109 0000004C 00000000 DCD GPIOPortD_Handler ; GPIO Port D
110 00000050 00000000 DCD GPIOPortE_Handler ; GPIO Port E
111 00000054 00000000 DCD UART0_Handler ; UART0 Rx and Tx
112 00000058 00000000 DCD UART1_Handler ; UART1 Rx and Tx
113 0000005C 00000000 DCD SSI0_Handler ; SSI0 Rx and Tx
114 00000060 00000000 DCD I2C0_Handler ; I2C0 Master and
Slave
115 00000064 00000000 DCD PWM0Fault_Handler ; PWM 0 Fault
116 00000068 00000000 DCD PWM0Generator0_Handler
; PWM 0 Generator 0
117 0000006C 00000000 DCD PWM0Generator1_Handler
ARM Macro Assembler Page 4
; PWM 0 Generator 1
118 00000070 00000000 DCD PWM0Generator2_Handler
; PWM 0 Generator 2
119 00000074 00000000 DCD Quadrature0_Handler ; Quadratur
e Encoder 0
120 00000078 00000000 DCD ADC0Seq0_Handler
; ADC0 Sequence 0
121 0000007C 00000000 DCD ADC0Seq1_Handler
; ADC0 Sequence 1
122 00000080 00000000 DCD ADC0Seq2_Handler
; ADC0 Sequence 2
123 00000084 00000000 DCD ADC0Seq3_Handler
; ADC0 Sequence 3
124 00000088 00000000 DCD WDT_Handler ; Watchdog
125 0000008C 00000000 DCD Timer0A_Handler ; Timer 0 subti
mer A
126 00000090 00000000 DCD Timer0B_Handler ; Timer 0 subti
mer B
127 00000094 00000000 DCD Timer1A_Handler ; Timer 1 subti
mer A
128 00000098 00000000 DCD Timer1B_Handler ; Timer 1 subti
mer B
129 0000009C 00000000 DCD Timer2A_Handler ; Timer 2 subti
mer A
130 000000A0 00000000 DCD Timer2B_Handler ; Timer 2 subti
mer B
131 000000A4 00000000 DCD Comp0_Handler ; Analog Comp 0
132 000000A8 00000000 DCD Comp1_Handler ; Analog Comp 1
133 000000AC 00000000 DCD Comp2_Handler ; Analog Comp 2
134 000000B0 00000000 DCD SysCtl_Handler ; System Control
135 000000B4 00000000 DCD FlashCtl_Handler
; Flash Control
136 000000B8 00000000 DCD GPIOPortF_Handler ; GPIO Port F
137 000000BC 00000000 DCD GPIOPortG_Handler ; GPIO Port G
138 000000C0 00000000 DCD GPIOPortH_Handler ; GPIO Port H
139 000000C4 00000000 DCD UART2_Handler ; UART2 Rx and Tx
140 000000C8 00000000 DCD SSI1_Handler ; SSI1 Rx and Tx
141 000000CC 00000000 DCD Timer3A_Handler ; Timer 3 subti
mer A
142 000000D0 00000000 DCD Timer3B_Handler ; Timer 3 subti
mer B
143 000000D4 00000000 DCD I2C1_Handler ; I2C1 Master and
Slave
144 000000D8 00000000 DCD Quadrature1_Handler ; Quadratur
e Encoder 1
145 000000DC 00000000 DCD CAN0_Handler ; CAN0
146 000000E0 00000000 DCD CAN1_Handler ; CAN1
147 000000E4 00000000 DCD CAN2_Handler ; CAN2
148 000000E8 00000000 DCD Ethernet_Handler ; Ethernet
149 000000EC 00000000 DCD Hibernate_Handler ; Hibernate
150 000000F0 00000000 DCD USB0_Handler ; USB0
151 000000F4 00000000 DCD PWM0Generator3_Handler
ARM Macro Assembler Page 5
; PWM 0 Generator 3
152 000000F8 00000000 DCD uDMA_Handler ; uDMA Software Tr
ansfer
153 000000FC 00000000 DCD uDMA_Error ; uDMA Error
154 00000100 00000000 DCD ADC1Seq0_Handler
; ADC1 Sequence 0
155 00000104 00000000 DCD ADC1Seq1_Handler
; ADC1 Sequence 1
156 00000108 00000000 DCD ADC1Seq2_Handler
; ADC1 Sequence 2
157 0000010C 00000000 DCD ADC1Seq3_Handler
; ADC1 Sequence 3
158 00000110 00000000 DCD I2S0_Handler ; I2S0
159 00000114 00000000 DCD ExtBus_Handler ; External Bus I
nterface 0
160 00000118 00000000 DCD GPIOPortJ_Handler ; GPIO Port J
161 0000011C 00000000 DCD GPIOPortK_Handler ; GPIO Port K
162 00000120 00000000 DCD GPIOPortL_Handler ; GPIO Port L
163 00000124 00000000 DCD SSI2_Handler ; SSI2 Rx and Tx
164 00000128 00000000 DCD SSI3_Handler ; SSI3 Rx and Tx
165 0000012C 00000000 DCD UART3_Handler ; UART3 Rx and Tx
166 00000130 00000000 DCD UART4_Handler ; UART4 Rx and Tx
167 00000134 00000000 DCD UART5_Handler ; UART5 Rx and Tx
168 00000138 00000000 DCD UART6_Handler ; UART6 Rx and Tx
169 0000013C 00000000 DCD UART7_Handler ; UART7 Rx and Tx
170 00000140 00000000 DCD 0 ; Reserved
171 00000144 00000000 DCD 0 ; Reserved
172 00000148 00000000 DCD 0 ; Reserved
173 0000014C 00000000 DCD 0 ; Reserved
174 00000150 00000000 DCD I2C2_Handler ; I2C2 Master and
Slave
175 00000154 00000000 DCD I2C3_Handler ; I2C3 Master and
Slave
176 00000158 00000000 DCD Timer4A_Handler ; Timer 4 subti
mer A
177 0000015C 00000000 DCD Timer4B_Handler ; Timer 4 subti
mer B
178 00000160 00000000 DCD 0 ; Reserved
179 00000164 00000000 DCD 0 ; Reserved
180 00000168 00000000 DCD 0 ; Reserved
181 0000016C 00000000 DCD 0 ; Reserved
182 00000170 00000000 DCD 0 ; Reserved
183 00000174 00000000 DCD 0 ; Reserved
184 00000178 00000000 DCD 0 ; Reserved
185 0000017C 00000000 DCD 0 ; Reserved
186 00000180 00000000 DCD 0 ; Reserved
187 00000184 00000000 DCD 0 ; Reserved
188 00000188 00000000 DCD 0 ; Reserved
189 0000018C 00000000 DCD 0 ; Reserved
190 00000190 00000000 DCD 0 ; Reserved
ARM Macro Assembler Page 6
191 00000194 00000000 DCD 0 ; Reserved
192 00000198 00000000 DCD 0 ; Reserved
193 0000019C 00000000 DCD 0 ; Reserved
194 000001A0 00000000 DCD 0 ; Reserved
195 000001A4 00000000 DCD 0 ; Reserved
196 000001A8 00000000 DCD 0 ; Reserved
197 000001AC 00000000 DCD 0 ; Reserved
198 000001B0 00000000 DCD Timer5A_Handler ; Timer 5 subti
mer A
199 000001B4 00000000 DCD Timer5B_Handler ; Timer 5 subti
mer B
200 000001B8 00000000 DCD WideTimer0A_Handler ; Wide Time
r 0 subtimer A
201 000001BC 00000000 DCD WideTimer0B_Handler ; Wide Time
r 0 subtimer B
202 000001C0 00000000 DCD WideTimer1A_Handler ; Wide Time
r 1 subtimer A
203 000001C4 00000000 DCD WideTimer1B_Handler ; Wide Time
r 1 subtimer B
204 000001C8 00000000 DCD WideTimer2A_Handler ; Wide Time
r 2 subtimer A
205 000001CC 00000000 DCD WideTimer2B_Handler ; Wide Time
r 2 subtimer B
206 000001D0 00000000 DCD WideTimer3A_Handler ; Wide Time
r 3 subtimer A
207 000001D4 00000000 DCD WideTimer3B_Handler ; Wide Time
r 3 subtimer B
208 000001D8 00000000 DCD WideTimer4A_Handler ; Wide Time
r 4 subtimer A
209 000001DC 00000000 DCD WideTimer4B_Handler ; Wide Time
r 4 subtimer B
210 000001E0 00000000 DCD WideTimer5A_Handler ; Wide Time
r 5 subtimer A
211 000001E4 00000000 DCD WideTimer5B_Handler ; Wide Time
r 5 subtimer B
212 000001E8 00000000 DCD FPU_Handler ; FPU
213 000001EC 00000000 DCD PECI0_Handler ; PECI 0
214 000001F0 00000000 DCD LPC0_Handler ; LPC 0
215 000001F4 00000000 DCD I2C4_Handler ; I2C4 Master and
Slave
216 000001F8 00000000 DCD I2C5_Handler ; I2C5 Master and
Slave
217 000001FC 00000000 DCD GPIOPortM_Handler ; GPIO Port M
218 00000200 00000000 DCD GPIOPortN_Handler ; GPIO Port N
219 00000204 00000000 DCD Quadrature2_Handler ; Quadratur
e Encoder 2
220 00000208 00000000 DCD Fan0_Handler ; Fan 0
221 0000020C 00000000 DCD 0 ; Reserved
222 00000210 00000000 DCD GPIOPortP_Handler ; GPIO Port P
(Summary or P0)
223 00000214 00000000 DCD GPIOPortP1_Handler
; GPIO Port P1
224 00000218 00000000 DCD GPIOPortP2_Handler
; GPIO Port P2
225 0000021C 00000000 DCD GPIOPortP3_Handler
; GPIO Port P3
226 00000220 00000000 DCD GPIOPortP4_Handler
ARM Macro Assembler Page 7
; GPIO Port P4
227 00000224 00000000 DCD GPIOPortP5_Handler
; GPIO Port P5
228 00000228 00000000 DCD GPIOPortP6_Handler
; GPIO Port P6
229 0000022C 00000000 DCD GPIOPortP7_Handler
; GPIO Port P7
230 00000230 00000000 DCD GPIOPortQ_Handler ; GPIO Port Q
(Summary or Q0)
231 00000234 00000000 DCD GPIOPortQ1_Handler
; GPIO Port Q1
232 00000238 00000000 DCD GPIOPortQ2_Handler
; GPIO Port Q2
233 0000023C 00000000 DCD GPIOPortQ3_Handler
; GPIO Port Q3
234 00000240 00000000 DCD GPIOPortQ4_Handler
; GPIO Port Q4
235 00000244 00000000 DCD GPIOPortQ5_Handler
; GPIO Port Q5
236 00000248 00000000 DCD GPIOPortQ6_Handler
; GPIO Port Q6
237 0000024C 00000000 DCD GPIOPortQ7_Handler
; GPIO Port Q7
238 00000250 00000000 DCD GPIOPortR_Handler ; GPIO Port R
239 00000254 00000000 DCD GPIOPortS_Handler ; GPIO Port S
240 00000258 00000000 DCD PWM1Generator0_Handler
; PWM 1 Generator 0
241 0000025C 00000000 DCD PWM1Generator1_Handler
; PWM 1 Generator 1
242 00000260 00000000 DCD PWM1Generator2_Handler
; PWM 1 Generator 2
243 00000264 00000000 DCD PWM1Generator3_Handler
; PWM 1 Generator 3
244 00000268 00000000 DCD PWM1Fault_Handler ; PWM 1 Fault
245 0000026C
246 0000026C ;*******************************************************
***********************
247 0000026C ;
248 0000026C ; This is the code that gets called when the processor f
irst starts execution
249 0000026C ; following a reset event.
250 0000026C ;
251 0000026C ;*******************************************************
***********************
252 0000026C EXPORT Reset_Handler
253 0000026C Reset_Handler
254 0000026C ;
255 0000026C ; DO NOT enable the floating-point unit. This must be d
one here to handle the
256 0000026C ; case where main() uses floating-point and the function
prologue saves
257 0000026C ; floating-point registers (which will fault if floating
ARM Macro Assembler Page 8
-point is not
258 0000026C ; enabled). Any configuration of the floating-point uni
t using
259 0000026C ; DriverLib APIs must be done here prior to the floating
-point unit
260 0000026C ; being enabled.
261 0000026C ;
262 0000026C ; Note that this does not use DriverLib since it might n
ot be included
263 0000026C ; in this project.
264 0000026C ;
265 0000026C ; MOVW R0, #0xED88
266 0000026C ; MOVT R0, #0xE000
267 0000026C ; LDR R1, [R0]
268 0000026C ; ORR R1, #0x00F00000
269 0000026C ; STR R1, [R0]
270 0000026C
271 0000026C ;
272 0000026C ; Call the C library enty point that handles startup. T
his will copy
273 0000026C ; the .data section initializers from flash to SRAM and
zero fill the
274 0000026C ; .bss section.
275 0000026C ;
276 0000026C IMPORT __main
277 0000026C F7FF BFFE B __main
278 00000270
279 00000270 ;*******************************************************
***********************
280 00000270 ;
281 00000270 ; This is the code that gets called when the processor r
eceives a NMI. This
282 00000270 ; simply enters an infinite loop, preserving the system
state for examination
283 00000270 ; by a debugger.
284 00000270 ;
285 00000270 ;*******************************************************
***********************
286 00000270 NMI_Handler
PROC
287 00000270 EXPORT NMI_Handler [WEAK
]
288 00000270 E7FE B .
289 00000272 ENDP
290 00000272
291 00000272 ;*******************************************************
***********************
292 00000272 ;
293 00000272 ; This is the code that gets called when the processor r
eceives a fault
294 00000272 ; interrupt. This simply enters an infinite loop, prese
rving the system state
295 00000272 ; for examination by a debugger.
296 00000272 ;
297 00000272 ;*******************************************************
***********************
299 00000272 HardFault_Handler
PROC
300 00000272 EXPORT HardFault_Handler [WEAK
ARM Macro Assembler Page 9
]
301 00000272 E7FE B .
302 00000274 ENDP
303 00000274
305 00000274 MemManage_Handler
PROC
306 00000274 EXPORT MemManage_Handler [WEAK
]
307 00000274 E7FE B .
308 00000276 ENDP
310 00000276 BusFault_Handler
PROC
311 00000276 EXPORT BusFault_Handler [WEAK
]
312 00000276 E7FE B .
313 00000278 ENDP
315 00000278 UsageFault_Handler
PROC
316 00000278 EXPORT UsageFault_Handler [WEAK
]
317 00000278 E7FE B .
318 0000027A ENDP
319 0000027A SVC_Handler
PROC
320 0000027A EXPORT SVC_Handler [WEAK
]
321 0000027A E7FE B .
322 0000027C ENDP
324 0000027C DebugMon_Handler
PROC
325 0000027C EXPORT DebugMon_Handler [WEAK
]
326 0000027C E7FE B .
327 0000027E ENDP
328 0000027E PendSV_Handler
PROC
329 0000027E EXPORT PendSV_Handler [WEAK
]
330 0000027E E7FE B .
331 00000280 ENDP
332 00000280 SysTick_Handler
PROC
333 00000280 EXPORT SysTick_Handler [WEAK
]
334 00000280 E7FE B .
335 00000282 ENDP
337 00000282 IntDefaultHandler
PROC
338 00000282
339 00000282 EXPORT GPIOPortA_Handler [WEAK
]
340 00000282 EXPORT GPIOPortB_Handler [WEAK
]
341 00000282 EXPORT GPIOPortC_Handler [WEAK
]
342 00000282 EXPORT GPIOPortD_Handler [WEAK
]
343 00000282 EXPORT GPIOPortE_Handler [WEAK
]
ARM Macro Assembler Page 10
344 00000282 EXPORT UART0_Handler [WEAK
]
345 00000282 EXPORT UART1_Handler [WEAK
]
346 00000282 EXPORT SSI0_Handler [WEAK
]
347 00000282 EXPORT I2C0_Handler [WEAK
]
348 00000282 EXPORT PWM0Fault_Handler [WEAK
]
349 00000282 EXPORT PWM0Generator0_Handler [WEAK
]
350 00000282 EXPORT PWM0Generator1_Handler [WEAK
]
351 00000282 EXPORT PWM0Generator2_Handler [WEAK
]
352 00000282 EXPORT Quadrature0_Handler [WEAK
]
353 00000282 EXPORT ADC0Seq0_Handler [WEAK
]
354 00000282 EXPORT ADC0Seq1_Handler [WEAK
]
355 00000282 EXPORT ADC0Seq2_Handler [WEAK
]
356 00000282 EXPORT ADC0Seq3_Handler [WEAK
]
357 00000282 EXPORT WDT_Handler [WEAK
]
358 00000282 EXPORT Timer0A_Handler [WEAK
]
359 00000282 EXPORT Timer0B_Handler [WEAK
]
360 00000282 EXPORT Timer1A_Handler [WEAK
]
361 00000282 EXPORT Timer1B_Handler [WEAK
]
362 00000282 EXPORT Timer2A_Handler [WEAK
]
363 00000282 EXPORT Timer2B_Handler [WEAK
]
364 00000282 EXPORT Comp0_Handler [WEAK
]
365 00000282 EXPORT Comp1_Handler [WEAK
]
366 00000282 EXPORT Comp2_Handler [WEAK
]
367 00000282 EXPORT SysCtl_Handler [WEAK
]
368 00000282 EXPORT FlashCtl_Handler [WEAK
]
369 00000282 EXPORT GPIOPortF_Handler [WEAK
]
370 00000282 EXPORT GPIOPortG_Handler [WEAK
]
371 00000282 EXPORT GPIOPortH_Handler [WEAK
]
372 00000282 EXPORT UART2_Handler [WEAK
]
373 00000282 EXPORT SSI1_Handler [WEAK
ARM Macro Assembler Page 11
]
374 00000282 EXPORT Timer3A_Handler [WEAK
]
375 00000282 EXPORT Timer3B_Handler [WEAK
]
376 00000282 EXPORT I2C1_Handler [WEAK
]
377 00000282 EXPORT Quadrature1_Handler [WEAK
]
378 00000282 EXPORT CAN0_Handler [WEAK
]
379 00000282 EXPORT CAN1_Handler [WEAK
]
380 00000282 EXPORT CAN2_Handler [WEAK
]
381 00000282 EXPORT Ethernet_Handler [WEAK
]
382 00000282 EXPORT Hibernate_Handler [WEAK
]
383 00000282 EXPORT USB0_Handler [WEAK
]
384 00000282 EXPORT PWM0Generator3_Handler [WEAK
]
385 00000282 EXPORT uDMA_Handler [WEAK
]
386 00000282 EXPORT uDMA_Error [WEAK
]
387 00000282 EXPORT ADC1Seq0_Handler [WEAK
]
388 00000282 EXPORT ADC1Seq1_Handler [WEAK
]
389 00000282 EXPORT ADC1Seq2_Handler [WEAK
]
390 00000282 EXPORT ADC1Seq3_Handler [WEAK
]
391 00000282 EXPORT I2S0_Handler [WEAK
]
392 00000282 EXPORT ExtBus_Handler [WEAK
]
393 00000282 EXPORT GPIOPortJ_Handler [WEAK
]
394 00000282 EXPORT GPIOPortK_Handler [WEAK
]
395 00000282 EXPORT GPIOPortL_Handler [WEAK
]
396 00000282 EXPORT SSI2_Handler [WEAK
]
397 00000282 EXPORT SSI3_Handler [WEAK
]
398 00000282 EXPORT UART3_Handler [WEAK
]
399 00000282 EXPORT UART4_Handler [WEAK
]
400 00000282 EXPORT UART5_Handler [WEAK
]
401 00000282 EXPORT UART6_Handler [WEAK
]
402 00000282 EXPORT UART7_Handler [WEAK
]
ARM Macro Assembler Page 12
403 00000282 EXPORT I2C2_Handler [WEAK
]
404 00000282 EXPORT I2C3_Handler [WEAK
]
405 00000282 EXPORT Timer4A_Handler [WEAK
]
406 00000282 EXPORT Timer4B_Handler [WEAK
]
407 00000282 EXPORT Timer5A_Handler [WEAK
]
408 00000282 EXPORT Timer5B_Handler [WEAK
]
409 00000282 EXPORT WideTimer0A_Handler [WEAK
]
410 00000282 EXPORT WideTimer0B_Handler [WEAK
]
411 00000282 EXPORT WideTimer1A_Handler [WEAK
]
412 00000282 EXPORT WideTimer1B_Handler [WEAK
]
413 00000282 EXPORT WideTimer2A_Handler [WEAK
]
414 00000282 EXPORT WideTimer2B_Handler [WEAK
]
415 00000282 EXPORT WideTimer3A_Handler [WEAK
]
416 00000282 EXPORT WideTimer3B_Handler [WEAK
]
417 00000282 EXPORT WideTimer4A_Handler [WEAK
]
418 00000282 EXPORT WideTimer4B_Handler [WEAK
]
419 00000282 EXPORT WideTimer5A_Handler [WEAK
]
420 00000282 EXPORT WideTimer5B_Handler [WEAK
]
421 00000282 EXPORT FPU_Handler [WEAK
]
422 00000282 EXPORT PECI0_Handler [WEAK
]
423 00000282 EXPORT LPC0_Handler [WEAK
]
424 00000282 EXPORT I2C4_Handler [WEAK
]
425 00000282 EXPORT I2C5_Handler [WEAK
]
426 00000282 EXPORT GPIOPortM_Handler [WEAK
]
427 00000282 EXPORT GPIOPortN_Handler [WEAK
]
428 00000282 EXPORT Quadrature2_Handler [WEAK
]
429 00000282 EXPORT Fan0_Handler [WEAK
]
430 00000282 EXPORT GPIOPortP_Handler [WEAK
]
431 00000282 EXPORT GPIOPortP1_Handler [WEAK
]
432 00000282 EXPORT GPIOPortP2_Handler [WEAK
ARM Macro Assembler Page 13
]
433 00000282 EXPORT GPIOPortP3_Handler [WEAK
]
434 00000282 EXPORT GPIOPortP4_Handler [WEAK
]
435 00000282 EXPORT GPIOPortP5_Handler [WEAK
]
436 00000282 EXPORT GPIOPortP6_Handler [WEAK
]
437 00000282 EXPORT GPIOPortP7_Handler [WEAK
]
438 00000282 EXPORT GPIOPortQ_Handler [WEAK
]
439 00000282 EXPORT GPIOPortQ1_Handler [WEAK
]
440 00000282 EXPORT GPIOPortQ2_Handler [WEAK
]
441 00000282 EXPORT GPIOPortQ3_Handler [WEAK
]
442 00000282 EXPORT GPIOPortQ4_Handler [WEAK
]
443 00000282 EXPORT GPIOPortQ5_Handler [WEAK
]
444 00000282 EXPORT GPIOPortQ6_Handler [WEAK
]
445 00000282 EXPORT GPIOPortQ7_Handler [WEAK
]
446 00000282 EXPORT GPIOPortR_Handler [WEAK
]
447 00000282 EXPORT GPIOPortS_Handler [WEAK
]
448 00000282 EXPORT PWM1Generator0_Handler [WEAK
]
449 00000282 EXPORT PWM1Generator1_Handler [WEAK
]
450 00000282 EXPORT PWM1Generator2_Handler [WEAK
]
451 00000282 EXPORT PWM1Generator3_Handler [WEAK
]
452 00000282 EXPORT PWM1Fault_Handler [WEAK
]
453 00000282
454 00000282 GPIOPortA_Handler
455 00000282 GPIOPortB_Handler
456 00000282 GPIOPortC_Handler
457 00000282 GPIOPortD_Handler
458 00000282 GPIOPortE_Handler
459 00000282 UART0_Handler
460 00000282 UART1_Handler
461 00000282 SSI0_Handler
462 00000282 I2C0_Handler
463 00000282 PWM0Fault_Handler
464 00000282 PWM0Generator0_Handler
465 00000282 PWM0Generator1_Handler
466 00000282 PWM0Generator2_Handler
467 00000282 Quadrature0_Handler
468 00000282 ADC0Seq0_Handler
469 00000282 ADC0Seq1_Handler
470 00000282 ADC0Seq2_Handler
ARM Macro Assembler Page 14
471 00000282 ADC0Seq3_Handler
472 00000282 WDT_Handler
473 00000282 Timer0A_Handler
474 00000282 Timer0B_Handler
475 00000282 Timer1A_Handler
476 00000282 Timer1B_Handler
477 00000282 Timer2A_Handler
478 00000282 Timer2B_Handler
479 00000282 Comp0_Handler
480 00000282 Comp1_Handler
481 00000282 Comp2_Handler
482 00000282 SysCtl_Handler
483 00000282 FlashCtl_Handler
484 00000282 GPIOPortF_Handler
485 00000282 GPIOPortG_Handler
486 00000282 GPIOPortH_Handler
487 00000282 UART2_Handler
488 00000282 SSI1_Handler
489 00000282 Timer3A_Handler
490 00000282 Timer3B_Handler
491 00000282 I2C1_Handler
492 00000282 Quadrature1_Handler
493 00000282 CAN0_Handler
494 00000282 CAN1_Handler
495 00000282 CAN2_Handler
496 00000282 Ethernet_Handler
497 00000282 Hibernate_Handler
498 00000282 USB0_Handler
499 00000282 PWM0Generator3_Handler
500 00000282 uDMA_Handler
501 00000282 uDMA_Error
502 00000282 ADC1Seq0_Handler
503 00000282 ADC1Seq1_Handler
504 00000282 ADC1Seq2_Handler
505 00000282 ADC1Seq3_Handler
506 00000282 I2S0_Handler
507 00000282 ExtBus_Handler
508 00000282 GPIOPortJ_Handler
509 00000282 GPIOPortK_Handler
510 00000282 GPIOPortL_Handler
511 00000282 SSI2_Handler
512 00000282 SSI3_Handler
513 00000282 UART3_Handler
514 00000282 UART4_Handler
515 00000282 UART5_Handler
516 00000282 UART6_Handler
517 00000282 UART7_Handler
518 00000282 I2C2_Handler
519 00000282 I2C3_Handler
520 00000282 Timer4A_Handler
521 00000282 Timer4B_Handler
522 00000282 Timer5A_Handler
523 00000282 Timer5B_Handler
524 00000282 WideTimer0A_Handler
525 00000282 WideTimer0B_Handler
526 00000282 WideTimer1A_Handler
527 00000282 WideTimer1B_Handler
528 00000282 WideTimer2A_Handler
529 00000282 WideTimer2B_Handler
ARM Macro Assembler Page 15
530 00000282 WideTimer3A_Handler
531 00000282 WideTimer3B_Handler
532 00000282 WideTimer4A_Handler
533 00000282 WideTimer4B_Handler
534 00000282 WideTimer5A_Handler
535 00000282 WideTimer5B_Handler
536 00000282 FPU_Handler
537 00000282 PECI0_Handler
538 00000282 LPC0_Handler
539 00000282 I2C4_Handler
540 00000282 I2C5_Handler
541 00000282 GPIOPortM_Handler
542 00000282 GPIOPortN_Handler
543 00000282 Quadrature2_Handler
544 00000282 Fan0_Handler
545 00000282 GPIOPortP_Handler
546 00000282 GPIOPortP1_Handler
547 00000282 GPIOPortP2_Handler
548 00000282 GPIOPortP3_Handler
549 00000282 GPIOPortP4_Handler
550 00000282 GPIOPortP5_Handler
551 00000282 GPIOPortP6_Handler
552 00000282 GPIOPortP7_Handler
553 00000282 GPIOPortQ_Handler
554 00000282 GPIOPortQ1_Handler
555 00000282 GPIOPortQ2_Handler
556 00000282 GPIOPortQ3_Handler
557 00000282 GPIOPortQ4_Handler
558 00000282 GPIOPortQ5_Handler
559 00000282 GPIOPortQ6_Handler
560 00000282 GPIOPortQ7_Handler
561 00000282 GPIOPortR_Handler
562 00000282 GPIOPortS_Handler
563 00000282 PWM1Generator0_Handler
564 00000282 PWM1Generator1_Handler
565 00000282 PWM1Generator2_Handler
566 00000282 PWM1Generator3_Handler
567 00000282 PWM1Fault_Handler
568 00000282
569 00000282 E7FE B .
570 00000284
571 00000284 ENDP
572 00000284
573 00000284 ;*******************************************************
***********************
574 00000284 ;
575 00000284 ; Make sure the end of this section is aligned.
576 00000284 ;
577 00000284 ;*******************************************************
***********************
578 00000284 ALIGN
579 00000284
580 00000284 ;*******************************************************
***********************
581 00000284 ;
582 00000284 ; Some code in the normal code section for initializing
the heap and stack.
583 00000284 ;
584 00000284 ;*******************************************************
ARM Macro Assembler Page 16
***********************
585 00000284 AREA |.text|, CODE, READONLY
586 00000000
587 00000000 ;*******************************************************
***********************
588 00000000 ;
589 00000000 ; Useful functions.
590 00000000 ;
591 00000000 ;*******************************************************
***********************
592 00000000 EXPORT DisableInterrupts
593 00000000 EXPORT EnableInterrupts
594 00000000 EXPORT StartCritical
595 00000000 EXPORT EndCritical
596 00000000 EXPORT WaitForInterrupt
597 00000000
598 00000000 ;*********** DisableInterrupts ***************
599 00000000 ; disable interrupts
600 00000000 ; inputs: none