diff --git a/project/app/struct_code.s b/project/app/struct_code.s index 5b341c1..3a99cbc 100644 --- a/project/app/struct_code.s +++ b/project/app/struct_code.s @@ -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} diff --git a/project/build/struct_code.lst b/project/build/struct_code.lst index 8e644b8..a698a3d 100644 --- a/project/build/struct_code.lst +++ b/project/build/struct_code.lst @@ -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 diff --git a/project/build/struct_code.o b/project/build/struct_code.o index c592aed..a150a50 100644 Binary files a/project/build/struct_code.o and b/project/build/struct_code.o differ diff --git a/project/build/strukt_code.axf b/project/build/strukt_code.axf index 013b978..259d8ec 100644 Binary files a/project/build/strukt_code.axf and b/project/build/strukt_code.axf differ diff --git a/project/build/strukt_code.build_log.htm b/project/build/strukt_code.build_log.htm index aa3df84..f497fb2 100644 --- a/project/build/strukt_code.build_log.htm +++ b/project/build/strukt_code.build_log.htm @@ -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).

Software Packages used:

@@ -73,37 +73,37 @@ Package Vendor: InES

Collection of Component Files used:

* 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 diff --git a/project/build/strukt_code.htm b/project/build/strukt_code.htm index 439ec5b..69a2db8 100644 --- a/project/build/strukt_code.htm +++ b/project/build/strukt_code.htm @@ -3,7 +3,7 @@ Static Call Graph - [.\build\strukt_code.axf]

Static Call Graph for image .\build\strukt_code.axf


-

#<CALLGRAPH># ARM Linker, 6180002: Last Updated: Fri Nov 11 09:07:05 2022 +

#<CALLGRAPH># ARM Linker, 6180002: Last Updated: Fri Nov 11 09:44:15 2022

Maximum Stack Usage = 132 bytes + Unknown(Cycles, Untraceable Function Pointers)

Call chain for Maximum Stack Depth:

@@ -606,7 +606,7 @@ Global Symbols
[Called By] -

main (Thumb, 144 bytes, Stack size 0 bytes, struct_code.o(myCode)) +

main (Thumb, 154 bytes, Stack size 0 bytes, struct_code.o(myCode))

[Stack]


[Calls]