ARM GAS /tmp/cch7pO95.s page 1
1 .cpu cortex-m0
2 .eabi_attribute 20, 1
3 .eabi_attribute 21, 1
4 .eabi_attribute 23, 3
5 .eabi_attribute 24, 1
6 .eabi_attribute 25, 1
7 .eabi_attribute 26, 1
8 .eabi_attribute 30, 1
9 .eabi_attribute 34, 0
10 .eabi_attribute 18, 4
11 .file "main.c"
12 .text
13 .Ltext0:
14 .cfi_sections .debug_frame
15 .section .text.MX_GPIO_Init,"ax",%progbits
16 .align 1
17 .arch armv6s-m
18 .syntax unified
19 .code 16
20 .thumb_func
21 .fpu softvfp
23 MX_GPIO_Init:
24 .LFB43:
25 .file 1 "Src/main.c"
1:Src/main.c **** /* USER CODE BEGIN Header */
2:Src/main.c **** /**
3:Src/main.c **** ******************************************************************************
4:Src/main.c **** * @file : main.c
5:Src/main.c **** * @brief : Main program body
6:Src/main.c **** ******************************************************************************
7:Src/main.c **** * @attention
8:Src/main.c **** *
9:Src/main.c **** *
© Copyright (c) 2021 STMicroelectronics.
10:Src/main.c **** * All rights reserved.
11:Src/main.c **** *
12:Src/main.c **** * This software component is licensed by ST under BSD 3-Clause license,
13:Src/main.c **** * the "License"; You may not use this file except in compliance with the
14:Src/main.c **** * License. You may obtain a copy of the License at:
15:Src/main.c **** * opensource.org/licenses/BSD-3-Clause
16:Src/main.c **** *
17:Src/main.c **** ******************************************************************************
18:Src/main.c **** */
19:Src/main.c **** /* USER CODE END Header */
20:Src/main.c ****
21:Src/main.c **** /* Includes ------------------------------------------------------------------*/
22:Src/main.c **** #include "main.h"
23:Src/main.c ****
24:Src/main.c **** /* Private includes ----------------------------------------------------------*/
25:Src/main.c **** /* USER CODE BEGIN Includes */
26:Src/main.c ****
27:Src/main.c **** /* USER CODE END Includes */
28:Src/main.c ****
29:Src/main.c **** /* Private typedef -----------------------------------------------------------*/
30:Src/main.c **** /* USER CODE BEGIN PTD */
31:Src/main.c ****
32:Src/main.c **** /* USER CODE END PTD */
33:Src/main.c ****
ARM GAS /tmp/cch7pO95.s page 2
34:Src/main.c **** /* Private define ------------------------------------------------------------*/
35:Src/main.c **** /* USER CODE BEGIN PD */
36:Src/main.c **** /* USER CODE END PD */
37:Src/main.c ****
38:Src/main.c **** /* Private macro -------------------------------------------------------------*/
39:Src/main.c **** /* USER CODE BEGIN PM */
40:Src/main.c ****
41:Src/main.c **** /* USER CODE END PM */
42:Src/main.c ****
43:Src/main.c **** /* Private variables ---------------------------------------------------------*/
44:Src/main.c **** UART_HandleTypeDef huart2;
45:Src/main.c ****
46:Src/main.c **** /* USER CODE BEGIN PV */
47:Src/main.c ****
48:Src/main.c **** /* USER CODE END PV */
49:Src/main.c ****
50:Src/main.c **** /* Private function prototypes -----------------------------------------------*/
51:Src/main.c **** void SystemClock_Config(void);
52:Src/main.c **** static void MX_GPIO_Init(void);
53:Src/main.c **** static void MX_USART2_UART_Init(void);
54:Src/main.c **** /* USER CODE BEGIN PFP */
55:Src/main.c ****
56:Src/main.c **** /* USER CODE END PFP */
57:Src/main.c ****
58:Src/main.c **** /* Private user code ---------------------------------------------------------*/
59:Src/main.c **** /* USER CODE BEGIN 0 */
60:Src/main.c ****
61:Src/main.c **** /* USER CODE END 0 */
62:Src/main.c ****
63:Src/main.c **** /**
64:Src/main.c **** * @brief The application entry point.
65:Src/main.c **** * @retval int
66:Src/main.c **** */
67:Src/main.c **** int main(void)
68:Src/main.c **** {
69:Src/main.c **** /* USER CODE BEGIN 1 */
70:Src/main.c ****
71:Src/main.c **** /* USER CODE END 1 */
72:Src/main.c ****
73:Src/main.c **** /* MCU Configuration--------------------------------------------------------*/
74:Src/main.c ****
75:Src/main.c **** /* Reset of all peripherals, Initializes the Flash interface and the Systick. */
76:Src/main.c **** HAL_Init();
77:Src/main.c ****
78:Src/main.c **** /* USER CODE BEGIN Init */
79:Src/main.c ****
80:Src/main.c **** /* USER CODE END Init */
81:Src/main.c ****
82:Src/main.c **** /* Configure the system clock */
83:Src/main.c **** SystemClock_Config();
84:Src/main.c ****
85:Src/main.c **** /* USER CODE BEGIN SysInit */
86:Src/main.c ****
87:Src/main.c **** /* USER CODE END SysInit */
88:Src/main.c ****
89:Src/main.c **** /* Initialize all configured peripherals */
90:Src/main.c **** MX_GPIO_Init();
ARM GAS /tmp/cch7pO95.s page 3
91:Src/main.c **** MX_USART2_UART_Init();
92:Src/main.c **** /* USER CODE BEGIN 2 */
93:Src/main.c ****
94:Src/main.c **** /* USER CODE END 2 */
95:Src/main.c ****
96:Src/main.c **** /* Infinite loop */
97:Src/main.c **** /* USER CODE BEGIN WHILE */
98:Src/main.c **** while (1)
99:Src/main.c **** {
100:Src/main.c **** /* USER CODE END WHILE */
101:Src/main.c **** HAL_GPIO_TogglePin(GPIOB,GPIO_PIN_3);
102:Src/main.c **** HAL_Delay(100);
103:Src/main.c **** /* USER CODE BEGIN 3 */
104:Src/main.c **** }
105:Src/main.c **** /* USER CODE END 3 */
106:Src/main.c **** }
107:Src/main.c ****
108:Src/main.c **** /**
109:Src/main.c **** * @brief System Clock Configuration
110:Src/main.c **** * @retval None
111:Src/main.c **** */
112:Src/main.c **** void SystemClock_Config(void)
113:Src/main.c **** {
114:Src/main.c **** RCC_OscInitTypeDef RCC_OscInitStruct = {0};
115:Src/main.c **** RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
116:Src/main.c ****
117:Src/main.c **** /** Initializes the CPU, AHB and APB busses clocks
118:Src/main.c **** */
119:Src/main.c **** RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI;
120:Src/main.c **** RCC_OscInitStruct.HSIState = RCC_HSI_ON;
121:Src/main.c **** RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
122:Src/main.c **** RCC_OscInitStruct.PLL.PLLState = RCC_PLL_NONE;
123:Src/main.c **** if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
124:Src/main.c **** {
125:Src/main.c **** Error_Handler();
126:Src/main.c **** }
127:Src/main.c **** /** Initializes the CPU, AHB and APB busses clocks
128:Src/main.c **** */
129:Src/main.c **** RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK
130:Src/main.c **** |RCC_CLOCKTYPE_PCLK1;
131:Src/main.c **** RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_HSI;
132:Src/main.c **** RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1;
133:Src/main.c **** RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV1;
134:Src/main.c ****
135:Src/main.c **** if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_0) != HAL_OK)
136:Src/main.c **** {
137:Src/main.c **** Error_Handler();
138:Src/main.c **** }
139:Src/main.c **** }
140:Src/main.c ****
141:Src/main.c **** /**
142:Src/main.c **** * @brief USART2 Initialization Function
143:Src/main.c **** * @param None
144:Src/main.c **** * @retval None
145:Src/main.c **** */
146:Src/main.c **** static void MX_USART2_UART_Init(void)
147:Src/main.c **** {
ARM GAS /tmp/cch7pO95.s page 4
148:Src/main.c ****
149:Src/main.c **** /* USER CODE BEGIN USART2_Init 0 */
150:Src/main.c ****
151:Src/main.c **** /* USER CODE END USART2_Init 0 */
152:Src/main.c ****
153:Src/main.c **** /* USER CODE BEGIN USART2_Init 1 */
154:Src/main.c ****
155:Src/main.c **** /* USER CODE END USART2_Init 1 */
156:Src/main.c **** huart2.Instance = USART2;
157:Src/main.c **** huart2.Init.BaudRate = 38400;
158:Src/main.c **** huart2.Init.WordLength = UART_WORDLENGTH_8B;
159:Src/main.c **** huart2.Init.StopBits = UART_STOPBITS_1;
160:Src/main.c **** huart2.Init.Parity = UART_PARITY_NONE;
161:Src/main.c **** huart2.Init.Mode = UART_MODE_TX_RX;
162:Src/main.c **** huart2.Init.HwFlowCtl = UART_HWCONTROL_NONE;
163:Src/main.c **** huart2.Init.OverSampling = UART_OVERSAMPLING_16;
164:Src/main.c **** huart2.Init.OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE;
165:Src/main.c **** huart2.AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_NO_INIT;
166:Src/main.c **** if (HAL_UART_Init(&huart2) != HAL_OK)
167:Src/main.c **** {
168:Src/main.c **** Error_Handler();
169:Src/main.c **** }
170:Src/main.c **** /* USER CODE BEGIN USART2_Init 2 */
171:Src/main.c ****
172:Src/main.c **** /* USER CODE END USART2_Init 2 */
173:Src/main.c ****
174:Src/main.c **** }
175:Src/main.c ****
176:Src/main.c **** /**
177:Src/main.c **** * @brief GPIO Initialization Function
178:Src/main.c **** * @param None
179:Src/main.c **** * @retval None
180:Src/main.c **** */
181:Src/main.c **** static void MX_GPIO_Init(void)
182:Src/main.c **** {
26 .loc 1 182 1 view -0
27 .cfi_startproc
28 @ args = 0, pretend = 0, frame = 32
29 @ frame_needed = 0, uses_anonymous_args = 0
30 0000 10B5 push {r4, lr}
31 .LCFI0:
32 .cfi_def_cfa_offset 8
33 .cfi_offset 4, -8
34 .cfi_offset 14, -4
35 0002 88B0 sub sp, sp, #32
36 .LCFI1:
37 .cfi_def_cfa_offset 40
183:Src/main.c **** GPIO_InitTypeDef GPIO_InitStruct = {0};
38 .loc 1 183 3 view .LVU1
39 .loc 1 183 20 is_stmt 0 view .LVU2
40 0004 1422 movs r2, #20
41 0006 0021 movs r1, #0
42 0008 03A8 add r0, sp, #12
43 000a FFF7FEFF bl memset
44 .LVL0:
184:Src/main.c ****
185:Src/main.c **** /* GPIO Ports Clock Enable */
ARM GAS /tmp/cch7pO95.s page 5
186:Src/main.c **** __HAL_RCC_GPIOF_CLK_ENABLE();
45 .loc 1 186 3 is_stmt 1 view .LVU3
46 .LBB2:
47 .loc 1 186 3 view .LVU4
48 .loc 1 186 3 view .LVU5
49 000e 174B ldr r3, .L2
50 0010 5969 ldr r1, [r3, #20]
51 0012 8020 movs r0, #128
52 0014 C003 lsls r0, r0, #15
53 0016 0143 orrs r1, r0
54 0018 5961 str r1, [r3, #20]
55 .loc 1 186 3 view .LVU6
56 001a 5A69 ldr r2, [r3, #20]
57 001c 0240 ands r2, r0
58 001e 0092 str r2, [sp]
59 .loc 1 186 3 view .LVU7
60 0020 009A ldr r2, [sp]
61 .LBE2:
187:Src/main.c **** __HAL_RCC_GPIOA_CLK_ENABLE();
62 .loc 1 187 3 view .LVU8
63 .LBB3:
64 .loc 1 187 3 view .LVU9
65 .loc 1 187 3 view .LVU10
66 0022 5969 ldr r1, [r3, #20]
67 0024 8020 movs r0, #128
68 0026 8002 lsls r0, r0, #10
69 0028 0143 orrs r1, r0
70 002a 5961 str r1, [r3, #20]
71 .loc 1 187 3 view .LVU11
72 002c 5A69 ldr r2, [r3, #20]
73 002e 0240 ands r2, r0
74 0030 0192 str r2, [sp, #4]
75 .loc 1 187 3 view .LVU12
76 0032 019A ldr r2, [sp, #4]
77 .LBE3:
188:Src/main.c **** __HAL_RCC_GPIOB_CLK_ENABLE();
78 .loc 1 188 3 view .LVU13
79 .LBB4:
80 .loc 1 188 3 view .LVU14
81 .loc 1 188 3 view .LVU15
82 0034 5A69 ldr r2, [r3, #20]
83 0036 8021 movs r1, #128
84 0038 C902 lsls r1, r1, #11
85 003a 0A43 orrs r2, r1
86 003c 5A61 str r2, [r3, #20]
87 .loc 1 188 3 view .LVU16
88 003e 5B69 ldr r3, [r3, #20]
89 0040 0B40 ands r3, r1
90 0042 0293 str r3, [sp, #8]
91 .loc 1 188 3 view .LVU17
92 0044 029B ldr r3, [sp, #8]
93 .LBE4:
189:Src/main.c ****
190:Src/main.c **** /*Configure GPIO pin Output Level */
191:Src/main.c **** HAL_GPIO_WritePin(GPIOB, GPIO_PIN_3, GPIO_PIN_RESET);
94 .loc 1 191 3 view .LVU18
95 0046 0A4C ldr r4, .L2+4
ARM GAS /tmp/cch7pO95.s page 6
96 0048 0022 movs r2, #0
97 004a 0821 movs r1, #8
98 004c 2000 movs r0, r4
99 004e FFF7FEFF bl HAL_GPIO_WritePin
100 .LVL1:
192:Src/main.c ****
193:Src/main.c **** /*Configure GPIO pin : PB3 */
194:Src/main.c **** GPIO_InitStruct.Pin = GPIO_PIN_3;
101 .loc 1 194 3 view .LVU19
102 .loc 1 194 23 is_stmt 0 view .LVU20
103 0052 0823 movs r3, #8
104 0054 0393 str r3, [sp, #12]
195:Src/main.c **** GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
105 .loc 1 195 3 is_stmt 1 view .LVU21
106 .loc 1 195 24 is_stmt 0 view .LVU22
107 0056 073B subs r3, r3, #7
108 0058 0493 str r3, [sp, #16]
196:Src/main.c **** GPIO_InitStruct.Pull = GPIO_NOPULL;
109 .loc 1 196 3 is_stmt 1 view .LVU23
110 .loc 1 196 24 is_stmt 0 view .LVU24
111 005a 0023 movs r3, #0
112 005c 0593 str r3, [sp, #20]
197:Src/main.c **** GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
113 .loc 1 197 3 is_stmt 1 view .LVU25
114 .loc 1 197 25 is_stmt 0 view .LVU26
115 005e 0693 str r3, [sp, #24]
198:Src/main.c **** HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
116 .loc 1 198 3 is_stmt 1 view .LVU27
117 0060 03A9 add r1, sp, #12
118 0062 2000 movs r0, r4
119 0064 FFF7FEFF bl HAL_GPIO_Init
120 .LVL2:
199:Src/main.c ****
200:Src/main.c **** }
121 .loc 1 200 1 is_stmt 0 view .LVU28
122 0068 08B0 add sp, sp, #32
123 @ sp needed
124 006a 10BD pop {r4, pc}
125 .L3:
126 .align 2
127 .L2:
128 006c 00100240 .word 1073876992
129 0070 00040048 .word 1207960576
130 .cfi_endproc
131 .LFE43:
133 .section .text.MX_USART2_UART_Init,"ax",%progbits
134 .align 1
135 .syntax unified
136 .code 16
137 .thumb_func
138 .fpu softvfp
140 MX_USART2_UART_Init:
141 .LFB42:
147:Src/main.c ****
142 .loc 1 147 1 is_stmt 1 view -0
143 .cfi_startproc
144 @ args = 0, pretend = 0, frame = 0
ARM GAS /tmp/cch7pO95.s page 7
145 @ frame_needed = 0, uses_anonymous_args = 0
146 0000 10B5 push {r4, lr}
147 .LCFI2:
148 .cfi_def_cfa_offset 8
149 .cfi_offset 4, -8
150 .cfi_offset 14, -4
156:Src/main.c **** huart2.Init.BaudRate = 38400;
151 .loc 1 156 3 view .LVU30
156:Src/main.c **** huart2.Init.BaudRate = 38400;
152 .loc 1 156 19 is_stmt 0 view .LVU31
153 0002 0948 ldr r0, .L5
154 0004 094B ldr r3, .L5+4
155 0006 0360 str r3, [r0]
157:Src/main.c **** huart2.Init.WordLength = UART_WORDLENGTH_8B;
156 .loc 1 157 3 is_stmt 1 view .LVU32
157:Src/main.c **** huart2.Init.WordLength = UART_WORDLENGTH_8B;
157 .loc 1 157 24 is_stmt 0 view .LVU33
158 0008 9623 movs r3, #150
159 000a 1B02 lsls r3, r3, #8
160 000c 4360 str r3, [r0, #4]
158:Src/main.c **** huart2.Init.StopBits = UART_STOPBITS_1;
161 .loc 1 158 3 is_stmt 1 view .LVU34
158:Src/main.c **** huart2.Init.StopBits = UART_STOPBITS_1;
162 .loc 1 158 26 is_stmt 0 view .LVU35
163 000e 0023 movs r3, #0
164 0010 8360 str r3, [r0, #8]
159:Src/main.c **** huart2.Init.Parity = UART_PARITY_NONE;
165 .loc 1 159 3 is_stmt 1 view .LVU36
159:Src/main.c **** huart2.Init.Parity = UART_PARITY_NONE;
166 .loc 1 159 24 is_stmt 0 view .LVU37
167 0012 C360 str r3, [r0, #12]
160:Src/main.c **** huart2.Init.Mode = UART_MODE_TX_RX;
168 .loc 1 160 3 is_stmt 1 view .LVU38
160:Src/main.c **** huart2.Init.Mode = UART_MODE_TX_RX;
169 .loc 1 160 22 is_stmt 0 view .LVU39
170 0014 0361 str r3, [r0, #16]
161:Src/main.c **** huart2.Init.HwFlowCtl = UART_HWCONTROL_NONE;
171 .loc 1 161 3 is_stmt 1 view .LVU40
161:Src/main.c **** huart2.Init.HwFlowCtl = UART_HWCONTROL_NONE;
172 .loc 1 161 20 is_stmt 0 view .LVU41
173 0016 0C22 movs r2, #12
174 0018 4261 str r2, [r0, #20]
162:Src/main.c **** huart2.Init.OverSampling = UART_OVERSAMPLING_16;
175 .loc 1 162 3 is_stmt 1 view .LVU42
162:Src/main.c **** huart2.Init.OverSampling = UART_OVERSAMPLING_16;
176 .loc 1 162 25 is_stmt 0 view .LVU43
177 001a 8361 str r3, [r0, #24]
163:Src/main.c **** huart2.Init.OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE;
178 .loc 1 163 3 is_stmt 1 view .LVU44
163:Src/main.c **** huart2.Init.OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE;
179 .loc 1 163 28 is_stmt 0 view .LVU45
180 001c C361 str r3, [r0, #28]
164:Src/main.c **** huart2.AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_NO_INIT;
181 .loc 1 164 3 is_stmt 1 view .LVU46
164:Src/main.c **** huart2.AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_NO_INIT;
182 .loc 1 164 30 is_stmt 0 view .LVU47
183 001e 0362 str r3, [r0, #32]
ARM GAS /tmp/cch7pO95.s page 8
165:Src/main.c **** if (HAL_UART_Init(&huart2) != HAL_OK)
184 .loc 1 165 3 is_stmt 1 view .LVU48
165:Src/main.c **** if (HAL_UART_Init(&huart2) != HAL_OK)
185 .loc 1 165 38 is_stmt 0 view .LVU49
186 0020 4362 str r3, [r0, #36]
166:Src/main.c **** {
187 .loc 1 166 3 is_stmt 1 view .LVU50
166:Src/main.c **** {
188 .loc 1 166 7 is_stmt 0 view .LVU51
189 0022 FFF7FEFF bl HAL_UART_Init
190 .LVL3:
174:Src/main.c ****
191 .loc 1 174 1 view .LVU52
192 @ sp needed
193 0026 10BD pop {r4, pc}
194 .L6:
195 .align 2
196 .L5:
197 0028 00000000 .word huart2
198 002c 00440040 .word 1073759232
199 .cfi_endproc
200 .LFE42:
202 .section .text.SystemClock_Config,"ax",%progbits
203 .align 1
204 .global SystemClock_Config
205 .syntax unified
206 .code 16
207 .thumb_func
208 .fpu softvfp
210 SystemClock_Config:
211 .LFB41:
113:Src/main.c **** RCC_OscInitTypeDef RCC_OscInitStruct = {0};
212 .loc 1 113 1 is_stmt 1 view -0
213 .cfi_startproc
214 @ args = 0, pretend = 0, frame = 72
215 @ frame_needed = 0, uses_anonymous_args = 0
216 0000 00B5 push {lr}
217 .LCFI3:
218 .cfi_def_cfa_offset 4
219 .cfi_offset 14, -4
220 0002 93B0 sub sp, sp, #76
221 .LCFI4:
222 .cfi_def_cfa_offset 80
114:Src/main.c **** RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
223 .loc 1 114 3 view .LVU54
114:Src/main.c **** RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
224 .loc 1 114 22 is_stmt 0 view .LVU55
225 0004 3022 movs r2, #48
226 0006 0021 movs r1, #0
227 0008 06A8 add r0, sp, #24
228 000a FFF7FEFF bl memset
229 .LVL4:
115:Src/main.c ****
230 .loc 1 115 3 is_stmt 1 view .LVU56
115:Src/main.c ****
231 .loc 1 115 22 is_stmt 0 view .LVU57
232 000e 1022 movs r2, #16
ARM GAS /tmp/cch7pO95.s page 9
233 0010 0021 movs r1, #0
234 0012 01A8 add r0, sp, #4
235 0014 FFF7FEFF bl memset
236 .LVL5:
119:Src/main.c **** RCC_OscInitStruct.HSIState = RCC_HSI_ON;
237 .loc 1 119 3 is_stmt 1 view .LVU58
119:Src/main.c **** RCC_OscInitStruct.HSIState = RCC_HSI_ON;
238 .loc 1 119 36 is_stmt 0 view .LVU59
239 0018 0223 movs r3, #2
240 001a 0593 str r3, [sp, #20]
120:Src/main.c **** RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
241 .loc 1 120 3 is_stmt 1 view .LVU60
120:Src/main.c **** RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
242 .loc 1 120 30 is_stmt 0 view .LVU61
243 001c 013B subs r3, r3, #1
244 001e 0893 str r3, [sp, #32]
121:Src/main.c **** RCC_OscInitStruct.PLL.PLLState = RCC_PLL_NONE;
245 .loc 1 121 3 is_stmt 1 view .LVU62
121:Src/main.c **** RCC_OscInitStruct.PLL.PLLState = RCC_PLL_NONE;
246 .loc 1 121 41 is_stmt 0 view .LVU63
247 0020 0F33 adds r3, r3, #15
248 0022 0993 str r3, [sp, #36]
122:Src/main.c **** if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
249 .loc 1 122 3 is_stmt 1 view .LVU64
123:Src/main.c **** {
250 .loc 1 123 3 view .LVU65
123:Src/main.c **** {
251 .loc 1 123 7 is_stmt 0 view .LVU66
252 0024 05A8 add r0, sp, #20
253 0026 FFF7FEFF bl HAL_RCC_OscConfig
254 .LVL6:
129:Src/main.c **** |RCC_CLOCKTYPE_PCLK1;
255 .loc 1 129 3 is_stmt 1 view .LVU67
129:Src/main.c **** |RCC_CLOCKTYPE_PCLK1;
256 .loc 1 129 31 is_stmt 0 view .LVU68
257 002a 0723 movs r3, #7
258 002c 0193 str r3, [sp, #4]
131:Src/main.c **** RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1;
259 .loc 1 131 3 is_stmt 1 view .LVU69
131:Src/main.c **** RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1;
260 .loc 1 131 34 is_stmt 0 view .LVU70
261 002e 0023 movs r3, #0
262 0030 0293 str r3, [sp, #8]
132:Src/main.c **** RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV1;
263 .loc 1 132 3 is_stmt 1 view .LVU71
132:Src/main.c **** RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV1;
264 .loc 1 132 35 is_stmt 0 view .LVU72
265 0032 0393 str r3, [sp, #12]
133:Src/main.c ****
266 .loc 1 133 3 is_stmt 1 view .LVU73
133:Src/main.c ****
267 .loc 1 133 36 is_stmt 0 view .LVU74
268 0034 0493 str r3, [sp, #16]
135:Src/main.c **** {
269 .loc 1 135 3 is_stmt 1 view .LVU75
135:Src/main.c **** {
270 .loc 1 135 7 is_stmt 0 view .LVU76
ARM GAS /tmp/cch7pO95.s page 10
271 0036 0021 movs r1, #0
272 0038 01A8 add r0, sp, #4
273 003a FFF7FEFF bl HAL_RCC_ClockConfig
274 .LVL7:
139:Src/main.c ****
275 .loc 1 139 1 view .LVU77
276 003e 13B0 add sp, sp, #76
277 @ sp needed
278 0040 00BD pop {pc}
279 .cfi_endproc
280 .LFE41:
282 .section .text.main,"ax",%progbits
283 .align 1
284 .global main
285 .syntax unified
286 .code 16
287 .thumb_func
288 .fpu softvfp
290 main:
291 .LFB40:
68:Src/main.c **** /* USER CODE BEGIN 1 */
292 .loc 1 68 1 is_stmt 1 view -0
293 .cfi_startproc
294 @ Volatile: function does not return.
295 @ args = 0, pretend = 0, frame = 0
296 @ frame_needed = 0, uses_anonymous_args = 0
297 0000 10B5 push {r4, lr}
298 .LCFI5:
299 .cfi_def_cfa_offset 8
300 .cfi_offset 4, -8
301 .cfi_offset 14, -4
76:Src/main.c ****
302 .loc 1 76 3 view .LVU79
303 0002 FFF7FEFF bl HAL_Init
304 .LVL8:
83:Src/main.c ****
305 .loc 1 83 3 view .LVU80
306 0006 FFF7FEFF bl SystemClock_Config
307 .LVL9:
90:Src/main.c **** MX_USART2_UART_Init();
308 .loc 1 90 3 view .LVU81
309 000a FFF7FEFF bl MX_GPIO_Init
310 .LVL10:
91:Src/main.c **** /* USER CODE BEGIN 2 */
311 .loc 1 91 3 view .LVU82
312 000e FFF7FEFF bl MX_USART2_UART_Init
313 .LVL11:
314 .L9:
98:Src/main.c **** {
315 .loc 1 98 3 discriminator 1 view .LVU83
101:Src/main.c **** HAL_Delay(100);
316 .loc 1 101 2 discriminator 1 view .LVU84
317 0012 0821 movs r1, #8
318 0014 0348 ldr r0, .L10
319 0016 FFF7FEFF bl HAL_GPIO_TogglePin
320 .LVL12:
102:Src/main.c **** /* USER CODE BEGIN 3 */
ARM GAS /tmp/cch7pO95.s page 11
321 .loc 1 102 2 discriminator 1 view .LVU85
322 001a 6420 movs r0, #100
323 001c FFF7FEFF bl HAL_Delay
324 .LVL13:
325 0020 F7E7 b .L9
326 .L11:
327 0022 C046 .align 2
328 .L10:
329 0024 00040048 .word 1207960576
330 .cfi_endproc
331 .LFE40:
333 .section .text.Error_Handler,"ax",%progbits
334 .align 1
335 .global Error_Handler
336 .syntax unified
337 .code 16
338 .thumb_func
339 .fpu softvfp
341 Error_Handler:
342 .LFB44:
201:Src/main.c ****
202:Src/main.c **** /* USER CODE BEGIN 4 */
203:Src/main.c ****
204:Src/main.c **** /* USER CODE END 4 */
205:Src/main.c ****
206:Src/main.c **** /**
207:Src/main.c **** * @brief This function is executed in case of error occurrence.
208:Src/main.c **** * @retval None
209:Src/main.c **** */
210:Src/main.c **** void Error_Handler(void)
211:Src/main.c **** {
343 .loc 1 211 1 view -0
344 .cfi_startproc
345 @ args = 0, pretend = 0, frame = 0
346 @ frame_needed = 0, uses_anonymous_args = 0
347 @ link register save eliminated.
212:Src/main.c **** /* USER CODE BEGIN Error_Handler_Debug */
213:Src/main.c **** /* User can add his own implementation to report the HAL error return state */
214:Src/main.c ****
215:Src/main.c **** /* USER CODE END Error_Handler_Debug */
216:Src/main.c **** }
348 .loc 1 216 1 view .LVU87
349 @ sp needed
350 0000 7047 bx lr
351 .cfi_endproc
352 .LFE44:
354 .comm huart2,132,4
355 .text
356 .Letext0:
357 .file 2 "/usr/lib/gcc/arm-none-eabi/8.3.1/include/stdint.h"
358 .file 3 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h"
359 .file 4 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f042x6.h"
360 .file 5 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h"
361 .file 6 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h"
362 .file 7 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h"
363 .file 8 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h"
364 .file 9 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_uart.h"
ARM GAS /tmp/cch7pO95.s page 12
365 .file 10 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h"
366 .file 11 ""
ARM GAS /tmp/cch7pO95.s page 13
DEFINED SYMBOLS
*ABS*:0000000000000000 main.c
/tmp/cch7pO95.s:16 .text.MX_GPIO_Init:0000000000000000 $t
/tmp/cch7pO95.s:23 .text.MX_GPIO_Init:0000000000000000 MX_GPIO_Init
/tmp/cch7pO95.s:128 .text.MX_GPIO_Init:000000000000006c $d
/tmp/cch7pO95.s:134 .text.MX_USART2_UART_Init:0000000000000000 $t
/tmp/cch7pO95.s:140 .text.MX_USART2_UART_Init:0000000000000000 MX_USART2_UART_Init
/tmp/cch7pO95.s:197 .text.MX_USART2_UART_Init:0000000000000028 $d
*COM*:0000000000000084 huart2
/tmp/cch7pO95.s:203 .text.SystemClock_Config:0000000000000000 $t
/tmp/cch7pO95.s:210 .text.SystemClock_Config:0000000000000000 SystemClock_Config
/tmp/cch7pO95.s:283 .text.main:0000000000000000 $t
/tmp/cch7pO95.s:290 .text.main:0000000000000000 main
/tmp/cch7pO95.s:329 .text.main:0000000000000024 $d
/tmp/cch7pO95.s:334 .text.Error_Handler:0000000000000000 $t
/tmp/cch7pO95.s:341 .text.Error_Handler:0000000000000000 Error_Handler
UNDEFINED SYMBOLS
memset
HAL_GPIO_WritePin
HAL_GPIO_Init
HAL_UART_Init
HAL_RCC_OscConfig
HAL_RCC_ClockConfig
HAL_Init
HAL_GPIO_TogglePin
HAL_Delay