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_31_24 EQU 0x60000103
ADDR_BUTTONS EQU 0x60000210
ADDR_7_SEGMENT EQU 0x60000114
BITMASK_KEY_T0 EQU 0x01
BITMASK_LOWER_NIBBLE EQU 0x0F
SHIFT_BITS_MSB EQU 0x08
; ------------------------------------------------------------------
; -- Variables
@ -37,7 +39,7 @@ BITMASK_LOWER_NIBBLE EQU 0x0F
AREA MyAsmVar, DATA, READWRITE
; 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]
; 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
STRB R0, [R2, R1]
ADDS R1, R1, R1
STRH R0, [R2, R1]
@ -94,11 +103,16 @@ readInput
; Read Values from 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
LDR R1, =ADDR_LED_23_16
STRB R0, [R1]
;Write Values to 7-Segment Display
LDR R1, =ADDR_7_SEGMENT
STRH R0, [R1]
; 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 startup_ctboard.s...
compiling system_ctboard.c...
compiling hal_pwr.c...
compiling hal_fmc.c...
compiling hal_gpio.c...
compiling hal_pwr.c...
compiling hal_rcc.c...
compiling hal_gpio.c...
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).
<h2>Software Packages used:</h2>

View File

@ -3,7 +3,7 @@
<title>Static Call Graph - [.\build\table.axf]</title></head>
<body><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>
<H3>Maximum Stack Usage = 112 bytes + Unknown(Cycles, Untraceable Function Pointers)</H3><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
</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
</UL>
<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
ADDR_BUTTONS
EQU 0x60000210
30 00000000
31 00000000 00000001
BITMASK_KEY_T0
30 00000000 60000114
ADDR_7_SEGMENT
EQU 0x60000114
ARM Macro Assembler Page 2
31 00000000
32 00000000 00000001
BITMASK_KEY_T0
EQU 0x01
32 00000000 0000000F
33 00000000 0000000F
BITMASK_LOWER_NIBBLE
EQU 0x0F
33 00000000
34 00000000 ; ------------------------------------------------------
------------
35 00000000 ; -- Variables
34 00000000 00000008
SHIFT_BITS_MSB
EQU 0x08
35 00000000
36 00000000 ; ------------------------------------------------------
------------
37 00000000 AREA MyAsmVar, DATA, READWRITE
38 00000000 ; STUDENTS: To be programmed
39 00000000
40 00000000 00 00 00
37 00000000 ; -- Variables
38 00000000 ; ------------------------------------------------------
------------
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 store_table
SPACE 16 ; reserve 16 byte (
00 00 00
00 00 00
00 00 00
00 00 00
00 00 00
00 00 store_table
SPACE 32 ; reserve 16 byte (
4 words)
41 00000010
42 00000010
43 00000010
44 00000010
45 00000010 ; END: To be programmed
46 00000010 ALIGN
47 00000010
48 00000010 ; ------------------------------------------------------
43 00000020
44 00000020
45 00000020
46 00000020
47 00000020 ; END: To be programmed
48 00000020 ALIGN
49 00000020
50 00000020 ; ------------------------------------------------------
------------
49 00000010 ; -- myCode
50 00000010 ; ------------------------------------------------------
51 00000020 ; -- myCode
52 00000020 ; ------------------------------------------------------
------------
51 00000010 AREA myCode, CODE, READONLY
52 00000000
53 00000000 main PROC
54 00000000 EXPORT main
55 00000000
56 00000000 readInput
57 00000000 F000 F818 BL waitForKey ; wait for key to b
53 00000020 AREA myCode, CODE, READONLY
54 00000000
55 00000000 main PROC
56 00000000 EXPORT main
57 00000000
58 00000000 readInput
59 00000000 F000 F820 BL waitForKey ; wait for key to b
e pressed and relea
sed
58 00000004 ; STUDENTS: To be programmed
59 00000004 ; Read Valules from Dip Switches 7-0 to R0
60 00000004 4811 LDR R0, =ADDR_DIP_SWITCH_7_0
61 00000006 7800 LDRB R0, [R0]
62 00000008
63 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
60 00000004 ; STUDENTS: To be programmed
61 00000004 ; Read Valules from Dip Switches 7-0 to R0
62 00000004 4815 LDR R0, =ADDR_DIP_SWITCH_7_0
63 00000006 7800 LDRB R0, [R0]
64 00000008
65 00000008 ; Write Values to LED 7-0 from R0
ARM Macro Assembler Page 3
75 00000014 4A11 LDR R2, =ADDR_LED_15_8
76 00000016 7011 STRB R1, [R2]
77 00000018
78 00000018 ; Write Values to Store Table
79 00000018 4A11 LDR R2, =store_table
80 0000001A 5450 STRB R0, [R2, R1]
81 0000001C
82 0000001C
83 0000001C
84 0000001C ; Read Index from Dip Switches 15-8 to R1
85 0000001C ; Todo: Maskierung
86 0000001C 4811 LDR R0, =ADDR_DIP_SWITCH_31_24
87 0000001E 7800 LDRB R0, [R0]
88 00000020 490D LDR R1, =BITMASK_LOWER_NIBBLE
89 00000022 4008 ANDS R0, R0, R1
90 00000024
91 00000024 ; Write Index to LED 15-8 from R1
92 00000024 4910 LDR R1, =ADDR_LED_31_24
93 00000026 7008 STRB R0, [R1]
94 00000028
95 00000028 ; Read Values from Store Table
96 00000028 490D LDR R1, =store_table
97 0000002A 5C08 LDRB R0, [R1, R0]
98 0000002C
99 0000002C ; Write Values to LED 7-0 from R0
100 0000002C 490F LDR R1, =ADDR_LED_23_16
101 0000002E 7008 STRB R0, [R1]
102 00000030
103 00000030
104 00000030 ; END: To be programmed
105 00000030 E7E6 B readInput
106 00000032 00 00 ALIGN
107 00000034
108 00000034 ; ------------------------------------------------------
66 00000008 4915 LDR R1, =ADDR_LED_7_0
67 0000000A 7008 STRB R0, [R1]
68 0000000C
69 0000000C ; Read Index from Dip Switches 15-8 to R1
70 0000000C 4915 LDR R1, =ADDR_DIP_SWITCH_15_8
71 0000000E 7809 LDRB R1, [R1]
72 00000010 4A15 LDR R2, =BITMASK_LOWER_NIBBLE
73 00000012 4011 ANDS R1, R1, R2
74 00000014
75 00000014
76 00000014 ; Write Index to LED 15-8 from R1
77 00000014 4A15 LDR R2, =ADDR_LED_15_8
78 00000016 7011 STRB R1, [R2]
79 00000018
80 00000018 ; Write Values to Store Table
81 00000018 000B MOVS R3, R1
82 0000001A 4A15 LDR R2, =SHIFT_BITS_MSB
83 0000001C 4093 LSLS R3, R3, R2
84 0000001E 18C0 ADDS R0, R0, R3
85 00000020 4A14 LDR R2, =store_table
86 00000022 1849 ADDS R1, R1, R1
87 00000024 5250 STRH R0, [R2, R1]
88 00000026
89 00000026
90 00000026
91 00000026
92 00000026
93 00000026 ; Read Index from Dip Switches 15-8 to R1
94 00000026 ; Todo: Maskierung
95 00000026 4814 LDR R0, =ADDR_DIP_SWITCH_31_24
96 00000028 7800 LDRB R0, [R0]
97 0000002A 490F LDR R1, =BITMASK_LOWER_NIBBLE
98 0000002C 4008 ANDS R0, R0, R1
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
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
123 00000044 ; Subroutines
ARM Macro Assembler Page 4
128 00000046 BC07 POP {R0, R1, R2}
129 00000048 4770 BX LR
130 0000004A 00 00 ALIGN
131 0000004C
132 0000004C ; ------------------------------------------------------
124 00000044 ; ------------------------------------------------------
------------
133 0000004C ; End of code
134 0000004C ; ------------------------------------------------------
125 00000044
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
136 0000004C END
147 0000005C ; End of code
148 0000005C ; ------------------------------------------------------
------------
149 0000005C ENDP
150 0000005C END
60000200
60000100
60000201
0000000F
60000101
00000008
00000000
60000203
60000103
60000102
60000114
60000210
00000001
Command Line: --debug --xref --diag_suppress=9931 --cpu=Cortex-M0 --depend=.\bu
@ -238,7 +263,7 @@ MyAsmVar 00000000
Symbol: MyAsmVar
Definitions
At line 37 in file app\table.s
At line 39 in file app\table.s
Uses
None
Comment: MyAsmVar unused
@ -246,10 +271,10 @@ store_table 00000000
Symbol: store_table
Definitions
At line 40 in file app\table.s
At line 42 in file app\table.s
Uses
At line 79 in file app\table.s
At line 96 in file app\table.s
At line 85 in file app\table.s
At line 105 in file app\table.s
2 symbols
@ -262,15 +287,15 @@ main 00000000
Symbol: main
Definitions
At line 53 in file app\table.s
At line 55 in file app\table.s
Uses
At line 54 in file app\table.s
At line 56 in file app\table.s
Comment: main used once
myCode 00000000
Symbol: myCode
Definitions
At line 51 in file app\table.s
At line 53 in file app\table.s
Uses
None
Comment: myCode unused
@ -278,33 +303,33 @@ readInput 00000000
Symbol: readInput
Definitions
At line 56 in file app\table.s
At line 58 in file app\table.s
Uses
At line 105 in file app\table.s
At line 119 in file app\table.s
Comment: readInput used once
waitForKey 00000034
waitForKey 00000044
Symbol: waitForKey
Definitions
At line 113 in file app\table.s
At line 127 in file app\table.s
Uses
At line 57 in file app\table.s
At line 59 in file app\table.s
Comment: waitForKey used once
waitForPress 0000003A
waitForPress 0000004A
Symbol: waitForPress
Definitions
At line 118 in file app\table.s
At line 132 in file app\table.s
Uses
At line 121 in file app\table.s
At line 135 in file app\table.s
Comment: waitForPress used once
waitForRelease 00000040
waitForRelease 00000050
Symbol: waitForRelease
Definitions
At line 123 in file app\table.s
At line 137 in file app\table.s
Uses
At line 126 in file app\table.s
At line 140 in file app\table.s
Comment: waitForRelease used once
6 symbols
@ -313,13 +338,21 @@ Comment: waitForRelease used once
ARM Macro Assembler Page 1 Alphabetic symbol ordering
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
Symbol: ADDR_BUTTONS
Definitions
At line 29 in file app\table.s
Uses
At line 115 in file app\table.s
At line 129 in file app\table.s
Comment: ADDR_BUTTONS used once
ADDR_DIP_SWITCH_15_8 60000201
@ -327,7 +360,7 @@ Symbol: ADDR_DIP_SWITCH_15_8
Definitions
At line 23 in file app\table.s
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
ADDR_DIP_SWITCH_31_24 60000203
@ -335,7 +368,7 @@ Symbol: ADDR_DIP_SWITCH_31_24
Definitions
At line 24 in file app\table.s
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
ADDR_DIP_SWITCH_7_0 60000200
@ -343,7 +376,7 @@ Symbol: ADDR_DIP_SWITCH_7_0
Definitions
At line 22 in file app\table.s
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
ADDR_LED_15_8 60000101
@ -351,7 +384,7 @@ Symbol: ADDR_LED_15_8
Definitions
At line 26 in file app\table.s
Uses
At line 75 in file app\table.s
At line 77 in file app\table.s
Comment: ADDR_LED_15_8 used once
ADDR_LED_23_16 60000102
@ -359,46 +392,54 @@ Symbol: ADDR_LED_23_16
Definitions
At line 27 in file app\table.s
Uses
At line 100 in file app\table.s
At line 110 in file app\table.s
Comment: ADDR_LED_23_16 used once
ADDR_LED_31_24 60000103
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
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
At line 25 in file app\table.s
Uses
At line 64 in file app\table.s
At line 66 in file app\table.s
Comment: ADDR_LED_7_0 used once
BITMASK_KEY_T0 00000001
Symbol: BITMASK_KEY_T0
Definitions
At line 31 in file app\table.s
At line 32 in file app\table.s
Uses
At line 116 in file app\table.s
At line 130 in file app\table.s
Comment: BITMASK_KEY_T0 used once
BITMASK_LOWER_NIBBLE 0000000F
Symbol: BITMASK_LOWER_NIBBLE
Definitions
At line 32 in file app\table.s
At line 33 in file app\table.s
Uses
At line 70 in file app\table.s
At line 88 in file app\table.s
At line 72 in file app\table.s
At line 97 in file app\table.s
10 symbols
353 symbols in table
SHIFT_BITS_MSB 00000008
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.4_0 0x08000eec Number 4 hal_rcc.o(.text)
__arm_cp.4_1 0x08000ef0 Number 4 hal_rcc.o(.text)
myCode 0x08000ef4 Section 120 table.o(myCode)
store_table 0x20000000 Data 16 table.o(MyAsmVar)
MyAsmVar 0x20000000 Section 16 table.o(MyAsmVar)
STACK 0x20000010 Section 8192 startup_ctboard.o(STACK)
__initial_sp 0x20002010 Data 0 startup_ctboard.o(STACK)
myCode 0x08000ef4 Section 144 table.o(myCode)
store_table 0x20000000 Data 32 table.o(MyAsmVar)
MyAsmVar 0x20000000 Section 32 table.o(MyAsmVar)
STACK 0x20000020 Section 8192 startup_ctboard.o(STACK)
__initial_sp 0x20002020 Data 0 startup_ctboard.o(STACK)
Global Symbols
@ -285,12 +285,12 @@ Image Symbol Table
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_clock 0x08000e91 Thumb Code 92 hal_rcc.o(.text)
main 0x08000ef5 Thumb Code 76 table.o(myCode)
Image$$ER_IROM1$$Limit 0x08000f6c Number 0 anon$$obj.o ABSOLUTE
main 0x08000ef5 Thumb Code 92 table.o(myCode)
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$$ZI$$Base 0x20000010 Number 0 anon$$obj.o ABSOLUTE
Stack_Mem 0x20000010 Data 8192 startup_ctboard.o(STACK)
Image$$RW_IRAM1$$ZI$$Limit 0x20002010 Number 0 anon$$obj.o ABSOLUTE
Image$$RW_IRAM1$$ZI$$Base 0x20000020 Number 0 anon$$obj.o ABSOLUTE
Stack_Mem 0x20000020 Data 8192 startup_ctboard.o(STACK)
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
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
@ -315,15 +315,15 @@ Memory Map of the image
0x0800052c 0x0800052c 0x000005fc Code RO 35 .text hal_gpio.o
0x08000b28 0x08000b28 0x000000ac Code RO 43 .text hal_pwr.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
0x20000000 0x08000f70 0x00000010 Data RW 1 MyAsmVar table.o
0x20000010 - 0x00002000 Zero RW 12 STACK startup_ctboard.o
0x20000000 0x08000f88 0x00000020 Data RW 1 MyAsmVar table.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
36 8 428 0 8192 812 startup_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)
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
3520 486 428 16 8192 32145 Grand Totals
3520 486 428 16 8192 32145 ELF Image Totals
3520 486 428 16 0 0 ROM Totals
3544 494 428 32 8192 32153 Grand Totals
3544 494 428 32 8192 32153 ELF Image Totals
3544 494 428 32 0 0 ROM Totals
==============================================================================
Total RO Size (Code + RO Data) 3948 ( 3.86kB)
Total RW Size (RW Data + ZI Data) 8208 ( 8.02kB)
Total ROM Size (Code + RO Data + RW Data) 3964 ( 3.87kB)
Total RO Size (Code + RO Data) 3972 ( 3.88kB)
Total RW Size (RW Data + ZI Data) 8224 ( 8.03kB)
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 !)
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/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)

File diff suppressed because one or more lines are too long

View File

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