Solved Task 2

This commit is contained in:
Schrom01 2022-10-14 11:32:53 +02:00
parent e1d9b30ed0
commit 8b5cd02f7e
11 changed files with 441 additions and 251 deletions

View File

@ -27,9 +27,11 @@ ADDR_LED_15_8 EQU 0x60000101
ADDR_LED_23_16 EQU 0x60000102 ADDR_LED_23_16 EQU 0x60000102
ADDR_LED_31_24 EQU 0x60000103 ADDR_LED_31_24 EQU 0x60000103
ADDR_BUTTONS EQU 0x60000210 ADDR_BUTTONS EQU 0x60000210
ADDR_7_SEGMENT EQU 0x60000114
BITMASK_KEY_T0 EQU 0x01 BITMASK_KEY_T0 EQU 0x01
BITMASK_LOWER_NIBBLE EQU 0x0F BITMASK_LOWER_NIBBLE EQU 0x0F
SHIFT_BITS_MSB EQU 0x08
; ------------------------------------------------------------------ ; ------------------------------------------------------------------
; -- Variables ; -- Variables
@ -37,7 +39,7 @@ BITMASK_LOWER_NIBBLE EQU 0x0F
AREA MyAsmVar, DATA, READWRITE AREA MyAsmVar, DATA, READWRITE
; STUDENTS: To be programmed ; STUDENTS: To be programmed
store_table SPACE 16 ; reserve 16 byte (4 words) store_table SPACE 32 ; reserve 16 byte (4 words)
@ -76,8 +78,15 @@ readInput
STRB R1, [R2] STRB R1, [R2]
; Write Values to Store Table ; Write Values to Store Table
MOVS R3, R1
LDR R2, =SHIFT_BITS_MSB
LSLS R3, R3, R2
ADDS R0, R0, R3 ; or wäre besser
LDR R2, =store_table LDR R2, =store_table
STRB R0, [R2, R1] ADDS R1, R1, R1
STRH R0, [R2, R1]
@ -94,11 +103,16 @@ readInput
; Read Values from Store Table ; Read Values from Store Table
LDR R1, =store_table LDR R1, =store_table
LDRB R0, [R1, R0] ADDS R0, R0, R0
LDRH R0, [R1, R0]
; Write Values to LED 7-0 from R0 ; Write Values to LED 7-0 from R0
LDR R1, =ADDR_LED_23_16 LDR R1, =ADDR_LED_23_16
STRB R0, [R1] STRB R0, [R1]
;Write Values to 7-Segment Display
LDR R1, =ADDR_7_SEGMENT
STRH R0, [R1]
; END: To be programmed ; END: To be programmed

136
table_asm/app/tableTask1.s Normal file
View File

@ -0,0 +1,136 @@
; ------------------------------------------------------------------
; -- _____ ______ _____ -
; -- |_ _| | ____|/ ____| -
; -- | | _ __ | |__ | (___ Institute of Embedded Systems -
; -- | | | '_ \| __| \___ \ Zurich University of -
; -- _| |_| | | | |____ ____) | Applied Sciences -
; -- |_____|_| |_|______|_____/ 8401 Winterthur, Switzerland -
; ------------------------------------------------------------------
; --
; -- table.s
; --
; -- CT1 P04 Ein- und Ausgabe von Tabellenwerten
; --
; -- $Id: table.s 800 2014-10-06 13:19:25Z ruan $
; ------------------------------------------------------------------
;Directives
PRESERVE8
THUMB
; ------------------------------------------------------------------
; -- Symbolic Literals
; ------------------------------------------------------------------
ADDR_DIP_SWITCH_7_0 EQU 0x60000200
ADDR_DIP_SWITCH_15_8 EQU 0x60000201
ADDR_DIP_SWITCH_31_24 EQU 0x60000203
ADDR_LED_7_0 EQU 0x60000100
ADDR_LED_15_8 EQU 0x60000101
ADDR_LED_23_16 EQU 0x60000102
ADDR_LED_31_24 EQU 0x60000103
ADDR_BUTTONS EQU 0x60000210
BITMASK_KEY_T0 EQU 0x01
BITMASK_LOWER_NIBBLE EQU 0x0F
; ------------------------------------------------------------------
; -- Variables
; ------------------------------------------------------------------
AREA MyAsmVar, DATA, READWRITE
; STUDENTS: To be programmed
store_table SPACE 16 ; reserve 16 byte (4 words)
; END: To be programmed
ALIGN
; ------------------------------------------------------------------
; -- myCode
; ------------------------------------------------------------------
AREA myCode, CODE, READONLY
main PROC
EXPORT main
readInput
BL waitForKey ; wait for key to be pressed and released
; STUDENTS: To be programmed
; Read Valules from Dip Switches 7-0 to R0
LDR R0, =ADDR_DIP_SWITCH_7_0
LDRB R0, [R0]
; Write Values to LED 7-0 from R0
LDR R1, =ADDR_LED_7_0
STRB R0, [R1]
; Read Index from Dip Switches 15-8 to R1
LDR R1, =ADDR_DIP_SWITCH_15_8
LDRB R1, [R1]
LDR R2, =BITMASK_LOWER_NIBBLE
ANDS R1, R1, R2
; Write Index to LED 15-8 from R1
LDR R2, =ADDR_LED_15_8
STRB R1, [R2]
; Write Values to Store Table
LDR R2, =store_table
STRB R0, [R2, R1]
; Read Index from Dip Switches 15-8 to R1
; Todo: Maskierung
LDR R0, =ADDR_DIP_SWITCH_31_24
LDRB R0, [R0]
LDR R1, =BITMASK_LOWER_NIBBLE
ANDS R0, R0, R1
; Write Index to LED 15-8 from R1
LDR R1, =ADDR_LED_31_24
STRB R0, [R1]
; Read Values from Store Table
LDR R1, =store_table
LDRB R0, [R1, R0]
; Write Values to LED 7-0 from R0
LDR R1, =ADDR_LED_23_16
STRB R0, [R1]
; END: To be programmed
B readInput
ALIGN
; ------------------------------------------------------------------
; Subroutines
; ------------------------------------------------------------------
; wait for key to be pressed and released
waitForKey
PUSH {R0, R1, R2}
LDR R1, =ADDR_BUTTONS ; laod base address of keys
LDR R2, =BITMASK_KEY_T0 ; load key mask T0
waitForPress
LDRB R0, [R1] ; load key values
TST R0, R2 ; check, if key T0 is pressed
BEQ waitForPress
waitForRelease
LDRB R0, [R1] ; load key values
TST R0, R2 ; check, if key T0 is released
BNE waitForRelease
POP {R0, R1, R2}
BX LR
ALIGN
; ------------------------------------------------------------------
; End of code
; ------------------------------------------------------------------
ENDP
END

Binary file not shown.

View File

@ -31,12 +31,12 @@ assembling table.s...
assembling datainit_ctboard.s... assembling datainit_ctboard.s...
assembling startup_ctboard.s... assembling startup_ctboard.s...
compiling system_ctboard.c... compiling system_ctboard.c...
compiling hal_pwr.c...
compiling hal_fmc.c... compiling hal_fmc.c...
compiling hal_gpio.c... compiling hal_pwr.c...
compiling hal_rcc.c... compiling hal_rcc.c...
compiling hal_gpio.c...
linking... linking...
Program Size: Code=3520 RO-data=428 RW-data=16 ZI-data=8192 Program Size: Code=3544 RO-data=428 RW-data=32 ZI-data=8192
".\build\table.axf" - 0 Error(s), 0 Warning(s). ".\build\table.axf" - 0 Error(s), 0 Warning(s).
<h2>Software Packages used:</h2> <h2>Software Packages used:</h2>

View File

@ -3,7 +3,7 @@
<title>Static Call Graph - [.\build\table.axf]</title></head> <title>Static Call Graph - [.\build\table.axf]</title></head>
<body><HR> <body><HR>
<H1>Static Call Graph for image .\build\table.axf</H1><HR> <H1>Static Call Graph for image .\build\table.axf</H1><HR>
<BR><P>#&#060CALLGRAPH&#062# ARM Linker, 6180002: Last Updated: Fri Oct 14 09:50:22 2022 <BR><P>#&#060CALLGRAPH&#062# ARM Linker, 6180002: Last Updated: Fri Oct 14 11:29:33 2022
<BR><P> <BR><P>
<H3>Maximum Stack Usage = 112 bytes + Unknown(Cycles, Untraceable Function Pointers)</H3><H3> <H3>Maximum Stack Usage = 112 bytes + Unknown(Cycles, Untraceable Function Pointers)</H3><H3>
Call chain for Maximum Stack Depth:</H3> Call chain for Maximum Stack Depth:</H3>
@ -597,7 +597,7 @@ Global Symbols
<BR>[Called By]<UL><LI><a href="#[68]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;system_enter_run <BR>[Called By]<UL><LI><a href="#[68]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;system_enter_run
</UL> </UL>
<P><STRONG><a name="[65]"></a>main</STRONG> (Thumb, 76 bytes, Stack size 0 bytes, table.o(myCode)) <P><STRONG><a name="[65]"></a>main</STRONG> (Thumb, 92 bytes, Stack size 0 bytes, table.o(myCode))
<BR><BR>[Calls]<UL><LI><a href="#[65]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;main <BR><BR>[Calls]<UL><LI><a href="#[65]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;main
</UL> </UL>
<BR>[Called By]<UL><LI><a href="#[65]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;main <BR>[Called By]<UL><LI><a href="#[65]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;main

View File

@ -60,165 +60,190 @@ ARM Macro Assembler Page 1
29 00000000 60000210 29 00000000 60000210
ADDR_BUTTONS ADDR_BUTTONS
EQU 0x60000210 EQU 0x60000210
30 00000000 30 00000000 60000114
31 00000000 00000001 ADDR_7_SEGMENT
BITMASK_KEY_T0 EQU 0x60000114
ARM Macro Assembler Page 2 ARM Macro Assembler Page 2
31 00000000
32 00000000 00000001
BITMASK_KEY_T0
EQU 0x01 EQU 0x01
32 00000000 0000000F 33 00000000 0000000F
BITMASK_LOWER_NIBBLE BITMASK_LOWER_NIBBLE
EQU 0x0F EQU 0x0F
33 00000000 34 00000000 00000008
34 00000000 ; ------------------------------------------------------ SHIFT_BITS_MSB
------------ EQU 0x08
35 00000000 ; -- Variables 35 00000000
36 00000000 ; ------------------------------------------------------ 36 00000000 ; ------------------------------------------------------
------------ ------------
37 00000000 AREA MyAsmVar, DATA, READWRITE 37 00000000 ; -- Variables
38 00000000 ; STUDENTS: To be programmed 38 00000000 ; ------------------------------------------------------
39 00000000 ------------
40 00000000 00 00 00 39 00000000 AREA MyAsmVar, DATA, READWRITE
40 00000000 ; STUDENTS: To be programmed
41 00000000
42 00000000 00 00 00
00 00 00 00 00 00
00 00 00 00 00 00
00 00 00 00 00 00
00 00 00 00 00 00
00 store_table 00 00 00
SPACE 16 ; reserve 16 byte ( 00 00 00
00 00 00
00 00 00
00 00 00
00 00 store_table
SPACE 32 ; reserve 16 byte (
4 words) 4 words)
41 00000010 43 00000020
42 00000010 44 00000020
43 00000010 45 00000020
44 00000010 46 00000020
45 00000010 ; END: To be programmed 47 00000020 ; END: To be programmed
46 00000010 ALIGN 48 00000020 ALIGN
47 00000010 49 00000020
48 00000010 ; ------------------------------------------------------ 50 00000020 ; ------------------------------------------------------
------------ ------------
49 00000010 ; -- myCode 51 00000020 ; -- myCode
50 00000010 ; ------------------------------------------------------ 52 00000020 ; ------------------------------------------------------
------------ ------------
51 00000010 AREA myCode, CODE, READONLY 53 00000020 AREA myCode, CODE, READONLY
52 00000000 54 00000000
53 00000000 main PROC 55 00000000 main PROC
54 00000000 EXPORT main 56 00000000 EXPORT main
55 00000000 57 00000000
56 00000000 readInput 58 00000000 readInput
57 00000000 F000 F818 BL waitForKey ; wait for key to b 59 00000000 F000 F820 BL waitForKey ; wait for key to b
e pressed and relea e pressed and relea
sed sed
58 00000004 ; STUDENTS: To be programmed 60 00000004 ; STUDENTS: To be programmed
59 00000004 ; Read Valules from Dip Switches 7-0 to R0 61 00000004 ; Read Valules from Dip Switches 7-0 to R0
60 00000004 4811 LDR R0, =ADDR_DIP_SWITCH_7_0 62 00000004 4815 LDR R0, =ADDR_DIP_SWITCH_7_0
61 00000006 7800 LDRB R0, [R0] 63 00000006 7800 LDRB R0, [R0]
62 00000008 64 00000008
63 00000008 ; Write Values to LED 7-0 from R0 65 00000008 ; Write Values to LED 7-0 from R0
64 00000008 4911 LDR R1, =ADDR_LED_7_0
65 0000000A 7008 STRB R0, [R1]
66 0000000C
67 0000000C ; Read Index from Dip Switches 15-8 to R1
68 0000000C 4911 LDR R1, =ADDR_DIP_SWITCH_15_8
69 0000000E 7809 LDRB R1, [R1]
70 00000010 4A11 LDR R2, =BITMASK_LOWER_NIBBLE
71 00000012 4011 ANDS R1, R1, R2
72 00000014
73 00000014
74 00000014 ; Write Index to LED 15-8 from R1
ARM Macro Assembler Page 3 ARM Macro Assembler Page 3
75 00000014 4A11 LDR R2, =ADDR_LED_15_8 66 00000008 4915 LDR R1, =ADDR_LED_7_0
76 00000016 7011 STRB R1, [R2] 67 0000000A 7008 STRB R0, [R1]
77 00000018 68 0000000C
78 00000018 ; Write Values to Store Table 69 0000000C ; Read Index from Dip Switches 15-8 to R1
79 00000018 4A11 LDR R2, =store_table 70 0000000C 4915 LDR R1, =ADDR_DIP_SWITCH_15_8
80 0000001A 5450 STRB R0, [R2, R1] 71 0000000E 7809 LDRB R1, [R1]
81 0000001C 72 00000010 4A15 LDR R2, =BITMASK_LOWER_NIBBLE
82 0000001C 73 00000012 4011 ANDS R1, R1, R2
83 0000001C 74 00000014
84 0000001C ; Read Index from Dip Switches 15-8 to R1 75 00000014
85 0000001C ; Todo: Maskierung 76 00000014 ; Write Index to LED 15-8 from R1
86 0000001C 4811 LDR R0, =ADDR_DIP_SWITCH_31_24 77 00000014 4A15 LDR R2, =ADDR_LED_15_8
87 0000001E 7800 LDRB R0, [R0] 78 00000016 7011 STRB R1, [R2]
88 00000020 490D LDR R1, =BITMASK_LOWER_NIBBLE 79 00000018
89 00000022 4008 ANDS R0, R0, R1 80 00000018 ; Write Values to Store Table
90 00000024 81 00000018 000B MOVS R3, R1
91 00000024 ; Write Index to LED 15-8 from R1 82 0000001A 4A15 LDR R2, =SHIFT_BITS_MSB
92 00000024 4910 LDR R1, =ADDR_LED_31_24 83 0000001C 4093 LSLS R3, R3, R2
93 00000026 7008 STRB R0, [R1] 84 0000001E 18C0 ADDS R0, R0, R3
94 00000028 85 00000020 4A14 LDR R2, =store_table
95 00000028 ; Read Values from Store Table 86 00000022 1849 ADDS R1, R1, R1
96 00000028 490D LDR R1, =store_table 87 00000024 5250 STRH R0, [R2, R1]
97 0000002A 5C08 LDRB R0, [R1, R0] 88 00000026
98 0000002C 89 00000026
99 0000002C ; Write Values to LED 7-0 from R0 90 00000026
100 0000002C 490F LDR R1, =ADDR_LED_23_16 91 00000026
101 0000002E 7008 STRB R0, [R1] 92 00000026
102 00000030 93 00000026 ; Read Index from Dip Switches 15-8 to R1
103 00000030 94 00000026 ; Todo: Maskierung
104 00000030 ; END: To be programmed 95 00000026 4814 LDR R0, =ADDR_DIP_SWITCH_31_24
105 00000030 E7E6 B readInput 96 00000028 7800 LDRB R0, [R0]
106 00000032 00 00 ALIGN 97 0000002A 490F LDR R1, =BITMASK_LOWER_NIBBLE
107 00000034 98 0000002C 4008 ANDS R0, R0, R1
108 00000034 ; ------------------------------------------------------ 99 0000002E
100 0000002E ; Write Index to LED 15-8 from R1
101 0000002E 4913 LDR R1, =ADDR_LED_31_24
102 00000030 7008 STRB R0, [R1]
103 00000032
104 00000032 ; Read Values from Store Table
105 00000032 4910 LDR R1, =store_table
106 00000034 1800 ADDS R0, R0, R0
107 00000036 5A08 LDRH R0, [R1, R0]
108 00000038
109 00000038 ; Write Values to LED 7-0 from R0
110 00000038 4911 LDR R1, =ADDR_LED_23_16
111 0000003A 7008 STRB R0, [R1]
112 0000003C
113 0000003C ;Write Values to 7-Segment Display
114 0000003C 4911 LDR R1, =ADDR_7_SEGMENT
115 0000003E 8008 STRH R0, [R1]
116 00000040
117 00000040
118 00000040 ; END: To be programmed
119 00000040 E7DE B readInput
120 00000042 00 00 ALIGN
121 00000044
122 00000044 ; ------------------------------------------------------
------------ ------------
109 00000034 ; Subroutines 123 00000044 ; Subroutines
110 00000034 ; ------------------------------------------------------
------------
111 00000034
112 00000034 ; wait for key to be pressed and released
113 00000034 waitForKey
114 00000034 B407 PUSH {R0, R1, R2}
115 00000036 490E LDR R1, =ADDR_BUTTONS ; laod base a
ddress of keys
116 00000038 4A0E LDR R2, =BITMASK_KEY_T0
; load key mask T0
117 0000003A
118 0000003A waitForPress
119 0000003A 7808 LDRB R0, [R1] ; load key values
120 0000003C 4210 TST R0, R2 ; check, if key T0
is pressed
121 0000003E D0FC BEQ waitForPress
122 00000040
123 00000040 waitForRelease
124 00000040 7808 LDRB R0, [R1] ; load key values
125 00000042 4210 TST R0, R2 ; check, if key T0
is released
126 00000044 D1FC BNE waitForRelease
127 00000046
ARM Macro Assembler Page 4 ARM Macro Assembler Page 4
128 00000046 BC07 POP {R0, R1, R2} 124 00000044 ; ------------------------------------------------------
129 00000048 4770 BX LR
130 0000004A 00 00 ALIGN
131 0000004C
132 0000004C ; ------------------------------------------------------
------------ ------------
133 0000004C ; End of code 125 00000044
134 0000004C ; ------------------------------------------------------ 126 00000044 ; wait for key to be pressed and released
127 00000044 waitForKey
128 00000044 B407 PUSH {R0, R1, R2}
129 00000046 4910 LDR R1, =ADDR_BUTTONS ; laod base a
ddress of keys
130 00000048 4A10 LDR R2, =BITMASK_KEY_T0
; load key mask T0
131 0000004A
132 0000004A waitForPress
133 0000004A 7808 LDRB R0, [R1] ; load key values
134 0000004C 4210 TST R0, R2 ; check, if key T0
is pressed
135 0000004E D0FC BEQ waitForPress
136 00000050
137 00000050 waitForRelease
138 00000050 7808 LDRB R0, [R1] ; load key values
139 00000052 4210 TST R0, R2 ; check, if key T0
is released
140 00000054 D1FC BNE waitForRelease
141 00000056
142 00000056 BC07 POP {R0, R1, R2}
143 00000058 4770 BX LR
144 0000005A 00 00 ALIGN
145 0000005C
146 0000005C ; ------------------------------------------------------
------------ ------------
135 0000004C ENDP 147 0000005C ; End of code
136 0000004C END 148 0000005C ; ------------------------------------------------------
------------
149 0000005C ENDP
150 0000005C END
60000200 60000200
60000100 60000100
60000201 60000201
0000000F 0000000F
60000101 60000101
00000008
00000000 00000000
60000203 60000203
60000103 60000103
60000102 60000102
60000114
60000210 60000210
00000001 00000001
Command Line: --debug --xref --diag_suppress=9931 --cpu=Cortex-M0 --depend=.\bu Command Line: --debug --xref --diag_suppress=9931 --cpu=Cortex-M0 --depend=.\bu
@ -238,7 +263,7 @@ MyAsmVar 00000000
Symbol: MyAsmVar Symbol: MyAsmVar
Definitions Definitions
At line 37 in file app\table.s At line 39 in file app\table.s
Uses Uses
None None
Comment: MyAsmVar unused Comment: MyAsmVar unused
@ -246,10 +271,10 @@ store_table 00000000
Symbol: store_table Symbol: store_table
Definitions Definitions
At line 40 in file app\table.s At line 42 in file app\table.s
Uses Uses
At line 79 in file app\table.s At line 85 in file app\table.s
At line 96 in file app\table.s At line 105 in file app\table.s
2 symbols 2 symbols
@ -262,15 +287,15 @@ main 00000000
Symbol: main Symbol: main
Definitions Definitions
At line 53 in file app\table.s At line 55 in file app\table.s
Uses Uses
At line 54 in file app\table.s At line 56 in file app\table.s
Comment: main used once Comment: main used once
myCode 00000000 myCode 00000000
Symbol: myCode Symbol: myCode
Definitions Definitions
At line 51 in file app\table.s At line 53 in file app\table.s
Uses Uses
None None
Comment: myCode unused Comment: myCode unused
@ -278,33 +303,33 @@ readInput 00000000
Symbol: readInput Symbol: readInput
Definitions Definitions
At line 56 in file app\table.s At line 58 in file app\table.s
Uses Uses
At line 105 in file app\table.s At line 119 in file app\table.s
Comment: readInput used once Comment: readInput used once
waitForKey 00000034 waitForKey 00000044
Symbol: waitForKey Symbol: waitForKey
Definitions Definitions
At line 113 in file app\table.s At line 127 in file app\table.s
Uses Uses
At line 57 in file app\table.s At line 59 in file app\table.s
Comment: waitForKey used once Comment: waitForKey used once
waitForPress 0000003A waitForPress 0000004A
Symbol: waitForPress Symbol: waitForPress
Definitions Definitions
At line 118 in file app\table.s At line 132 in file app\table.s
Uses Uses
At line 121 in file app\table.s At line 135 in file app\table.s
Comment: waitForPress used once Comment: waitForPress used once
waitForRelease 00000040 waitForRelease 00000050
Symbol: waitForRelease Symbol: waitForRelease
Definitions Definitions
At line 123 in file app\table.s At line 137 in file app\table.s
Uses Uses
At line 126 in file app\table.s At line 140 in file app\table.s
Comment: waitForRelease used once Comment: waitForRelease used once
6 symbols 6 symbols
@ -313,13 +338,21 @@ Comment: waitForRelease used once
ARM Macro Assembler Page 1 Alphabetic symbol ordering ARM Macro Assembler Page 1 Alphabetic symbol ordering
Absolute symbols Absolute symbols
ADDR_7_SEGMENT 60000114
Symbol: ADDR_7_SEGMENT
Definitions
At line 30 in file app\table.s
Uses
At line 114 in file app\table.s
Comment: ADDR_7_SEGMENT used once
ADDR_BUTTONS 60000210 ADDR_BUTTONS 60000210
Symbol: ADDR_BUTTONS Symbol: ADDR_BUTTONS
Definitions Definitions
At line 29 in file app\table.s At line 29 in file app\table.s
Uses Uses
At line 115 in file app\table.s At line 129 in file app\table.s
Comment: ADDR_BUTTONS used once Comment: ADDR_BUTTONS used once
ADDR_DIP_SWITCH_15_8 60000201 ADDR_DIP_SWITCH_15_8 60000201
@ -327,7 +360,7 @@ Symbol: ADDR_DIP_SWITCH_15_8
Definitions Definitions
At line 23 in file app\table.s At line 23 in file app\table.s
Uses Uses
At line 68 in file app\table.s At line 70 in file app\table.s
Comment: ADDR_DIP_SWITCH_15_8 used once Comment: ADDR_DIP_SWITCH_15_8 used once
ADDR_DIP_SWITCH_31_24 60000203 ADDR_DIP_SWITCH_31_24 60000203
@ -335,7 +368,7 @@ Symbol: ADDR_DIP_SWITCH_31_24
Definitions Definitions
At line 24 in file app\table.s At line 24 in file app\table.s
Uses Uses
At line 86 in file app\table.s At line 95 in file app\table.s
Comment: ADDR_DIP_SWITCH_31_24 used once Comment: ADDR_DIP_SWITCH_31_24 used once
ADDR_DIP_SWITCH_7_0 60000200 ADDR_DIP_SWITCH_7_0 60000200
@ -343,7 +376,7 @@ Symbol: ADDR_DIP_SWITCH_7_0
Definitions Definitions
At line 22 in file app\table.s At line 22 in file app\table.s
Uses Uses
At line 60 in file app\table.s At line 62 in file app\table.s
Comment: ADDR_DIP_SWITCH_7_0 used once Comment: ADDR_DIP_SWITCH_7_0 used once
ADDR_LED_15_8 60000101 ADDR_LED_15_8 60000101
@ -351,7 +384,7 @@ Symbol: ADDR_LED_15_8
Definitions Definitions
At line 26 in file app\table.s At line 26 in file app\table.s
Uses Uses
At line 75 in file app\table.s At line 77 in file app\table.s
Comment: ADDR_LED_15_8 used once Comment: ADDR_LED_15_8 used once
ADDR_LED_23_16 60000102 ADDR_LED_23_16 60000102
@ -359,46 +392,54 @@ Symbol: ADDR_LED_23_16
Definitions Definitions
At line 27 in file app\table.s At line 27 in file app\table.s
Uses Uses
At line 100 in file app\table.s At line 110 in file app\table.s
Comment: ADDR_LED_23_16 used once Comment: ADDR_LED_23_16 used once
ADDR_LED_31_24 60000103 ADDR_LED_31_24 60000103
Symbol: ADDR_LED_31_24 Symbol: ADDR_LED_31_24
Definitions
At line 28 in file app\table.s
Uses
At line 92 in file app\table.s
Comment: ADDR_LED_31_24 used once
ADDR_LED_7_0 60000100
Symbol: ADDR_LED_7_0
ARM Macro Assembler Page 2 Alphabetic symbol ordering ARM Macro Assembler Page 2 Alphabetic symbol ordering
Absolute symbols Absolute symbols
Definitions
At line 28 in file app\table.s
Uses
At line 101 in file app\table.s
Comment: ADDR_LED_31_24 used once
ADDR_LED_7_0 60000100
Symbol: ADDR_LED_7_0
Definitions Definitions
At line 25 in file app\table.s At line 25 in file app\table.s
Uses Uses
At line 64 in file app\table.s At line 66 in file app\table.s
Comment: ADDR_LED_7_0 used once Comment: ADDR_LED_7_0 used once
BITMASK_KEY_T0 00000001 BITMASK_KEY_T0 00000001
Symbol: BITMASK_KEY_T0 Symbol: BITMASK_KEY_T0
Definitions Definitions
At line 31 in file app\table.s At line 32 in file app\table.s
Uses Uses
At line 116 in file app\table.s At line 130 in file app\table.s
Comment: BITMASK_KEY_T0 used once Comment: BITMASK_KEY_T0 used once
BITMASK_LOWER_NIBBLE 0000000F BITMASK_LOWER_NIBBLE 0000000F
Symbol: BITMASK_LOWER_NIBBLE Symbol: BITMASK_LOWER_NIBBLE
Definitions Definitions
At line 32 in file app\table.s At line 33 in file app\table.s
Uses Uses
At line 70 in file app\table.s At line 72 in file app\table.s
At line 88 in file app\table.s At line 97 in file app\table.s
10 symbols SHIFT_BITS_MSB 00000008
353 symbols in table
Symbol: SHIFT_BITS_MSB
Definitions
At line 34 in file app\table.s
Uses
At line 82 in file app\table.s
Comment: SHIFT_BITS_MSB used once
12 symbols
355 symbols in table

View File

@ -131,11 +131,11 @@ Image Symbol Table
__arm_cp.3_5 0x08000e8c Number 4 hal_rcc.o(.text) __arm_cp.3_5 0x08000e8c Number 4 hal_rcc.o(.text)
__arm_cp.4_0 0x08000eec Number 4 hal_rcc.o(.text) __arm_cp.4_0 0x08000eec Number 4 hal_rcc.o(.text)
__arm_cp.4_1 0x08000ef0 Number 4 hal_rcc.o(.text) __arm_cp.4_1 0x08000ef0 Number 4 hal_rcc.o(.text)
myCode 0x08000ef4 Section 120 table.o(myCode) myCode 0x08000ef4 Section 144 table.o(myCode)
store_table 0x20000000 Data 16 table.o(MyAsmVar) store_table 0x20000000 Data 32 table.o(MyAsmVar)
MyAsmVar 0x20000000 Section 16 table.o(MyAsmVar) MyAsmVar 0x20000000 Section 32 table.o(MyAsmVar)
STACK 0x20000010 Section 8192 startup_ctboard.o(STACK) STACK 0x20000020 Section 8192 startup_ctboard.o(STACK)
__initial_sp 0x20002010 Data 0 startup_ctboard.o(STACK) __initial_sp 0x20002020 Data 0 startup_ctboard.o(STACK)
Global Symbols Global Symbols
@ -285,12 +285,12 @@ Image Symbol Table
hal_rcc_set_osc 0x08000d45 Thumb Code 108 hal_rcc.o(.text) hal_rcc_set_osc 0x08000d45 Thumb Code 108 hal_rcc.o(.text)
hal_rcc_setup_pll 0x08000db9 Thumb Code 192 hal_rcc.o(.text) hal_rcc_setup_pll 0x08000db9 Thumb Code 192 hal_rcc.o(.text)
hal_rcc_setup_clock 0x08000e91 Thumb Code 92 hal_rcc.o(.text) hal_rcc_setup_clock 0x08000e91 Thumb Code 92 hal_rcc.o(.text)
main 0x08000ef5 Thumb Code 76 table.o(myCode) main 0x08000ef5 Thumb Code 92 table.o(myCode)
Image$$ER_IROM1$$Limit 0x08000f6c Number 0 anon$$obj.o ABSOLUTE Image$$ER_IROM1$$Limit 0x08000f84 Number 0 anon$$obj.o ABSOLUTE
Image$$RW_IRAM1$$Base 0x20000000 Number 0 anon$$obj.o ABSOLUTE Image$$RW_IRAM1$$Base 0x20000000 Number 0 anon$$obj.o ABSOLUTE
Image$$RW_IRAM1$$ZI$$Base 0x20000010 Number 0 anon$$obj.o ABSOLUTE Image$$RW_IRAM1$$ZI$$Base 0x20000020 Number 0 anon$$obj.o ABSOLUTE
Stack_Mem 0x20000010 Data 8192 startup_ctboard.o(STACK) Stack_Mem 0x20000020 Data 8192 startup_ctboard.o(STACK)
Image$$RW_IRAM1$$ZI$$Limit 0x20002010 Number 0 anon$$obj.o ABSOLUTE Image$$RW_IRAM1$$ZI$$Limit 0x20002020 Number 0 anon$$obj.o ABSOLUTE
@ -300,9 +300,9 @@ Memory Map of the image
Image Entry point : 0x08000229 Image Entry point : 0x08000229
Load Region LR_IROM1 (Base: 0x08000000, Size: 0x00000f80, Max: 0x00200000, ABSOLUTE) Load Region LR_IROM1 (Base: 0x08000000, Size: 0x00000fa8, Max: 0x00200000, ABSOLUTE)
Execution Region ER_IROM1 (Exec base: 0x08000000, Load base: 0x08000000, Size: 0x00000f6c, Max: 0x00200000, ABSOLUTE) Execution Region ER_IROM1 (Exec base: 0x08000000, Load base: 0x08000000, Size: 0x00000f84, Max: 0x00200000, ABSOLUTE)
Exec Addr Load Addr Size Type Attr Idx E Section Name Object Exec Addr Load Addr Size Type Attr Idx E Section Name Object
@ -315,15 +315,15 @@ Memory Map of the image
0x0800052c 0x0800052c 0x000005fc Code RO 35 .text hal_gpio.o 0x0800052c 0x0800052c 0x000005fc Code RO 35 .text hal_gpio.o
0x08000b28 0x08000b28 0x000000ac Code RO 43 .text hal_pwr.o 0x08000b28 0x08000b28 0x000000ac Code RO 43 .text hal_pwr.o
0x08000bd4 0x08000bd4 0x00000320 Code RO 51 .text hal_rcc.o 0x08000bd4 0x08000bd4 0x00000320 Code RO 51 .text hal_rcc.o
0x08000ef4 0x08000ef4 0x00000078 Code RO 2 myCode table.o 0x08000ef4 0x08000ef4 0x00000090 Code RO 2 myCode table.o
Execution Region RW_IRAM1 (Exec base: 0x20000000, Load base: 0x08000f70, Size: 0x00002010, Max: 0x00030000, ABSOLUTE) Execution Region RW_IRAM1 (Exec base: 0x20000000, Load base: 0x08000f88, Size: 0x00002020, Max: 0x00030000, ABSOLUTE)
Exec Addr Load Addr Size Type Attr Idx E Section Name Object Exec Addr Load Addr Size Type Attr Idx E Section Name Object
0x20000000 0x08000f70 0x00000010 Data RW 1 MyAsmVar table.o 0x20000000 0x08000f88 0x00000020 Data RW 1 MyAsmVar table.o
0x20000010 - 0x00002000 Zero RW 12 STACK startup_ctboard.o 0x20000020 - 0x00002000 Zero RW 12 STACK startup_ctboard.o
============================================================================== ==============================================================================
@ -340,10 +340,10 @@ Image component sizes
800 168 0 0 0 5172 hal_rcc.o 800 168 0 0 0 5172 hal_rcc.o
36 8 428 0 8192 812 startup_ctboard.o 36 8 428 0 8192 812 startup_ctboard.o
330 76 0 0 0 6760 system_ctboard.o 330 76 0 0 0 6760 system_ctboard.o
120 48 0 16 0 388 table.o 144 56 0 32 0 396 table.o
---------------------------------------------------------------------- ----------------------------------------------------------------------
3520 486 428 16 8192 32329 Object Totals 3544 494 428 32 8192 32337 Object Totals
0 0 0 0 0 0 (incl. Generated) 0 0 0 0 0 0 (incl. Generated)
2 0 0 0 0 0 (incl. Padding) 2 0 0 0 0 0 (incl. Padding)
@ -358,15 +358,15 @@ Image component sizes
Code (inc. data) RO Data RW Data ZI Data Debug Code (inc. data) RO Data RW Data ZI Data Debug
3520 486 428 16 8192 32145 Grand Totals 3544 494 428 32 8192 32153 Grand Totals
3520 486 428 16 8192 32145 ELF Image Totals 3544 494 428 32 8192 32153 ELF Image Totals
3520 486 428 16 0 0 ROM Totals 3544 494 428 32 0 0 ROM Totals
============================================================================== ==============================================================================
Total RO Size (Code + RO Data) 3948 ( 3.86kB) Total RO Size (Code + RO Data) 3972 ( 3.88kB)
Total RW Size (RW Data + ZI Data) 8208 ( 8.02kB) Total RW Size (RW Data + ZI Data) 8224 ( 8.03kB)
Total ROM Size (Code + RO Data + RW Data) 3964 ( 3.87kB) Total ROM Size (Code + RO Data + RW Data) 4004 ( 3.91kB)
============================================================================== ==============================================================================

Binary file not shown.

View File

@ -1,6 +1,6 @@
Dependencies for Project 'table', Target 'Target 1': (DO NOT MODIFY !) Dependencies for Project 'table', Target 'Target 1': (DO NOT MODIFY !)
CompilerVersion: 6180000::V6.18::ARMCLANG CompilerVersion: 6180000::V6.18::ARMCLANG
F (.\app\table.s)(0x634914A7)(--cpu Cortex-M0 --pd "__EVAL SETA 1" -g -I.\RTE\_Target_1 -IC:\Users\roman\AppData\Local\Arm\Packs\InES\CTBoard14_DFP\4.0.2\Device\Include -IC:\Users\roman\AppData\Local\Arm\Packs\InES\CTBoard14_DFP\4.0.2\Device\Include\m0 -IC:\Users\roman\AppData\Local\Arm\Packs\InES\CTBoard14_DFP\4.0.2\HAL\Include --pd "__UVISION_VERSION SETA 537" --pd "_RTE_ SETA 1" --pd "_RTE_ SETA 1" --list .\build\table.lst --xref -o .\build\table.o --depend .\build\table.d) F (.\app\table.s)(0x63492BF7)(--cpu Cortex-M0 --pd "__EVAL SETA 1" -g -I.\RTE\_Target_1 -IC:\Users\roman\AppData\Local\Arm\Packs\InES\CTBoard14_DFP\4.0.2\Device\Include -IC:\Users\roman\AppData\Local\Arm\Packs\InES\CTBoard14_DFP\4.0.2\Device\Include\m0 -IC:\Users\roman\AppData\Local\Arm\Packs\InES\CTBoard14_DFP\4.0.2\HAL\Include --pd "__UVISION_VERSION SETA 537" --pd "_RTE_ SETA 1" --pd "_RTE_ SETA 1" --list .\build\table.lst --xref -o .\build\table.o --depend .\build\table.d)
F (RTE/Device/CT_Board_HS14_M0/datainit_ctboard.s)(0x5C517478)(--cpu Cortex-M0 --pd "__EVAL SETA 1" -g -I.\RTE\_Target_1 -IC:\Users\roman\AppData\Local\Arm\Packs\InES\CTBoard14_DFP\4.0.2\Device\Include -IC:\Users\roman\AppData\Local\Arm\Packs\InES\CTBoard14_DFP\4.0.2\Device\Include\m0 -IC:\Users\roman\AppData\Local\Arm\Packs\InES\CTBoard14_DFP\4.0.2\HAL\Include --pd "__UVISION_VERSION SETA 537" --pd "_RTE_ SETA 1" --pd "_RTE_ SETA 1" --list .\build\datainit_ctboard.lst --xref -o .\build\datainit_ctboard.o --depend .\build\datainit_ctboard.d) F (RTE/Device/CT_Board_HS14_M0/datainit_ctboard.s)(0x5C517478)(--cpu Cortex-M0 --pd "__EVAL SETA 1" -g -I.\RTE\_Target_1 -IC:\Users\roman\AppData\Local\Arm\Packs\InES\CTBoard14_DFP\4.0.2\Device\Include -IC:\Users\roman\AppData\Local\Arm\Packs\InES\CTBoard14_DFP\4.0.2\Device\Include\m0 -IC:\Users\roman\AppData\Local\Arm\Packs\InES\CTBoard14_DFP\4.0.2\HAL\Include --pd "__UVISION_VERSION SETA 537" --pd "_RTE_ SETA 1" --pd "_RTE_ SETA 1" --list .\build\datainit_ctboard.lst --xref -o .\build\datainit_ctboard.o --depend .\build\datainit_ctboard.d)
F (RTE/Device/CT_Board_HS14_M0/startup_ctboard.s)(0x5C517478)(--cpu Cortex-M0 --pd "__EVAL SETA 1" -g -I.\RTE\_Target_1 -IC:\Users\roman\AppData\Local\Arm\Packs\InES\CTBoard14_DFP\4.0.2\Device\Include -IC:\Users\roman\AppData\Local\Arm\Packs\InES\CTBoard14_DFP\4.0.2\Device\Include\m0 -IC:\Users\roman\AppData\Local\Arm\Packs\InES\CTBoard14_DFP\4.0.2\HAL\Include --pd "__UVISION_VERSION SETA 537" --pd "_RTE_ SETA 1" --pd "_RTE_ SETA 1" --list .\build\startup_ctboard.lst --xref -o .\build\startup_ctboard.o --depend .\build\startup_ctboard.d) F (RTE/Device/CT_Board_HS14_M0/startup_ctboard.s)(0x5C517478)(--cpu Cortex-M0 --pd "__EVAL SETA 1" -g -I.\RTE\_Target_1 -IC:\Users\roman\AppData\Local\Arm\Packs\InES\CTBoard14_DFP\4.0.2\Device\Include -IC:\Users\roman\AppData\Local\Arm\Packs\InES\CTBoard14_DFP\4.0.2\Device\Include\m0 -IC:\Users\roman\AppData\Local\Arm\Packs\InES\CTBoard14_DFP\4.0.2\HAL\Include --pd "__UVISION_VERSION SETA 537" --pd "_RTE_ SETA 1" --pd "_RTE_ SETA 1" --list .\build\startup_ctboard.lst --xref -o .\build\startup_ctboard.o --depend .\build\startup_ctboard.d)
F (RTE/Device/CT_Board_HS14_M0/system_ctboard.c)(0x5C597514)(-xc -std=c99 --target=arm-arm-none-eabi -mcpu=cortex-m0 -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar -D__EVAL -gdwarf-4 -O1 -fno-function-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I./RTE/_Target_1 -IC:/Users/roman/AppData/Local/Arm/Packs/InES/CTBoard14_DFP/4.0.2/Device/Include -IC:/Users/roman/AppData/Local/Arm/Packs/InES/CTBoard14_DFP/4.0.2/Device/Include/m0 -IC:/Users/roman/AppData/Local/Arm/Packs/InES/CTBoard14_DFP/4.0.2/HAL/Include -D__UVISION_VERSION="537" -D_RTE_ -D_RTE_ -o ./build/system_ctboard.o -MD) F (RTE/Device/CT_Board_HS14_M0/system_ctboard.c)(0x5C597514)(-xc -std=c99 --target=arm-arm-none-eabi -mcpu=cortex-m0 -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar -D__EVAL -gdwarf-4 -O1 -fno-function-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I./RTE/_Target_1 -IC:/Users/roman/AppData/Local/Arm/Packs/InES/CTBoard14_DFP/4.0.2/Device/Include -IC:/Users/roman/AppData/Local/Arm/Packs/InES/CTBoard14_DFP/4.0.2/Device/Include/m0 -IC:/Users/roman/AppData/Local/Arm/Packs/InES/CTBoard14_DFP/4.0.2/HAL/Include -D__UVISION_VERSION="537" -D_RTE_ -D_RTE_ -o ./build/system_ctboard.o -MD)

File diff suppressed because one or more lines are too long

View File

@ -149,6 +149,14 @@
</SetRegEntry> </SetRegEntry>
</TargetDriverDllRegistry> </TargetDriverDllRegistry>
<Breakpoint/> <Breakpoint/>
<MemoryWindow1>
<Mm>
<WinNumber>1</WinNumber>
<SubType>0</SubType>
<ItemText>0x20000000</ItemText>
<AccSizeX>0</AccSizeX>
</Mm>
</MemoryWindow1>
<Tracepoint> <Tracepoint>
<THDelay>0</THDelay> <THDelay>0</THDelay>
</Tracepoint> </Tracepoint>