solved Task 3b

This commit is contained in:
Schrom01 2022-11-11 09:45:39 +01:00
parent 2683646954
commit a7f58af664
10 changed files with 276 additions and 254 deletions

View File

@ -77,6 +77,9 @@ main PROC
main_loop
; STUDENTS: To be programmed
; Clear LCD
BL clear_lcd_colour
; Read ADC Value to R0
BL adc_get_value
@ -105,56 +108,64 @@ case_blue
LDR R4, =DISPLAY_COLOUR_BLUE
LDR R5, =0xffff
STRH R5, [R3, R4]
LDR R4, =DISPLAY_COLOUR_RED
LDR R5, =0x0000
STRH R5, [R3, R4]
LDR R4, =DISPLAY_COLOUR_GREEN
LDR R5, =0x0000
STRH R5, [R3, R4]
; Show Diff on 7-Segment
LDR R3, =ADDR_7_SEG_BIN_DS3_0
STRB R2, [R3]
B end_cases
B main_loop
case_red
; Make LCD Display Red
LDR R3, =ADDR_LCD_COLOUR
LDR R4, =DISPLAY_COLOUR_RED
LDR R5, =0xffff
STRH R5, [R3, R4]
LDR R4, =DISPLAY_COLOUR_BLUE
LDR R5, =0x0000
STRH R5, [R3, R4]
LDR R4, =DISPLAY_COLOUR_GREEN
LDR R5, =0x0000
STRH R5, [R3, R4]
; Show Diff on 7-Segment
LDR R3, =ADDR_7_SEG_BIN_DS3_0
STRB R2, [R3]
B end_cases
B main_loop
case_green
; Make LCD Display Green
LDR R3, =ADDR_LCD_COLOUR
LDR R4, =DISPLAY_COLOUR_GREEN
LDR R5, =0xffff
STRH R5, [R3, R4]
LDR R4, =DISPLAY_COLOUR_RED
LDR R5, =0x0000
STRH R5, [R3, R4]
LDR R4, =DISPLAY_COLOUR_BLUE
LDR R5, =0x0000
STRH R5, [R3, R4]
; Show ADC Value on 7-Semgment
LDR R3, =ADDR_7_SEG_BIN_DS3_0
STRB R0, [R3]
LDR R1, =0x0 ; Register to show on LEDs
LDR R2, =0x1 ; Value 0x1
LSRS R0, R0, #3 ; Counter
led_loop
BEQ end_led_loop
LSLS R1, R2
ORRS R1, R1, R2
SUBS R0, R0, R2
B led_loop
end_led_loop
LDR R0, =ADDR_LED_31_0
STR R1, [R0]
end_cases
; END: To be programmed
B main_loop
clear_lcd_colour
PUSH {R0, R1, R2}
LDR R0, =ADDR_LCD_COLOUR
LDR R2, =0x0
LDR R1, =DISPLAY_COLOUR_RED
STRH R2, [R0, R1]
LDR R1, =DISPLAY_COLOUR_BLUE
STRH R2, [R0, R1]
LDR R1, =DISPLAY_COLOUR_GREEN
STRH R2, [R0, R1]
POP {R0, R1, R2}
BX LR
clear_lcd
PUSH {R0, R1, R2}

View File

@ -142,151 +142,164 @@ 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 F832 BL clear_lcd
76 00000004 F000 F837 BL clear_lcd
77 00000008
78 00000008 main_loop
79 00000008 ; STUDENTS: To be programmed
80 00000008
81 00000008 ; Read ADC Value to R0
82 00000008 F7FF FFFE BL adc_get_value
81 00000008 ; Clear LCD
82 00000008 F000 F82A BL clear_lcd_colour
83 0000000C
84 0000000C ; check T0
85 0000000C 4920 LDR R1, =ADDR_BUTTONS
86 0000000E 7809 LDRB R1, [R1]
87 00000010 4A20 LDR R2, =0x01
88 00000012 4211 TST R1, R2
89 00000014 D11D BNE case_green ; If T0 is pressed:
84 0000000C ; Read ADC Value to R0
85 0000000C F7FF FFFE BL adc_get_value
86 00000010
87 00000010 ; check T0
88 00000010 4922 LDR R1, =ADDR_BUTTONS
89 00000012 7809 LDRB R1, [R1]
90 00000014 4A22 LDR R2, =0x01
91 00000016 4211 TST R1, R2
92 00000018 D111 BNE case_green ; If T0 is pressed:
goto case_green, e
lse: continue
90 00000016
91 00000016 ; Else (T0 is not pressed):
92 00000016
93 00000016 ; Read 8-bit value from DIP-Switch 7-0 to R1
94 00000016 4920 LDR R1, =ADDR_DIP_SWITCH_7_0
95 00000018 7809 LDRB R1, [R1]
96 0000001A
97 0000001A ; Calc diff: DIP-Switch-7-0 - ADC-Value
98 0000001A 1A0A SUBS R2, R1, R0
99 0000001C DB0C BLT case_red ; IF diff >= 0: con
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 4922 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
101 0000001E 1A0A SUBS R2, R1, R0
102 00000020 DB06 BLT case_red ; IF diff >= 0: con
tinue case blue, el
se: goto case red
100 0000001E
101 0000001E
102 0000001E case_blue
103 0000001E ; Make LCD Display Blue
104 0000001E 4B1F LDR R3, =ADDR_LCD_COLOUR
105 00000020 4C1F LDR R4, =DISPLAY_COLOUR_BLUE
106 00000022 4D20 LDR R5, =0xffff
107 00000024 531D STRH R5, [R3, R4]
108 00000026 4C20 LDR R4, =DISPLAY_COLOUR_RED
109 00000028 4D1F LDR R5, =0x0000
110 0000002A 531D STRH R5, [R3, R4]
111 0000002C 4C1F LDR R4, =DISPLAY_COLOUR_GREEN
112 0000002E 4D1E LDR R5, =0x0000
113 00000030 531D STRH R5, [R3, R4]
114 00000032
115 00000032 ; Show Diff on 7-Segment
116 00000032 4B1F LDR R3, =ADDR_7_SEG_BIN_DS3_0
117 00000034 701A STRB R2, [R3]
118 00000036
119 00000036 E018 B end_cases
120 00000038 case_red
121 00000038 ; Make LCD Display Red
122 00000038 4B18 LDR R3, =ADDR_LCD_COLOUR
103 00000022
104 00000022
105 00000022 case_blue
106 00000022 ; Make LCD Display Blue
107 00000022 4B21 LDR R3, =ADDR_LCD_COLOUR
108 00000024 4C21 LDR R4, =DISPLAY_COLOUR_BLUE
109 00000026 4D22 LDR R5, =0xffff
110 00000028 531D STRH R5, [R3, R4]
111 0000002A
112 0000002A ; Show Diff on 7-Segment
113 0000002A 4B22 LDR R3, =ADDR_7_SEG_BIN_DS3_0
114 0000002C 701A STRB R2, [R3]
115 0000002E
116 0000002E E7EB B main_loop
117 00000030 case_red
118 00000030 ; Make LCD Display Red
119 00000030 4B1D LDR R3, =ADDR_LCD_COLOUR
120 00000032 4C21 LDR R4, =DISPLAY_COLOUR_RED
121 00000034 4D1E LDR R5, =0xffff
122 00000036 531D STRH R5, [R3, R4]
ARM Macro Assembler Page 4
123 0000003A 4C1B LDR R4, =DISPLAY_COLOUR_RED
124 0000003C 4D19 LDR R5, =0xffff
125 0000003E 531D STRH R5, [R3, R4]
126 00000040 4C17 LDR R4, =DISPLAY_COLOUR_BLUE
127 00000042 4D19 LDR R5, =0x0000
128 00000044 531D STRH R5, [R3, R4]
129 00000046 4C19 LDR R4, =DISPLAY_COLOUR_GREEN
130 00000048 4D17 LDR R5, =0x0000
131 0000004A 531D STRH R5, [R3, R4]
132 0000004C
133 0000004C ; Show Diff on 7-Segment
134 0000004C 4B18 LDR R3, =ADDR_7_SEG_BIN_DS3_0
135 0000004E 701A STRB R2, [R3]
136 00000050
137 00000050 E00B B end_cases
138 00000052 case_green
139 00000052 ; Make LCD Display Green
140 00000052 4B12 LDR R3, =ADDR_LCD_COLOUR
141 00000054 4C15 LDR R4, =DISPLAY_COLOUR_GREEN
142 00000056 4D13 LDR R5, =0xffff
143 00000058 531D STRH R5, [R3, R4]
144 0000005A 4C13 LDR R4, =DISPLAY_COLOUR_RED
145 0000005C 4D12 LDR R5, =0x0000
146 0000005E 531D STRH R5, [R3, R4]
147 00000060 4C0F LDR R4, =DISPLAY_COLOUR_BLUE
148 00000062 4D11 LDR R5, =0x0000
149 00000064 531D STRH R5, [R3, R4]
150 00000066
151 00000066 ; Show ADC Value on 7-Semgment
152 00000066 4B12 LDR R3, =ADDR_7_SEG_BIN_DS3_0
153 00000068 7018 STRB R0, [R3]
154 0000006A
155 0000006A end_cases
156 0000006A ; END: To be programmed
157 0000006A E7CD B main_loop
158 0000006C
159 0000006C clear_lcd
160 0000006C B407 PUSH {R0, R1, R2}
161 0000006E 4A0E LDR R2, =0x0
162 00000070 clear_lcd_loop
163 00000070 4810 LDR R0, =ADDR_LCD_ASCII
164 00000072 1880 ADDS R0, R0, R2 ; add index to lcd
123 00000038
124 00000038 ; Show Diff on 7-Segment
125 00000038 4B1E LDR R3, =ADDR_7_SEG_BIN_DS3_0
126 0000003A 701A STRB R2, [R3]
127 0000003C
128 0000003C E7E4 B main_loop
129 0000003E case_green
130 0000003E ; Make LCD Display Green
131 0000003E 4B1A LDR R3, =ADDR_LCD_COLOUR
132 00000040 4C1E LDR R4, =DISPLAY_COLOUR_GREEN
133 00000042 4D1B LDR R5, =0xffff
134 00000044 531D STRH R5, [R3, R4]
135 00000046
136 00000046 ; Show ADC Value on 7-Semgment
137 00000046 4B1B LDR R3, =ADDR_7_SEG_BIN_DS3_0
138 00000048 7018 STRB R0, [R3]
139 0000004A
140 0000004A 491B LDR R1, =0x0 ; Register to show
on LEDs
141 0000004C 4A14 LDR R2, =0x1 ; Value 0x1
142 0000004E 08C0 LSRS R0, R0, #3 ; Counter
143 00000050 led_loop
144 00000050 D003 BEQ end_led_loop
145 00000052 4091 LSLS R1, R2
146 00000054 4311 ORRS R1, R1, R2
147 00000056 1A80 SUBS R0, R0, R2
148 00000058 E7FA B led_loop
149 0000005A end_led_loop
150 0000005A 4819 LDR R0, =ADDR_LED_31_0
151 0000005C 6001 STR R1, [R0]
152 0000005E
153 0000005E
154 0000005E ; END: To be programmed
155 0000005E E7D3 B main_loop
156 00000060
157 00000060 clear_lcd_colour
158 00000060 B407 PUSH {R0, R1, R2}
159 00000062 4811 LDR R0, =ADDR_LCD_COLOUR
160 00000064 4A14 LDR R2, =0x0
161 00000066 4914 LDR R1, =DISPLAY_COLOUR_RED
162 00000068 5242 STRH R2, [R0, R1]
163 0000006A 4910 LDR R1, =DISPLAY_COLOUR_BLUE
164 0000006C 5242 STRH R2, [R0, R1]
165 0000006E 4913 LDR R1, =DISPLAY_COLOUR_GREEN
166 00000070 5242 STRH R2, [R0, R1]
167 00000072 BC07 POP {R0, R1, R2}
168 00000074 4770 BX LR
169 00000076
170 00000076 clear_lcd
171 00000076 B407 PUSH {R0, R1, R2}
172 00000078 4A0F LDR R2, =0x0
173 0000007A clear_lcd_loop
174 0000007A 4812 LDR R0, =ADDR_LCD_ASCII
175 0000007C 1880 ADDS R0, R0, R2 ; add index to lcd
offset
165 00000074 490C LDR R1, =ASCII_DIGIT_CLEAR
166 00000076 6001 STR R1, [R0]
167 00000078 1D12 ADDS R2, R2, #4 ; increas index by
176 0000007E 490E LDR R1, =ASCII_DIGIT_CLEAR
177 00000080 6001 STR R1, [R0]
178 00000082 1D12 ADDS R2, R2, #4 ; increas index by
4 (word step)
168 0000007A 2A28 CMP R2, #LCD_LAST_OFFSET ; until in
dex reached last lc
d point
169 0000007C D4F8 BMI clear_lcd_loop
170 0000007E BC07 POP {R0, R1, R2}
171 00000080 4770 BX LR
172 00000082
173 00000082 write_bit_ascii
174 00000082 B403 PUSH {R0, R1}
175 00000084 480C LDR R0, =ADDR_LCD_ASCII_BIT_POS
176 00000086 490D LDR R1, =DISPLAY_BIT
177 00000088 6809 LDR R1, [R1]
ARM Macro Assembler Page 5
178 0000008A 6001 STR R1, [R0]
179 0000008C BC03 POP {R0, R1}
180 0000008E 4770 BX LR
181 00000090
182 00000090 ENDP
183 00000090 ALIGN
184 00000090
185 00000090
186 00000090 ; ------------------------------------------------------
179 00000084 2A28 CMP R2, #LCD_LAST_OFFSET ; until in
dex reached last lc
d point
180 00000086 D4F8 BMI clear_lcd_loop
181 00000088 BC07 POP {R0, R1, R2}
182 0000008A 4770 BX LR
183 0000008C
184 0000008C write_bit_ascii
185 0000008C B403 PUSH {R0, R1}
186 0000008E 480E LDR R0, =ADDR_LCD_ASCII_BIT_POS
187 00000090 490E LDR R1, =DISPLAY_BIT
188 00000092 6809 LDR R1, [R1]
189 00000094 6001 STR R1, [R0]
190 00000096 BC03 POP {R0, R1}
191 00000098 4770 BX LR
192 0000009A
193 0000009A ENDP
194 0000009A 00 00 ALIGN
195 0000009C
196 0000009C
197 0000009C ; ------------------------------------------------------
------------
187 00000090 ; End of code
188 00000090 ; ------------------------------------------------------
198 0000009C ; End of code
199 0000009C ; ------------------------------------------------------
------------
189 00000090 END
200 0000009C END
60000210
00000001
60000200
60000340
00000004
0000FFFF
60000114
00000000
00000002
60000114
60000100
60000300
60000302
00000000
@ -333,7 +346,7 @@ Symbol: DISPLAY_BIT
Definitions
At line 56 in file app\struct_code.s
Uses
At line 176 in file app\struct_code.s
At line 187 in file app\struct_code.s
Comment: DISPLAY_BIT used once
myConstants 00000000
@ -350,55 +363,76 @@ Comment: myConstants unused
ARM Macro Assembler Page 1 Alphabetic symbol ordering
Relocatable symbols
case_blue 0000001E
case_blue 00000022
Symbol: case_blue
Definitions
At line 102 in file app\struct_code.s
At line 105 in file app\struct_code.s
Uses
None
Comment: case_blue unused
case_green 00000052
case_green 0000003E
Symbol: case_green
Definitions
At line 138 in file app\struct_code.s
At line 129 in file app\struct_code.s
Uses
At line 89 in file app\struct_code.s
At line 92 in file app\struct_code.s
Comment: case_green used once
case_red 00000038
case_red 00000030
Symbol: case_red
Definitions
At line 120 in file app\struct_code.s
At line 117 in file app\struct_code.s
Uses
At line 99 in file app\struct_code.s
At line 102 in file app\struct_code.s
Comment: case_red used once
clear_lcd 0000006C
clear_lcd 00000076
Symbol: clear_lcd
Definitions
At line 159 in file app\struct_code.s
At line 170 in file app\struct_code.s
Uses
At line 76 in file app\struct_code.s
Comment: clear_lcd used once
clear_lcd_loop 00000070
clear_lcd_colour 00000060
Symbol: clear_lcd_colour
Definitions
At line 157 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 0000007A
Symbol: clear_lcd_loop
Definitions
At line 162 in file app\struct_code.s
At line 173 in file app\struct_code.s
Uses
At line 169 in file app\struct_code.s
At line 180 in file app\struct_code.s
Comment: clear_lcd_loop used once
end_cases 0000006A
end_led_loop 0000005A
Symbol: end_cases
Symbol: end_led_loop
Definitions
At line 155 in file app\struct_code.s
At line 149 in file app\struct_code.s
Uses
At line 119 in file app\struct_code.s
At line 137 in file app\struct_code.s
At line 144 in file app\struct_code.s
Comment: end_led_loop used once
led_loop 00000050
Symbol: led_loop
ARM Macro Assembler Page 2 Alphabetic symbol ordering
Relocatable symbols
Definitions
At line 143 in file app\struct_code.s
Uses
At line 148 in file app\struct_code.s
Comment: led_loop used once
main 00000000
Symbol: main
@ -409,18 +443,14 @@ Symbol: main
Comment: main used once
main_loop 00000008
ARM Macro Assembler Page 2 Alphabetic symbol ordering
Relocatable symbols
Symbol: main_loop
Definitions
At line 78 in file app\struct_code.s
Uses
At line 157 in file app\struct_code.s
Comment: main_loop used once
At line 116 in file app\struct_code.s
At line 128 in file app\struct_code.s
At line 155 in file app\struct_code.s
myCode 00000000
Symbol: myCode
@ -429,15 +459,15 @@ Symbol: myCode
Uses
None
Comment: myCode unused
write_bit_ascii 00000082
write_bit_ascii 0000008C
Symbol: write_bit_ascii
Definitions
At line 173 in file app\struct_code.s
At line 184 in file app\struct_code.s
Uses
None
Comment: write_bit_ascii unused
10 symbols
12 symbols
@ -450,9 +480,9 @@ Symbol: ADDR_7_SEG_BIN_DS3_0
Definitions
At line 29 in file app\struct_code.s
Uses
At line 116 in file app\struct_code.s
At line 134 in file app\struct_code.s
At line 152 in file app\struct_code.s
At line 113 in file app\struct_code.s
At line 125 in file app\struct_code.s
At line 137 in file app\struct_code.s
ADDR_BUTTONS 60000210
@ -460,7 +490,7 @@ Symbol: ADDR_BUTTONS
Definitions
At line 25 in file app\struct_code.s
Uses
At line 85 in file app\struct_code.s
At line 88 in file app\struct_code.s
Comment: ADDR_BUTTONS used once
ADDR_DIP_SWITCH_7_0 60000200
@ -468,7 +498,7 @@ Symbol: ADDR_DIP_SWITCH_7_0
Definitions
At line 24 in file app\struct_code.s
Uses
At line 94 in file app\struct_code.s
At line 97 in file app\struct_code.s
Comment: ADDR_DIP_SWITCH_7_0 used once
ADDR_LCD_ASCII 60000300
@ -476,7 +506,7 @@ Symbol: ADDR_LCD_ASCII
Definitions
At line 31 in file app\struct_code.s
Uses
At line 163 in file app\struct_code.s
At line 174 in file app\struct_code.s
Comment: ADDR_LCD_ASCII used once
ADDR_LCD_ASCII_2ND_LINE 60000314
@ -492,7 +522,7 @@ Symbol: ADDR_LCD_ASCII_BIT_POS
Definitions
At line 32 in file app\struct_code.s
Uses
At line 175 in file app\struct_code.s
At line 186 in file app\struct_code.s
Comment: ADDR_LCD_ASCII_BIT_POS used once
ADDR_LCD_COLOUR 60000340
@ -500,15 +530,16 @@ Symbol: ADDR_LCD_COLOUR
Definitions
At line 30 in file app\struct_code.s
Uses
At line 104 in file app\struct_code.s
At line 122 in file app\struct_code.s
At line 140 in file app\struct_code.s
At line 107 in file app\struct_code.s
At line 119 in file app\struct_code.s
At line 131 in file app\struct_code.s
ARM Macro Assembler Page 2 Alphabetic symbol ordering
Absolute symbols
At line 159 in file app\struct_code.s
ADDR_LED_31_0 60000100
@ -516,15 +547,15 @@ Symbol: ADDR_LED_31_0
Definitions
At line 28 in file app\struct_code.s
Uses
None
Comment: ADDR_LED_31_0 unused
At line 150 in file app\struct_code.s
Comment: ADDR_LED_31_0 used once
ASCII_DIGIT_CLEAR 00000000
Symbol: ASCII_DIGIT_CLEAR
Definitions
At line 40 in file app\struct_code.s
Uses
At line 165 in file app\struct_code.s
At line 176 in file app\struct_code.s
Comment: ASCII_DIGIT_CLEAR used once
ASCII_DIGIT_OFFSET 00000030
@ -540,9 +571,8 @@ Symbol: DISPLAY_COLOUR_BLUE
Definitions
At line 49 in file app\struct_code.s
Uses
At line 105 in file app\struct_code.s
At line 126 in file app\struct_code.s
At line 147 in file app\struct_code.s
At line 108 in file app\struct_code.s
At line 163 in file app\struct_code.s
DISPLAY_COLOUR_GREEN 00000002
@ -550,9 +580,8 @@ Symbol: DISPLAY_COLOUR_GREEN
Definitions
At line 48 in file app\struct_code.s
Uses
At line 111 in file app\struct_code.s
At line 129 in file app\struct_code.s
At line 141 in file app\struct_code.s
At line 132 in file app\struct_code.s
At line 165 in file app\struct_code.s
DISPLAY_COLOUR_RED 00000000
@ -560,23 +589,22 @@ Symbol: DISPLAY_COLOUR_RED
Definitions
At line 47 in file app\struct_code.s
Uses
At line 108 in file app\struct_code.s
At line 123 in file app\struct_code.s
At line 144 in file app\struct_code.s
At line 120 in file app\struct_code.s
At line 161 in file app\struct_code.s
LCD_LAST_OFFSET 00000028
Symbol: LCD_LAST_OFFSET
Definitions
At line 41 in file app\struct_code.s
Uses
ARM Macro Assembler Page 3 Alphabetic symbol ordering
Absolute symbols
At line 41 in file app\struct_code.s
Uses
At line 168 in file app\struct_code.s
At line 179 in file app\struct_code.s
Comment: LCD_LAST_OFFSET used once
14 symbols
@ -591,7 +619,7 @@ Symbol: adc_get_value
Definitions
At line 70 in file app\struct_code.s
Uses
At line 82 in file app\struct_code.s
At line 85 in file app\struct_code.s
Comment: adc_get_value used once
adc_init 00000000
@ -602,4 +630,4 @@ Symbol: adc_init
At line 75 in file app\struct_code.s
Comment: adc_init used once
2 symbols
366 symbols in table
368 symbols in table

Binary file not shown.

Binary file not shown.

View File

@ -28,8 +28,10 @@ Project File Date: 11/11/2022
*** Using Compiler 'V6.18', folder: 'C:\Keil_v5\ARM\ARMCLANG\Bin'
Rebuild target 'Target 1'
assembling datainit_ctboard.s...
assembling startup_ctboard.s...
assembling struct_code.s...
assembling startup_ctboard.s...
compiling hal_fmc.c...
compiling system_ctboard.c...
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 +45,11 @@ app/adc.c(39): note: add parentheses around left hand side expression to silence
( )
1 warning generated.
compiling adc.c...
compiling system_ctboard.c...
compiling hal_fmc.c...
compiling hal_pwr.c...
compiling hal_rcc.c...
compiling hal_gpio.c...
compiling hal_rcc.c...
linking...
Program Size: Code=3696 RO-data=436 RW-data=0 ZI-data=8192
Program Size: Code=3712 RO-data=436 RW-data=0 ZI-data=8192
".\build\strukt_code.axf" - 0 Error(s), 1 Warning(s).
<h2>Software Packages used:</h2>
@ -73,37 +73,37 @@ Package Vendor: InES
<h2>Collection of Component Files used:</h2>
* Component: InES::Device:Startup:4.0.1
Include file: Device/Include/reg_ctboard.h
Include file: Device/Include/m0/platform_ctboard.h
Include file: Device/Include/reg_stm32f4xx.h
Include file: Device/Include/reg_ctboard.h
Include file: Device/Include/system_ctboard.h
Source file: Device/Source/system_ctboard.c
Source file: Device/Source/startup_ctboard.s
Source file: Device/Source/system_ctboard.c
Source file: Device/Source/datainit_ctboard.s
* Component: InES::HAL:FMC:3.0.1
Include file: HAL/Include/hal_common.h
Include file: Device/Include/reg_stm32f4xx.h
Include file: HAL/Include/hal_common.h
Source file: HAL/Source/hal_fmc.c
Include file: HAL/Include/hal_fmc.h
* Component: InES::HAL:GPIO:4.0.1
Source file: HAL/Source/hal_gpio.c
Include file: HAL/Include/hal_common.h
Include file: Device/Include/reg_stm32f4xx.h
Include file: HAL/Include/hal_gpio.h
Include file: HAL/Include/hal_common.h
* Component: InES::HAL:PWR:2.2.0
Include file: HAL/Include/hal_common.h
Include file: Device/Include/reg_stm32f4xx.h
Include file: HAL/Include/hal_pwr.h
Source file: HAL/Source/hal_pwr.c
Include file: Device/Include/reg_stm32f4xx.h
* Component: InES::HAL:RCC:4.0.1
Source file: HAL/Source/hal_rcc.c
Include file: HAL/Include/hal_common.h
Include file: Device/Include/reg_stm32f4xx.h
Include file: HAL/Include/hal_rcc.h
Include file: Device/Include/reg_stm32f4xx.h
Source file: HAL/Source/hal_rcc.c
Build Time Elapsed: 00:00:00
</pre>
</body>

View File

@ -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>#&#060CALLGRAPH&#062# ARM Linker, 6180002: Last Updated: Fri Nov 11 09:07:05 2022
<BR><P>#&#060CALLGRAPH&#062# ARM Linker, 6180002: Last Updated: Fri Nov 11 09:44:15 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]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;system_enter_run
</UL>
<P><STRONG><a name="[65]"></a>main</STRONG> (Thumb, 144 bytes, Stack size 0 bytes, struct_code.o(myCode))
<P><STRONG><a name="[65]"></a>main</STRONG> (Thumb, 154 bytes, Stack size 0 bytes, struct_code.o(myCode))
<BR><BR>[Stack]<UL><LI>Max Depth = 16<LI>Call Chain = main &rArr; adc_init
</UL>
<BR>[Calls]<UL><LI><a href="#[72]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;adc_get_value

View File

@ -135,9 +135,9 @@ 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 192 struct_code.o(myCode)
DISPLAY_BIT 0x0800101c Data 4 struct_code.o(myConstants)
myConstants 0x0800101c Section 8 struct_code.o(myConstants)
myCode 0x08000f5c Section 208 struct_code.o(myCode)
DISPLAY_BIT 0x0800102c Data 4 struct_code.o(myConstants)
myConstants 0x0800102c Section 8 struct_code.o(myConstants)
STACK 0x20000000 Section 8192 startup_ctboard.o(STACK)
__initial_sp 0x20002000 Data 0 startup_ctboard.o(STACK)
@ -291,8 +291,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 144 struct_code.o(myCode)
Image$$RO$$Limit 0x08001024 Number 0 anon$$obj.o ABSOLUTE
main 0x08000f5d Thumb Code 154 struct_code.o(myCode)
Image$$RO$$Limit 0x08001034 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)
@ -306,9 +306,9 @@ Memory Map of the image
Image Entry point : 0x080002a1
Load Region LR_1 (Base: 0x08000000, Size: 0x00001024, Max: 0xffffffff, ABSOLUTE)
Load Region LR_1 (Base: 0x08000000, Size: 0x00001034, Max: 0xffffffff, ABSOLUTE)
Execution Region ER_RO (Exec base: 0x08000000, Load base: 0x08000000, Size: 0x00001024, Max: 0xffffffff, ABSOLUTE)
Execution Region ER_RO (Exec base: 0x08000000, Load base: 0x08000000, Size: 0x00001034, Max: 0xffffffff, ABSOLUTE)
Exec Addr Load Addr Size Type Attr Idx E Section Name Object
@ -322,16 +322,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 0x000000c0 Code RO 9 * myCode struct_code.o
0x0800101c 0x0800101c 0x00000008 Data RO 8 myConstants struct_code.o
0x08000f5c 0x08000f5c 0x000000d0 Code RO 9 * myCode struct_code.o
0x0800102c 0x0800102c 0x00000008 Data RO 8 myConstants struct_code.o
Execution Region ER_RW (Exec base: 0x20000000, Load base: 0x08001024, Size: 0x00000000, Max: 0xffffffff, ABSOLUTE)
Execution Region ER_RW (Exec base: 0x20000000, Load base: 0x08001034, Size: 0x00000000, Max: 0xffffffff, ABSOLUTE)
**** No section assigned to this execution region ****
Execution Region ER_ZI (Exec base: 0x20000000, Load base: 0x08001024, Size: 0x00002000, Max: 0xffffffff, ABSOLUTE)
Execution Region ER_ZI (Exec base: 0x20000000, Load base: 0x08001034, Size: 0x00002000, Max: 0xffffffff, ABSOLUTE)
Exec Addr Load Addr Size Type Attr Idx E Section Name Object
@ -352,11 +352,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
192 48 8 0 0 440 struct_code.o
208 54 8 0 0 444 struct_code.o
354 60 0 0 0 6774 system_ctboard.o
----------------------------------------------------------------------
3696 482 436 0 8192 33995 Object Totals
3712 488 436 0 8192 33999 Object Totals
0 0 0 0 0 0 (incl. Generated)
2 0 0 0 0 0 (incl. Padding)
@ -371,15 +371,15 @@ Image component sizes
Code (inc. data) RO Data RW Data ZI Data Debug
3696 482 436 0 8192 33791 Grand Totals
3696 482 436 0 8192 33791 ELF Image Totals
3696 482 436 0 0 0 ROM Totals
3712 488 436 0 8192 33795 Grand Totals
3712 488 436 0 8192 33795 ELF Image Totals
3712 488 436 0 0 0 ROM Totals
==============================================================================
Total RO Size (Code + RO Data) 4132 ( 4.04kB)
Total RO Size (Code + RO Data) 4148 ( 4.05kB)
Total RW Size (RW Data + ZI Data) 8192 ( 8.00kB)
Total ROM Size (Code + RO Data + RW Data) 4132 ( 4.04kB)
Total ROM Size (Code + RO Data + RW Data) 4148 ( 4.05kB)
==============================================================================

View File

@ -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)(0x636E0271)(--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)(0x636E0B5A)(--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

View File

@ -148,24 +148,7 @@
<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>
<Bp>
<Number>0</Number>
<Type>0</Type>
<LineNumber>87</LineNumber>
<EnabledFlag>1</EnabledFlag>
<Address>134221676</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\87</Expression>
</Bp>
</Breakpoint>
<Breakpoint/>
<Tracepoint>
<THDelay>0</THDelay>
</Tracepoint>