solved Task 3d
This commit is contained in:
parent
f58771a1b5
commit
d637291eb3
|
@ -148,6 +148,25 @@ case_red
|
|||
; Show Diff on 7-Segment
|
||||
LDR R3, =ADDR_7_SEG_BIN_DS3_0
|
||||
STRB R2, [R3]
|
||||
|
||||
; Count 0 Bits in diff
|
||||
LDR R3, =0x9 ; Count down
|
||||
LDR R4, =0x0 ; Count 0 bits
|
||||
LDR R5, =0x01 ; Value 1
|
||||
loop_count_0_bits
|
||||
SUBS R3, R3, R5
|
||||
BEQ end_loop_count_0_bits
|
||||
LSRS R2, R2, #1
|
||||
BHS loop_count_0_bits
|
||||
ADDS R4, R4, R5
|
||||
B loop_count_0_bits
|
||||
end_loop_count_0_bits
|
||||
|
||||
; Show 0 Bits in lcd 2nd line
|
||||
LDR R3, =ADDR_LCD_ASCII_2ND_LINE
|
||||
LDR R5, =ASCII_DIGIT_OFFSET
|
||||
ADDS R4, R4, R5
|
||||
STRB R4, [R3]
|
||||
|
||||
B main_loop
|
||||
case_green
|
||||
|
|
|
@ -142,30 +142,30 @@ ARM Macro Assembler Page 3
|
|||
73 00000000 export main
|
||||
74 00000000 ; 8 bit resolution, cont. sampling
|
||||
75 00000000 F7FF FFFE BL adc_init
|
||||
76 00000004 F000 F847 BL clear_lcd
|
||||
76 00000004 F000 F854 BL clear_lcd
|
||||
77 00000008
|
||||
78 00000008 main_loop
|
||||
79 00000008 ; STUDENTS: To be programmed
|
||||
80 00000008
|
||||
81 00000008 ; Clear LCD
|
||||
82 00000008 F000 F83A BL clear_lcd_colour
|
||||
82 00000008 F000 F847 BL clear_lcd_colour
|
||||
83 0000000C
|
||||
84 0000000C ; Read ADC Value to R0
|
||||
85 0000000C F7FF FFFE BL adc_get_value
|
||||
86 00000010
|
||||
87 00000010 ; check T0
|
||||
88 00000010 492A LDR R1, =ADDR_BUTTONS
|
||||
88 00000010 4930 LDR R1, =ADDR_BUTTONS
|
||||
89 00000012 7809 LDRB R1, [R1]
|
||||
90 00000014 4A2A LDR R2, =0x01
|
||||
90 00000014 4A30 LDR R2, =0x01
|
||||
91 00000016 4211 TST R1, R2
|
||||
92 00000018 D121 BNE case_green ; If T0 is pressed:
|
||||
92 00000018 D12E BNE case_green ; If T0 is pressed:
|
||||
goto case_green, e
|
||||
lse: continue
|
||||
93 0000001A
|
||||
94 0000001A ; Else (T0 is not pressed):
|
||||
95 0000001A
|
||||
96 0000001A ; Read 8-bit value from DIP-Switch 7-0 to R1
|
||||
97 0000001A 492A LDR R1, =ADDR_DIP_SWITCH_7_0
|
||||
97 0000001A 4930 LDR R1, =ADDR_DIP_SWITCH_7_0
|
||||
98 0000001C 7809 LDRB R1, [R1]
|
||||
99 0000001E
|
||||
100 0000001E ; Calc diff: DIP-Switch-7-0 - ADC-Value
|
||||
|
@ -177,20 +177,20 @@ ARM Macro Assembler Page 3
|
|||
104 00000022
|
||||
105 00000022 case_blue
|
||||
106 00000022 ; Make LCD Display Blue
|
||||
107 00000022 4B29 LDR R3, =ADDR_LCD_COLOUR
|
||||
108 00000024 4C29 LDR R4, =DISPLAY_COLOUR_BLUE
|
||||
109 00000026 4D2A LDR R5, =0xffff
|
||||
107 00000022 4B2F LDR R3, =ADDR_LCD_COLOUR
|
||||
108 00000024 4C2F LDR R4, =DISPLAY_COLOUR_BLUE
|
||||
109 00000026 4D30 LDR R5, =0xffff
|
||||
110 00000028 531D STRH R5, [R3, R4]
|
||||
111 0000002A
|
||||
112 0000002A ; Show Diff on 7-Segment
|
||||
113 0000002A 4B2A LDR R3, =ADDR_7_SEG_BIN_DS3_0
|
||||
113 0000002A 4B30 LDR R3, =ADDR_7_SEG_BIN_DS3_0
|
||||
114 0000002C 701A STRB R2, [R3]
|
||||
115 0000002E
|
||||
116 0000002E ; Show Bits on lcd Display
|
||||
117 0000002E 4B2A LDR R3, =0x8
|
||||
117 0000002E 4B30 LDR R3, =0x8
|
||||
118 00000030 1A9B SUBS R3, R3, R2
|
||||
119 00000032 D906 BLS case_8_bit
|
||||
120 00000034 4B25 LDR R3, =0x4
|
||||
120 00000034 4B2B LDR R3, =0x4
|
||||
121 00000036 1A9B SUBS R3, R3, R2
|
||||
122 00000038 D901 BLS case_4_bit
|
||||
|
||||
|
@ -200,120 +200,145 @@ ARM Macro Assembler Page 4
|
|||
|
||||
|
||||
123 0000003A case_2_bit
|
||||
124 0000003A 4C28 LDR R4, =DISPLAY_2_BIT
|
||||
124 0000003A 4C2E LDR R4, =DISPLAY_2_BIT
|
||||
125 0000003C E002 B end_case
|
||||
126 0000003E case_4_bit
|
||||
127 0000003E 4C28 LDR R4, =DISPLAY_4_BIT
|
||||
127 0000003E 4C2E LDR R4, =DISPLAY_4_BIT
|
||||
128 00000040 E000 B end_case
|
||||
129 00000042 case_8_bit
|
||||
130 00000042 4C28 LDR R4, =DISPLAY_8_BIT
|
||||
130 00000042 4C2E LDR R4, =DISPLAY_8_BIT
|
||||
131 00000044
|
||||
132 00000044 end_case
|
||||
133 00000044 4B28 LDR R3, =ADDR_LCD_ASCII
|
||||
133 00000044 4B2E LDR R3, =ADDR_LCD_ASCII
|
||||
134 00000046
|
||||
135 00000046 6824 LDR R4, [R4]
|
||||
136 00000048 701C STRB R4, [R3]
|
||||
137 0000004A
|
||||
138 0000004A F000 F82F BL write_bit_ascii
|
||||
138 0000004A F000 F83C BL write_bit_ascii
|
||||
139 0000004E
|
||||
140 0000004E E7DB B main_loop
|
||||
141 00000050 case_red
|
||||
142 00000050 ; Make LCD Display Red
|
||||
143 00000050 4B1D LDR R3, =ADDR_LCD_COLOUR
|
||||
144 00000052 4C26 LDR R4, =DISPLAY_COLOUR_RED
|
||||
145 00000054 4D1E LDR R5, =0xffff
|
||||
143 00000050 4B23 LDR R3, =ADDR_LCD_COLOUR
|
||||
144 00000052 4C2C LDR R4, =DISPLAY_COLOUR_RED
|
||||
145 00000054 4D24 LDR R5, =0xffff
|
||||
146 00000056 531D STRH R5, [R3, R4]
|
||||
147 00000058
|
||||
148 00000058 ; Show Diff on 7-Segment
|
||||
149 00000058 4B1E LDR R3, =ADDR_7_SEG_BIN_DS3_0
|
||||
149 00000058 4B24 LDR R3, =ADDR_7_SEG_BIN_DS3_0
|
||||
150 0000005A 701A STRB R2, [R3]
|
||||
151 0000005C
|
||||
152 0000005C E7D4 B main_loop
|
||||
153 0000005E case_green
|
||||
154 0000005E ; Make LCD Display Green
|
||||
155 0000005E 4B1A LDR R3, =ADDR_LCD_COLOUR
|
||||
156 00000060 4C23 LDR R4, =DISPLAY_COLOUR_GREEN
|
||||
157 00000062 4D1B LDR R5, =0xffff
|
||||
158 00000064 531D STRH R5, [R3, R4]
|
||||
159 00000066
|
||||
160 00000066 ; Show ADC Value on 7-Semgment
|
||||
161 00000066 4B1B LDR R3, =ADDR_7_SEG_BIN_DS3_0
|
||||
162 00000068 7018 STRB R0, [R3]
|
||||
163 0000006A
|
||||
164 0000006A 4920 LDR R1, =0x0 ; Register to show
|
||||
on LEDs
|
||||
165 0000006C 4A14 LDR R2, =0x1 ; Value 0x1
|
||||
166 0000006E 08C0 LSRS R0, R0, #3 ; Counter
|
||||
167 00000070 led_loop
|
||||
168 00000070 D003 BEQ end_led_loop
|
||||
169 00000072 4091 LSLS R1, R2
|
||||
170 00000074 4311 ORRS R1, R1, R2
|
||||
171 00000076 1A80 SUBS R0, R0, R2
|
||||
172 00000078 E7FA B led_loop
|
||||
173 0000007A end_led_loop
|
||||
174 0000007A 481E LDR R0, =ADDR_LED_31_0
|
||||
175 0000007C 6001 STR R1, [R0]
|
||||
176 0000007E
|
||||
177 0000007E
|
||||
178 0000007E ; END: To be programmed
|
||||
179 0000007E E7C3 B main_loop
|
||||
180 00000080
|
||||
152 0000005C ; Count 0 Bits in diff
|
||||
153 0000005C 4B2A LDR R3, =0x9 ; Count down
|
||||
154 0000005E 4C29 LDR R4, =0x0 ; Count 0 bits
|
||||
155 00000060 4D1D LDR R5, =0x01 ; Value 1
|
||||
156 00000062 loop_count_0_bits
|
||||
157 00000062 1B5B SUBS R3, R3, R5
|
||||
158 00000064 D003 BEQ end_loop_count_0_bits
|
||||
159 00000066 0852 LSRS R2, R2, #1
|
||||
160 00000068 D2FB BHS loop_count_0_bits
|
||||
161 0000006A 1964 ADDS R4, R4, R5
|
||||
162 0000006C E7F9 B loop_count_0_bits
|
||||
163 0000006E end_loop_count_0_bits
|
||||
164 0000006E
|
||||
165 0000006E ; Show 0 Bits in lcd 2nd line
|
||||
166 0000006E 4B27 LDR R3, =ADDR_LCD_ASCII_2ND_LINE
|
||||
167 00000070 4D27 LDR R5, =ASCII_DIGIT_OFFSET
|
||||
168 00000072 1964 ADDS R4, R4, R5
|
||||
169 00000074 701C STRB R4, [R3]
|
||||
170 00000076
|
||||
171 00000076 E7C7 B main_loop
|
||||
172 00000078 case_green
|
||||
173 00000078 ; Make LCD Display Green
|
||||
174 00000078 4B19 LDR R3, =ADDR_LCD_COLOUR
|
||||
175 0000007A 4C26 LDR R4, =DISPLAY_COLOUR_GREEN
|
||||
176 0000007C 4D1A LDR R5, =0xffff
|
||||
177 0000007E 531D STRH R5, [R3, R4]
|
||||
178 00000080
|
||||
179 00000080 ; Show ADC Value on 7-Semgment
|
||||
180 00000080 4B1A LDR R3, =ADDR_7_SEG_BIN_DS3_0
|
||||
181 00000082 7018 STRB R0, [R3]
|
||||
|
||||
|
||||
|
||||
ARM Macro Assembler Page 5
|
||||
|
||||
|
||||
181 00000080 clear_lcd_colour
|
||||
182 00000080 B407 PUSH {R0, R1, R2}
|
||||
183 00000082 4811 LDR R0, =ADDR_LCD_COLOUR
|
||||
184 00000084 4A19 LDR R2, =0x0
|
||||
185 00000086 4919 LDR R1, =DISPLAY_COLOUR_RED
|
||||
186 00000088 5242 STRH R2, [R0, R1]
|
||||
187 0000008A 4910 LDR R1, =DISPLAY_COLOUR_BLUE
|
||||
188 0000008C 5242 STRH R2, [R0, R1]
|
||||
189 0000008E 4918 LDR R1, =DISPLAY_COLOUR_GREEN
|
||||
190 00000090 5242 STRH R2, [R0, R1]
|
||||
191 00000092 BC07 POP {R0, R1, R2}
|
||||
192 00000094 4770 BX LR
|
||||
193 00000096
|
||||
194 00000096 clear_lcd
|
||||
195 00000096 B407 PUSH {R0, R1, R2}
|
||||
196 00000098 4A14 LDR R2, =0x0
|
||||
197 0000009A clear_lcd_loop
|
||||
198 0000009A 4813 LDR R0, =ADDR_LCD_ASCII
|
||||
199 0000009C 1880 ADDS R0, R0, R2 ; add index to lcd
|
||||
182 00000084
|
||||
183 00000084 491F LDR R1, =0x0 ; Register to show
|
||||
on LEDs
|
||||
184 00000086 4A14 LDR R2, =0x1 ; Value 0x1
|
||||
185 00000088 08C0 LSRS R0, R0, #3 ; Counter
|
||||
186 0000008A led_loop
|
||||
187 0000008A D003 BEQ end_led_loop
|
||||
188 0000008C 4091 LSLS R1, R2
|
||||
189 0000008E 4311 ORRS R1, R1, R2
|
||||
190 00000090 1A80 SUBS R0, R0, R2
|
||||
191 00000092 E7FA B led_loop
|
||||
192 00000094 end_led_loop
|
||||
193 00000094 4820 LDR R0, =ADDR_LED_31_0
|
||||
194 00000096 6001 STR R1, [R0]
|
||||
195 00000098
|
||||
196 00000098
|
||||
197 00000098 ; END: To be programmed
|
||||
198 00000098 E7B6 B main_loop
|
||||
199 0000009A
|
||||
200 0000009A clear_lcd_colour
|
||||
201 0000009A B407 PUSH {R0, R1, R2}
|
||||
202 0000009C 4810 LDR R0, =ADDR_LCD_COLOUR
|
||||
203 0000009E 4A19 LDR R2, =0x0
|
||||
204 000000A0 4918 LDR R1, =DISPLAY_COLOUR_RED
|
||||
205 000000A2 5242 STRH R2, [R0, R1]
|
||||
206 000000A4 490F LDR R1, =DISPLAY_COLOUR_BLUE
|
||||
207 000000A6 5242 STRH R2, [R0, R1]
|
||||
208 000000A8 491A LDR R1, =DISPLAY_COLOUR_GREEN
|
||||
209 000000AA 5242 STRH R2, [R0, R1]
|
||||
210 000000AC BC07 POP {R0, R1, R2}
|
||||
211 000000AE 4770 BX LR
|
||||
212 000000B0
|
||||
213 000000B0 clear_lcd
|
||||
214 000000B0 B407 PUSH {R0, R1, R2}
|
||||
215 000000B2 4A14 LDR R2, =0x0
|
||||
216 000000B4 clear_lcd_loop
|
||||
217 000000B4 4812 LDR R0, =ADDR_LCD_ASCII
|
||||
218 000000B6 1880 ADDS R0, R0, R2 ; add index to lcd
|
||||
offset
|
||||
200 0000009E 4913 LDR R1, =ASCII_DIGIT_CLEAR
|
||||
201 000000A0 6001 STR R1, [R0]
|
||||
202 000000A2 1D12 ADDS R2, R2, #4 ; increas index by
|
||||
219 000000B8 4912 LDR R1, =ASCII_DIGIT_CLEAR
|
||||
220 000000BA 6001 STR R1, [R0]
|
||||
221 000000BC 1D12 ADDS R2, R2, #4 ; increas index by
|
||||
4 (word step)
|
||||
203 000000A4 2A28 CMP R2, #LCD_LAST_OFFSET ; until in
|
||||
222 000000BE 2A28 CMP R2, #LCD_LAST_OFFSET ; until in
|
||||
dex reached last lc
|
||||
d point
|
||||
204 000000A6 D4F8 BMI clear_lcd_loop
|
||||
205 000000A8 BC07 POP {R0, R1, R2}
|
||||
206 000000AA 4770 BX LR
|
||||
207 000000AC
|
||||
208 000000AC write_bit_ascii
|
||||
209 000000AC B403 PUSH {R0, R1}
|
||||
210 000000AE 4812 LDR R0, =ADDR_LCD_ASCII_BIT_POS
|
||||
211 000000B0 4912 LDR R1, =DISPLAY_BIT
|
||||
212 000000B2 6809 LDR R1, [R1]
|
||||
213 000000B4 6001 STR R1, [R0]
|
||||
214 000000B6 BC03 POP {R0, R1}
|
||||
215 000000B8 4770 BX LR
|
||||
216 000000BA
|
||||
217 000000BA ENDP
|
||||
218 000000BA 00 00 ALIGN
|
||||
219 000000BC
|
||||
220 000000BC
|
||||
221 000000BC ; ------------------------------------------------------
|
||||
223 000000C0 D4F8 BMI clear_lcd_loop
|
||||
224 000000C2 BC07 POP {R0, R1, R2}
|
||||
225 000000C4 4770 BX LR
|
||||
226 000000C6
|
||||
227 000000C6 write_bit_ascii
|
||||
228 000000C6 B403 PUSH {R0, R1}
|
||||
229 000000C8 4814 LDR R0, =ADDR_LCD_ASCII_BIT_POS
|
||||
230 000000CA 4915 LDR R1, =DISPLAY_BIT
|
||||
231 000000CC 6809 LDR R1, [R1]
|
||||
232 000000CE 6001 STR R1, [R0]
|
||||
233 000000D0 BC03 POP {R0, R1}
|
||||
234 000000D2 4770 BX LR
|
||||
235 000000D4
|
||||
|
||||
|
||||
|
||||
ARM Macro Assembler Page 6
|
||||
|
||||
|
||||
236 000000D4 ENDP
|
||||
237 000000D4 ALIGN
|
||||
238 000000D4
|
||||
239 000000D4
|
||||
240 000000D4 ; ------------------------------------------------------
|
||||
------------
|
||||
222 000000BC ; End of code
|
||||
223 000000BC ; ------------------------------------------------------
|
||||
241 000000D4 ; End of code
|
||||
242 000000D4 ; ------------------------------------------------------
|
||||
------------
|
||||
224 000000BC END
|
||||
243 000000D4 END
|
||||
60000210
|
||||
00000001
|
||||
60000200
|
||||
|
@ -323,16 +348,13 @@ ARM Macro Assembler Page 5
|
|||
60000114
|
||||
00000008
|
||||
00000000
|
||||
|
||||
|
||||
|
||||
ARM Macro Assembler Page 6
|
||||
|
||||
|
||||
00000000
|
||||
00000000
|
||||
60000300
|
||||
00000000
|
||||
00000009
|
||||
60000314
|
||||
00000030
|
||||
00000002
|
||||
60000100
|
||||
60000302
|
||||
|
@ -380,7 +402,7 @@ Symbol: DISPLAY_BIT
|
|||
Definitions
|
||||
At line 56 in file app\struct_code.s
|
||||
Uses
|
||||
At line 211 in file app\struct_code.s
|
||||
At line 230 in file app\struct_code.s
|
||||
Comment: DISPLAY_BIT used once
|
||||
myConstants 00000000
|
||||
|
||||
|
@ -429,11 +451,11 @@ Symbol: case_blue
|
|||
Uses
|
||||
None
|
||||
Comment: case_blue unused
|
||||
case_green 0000005E
|
||||
case_green 00000078
|
||||
|
||||
Symbol: case_green
|
||||
Definitions
|
||||
At line 153 in file app\struct_code.s
|
||||
At line 172 in file app\struct_code.s
|
||||
Uses
|
||||
At line 92 in file app\struct_code.s
|
||||
Comment: case_green used once
|
||||
|
@ -445,15 +467,15 @@ Symbol: case_red
|
|||
Uses
|
||||
At line 102 in file app\struct_code.s
|
||||
Comment: case_red used once
|
||||
clear_lcd 00000096
|
||||
clear_lcd 000000B0
|
||||
|
||||
Symbol: clear_lcd
|
||||
Definitions
|
||||
At line 194 in file app\struct_code.s
|
||||
At line 213 in file app\struct_code.s
|
||||
Uses
|
||||
At line 76 in file app\struct_code.s
|
||||
Comment: clear_lcd used once
|
||||
clear_lcd_colour 00000080
|
||||
clear_lcd_colour 0000009A
|
||||
|
||||
Symbol: clear_lcd_colour
|
||||
|
||||
|
@ -463,17 +485,17 @@ ARM Macro Assembler Page 2 Alphabetic symbol ordering
|
|||
Relocatable symbols
|
||||
|
||||
Definitions
|
||||
At line 181 in file app\struct_code.s
|
||||
At line 200 in file app\struct_code.s
|
||||
Uses
|
||||
At line 82 in file app\struct_code.s
|
||||
Comment: clear_lcd_colour used once
|
||||
clear_lcd_loop 0000009A
|
||||
clear_lcd_loop 000000B4
|
||||
|
||||
Symbol: clear_lcd_loop
|
||||
Definitions
|
||||
At line 197 in file app\struct_code.s
|
||||
At line 216 in file app\struct_code.s
|
||||
Uses
|
||||
At line 204 in file app\struct_code.s
|
||||
At line 223 in file app\struct_code.s
|
||||
Comment: clear_lcd_loop used once
|
||||
end_case 00000044
|
||||
|
||||
|
@ -484,26 +506,49 @@ Symbol: end_case
|
|||
At line 125 in file app\struct_code.s
|
||||
At line 128 in file app\struct_code.s
|
||||
|
||||
end_led_loop 0000007A
|
||||
end_led_loop 00000094
|
||||
|
||||
Symbol: end_led_loop
|
||||
Definitions
|
||||
At line 173 in file app\struct_code.s
|
||||
At line 192 in file app\struct_code.s
|
||||
Uses
|
||||
At line 168 in file app\struct_code.s
|
||||
At line 187 in file app\struct_code.s
|
||||
Comment: end_led_loop used once
|
||||
led_loop 00000070
|
||||
end_loop_count_0_bits 0000006E
|
||||
|
||||
Symbol: end_loop_count_0_bits
|
||||
Definitions
|
||||
At line 163 in file app\struct_code.s
|
||||
Uses
|
||||
At line 158 in file app\struct_code.s
|
||||
Comment: end_loop_count_0_bits used once
|
||||
led_loop 0000008A
|
||||
|
||||
Symbol: led_loop
|
||||
Definitions
|
||||
At line 167 in file app\struct_code.s
|
||||
At line 186 in file app\struct_code.s
|
||||
Uses
|
||||
At line 172 in file app\struct_code.s
|
||||
At line 191 in file app\struct_code.s
|
||||
Comment: led_loop used once
|
||||
loop_count_0_bits 00000062
|
||||
|
||||
Symbol: loop_count_0_bits
|
||||
Definitions
|
||||
At line 156 in file app\struct_code.s
|
||||
Uses
|
||||
At line 160 in file app\struct_code.s
|
||||
At line 162 in file app\struct_code.s
|
||||
|
||||
main 00000000
|
||||
|
||||
Symbol: main
|
||||
Definitions
|
||||
|
||||
|
||||
|
||||
ARM Macro Assembler Page 3 Alphabetic symbol ordering
|
||||
Relocatable symbols
|
||||
|
||||
At line 72 in file app\struct_code.s
|
||||
Uses
|
||||
At line 73 in file app\struct_code.s
|
||||
|
@ -515,32 +560,26 @@ Symbol: main_loop
|
|||
At line 78 in file app\struct_code.s
|
||||
Uses
|
||||
At line 140 in file app\struct_code.s
|
||||
At line 152 in file app\struct_code.s
|
||||
At line 179 in file app\struct_code.s
|
||||
At line 171 in file app\struct_code.s
|
||||
At line 198 in file app\struct_code.s
|
||||
|
||||
myCode 00000000
|
||||
|
||||
Symbol: myCode
|
||||
|
||||
|
||||
|
||||
ARM Macro Assembler Page 3 Alphabetic symbol ordering
|
||||
Relocatable symbols
|
||||
|
||||
Definitions
|
||||
At line 65 in file app\struct_code.s
|
||||
Uses
|
||||
None
|
||||
Comment: myCode unused
|
||||
write_bit_ascii 000000AC
|
||||
write_bit_ascii 000000C6
|
||||
|
||||
Symbol: write_bit_ascii
|
||||
Definitions
|
||||
At line 208 in file app\struct_code.s
|
||||
At line 227 in file app\struct_code.s
|
||||
Uses
|
||||
At line 138 in file app\struct_code.s
|
||||
Comment: write_bit_ascii used once
|
||||
16 symbols
|
||||
18 symbols
|
||||
|
||||
|
||||
|
||||
|
@ -555,7 +594,7 @@ Symbol: ADDR_7_SEG_BIN_DS3_0
|
|||
Uses
|
||||
At line 113 in file app\struct_code.s
|
||||
At line 149 in file app\struct_code.s
|
||||
At line 161 in file app\struct_code.s
|
||||
At line 180 in file app\struct_code.s
|
||||
|
||||
ADDR_BUTTONS 60000210
|
||||
|
||||
|
@ -580,7 +619,7 @@ Symbol: ADDR_LCD_ASCII
|
|||
At line 31 in file app\struct_code.s
|
||||
Uses
|
||||
At line 133 in file app\struct_code.s
|
||||
At line 198 in file app\struct_code.s
|
||||
At line 217 in file app\struct_code.s
|
||||
|
||||
ADDR_LCD_ASCII_2ND_LINE 60000314
|
||||
|
||||
|
@ -588,15 +627,15 @@ Symbol: ADDR_LCD_ASCII_2ND_LINE
|
|||
Definitions
|
||||
At line 33 in file app\struct_code.s
|
||||
Uses
|
||||
None
|
||||
Comment: ADDR_LCD_ASCII_2ND_LINE unused
|
||||
At line 166 in file app\struct_code.s
|
||||
Comment: ADDR_LCD_ASCII_2ND_LINE used once
|
||||
ADDR_LCD_ASCII_BIT_POS 60000302
|
||||
|
||||
Symbol: ADDR_LCD_ASCII_BIT_POS
|
||||
Definitions
|
||||
At line 32 in file app\struct_code.s
|
||||
Uses
|
||||
At line 210 in file app\struct_code.s
|
||||
At line 229 in file app\struct_code.s
|
||||
Comment: ADDR_LCD_ASCII_BIT_POS used once
|
||||
ADDR_LCD_COLOUR 60000340
|
||||
|
||||
|
@ -612,8 +651,8 @@ Symbol: ADDR_LCD_COLOUR
|
|||
ARM Macro Assembler Page 2 Alphabetic symbol ordering
|
||||
Absolute symbols
|
||||
|
||||
At line 155 in file app\struct_code.s
|
||||
At line 183 in file app\struct_code.s
|
||||
At line 174 in file app\struct_code.s
|
||||
At line 202 in file app\struct_code.s
|
||||
|
||||
ADDR_LED_31_0 60000100
|
||||
|
||||
|
@ -621,7 +660,7 @@ Symbol: ADDR_LED_31_0
|
|||
Definitions
|
||||
At line 28 in file app\struct_code.s
|
||||
Uses
|
||||
At line 174 in file app\struct_code.s
|
||||
At line 193 in file app\struct_code.s
|
||||
Comment: ADDR_LED_31_0 used once
|
||||
ASCII_DIGIT_CLEAR 00000000
|
||||
|
||||
|
@ -629,7 +668,7 @@ Symbol: ASCII_DIGIT_CLEAR
|
|||
Definitions
|
||||
At line 40 in file app\struct_code.s
|
||||
Uses
|
||||
At line 200 in file app\struct_code.s
|
||||
At line 219 in file app\struct_code.s
|
||||
Comment: ASCII_DIGIT_CLEAR used once
|
||||
ASCII_DIGIT_OFFSET 00000030
|
||||
|
||||
|
@ -637,8 +676,8 @@ Symbol: ASCII_DIGIT_OFFSET
|
|||
Definitions
|
||||
At line 44 in file app\struct_code.s
|
||||
Uses
|
||||
None
|
||||
Comment: ASCII_DIGIT_OFFSET unused
|
||||
At line 167 in file app\struct_code.s
|
||||
Comment: ASCII_DIGIT_OFFSET used once
|
||||
DISPLAY_COLOUR_BLUE 00000004
|
||||
|
||||
Symbol: DISPLAY_COLOUR_BLUE
|
||||
|
@ -646,7 +685,7 @@ Symbol: DISPLAY_COLOUR_BLUE
|
|||
At line 49 in file app\struct_code.s
|
||||
Uses
|
||||
At line 108 in file app\struct_code.s
|
||||
At line 187 in file app\struct_code.s
|
||||
At line 206 in file app\struct_code.s
|
||||
|
||||
DISPLAY_COLOUR_GREEN 00000002
|
||||
|
||||
|
@ -654,8 +693,8 @@ Symbol: DISPLAY_COLOUR_GREEN
|
|||
Definitions
|
||||
At line 48 in file app\struct_code.s
|
||||
Uses
|
||||
At line 156 in file app\struct_code.s
|
||||
At line 189 in file app\struct_code.s
|
||||
At line 175 in file app\struct_code.s
|
||||
At line 208 in file app\struct_code.s
|
||||
|
||||
DISPLAY_COLOUR_RED 00000000
|
||||
|
||||
|
@ -664,7 +703,7 @@ Symbol: DISPLAY_COLOUR_RED
|
|||
At line 47 in file app\struct_code.s
|
||||
Uses
|
||||
At line 144 in file app\struct_code.s
|
||||
At line 185 in file app\struct_code.s
|
||||
At line 204 in file app\struct_code.s
|
||||
|
||||
LCD_LAST_OFFSET 00000028
|
||||
|
||||
|
@ -678,7 +717,7 @@ ARM Macro Assembler Page 3 Alphabetic symbol ordering
|
|||
Absolute symbols
|
||||
|
||||
Uses
|
||||
At line 203 in file app\struct_code.s
|
||||
At line 222 in file app\struct_code.s
|
||||
Comment: LCD_LAST_OFFSET used once
|
||||
14 symbols
|
||||
|
||||
|
@ -704,4 +743,4 @@ Symbol: adc_init
|
|||
At line 75 in file app\struct_code.s
|
||||
Comment: adc_init used once
|
||||
2 symbols
|
||||
372 symbols in table
|
||||
374 symbols in table
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -27,9 +27,9 @@ Project File Date: 11/11/2022
|
|||
<h2>Output:</h2>
|
||||
*** Using Compiler 'V6.18', folder: 'C:\Keil_v5\ARM\ARMCLANG\Bin'
|
||||
Rebuild target 'Target 1'
|
||||
assembling struct_code.s...
|
||||
assembling datainit_ctboard.s...
|
||||
assembling startup_ctboard.s...
|
||||
assembling struct_code.s...
|
||||
app/adc.c(39): warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses]
|
||||
while (!ADC3->SR & 0x00000002) ;
|
||||
^ ~
|
||||
|
@ -43,13 +43,13 @@ app/adc.c(39): note: add parentheses around left hand side expression to silence
|
|||
( )
|
||||
1 warning generated.
|
||||
compiling adc.c...
|
||||
compiling hal_fmc.c...
|
||||
compiling system_ctboard.c...
|
||||
compiling hal_gpio.c...
|
||||
compiling hal_fmc.c...
|
||||
compiling hal_pwr.c...
|
||||
compiling hal_gpio.c...
|
||||
compiling hal_rcc.c...
|
||||
linking...
|
||||
Program Size: Code=3760 RO-data=436 RW-data=0 ZI-data=8192
|
||||
Program Size: Code=3796 RO-data=436 RW-data=0 ZI-data=8192
|
||||
".\build\strukt_code.axf" - 0 Error(s), 1 Warning(s).
|
||||
|
||||
<h2>Software Packages used:</h2>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<title>Static Call Graph - [.\build\strukt_code.axf]</title></head>
|
||||
<body><HR>
|
||||
<H1>Static Call Graph for image .\build\strukt_code.axf</H1><HR>
|
||||
<BR><P>#<CALLGRAPH># ARM Linker, 6180002: Last Updated: Fri Nov 11 10:30:52 2022
|
||||
<BR><P>#<CALLGRAPH># ARM Linker, 6180002: Last Updated: Fri Nov 11 11:11:10 2022
|
||||
<BR><P>
|
||||
<H3>Maximum Stack Usage = 132 bytes + Unknown(Cycles, Untraceable Function Pointers)</H3><H3>
|
||||
Call chain for Maximum Stack Depth:</H3>
|
||||
|
@ -606,7 +606,7 @@ Global Symbols
|
|||
<BR>[Called By]<UL><LI><a href="#[68]">>></a> system_enter_run
|
||||
</UL>
|
||||
|
||||
<P><STRONG><a name="[65]"></a>main</STRONG> (Thumb, 186 bytes, Stack size 0 bytes, struct_code.o(myCode))
|
||||
<P><STRONG><a name="[65]"></a>main</STRONG> (Thumb, 212 bytes, Stack size 0 bytes, struct_code.o(myCode))
|
||||
<BR><BR>[Stack]<UL><LI>Max Depth = 16<LI>Call Chain = main ⇒ adc_init
|
||||
</UL>
|
||||
<BR>[Calls]<UL><LI><a href="#[72]">>></a> adc_get_value
|
||||
|
|
|
@ -135,12 +135,12 @@ Image Symbol Table
|
|||
__arm_cp.3_5 0x08000f00 Number 4 hal_rcc.o(.text)
|
||||
__arm_cp.4_0 0x08000f54 Number 4 hal_rcc.o(.text)
|
||||
__arm_cp.4_1 0x08000f58 Number 4 hal_rcc.o(.text)
|
||||
myCode 0x08000f5c Section 256 struct_code.o(myCode)
|
||||
DISPLAY_BIT 0x0800105c Data 4 struct_code.o(myConstants)
|
||||
myConstants 0x0800105c Section 8 struct_code.o(myConstants)
|
||||
DISPLAY_2_BIT 0x08001060 Data 1 struct_code.o(myConstants)
|
||||
DISPLAY_4_BIT 0x08001061 Data 1 struct_code.o(myConstants)
|
||||
DISPLAY_8_BIT 0x08001062 Data 1 struct_code.o(myConstants)
|
||||
myCode 0x08000f5c Section 292 struct_code.o(myCode)
|
||||
DISPLAY_BIT 0x08001080 Data 4 struct_code.o(myConstants)
|
||||
myConstants 0x08001080 Section 8 struct_code.o(myConstants)
|
||||
DISPLAY_2_BIT 0x08001084 Data 1 struct_code.o(myConstants)
|
||||
DISPLAY_4_BIT 0x08001085 Data 1 struct_code.o(myConstants)
|
||||
DISPLAY_8_BIT 0x08001086 Data 1 struct_code.o(myConstants)
|
||||
STACK 0x20000000 Section 8192 startup_ctboard.o(STACK)
|
||||
__initial_sp 0x20002000 Data 0 startup_ctboard.o(STACK)
|
||||
|
||||
|
@ -294,8 +294,8 @@ Image Symbol Table
|
|||
hal_rcc_set_osc 0x08000d9d Thumb Code 108 hal_rcc.o(.text)
|
||||
hal_rcc_setup_pll 0x08000e11 Thumb Code 220 hal_rcc.o(.text)
|
||||
hal_rcc_setup_clock 0x08000f05 Thumb Code 80 hal_rcc.o(.text)
|
||||
main 0x08000f5d Thumb Code 186 struct_code.o(myCode)
|
||||
Image$$RO$$Limit 0x08001064 Number 0 anon$$obj.o ABSOLUTE
|
||||
main 0x08000f5d Thumb Code 212 struct_code.o(myCode)
|
||||
Image$$RO$$Limit 0x08001088 Number 0 anon$$obj.o ABSOLUTE
|
||||
Image$$RW$$Base 0x20000000 Number 0 anon$$obj.o ABSOLUTE
|
||||
Image$$ZI$$Base 0x20000000 Number 0 anon$$obj.o ABSOLUTE
|
||||
Stack_Mem 0x20000000 Data 8192 startup_ctboard.o(STACK)
|
||||
|
@ -309,9 +309,9 @@ Memory Map of the image
|
|||
|
||||
Image Entry point : 0x080002a1
|
||||
|
||||
Load Region LR_1 (Base: 0x08000000, Size: 0x00001064, Max: 0xffffffff, ABSOLUTE)
|
||||
Load Region LR_1 (Base: 0x08000000, Size: 0x00001088, Max: 0xffffffff, ABSOLUTE)
|
||||
|
||||
Execution Region ER_RO (Exec base: 0x08000000, Load base: 0x08000000, Size: 0x00001064, Max: 0xffffffff, ABSOLUTE)
|
||||
Execution Region ER_RO (Exec base: 0x08000000, Load base: 0x08000000, Size: 0x00001088, Max: 0xffffffff, ABSOLUTE)
|
||||
|
||||
Exec Addr Load Addr Size Type Attr Idx E Section Name Object
|
||||
|
||||
|
@ -325,16 +325,16 @@ Memory Map of the image
|
|||
0x0800057c 0x0800057c 0x00000604 Code RO 42 .text hal_gpio.o
|
||||
0x08000b80 0x08000b80 0x000000ac Code RO 50 .text hal_pwr.o
|
||||
0x08000c2c 0x08000c2c 0x00000330 Code RO 58 .text hal_rcc.o
|
||||
0x08000f5c 0x08000f5c 0x00000100 Code RO 9 * myCode struct_code.o
|
||||
0x0800105c 0x0800105c 0x00000008 Data RO 8 myConstants struct_code.o
|
||||
0x08000f5c 0x08000f5c 0x00000124 Code RO 9 * myCode struct_code.o
|
||||
0x08001080 0x08001080 0x00000008 Data RO 8 myConstants struct_code.o
|
||||
|
||||
|
||||
Execution Region ER_RW (Exec base: 0x20000000, Load base: 0x08001064, Size: 0x00000000, Max: 0xffffffff, ABSOLUTE)
|
||||
Execution Region ER_RW (Exec base: 0x20000000, Load base: 0x08001088, Size: 0x00000000, Max: 0xffffffff, ABSOLUTE)
|
||||
|
||||
**** No section assigned to this execution region ****
|
||||
|
||||
|
||||
Execution Region ER_ZI (Exec base: 0x20000000, Load base: 0x08001064, Size: 0x00002000, Max: 0xffffffff, ABSOLUTE)
|
||||
Execution Region ER_ZI (Exec base: 0x20000000, Load base: 0x08001088, Size: 0x00002000, Max: 0xffffffff, ABSOLUTE)
|
||||
|
||||
Exec Addr Load Addr Size Type Attr Idx E Section Name Object
|
||||
|
||||
|
@ -355,11 +355,11 @@ Image component sizes
|
|||
172 20 0 0 0 2135 hal_pwr.o
|
||||
816 168 0 0 0 5363 hal_rcc.o
|
||||
36 8 428 0 8192 832 startup_ctboard.o
|
||||
256 70 8 0 0 456 struct_code.o
|
||||
292 80 8 0 0 472 struct_code.o
|
||||
354 60 0 0 0 6774 system_ctboard.o
|
||||
|
||||
----------------------------------------------------------------------
|
||||
3760 504 436 0 8192 34011 Object Totals
|
||||
3796 514 436 0 8192 34027 Object Totals
|
||||
0 0 0 0 0 0 (incl. Generated)
|
||||
2 0 0 0 0 0 (incl. Padding)
|
||||
|
||||
|
@ -374,15 +374,15 @@ Image component sizes
|
|||
|
||||
Code (inc. data) RO Data RW Data ZI Data Debug
|
||||
|
||||
3760 504 436 0 8192 33807 Grand Totals
|
||||
3760 504 436 0 8192 33807 ELF Image Totals
|
||||
3760 504 436 0 0 0 ROM Totals
|
||||
3796 514 436 0 8192 33823 Grand Totals
|
||||
3796 514 436 0 8192 33823 ELF Image Totals
|
||||
3796 514 436 0 0 0 ROM Totals
|
||||
|
||||
==============================================================================
|
||||
|
||||
Total RO Size (Code + RO Data) 4196 ( 4.10kB)
|
||||
Total RO Size (Code + RO Data) 4232 ( 4.13kB)
|
||||
Total RW Size (RW Data + ZI Data) 8192 ( 8.00kB)
|
||||
Total ROM Size (Code + RO Data + RW Data) 4196 ( 4.10kB)
|
||||
Total ROM Size (Code + RO Data + RW Data) 4232 ( 4.13kB)
|
||||
|
||||
==============================================================================
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ CompilerVersion: 6180000::V6.18::ARMCLANG
|
|||
F (.\app\adc.c)(0x636DF2E9)(-xc -std=c99 --target=arm-arm-none-eabi -mcpu=cortex-m0 -c
-fno-rtti -funsigned-char
-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/adc.o -MD)
|
||||
I (C:\Users\roman\AppData\Local\Arm\Packs\InES\CTBoard14_DFP\4.0.2\Device\Include\reg_stm32f4xx.h)(0x5C597514)
|
||||
I (C:\Keil_v5\ARM\ARMCLANG\include\stdint.h)(0x6252B538)
|
||||
F (.\app\struct_code.s)(0x636E164A)(--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\struct_code.lst
--xref -o .\build\struct_code.o
--depend .\build\struct_code.d)
|
||||
F (.\app\struct_code.s)(0x636E1FB6)(--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\struct_code.lst
--xref -o .\build\struct_code.o
--depend .\build\struct_code.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/system_ctboard.c)(0x5C597514)(-xc -std=c99 --target=arm-arm-none-eabi -mcpu=cortex-m0 -c
-fno-rtti -funsigned-char
-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
|
@ -148,7 +148,24 @@
|
|||
<Name>UL2CM3(-S0 -C0 -P0 -FD20000000 -FC1000 -FN1 -FF0STM32F4xx_2048 -FS08000000 -FL0200000 -FP0($$Device:CT_Board_HS14_M0$Flash\STM32F4xx_2048.FLM))</Name>
|
||||
</SetRegEntry>
|
||||
</TargetDriverDllRegistry>
|
||||
<Breakpoint/>
|
||||
<Breakpoint>
|
||||
<Bp>
|
||||
<Number>0</Number>
|
||||
<Type>0</Type>
|
||||
<LineNumber>169</LineNumber>
|
||||
<EnabledFlag>1</EnabledFlag>
|
||||
<Address>134221774</Address>
|
||||
<ByteObject>0</ByteObject>
|
||||
<HtxType>0</HtxType>
|
||||
<ManyObjects>0</ManyObjects>
|
||||
<SizeOfObject>0</SizeOfObject>
|
||||
<BreakByAccess>0</BreakByAccess>
|
||||
<BreakIfRCount>1</BreakIfRCount>
|
||||
<Filename>.\app\struct_code.s</Filename>
|
||||
<ExecCommand></ExecCommand>
|
||||
<Expression>\\strukt_code\app/struct_code.s\169</Expression>
|
||||
</Bp>
|
||||
</Breakpoint>
|
||||
<Tracepoint>
|
||||
<THDelay>0</THDelay>
|
||||
</Tracepoint>
|
||||
|
|
Loading…
Reference in New Issue