diff --git a/project/app/struct_code.s b/project/app/struct_code.s index 3a99cbc..cf0fad1 100644 --- a/project/app/struct_code.s +++ b/project/app/struct_code.s @@ -112,6 +112,30 @@ case_blue ; Show Diff on 7-Segment LDR R3, =ADDR_7_SEG_BIN_DS3_0 STRB R2, [R3] + + ; Show Bits on lcd Display + LDR R3, =0x8 + SUBS R3, R3, R2 + BLS case_8_bit + LDR R3, =0x4 + SUBS R3, R3, R2 + BLS case_4_bit +case_2_bit + LDR R4, =DISPLAY_2_BIT + B end_case +case_4_bit + LDR R4, =DISPLAY_4_BIT + B end_case +case_8_bit + LDR R4, =DISPLAY_8_BIT + +end_case + LDR R3, =ADDR_LCD_ASCII + + LDR R4, [R4] + STRB R4, [R3] + + BL write_bit_ascii B main_loop case_red diff --git a/project/build/struct_code.lst b/project/build/struct_code.lst index a698a3d..30bf84f 100644 --- a/project/build/struct_code.lst +++ b/project/build/struct_code.lst @@ -142,154 +142,178 @@ 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 F837 BL clear_lcd + 76 00000004 F000 F847 BL clear_lcd 77 00000008 78 00000008 main_loop 79 00000008 ; STUDENTS: To be programmed 80 00000008 81 00000008 ; Clear LCD - 82 00000008 F000 F82A BL clear_lcd_colour + 82 00000008 F000 F83A 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 4922 LDR R1, =ADDR_BUTTONS + 88 00000010 492A LDR R1, =ADDR_BUTTONS 89 00000012 7809 LDRB R1, [R1] - 90 00000014 4A22 LDR R2, =0x01 + 90 00000014 4A2A LDR R2, =0x01 91 00000016 4211 TST R1, R2 - 92 00000018 D111 BNE case_green ; If T0 is pressed: + 92 00000018 D121 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 4922 LDR R1, =ADDR_DIP_SWITCH_7_0 + 97 0000001A 492A 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 + 102 00000020 DB16 BLT case_red ; IF diff >= 0: con tinue case blue, el se: goto case red 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 + 107 00000022 4B29 LDR R3, =ADDR_LCD_COLOUR + 108 00000024 4C29 LDR R4, =DISPLAY_COLOUR_BLUE + 109 00000026 4D2A 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 + 113 0000002A 4B2A 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] + 116 0000002E ; Show Bits on lcd Display + 117 0000002E 4B2A LDR R3, =0x8 + 118 00000030 1A9B SUBS R3, R3, R2 + 119 00000032 D906 BLS case_8_bit + 120 00000034 4B25 LDR R3, =0x4 + 121 00000036 1A9B SUBS R3, R3, R2 + 122 00000038 D901 BLS case_4_bit ARM Macro Assembler Page 4 - 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 + 123 0000003A case_2_bit + 124 0000003A 4C28 LDR R4, =DISPLAY_2_BIT + 125 0000003C E002 B end_case + 126 0000003E case_4_bit + 127 0000003E 4C28 LDR R4, =DISPLAY_4_BIT + 128 00000040 E000 B end_case + 129 00000042 case_8_bit + 130 00000042 4C28 LDR R4, =DISPLAY_8_BIT + 131 00000044 + 132 00000044 end_case + 133 00000044 4B28 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 + 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 + 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 + 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 - 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 - 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) + 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 ARM Macro Assembler Page 5 - 179 00000084 2A28 CMP R2, #LCD_LAST_OFFSET ; until in + 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 + 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 + 4 (word step) + 203 000000A4 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 ; ------------------------------------------------------ + 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 ; ------------------------------------------------------ ------------ - 198 0000009C ; End of code - 199 0000009C ; ------------------------------------------------------ + 222 000000BC ; End of code + 223 000000BC ; ------------------------------------------------------ ------------ - 200 0000009C END + 224 000000BC END 60000210 00000001 60000200 @@ -297,10 +321,20 @@ ARM Macro Assembler Page 5 00000004 0000FFFF 60000114 + 00000008 + 00000000 + + + +ARM Macro Assembler Page 6 + + + 00000000 + 00000000 + 60000300 00000000 00000002 60000100 - 60000300 60000302 00000000 Command Line: --debug --xref --diag_suppress=9931 --cpu=Cortex-M0 --depend=.\bu @@ -322,31 +356,31 @@ Symbol: DISPLAY_2_BIT Definitions At line 57 in file app\struct_code.s Uses - None -Comment: DISPLAY_2_BIT unused + At line 124 in file app\struct_code.s +Comment: DISPLAY_2_BIT used once DISPLAY_4_BIT 00000005 Symbol: DISPLAY_4_BIT Definitions At line 58 in file app\struct_code.s Uses - None -Comment: DISPLAY_4_BIT unused + At line 127 in file app\struct_code.s +Comment: DISPLAY_4_BIT used once DISPLAY_8_BIT 00000006 Symbol: DISPLAY_8_BIT Definitions At line 59 in file app\struct_code.s Uses - None -Comment: DISPLAY_8_BIT unused + At line 130 in file app\struct_code.s +Comment: DISPLAY_8_BIT used once DISPLAY_BIT 00000000 Symbol: DISPLAY_BIT Definitions At line 56 in file app\struct_code.s Uses - At line 187 in file app\struct_code.s + At line 211 in file app\struct_code.s Comment: DISPLAY_BIT used once myConstants 00000000 @@ -363,6 +397,30 @@ Comment: myConstants unused ARM Macro Assembler Page 1 Alphabetic symbol ordering Relocatable symbols +case_2_bit 0000003A + +Symbol: case_2_bit + Definitions + At line 123 in file app\struct_code.s + Uses + None +Comment: case_2_bit unused +case_4_bit 0000003E + +Symbol: case_4_bit + Definitions + At line 126 in file app\struct_code.s + Uses + At line 122 in file app\struct_code.s +Comment: case_4_bit used once +case_8_bit 00000042 + +Symbol: case_8_bit + Definitions + At line 129 in file app\struct_code.s + Uses + At line 119 in file app\struct_code.s +Comment: case_8_bit used once case_blue 00000022 Symbol: case_blue @@ -371,57 +429,33 @@ Symbol: case_blue Uses None Comment: case_blue unused -case_green 0000003E +case_green 0000005E Symbol: case_green Definitions - At line 129 in file app\struct_code.s + At line 153 in file app\struct_code.s Uses At line 92 in file app\struct_code.s Comment: case_green used once -case_red 00000030 +case_red 00000050 Symbol: case_red Definitions - At line 117 in file app\struct_code.s + At line 141 in file app\struct_code.s Uses At line 102 in file app\struct_code.s Comment: case_red used once -clear_lcd 00000076 +clear_lcd 00000096 Symbol: clear_lcd Definitions - At line 170 in file app\struct_code.s + At line 194 in file app\struct_code.s Uses At line 76 in file app\struct_code.s Comment: clear_lcd used once -clear_lcd_colour 00000060 +clear_lcd_colour 00000080 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 173 in file app\struct_code.s - Uses - At line 180 in file app\struct_code.s -Comment: clear_lcd_loop used once -end_led_loop 0000005A - -Symbol: end_led_loop - Definitions - At line 149 in file app\struct_code.s - Uses - At line 144 in file app\struct_code.s -Comment: end_led_loop used once -led_loop 00000050 - -Symbol: led_loop @@ -429,9 +463,42 @@ ARM Macro Assembler Page 2 Alphabetic symbol ordering Relocatable symbols Definitions - At line 143 in file app\struct_code.s + At line 181 in file app\struct_code.s Uses - At line 148 in file app\struct_code.s + At line 82 in file app\struct_code.s +Comment: clear_lcd_colour used once +clear_lcd_loop 0000009A + +Symbol: clear_lcd_loop + Definitions + At line 197 in file app\struct_code.s + Uses + At line 204 in file app\struct_code.s +Comment: clear_lcd_loop used once +end_case 00000044 + +Symbol: end_case + Definitions + At line 132 in file app\struct_code.s + Uses + At line 125 in file app\struct_code.s + At line 128 in file app\struct_code.s + +end_led_loop 0000007A + +Symbol: end_led_loop + Definitions + At line 173 in file app\struct_code.s + Uses + At line 168 in file app\struct_code.s +Comment: end_led_loop used once +led_loop 00000070 + +Symbol: led_loop + Definitions + At line 167 in file app\struct_code.s + Uses + At line 172 in file app\struct_code.s Comment: led_loop used once main 00000000 @@ -447,27 +514,33 @@ Symbol: main_loop Definitions At line 78 in file app\struct_code.s Uses - 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 + 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 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 0000008C +write_bit_ascii 000000AC Symbol: write_bit_ascii Definitions - At line 184 in file app\struct_code.s + At line 208 in file app\struct_code.s Uses - None -Comment: write_bit_ascii unused -12 symbols + At line 138 in file app\struct_code.s +Comment: write_bit_ascii used once +16 symbols @@ -481,8 +554,8 @@ Symbol: ADDR_7_SEG_BIN_DS3_0 At line 29 in file app\struct_code.s Uses 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 + At line 149 in file app\struct_code.s + At line 161 in file app\struct_code.s ADDR_BUTTONS 60000210 @@ -506,8 +579,9 @@ Symbol: ADDR_LCD_ASCII Definitions At line 31 in file app\struct_code.s Uses - At line 174 in file app\struct_code.s -Comment: ADDR_LCD_ASCII used once + At line 133 in file app\struct_code.s + At line 198 in file app\struct_code.s + ADDR_LCD_ASCII_2ND_LINE 60000314 Symbol: ADDR_LCD_ASCII_2ND_LINE @@ -522,7 +596,7 @@ Symbol: ADDR_LCD_ASCII_BIT_POS Definitions At line 32 in file app\struct_code.s Uses - At line 186 in file app\struct_code.s + At line 210 in file app\struct_code.s Comment: ADDR_LCD_ASCII_BIT_POS used once ADDR_LCD_COLOUR 60000340 @@ -531,15 +605,15 @@ Symbol: ADDR_LCD_COLOUR At line 30 in file app\struct_code.s Uses 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 + At line 143 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 + At line 155 in file app\struct_code.s + At line 183 in file app\struct_code.s ADDR_LED_31_0 60000100 @@ -547,7 +621,7 @@ Symbol: ADDR_LED_31_0 Definitions At line 28 in file app\struct_code.s Uses - At line 150 in file app\struct_code.s + At line 174 in file app\struct_code.s Comment: ADDR_LED_31_0 used once ASCII_DIGIT_CLEAR 00000000 @@ -555,7 +629,7 @@ Symbol: ASCII_DIGIT_CLEAR Definitions At line 40 in file app\struct_code.s Uses - At line 176 in file app\struct_code.s + At line 200 in file app\struct_code.s Comment: ASCII_DIGIT_CLEAR used once ASCII_DIGIT_OFFSET 00000030 @@ -572,7 +646,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 163 in file app\struct_code.s + At line 187 in file app\struct_code.s DISPLAY_COLOUR_GREEN 00000002 @@ -580,8 +654,8 @@ Symbol: DISPLAY_COLOUR_GREEN Definitions At line 48 in file app\struct_code.s Uses - At line 132 in file app\struct_code.s - At line 165 in file app\struct_code.s + At line 156 in file app\struct_code.s + At line 189 in file app\struct_code.s DISPLAY_COLOUR_RED 00000000 @@ -589,22 +663,22 @@ Symbol: DISPLAY_COLOUR_RED Definitions At line 47 in file app\struct_code.s Uses - At line 120 in file app\struct_code.s - At line 161 in file app\struct_code.s + At line 144 in file app\struct_code.s + At line 185 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 179 in file app\struct_code.s + Uses + At line 203 in file app\struct_code.s Comment: LCD_LAST_OFFSET used once 14 symbols @@ -630,4 +704,4 @@ Symbol: adc_init At line 75 in file app\struct_code.s Comment: adc_init used once 2 symbols -368 symbols in table +372 symbols in table diff --git a/project/build/struct_code.o b/project/build/struct_code.o index a150a50..044fe43 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 259d8ec..e31e8cc 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 f497fb2..8d9873f 100644 --- a/project/build/strukt_code.build_log.htm +++ b/project/build/strukt_code.build_log.htm @@ -28,10 +28,8 @@ 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 struct_code.s... assembling startup_ctboard.s... -compiling hal_fmc.c... -compiling system_ctboard.c... +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) ; ^ ~ @@ -45,11 +43,13 @@ app/adc.c(39): note: add parentheses around left hand side expression to silence ( ) 1 warning generated. compiling adc.c... -compiling hal_pwr.c... +compiling hal_fmc.c... +compiling system_ctboard.c... compiling hal_gpio.c... +compiling hal_pwr.c... compiling hal_rcc.c... linking... -Program Size: Code=3712 RO-data=436 RW-data=0 ZI-data=8192 +Program Size: Code=3760 RO-data=436 RW-data=0 ZI-data=8192 ".\build\strukt_code.axf" - 0 Error(s), 1 Warning(s).

Software Packages used:

@@ -73,35 +73,35 @@ 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/system_ctboard.h Source file: Device/Source/startup_ctboard.s - Source file: Device/Source/system_ctboard.c Source file: Device/Source/datainit_ctboard.s + Include file: Device/Include/reg_ctboard.h + Include file: Device/Include/m0/platform_ctboard.h + Source file: Device/Source/system_ctboard.c + Include file: Device/Include/reg_stm32f4xx.h * Component: InES::HAL:FMC:3.0.1 - 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 + Source file: HAL/Source/hal_fmc.c + Include file: Device/Include/reg_stm32f4xx.h * Component: InES::HAL:GPIO:4.0.1 - Source file: HAL/Source/hal_gpio.c - Include file: Device/Include/reg_stm32f4xx.h Include file: HAL/Include/hal_gpio.h + Include file: Device/Include/reg_stm32f4xx.h + Source file: HAL/Source/hal_gpio.c Include file: HAL/Include/hal_common.h * Component: InES::HAL:PWR:2.2.0 Include file: HAL/Include/hal_common.h - Include file: HAL/Include/hal_pwr.h - Source file: HAL/Source/hal_pwr.c Include file: Device/Include/reg_stm32f4xx.h + Source file: HAL/Source/hal_pwr.c + Include file: HAL/Include/hal_pwr.h * Component: InES::HAL:RCC:4.0.1 - Include file: HAL/Include/hal_common.h Include file: HAL/Include/hal_rcc.h + Include file: HAL/Include/hal_common.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 69a2db8..022209f 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:44:15 2022 +

#<CALLGRAPH># ARM Linker, 6180002: Last Updated: Fri Nov 11 10:30:52 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, 154 bytes, Stack size 0 bytes, struct_code.o(myCode)) +

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

[Stack]


[Calls]