diff --git a/Core/Src/main.c b/Core/Src/main.c index cca1c04..76ebf1e 100644 --- a/Core/Src/main.c +++ b/Core/Src/main.c @@ -22,6 +22,7 @@ /* Private includes ----------------------------------------------------------*/ /* USER CODE BEGIN Includes */ #include "stm32g4xx_hal.h" +#include /* USER CODE END Includes */ /* Private typedef -----------------------------------------------------------*/ @@ -34,9 +35,6 @@ #define IN_SYNC_BYTE_1 'A' #define IN_SYNC_BYTE_2 'R' -#define VREFINT_CAL_ADDR ((uint16_t*) ((uint32_t)0x1FFF75AA)) -#define VREFINT_CAL_VREF 3000UL - /* USER CODE END PD */ /* Private macro -------------------------------------------------------------*/ @@ -53,28 +51,31 @@ TIM_HandleTypeDef htim2; UART_HandleTypeDef huart2; /* USER CODE BEGIN PV */ -/** - * @brief Structure to hold the time and date data in binary format - */ uint8_t rx_hold_buffer[2]; uint8_t rx_buffer[32]; uint8_t tx_buffer[32]; uint8_t tx_len = 0x00; +uint8_t tx_len_counter = 0x00; uint8_t rx_counter = 0x00; uint8_t rx_len = 0x00; uint8_t rx_len_counter = 0x00; uint16_t rx_checksum = 0x0000; +uint16_t tx_checksum = 0x0000; uint8_t rx_checksum_hold_1 = 0x00; uint8_t rx_checksum_hold_2 = 0x00; uint16_t rx_checksum_hold = 0x0000; uint8_t power_state_value = 0x00; uint8_t command = 0x00; uint8_t adc_task_flag = 0x00; -uint8_t uart_tx_flag = 0x00; uint16_t vin_adc_val = 0x0000; uint16_t vout_adc_val = 0x0000; uint32_t vdd_ref = 0x00000000; +uint32_t vin_val = 0x00000000; +uint32_t vout_val = 0x00000000; +uint8_t serial_number_flag = 0x00; + +uint8_t serial_number[19] = "ARRIVE-POWERSIM-001"; /* USER CODE END PV */ @@ -89,7 +90,9 @@ static void MX_ADC1_Init(void); void power_switch (uint8_t state); void adc_task(void); uint32_t get_actual_vdda(ADC_HandleTypeDef *hadc); -uint32_t get_calibrated_value_mv(uint32_t raw_adc_value, uint32_t vdda_mv); +void voltage_conversion_task(void); +uint32_t get_divider_input_mv(uint32_t raw_adc_value, uint32_t vdda_mv); +void serial_number_task (void); /* USER CODE END PFP */ @@ -137,26 +140,30 @@ int main(void) HAL_GPIO_WritePin(LD2_GPIO_Port, LD2_Pin, GPIO_PIN_RESET); HAL_GPIO_WritePin(POWER_SWITCH_GPIO_Port, POWER_SWITCH_Pin, GPIO_PIN_RESET); + /* Run ADC calibration */ + HAL_ADCEx_Calibration_Start(&hadc1, ADC_SINGLE_ENDED); + HAL_ADCEx_Calibration_Start(&hadc2, ADC_SINGLE_ENDED); + /* Setup UART interrupts */ /* Make sure UART Rx counters and flags are reset */ rx_counter = 0x00; rx_len = 0x00; rx_len_counter = 0x00; adc_task_flag = 0x00; - uart_tx_flag = 0x00; HAL_UART_Receive_IT(&huart2, rx_hold_buffer, 1); /* Get real VDDA value */ vdd_ref = get_actual_vdda(&hadc1); - tx_buffer[0] = vdd_ref >> 24; - tx_buffer[1] = vdd_ref >> 16; - tx_buffer[2] = vdd_ref >> 8; - tx_buffer[3] = vdd_ref; - tx_len = 4; + tx_buffer[0] = (uint8_t)((vdd_ref >> 24) & 0xFF); + tx_buffer[1] = (uint8_t)((vdd_ref >> 16) & 0xFF); + tx_buffer[2] = (uint8_t)((vdd_ref >> 8) & 0xFF); + tx_buffer[3] = (uint8_t)(vdd_ref & 0xFF); - HAL_UART_Transmit(&huart2, tx_buffer, tx_len, HAL_MAX_DELAY); + tx_len = 0x04; + + HAL_UART_Transmit(&huart2, tx_buffer, tx_len, 100); /* USER CODE END 2 */ @@ -168,13 +175,15 @@ int main(void) { adc_task_flag = 0x00; adc_task(); + voltage_conversion_task(); } - if (uart_tx_flag == 0xff) + if (serial_number_flag == 0xff) { - uart_tx_flag = 0x00; - HAL_UART_Transmit(&huart2, tx_buffer, tx_len, HAL_MAX_DELAY); + serial_number_flag = 0x00; + serial_number_task (); } + /* USER CODE END WHILE */ /* USER CODE BEGIN 3 */ @@ -251,7 +260,7 @@ static void MX_ADC1_Init(void) /** Common config */ hadc1.Instance = ADC1; - hadc1.Init.ClockPrescaler = ADC_CLOCK_ASYNC_DIV16; + hadc1.Init.ClockPrescaler = ADC_CLOCK_ASYNC_DIV32; hadc1.Init.Resolution = ADC_RESOLUTION_12B; hadc1.Init.DataAlign = ADC_DATAALIGN_RIGHT; hadc1.Init.GainCompensation = 0; @@ -283,7 +292,7 @@ static void MX_ADC1_Init(void) */ sConfig.Channel = ADC_CHANNEL_VREFINT; sConfig.Rank = ADC_REGULAR_RANK_1; - sConfig.SamplingTime = ADC_SAMPLETIME_2CYCLES_5; + sConfig.SamplingTime = ADC_SAMPLETIME_640CYCLES_5; sConfig.SingleDiff = ADC_SINGLE_ENDED; sConfig.OffsetNumber = ADC_OFFSET_NONE; sConfig.Offset = 0; @@ -318,7 +327,7 @@ static void MX_ADC2_Init(void) /** Common config */ hadc2.Instance = ADC2; - hadc2.Init.ClockPrescaler = ADC_CLOCK_ASYNC_DIV16; + hadc2.Init.ClockPrescaler = ADC_CLOCK_ASYNC_DIV32; hadc2.Init.Resolution = ADC_RESOLUTION_12B; hadc2.Init.DataAlign = ADC_DATAALIGN_RIGHT; hadc2.Init.GainCompensation = 0; @@ -342,7 +351,7 @@ static void MX_ADC2_Init(void) */ sConfig.Channel = ADC_CHANNEL_3; sConfig.Rank = ADC_REGULAR_RANK_1; - sConfig.SamplingTime = ADC_SAMPLETIME_24CYCLES_5; + sConfig.SamplingTime = ADC_SAMPLETIME_640CYCLES_5; sConfig.SingleDiff = ADC_SINGLE_ENDED; sConfig.OffsetNumber = ADC_OFFSET_NONE; sConfig.Offset = 0; @@ -426,7 +435,7 @@ static void MX_USART2_UART_Init(void) /* USER CODE END USART2_Init 1 */ huart2.Instance = USART2; - huart2.Init.BaudRate = 921600; + huart2.Init.BaudRate = 115200; huart2.Init.WordLength = UART_WORDLENGTH_8B; huart2.Init.StopBits = UART_STOPBITS_1; huart2.Init.Parity = UART_PARITY_NONE; @@ -506,6 +515,7 @@ uint32_t get_actual_vdda(ADC_HandleTypeDef *hadc) /* Perform ADC reading of the VREFINT channel */ HAL_ADC_Start(hadc); + if (HAL_ADC_PollForConversion(hadc, 10) == HAL_OK) { vrefint_raw = HAL_ADC_GetValue(hadc); } @@ -521,23 +531,99 @@ uint32_t get_actual_vdda(ADC_HandleTypeDef *hadc) return vdda_mv; } -/* Converts a raw ADC reading to real mV using the calculated VDDA */ -uint32_t get_calibrated_value_mv(uint32_t raw_adc_value, uint32_t vdda_mv) +/* Calculate original input voltage from a 22k/2.2k divider in mV */ +uint32_t get_divider_input_mv(uint32_t raw_adc_value, uint32_t vdda_mv) { - /* Correct for 12-bit ADC (4095) */ - return (raw_adc_value * vdda_mv) / 4095; + /* Calculate the voltage at the ADC pin (Vout of the divider) */ + /* Using 64-bit for intermediate to avoid overflow: (Raw * VDDA) / 4095 */ + uint64_t vout_mv = ((uint64_t)raw_adc_value * vdda_mv) / 4095; + + /* Scale by the divider ratio: (22k + 2.2k) / 2.2k = 11 */ + uint32_t vin_mv = (uint32_t)(vout_mv * 10.9); + + return vin_mv; +} + +/* Voltage Conversion Task */ +void voltage_conversion_task(void) +{ + /* Get Vin voltage */ + vin_val = get_divider_input_mv(vin_adc_val, vdd_ref); + + /* Get Vout voltage */ + vout_val = get_divider_input_mv(vout_adc_val, vdd_ref); + + tx_len = 0x08; + + tx_buffer[0] = IN_SYNC_BYTE_1; + tx_buffer[1] = IN_SYNC_BYTE_2; + tx_buffer[2] = tx_len; + tx_buffer[3] = (uint8_t)((vin_val >> 24) & 0xFF); + tx_buffer[4] = (uint8_t)((vin_val >> 16) & 0xFF); + tx_buffer[5] = (uint8_t)((vin_val >> 8) & 0xFF); + tx_buffer[6] = (uint8_t)(vin_val & 0xFF); + tx_buffer[7] = (uint8_t)((vout_val >> 24) & 0xFF); + tx_buffer[8] = (uint8_t)((vout_val >> 16) & 0xFF); + tx_buffer[9] = (uint8_t)((vout_val >> 8) & 0xFF); + tx_buffer[10] = (uint8_t)(vout_val & 0xFF); + + /* Need to apply checksum to all data bits */ + for (tx_len_counter = 0x00; tx_len_counter < tx_len; tx_len_counter++) + { + tx_checksum += tx_buffer[tx_len_counter + 3]; + } + + tx_checksum = ~tx_checksum; + + tx_buffer[11] = (uint8_t)((tx_checksum >> 8) & 0xFF); + tx_buffer[12] = (uint8_t)(tx_checksum & 0xFF); + + tx_len = 0x0D; + + HAL_UART_Transmit(&huart2, tx_buffer, tx_len, 100); +} + +void serial_number_task (void) +{ + tx_len = 0x13; + + tx_buffer[0] = IN_SYNC_BYTE_1; + tx_buffer[1] = IN_SYNC_BYTE_2; + tx_buffer[2] = tx_len; + + for (tx_len_counter = 0x00; tx_len_counter < tx_len; tx_len_counter++) + { + tx_buffer[tx_len_counter + 3] = serial_number[tx_len_counter]; + } + + tx_checksum = 0x00; + + /* Need to apply checksum to all data bits */ + for (tx_len_counter = 0x00; tx_len_counter < tx_len; tx_len_counter++) + { + tx_checksum += tx_buffer[tx_len_counter + 3]; + } + + tx_checksum = ~tx_checksum; + + tx_buffer[22] = (uint8_t)((tx_checksum >> 8) & 0xFF); + tx_buffer[23] = (uint8_t)(tx_checksum & 0xFF); + + tx_len = 0x18; + + HAL_UART_Transmit(&huart2, tx_buffer, tx_len, 100); } /* ADC task */ void adc_task (void) { HAL_ADC_Start(&hadc2); - HAL_ADC_PollForConversion(&hadc2, 100); - vin_adc_val = HAL_ADC_GetValue(&hadc2); + HAL_ADC_PollForConversion(&hadc2, 500); + vout_adc_val = HAL_ADC_GetValue(&hadc2); HAL_ADC_Start(&hadc2); - HAL_ADC_PollForConversion(&hadc2, 100); - vout_adc_val = HAL_ADC_GetValue(&hadc2); + HAL_ADC_PollForConversion(&hadc2, 500); + vin_adc_val = HAL_ADC_GetValue(&hadc2); HAL_ADC_Stop(&hadc2); } @@ -681,6 +767,11 @@ void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart) adc_task_flag = 0xff; break; + /* 'I' - Get serial number information */ + case 0x49: + serial_number_flag = 0xff; + break; + default: break; } diff --git a/Debug/Core/Src/main.cyclo b/Debug/Core/Src/main.cyclo index 738851d..d2c5d3c 100644 --- a/Debug/Core/Src/main.cyclo +++ b/Debug/Core/Src/main.cyclo @@ -1,14 +1,16 @@ -../Core/Src/main.c:105:5:main 3 -../Core/Src/main.c:190:6:SystemClock_Config 3 -../Core/Src/main.c:237:13:MX_ADC1_Init 4 -../Core/Src/main.c:305:13:MX_ADC2_Init 4 -../Core/Src/main.c:373:13:MX_TIM2_Init 4 -../Core/Src/main.c:418:13:MX_USART2_UART_Init 5 -../Core/Src/main.c:466:13:MX_GPIO_Init 1 -../Core/Src/main.c:503:10:get_actual_vdda 3 -../Core/Src/main.c:525:10:get_calibrated_value_mv 1 -../Core/Src/main.c:532:6:adc_task 1 -../Core/Src/main.c:546:6:power_switch 2 -../Core/Src/main.c:562:6:HAL_UART_TxCpltCallback 1 -../Core/Src/main.c:568:6:HAL_UART_RxCpltCallback 16 -../Core/Src/main.c:714:6:Error_Handler 1 +../Core/Src/main.c:108:5:main 3 +../Core/Src/main.c:199:6:SystemClock_Config 3 +../Core/Src/main.c:246:13:MX_ADC1_Init 4 +../Core/Src/main.c:314:13:MX_ADC2_Init 4 +../Core/Src/main.c:382:13:MX_TIM2_Init 4 +../Core/Src/main.c:427:13:MX_USART2_UART_Init 5 +../Core/Src/main.c:475:13:MX_GPIO_Init 1 +../Core/Src/main.c:512:10:get_actual_vdda 3 +../Core/Src/main.c:535:10:get_divider_input_mv 1 +../Core/Src/main.c:548:6:voltage_conversion_task 2 +../Core/Src/main.c:586:6:serial_number_task 3 +../Core/Src/main.c:618:6:adc_task 1 +../Core/Src/main.c:632:6:power_switch 2 +../Core/Src/main.c:648:6:HAL_UART_TxCpltCallback 1 +../Core/Src/main.c:654:6:HAL_UART_RxCpltCallback 18 +../Core/Src/main.c:805:6:Error_Handler 1 diff --git a/Debug/Core/Src/main.o b/Debug/Core/Src/main.o index 74f7d65..80fc303 100644 Binary files a/Debug/Core/Src/main.o and b/Debug/Core/Src/main.o differ diff --git a/Debug/Core/Src/main.su b/Debug/Core/Src/main.su index d6b722f..10c8966 100644 --- a/Debug/Core/Src/main.su +++ b/Debug/Core/Src/main.su @@ -1,14 +1,16 @@ -../Core/Src/main.c:105:5:main 8 static -../Core/Src/main.c:190:6:SystemClock_Config 88 static -../Core/Src/main.c:237:13:MX_ADC1_Init 56 static -../Core/Src/main.c:305:13:MX_ADC2_Init 40 static -../Core/Src/main.c:373:13:MX_TIM2_Init 40 static -../Core/Src/main.c:418:13:MX_USART2_UART_Init 8 static -../Core/Src/main.c:466:13:MX_GPIO_Init 40 static -../Core/Src/main.c:503:10:get_actual_vdda 24 static -../Core/Src/main.c:525:10:get_calibrated_value_mv 16 static -../Core/Src/main.c:532:6:adc_task 8 static -../Core/Src/main.c:546:6:power_switch 16 static -../Core/Src/main.c:562:6:HAL_UART_TxCpltCallback 16 static -../Core/Src/main.c:568:6:HAL_UART_RxCpltCallback 16 static -../Core/Src/main.c:714:6:Error_Handler 4 static,ignoring_inline_asm +../Core/Src/main.c:108:5:main 8 static +../Core/Src/main.c:199:6:SystemClock_Config 88 static +../Core/Src/main.c:246:13:MX_ADC1_Init 56 static +../Core/Src/main.c:314:13:MX_ADC2_Init 40 static +../Core/Src/main.c:382:13:MX_TIM2_Init 40 static +../Core/Src/main.c:427:13:MX_USART2_UART_Init 8 static +../Core/Src/main.c:475:13:MX_GPIO_Init 40 static +../Core/Src/main.c:512:10:get_actual_vdda 24 static +../Core/Src/main.c:535:10:get_divider_input_mv 48 static +../Core/Src/main.c:548:6:voltage_conversion_task 8 static +../Core/Src/main.c:586:6:serial_number_task 8 static +../Core/Src/main.c:618:6:adc_task 8 static +../Core/Src/main.c:632:6:power_switch 16 static +../Core/Src/main.c:648:6:HAL_UART_TxCpltCallback 16 static +../Core/Src/main.c:654:6:HAL_UART_RxCpltCallback 16 static +../Core/Src/main.c:805:6:Error_Handler 4 static,ignoring_inline_asm diff --git a/Debug/POWER_SWITCH.elf b/Debug/POWER_SWITCH.elf index bacf57b..dab5e82 100644 Binary files a/Debug/POWER_SWITCH.elf and b/Debug/POWER_SWITCH.elf differ diff --git a/Debug/POWER_SWITCH.list b/Debug/POWER_SWITCH.list index 4007ff5..1157650 100644 --- a/Debug/POWER_SWITCH.list +++ b/Debug/POWER_SWITCH.list @@ -5,47 +5,47 @@ Sections: Idx Name Size VMA LMA File off Algn 0 .isr_vector 000001d8 08000000 08000000 00001000 2**0 CONTENTS, ALLOC, LOAD, READONLY, DATA - 1 .text 00006b5c 080001d8 080001d8 000011d8 2**2 + 1 .text 00007554 080001d8 080001d8 000011d8 2**3 CONTENTS, ALLOC, LOAD, READONLY, CODE - 2 .rodata 00000040 08006d34 08006d34 00007d34 2**2 + 2 .rodata 00000040 0800772c 0800772c 0000872c 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA - 3 .ARM.extab 00000000 08006d74 08006d74 0000800c 2**0 + 3 .ARM.extab 00000000 0800776c 0800776c 00009020 2**0 CONTENTS, READONLY - 4 .ARM 00000008 08006d74 08006d74 00007d74 2**2 + 4 .ARM 00000008 0800776c 0800776c 0000876c 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA - 5 .preinit_array 00000000 08006d7c 08006d7c 0000800c 2**0 + 5 .preinit_array 00000000 08007774 08007774 00009020 2**0 CONTENTS, ALLOC, LOAD, DATA - 6 .init_array 00000004 08006d7c 08006d7c 00007d7c 2**2 + 6 .init_array 00000004 08007774 08007774 00008774 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA - 7 .fini_array 00000004 08006d80 08006d80 00007d80 2**2 + 7 .fini_array 00000004 08007778 08007778 00008778 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA - 8 .data 0000000c 20000000 08006d84 00008000 2**2 + 8 .data 00000020 20000000 0800777c 00009000 2**2 CONTENTS, ALLOC, LOAD, DATA - 9 .bss 00000238 2000000c 08006d90 0000800c 2**2 + 9 .bss 00000248 20000020 0800779c 00009020 2**2 ALLOC - 10 ._user_heap_stack 00000604 20000244 08006d90 00008244 2**0 + 10 ._user_heap_stack 00000600 20000268 0800779c 00009268 2**0 ALLOC - 11 .ARM.attributes 00000030 00000000 00000000 0000800c 2**0 + 11 .ARM.attributes 00000030 00000000 00000000 00009020 2**0 CONTENTS, READONLY - 12 .debug_info 00016fd6 00000000 00000000 0000803c 2**0 + 12 .debug_info 000170b0 00000000 00000000 00009050 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 13 .debug_abbrev 00002a58 00000000 00000000 0001f012 2**0 + 13 .debug_abbrev 00002a3f 00000000 00000000 00020100 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 14 .debug_aranges 00001490 00000000 00000000 00021a70 2**3 + 14 .debug_aranges 000014a0 00000000 00000000 00022b40 2**3 CONTENTS, READONLY, DEBUGGING, OCTETS - 15 .debug_rnglists 00001012 00000000 00000000 00022f00 2**0 + 15 .debug_rnglists 00001021 00000000 00000000 00023fe0 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 16 .debug_macro 0001f9ca 00000000 00000000 00023f12 2**0 + 16 .debug_macro 00020407 00000000 00000000 00025001 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 17 .debug_line 0001664c 00000000 00000000 000438dc 2**0 + 17 .debug_line 000168d9 00000000 00000000 00045408 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 18 .debug_str 000d7e8e 00000000 00000000 00059f28 2**0 + 18 .debug_str 000db63e 00000000 00000000 0005bce1 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 19 .comment 00000043 00000000 00000000 00131db6 2**0 + 19 .comment 00000043 00000000 00000000 0013731f 2**0 CONTENTS, READONLY - 20 .debug_frame 0000595c 00000000 00000000 00131dfc 2**2 + 20 .debug_frame 00005a98 00000000 00000000 00137364 2**2 CONTENTS, READONLY, DEBUGGING, OCTETS - 21 .debug_line_str 0000006d 00000000 00000000 00137758 2**0 + 21 .debug_line_str 0000006d 00000000 00000000 0013cdfc 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS Disassembly of section .text: @@ -62,9 +62,9 @@ Disassembly of section .text: 80001ea: 2301 movs r3, #1 80001ec: 7023 strb r3, [r4, #0] 80001ee: bd10 pop {r4, pc} - 80001f0: 2000000c .word 0x2000000c + 80001f0: 20000020 .word 0x20000020 80001f4: 00000000 .word 0x00000000 - 80001f8: 08006d1c .word 0x08006d1c + 80001f8: 08007714 .word 0x08007714 080001fc : 80001fc: b508 push {r3, lr} @@ -75,18143 +75,19268 @@ Disassembly of section .text: 8000206: f3af 8000 nop.w 800020a: bd08 pop {r3, pc} 800020c: 00000000 .word 0x00000000 - 8000210: 20000010 .word 0x20000010 - 8000214: 08006d1c .word 0x08006d1c + 8000210: 20000024 .word 0x20000024 + 8000214: 08007714 .word 0x08007714 -08000218 <__aeabi_uldivmod>: - 8000218: b953 cbnz r3, 8000230 <__aeabi_uldivmod+0x18> - 800021a: b94a cbnz r2, 8000230 <__aeabi_uldivmod+0x18> - 800021c: 2900 cmp r1, #0 - 800021e: bf08 it eq - 8000220: 2800 cmpeq r0, #0 - 8000222: bf1c itt ne - 8000224: f04f 31ff movne.w r1, #4294967295 - 8000228: f04f 30ff movne.w r0, #4294967295 - 800022c: f000 b988 b.w 8000540 <__aeabi_idiv0> - 8000230: f1ad 0c08 sub.w ip, sp, #8 - 8000234: e96d ce04 strd ip, lr, [sp, #-16]! - 8000238: f000 f806 bl 8000248 <__udivmoddi4> - 800023c: f8dd e004 ldr.w lr, [sp, #4] - 8000240: e9dd 2302 ldrd r2, r3, [sp, #8] - 8000244: b004 add sp, #16 - 8000246: 4770 bx lr +08000218 <__aeabi_dmul>: + 8000218: b570 push {r4, r5, r6, lr} + 800021a: f04f 0cff mov.w ip, #255 @ 0xff + 800021e: f44c 6ce0 orr.w ip, ip, #1792 @ 0x700 + 8000222: ea1c 5411 ands.w r4, ip, r1, lsr #20 + 8000226: bf1d ittte ne + 8000228: ea1c 5513 andsne.w r5, ip, r3, lsr #20 + 800022c: ea94 0f0c teqne r4, ip + 8000230: ea95 0f0c teqne r5, ip + 8000234: f000 f8de bleq 80003f4 <__aeabi_dmul+0x1dc> + 8000238: 442c add r4, r5 + 800023a: ea81 0603 eor.w r6, r1, r3 + 800023e: ea21 514c bic.w r1, r1, ip, lsl #21 + 8000242: ea23 534c bic.w r3, r3, ip, lsl #21 + 8000246: ea50 3501 orrs.w r5, r0, r1, lsl #12 + 800024a: bf18 it ne + 800024c: ea52 3503 orrsne.w r5, r2, r3, lsl #12 + 8000250: f441 1180 orr.w r1, r1, #1048576 @ 0x100000 + 8000254: f443 1380 orr.w r3, r3, #1048576 @ 0x100000 + 8000258: d038 beq.n 80002cc <__aeabi_dmul+0xb4> + 800025a: fba0 ce02 umull ip, lr, r0, r2 + 800025e: f04f 0500 mov.w r5, #0 + 8000262: fbe1 e502 umlal lr, r5, r1, r2 + 8000266: f006 4200 and.w r2, r6, #2147483648 @ 0x80000000 + 800026a: fbe0 e503 umlal lr, r5, r0, r3 + 800026e: f04f 0600 mov.w r6, #0 + 8000272: fbe1 5603 umlal r5, r6, r1, r3 + 8000276: f09c 0f00 teq ip, #0 + 800027a: bf18 it ne + 800027c: f04e 0e01 orrne.w lr, lr, #1 + 8000280: f1a4 04ff sub.w r4, r4, #255 @ 0xff + 8000284: f5b6 7f00 cmp.w r6, #512 @ 0x200 + 8000288: f564 7440 sbc.w r4, r4, #768 @ 0x300 + 800028c: d204 bcs.n 8000298 <__aeabi_dmul+0x80> + 800028e: ea5f 0e4e movs.w lr, lr, lsl #1 + 8000292: 416d adcs r5, r5 + 8000294: eb46 0606 adc.w r6, r6, r6 + 8000298: ea42 21c6 orr.w r1, r2, r6, lsl #11 + 800029c: ea41 5155 orr.w r1, r1, r5, lsr #21 + 80002a0: ea4f 20c5 mov.w r0, r5, lsl #11 + 80002a4: ea40 505e orr.w r0, r0, lr, lsr #21 + 80002a8: ea4f 2ece mov.w lr, lr, lsl #11 + 80002ac: f1b4 0cfd subs.w ip, r4, #253 @ 0xfd + 80002b0: bf88 it hi + 80002b2: f5bc 6fe0 cmphi.w ip, #1792 @ 0x700 + 80002b6: d81e bhi.n 80002f6 <__aeabi_dmul+0xde> + 80002b8: f1be 4f00 cmp.w lr, #2147483648 @ 0x80000000 + 80002bc: bf08 it eq + 80002be: ea5f 0e50 movseq.w lr, r0, lsr #1 + 80002c2: f150 0000 adcs.w r0, r0, #0 + 80002c6: eb41 5104 adc.w r1, r1, r4, lsl #20 + 80002ca: bd70 pop {r4, r5, r6, pc} + 80002cc: f006 4600 and.w r6, r6, #2147483648 @ 0x80000000 + 80002d0: ea46 0101 orr.w r1, r6, r1 + 80002d4: ea40 0002 orr.w r0, r0, r2 + 80002d8: ea81 0103 eor.w r1, r1, r3 + 80002dc: ebb4 045c subs.w r4, r4, ip, lsr #1 + 80002e0: bfc2 ittt gt + 80002e2: ebd4 050c rsbsgt r5, r4, ip + 80002e6: ea41 5104 orrgt.w r1, r1, r4, lsl #20 + 80002ea: bd70 popgt {r4, r5, r6, pc} + 80002ec: f441 1180 orr.w r1, r1, #1048576 @ 0x100000 + 80002f0: f04f 0e00 mov.w lr, #0 + 80002f4: 3c01 subs r4, #1 + 80002f6: f300 80ab bgt.w 8000450 <__aeabi_dmul+0x238> + 80002fa: f114 0f36 cmn.w r4, #54 @ 0x36 + 80002fe: bfde ittt le + 8000300: 2000 movle r0, #0 + 8000302: f001 4100 andle.w r1, r1, #2147483648 @ 0x80000000 + 8000306: bd70 pople {r4, r5, r6, pc} + 8000308: f1c4 0400 rsb r4, r4, #0 + 800030c: 3c20 subs r4, #32 + 800030e: da35 bge.n 800037c <__aeabi_dmul+0x164> + 8000310: 340c adds r4, #12 + 8000312: dc1b bgt.n 800034c <__aeabi_dmul+0x134> + 8000314: f104 0414 add.w r4, r4, #20 + 8000318: f1c4 0520 rsb r5, r4, #32 + 800031c: fa00 f305 lsl.w r3, r0, r5 + 8000320: fa20 f004 lsr.w r0, r0, r4 + 8000324: fa01 f205 lsl.w r2, r1, r5 + 8000328: ea40 0002 orr.w r0, r0, r2 + 800032c: f001 4200 and.w r2, r1, #2147483648 @ 0x80000000 + 8000330: f021 4100 bic.w r1, r1, #2147483648 @ 0x80000000 + 8000334: eb10 70d3 adds.w r0, r0, r3, lsr #31 + 8000338: fa21 f604 lsr.w r6, r1, r4 + 800033c: eb42 0106 adc.w r1, r2, r6 + 8000340: ea5e 0e43 orrs.w lr, lr, r3, lsl #1 + 8000344: bf08 it eq + 8000346: ea20 70d3 biceq.w r0, r0, r3, lsr #31 + 800034a: bd70 pop {r4, r5, r6, pc} + 800034c: f1c4 040c rsb r4, r4, #12 + 8000350: f1c4 0520 rsb r5, r4, #32 + 8000354: fa00 f304 lsl.w r3, r0, r4 + 8000358: fa20 f005 lsr.w r0, r0, r5 + 800035c: fa01 f204 lsl.w r2, r1, r4 + 8000360: ea40 0002 orr.w r0, r0, r2 + 8000364: f001 4100 and.w r1, r1, #2147483648 @ 0x80000000 + 8000368: eb10 70d3 adds.w r0, r0, r3, lsr #31 + 800036c: f141 0100 adc.w r1, r1, #0 + 8000370: ea5e 0e43 orrs.w lr, lr, r3, lsl #1 + 8000374: bf08 it eq + 8000376: ea20 70d3 biceq.w r0, r0, r3, lsr #31 + 800037a: bd70 pop {r4, r5, r6, pc} + 800037c: f1c4 0520 rsb r5, r4, #32 + 8000380: fa00 f205 lsl.w r2, r0, r5 + 8000384: ea4e 0e02 orr.w lr, lr, r2 + 8000388: fa20 f304 lsr.w r3, r0, r4 + 800038c: fa01 f205 lsl.w r2, r1, r5 + 8000390: ea43 0302 orr.w r3, r3, r2 + 8000394: fa21 f004 lsr.w r0, r1, r4 + 8000398: f001 4100 and.w r1, r1, #2147483648 @ 0x80000000 + 800039c: fa21 f204 lsr.w r2, r1, r4 + 80003a0: ea20 0002 bic.w r0, r0, r2 + 80003a4: eb00 70d3 add.w r0, r0, r3, lsr #31 + 80003a8: ea5e 0e43 orrs.w lr, lr, r3, lsl #1 + 80003ac: bf08 it eq + 80003ae: ea20 70d3 biceq.w r0, r0, r3, lsr #31 + 80003b2: bd70 pop {r4, r5, r6, pc} + 80003b4: f094 0f00 teq r4, #0 + 80003b8: d10f bne.n 80003da <__aeabi_dmul+0x1c2> + 80003ba: f001 4600 and.w r6, r1, #2147483648 @ 0x80000000 + 80003be: 0040 lsls r0, r0, #1 + 80003c0: eb41 0101 adc.w r1, r1, r1 + 80003c4: f411 1f80 tst.w r1, #1048576 @ 0x100000 + 80003c8: bf08 it eq + 80003ca: 3c01 subeq r4, #1 + 80003cc: d0f7 beq.n 80003be <__aeabi_dmul+0x1a6> + 80003ce: ea41 0106 orr.w r1, r1, r6 + 80003d2: f095 0f00 teq r5, #0 + 80003d6: bf18 it ne + 80003d8: 4770 bxne lr + 80003da: f003 4600 and.w r6, r3, #2147483648 @ 0x80000000 + 80003de: 0052 lsls r2, r2, #1 + 80003e0: eb43 0303 adc.w r3, r3, r3 + 80003e4: f413 1f80 tst.w r3, #1048576 @ 0x100000 + 80003e8: bf08 it eq + 80003ea: 3d01 subeq r5, #1 + 80003ec: d0f7 beq.n 80003de <__aeabi_dmul+0x1c6> + 80003ee: ea43 0306 orr.w r3, r3, r6 + 80003f2: 4770 bx lr + 80003f4: ea94 0f0c teq r4, ip + 80003f8: ea0c 5513 and.w r5, ip, r3, lsr #20 + 80003fc: bf18 it ne + 80003fe: ea95 0f0c teqne r5, ip + 8000402: d00c beq.n 800041e <__aeabi_dmul+0x206> + 8000404: ea50 0641 orrs.w r6, r0, r1, lsl #1 + 8000408: bf18 it ne + 800040a: ea52 0643 orrsne.w r6, r2, r3, lsl #1 + 800040e: d1d1 bne.n 80003b4 <__aeabi_dmul+0x19c> + 8000410: ea81 0103 eor.w r1, r1, r3 + 8000414: f001 4100 and.w r1, r1, #2147483648 @ 0x80000000 + 8000418: f04f 0000 mov.w r0, #0 + 800041c: bd70 pop {r4, r5, r6, pc} + 800041e: ea50 0641 orrs.w r6, r0, r1, lsl #1 + 8000422: bf06 itte eq + 8000424: 4610 moveq r0, r2 + 8000426: 4619 moveq r1, r3 + 8000428: ea52 0643 orrsne.w r6, r2, r3, lsl #1 + 800042c: d019 beq.n 8000462 <__aeabi_dmul+0x24a> + 800042e: ea94 0f0c teq r4, ip + 8000432: d102 bne.n 800043a <__aeabi_dmul+0x222> + 8000434: ea50 3601 orrs.w r6, r0, r1, lsl #12 + 8000438: d113 bne.n 8000462 <__aeabi_dmul+0x24a> + 800043a: ea95 0f0c teq r5, ip + 800043e: d105 bne.n 800044c <__aeabi_dmul+0x234> + 8000440: ea52 3603 orrs.w r6, r2, r3, lsl #12 + 8000444: bf1c itt ne + 8000446: 4610 movne r0, r2 + 8000448: 4619 movne r1, r3 + 800044a: d10a bne.n 8000462 <__aeabi_dmul+0x24a> + 800044c: ea81 0103 eor.w r1, r1, r3 + 8000450: f001 4100 and.w r1, r1, #2147483648 @ 0x80000000 + 8000454: f041 41fe orr.w r1, r1, #2130706432 @ 0x7f000000 + 8000458: f441 0170 orr.w r1, r1, #15728640 @ 0xf00000 + 800045c: f04f 0000 mov.w r0, #0 + 8000460: bd70 pop {r4, r5, r6, pc} + 8000462: f041 41fe orr.w r1, r1, #2130706432 @ 0x7f000000 + 8000466: f441 0178 orr.w r1, r1, #16252928 @ 0xf80000 + 800046a: bd70 pop {r4, r5, r6, pc} -08000248 <__udivmoddi4>: - 8000248: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} - 800024c: 9d08 ldr r5, [sp, #32] - 800024e: 468e mov lr, r1 - 8000250: 4604 mov r4, r0 - 8000252: 4688 mov r8, r1 - 8000254: 2b00 cmp r3, #0 - 8000256: d14a bne.n 80002ee <__udivmoddi4+0xa6> - 8000258: 428a cmp r2, r1 - 800025a: 4617 mov r7, r2 - 800025c: d962 bls.n 8000324 <__udivmoddi4+0xdc> - 800025e: fab2 f682 clz r6, r2 - 8000262: b14e cbz r6, 8000278 <__udivmoddi4+0x30> - 8000264: f1c6 0320 rsb r3, r6, #32 - 8000268: fa01 f806 lsl.w r8, r1, r6 - 800026c: fa20 f303 lsr.w r3, r0, r3 - 8000270: 40b7 lsls r7, r6 - 8000272: ea43 0808 orr.w r8, r3, r8 - 8000276: 40b4 lsls r4, r6 - 8000278: ea4f 4e17 mov.w lr, r7, lsr #16 - 800027c: fa1f fc87 uxth.w ip, r7 - 8000280: fbb8 f1fe udiv r1, r8, lr - 8000284: 0c23 lsrs r3, r4, #16 - 8000286: fb0e 8811 mls r8, lr, r1, r8 - 800028a: ea43 4308 orr.w r3, r3, r8, lsl #16 - 800028e: fb01 f20c mul.w r2, r1, ip - 8000292: 429a cmp r2, r3 - 8000294: d909 bls.n 80002aa <__udivmoddi4+0x62> - 8000296: 18fb adds r3, r7, r3 - 8000298: f101 30ff add.w r0, r1, #4294967295 - 800029c: f080 80ea bcs.w 8000474 <__udivmoddi4+0x22c> - 80002a0: 429a cmp r2, r3 - 80002a2: f240 80e7 bls.w 8000474 <__udivmoddi4+0x22c> - 80002a6: 3902 subs r1, #2 - 80002a8: 443b add r3, r7 - 80002aa: 1a9a subs r2, r3, r2 - 80002ac: b2a3 uxth r3, r4 - 80002ae: fbb2 f0fe udiv r0, r2, lr - 80002b2: fb0e 2210 mls r2, lr, r0, r2 - 80002b6: ea43 4302 orr.w r3, r3, r2, lsl #16 - 80002ba: fb00 fc0c mul.w ip, r0, ip - 80002be: 459c cmp ip, r3 - 80002c0: d909 bls.n 80002d6 <__udivmoddi4+0x8e> - 80002c2: 18fb adds r3, r7, r3 - 80002c4: f100 32ff add.w r2, r0, #4294967295 - 80002c8: f080 80d6 bcs.w 8000478 <__udivmoddi4+0x230> - 80002cc: 459c cmp ip, r3 - 80002ce: f240 80d3 bls.w 8000478 <__udivmoddi4+0x230> - 80002d2: 443b add r3, r7 - 80002d4: 3802 subs r0, #2 - 80002d6: ea40 4001 orr.w r0, r0, r1, lsl #16 - 80002da: eba3 030c sub.w r3, r3, ip - 80002de: 2100 movs r1, #0 - 80002e0: b11d cbz r5, 80002ea <__udivmoddi4+0xa2> - 80002e2: 40f3 lsrs r3, r6 - 80002e4: 2200 movs r2, #0 - 80002e6: e9c5 3200 strd r3, r2, [r5] - 80002ea: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} - 80002ee: 428b cmp r3, r1 - 80002f0: d905 bls.n 80002fe <__udivmoddi4+0xb6> - 80002f2: b10d cbz r5, 80002f8 <__udivmoddi4+0xb0> - 80002f4: e9c5 0100 strd r0, r1, [r5] - 80002f8: 2100 movs r1, #0 - 80002fa: 4608 mov r0, r1 - 80002fc: e7f5 b.n 80002ea <__udivmoddi4+0xa2> - 80002fe: fab3 f183 clz r1, r3 - 8000302: 2900 cmp r1, #0 - 8000304: d146 bne.n 8000394 <__udivmoddi4+0x14c> - 8000306: 4573 cmp r3, lr - 8000308: d302 bcc.n 8000310 <__udivmoddi4+0xc8> - 800030a: 4282 cmp r2, r0 - 800030c: f200 8105 bhi.w 800051a <__udivmoddi4+0x2d2> - 8000310: 1a84 subs r4, r0, r2 - 8000312: eb6e 0203 sbc.w r2, lr, r3 - 8000316: 2001 movs r0, #1 - 8000318: 4690 mov r8, r2 - 800031a: 2d00 cmp r5, #0 - 800031c: d0e5 beq.n 80002ea <__udivmoddi4+0xa2> - 800031e: e9c5 4800 strd r4, r8, [r5] - 8000322: e7e2 b.n 80002ea <__udivmoddi4+0xa2> - 8000324: 2a00 cmp r2, #0 - 8000326: f000 8090 beq.w 800044a <__udivmoddi4+0x202> - 800032a: fab2 f682 clz r6, r2 - 800032e: 2e00 cmp r6, #0 - 8000330: f040 80a4 bne.w 800047c <__udivmoddi4+0x234> - 8000334: 1a8a subs r2, r1, r2 - 8000336: 0c03 lsrs r3, r0, #16 - 8000338: ea4f 4e17 mov.w lr, r7, lsr #16 - 800033c: b280 uxth r0, r0 - 800033e: b2bc uxth r4, r7 - 8000340: 2101 movs r1, #1 - 8000342: fbb2 fcfe udiv ip, r2, lr - 8000346: fb0e 221c mls r2, lr, ip, r2 - 800034a: ea43 4302 orr.w r3, r3, r2, lsl #16 - 800034e: fb04 f20c mul.w r2, r4, ip - 8000352: 429a cmp r2, r3 - 8000354: d907 bls.n 8000366 <__udivmoddi4+0x11e> - 8000356: 18fb adds r3, r7, r3 - 8000358: f10c 38ff add.w r8, ip, #4294967295 - 800035c: d202 bcs.n 8000364 <__udivmoddi4+0x11c> - 800035e: 429a cmp r2, r3 - 8000360: f200 80e0 bhi.w 8000524 <__udivmoddi4+0x2dc> - 8000364: 46c4 mov ip, r8 - 8000366: 1a9b subs r3, r3, r2 - 8000368: fbb3 f2fe udiv r2, r3, lr - 800036c: fb0e 3312 mls r3, lr, r2, r3 - 8000370: ea40 4303 orr.w r3, r0, r3, lsl #16 - 8000374: fb02 f404 mul.w r4, r2, r4 - 8000378: 429c cmp r4, r3 - 800037a: d907 bls.n 800038c <__udivmoddi4+0x144> - 800037c: 18fb adds r3, r7, r3 - 800037e: f102 30ff add.w r0, r2, #4294967295 - 8000382: d202 bcs.n 800038a <__udivmoddi4+0x142> - 8000384: 429c cmp r4, r3 - 8000386: f200 80ca bhi.w 800051e <__udivmoddi4+0x2d6> - 800038a: 4602 mov r2, r0 - 800038c: 1b1b subs r3, r3, r4 - 800038e: ea42 400c orr.w r0, r2, ip, lsl #16 - 8000392: e7a5 b.n 80002e0 <__udivmoddi4+0x98> - 8000394: f1c1 0620 rsb r6, r1, #32 - 8000398: 408b lsls r3, r1 - 800039a: fa22 f706 lsr.w r7, r2, r6 - 800039e: 431f orrs r7, r3 - 80003a0: fa0e f401 lsl.w r4, lr, r1 - 80003a4: fa20 f306 lsr.w r3, r0, r6 - 80003a8: fa2e fe06 lsr.w lr, lr, r6 - 80003ac: ea4f 4917 mov.w r9, r7, lsr #16 - 80003b0: 4323 orrs r3, r4 - 80003b2: fa00 f801 lsl.w r8, r0, r1 - 80003b6: fa1f fc87 uxth.w ip, r7 - 80003ba: fbbe f0f9 udiv r0, lr, r9 - 80003be: 0c1c lsrs r4, r3, #16 - 80003c0: fb09 ee10 mls lr, r9, r0, lr - 80003c4: ea44 440e orr.w r4, r4, lr, lsl #16 - 80003c8: fb00 fe0c mul.w lr, r0, ip - 80003cc: 45a6 cmp lr, r4 - 80003ce: fa02 f201 lsl.w r2, r2, r1 - 80003d2: d909 bls.n 80003e8 <__udivmoddi4+0x1a0> - 80003d4: 193c adds r4, r7, r4 - 80003d6: f100 3aff add.w sl, r0, #4294967295 - 80003da: f080 809c bcs.w 8000516 <__udivmoddi4+0x2ce> - 80003de: 45a6 cmp lr, r4 - 80003e0: f240 8099 bls.w 8000516 <__udivmoddi4+0x2ce> - 80003e4: 3802 subs r0, #2 - 80003e6: 443c add r4, r7 - 80003e8: eba4 040e sub.w r4, r4, lr - 80003ec: fa1f fe83 uxth.w lr, r3 - 80003f0: fbb4 f3f9 udiv r3, r4, r9 - 80003f4: fb09 4413 mls r4, r9, r3, r4 - 80003f8: ea4e 4404 orr.w r4, lr, r4, lsl #16 - 80003fc: fb03 fc0c mul.w ip, r3, ip - 8000400: 45a4 cmp ip, r4 - 8000402: d908 bls.n 8000416 <__udivmoddi4+0x1ce> - 8000404: 193c adds r4, r7, r4 - 8000406: f103 3eff add.w lr, r3, #4294967295 - 800040a: f080 8082 bcs.w 8000512 <__udivmoddi4+0x2ca> - 800040e: 45a4 cmp ip, r4 - 8000410: d97f bls.n 8000512 <__udivmoddi4+0x2ca> - 8000412: 3b02 subs r3, #2 - 8000414: 443c add r4, r7 - 8000416: ea43 4000 orr.w r0, r3, r0, lsl #16 - 800041a: eba4 040c sub.w r4, r4, ip - 800041e: fba0 ec02 umull lr, ip, r0, r2 - 8000422: 4564 cmp r4, ip - 8000424: 4673 mov r3, lr - 8000426: 46e1 mov r9, ip - 8000428: d362 bcc.n 80004f0 <__udivmoddi4+0x2a8> - 800042a: d05f beq.n 80004ec <__udivmoddi4+0x2a4> - 800042c: b15d cbz r5, 8000446 <__udivmoddi4+0x1fe> - 800042e: ebb8 0203 subs.w r2, r8, r3 - 8000432: eb64 0409 sbc.w r4, r4, r9 - 8000436: fa04 f606 lsl.w r6, r4, r6 - 800043a: fa22 f301 lsr.w r3, r2, r1 - 800043e: 431e orrs r6, r3 - 8000440: 40cc lsrs r4, r1 - 8000442: e9c5 6400 strd r6, r4, [r5] - 8000446: 2100 movs r1, #0 - 8000448: e74f b.n 80002ea <__udivmoddi4+0xa2> - 800044a: fbb1 fcf2 udiv ip, r1, r2 - 800044e: 0c01 lsrs r1, r0, #16 - 8000450: ea41 410e orr.w r1, r1, lr, lsl #16 - 8000454: b280 uxth r0, r0 - 8000456: ea40 4201 orr.w r2, r0, r1, lsl #16 - 800045a: 463b mov r3, r7 - 800045c: 4638 mov r0, r7 - 800045e: 463c mov r4, r7 - 8000460: 46b8 mov r8, r7 - 8000462: 46be mov lr, r7 - 8000464: 2620 movs r6, #32 - 8000466: fbb1 f1f7 udiv r1, r1, r7 - 800046a: eba2 0208 sub.w r2, r2, r8 - 800046e: ea41 410c orr.w r1, r1, ip, lsl #16 - 8000472: e766 b.n 8000342 <__udivmoddi4+0xfa> - 8000474: 4601 mov r1, r0 - 8000476: e718 b.n 80002aa <__udivmoddi4+0x62> - 8000478: 4610 mov r0, r2 - 800047a: e72c b.n 80002d6 <__udivmoddi4+0x8e> - 800047c: f1c6 0220 rsb r2, r6, #32 - 8000480: fa2e f302 lsr.w r3, lr, r2 - 8000484: 40b7 lsls r7, r6 - 8000486: 40b1 lsls r1, r6 - 8000488: fa20 f202 lsr.w r2, r0, r2 - 800048c: ea4f 4e17 mov.w lr, r7, lsr #16 - 8000490: 430a orrs r2, r1 - 8000492: fbb3 f8fe udiv r8, r3, lr - 8000496: b2bc uxth r4, r7 - 8000498: fb0e 3318 mls r3, lr, r8, r3 - 800049c: 0c11 lsrs r1, r2, #16 - 800049e: ea41 4103 orr.w r1, r1, r3, lsl #16 - 80004a2: fb08 f904 mul.w r9, r8, r4 - 80004a6: 40b0 lsls r0, r6 - 80004a8: 4589 cmp r9, r1 - 80004aa: ea4f 4310 mov.w r3, r0, lsr #16 - 80004ae: b280 uxth r0, r0 - 80004b0: d93e bls.n 8000530 <__udivmoddi4+0x2e8> - 80004b2: 1879 adds r1, r7, r1 - 80004b4: f108 3cff add.w ip, r8, #4294967295 - 80004b8: d201 bcs.n 80004be <__udivmoddi4+0x276> - 80004ba: 4589 cmp r9, r1 - 80004bc: d81f bhi.n 80004fe <__udivmoddi4+0x2b6> - 80004be: eba1 0109 sub.w r1, r1, r9 - 80004c2: fbb1 f9fe udiv r9, r1, lr - 80004c6: fb09 f804 mul.w r8, r9, r4 - 80004ca: fb0e 1119 mls r1, lr, r9, r1 - 80004ce: b292 uxth r2, r2 - 80004d0: ea42 4201 orr.w r2, r2, r1, lsl #16 - 80004d4: 4542 cmp r2, r8 - 80004d6: d229 bcs.n 800052c <__udivmoddi4+0x2e4> - 80004d8: 18ba adds r2, r7, r2 - 80004da: f109 31ff add.w r1, r9, #4294967295 - 80004de: d2c4 bcs.n 800046a <__udivmoddi4+0x222> - 80004e0: 4542 cmp r2, r8 - 80004e2: d2c2 bcs.n 800046a <__udivmoddi4+0x222> - 80004e4: f1a9 0102 sub.w r1, r9, #2 - 80004e8: 443a add r2, r7 - 80004ea: e7be b.n 800046a <__udivmoddi4+0x222> - 80004ec: 45f0 cmp r8, lr - 80004ee: d29d bcs.n 800042c <__udivmoddi4+0x1e4> - 80004f0: ebbe 0302 subs.w r3, lr, r2 - 80004f4: eb6c 0c07 sbc.w ip, ip, r7 - 80004f8: 3801 subs r0, #1 - 80004fa: 46e1 mov r9, ip - 80004fc: e796 b.n 800042c <__udivmoddi4+0x1e4> - 80004fe: eba7 0909 sub.w r9, r7, r9 - 8000502: 4449 add r1, r9 - 8000504: f1a8 0c02 sub.w ip, r8, #2 - 8000508: fbb1 f9fe udiv r9, r1, lr - 800050c: fb09 f804 mul.w r8, r9, r4 - 8000510: e7db b.n 80004ca <__udivmoddi4+0x282> - 8000512: 4673 mov r3, lr - 8000514: e77f b.n 8000416 <__udivmoddi4+0x1ce> - 8000516: 4650 mov r0, sl - 8000518: e766 b.n 80003e8 <__udivmoddi4+0x1a0> - 800051a: 4608 mov r0, r1 - 800051c: e6fd b.n 800031a <__udivmoddi4+0xd2> - 800051e: 443b add r3, r7 - 8000520: 3a02 subs r2, #2 - 8000522: e733 b.n 800038c <__udivmoddi4+0x144> - 8000524: f1ac 0c02 sub.w ip, ip, #2 - 8000528: 443b add r3, r7 - 800052a: e71c b.n 8000366 <__udivmoddi4+0x11e> - 800052c: 4649 mov r1, r9 - 800052e: e79c b.n 800046a <__udivmoddi4+0x222> - 8000530: eba1 0109 sub.w r1, r1, r9 - 8000534: 46c4 mov ip, r8 - 8000536: fbb1 f9fe udiv r9, r1, lr - 800053a: fb09 f804 mul.w r8, r9, r4 - 800053e: e7c4 b.n 80004ca <__udivmoddi4+0x282> +0800046c <__aeabi_drsub>: + 800046c: f081 4100 eor.w r1, r1, #2147483648 @ 0x80000000 + 8000470: e002 b.n 8000478 <__adddf3> + 8000472: bf00 nop -08000540 <__aeabi_idiv0>: - 8000540: 4770 bx lr - 8000542: bf00 nop +08000474 <__aeabi_dsub>: + 8000474: f083 4300 eor.w r3, r3, #2147483648 @ 0x80000000 -08000544
: +08000478 <__adddf3>: + 8000478: b530 push {r4, r5, lr} + 800047a: ea4f 0441 mov.w r4, r1, lsl #1 + 800047e: ea4f 0543 mov.w r5, r3, lsl #1 + 8000482: ea94 0f05 teq r4, r5 + 8000486: bf08 it eq + 8000488: ea90 0f02 teqeq r0, r2 + 800048c: bf1f itttt ne + 800048e: ea54 0c00 orrsne.w ip, r4, r0 + 8000492: ea55 0c02 orrsne.w ip, r5, r2 + 8000496: ea7f 5c64 mvnsne.w ip, r4, asr #21 + 800049a: ea7f 5c65 mvnsne.w ip, r5, asr #21 + 800049e: f000 80e2 beq.w 8000666 <__adddf3+0x1ee> + 80004a2: ea4f 5454 mov.w r4, r4, lsr #21 + 80004a6: ebd4 5555 rsbs r5, r4, r5, lsr #21 + 80004aa: bfb8 it lt + 80004ac: 426d neglt r5, r5 + 80004ae: dd0c ble.n 80004ca <__adddf3+0x52> + 80004b0: 442c add r4, r5 + 80004b2: ea80 0202 eor.w r2, r0, r2 + 80004b6: ea81 0303 eor.w r3, r1, r3 + 80004ba: ea82 0000 eor.w r0, r2, r0 + 80004be: ea83 0101 eor.w r1, r3, r1 + 80004c2: ea80 0202 eor.w r2, r0, r2 + 80004c6: ea81 0303 eor.w r3, r1, r3 + 80004ca: 2d36 cmp r5, #54 @ 0x36 + 80004cc: bf88 it hi + 80004ce: bd30 pophi {r4, r5, pc} + 80004d0: f011 4f00 tst.w r1, #2147483648 @ 0x80000000 + 80004d4: ea4f 3101 mov.w r1, r1, lsl #12 + 80004d8: f44f 1c80 mov.w ip, #1048576 @ 0x100000 + 80004dc: ea4c 3111 orr.w r1, ip, r1, lsr #12 + 80004e0: d002 beq.n 80004e8 <__adddf3+0x70> + 80004e2: 4240 negs r0, r0 + 80004e4: eb61 0141 sbc.w r1, r1, r1, lsl #1 + 80004e8: f013 4f00 tst.w r3, #2147483648 @ 0x80000000 + 80004ec: ea4f 3303 mov.w r3, r3, lsl #12 + 80004f0: ea4c 3313 orr.w r3, ip, r3, lsr #12 + 80004f4: d002 beq.n 80004fc <__adddf3+0x84> + 80004f6: 4252 negs r2, r2 + 80004f8: eb63 0343 sbc.w r3, r3, r3, lsl #1 + 80004fc: ea94 0f05 teq r4, r5 + 8000500: f000 80a7 beq.w 8000652 <__adddf3+0x1da> + 8000504: f1a4 0401 sub.w r4, r4, #1 + 8000508: f1d5 0e20 rsbs lr, r5, #32 + 800050c: db0d blt.n 800052a <__adddf3+0xb2> + 800050e: fa02 fc0e lsl.w ip, r2, lr + 8000512: fa22 f205 lsr.w r2, r2, r5 + 8000516: 1880 adds r0, r0, r2 + 8000518: f141 0100 adc.w r1, r1, #0 + 800051c: fa03 f20e lsl.w r2, r3, lr + 8000520: 1880 adds r0, r0, r2 + 8000522: fa43 f305 asr.w r3, r3, r5 + 8000526: 4159 adcs r1, r3 + 8000528: e00e b.n 8000548 <__adddf3+0xd0> + 800052a: f1a5 0520 sub.w r5, r5, #32 + 800052e: f10e 0e20 add.w lr, lr, #32 + 8000532: 2a01 cmp r2, #1 + 8000534: fa03 fc0e lsl.w ip, r3, lr + 8000538: bf28 it cs + 800053a: f04c 0c02 orrcs.w ip, ip, #2 + 800053e: fa43 f305 asr.w r3, r3, r5 + 8000542: 18c0 adds r0, r0, r3 + 8000544: eb51 71e3 adcs.w r1, r1, r3, asr #31 + 8000548: f001 4500 and.w r5, r1, #2147483648 @ 0x80000000 + 800054c: d507 bpl.n 800055e <__adddf3+0xe6> + 800054e: f04f 0e00 mov.w lr, #0 + 8000552: f1dc 0c00 rsbs ip, ip, #0 + 8000556: eb7e 0000 sbcs.w r0, lr, r0 + 800055a: eb6e 0101 sbc.w r1, lr, r1 + 800055e: f5b1 1f80 cmp.w r1, #1048576 @ 0x100000 + 8000562: d31b bcc.n 800059c <__adddf3+0x124> + 8000564: f5b1 1f00 cmp.w r1, #2097152 @ 0x200000 + 8000568: d30c bcc.n 8000584 <__adddf3+0x10c> + 800056a: 0849 lsrs r1, r1, #1 + 800056c: ea5f 0030 movs.w r0, r0, rrx + 8000570: ea4f 0c3c mov.w ip, ip, rrx + 8000574: f104 0401 add.w r4, r4, #1 + 8000578: ea4f 5244 mov.w r2, r4, lsl #21 + 800057c: f512 0f80 cmn.w r2, #4194304 @ 0x400000 + 8000580: f080 809a bcs.w 80006b8 <__adddf3+0x240> + 8000584: f1bc 4f00 cmp.w ip, #2147483648 @ 0x80000000 + 8000588: bf08 it eq + 800058a: ea5f 0c50 movseq.w ip, r0, lsr #1 + 800058e: f150 0000 adcs.w r0, r0, #0 + 8000592: eb41 5104 adc.w r1, r1, r4, lsl #20 + 8000596: ea41 0105 orr.w r1, r1, r5 + 800059a: bd30 pop {r4, r5, pc} + 800059c: ea5f 0c4c movs.w ip, ip, lsl #1 + 80005a0: 4140 adcs r0, r0 + 80005a2: eb41 0101 adc.w r1, r1, r1 + 80005a6: 3c01 subs r4, #1 + 80005a8: bf28 it cs + 80005aa: f5b1 1f80 cmpcs.w r1, #1048576 @ 0x100000 + 80005ae: d2e9 bcs.n 8000584 <__adddf3+0x10c> + 80005b0: f091 0f00 teq r1, #0 + 80005b4: bf04 itt eq + 80005b6: 4601 moveq r1, r0 + 80005b8: 2000 moveq r0, #0 + 80005ba: fab1 f381 clz r3, r1 + 80005be: bf08 it eq + 80005c0: 3320 addeq r3, #32 + 80005c2: f1a3 030b sub.w r3, r3, #11 + 80005c6: f1b3 0220 subs.w r2, r3, #32 + 80005ca: da0c bge.n 80005e6 <__adddf3+0x16e> + 80005cc: 320c adds r2, #12 + 80005ce: dd08 ble.n 80005e2 <__adddf3+0x16a> + 80005d0: f102 0c14 add.w ip, r2, #20 + 80005d4: f1c2 020c rsb r2, r2, #12 + 80005d8: fa01 f00c lsl.w r0, r1, ip + 80005dc: fa21 f102 lsr.w r1, r1, r2 + 80005e0: e00c b.n 80005fc <__adddf3+0x184> + 80005e2: f102 0214 add.w r2, r2, #20 + 80005e6: bfd8 it le + 80005e8: f1c2 0c20 rsble ip, r2, #32 + 80005ec: fa01 f102 lsl.w r1, r1, r2 + 80005f0: fa20 fc0c lsr.w ip, r0, ip + 80005f4: bfdc itt le + 80005f6: ea41 010c orrle.w r1, r1, ip + 80005fa: 4090 lslle r0, r2 + 80005fc: 1ae4 subs r4, r4, r3 + 80005fe: bfa2 ittt ge + 8000600: eb01 5104 addge.w r1, r1, r4, lsl #20 + 8000604: 4329 orrge r1, r5 + 8000606: bd30 popge {r4, r5, pc} + 8000608: ea6f 0404 mvn.w r4, r4 + 800060c: 3c1f subs r4, #31 + 800060e: da1c bge.n 800064a <__adddf3+0x1d2> + 8000610: 340c adds r4, #12 + 8000612: dc0e bgt.n 8000632 <__adddf3+0x1ba> + 8000614: f104 0414 add.w r4, r4, #20 + 8000618: f1c4 0220 rsb r2, r4, #32 + 800061c: fa20 f004 lsr.w r0, r0, r4 + 8000620: fa01 f302 lsl.w r3, r1, r2 + 8000624: ea40 0003 orr.w r0, r0, r3 + 8000628: fa21 f304 lsr.w r3, r1, r4 + 800062c: ea45 0103 orr.w r1, r5, r3 + 8000630: bd30 pop {r4, r5, pc} + 8000632: f1c4 040c rsb r4, r4, #12 + 8000636: f1c4 0220 rsb r2, r4, #32 + 800063a: fa20 f002 lsr.w r0, r0, r2 + 800063e: fa01 f304 lsl.w r3, r1, r4 + 8000642: ea40 0003 orr.w r0, r0, r3 + 8000646: 4629 mov r1, r5 + 8000648: bd30 pop {r4, r5, pc} + 800064a: fa21 f004 lsr.w r0, r1, r4 + 800064e: 4629 mov r1, r5 + 8000650: bd30 pop {r4, r5, pc} + 8000652: f094 0f00 teq r4, #0 + 8000656: f483 1380 eor.w r3, r3, #1048576 @ 0x100000 + 800065a: bf06 itte eq + 800065c: f481 1180 eoreq.w r1, r1, #1048576 @ 0x100000 + 8000660: 3401 addeq r4, #1 + 8000662: 3d01 subne r5, #1 + 8000664: e74e b.n 8000504 <__adddf3+0x8c> + 8000666: ea7f 5c64 mvns.w ip, r4, asr #21 + 800066a: bf18 it ne + 800066c: ea7f 5c65 mvnsne.w ip, r5, asr #21 + 8000670: d029 beq.n 80006c6 <__adddf3+0x24e> + 8000672: ea94 0f05 teq r4, r5 + 8000676: bf08 it eq + 8000678: ea90 0f02 teqeq r0, r2 + 800067c: d005 beq.n 800068a <__adddf3+0x212> + 800067e: ea54 0c00 orrs.w ip, r4, r0 + 8000682: bf04 itt eq + 8000684: 4619 moveq r1, r3 + 8000686: 4610 moveq r0, r2 + 8000688: bd30 pop {r4, r5, pc} + 800068a: ea91 0f03 teq r1, r3 + 800068e: bf1e ittt ne + 8000690: 2100 movne r1, #0 + 8000692: 2000 movne r0, #0 + 8000694: bd30 popne {r4, r5, pc} + 8000696: ea5f 5c54 movs.w ip, r4, lsr #21 + 800069a: d105 bne.n 80006a8 <__adddf3+0x230> + 800069c: 0040 lsls r0, r0, #1 + 800069e: 4149 adcs r1, r1 + 80006a0: bf28 it cs + 80006a2: f041 4100 orrcs.w r1, r1, #2147483648 @ 0x80000000 + 80006a6: bd30 pop {r4, r5, pc} + 80006a8: f514 0480 adds.w r4, r4, #4194304 @ 0x400000 + 80006ac: bf3c itt cc + 80006ae: f501 1180 addcc.w r1, r1, #1048576 @ 0x100000 + 80006b2: bd30 popcc {r4, r5, pc} + 80006b4: f001 4500 and.w r5, r1, #2147483648 @ 0x80000000 + 80006b8: f045 41fe orr.w r1, r5, #2130706432 @ 0x7f000000 + 80006bc: f441 0170 orr.w r1, r1, #15728640 @ 0xf00000 + 80006c0: f04f 0000 mov.w r0, #0 + 80006c4: bd30 pop {r4, r5, pc} + 80006c6: ea7f 5c64 mvns.w ip, r4, asr #21 + 80006ca: bf1a itte ne + 80006cc: 4619 movne r1, r3 + 80006ce: 4610 movne r0, r2 + 80006d0: ea7f 5c65 mvnseq.w ip, r5, asr #21 + 80006d4: bf1c itt ne + 80006d6: 460b movne r3, r1 + 80006d8: 4602 movne r2, r0 + 80006da: ea50 3401 orrs.w r4, r0, r1, lsl #12 + 80006de: bf06 itte eq + 80006e0: ea52 3503 orrseq.w r5, r2, r3, lsl #12 + 80006e4: ea91 0f03 teqeq r1, r3 + 80006e8: f441 2100 orrne.w r1, r1, #524288 @ 0x80000 + 80006ec: bd30 pop {r4, r5, pc} + 80006ee: bf00 nop + +080006f0 <__aeabi_ui2d>: + 80006f0: f090 0f00 teq r0, #0 + 80006f4: bf04 itt eq + 80006f6: 2100 moveq r1, #0 + 80006f8: 4770 bxeq lr + 80006fa: b530 push {r4, r5, lr} + 80006fc: f44f 6480 mov.w r4, #1024 @ 0x400 + 8000700: f104 0432 add.w r4, r4, #50 @ 0x32 + 8000704: f04f 0500 mov.w r5, #0 + 8000708: f04f 0100 mov.w r1, #0 + 800070c: e750 b.n 80005b0 <__adddf3+0x138> + 800070e: bf00 nop + +08000710 <__aeabi_i2d>: + 8000710: f090 0f00 teq r0, #0 + 8000714: bf04 itt eq + 8000716: 2100 moveq r1, #0 + 8000718: 4770 bxeq lr + 800071a: b530 push {r4, r5, lr} + 800071c: f44f 6480 mov.w r4, #1024 @ 0x400 + 8000720: f104 0432 add.w r4, r4, #50 @ 0x32 + 8000724: f010 4500 ands.w r5, r0, #2147483648 @ 0x80000000 + 8000728: bf48 it mi + 800072a: 4240 negmi r0, r0 + 800072c: f04f 0100 mov.w r1, #0 + 8000730: e73e b.n 80005b0 <__adddf3+0x138> + 8000732: bf00 nop + +08000734 <__aeabi_f2d>: + 8000734: 0042 lsls r2, r0, #1 + 8000736: ea4f 01e2 mov.w r1, r2, asr #3 + 800073a: ea4f 0131 mov.w r1, r1, rrx + 800073e: ea4f 7002 mov.w r0, r2, lsl #28 + 8000742: bf1f itttt ne + 8000744: f012 437f andsne.w r3, r2, #4278190080 @ 0xff000000 + 8000748: f093 4f7f teqne r3, #4278190080 @ 0xff000000 + 800074c: f081 5160 eorne.w r1, r1, #939524096 @ 0x38000000 + 8000750: 4770 bxne lr + 8000752: f032 427f bics.w r2, r2, #4278190080 @ 0xff000000 + 8000756: bf08 it eq + 8000758: 4770 bxeq lr + 800075a: f093 4f7f teq r3, #4278190080 @ 0xff000000 + 800075e: bf04 itt eq + 8000760: f441 2100 orreq.w r1, r1, #524288 @ 0x80000 + 8000764: 4770 bxeq lr + 8000766: b530 push {r4, r5, lr} + 8000768: f44f 7460 mov.w r4, #896 @ 0x380 + 800076c: f001 4500 and.w r5, r1, #2147483648 @ 0x80000000 + 8000770: f021 4100 bic.w r1, r1, #2147483648 @ 0x80000000 + 8000774: e71c b.n 80005b0 <__adddf3+0x138> + 8000776: bf00 nop + +08000778 <__aeabi_ul2d>: + 8000778: ea50 0201 orrs.w r2, r0, r1 + 800077c: bf08 it eq + 800077e: 4770 bxeq lr + 8000780: b530 push {r4, r5, lr} + 8000782: f04f 0500 mov.w r5, #0 + 8000786: e00a b.n 800079e <__aeabi_l2d+0x16> + +08000788 <__aeabi_l2d>: + 8000788: ea50 0201 orrs.w r2, r0, r1 + 800078c: bf08 it eq + 800078e: 4770 bxeq lr + 8000790: b530 push {r4, r5, lr} + 8000792: f011 4500 ands.w r5, r1, #2147483648 @ 0x80000000 + 8000796: d502 bpl.n 800079e <__aeabi_l2d+0x16> + 8000798: 4240 negs r0, r0 + 800079a: eb61 0141 sbc.w r1, r1, r1, lsl #1 + 800079e: f44f 6480 mov.w r4, #1024 @ 0x400 + 80007a2: f104 0432 add.w r4, r4, #50 @ 0x32 + 80007a6: ea5f 5c91 movs.w ip, r1, lsr #22 + 80007aa: f43f aed8 beq.w 800055e <__adddf3+0xe6> + 80007ae: f04f 0203 mov.w r2, #3 + 80007b2: ea5f 0cdc movs.w ip, ip, lsr #3 + 80007b6: bf18 it ne + 80007b8: 3203 addne r2, #3 + 80007ba: ea5f 0cdc movs.w ip, ip, lsr #3 + 80007be: bf18 it ne + 80007c0: 3203 addne r2, #3 + 80007c2: eb02 02dc add.w r2, r2, ip, lsr #3 + 80007c6: f1c2 0320 rsb r3, r2, #32 + 80007ca: fa00 fc03 lsl.w ip, r0, r3 + 80007ce: fa20 f002 lsr.w r0, r0, r2 + 80007d2: fa01 fe03 lsl.w lr, r1, r3 + 80007d6: ea40 000e orr.w r0, r0, lr + 80007da: fa21 f102 lsr.w r1, r1, r2 + 80007de: 4414 add r4, r2 + 80007e0: e6bd b.n 800055e <__adddf3+0xe6> + 80007e2: bf00 nop + +080007e4 <__aeabi_d2uiz>: + 80007e4: 004a lsls r2, r1, #1 + 80007e6: d211 bcs.n 800080c <__aeabi_d2uiz+0x28> + 80007e8: f512 1200 adds.w r2, r2, #2097152 @ 0x200000 + 80007ec: d211 bcs.n 8000812 <__aeabi_d2uiz+0x2e> + 80007ee: d50d bpl.n 800080c <__aeabi_d2uiz+0x28> + 80007f0: f46f 7378 mvn.w r3, #992 @ 0x3e0 + 80007f4: ebb3 5262 subs.w r2, r3, r2, asr #21 + 80007f8: d40e bmi.n 8000818 <__aeabi_d2uiz+0x34> + 80007fa: ea4f 23c1 mov.w r3, r1, lsl #11 + 80007fe: f043 4300 orr.w r3, r3, #2147483648 @ 0x80000000 + 8000802: ea43 5350 orr.w r3, r3, r0, lsr #21 + 8000806: fa23 f002 lsr.w r0, r3, r2 + 800080a: 4770 bx lr + 800080c: f04f 0000 mov.w r0, #0 + 8000810: 4770 bx lr + 8000812: ea50 3001 orrs.w r0, r0, r1, lsl #12 + 8000816: d102 bne.n 800081e <__aeabi_d2uiz+0x3a> + 8000818: f04f 30ff mov.w r0, #4294967295 + 800081c: 4770 bx lr + 800081e: f04f 0000 mov.w r0, #0 + 8000822: 4770 bx lr + +08000824 <__aeabi_uldivmod>: + 8000824: b953 cbnz r3, 800083c <__aeabi_uldivmod+0x18> + 8000826: b94a cbnz r2, 800083c <__aeabi_uldivmod+0x18> + 8000828: 2900 cmp r1, #0 + 800082a: bf08 it eq + 800082c: 2800 cmpeq r0, #0 + 800082e: bf1c itt ne + 8000830: f04f 31ff movne.w r1, #4294967295 + 8000834: f04f 30ff movne.w r0, #4294967295 + 8000838: f000 b988 b.w 8000b4c <__aeabi_idiv0> + 800083c: f1ad 0c08 sub.w ip, sp, #8 + 8000840: e96d ce04 strd ip, lr, [sp, #-16]! + 8000844: f000 f806 bl 8000854 <__udivmoddi4> + 8000848: f8dd e004 ldr.w lr, [sp, #4] + 800084c: e9dd 2302 ldrd r2, r3, [sp, #8] + 8000850: b004 add sp, #16 + 8000852: 4770 bx lr + +08000854 <__udivmoddi4>: + 8000854: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} + 8000858: 9d08 ldr r5, [sp, #32] + 800085a: 468e mov lr, r1 + 800085c: 4604 mov r4, r0 + 800085e: 4688 mov r8, r1 + 8000860: 2b00 cmp r3, #0 + 8000862: d14a bne.n 80008fa <__udivmoddi4+0xa6> + 8000864: 428a cmp r2, r1 + 8000866: 4617 mov r7, r2 + 8000868: d962 bls.n 8000930 <__udivmoddi4+0xdc> + 800086a: fab2 f682 clz r6, r2 + 800086e: b14e cbz r6, 8000884 <__udivmoddi4+0x30> + 8000870: f1c6 0320 rsb r3, r6, #32 + 8000874: fa01 f806 lsl.w r8, r1, r6 + 8000878: fa20 f303 lsr.w r3, r0, r3 + 800087c: 40b7 lsls r7, r6 + 800087e: ea43 0808 orr.w r8, r3, r8 + 8000882: 40b4 lsls r4, r6 + 8000884: ea4f 4e17 mov.w lr, r7, lsr #16 + 8000888: fa1f fc87 uxth.w ip, r7 + 800088c: fbb8 f1fe udiv r1, r8, lr + 8000890: 0c23 lsrs r3, r4, #16 + 8000892: fb0e 8811 mls r8, lr, r1, r8 + 8000896: ea43 4308 orr.w r3, r3, r8, lsl #16 + 800089a: fb01 f20c mul.w r2, r1, ip + 800089e: 429a cmp r2, r3 + 80008a0: d909 bls.n 80008b6 <__udivmoddi4+0x62> + 80008a2: 18fb adds r3, r7, r3 + 80008a4: f101 30ff add.w r0, r1, #4294967295 + 80008a8: f080 80ea bcs.w 8000a80 <__udivmoddi4+0x22c> + 80008ac: 429a cmp r2, r3 + 80008ae: f240 80e7 bls.w 8000a80 <__udivmoddi4+0x22c> + 80008b2: 3902 subs r1, #2 + 80008b4: 443b add r3, r7 + 80008b6: 1a9a subs r2, r3, r2 + 80008b8: b2a3 uxth r3, r4 + 80008ba: fbb2 f0fe udiv r0, r2, lr + 80008be: fb0e 2210 mls r2, lr, r0, r2 + 80008c2: ea43 4302 orr.w r3, r3, r2, lsl #16 + 80008c6: fb00 fc0c mul.w ip, r0, ip + 80008ca: 459c cmp ip, r3 + 80008cc: d909 bls.n 80008e2 <__udivmoddi4+0x8e> + 80008ce: 18fb adds r3, r7, r3 + 80008d0: f100 32ff add.w r2, r0, #4294967295 + 80008d4: f080 80d6 bcs.w 8000a84 <__udivmoddi4+0x230> + 80008d8: 459c cmp ip, r3 + 80008da: f240 80d3 bls.w 8000a84 <__udivmoddi4+0x230> + 80008de: 443b add r3, r7 + 80008e0: 3802 subs r0, #2 + 80008e2: ea40 4001 orr.w r0, r0, r1, lsl #16 + 80008e6: eba3 030c sub.w r3, r3, ip + 80008ea: 2100 movs r1, #0 + 80008ec: b11d cbz r5, 80008f6 <__udivmoddi4+0xa2> + 80008ee: 40f3 lsrs r3, r6 + 80008f0: 2200 movs r2, #0 + 80008f2: e9c5 3200 strd r3, r2, [r5] + 80008f6: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} + 80008fa: 428b cmp r3, r1 + 80008fc: d905 bls.n 800090a <__udivmoddi4+0xb6> + 80008fe: b10d cbz r5, 8000904 <__udivmoddi4+0xb0> + 8000900: e9c5 0100 strd r0, r1, [r5] + 8000904: 2100 movs r1, #0 + 8000906: 4608 mov r0, r1 + 8000908: e7f5 b.n 80008f6 <__udivmoddi4+0xa2> + 800090a: fab3 f183 clz r1, r3 + 800090e: 2900 cmp r1, #0 + 8000910: d146 bne.n 80009a0 <__udivmoddi4+0x14c> + 8000912: 4573 cmp r3, lr + 8000914: d302 bcc.n 800091c <__udivmoddi4+0xc8> + 8000916: 4282 cmp r2, r0 + 8000918: f200 8105 bhi.w 8000b26 <__udivmoddi4+0x2d2> + 800091c: 1a84 subs r4, r0, r2 + 800091e: eb6e 0203 sbc.w r2, lr, r3 + 8000922: 2001 movs r0, #1 + 8000924: 4690 mov r8, r2 + 8000926: 2d00 cmp r5, #0 + 8000928: d0e5 beq.n 80008f6 <__udivmoddi4+0xa2> + 800092a: e9c5 4800 strd r4, r8, [r5] + 800092e: e7e2 b.n 80008f6 <__udivmoddi4+0xa2> + 8000930: 2a00 cmp r2, #0 + 8000932: f000 8090 beq.w 8000a56 <__udivmoddi4+0x202> + 8000936: fab2 f682 clz r6, r2 + 800093a: 2e00 cmp r6, #0 + 800093c: f040 80a4 bne.w 8000a88 <__udivmoddi4+0x234> + 8000940: 1a8a subs r2, r1, r2 + 8000942: 0c03 lsrs r3, r0, #16 + 8000944: ea4f 4e17 mov.w lr, r7, lsr #16 + 8000948: b280 uxth r0, r0 + 800094a: b2bc uxth r4, r7 + 800094c: 2101 movs r1, #1 + 800094e: fbb2 fcfe udiv ip, r2, lr + 8000952: fb0e 221c mls r2, lr, ip, r2 + 8000956: ea43 4302 orr.w r3, r3, r2, lsl #16 + 800095a: fb04 f20c mul.w r2, r4, ip + 800095e: 429a cmp r2, r3 + 8000960: d907 bls.n 8000972 <__udivmoddi4+0x11e> + 8000962: 18fb adds r3, r7, r3 + 8000964: f10c 38ff add.w r8, ip, #4294967295 + 8000968: d202 bcs.n 8000970 <__udivmoddi4+0x11c> + 800096a: 429a cmp r2, r3 + 800096c: f200 80e0 bhi.w 8000b30 <__udivmoddi4+0x2dc> + 8000970: 46c4 mov ip, r8 + 8000972: 1a9b subs r3, r3, r2 + 8000974: fbb3 f2fe udiv r2, r3, lr + 8000978: fb0e 3312 mls r3, lr, r2, r3 + 800097c: ea40 4303 orr.w r3, r0, r3, lsl #16 + 8000980: fb02 f404 mul.w r4, r2, r4 + 8000984: 429c cmp r4, r3 + 8000986: d907 bls.n 8000998 <__udivmoddi4+0x144> + 8000988: 18fb adds r3, r7, r3 + 800098a: f102 30ff add.w r0, r2, #4294967295 + 800098e: d202 bcs.n 8000996 <__udivmoddi4+0x142> + 8000990: 429c cmp r4, r3 + 8000992: f200 80ca bhi.w 8000b2a <__udivmoddi4+0x2d6> + 8000996: 4602 mov r2, r0 + 8000998: 1b1b subs r3, r3, r4 + 800099a: ea42 400c orr.w r0, r2, ip, lsl #16 + 800099e: e7a5 b.n 80008ec <__udivmoddi4+0x98> + 80009a0: f1c1 0620 rsb r6, r1, #32 + 80009a4: 408b lsls r3, r1 + 80009a6: fa22 f706 lsr.w r7, r2, r6 + 80009aa: 431f orrs r7, r3 + 80009ac: fa0e f401 lsl.w r4, lr, r1 + 80009b0: fa20 f306 lsr.w r3, r0, r6 + 80009b4: fa2e fe06 lsr.w lr, lr, r6 + 80009b8: ea4f 4917 mov.w r9, r7, lsr #16 + 80009bc: 4323 orrs r3, r4 + 80009be: fa00 f801 lsl.w r8, r0, r1 + 80009c2: fa1f fc87 uxth.w ip, r7 + 80009c6: fbbe f0f9 udiv r0, lr, r9 + 80009ca: 0c1c lsrs r4, r3, #16 + 80009cc: fb09 ee10 mls lr, r9, r0, lr + 80009d0: ea44 440e orr.w r4, r4, lr, lsl #16 + 80009d4: fb00 fe0c mul.w lr, r0, ip + 80009d8: 45a6 cmp lr, r4 + 80009da: fa02 f201 lsl.w r2, r2, r1 + 80009de: d909 bls.n 80009f4 <__udivmoddi4+0x1a0> + 80009e0: 193c adds r4, r7, r4 + 80009e2: f100 3aff add.w sl, r0, #4294967295 + 80009e6: f080 809c bcs.w 8000b22 <__udivmoddi4+0x2ce> + 80009ea: 45a6 cmp lr, r4 + 80009ec: f240 8099 bls.w 8000b22 <__udivmoddi4+0x2ce> + 80009f0: 3802 subs r0, #2 + 80009f2: 443c add r4, r7 + 80009f4: eba4 040e sub.w r4, r4, lr + 80009f8: fa1f fe83 uxth.w lr, r3 + 80009fc: fbb4 f3f9 udiv r3, r4, r9 + 8000a00: fb09 4413 mls r4, r9, r3, r4 + 8000a04: ea4e 4404 orr.w r4, lr, r4, lsl #16 + 8000a08: fb03 fc0c mul.w ip, r3, ip + 8000a0c: 45a4 cmp ip, r4 + 8000a0e: d908 bls.n 8000a22 <__udivmoddi4+0x1ce> + 8000a10: 193c adds r4, r7, r4 + 8000a12: f103 3eff add.w lr, r3, #4294967295 + 8000a16: f080 8082 bcs.w 8000b1e <__udivmoddi4+0x2ca> + 8000a1a: 45a4 cmp ip, r4 + 8000a1c: d97f bls.n 8000b1e <__udivmoddi4+0x2ca> + 8000a1e: 3b02 subs r3, #2 + 8000a20: 443c add r4, r7 + 8000a22: ea43 4000 orr.w r0, r3, r0, lsl #16 + 8000a26: eba4 040c sub.w r4, r4, ip + 8000a2a: fba0 ec02 umull lr, ip, r0, r2 + 8000a2e: 4564 cmp r4, ip + 8000a30: 4673 mov r3, lr + 8000a32: 46e1 mov r9, ip + 8000a34: d362 bcc.n 8000afc <__udivmoddi4+0x2a8> + 8000a36: d05f beq.n 8000af8 <__udivmoddi4+0x2a4> + 8000a38: b15d cbz r5, 8000a52 <__udivmoddi4+0x1fe> + 8000a3a: ebb8 0203 subs.w r2, r8, r3 + 8000a3e: eb64 0409 sbc.w r4, r4, r9 + 8000a42: fa04 f606 lsl.w r6, r4, r6 + 8000a46: fa22 f301 lsr.w r3, r2, r1 + 8000a4a: 431e orrs r6, r3 + 8000a4c: 40cc lsrs r4, r1 + 8000a4e: e9c5 6400 strd r6, r4, [r5] + 8000a52: 2100 movs r1, #0 + 8000a54: e74f b.n 80008f6 <__udivmoddi4+0xa2> + 8000a56: fbb1 fcf2 udiv ip, r1, r2 + 8000a5a: 0c01 lsrs r1, r0, #16 + 8000a5c: ea41 410e orr.w r1, r1, lr, lsl #16 + 8000a60: b280 uxth r0, r0 + 8000a62: ea40 4201 orr.w r2, r0, r1, lsl #16 + 8000a66: 463b mov r3, r7 + 8000a68: 4638 mov r0, r7 + 8000a6a: 463c mov r4, r7 + 8000a6c: 46b8 mov r8, r7 + 8000a6e: 46be mov lr, r7 + 8000a70: 2620 movs r6, #32 + 8000a72: fbb1 f1f7 udiv r1, r1, r7 + 8000a76: eba2 0208 sub.w r2, r2, r8 + 8000a7a: ea41 410c orr.w r1, r1, ip, lsl #16 + 8000a7e: e766 b.n 800094e <__udivmoddi4+0xfa> + 8000a80: 4601 mov r1, r0 + 8000a82: e718 b.n 80008b6 <__udivmoddi4+0x62> + 8000a84: 4610 mov r0, r2 + 8000a86: e72c b.n 80008e2 <__udivmoddi4+0x8e> + 8000a88: f1c6 0220 rsb r2, r6, #32 + 8000a8c: fa2e f302 lsr.w r3, lr, r2 + 8000a90: 40b7 lsls r7, r6 + 8000a92: 40b1 lsls r1, r6 + 8000a94: fa20 f202 lsr.w r2, r0, r2 + 8000a98: ea4f 4e17 mov.w lr, r7, lsr #16 + 8000a9c: 430a orrs r2, r1 + 8000a9e: fbb3 f8fe udiv r8, r3, lr + 8000aa2: b2bc uxth r4, r7 + 8000aa4: fb0e 3318 mls r3, lr, r8, r3 + 8000aa8: 0c11 lsrs r1, r2, #16 + 8000aaa: ea41 4103 orr.w r1, r1, r3, lsl #16 + 8000aae: fb08 f904 mul.w r9, r8, r4 + 8000ab2: 40b0 lsls r0, r6 + 8000ab4: 4589 cmp r9, r1 + 8000ab6: ea4f 4310 mov.w r3, r0, lsr #16 + 8000aba: b280 uxth r0, r0 + 8000abc: d93e bls.n 8000b3c <__udivmoddi4+0x2e8> + 8000abe: 1879 adds r1, r7, r1 + 8000ac0: f108 3cff add.w ip, r8, #4294967295 + 8000ac4: d201 bcs.n 8000aca <__udivmoddi4+0x276> + 8000ac6: 4589 cmp r9, r1 + 8000ac8: d81f bhi.n 8000b0a <__udivmoddi4+0x2b6> + 8000aca: eba1 0109 sub.w r1, r1, r9 + 8000ace: fbb1 f9fe udiv r9, r1, lr + 8000ad2: fb09 f804 mul.w r8, r9, r4 + 8000ad6: fb0e 1119 mls r1, lr, r9, r1 + 8000ada: b292 uxth r2, r2 + 8000adc: ea42 4201 orr.w r2, r2, r1, lsl #16 + 8000ae0: 4542 cmp r2, r8 + 8000ae2: d229 bcs.n 8000b38 <__udivmoddi4+0x2e4> + 8000ae4: 18ba adds r2, r7, r2 + 8000ae6: f109 31ff add.w r1, r9, #4294967295 + 8000aea: d2c4 bcs.n 8000a76 <__udivmoddi4+0x222> + 8000aec: 4542 cmp r2, r8 + 8000aee: d2c2 bcs.n 8000a76 <__udivmoddi4+0x222> + 8000af0: f1a9 0102 sub.w r1, r9, #2 + 8000af4: 443a add r2, r7 + 8000af6: e7be b.n 8000a76 <__udivmoddi4+0x222> + 8000af8: 45f0 cmp r8, lr + 8000afa: d29d bcs.n 8000a38 <__udivmoddi4+0x1e4> + 8000afc: ebbe 0302 subs.w r3, lr, r2 + 8000b00: eb6c 0c07 sbc.w ip, ip, r7 + 8000b04: 3801 subs r0, #1 + 8000b06: 46e1 mov r9, ip + 8000b08: e796 b.n 8000a38 <__udivmoddi4+0x1e4> + 8000b0a: eba7 0909 sub.w r9, r7, r9 + 8000b0e: 4449 add r1, r9 + 8000b10: f1a8 0c02 sub.w ip, r8, #2 + 8000b14: fbb1 f9fe udiv r9, r1, lr + 8000b18: fb09 f804 mul.w r8, r9, r4 + 8000b1c: e7db b.n 8000ad6 <__udivmoddi4+0x282> + 8000b1e: 4673 mov r3, lr + 8000b20: e77f b.n 8000a22 <__udivmoddi4+0x1ce> + 8000b22: 4650 mov r0, sl + 8000b24: e766 b.n 80009f4 <__udivmoddi4+0x1a0> + 8000b26: 4608 mov r0, r1 + 8000b28: e6fd b.n 8000926 <__udivmoddi4+0xd2> + 8000b2a: 443b add r3, r7 + 8000b2c: 3a02 subs r2, #2 + 8000b2e: e733 b.n 8000998 <__udivmoddi4+0x144> + 8000b30: f1ac 0c02 sub.w ip, ip, #2 + 8000b34: 443b add r3, r7 + 8000b36: e71c b.n 8000972 <__udivmoddi4+0x11e> + 8000b38: 4649 mov r1, r9 + 8000b3a: e79c b.n 8000a76 <__udivmoddi4+0x222> + 8000b3c: eba1 0109 sub.w r1, r1, r9 + 8000b40: 46c4 mov ip, r8 + 8000b42: fbb1 f9fe udiv r9, r1, lr + 8000b46: fb09 f804 mul.w r8, r9, r4 + 8000b4a: e7c4 b.n 8000ad6 <__udivmoddi4+0x282> + +08000b4c <__aeabi_idiv0>: + 8000b4c: 4770 bx lr + 8000b4e: bf00 nop + +08000b50
: /** * @brief The application entry point. * @retval int */ int main(void) { - 8000544: b580 push {r7, lr} - 8000546: af00 add r7, sp, #0 + 8000b50: b580 push {r7, lr} + 8000b52: af00 add r7, sp, #0 /* USER CODE END 1 */ /* MCU Configuration--------------------------------------------------------*/ /* Reset of all peripherals, Initializes the Flash interface and the Systick. */ HAL_Init(); - 8000548: f000 fdfd bl 8001146 + 8000b54: f000 ff65 bl 8001a22 /* USER CODE BEGIN Init */ /* USER CODE END Init */ /* Configure the system clock */ SystemClock_Config(); - 800054c: f000 f886 bl 800065c + 8000b58: f000 f888 bl 8000c6c /* USER CODE BEGIN SysInit */ /* USER CODE END SysInit */ /* Initialize all configured peripherals */ MX_GPIO_Init(); - 8000550: f000 fa58 bl 8000a04 + 8000b5c: f000 fa5a bl 8001014 MX_USART2_UART_Init(); - 8000554: f000 fa0a bl 800096c + 8000b60: f000 fa0c bl 8000f7c MX_ADC2_Init(); - 8000558: f000 f944 bl 80007e4 + 8000b64: f000 f946 bl 8000df4 MX_TIM2_Init(); - 800055c: f000 f9b8 bl 80008d0 + 8000b68: f000 f9ba bl 8000ee0 MX_ADC1_Init(); - 8000560: f000 f8c8 bl 80006f4 + 8000b6c: f000 f8ca bl 8000d04 /* USER CODE BEGIN 2 */ /*Configure GPIO pin output Level */ HAL_GPIO_WritePin(LD2_GPIO_Port, LD2_Pin, GPIO_PIN_RESET); - 8000564: 2200 movs r2, #0 - 8000566: f44f 7180 mov.w r1, #256 @ 0x100 - 800056a: 4830 ldr r0, [pc, #192] @ (800062c ) - 800056c: f002 fdde bl 800312c + 8000b70: 2200 movs r2, #0 + 8000b72: f44f 7180 mov.w r1, #256 @ 0x100 + 8000b76: 4830 ldr r0, [pc, #192] @ (8000c38 ) + 8000b78: f002 ffd4 bl 8003b24 HAL_GPIO_WritePin(POWER_SWITCH_GPIO_Port, POWER_SWITCH_Pin, GPIO_PIN_RESET); - 8000570: 2200 movs r2, #0 - 8000572: f44f 5180 mov.w r1, #4096 @ 0x1000 - 8000576: f04f 4090 mov.w r0, #1207959552 @ 0x48000000 - 800057a: f002 fdd7 bl 800312c + 8000b7c: 2200 movs r2, #0 + 8000b7e: f44f 5180 mov.w r1, #4096 @ 0x1000 + 8000b82: f04f 4090 mov.w r0, #1207959552 @ 0x48000000 + 8000b86: f002 ffcd bl 8003b24 + + /* Run ADC calibration */ + HAL_ADCEx_Calibration_Start(&hadc1, ADC_SINGLE_ENDED); + 8000b8a: 217f movs r1, #127 @ 0x7f + 8000b8c: 482b ldr r0, [pc, #172] @ (8000c3c ) + 8000b8e: f002 fb71 bl 8003274 + HAL_ADCEx_Calibration_Start(&hadc2, ADC_SINGLE_ENDED); + 8000b92: 217f movs r1, #127 @ 0x7f + 8000b94: 482a ldr r0, [pc, #168] @ (8000c40 ) + 8000b96: f002 fb6d bl 8003274 /* Setup UART interrupts */ /* Make sure UART Rx counters and flags are reset */ rx_counter = 0x00; - 800057e: 4b2c ldr r3, [pc, #176] @ (8000630 ) - 8000580: 2200 movs r2, #0 - 8000582: 701a strb r2, [r3, #0] + 8000b9a: 4b2a ldr r3, [pc, #168] @ (8000c44 ) + 8000b9c: 2200 movs r2, #0 + 8000b9e: 701a strb r2, [r3, #0] rx_len = 0x00; - 8000584: 4b2b ldr r3, [pc, #172] @ (8000634 ) - 8000586: 2200 movs r2, #0 - 8000588: 701a strb r2, [r3, #0] + 8000ba0: 4b29 ldr r3, [pc, #164] @ (8000c48 ) + 8000ba2: 2200 movs r2, #0 + 8000ba4: 701a strb r2, [r3, #0] rx_len_counter = 0x00; - 800058a: 4b2b ldr r3, [pc, #172] @ (8000638 ) - 800058c: 2200 movs r2, #0 - 800058e: 701a strb r2, [r3, #0] + 8000ba6: 4b29 ldr r3, [pc, #164] @ (8000c4c ) + 8000ba8: 2200 movs r2, #0 + 8000baa: 701a strb r2, [r3, #0] adc_task_flag = 0x00; - 8000590: 4b2a ldr r3, [pc, #168] @ (800063c ) - 8000592: 2200 movs r2, #0 - 8000594: 701a strb r2, [r3, #0] - uart_tx_flag = 0x00; - 8000596: 4b2a ldr r3, [pc, #168] @ (8000640 ) - 8000598: 2200 movs r2, #0 - 800059a: 701a strb r2, [r3, #0] + 8000bac: 4b28 ldr r3, [pc, #160] @ (8000c50 ) + 8000bae: 2200 movs r2, #0 + 8000bb0: 701a strb r2, [r3, #0] HAL_UART_Receive_IT(&huart2, rx_hold_buffer, 1); - 800059c: 2201 movs r2, #1 - 800059e: 4929 ldr r1, [pc, #164] @ (8000644 ) - 80005a0: 4829 ldr r0, [pc, #164] @ (8000648 ) - 80005a2: f004 fb5d bl 8004c60 + 8000bb2: 2201 movs r2, #1 + 8000bb4: 4927 ldr r1, [pc, #156] @ (8000c54 ) + 8000bb6: 4828 ldr r0, [pc, #160] @ (8000c58 ) + 8000bb8: f004 fd4e bl 8005658 /* Get real VDDA value */ vdd_ref = get_actual_vdda(&hadc1); - 80005a6: 4829 ldr r0, [pc, #164] @ (800064c ) - 80005a8: f000 fa84 bl 8000ab4 - 80005ac: 4603 mov r3, r0 - 80005ae: 4a28 ldr r2, [pc, #160] @ (8000650 ) - 80005b0: 6013 str r3, [r2, #0] + 8000bbc: 481f ldr r0, [pc, #124] @ (8000c3c ) + 8000bbe: f000 fa81 bl 80010c4 + 8000bc2: 4603 mov r3, r0 + 8000bc4: 4a25 ldr r2, [pc, #148] @ (8000c5c ) + 8000bc6: 6013 str r3, [r2, #0] - tx_buffer[0] = vdd_ref >> 24; - 80005b2: 4b27 ldr r3, [pc, #156] @ (8000650 ) - 80005b4: 681b ldr r3, [r3, #0] - 80005b6: 0e1b lsrs r3, r3, #24 - 80005b8: b2da uxtb r2, r3 - 80005ba: 4b26 ldr r3, [pc, #152] @ (8000654 ) - 80005bc: 701a strb r2, [r3, #0] - tx_buffer[1] = vdd_ref >> 16; - 80005be: 4b24 ldr r3, [pc, #144] @ (8000650 ) - 80005c0: 681b ldr r3, [r3, #0] - 80005c2: 0c1b lsrs r3, r3, #16 - 80005c4: b2da uxtb r2, r3 - 80005c6: 4b23 ldr r3, [pc, #140] @ (8000654 ) - 80005c8: 705a strb r2, [r3, #1] - tx_buffer[2] = vdd_ref >> 8; - 80005ca: 4b21 ldr r3, [pc, #132] @ (8000650 ) - 80005cc: 681b ldr r3, [r3, #0] - 80005ce: 0a1b lsrs r3, r3, #8 - 80005d0: b2da uxtb r2, r3 - 80005d2: 4b20 ldr r3, [pc, #128] @ (8000654 ) - 80005d4: 709a strb r2, [r3, #2] - tx_buffer[3] = vdd_ref; - 80005d6: 4b1e ldr r3, [pc, #120] @ (8000650 ) - 80005d8: 681b ldr r3, [r3, #0] - 80005da: b2da uxtb r2, r3 - 80005dc: 4b1d ldr r3, [pc, #116] @ (8000654 ) - 80005de: 70da strb r2, [r3, #3] - tx_len = 4; - 80005e0: 4b1d ldr r3, [pc, #116] @ (8000658 ) - 80005e2: 2204 movs r2, #4 - 80005e4: 701a strb r2, [r3, #0] + tx_buffer[0] = (uint8_t)((vdd_ref >> 24) & 0xFF); + 8000bc8: 4b24 ldr r3, [pc, #144] @ (8000c5c ) + 8000bca: 681b ldr r3, [r3, #0] + 8000bcc: 0e1b lsrs r3, r3, #24 + 8000bce: b2da uxtb r2, r3 + 8000bd0: 4b23 ldr r3, [pc, #140] @ (8000c60 ) + 8000bd2: 701a strb r2, [r3, #0] + tx_buffer[1] = (uint8_t)((vdd_ref >> 16) & 0xFF); + 8000bd4: 4b21 ldr r3, [pc, #132] @ (8000c5c ) + 8000bd6: 681b ldr r3, [r3, #0] + 8000bd8: 0c1b lsrs r3, r3, #16 + 8000bda: b2da uxtb r2, r3 + 8000bdc: 4b20 ldr r3, [pc, #128] @ (8000c60 ) + 8000bde: 705a strb r2, [r3, #1] + tx_buffer[2] = (uint8_t)((vdd_ref >> 8) & 0xFF); + 8000be0: 4b1e ldr r3, [pc, #120] @ (8000c5c ) + 8000be2: 681b ldr r3, [r3, #0] + 8000be4: 0a1b lsrs r3, r3, #8 + 8000be6: b2da uxtb r2, r3 + 8000be8: 4b1d ldr r3, [pc, #116] @ (8000c60 ) + 8000bea: 709a strb r2, [r3, #2] + tx_buffer[3] = (uint8_t)(vdd_ref & 0xFF); + 8000bec: 4b1b ldr r3, [pc, #108] @ (8000c5c ) + 8000bee: 681b ldr r3, [r3, #0] + 8000bf0: b2da uxtb r2, r3 + 8000bf2: 4b1b ldr r3, [pc, #108] @ (8000c60 ) + 8000bf4: 70da strb r2, [r3, #3] - HAL_UART_Transmit(&huart2, tx_buffer, tx_len, HAL_MAX_DELAY); - 80005e6: 4b1c ldr r3, [pc, #112] @ (8000658 ) - 80005e8: 781b ldrb r3, [r3, #0] - 80005ea: 461a mov r2, r3 - 80005ec: f04f 33ff mov.w r3, #4294967295 - 80005f0: 4918 ldr r1, [pc, #96] @ (8000654 ) - 80005f2: 4815 ldr r0, [pc, #84] @ (8000648 ) - 80005f4: f004 faa6 bl 8004b44 + tx_len = 0x04; + 8000bf6: 4b1b ldr r3, [pc, #108] @ (8000c64 ) + 8000bf8: 2204 movs r2, #4 + 8000bfa: 701a strb r2, [r3, #0] + + HAL_UART_Transmit(&huart2, tx_buffer, tx_len, 100); + 8000bfc: 4b19 ldr r3, [pc, #100] @ (8000c64 ) + 8000bfe: 781b ldrb r3, [r3, #0] + 8000c00: 461a mov r2, r3 + 8000c02: 2364 movs r3, #100 @ 0x64 + 8000c04: 4916 ldr r1, [pc, #88] @ (8000c60 ) + 8000c06: 4814 ldr r0, [pc, #80] @ (8000c58 ) + 8000c08: f004 fc98 bl 800553c /* Infinite loop */ /* USER CODE BEGIN WHILE */ while (1) { if (adc_task_flag == 0xff) - 80005f8: 4b10 ldr r3, [pc, #64] @ (800063c ) - 80005fa: 781b ldrb r3, [r3, #0] - 80005fc: 2bff cmp r3, #255 @ 0xff - 80005fe: d104 bne.n 800060a + 8000c0c: 4b10 ldr r3, [pc, #64] @ (8000c50 ) + 8000c0e: 781b ldrb r3, [r3, #0] + 8000c10: 2bff cmp r3, #255 @ 0xff + 8000c12: d106 bne.n 8000c22 { adc_task_flag = 0x00; - 8000600: 4b0e ldr r3, [pc, #56] @ (800063c ) - 8000602: 2200 movs r2, #0 - 8000604: 701a strb r2, [r3, #0] + 8000c14: 4b0e ldr r3, [pc, #56] @ (8000c50 ) + 8000c16: 2200 movs r2, #0 + 8000c18: 701a strb r2, [r3, #0] adc_task(); - 8000606: f000 fa83 bl 8000b10 + 8000c1a: f000 fbd9 bl 80013d0 + voltage_conversion_task(); + 8000c1e: f000 fabf bl 80011a0 } - if (uart_tx_flag == 0xff) - 800060a: 4b0d ldr r3, [pc, #52] @ (8000640 ) - 800060c: 781b ldrb r3, [r3, #0] - 800060e: 2bff cmp r3, #255 @ 0xff - 8000610: d1f2 bne.n 80005f8 + if (serial_number_flag == 0xff) + 8000c22: 4b11 ldr r3, [pc, #68] @ (8000c68 ) + 8000c24: 781b ldrb r3, [r3, #0] + 8000c26: 2bff cmp r3, #255 @ 0xff + 8000c28: d1f0 bne.n 8000c0c { - uart_tx_flag = 0x00; - 8000612: 4b0b ldr r3, [pc, #44] @ (8000640 ) - 8000614: 2200 movs r2, #0 - 8000616: 701a strb r2, [r3, #0] - HAL_UART_Transmit(&huart2, tx_buffer, tx_len, HAL_MAX_DELAY); - 8000618: 4b0f ldr r3, [pc, #60] @ (8000658 ) - 800061a: 781b ldrb r3, [r3, #0] - 800061c: 461a mov r2, r3 - 800061e: f04f 33ff mov.w r3, #4294967295 - 8000622: 490c ldr r1, [pc, #48] @ (8000654 ) - 8000624: 4808 ldr r0, [pc, #32] @ (8000648 ) - 8000626: f004 fa8d bl 8004b44 + serial_number_flag = 0x00; + 8000c2a: 4b0f ldr r3, [pc, #60] @ (8000c68 ) + 8000c2c: 2200 movs r2, #0 + 8000c2e: 701a strb r2, [r3, #0] + serial_number_task (); + 8000c30: f000 fb5a bl 80012e8 if (adc_task_flag == 0xff) - 800062a: e7e5 b.n 80005f8 - 800062c: 48000400 .word 0x48000400 - 8000630: 20000225 .word 0x20000225 - 8000634: 20000226 .word 0x20000226 - 8000638: 20000227 .word 0x20000227 - 800063c: 20000230 .word 0x20000230 - 8000640: 20000231 .word 0x20000231 - 8000644: 200001e0 .word 0x200001e0 - 8000648: 2000014c .word 0x2000014c - 800064c: 20000028 .word 0x20000028 - 8000650: 20000238 .word 0x20000238 - 8000654: 20000204 .word 0x20000204 - 8000658: 20000224 .word 0x20000224 + 8000c34: e7ea b.n 8000c0c + 8000c36: bf00 nop + 8000c38: 48000400 .word 0x48000400 + 8000c3c: 2000003c .word 0x2000003c + 8000c40: 200000a8 .word 0x200000a8 + 8000c44: 2000023a .word 0x2000023a + 8000c48: 2000023b .word 0x2000023b + 8000c4c: 2000023c .word 0x2000023c + 8000c50: 20000248 .word 0x20000248 + 8000c54: 200001f4 .word 0x200001f4 + 8000c58: 20000160 .word 0x20000160 + 8000c5c: 20000250 .word 0x20000250 + 8000c60: 20000218 .word 0x20000218 + 8000c64: 20000238 .word 0x20000238 + 8000c68: 2000025c .word 0x2000025c -0800065c : +08000c6c : /** * @brief System Clock Configuration * @retval None */ void SystemClock_Config(void) { - 800065c: b580 push {r7, lr} - 800065e: b094 sub sp, #80 @ 0x50 - 8000660: af00 add r7, sp, #0 + 8000c6c: b580 push {r7, lr} + 8000c6e: b094 sub sp, #80 @ 0x50 + 8000c70: af00 add r7, sp, #0 RCC_OscInitTypeDef RCC_OscInitStruct = {0}; - 8000662: f107 0318 add.w r3, r7, #24 - 8000666: 2238 movs r2, #56 @ 0x38 - 8000668: 2100 movs r1, #0 - 800066a: 4618 mov r0, r3 - 800066c: f006 fb2a bl 8006cc4 + 8000c72: f107 0318 add.w r3, r7, #24 + 8000c76: 2238 movs r2, #56 @ 0x38 + 8000c78: 2100 movs r1, #0 + 8000c7a: 4618 mov r0, r3 + 8000c7c: f006 fd1e bl 80076bc RCC_ClkInitTypeDef RCC_ClkInitStruct = {0}; - 8000670: 1d3b adds r3, r7, #4 - 8000672: 2200 movs r2, #0 - 8000674: 601a str r2, [r3, #0] - 8000676: 605a str r2, [r3, #4] - 8000678: 609a str r2, [r3, #8] - 800067a: 60da str r2, [r3, #12] - 800067c: 611a str r2, [r3, #16] + 8000c80: 1d3b adds r3, r7, #4 + 8000c82: 2200 movs r2, #0 + 8000c84: 601a str r2, [r3, #0] + 8000c86: 605a str r2, [r3, #4] + 8000c88: 609a str r2, [r3, #8] + 8000c8a: 60da str r2, [r3, #12] + 8000c8c: 611a str r2, [r3, #16] /** Configure the main internal regulator output voltage */ HAL_PWREx_ControlVoltageScaling(PWR_REGULATOR_VOLTAGE_SCALE1); - 800067e: f44f 7000 mov.w r0, #512 @ 0x200 - 8000682: f002 fd6b bl 800315c + 8000c8e: f44f 7000 mov.w r0, #512 @ 0x200 + 8000c92: f002 ff5f bl 8003b54 /** Initializes the RCC Oscillators according to the specified parameters * in the RCC_OscInitTypeDef structure. */ RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI; - 8000686: 2302 movs r3, #2 - 8000688: 61bb str r3, [r7, #24] + 8000c96: 2302 movs r3, #2 + 8000c98: 61bb str r3, [r7, #24] RCC_OscInitStruct.HSIState = RCC_HSI_ON; - 800068a: f44f 7380 mov.w r3, #256 @ 0x100 - 800068e: 627b str r3, [r7, #36] @ 0x24 + 8000c9a: f44f 7380 mov.w r3, #256 @ 0x100 + 8000c9e: 627b str r3, [r7, #36] @ 0x24 RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT; - 8000690: 2340 movs r3, #64 @ 0x40 - 8000692: 62bb str r3, [r7, #40] @ 0x28 + 8000ca0: 2340 movs r3, #64 @ 0x40 + 8000ca2: 62bb str r3, [r7, #40] @ 0x28 RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON; - 8000694: 2302 movs r3, #2 - 8000696: 637b str r3, [r7, #52] @ 0x34 + 8000ca4: 2302 movs r3, #2 + 8000ca6: 637b str r3, [r7, #52] @ 0x34 RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSI; - 8000698: 2302 movs r3, #2 - 800069a: 63bb str r3, [r7, #56] @ 0x38 + 8000ca8: 2302 movs r3, #2 + 8000caa: 63bb str r3, [r7, #56] @ 0x38 RCC_OscInitStruct.PLL.PLLM = RCC_PLLM_DIV1; - 800069c: 2301 movs r3, #1 - 800069e: 63fb str r3, [r7, #60] @ 0x3c + 8000cac: 2301 movs r3, #1 + 8000cae: 63fb str r3, [r7, #60] @ 0x3c RCC_OscInitStruct.PLL.PLLN = 16; - 80006a0: 2310 movs r3, #16 - 80006a2: 643b str r3, [r7, #64] @ 0x40 + 8000cb0: 2310 movs r3, #16 + 8000cb2: 643b str r3, [r7, #64] @ 0x40 RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV2; - 80006a4: 2302 movs r3, #2 - 80006a6: 647b str r3, [r7, #68] @ 0x44 + 8000cb4: 2302 movs r3, #2 + 8000cb6: 647b str r3, [r7, #68] @ 0x44 RCC_OscInitStruct.PLL.PLLQ = RCC_PLLQ_DIV2; - 80006a8: 2302 movs r3, #2 - 80006aa: 64bb str r3, [r7, #72] @ 0x48 + 8000cb8: 2302 movs r3, #2 + 8000cba: 64bb str r3, [r7, #72] @ 0x48 RCC_OscInitStruct.PLL.PLLR = RCC_PLLR_DIV2; - 80006ac: 2302 movs r3, #2 - 80006ae: 64fb str r3, [r7, #76] @ 0x4c + 8000cbc: 2302 movs r3, #2 + 8000cbe: 64fb str r3, [r7, #76] @ 0x4c if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) - 80006b0: f107 0318 add.w r3, r7, #24 - 80006b4: 4618 mov r0, r3 - 80006b6: f002 fe05 bl 80032c4 - 80006ba: 4603 mov r3, r0 - 80006bc: 2b00 cmp r3, #0 - 80006be: d001 beq.n 80006c4 + 8000cc0: f107 0318 add.w r3, r7, #24 + 8000cc4: 4618 mov r0, r3 + 8000cc6: f002 fff9 bl 8003cbc + 8000cca: 4603 mov r3, r0 + 8000ccc: 2b00 cmp r3, #0 + 8000cce: d001 beq.n 8000cd4 { Error_Handler(); - 80006c0: f000 fb88 bl 8000dd4 + 8000cd0: f000 fcee bl 80016b0 } /** Initializes the CPU, AHB and APB buses clocks */ RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK - 80006c4: 230f movs r3, #15 - 80006c6: 607b str r3, [r7, #4] + 8000cd4: 230f movs r3, #15 + 8000cd6: 607b str r3, [r7, #4] |RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2; RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK; - 80006c8: 2303 movs r3, #3 - 80006ca: 60bb str r3, [r7, #8] + 8000cd8: 2303 movs r3, #3 + 8000cda: 60bb str r3, [r7, #8] RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1; - 80006cc: 2300 movs r3, #0 - 80006ce: 60fb str r3, [r7, #12] + 8000cdc: 2300 movs r3, #0 + 8000cde: 60fb str r3, [r7, #12] RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV1; - 80006d0: 2300 movs r3, #0 - 80006d2: 613b str r3, [r7, #16] + 8000ce0: 2300 movs r3, #0 + 8000ce2: 613b str r3, [r7, #16] RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV1; - 80006d4: 2300 movs r3, #0 - 80006d6: 617b str r3, [r7, #20] + 8000ce4: 2300 movs r3, #0 + 8000ce6: 617b str r3, [r7, #20] if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_4) != HAL_OK) - 80006d8: 1d3b adds r3, r7, #4 - 80006da: 2104 movs r1, #4 - 80006dc: 4618 mov r0, r3 - 80006de: f003 f903 bl 80038e8 - 80006e2: 4603 mov r3, r0 - 80006e4: 2b00 cmp r3, #0 - 80006e6: d001 beq.n 80006ec + 8000ce8: 1d3b adds r3, r7, #4 + 8000cea: 2104 movs r1, #4 + 8000cec: 4618 mov r0, r3 + 8000cee: f003 faf7 bl 80042e0 + 8000cf2: 4603 mov r3, r0 + 8000cf4: 2b00 cmp r3, #0 + 8000cf6: d001 beq.n 8000cfc { Error_Handler(); - 80006e8: f000 fb74 bl 8000dd4 + 8000cf8: f000 fcda bl 80016b0 } } - 80006ec: bf00 nop - 80006ee: 3750 adds r7, #80 @ 0x50 - 80006f0: 46bd mov sp, r7 - 80006f2: bd80 pop {r7, pc} + 8000cfc: bf00 nop + 8000cfe: 3750 adds r7, #80 @ 0x50 + 8000d00: 46bd mov sp, r7 + 8000d02: bd80 pop {r7, pc} -080006f4 : +08000d04 : * @brief ADC1 Initialization Function * @param None * @retval None */ static void MX_ADC1_Init(void) { - 80006f4: b580 push {r7, lr} - 80006f6: b08c sub sp, #48 @ 0x30 - 80006f8: af00 add r7, sp, #0 + 8000d04: b580 push {r7, lr} + 8000d06: b08c sub sp, #48 @ 0x30 + 8000d08: af00 add r7, sp, #0 /* USER CODE BEGIN ADC1_Init 0 */ /* USER CODE END ADC1_Init 0 */ ADC_MultiModeTypeDef multimode = {0}; - 80006fa: f107 0324 add.w r3, r7, #36 @ 0x24 - 80006fe: 2200 movs r2, #0 - 8000700: 601a str r2, [r3, #0] - 8000702: 605a str r2, [r3, #4] - 8000704: 609a str r2, [r3, #8] + 8000d0a: f107 0324 add.w r3, r7, #36 @ 0x24 + 8000d0e: 2200 movs r2, #0 + 8000d10: 601a str r2, [r3, #0] + 8000d12: 605a str r2, [r3, #4] + 8000d14: 609a str r2, [r3, #8] ADC_ChannelConfTypeDef sConfig = {0}; - 8000706: 1d3b adds r3, r7, #4 - 8000708: 2220 movs r2, #32 - 800070a: 2100 movs r1, #0 - 800070c: 4618 mov r0, r3 - 800070e: f006 fad9 bl 8006cc4 + 8000d16: 1d3b adds r3, r7, #4 + 8000d18: 2220 movs r2, #32 + 8000d1a: 2100 movs r1, #0 + 8000d1c: 4618 mov r0, r3 + 8000d1e: f006 fccd bl 80076bc /* USER CODE END ADC1_Init 1 */ /** Common config */ hadc1.Instance = ADC1; - 8000712: 4b32 ldr r3, [pc, #200] @ (80007dc ) - 8000714: f04f 42a0 mov.w r2, #1342177280 @ 0x50000000 - 8000718: 601a str r2, [r3, #0] - hadc1.Init.ClockPrescaler = ADC_CLOCK_ASYNC_DIV16; - 800071a: 4b30 ldr r3, [pc, #192] @ (80007dc ) - 800071c: f44f 12e0 mov.w r2, #1835008 @ 0x1c0000 - 8000720: 605a str r2, [r3, #4] + 8000d22: 4b32 ldr r3, [pc, #200] @ (8000dec ) + 8000d24: f04f 42a0 mov.w r2, #1342177280 @ 0x50000000 + 8000d28: 601a str r2, [r3, #0] + hadc1.Init.ClockPrescaler = ADC_CLOCK_ASYNC_DIV32; + 8000d2a: 4b30 ldr r3, [pc, #192] @ (8000dec ) + 8000d2c: f44f 1200 mov.w r2, #2097152 @ 0x200000 + 8000d30: 605a str r2, [r3, #4] hadc1.Init.Resolution = ADC_RESOLUTION_12B; - 8000722: 4b2e ldr r3, [pc, #184] @ (80007dc ) - 8000724: 2200 movs r2, #0 - 8000726: 609a str r2, [r3, #8] + 8000d32: 4b2e ldr r3, [pc, #184] @ (8000dec ) + 8000d34: 2200 movs r2, #0 + 8000d36: 609a str r2, [r3, #8] hadc1.Init.DataAlign = ADC_DATAALIGN_RIGHT; - 8000728: 4b2c ldr r3, [pc, #176] @ (80007dc ) - 800072a: 2200 movs r2, #0 - 800072c: 60da str r2, [r3, #12] + 8000d38: 4b2c ldr r3, [pc, #176] @ (8000dec ) + 8000d3a: 2200 movs r2, #0 + 8000d3c: 60da str r2, [r3, #12] hadc1.Init.GainCompensation = 0; - 800072e: 4b2b ldr r3, [pc, #172] @ (80007dc ) - 8000730: 2200 movs r2, #0 - 8000732: 611a str r2, [r3, #16] + 8000d3e: 4b2b ldr r3, [pc, #172] @ (8000dec ) + 8000d40: 2200 movs r2, #0 + 8000d42: 611a str r2, [r3, #16] hadc1.Init.ScanConvMode = ADC_SCAN_DISABLE; - 8000734: 4b29 ldr r3, [pc, #164] @ (80007dc ) - 8000736: 2200 movs r2, #0 - 8000738: 615a str r2, [r3, #20] + 8000d44: 4b29 ldr r3, [pc, #164] @ (8000dec ) + 8000d46: 2200 movs r2, #0 + 8000d48: 615a str r2, [r3, #20] hadc1.Init.EOCSelection = ADC_EOC_SINGLE_CONV; - 800073a: 4b28 ldr r3, [pc, #160] @ (80007dc ) - 800073c: 2204 movs r2, #4 - 800073e: 619a str r2, [r3, #24] + 8000d4a: 4b28 ldr r3, [pc, #160] @ (8000dec ) + 8000d4c: 2204 movs r2, #4 + 8000d4e: 619a str r2, [r3, #24] hadc1.Init.LowPowerAutoWait = DISABLE; - 8000740: 4b26 ldr r3, [pc, #152] @ (80007dc ) - 8000742: 2200 movs r2, #0 - 8000744: 771a strb r2, [r3, #28] + 8000d50: 4b26 ldr r3, [pc, #152] @ (8000dec ) + 8000d52: 2200 movs r2, #0 + 8000d54: 771a strb r2, [r3, #28] hadc1.Init.ContinuousConvMode = DISABLE; - 8000746: 4b25 ldr r3, [pc, #148] @ (80007dc ) - 8000748: 2200 movs r2, #0 - 800074a: 775a strb r2, [r3, #29] + 8000d56: 4b25 ldr r3, [pc, #148] @ (8000dec ) + 8000d58: 2200 movs r2, #0 + 8000d5a: 775a strb r2, [r3, #29] hadc1.Init.NbrOfConversion = 1; - 800074c: 4b23 ldr r3, [pc, #140] @ (80007dc ) - 800074e: 2201 movs r2, #1 - 8000750: 621a str r2, [r3, #32] + 8000d5c: 4b23 ldr r3, [pc, #140] @ (8000dec ) + 8000d5e: 2201 movs r2, #1 + 8000d60: 621a str r2, [r3, #32] hadc1.Init.DiscontinuousConvMode = DISABLE; - 8000752: 4b22 ldr r3, [pc, #136] @ (80007dc ) - 8000754: 2200 movs r2, #0 - 8000756: f883 2024 strb.w r2, [r3, #36] @ 0x24 + 8000d62: 4b22 ldr r3, [pc, #136] @ (8000dec ) + 8000d64: 2200 movs r2, #0 + 8000d66: f883 2024 strb.w r2, [r3, #36] @ 0x24 hadc1.Init.ExternalTrigConv = ADC_SOFTWARE_START; - 800075a: 4b20 ldr r3, [pc, #128] @ (80007dc ) - 800075c: 2200 movs r2, #0 - 800075e: 62da str r2, [r3, #44] @ 0x2c + 8000d6a: 4b20 ldr r3, [pc, #128] @ (8000dec ) + 8000d6c: 2200 movs r2, #0 + 8000d6e: 62da str r2, [r3, #44] @ 0x2c hadc1.Init.ExternalTrigConvEdge = ADC_EXTERNALTRIGCONVEDGE_NONE; - 8000760: 4b1e ldr r3, [pc, #120] @ (80007dc ) - 8000762: 2200 movs r2, #0 - 8000764: 631a str r2, [r3, #48] @ 0x30 + 8000d70: 4b1e ldr r3, [pc, #120] @ (8000dec ) + 8000d72: 2200 movs r2, #0 + 8000d74: 631a str r2, [r3, #48] @ 0x30 hadc1.Init.DMAContinuousRequests = DISABLE; - 8000766: 4b1d ldr r3, [pc, #116] @ (80007dc ) - 8000768: 2200 movs r2, #0 - 800076a: f883 2038 strb.w r2, [r3, #56] @ 0x38 + 8000d76: 4b1d ldr r3, [pc, #116] @ (8000dec ) + 8000d78: 2200 movs r2, #0 + 8000d7a: f883 2038 strb.w r2, [r3, #56] @ 0x38 hadc1.Init.Overrun = ADC_OVR_DATA_PRESERVED; - 800076e: 4b1b ldr r3, [pc, #108] @ (80007dc ) - 8000770: 2200 movs r2, #0 - 8000772: 63da str r2, [r3, #60] @ 0x3c + 8000d7e: 4b1b ldr r3, [pc, #108] @ (8000dec ) + 8000d80: 2200 movs r2, #0 + 8000d82: 63da str r2, [r3, #60] @ 0x3c hadc1.Init.OversamplingMode = DISABLE; - 8000774: 4b19 ldr r3, [pc, #100] @ (80007dc ) - 8000776: 2200 movs r2, #0 - 8000778: f883 2040 strb.w r2, [r3, #64] @ 0x40 + 8000d84: 4b19 ldr r3, [pc, #100] @ (8000dec ) + 8000d86: 2200 movs r2, #0 + 8000d88: f883 2040 strb.w r2, [r3, #64] @ 0x40 if (HAL_ADC_Init(&hadc1) != HAL_OK) - 800077c: 4817 ldr r0, [pc, #92] @ (80007dc ) - 800077e: f000 ffcd bl 800171c - 8000782: 4603 mov r3, r0 - 8000784: 2b00 cmp r3, #0 - 8000786: d001 beq.n 800078c + 8000d8c: 4817 ldr r0, [pc, #92] @ (8000dec ) + 8000d8e: f001 f933 bl 8001ff8 + 8000d92: 4603 mov r3, r0 + 8000d94: 2b00 cmp r3, #0 + 8000d96: d001 beq.n 8000d9c { Error_Handler(); - 8000788: f000 fb24 bl 8000dd4 + 8000d98: f000 fc8a bl 80016b0 } /** Configure the ADC multi-mode */ multimode.Mode = ADC_MODE_INDEPENDENT; - 800078c: 2300 movs r3, #0 - 800078e: 627b str r3, [r7, #36] @ 0x24 + 8000d9c: 2300 movs r3, #0 + 8000d9e: 627b str r3, [r7, #36] @ 0x24 if (HAL_ADCEx_MultiModeConfigChannel(&hadc1, &multimode) != HAL_OK) - 8000790: f107 0324 add.w r3, r7, #36 @ 0x24 - 8000794: 4619 mov r1, r3 - 8000796: 4811 ldr r0, [pc, #68] @ (80007dc ) - 8000798: f002 f8d2 bl 8002940 - 800079c: 4603 mov r3, r0 - 800079e: 2b00 cmp r3, #0 - 80007a0: d001 beq.n 80007a6 + 8000da0: f107 0324 add.w r3, r7, #36 @ 0x24 + 8000da4: 4619 mov r1, r3 + 8000da6: 4811 ldr r0, [pc, #68] @ (8000dec ) + 8000da8: f002 fac6 bl 8003338 + 8000dac: 4603 mov r3, r0 + 8000dae: 2b00 cmp r3, #0 + 8000db0: d001 beq.n 8000db6 { Error_Handler(); - 80007a2: f000 fb17 bl 8000dd4 + 8000db2: f000 fc7d bl 80016b0 } /** Configure Regular Channel */ sConfig.Channel = ADC_CHANNEL_VREFINT; - 80007a6: 4b0e ldr r3, [pc, #56] @ (80007e0 ) - 80007a8: 607b str r3, [r7, #4] + 8000db6: 4b0e ldr r3, [pc, #56] @ (8000df0 ) + 8000db8: 607b str r3, [r7, #4] sConfig.Rank = ADC_REGULAR_RANK_1; - 80007aa: 2306 movs r3, #6 - 80007ac: 60bb str r3, [r7, #8] - sConfig.SamplingTime = ADC_SAMPLETIME_2CYCLES_5; - 80007ae: 2300 movs r3, #0 - 80007b0: 60fb str r3, [r7, #12] + 8000dba: 2306 movs r3, #6 + 8000dbc: 60bb str r3, [r7, #8] + sConfig.SamplingTime = ADC_SAMPLETIME_640CYCLES_5; + 8000dbe: 2307 movs r3, #7 + 8000dc0: 60fb str r3, [r7, #12] sConfig.SingleDiff = ADC_SINGLE_ENDED; - 80007b2: 237f movs r3, #127 @ 0x7f - 80007b4: 613b str r3, [r7, #16] + 8000dc2: 237f movs r3, #127 @ 0x7f + 8000dc4: 613b str r3, [r7, #16] sConfig.OffsetNumber = ADC_OFFSET_NONE; - 80007b6: 2304 movs r3, #4 - 80007b8: 617b str r3, [r7, #20] + 8000dc6: 2304 movs r3, #4 + 8000dc8: 617b str r3, [r7, #20] sConfig.Offset = 0; - 80007ba: 2300 movs r3, #0 - 80007bc: 61bb str r3, [r7, #24] + 8000dca: 2300 movs r3, #0 + 8000dcc: 61bb str r3, [r7, #24] if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK) - 80007be: 1d3b adds r3, r7, #4 - 80007c0: 4619 mov r1, r3 - 80007c2: 4806 ldr r0, [pc, #24] @ (80007dc ) - 80007c4: f001 fb04 bl 8001dd0 - 80007c8: 4603 mov r3, r0 - 80007ca: 2b00 cmp r3, #0 - 80007cc: d001 beq.n 80007d2 + 8000dce: 1d3b adds r3, r7, #4 + 8000dd0: 4619 mov r1, r3 + 8000dd2: 4806 ldr r0, [pc, #24] @ (8000dec ) + 8000dd4: f001 fc6a bl 80026ac + 8000dd8: 4603 mov r3, r0 + 8000dda: 2b00 cmp r3, #0 + 8000ddc: d001 beq.n 8000de2 { Error_Handler(); - 80007ce: f000 fb01 bl 8000dd4 + 8000dde: f000 fc67 bl 80016b0 } /* USER CODE BEGIN ADC1_Init 2 */ /* USER CODE END ADC1_Init 2 */ } - 80007d2: bf00 nop - 80007d4: 3730 adds r7, #48 @ 0x30 - 80007d6: 46bd mov sp, r7 - 80007d8: bd80 pop {r7, pc} - 80007da: bf00 nop - 80007dc: 20000028 .word 0x20000028 - 80007e0: cb840000 .word 0xcb840000 + 8000de2: bf00 nop + 8000de4: 3730 adds r7, #48 @ 0x30 + 8000de6: 46bd mov sp, r7 + 8000de8: bd80 pop {r7, pc} + 8000dea: bf00 nop + 8000dec: 2000003c .word 0x2000003c + 8000df0: cb840000 .word 0xcb840000 -080007e4 : +08000df4 : * @brief ADC2 Initialization Function * @param None * @retval None */ static void MX_ADC2_Init(void) { - 80007e4: b580 push {r7, lr} - 80007e6: b088 sub sp, #32 - 80007e8: af00 add r7, sp, #0 + 8000df4: b580 push {r7, lr} + 8000df6: b088 sub sp, #32 + 8000df8: af00 add r7, sp, #0 /* USER CODE BEGIN ADC2_Init 0 */ /* USER CODE END ADC2_Init 0 */ ADC_ChannelConfTypeDef sConfig = {0}; - 80007ea: 463b mov r3, r7 - 80007ec: 2220 movs r2, #32 - 80007ee: 2100 movs r1, #0 - 80007f0: 4618 mov r0, r3 - 80007f2: f006 fa67 bl 8006cc4 + 8000dfa: 463b mov r3, r7 + 8000dfc: 2220 movs r2, #32 + 8000dfe: 2100 movs r1, #0 + 8000e00: 4618 mov r0, r3 + 8000e02: f006 fc5b bl 80076bc /* USER CODE END ADC2_Init 1 */ /** Common config */ hadc2.Instance = ADC2; - 80007f6: 4b32 ldr r3, [pc, #200] @ (80008c0 ) - 80007f8: 4a32 ldr r2, [pc, #200] @ (80008c4 ) - 80007fa: 601a str r2, [r3, #0] - hadc2.Init.ClockPrescaler = ADC_CLOCK_ASYNC_DIV16; - 80007fc: 4b30 ldr r3, [pc, #192] @ (80008c0 ) - 80007fe: f44f 12e0 mov.w r2, #1835008 @ 0x1c0000 - 8000802: 605a str r2, [r3, #4] + 8000e06: 4b32 ldr r3, [pc, #200] @ (8000ed0 ) + 8000e08: 4a32 ldr r2, [pc, #200] @ (8000ed4 ) + 8000e0a: 601a str r2, [r3, #0] + hadc2.Init.ClockPrescaler = ADC_CLOCK_ASYNC_DIV32; + 8000e0c: 4b30 ldr r3, [pc, #192] @ (8000ed0 ) + 8000e0e: f44f 1200 mov.w r2, #2097152 @ 0x200000 + 8000e12: 605a str r2, [r3, #4] hadc2.Init.Resolution = ADC_RESOLUTION_12B; - 8000804: 4b2e ldr r3, [pc, #184] @ (80008c0 ) - 8000806: 2200 movs r2, #0 - 8000808: 609a str r2, [r3, #8] + 8000e14: 4b2e ldr r3, [pc, #184] @ (8000ed0 ) + 8000e16: 2200 movs r2, #0 + 8000e18: 609a str r2, [r3, #8] hadc2.Init.DataAlign = ADC_DATAALIGN_RIGHT; - 800080a: 4b2d ldr r3, [pc, #180] @ (80008c0 ) - 800080c: 2200 movs r2, #0 - 800080e: 60da str r2, [r3, #12] + 8000e1a: 4b2d ldr r3, [pc, #180] @ (8000ed0 ) + 8000e1c: 2200 movs r2, #0 + 8000e1e: 60da str r2, [r3, #12] hadc2.Init.GainCompensation = 0; - 8000810: 4b2b ldr r3, [pc, #172] @ (80008c0 ) - 8000812: 2200 movs r2, #0 - 8000814: 611a str r2, [r3, #16] + 8000e20: 4b2b ldr r3, [pc, #172] @ (8000ed0 ) + 8000e22: 2200 movs r2, #0 + 8000e24: 611a str r2, [r3, #16] hadc2.Init.ScanConvMode = ADC_SCAN_ENABLE; - 8000816: 4b2a ldr r3, [pc, #168] @ (80008c0 ) - 8000818: 2201 movs r2, #1 - 800081a: 615a str r2, [r3, #20] + 8000e26: 4b2a ldr r3, [pc, #168] @ (8000ed0 ) + 8000e28: 2201 movs r2, #1 + 8000e2a: 615a str r2, [r3, #20] hadc2.Init.EOCSelection = ADC_EOC_SINGLE_CONV; - 800081c: 4b28 ldr r3, [pc, #160] @ (80008c0 ) - 800081e: 2204 movs r2, #4 - 8000820: 619a str r2, [r3, #24] + 8000e2c: 4b28 ldr r3, [pc, #160] @ (8000ed0 ) + 8000e2e: 2204 movs r2, #4 + 8000e30: 619a str r2, [r3, #24] hadc2.Init.LowPowerAutoWait = DISABLE; - 8000822: 4b27 ldr r3, [pc, #156] @ (80008c0 ) - 8000824: 2200 movs r2, #0 - 8000826: 771a strb r2, [r3, #28] + 8000e32: 4b27 ldr r3, [pc, #156] @ (8000ed0 ) + 8000e34: 2200 movs r2, #0 + 8000e36: 771a strb r2, [r3, #28] hadc2.Init.ContinuousConvMode = DISABLE; - 8000828: 4b25 ldr r3, [pc, #148] @ (80008c0 ) - 800082a: 2200 movs r2, #0 - 800082c: 775a strb r2, [r3, #29] + 8000e38: 4b25 ldr r3, [pc, #148] @ (8000ed0 ) + 8000e3a: 2200 movs r2, #0 + 8000e3c: 775a strb r2, [r3, #29] hadc2.Init.NbrOfConversion = 2; - 800082e: 4b24 ldr r3, [pc, #144] @ (80008c0 ) - 8000830: 2202 movs r2, #2 - 8000832: 621a str r2, [r3, #32] + 8000e3e: 4b24 ldr r3, [pc, #144] @ (8000ed0 ) + 8000e40: 2202 movs r2, #2 + 8000e42: 621a str r2, [r3, #32] hadc2.Init.DiscontinuousConvMode = DISABLE; - 8000834: 4b22 ldr r3, [pc, #136] @ (80008c0 ) - 8000836: 2200 movs r2, #0 - 8000838: f883 2024 strb.w r2, [r3, #36] @ 0x24 + 8000e44: 4b22 ldr r3, [pc, #136] @ (8000ed0 ) + 8000e46: 2200 movs r2, #0 + 8000e48: f883 2024 strb.w r2, [r3, #36] @ 0x24 hadc2.Init.ExternalTrigConv = ADC_SOFTWARE_START; - 800083c: 4b20 ldr r3, [pc, #128] @ (80008c0 ) - 800083e: 2200 movs r2, #0 - 8000840: 62da str r2, [r3, #44] @ 0x2c + 8000e4c: 4b20 ldr r3, [pc, #128] @ (8000ed0 ) + 8000e4e: 2200 movs r2, #0 + 8000e50: 62da str r2, [r3, #44] @ 0x2c hadc2.Init.ExternalTrigConvEdge = ADC_EXTERNALTRIGCONVEDGE_NONE; - 8000842: 4b1f ldr r3, [pc, #124] @ (80008c0 ) - 8000844: 2200 movs r2, #0 - 8000846: 631a str r2, [r3, #48] @ 0x30 + 8000e52: 4b1f ldr r3, [pc, #124] @ (8000ed0 ) + 8000e54: 2200 movs r2, #0 + 8000e56: 631a str r2, [r3, #48] @ 0x30 hadc2.Init.DMAContinuousRequests = DISABLE; - 8000848: 4b1d ldr r3, [pc, #116] @ (80008c0 ) - 800084a: 2200 movs r2, #0 - 800084c: f883 2038 strb.w r2, [r3, #56] @ 0x38 + 8000e58: 4b1d ldr r3, [pc, #116] @ (8000ed0 ) + 8000e5a: 2200 movs r2, #0 + 8000e5c: f883 2038 strb.w r2, [r3, #56] @ 0x38 hadc2.Init.Overrun = ADC_OVR_DATA_PRESERVED; - 8000850: 4b1b ldr r3, [pc, #108] @ (80008c0 ) - 8000852: 2200 movs r2, #0 - 8000854: 63da str r2, [r3, #60] @ 0x3c + 8000e60: 4b1b ldr r3, [pc, #108] @ (8000ed0 ) + 8000e62: 2200 movs r2, #0 + 8000e64: 63da str r2, [r3, #60] @ 0x3c hadc2.Init.OversamplingMode = DISABLE; - 8000856: 4b1a ldr r3, [pc, #104] @ (80008c0 ) - 8000858: 2200 movs r2, #0 - 800085a: f883 2040 strb.w r2, [r3, #64] @ 0x40 + 8000e66: 4b1a ldr r3, [pc, #104] @ (8000ed0 ) + 8000e68: 2200 movs r2, #0 + 8000e6a: f883 2040 strb.w r2, [r3, #64] @ 0x40 if (HAL_ADC_Init(&hadc2) != HAL_OK) - 800085e: 4818 ldr r0, [pc, #96] @ (80008c0 ) - 8000860: f000 ff5c bl 800171c - 8000864: 4603 mov r3, r0 - 8000866: 2b00 cmp r3, #0 - 8000868: d001 beq.n 800086e + 8000e6e: 4818 ldr r0, [pc, #96] @ (8000ed0 ) + 8000e70: f001 f8c2 bl 8001ff8 + 8000e74: 4603 mov r3, r0 + 8000e76: 2b00 cmp r3, #0 + 8000e78: d001 beq.n 8000e7e { Error_Handler(); - 800086a: f000 fab3 bl 8000dd4 + 8000e7a: f000 fc19 bl 80016b0 } /** Configure Regular Channel */ sConfig.Channel = ADC_CHANNEL_3; - 800086e: 4b16 ldr r3, [pc, #88] @ (80008c8 ) - 8000870: 603b str r3, [r7, #0] + 8000e7e: 4b16 ldr r3, [pc, #88] @ (8000ed8 ) + 8000e80: 603b str r3, [r7, #0] sConfig.Rank = ADC_REGULAR_RANK_1; - 8000872: 2306 movs r3, #6 - 8000874: 607b str r3, [r7, #4] - sConfig.SamplingTime = ADC_SAMPLETIME_24CYCLES_5; - 8000876: 2303 movs r3, #3 - 8000878: 60bb str r3, [r7, #8] + 8000e82: 2306 movs r3, #6 + 8000e84: 607b str r3, [r7, #4] + sConfig.SamplingTime = ADC_SAMPLETIME_640CYCLES_5; + 8000e86: 2307 movs r3, #7 + 8000e88: 60bb str r3, [r7, #8] sConfig.SingleDiff = ADC_SINGLE_ENDED; - 800087a: 237f movs r3, #127 @ 0x7f - 800087c: 60fb str r3, [r7, #12] + 8000e8a: 237f movs r3, #127 @ 0x7f + 8000e8c: 60fb str r3, [r7, #12] sConfig.OffsetNumber = ADC_OFFSET_NONE; - 800087e: 2304 movs r3, #4 - 8000880: 613b str r3, [r7, #16] + 8000e8e: 2304 movs r3, #4 + 8000e90: 613b str r3, [r7, #16] sConfig.Offset = 0; - 8000882: 2300 movs r3, #0 - 8000884: 617b str r3, [r7, #20] + 8000e92: 2300 movs r3, #0 + 8000e94: 617b str r3, [r7, #20] if (HAL_ADC_ConfigChannel(&hadc2, &sConfig) != HAL_OK) - 8000886: 463b mov r3, r7 - 8000888: 4619 mov r1, r3 - 800088a: 480d ldr r0, [pc, #52] @ (80008c0 ) - 800088c: f001 faa0 bl 8001dd0 - 8000890: 4603 mov r3, r0 - 8000892: 2b00 cmp r3, #0 - 8000894: d001 beq.n 800089a + 8000e96: 463b mov r3, r7 + 8000e98: 4619 mov r1, r3 + 8000e9a: 480d ldr r0, [pc, #52] @ (8000ed0 ) + 8000e9c: f001 fc06 bl 80026ac + 8000ea0: 4603 mov r3, r0 + 8000ea2: 2b00 cmp r3, #0 + 8000ea4: d001 beq.n 8000eaa { Error_Handler(); - 8000896: f000 fa9d bl 8000dd4 + 8000ea6: f000 fc03 bl 80016b0 } /** Configure Regular Channel */ sConfig.Channel = ADC_CHANNEL_4; - 800089a: 4b0c ldr r3, [pc, #48] @ (80008cc ) - 800089c: 603b str r3, [r7, #0] + 8000eaa: 4b0c ldr r3, [pc, #48] @ (8000edc ) + 8000eac: 603b str r3, [r7, #0] sConfig.Rank = ADC_REGULAR_RANK_2; - 800089e: 230c movs r3, #12 - 80008a0: 607b str r3, [r7, #4] + 8000eae: 230c movs r3, #12 + 8000eb0: 607b str r3, [r7, #4] if (HAL_ADC_ConfigChannel(&hadc2, &sConfig) != HAL_OK) - 80008a2: 463b mov r3, r7 - 80008a4: 4619 mov r1, r3 - 80008a6: 4806 ldr r0, [pc, #24] @ (80008c0 ) - 80008a8: f001 fa92 bl 8001dd0 - 80008ac: 4603 mov r3, r0 - 80008ae: 2b00 cmp r3, #0 - 80008b0: d001 beq.n 80008b6 + 8000eb2: 463b mov r3, r7 + 8000eb4: 4619 mov r1, r3 + 8000eb6: 4806 ldr r0, [pc, #24] @ (8000ed0 ) + 8000eb8: f001 fbf8 bl 80026ac + 8000ebc: 4603 mov r3, r0 + 8000ebe: 2b00 cmp r3, #0 + 8000ec0: d001 beq.n 8000ec6 { Error_Handler(); - 80008b2: f000 fa8f bl 8000dd4 + 8000ec2: f000 fbf5 bl 80016b0 } /* USER CODE BEGIN ADC2_Init 2 */ /* USER CODE END ADC2_Init 2 */ } - 80008b6: bf00 nop - 80008b8: 3720 adds r7, #32 - 80008ba: 46bd mov sp, r7 - 80008bc: bd80 pop {r7, pc} - 80008be: bf00 nop - 80008c0: 20000094 .word 0x20000094 - 80008c4: 50000100 .word 0x50000100 - 80008c8: 0c900008 .word 0x0c900008 - 80008cc: 10c00010 .word 0x10c00010 + 8000ec6: bf00 nop + 8000ec8: 3720 adds r7, #32 + 8000eca: 46bd mov sp, r7 + 8000ecc: bd80 pop {r7, pc} + 8000ece: bf00 nop + 8000ed0: 200000a8 .word 0x200000a8 + 8000ed4: 50000100 .word 0x50000100 + 8000ed8: 0c900008 .word 0x0c900008 + 8000edc: 10c00010 .word 0x10c00010 -080008d0 : +08000ee0 : * @brief TIM2 Initialization Function * @param None * @retval None */ static void MX_TIM2_Init(void) { - 80008d0: b580 push {r7, lr} - 80008d2: b088 sub sp, #32 - 80008d4: af00 add r7, sp, #0 + 8000ee0: b580 push {r7, lr} + 8000ee2: b088 sub sp, #32 + 8000ee4: af00 add r7, sp, #0 /* USER CODE BEGIN TIM2_Init 0 */ /* USER CODE END TIM2_Init 0 */ TIM_ClockConfigTypeDef sClockSourceConfig = {0}; - 80008d6: f107 0310 add.w r3, r7, #16 - 80008da: 2200 movs r2, #0 - 80008dc: 601a str r2, [r3, #0] - 80008de: 605a str r2, [r3, #4] - 80008e0: 609a str r2, [r3, #8] - 80008e2: 60da str r2, [r3, #12] + 8000ee6: f107 0310 add.w r3, r7, #16 + 8000eea: 2200 movs r2, #0 + 8000eec: 601a str r2, [r3, #0] + 8000eee: 605a str r2, [r3, #4] + 8000ef0: 609a str r2, [r3, #8] + 8000ef2: 60da str r2, [r3, #12] TIM_MasterConfigTypeDef sMasterConfig = {0}; - 80008e4: 1d3b adds r3, r7, #4 - 80008e6: 2200 movs r2, #0 - 80008e8: 601a str r2, [r3, #0] - 80008ea: 605a str r2, [r3, #4] - 80008ec: 609a str r2, [r3, #8] + 8000ef4: 1d3b adds r3, r7, #4 + 8000ef6: 2200 movs r2, #0 + 8000ef8: 601a str r2, [r3, #0] + 8000efa: 605a str r2, [r3, #4] + 8000efc: 609a str r2, [r3, #8] /* USER CODE BEGIN TIM2_Init 1 */ /* USER CODE END TIM2_Init 1 */ htim2.Instance = TIM2; - 80008ee: 4b1d ldr r3, [pc, #116] @ (8000964 ) - 80008f0: f04f 4280 mov.w r2, #1073741824 @ 0x40000000 - 80008f4: 601a str r2, [r3, #0] + 8000efe: 4b1d ldr r3, [pc, #116] @ (8000f74 ) + 8000f00: f04f 4280 mov.w r2, #1073741824 @ 0x40000000 + 8000f04: 601a str r2, [r3, #0] htim2.Init.Prescaler = 0; - 80008f6: 4b1b ldr r3, [pc, #108] @ (8000964 ) - 80008f8: 2200 movs r2, #0 - 80008fa: 605a str r2, [r3, #4] + 8000f06: 4b1b ldr r3, [pc, #108] @ (8000f74 ) + 8000f08: 2200 movs r2, #0 + 8000f0a: 605a str r2, [r3, #4] htim2.Init.CounterMode = TIM_COUNTERMODE_UP; - 80008fc: 4b19 ldr r3, [pc, #100] @ (8000964 ) - 80008fe: 2200 movs r2, #0 - 8000900: 609a str r2, [r3, #8] + 8000f0c: 4b19 ldr r3, [pc, #100] @ (8000f74 ) + 8000f0e: 2200 movs r2, #0 + 8000f10: 609a str r2, [r3, #8] htim2.Init.Period = 128999; - 8000902: 4b18 ldr r3, [pc, #96] @ (8000964 ) - 8000904: 4a18 ldr r2, [pc, #96] @ (8000968 ) - 8000906: 60da str r2, [r3, #12] + 8000f12: 4b18 ldr r3, [pc, #96] @ (8000f74 ) + 8000f14: 4a18 ldr r2, [pc, #96] @ (8000f78 ) + 8000f16: 60da str r2, [r3, #12] htim2.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1; - 8000908: 4b16 ldr r3, [pc, #88] @ (8000964 ) - 800090a: 2200 movs r2, #0 - 800090c: 611a str r2, [r3, #16] + 8000f18: 4b16 ldr r3, [pc, #88] @ (8000f74 ) + 8000f1a: 2200 movs r2, #0 + 8000f1c: 611a str r2, [r3, #16] htim2.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE; - 800090e: 4b15 ldr r3, [pc, #84] @ (8000964 ) - 8000910: 2200 movs r2, #0 - 8000912: 619a str r2, [r3, #24] + 8000f1e: 4b15 ldr r3, [pc, #84] @ (8000f74 ) + 8000f20: 2200 movs r2, #0 + 8000f22: 619a str r2, [r3, #24] if (HAL_TIM_Base_Init(&htim2) != HAL_OK) - 8000914: 4813 ldr r0, [pc, #76] @ (8000964 ) - 8000916: f003 fbf3 bl 8004100 - 800091a: 4603 mov r3, r0 - 800091c: 2b00 cmp r3, #0 - 800091e: d001 beq.n 8000924 + 8000f24: 4813 ldr r0, [pc, #76] @ (8000f74 ) + 8000f26: f003 fde7 bl 8004af8 + 8000f2a: 4603 mov r3, r0 + 8000f2c: 2b00 cmp r3, #0 + 8000f2e: d001 beq.n 8000f34 { Error_Handler(); - 8000920: f000 fa58 bl 8000dd4 + 8000f30: f000 fbbe bl 80016b0 } sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL; - 8000924: f44f 5380 mov.w r3, #4096 @ 0x1000 - 8000928: 613b str r3, [r7, #16] + 8000f34: f44f 5380 mov.w r3, #4096 @ 0x1000 + 8000f38: 613b str r3, [r7, #16] if (HAL_TIM_ConfigClockSource(&htim2, &sClockSourceConfig) != HAL_OK) - 800092a: f107 0310 add.w r3, r7, #16 - 800092e: 4619 mov r1, r3 - 8000930: 480c ldr r0, [pc, #48] @ (8000964 ) - 8000932: f003 fd8b bl 800444c - 8000936: 4603 mov r3, r0 - 8000938: 2b00 cmp r3, #0 - 800093a: d001 beq.n 8000940 + 8000f3a: f107 0310 add.w r3, r7, #16 + 8000f3e: 4619 mov r1, r3 + 8000f40: 480c ldr r0, [pc, #48] @ (8000f74 ) + 8000f42: f003 ff7f bl 8004e44 + 8000f46: 4603 mov r3, r0 + 8000f48: 2b00 cmp r3, #0 + 8000f4a: d001 beq.n 8000f50 { Error_Handler(); - 800093c: f000 fa4a bl 8000dd4 + 8000f4c: f000 fbb0 bl 80016b0 } sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET; - 8000940: 2300 movs r3, #0 - 8000942: 607b str r3, [r7, #4] + 8000f50: 2300 movs r3, #0 + 8000f52: 607b str r3, [r7, #4] sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE; - 8000944: 2300 movs r3, #0 - 8000946: 60fb str r3, [r7, #12] + 8000f54: 2300 movs r3, #0 + 8000f56: 60fb str r3, [r7, #12] if (HAL_TIMEx_MasterConfigSynchronization(&htim2, &sMasterConfig) != HAL_OK) - 8000948: 1d3b adds r3, r7, #4 - 800094a: 4619 mov r1, r3 - 800094c: 4805 ldr r0, [pc, #20] @ (8000964 ) - 800094e: f003 ffe1 bl 8004914 - 8000952: 4603 mov r3, r0 - 8000954: 2b00 cmp r3, #0 - 8000956: d001 beq.n 800095c + 8000f58: 1d3b adds r3, r7, #4 + 8000f5a: 4619 mov r1, r3 + 8000f5c: 4805 ldr r0, [pc, #20] @ (8000f74 ) + 8000f5e: f004 f9d5 bl 800530c + 8000f62: 4603 mov r3, r0 + 8000f64: 2b00 cmp r3, #0 + 8000f66: d001 beq.n 8000f6c { Error_Handler(); - 8000958: f000 fa3c bl 8000dd4 + 8000f68: f000 fba2 bl 80016b0 } /* USER CODE BEGIN TIM2_Init 2 */ /* USER CODE END TIM2_Init 2 */ } - 800095c: bf00 nop - 800095e: 3720 adds r7, #32 - 8000960: 46bd mov sp, r7 - 8000962: bd80 pop {r7, pc} - 8000964: 20000100 .word 0x20000100 - 8000968: 0001f7e7 .word 0x0001f7e7 + 8000f6c: bf00 nop + 8000f6e: 3720 adds r7, #32 + 8000f70: 46bd mov sp, r7 + 8000f72: bd80 pop {r7, pc} + 8000f74: 20000114 .word 0x20000114 + 8000f78: 0001f7e7 .word 0x0001f7e7 -0800096c : +08000f7c : * @brief USART2 Initialization Function * @param None * @retval None */ static void MX_USART2_UART_Init(void) { - 800096c: b580 push {r7, lr} - 800096e: af00 add r7, sp, #0 + 8000f7c: b580 push {r7, lr} + 8000f7e: af00 add r7, sp, #0 /* USER CODE END USART2_Init 0 */ /* USER CODE BEGIN USART2_Init 1 */ /* USER CODE END USART2_Init 1 */ huart2.Instance = USART2; - 8000970: 4b22 ldr r3, [pc, #136] @ (80009fc ) - 8000972: 4a23 ldr r2, [pc, #140] @ (8000a00 ) - 8000974: 601a str r2, [r3, #0] - huart2.Init.BaudRate = 921600; - 8000976: 4b21 ldr r3, [pc, #132] @ (80009fc ) - 8000978: f44f 2261 mov.w r2, #921600 @ 0xe1000 - 800097c: 605a str r2, [r3, #4] + 8000f80: 4b22 ldr r3, [pc, #136] @ (800100c ) + 8000f82: 4a23 ldr r2, [pc, #140] @ (8001010 ) + 8000f84: 601a str r2, [r3, #0] + huart2.Init.BaudRate = 115200; + 8000f86: 4b21 ldr r3, [pc, #132] @ (800100c ) + 8000f88: f44f 32e1 mov.w r2, #115200 @ 0x1c200 + 8000f8c: 605a str r2, [r3, #4] huart2.Init.WordLength = UART_WORDLENGTH_8B; - 800097e: 4b1f ldr r3, [pc, #124] @ (80009fc ) - 8000980: 2200 movs r2, #0 - 8000982: 609a str r2, [r3, #8] + 8000f8e: 4b1f ldr r3, [pc, #124] @ (800100c ) + 8000f90: 2200 movs r2, #0 + 8000f92: 609a str r2, [r3, #8] huart2.Init.StopBits = UART_STOPBITS_1; - 8000984: 4b1d ldr r3, [pc, #116] @ (80009fc ) - 8000986: 2200 movs r2, #0 - 8000988: 60da str r2, [r3, #12] + 8000f94: 4b1d ldr r3, [pc, #116] @ (800100c ) + 8000f96: 2200 movs r2, #0 + 8000f98: 60da str r2, [r3, #12] huart2.Init.Parity = UART_PARITY_NONE; - 800098a: 4b1c ldr r3, [pc, #112] @ (80009fc ) - 800098c: 2200 movs r2, #0 - 800098e: 611a str r2, [r3, #16] + 8000f9a: 4b1c ldr r3, [pc, #112] @ (800100c ) + 8000f9c: 2200 movs r2, #0 + 8000f9e: 611a str r2, [r3, #16] huart2.Init.Mode = UART_MODE_TX_RX; - 8000990: 4b1a ldr r3, [pc, #104] @ (80009fc ) - 8000992: 220c movs r2, #12 - 8000994: 615a str r2, [r3, #20] + 8000fa0: 4b1a ldr r3, [pc, #104] @ (800100c ) + 8000fa2: 220c movs r2, #12 + 8000fa4: 615a str r2, [r3, #20] huart2.Init.HwFlowCtl = UART_HWCONTROL_NONE; - 8000996: 4b19 ldr r3, [pc, #100] @ (80009fc ) - 8000998: 2200 movs r2, #0 - 800099a: 619a str r2, [r3, #24] + 8000fa6: 4b19 ldr r3, [pc, #100] @ (800100c ) + 8000fa8: 2200 movs r2, #0 + 8000faa: 619a str r2, [r3, #24] huart2.Init.OverSampling = UART_OVERSAMPLING_16; - 800099c: 4b17 ldr r3, [pc, #92] @ (80009fc ) - 800099e: 2200 movs r2, #0 - 80009a0: 61da str r2, [r3, #28] + 8000fac: 4b17 ldr r3, [pc, #92] @ (800100c ) + 8000fae: 2200 movs r2, #0 + 8000fb0: 61da str r2, [r3, #28] huart2.Init.OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE; - 80009a2: 4b16 ldr r3, [pc, #88] @ (80009fc ) - 80009a4: 2200 movs r2, #0 - 80009a6: 621a str r2, [r3, #32] + 8000fb2: 4b16 ldr r3, [pc, #88] @ (800100c ) + 8000fb4: 2200 movs r2, #0 + 8000fb6: 621a str r2, [r3, #32] huart2.Init.ClockPrescaler = UART_PRESCALER_DIV1; - 80009a8: 4b14 ldr r3, [pc, #80] @ (80009fc ) - 80009aa: 2200 movs r2, #0 - 80009ac: 625a str r2, [r3, #36] @ 0x24 + 8000fb8: 4b14 ldr r3, [pc, #80] @ (800100c ) + 8000fba: 2200 movs r2, #0 + 8000fbc: 625a str r2, [r3, #36] @ 0x24 huart2.AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_NO_INIT; - 80009ae: 4b13 ldr r3, [pc, #76] @ (80009fc ) - 80009b0: 2200 movs r2, #0 - 80009b2: 629a str r2, [r3, #40] @ 0x28 + 8000fbe: 4b13 ldr r3, [pc, #76] @ (800100c ) + 8000fc0: 2200 movs r2, #0 + 8000fc2: 629a str r2, [r3, #40] @ 0x28 if (HAL_UART_Init(&huart2) != HAL_OK) - 80009b4: 4811 ldr r0, [pc, #68] @ (80009fc ) - 80009b6: f004 f875 bl 8004aa4 - 80009ba: 4603 mov r3, r0 - 80009bc: 2b00 cmp r3, #0 - 80009be: d001 beq.n 80009c4 + 8000fc4: 4811 ldr r0, [pc, #68] @ (800100c ) + 8000fc6: f004 fa69 bl 800549c + 8000fca: 4603 mov r3, r0 + 8000fcc: 2b00 cmp r3, #0 + 8000fce: d001 beq.n 8000fd4 { Error_Handler(); - 80009c0: f000 fa08 bl 8000dd4 + 8000fd0: f000 fb6e bl 80016b0 } if (HAL_UARTEx_SetTxFifoThreshold(&huart2, UART_TXFIFO_THRESHOLD_1_8) != HAL_OK) - 80009c4: 2100 movs r1, #0 - 80009c6: 480d ldr r0, [pc, #52] @ (80009fc ) - 80009c8: f006 f8b1 bl 8006b2e - 80009cc: 4603 mov r3, r0 - 80009ce: 2b00 cmp r3, #0 - 80009d0: d001 beq.n 80009d6 + 8000fd4: 2100 movs r1, #0 + 8000fd6: 480d ldr r0, [pc, #52] @ (800100c ) + 8000fd8: f006 faa5 bl 8007526 + 8000fdc: 4603 mov r3, r0 + 8000fde: 2b00 cmp r3, #0 + 8000fe0: d001 beq.n 8000fe6 { Error_Handler(); - 80009d2: f000 f9ff bl 8000dd4 + 8000fe2: f000 fb65 bl 80016b0 } if (HAL_UARTEx_SetRxFifoThreshold(&huart2, UART_RXFIFO_THRESHOLD_1_8) != HAL_OK) - 80009d6: 2100 movs r1, #0 - 80009d8: 4808 ldr r0, [pc, #32] @ (80009fc ) - 80009da: f006 f8e6 bl 8006baa - 80009de: 4603 mov r3, r0 - 80009e0: 2b00 cmp r3, #0 - 80009e2: d001 beq.n 80009e8 + 8000fe6: 2100 movs r1, #0 + 8000fe8: 4808 ldr r0, [pc, #32] @ (800100c ) + 8000fea: f006 fada bl 80075a2 + 8000fee: 4603 mov r3, r0 + 8000ff0: 2b00 cmp r3, #0 + 8000ff2: d001 beq.n 8000ff8 { Error_Handler(); - 80009e4: f000 f9f6 bl 8000dd4 + 8000ff4: f000 fb5c bl 80016b0 } if (HAL_UARTEx_DisableFifoMode(&huart2) != HAL_OK) - 80009e8: 4804 ldr r0, [pc, #16] @ (80009fc ) - 80009ea: f006 f867 bl 8006abc - 80009ee: 4603 mov r3, r0 - 80009f0: 2b00 cmp r3, #0 - 80009f2: d001 beq.n 80009f8 + 8000ff8: 4804 ldr r0, [pc, #16] @ (800100c ) + 8000ffa: f006 fa5b bl 80074b4 + 8000ffe: 4603 mov r3, r0 + 8001000: 2b00 cmp r3, #0 + 8001002: d001 beq.n 8001008 { Error_Handler(); - 80009f4: f000 f9ee bl 8000dd4 + 8001004: f000 fb54 bl 80016b0 } /* USER CODE BEGIN USART2_Init 2 */ /* USER CODE END USART2_Init 2 */ } - 80009f8: bf00 nop - 80009fa: bd80 pop {r7, pc} - 80009fc: 2000014c .word 0x2000014c - 8000a00: 40004400 .word 0x40004400 + 8001008: bf00 nop + 800100a: bd80 pop {r7, pc} + 800100c: 20000160 .word 0x20000160 + 8001010: 40004400 .word 0x40004400 -08000a04 : +08001014 : * @brief GPIO Initialization Function * @param None * @retval None */ static void MX_GPIO_Init(void) { - 8000a04: b580 push {r7, lr} - 8000a06: b088 sub sp, #32 - 8000a08: af00 add r7, sp, #0 + 8001014: b580 push {r7, lr} + 8001016: b088 sub sp, #32 + 8001018: af00 add r7, sp, #0 GPIO_InitTypeDef GPIO_InitStruct = {0}; - 8000a0a: f107 030c add.w r3, r7, #12 - 8000a0e: 2200 movs r2, #0 - 8000a10: 601a str r2, [r3, #0] - 8000a12: 605a str r2, [r3, #4] - 8000a14: 609a str r2, [r3, #8] - 8000a16: 60da str r2, [r3, #12] - 8000a18: 611a str r2, [r3, #16] + 800101a: f107 030c add.w r3, r7, #12 + 800101e: 2200 movs r2, #0 + 8001020: 601a str r2, [r3, #0] + 8001022: 605a str r2, [r3, #4] + 8001024: 609a str r2, [r3, #8] + 8001026: 60da str r2, [r3, #12] + 8001028: 611a str r2, [r3, #16] /* USER CODE BEGIN MX_GPIO_Init_1 */ /* USER CODE END MX_GPIO_Init_1 */ /* GPIO Ports Clock Enable */ __HAL_RCC_GPIOA_CLK_ENABLE(); - 8000a1a: 4b24 ldr r3, [pc, #144] @ (8000aac ) - 8000a1c: 6cdb ldr r3, [r3, #76] @ 0x4c - 8000a1e: 4a23 ldr r2, [pc, #140] @ (8000aac ) - 8000a20: f043 0301 orr.w r3, r3, #1 - 8000a24: 64d3 str r3, [r2, #76] @ 0x4c - 8000a26: 4b21 ldr r3, [pc, #132] @ (8000aac ) - 8000a28: 6cdb ldr r3, [r3, #76] @ 0x4c - 8000a2a: f003 0301 and.w r3, r3, #1 - 8000a2e: 60bb str r3, [r7, #8] - 8000a30: 68bb ldr r3, [r7, #8] + 800102a: 4b24 ldr r3, [pc, #144] @ (80010bc ) + 800102c: 6cdb ldr r3, [r3, #76] @ 0x4c + 800102e: 4a23 ldr r2, [pc, #140] @ (80010bc ) + 8001030: f043 0301 orr.w r3, r3, #1 + 8001034: 64d3 str r3, [r2, #76] @ 0x4c + 8001036: 4b21 ldr r3, [pc, #132] @ (80010bc ) + 8001038: 6cdb ldr r3, [r3, #76] @ 0x4c + 800103a: f003 0301 and.w r3, r3, #1 + 800103e: 60bb str r3, [r7, #8] + 8001040: 68bb ldr r3, [r7, #8] __HAL_RCC_GPIOB_CLK_ENABLE(); - 8000a32: 4b1e ldr r3, [pc, #120] @ (8000aac ) - 8000a34: 6cdb ldr r3, [r3, #76] @ 0x4c - 8000a36: 4a1d ldr r2, [pc, #116] @ (8000aac ) - 8000a38: f043 0302 orr.w r3, r3, #2 - 8000a3c: 64d3 str r3, [r2, #76] @ 0x4c - 8000a3e: 4b1b ldr r3, [pc, #108] @ (8000aac ) - 8000a40: 6cdb ldr r3, [r3, #76] @ 0x4c - 8000a42: f003 0302 and.w r3, r3, #2 - 8000a46: 607b str r3, [r7, #4] - 8000a48: 687b ldr r3, [r7, #4] + 8001042: 4b1e ldr r3, [pc, #120] @ (80010bc ) + 8001044: 6cdb ldr r3, [r3, #76] @ 0x4c + 8001046: 4a1d ldr r2, [pc, #116] @ (80010bc ) + 8001048: f043 0302 orr.w r3, r3, #2 + 800104c: 64d3 str r3, [r2, #76] @ 0x4c + 800104e: 4b1b ldr r3, [pc, #108] @ (80010bc ) + 8001050: 6cdb ldr r3, [r3, #76] @ 0x4c + 8001052: f003 0302 and.w r3, r3, #2 + 8001056: 607b str r3, [r7, #4] + 8001058: 687b ldr r3, [r7, #4] /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(POWER_SWITCH_GPIO_Port, POWER_SWITCH_Pin, GPIO_PIN_RESET); - 8000a4a: 2200 movs r2, #0 - 8000a4c: f44f 5180 mov.w r1, #4096 @ 0x1000 - 8000a50: f04f 4090 mov.w r0, #1207959552 @ 0x48000000 - 8000a54: f002 fb6a bl 800312c + 800105a: 2200 movs r2, #0 + 800105c: f44f 5180 mov.w r1, #4096 @ 0x1000 + 8001060: f04f 4090 mov.w r0, #1207959552 @ 0x48000000 + 8001064: f002 fd5e bl 8003b24 /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(LD2_GPIO_Port, LD2_Pin, GPIO_PIN_RESET); - 8000a58: 2200 movs r2, #0 - 8000a5a: f44f 7180 mov.w r1, #256 @ 0x100 - 8000a5e: 4814 ldr r0, [pc, #80] @ (8000ab0 ) - 8000a60: f002 fb64 bl 800312c + 8001068: 2200 movs r2, #0 + 800106a: f44f 7180 mov.w r1, #256 @ 0x100 + 800106e: 4814 ldr r0, [pc, #80] @ (80010c0 ) + 8001070: f002 fd58 bl 8003b24 /*Configure GPIO pin : POWER_SWITCH_Pin */ GPIO_InitStruct.Pin = POWER_SWITCH_Pin; - 8000a64: f44f 5380 mov.w r3, #4096 @ 0x1000 - 8000a68: 60fb str r3, [r7, #12] + 8001074: f44f 5380 mov.w r3, #4096 @ 0x1000 + 8001078: 60fb str r3, [r7, #12] GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; - 8000a6a: 2301 movs r3, #1 - 8000a6c: 613b str r3, [r7, #16] + 800107a: 2301 movs r3, #1 + 800107c: 613b str r3, [r7, #16] GPIO_InitStruct.Pull = GPIO_NOPULL; - 8000a6e: 2300 movs r3, #0 - 8000a70: 617b str r3, [r7, #20] + 800107e: 2300 movs r3, #0 + 8001080: 617b str r3, [r7, #20] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; - 8000a72: 2300 movs r3, #0 - 8000a74: 61bb str r3, [r7, #24] + 8001082: 2300 movs r3, #0 + 8001084: 61bb str r3, [r7, #24] HAL_GPIO_Init(POWER_SWITCH_GPIO_Port, &GPIO_InitStruct); - 8000a76: f107 030c add.w r3, r7, #12 - 8000a7a: 4619 mov r1, r3 - 8000a7c: f04f 4090 mov.w r0, #1207959552 @ 0x48000000 - 8000a80: f002 f9d2 bl 8002e28 + 8001086: f107 030c add.w r3, r7, #12 + 800108a: 4619 mov r1, r3 + 800108c: f04f 4090 mov.w r0, #1207959552 @ 0x48000000 + 8001090: f002 fbc6 bl 8003820 /*Configure GPIO pin : LD2_Pin */ GPIO_InitStruct.Pin = LD2_Pin; - 8000a84: f44f 7380 mov.w r3, #256 @ 0x100 - 8000a88: 60fb str r3, [r7, #12] + 8001094: f44f 7380 mov.w r3, #256 @ 0x100 + 8001098: 60fb str r3, [r7, #12] GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; - 8000a8a: 2301 movs r3, #1 - 8000a8c: 613b str r3, [r7, #16] + 800109a: 2301 movs r3, #1 + 800109c: 613b str r3, [r7, #16] GPIO_InitStruct.Pull = GPIO_NOPULL; - 8000a8e: 2300 movs r3, #0 - 8000a90: 617b str r3, [r7, #20] + 800109e: 2300 movs r3, #0 + 80010a0: 617b str r3, [r7, #20] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; - 8000a92: 2300 movs r3, #0 - 8000a94: 61bb str r3, [r7, #24] + 80010a2: 2300 movs r3, #0 + 80010a4: 61bb str r3, [r7, #24] HAL_GPIO_Init(LD2_GPIO_Port, &GPIO_InitStruct); - 8000a96: f107 030c add.w r3, r7, #12 - 8000a9a: 4619 mov r1, r3 - 8000a9c: 4804 ldr r0, [pc, #16] @ (8000ab0 ) - 8000a9e: f002 f9c3 bl 8002e28 + 80010a6: f107 030c add.w r3, r7, #12 + 80010aa: 4619 mov r1, r3 + 80010ac: 4804 ldr r0, [pc, #16] @ (80010c0 ) + 80010ae: f002 fbb7 bl 8003820 /* USER CODE BEGIN MX_GPIO_Init_2 */ /* USER CODE END MX_GPIO_Init_2 */ } - 8000aa2: bf00 nop - 8000aa4: 3720 adds r7, #32 - 8000aa6: 46bd mov sp, r7 - 8000aa8: bd80 pop {r7, pc} - 8000aaa: bf00 nop - 8000aac: 40021000 .word 0x40021000 - 8000ab0: 48000400 .word 0x48000400 + 80010b2: bf00 nop + 80010b4: 3720 adds r7, #32 + 80010b6: 46bd mov sp, r7 + 80010b8: bd80 pop {r7, pc} + 80010ba: bf00 nop + 80010bc: 40021000 .word 0x40021000 + 80010c0: 48000400 .word 0x48000400 -08000ab4 : +080010c4 : /* USER CODE BEGIN 4 */ uint32_t get_actual_vdda(ADC_HandleTypeDef *hadc) { - 8000ab4: b580 push {r7, lr} - 8000ab6: b084 sub sp, #16 - 8000ab8: af00 add r7, sp, #0 - 8000aba: 6078 str r0, [r7, #4] + 80010c4: b580 push {r7, lr} + 80010c6: b084 sub sp, #16 + 80010c8: af00 add r7, sp, #0 + 80010ca: 6078 str r0, [r7, #4] uint32_t vrefint_raw = 0; - 8000abc: 2300 movs r3, #0 - 8000abe: 60fb str r3, [r7, #12] + 80010cc: 2300 movs r3, #0 + 80010ce: 60fb str r3, [r7, #12] /* Perform ADC reading of the VREFINT channel */ HAL_ADC_Start(hadc); - 8000ac0: 6878 ldr r0, [r7, #4] - 8000ac2: f000 ffaf bl 8001a24 + 80010d0: 6878 ldr r0, [r7, #4] + 80010d2: f001 f915 bl 8002300 + if (HAL_ADC_PollForConversion(hadc, 10) == HAL_OK) { - 8000ac6: 210a movs r1, #10 - 8000ac8: 6878 ldr r0, [r7, #4] - 8000aca: f001 f89b bl 8001c04 - 8000ace: 4603 mov r3, r0 - 8000ad0: 2b00 cmp r3, #0 - 8000ad2: d103 bne.n 8000adc + 80010d6: 210a movs r1, #10 + 80010d8: 6878 ldr r0, [r7, #4] + 80010da: f001 fa01 bl 80024e0 + 80010de: 4603 mov r3, r0 + 80010e0: 2b00 cmp r3, #0 + 80010e2: d103 bne.n 80010ec vrefint_raw = HAL_ADC_GetValue(hadc); - 8000ad4: 6878 ldr r0, [r7, #4] - 8000ad6: f001 f96d bl 8001db4 - 8000ada: 60f8 str r0, [r7, #12] + 80010e4: 6878 ldr r0, [r7, #4] + 80010e6: f001 fad3 bl 8002690 + 80010ea: 60f8 str r0, [r7, #12] } HAL_ADC_Stop(hadc); - 8000adc: 6878 ldr r0, [r7, #4] - 8000ade: f001 f85d bl 8001b9c + 80010ec: 6878 ldr r0, [r7, #4] + 80010ee: f001 f9c3 bl 8002478 if (vrefint_raw == 0) return 0; /* Avoid division by zero */ - 8000ae2: 68fb ldr r3, [r7, #12] - 8000ae4: 2b00 cmp r3, #0 - 8000ae6: d101 bne.n 8000aec - 8000ae8: 2300 movs r3, #0 - 8000aea: e00b b.n 8000b04 + 80010f2: 68fb ldr r3, [r7, #12] + 80010f4: 2b00 cmp r3, #0 + 80010f6: d101 bne.n 80010fc + 80010f8: 2300 movs r3, #0 + 80010fa: e00b b.n 8001114 /* Use the standard ST formula to calculate VDDA */ /* VDDA = VREFINT_CAL_VREF * VREFINT_CAL / VREFINT_DATA */ uint32_t vdda_mv = (VREFINT_CAL_VREF * (uint32_t)(*VREFINT_CAL_ADDR)) / vrefint_raw; - 8000aec: 4b07 ldr r3, [pc, #28] @ (8000b0c ) - 8000aee: 881b ldrh r3, [r3, #0] - 8000af0: 461a mov r2, r3 - 8000af2: f640 33b8 movw r3, #3000 @ 0xbb8 - 8000af6: fb03 f202 mul.w r2, r3, r2 - 8000afa: 68fb ldr r3, [r7, #12] - 8000afc: fbb2 f3f3 udiv r3, r2, r3 - 8000b00: 60bb str r3, [r7, #8] + 80010fc: 4b07 ldr r3, [pc, #28] @ (800111c ) + 80010fe: 881b ldrh r3, [r3, #0] + 8001100: 461a mov r2, r3 + 8001102: f640 33b8 movw r3, #3000 @ 0xbb8 + 8001106: fb03 f202 mul.w r2, r3, r2 + 800110a: 68fb ldr r3, [r7, #12] + 800110c: fbb2 f3f3 udiv r3, r2, r3 + 8001110: 60bb str r3, [r7, #8] return vdda_mv; - 8000b02: 68bb ldr r3, [r7, #8] + 8001112: 68bb ldr r3, [r7, #8] } - 8000b04: 4618 mov r0, r3 - 8000b06: 3710 adds r7, #16 - 8000b08: 46bd mov sp, r7 - 8000b0a: bd80 pop {r7, pc} - 8000b0c: 1fff75aa .word 0x1fff75aa + 8001114: 4618 mov r0, r3 + 8001116: 3710 adds r7, #16 + 8001118: 46bd mov sp, r7 + 800111a: bd80 pop {r7, pc} + 800111c: 1fff75aa .word 0x1fff75aa -08000b10 : - return (raw_adc_value * vdda_mv) / 4095; +08001120 : + +/* Calculate original input voltage from a 22k/2.2k divider in mV */ +uint32_t get_divider_input_mv(uint32_t raw_adc_value, uint32_t vdda_mv) +{ + 8001120: e92d 43b0 stmdb sp!, {r4, r5, r7, r8, r9, lr} + 8001124: b086 sub sp, #24 + 8001126: af00 add r7, sp, #0 + 8001128: 6078 str r0, [r7, #4] + 800112a: 6039 str r1, [r7, #0] + /* Calculate the voltage at the ADC pin (Vout of the divider) */ + /* Using 64-bit for intermediate to avoid overflow: (Raw * VDDA) / 4095 */ + uint64_t vout_mv = ((uint64_t)raw_adc_value * vdda_mv) / 4095; + 800112c: 6879 ldr r1, [r7, #4] + 800112e: 2000 movs r0, #0 + 8001130: 4688 mov r8, r1 + 8001132: 4681 mov r9, r0 + 8001134: 6839 ldr r1, [r7, #0] + 8001136: 2000 movs r0, #0 + 8001138: 460a mov r2, r1 + 800113a: 4603 mov r3, r0 + 800113c: fb02 f009 mul.w r0, r2, r9 + 8001140: fb08 f103 mul.w r1, r8, r3 + 8001144: 4401 add r1, r0 + 8001146: fba8 4502 umull r4, r5, r8, r2 + 800114a: 194b adds r3, r1, r5 + 800114c: 461d mov r5, r3 + 800114e: f640 72ff movw r2, #4095 @ 0xfff + 8001152: f04f 0300 mov.w r3, #0 + 8001156: 4620 mov r0, r4 + 8001158: 4629 mov r1, r5 + 800115a: f7ff fb63 bl 8000824 <__aeabi_uldivmod> + 800115e: 4602 mov r2, r0 + 8001160: 460b mov r3, r1 + 8001162: e9c7 2304 strd r2, r3, [r7, #16] + + /* Scale by the divider ratio: (22k + 2.2k) / 2.2k = 11 */ + uint32_t vin_mv = (uint32_t)(vout_mv * 10.9); + 8001166: e9d7 0104 ldrd r0, r1, [r7, #16] + 800116a: f7ff fb05 bl 8000778 <__aeabi_ul2d> + 800116e: a30a add r3, pc, #40 @ (adr r3, 8001198 ) + 8001170: e9d3 2300 ldrd r2, r3, [r3] + 8001174: f7ff f850 bl 8000218 <__aeabi_dmul> + 8001178: 4602 mov r2, r0 + 800117a: 460b mov r3, r1 + 800117c: 4610 mov r0, r2 + 800117e: 4619 mov r1, r3 + 8001180: f7ff fb30 bl 80007e4 <__aeabi_d2uiz> + 8001184: 4603 mov r3, r0 + 8001186: 60fb str r3, [r7, #12] + + return vin_mv; + 8001188: 68fb ldr r3, [r7, #12] } + 800118a: 4618 mov r0, r3 + 800118c: 3718 adds r7, #24 + 800118e: 46bd mov sp, r7 + 8001190: e8bd 83b0 ldmia.w sp!, {r4, r5, r7, r8, r9, pc} + 8001194: f3af 8000 nop.w + 8001198: cccccccd .word 0xcccccccd + 800119c: 4025cccc .word 0x4025cccc + +080011a0 : + +/* Voltage Conversion Task */ +void voltage_conversion_task(void) +{ + 80011a0: b580 push {r7, lr} + 80011a2: af00 add r7, sp, #0 + /* Get Vin voltage */ + vin_val = get_divider_input_mv(vin_adc_val, vdd_ref); + 80011a4: 4b46 ldr r3, [pc, #280] @ (80012c0 ) + 80011a6: 881b ldrh r3, [r3, #0] + 80011a8: 461a mov r2, r3 + 80011aa: 4b46 ldr r3, [pc, #280] @ (80012c4 ) + 80011ac: 681b ldr r3, [r3, #0] + 80011ae: 4619 mov r1, r3 + 80011b0: 4610 mov r0, r2 + 80011b2: f7ff ffb5 bl 8001120 + 80011b6: 4603 mov r3, r0 + 80011b8: 4a43 ldr r2, [pc, #268] @ (80012c8 ) + 80011ba: 6013 str r3, [r2, #0] + + /* Get Vout voltage */ + vout_val = get_divider_input_mv(vout_adc_val, vdd_ref); + 80011bc: 4b43 ldr r3, [pc, #268] @ (80012cc ) + 80011be: 881b ldrh r3, [r3, #0] + 80011c0: 461a mov r2, r3 + 80011c2: 4b40 ldr r3, [pc, #256] @ (80012c4 ) + 80011c4: 681b ldr r3, [r3, #0] + 80011c6: 4619 mov r1, r3 + 80011c8: 4610 mov r0, r2 + 80011ca: f7ff ffa9 bl 8001120 + 80011ce: 4603 mov r3, r0 + 80011d0: 4a3f ldr r2, [pc, #252] @ (80012d0 ) + 80011d2: 6013 str r3, [r2, #0] + + tx_len = 0x08; + 80011d4: 4b3f ldr r3, [pc, #252] @ (80012d4 ) + 80011d6: 2208 movs r2, #8 + 80011d8: 701a strb r2, [r3, #0] + + tx_buffer[0] = IN_SYNC_BYTE_1; + 80011da: 4b3f ldr r3, [pc, #252] @ (80012d8 ) + 80011dc: 2241 movs r2, #65 @ 0x41 + 80011de: 701a strb r2, [r3, #0] + tx_buffer[1] = IN_SYNC_BYTE_2; + 80011e0: 4b3d ldr r3, [pc, #244] @ (80012d8 ) + 80011e2: 2252 movs r2, #82 @ 0x52 + 80011e4: 705a strb r2, [r3, #1] + tx_buffer[2] = tx_len; + 80011e6: 4b3b ldr r3, [pc, #236] @ (80012d4 ) + 80011e8: 781a ldrb r2, [r3, #0] + 80011ea: 4b3b ldr r3, [pc, #236] @ (80012d8 ) + 80011ec: 709a strb r2, [r3, #2] + tx_buffer[3] = (uint8_t)((vin_val >> 24) & 0xFF); + 80011ee: 4b36 ldr r3, [pc, #216] @ (80012c8 ) + 80011f0: 681b ldr r3, [r3, #0] + 80011f2: 0e1b lsrs r3, r3, #24 + 80011f4: b2da uxtb r2, r3 + 80011f6: 4b38 ldr r3, [pc, #224] @ (80012d8 ) + 80011f8: 70da strb r2, [r3, #3] + tx_buffer[4] = (uint8_t)((vin_val >> 16) & 0xFF); + 80011fa: 4b33 ldr r3, [pc, #204] @ (80012c8 ) + 80011fc: 681b ldr r3, [r3, #0] + 80011fe: 0c1b lsrs r3, r3, #16 + 8001200: b2da uxtb r2, r3 + 8001202: 4b35 ldr r3, [pc, #212] @ (80012d8 ) + 8001204: 711a strb r2, [r3, #4] + tx_buffer[5] = (uint8_t)((vin_val >> 8) & 0xFF); + 8001206: 4b30 ldr r3, [pc, #192] @ (80012c8 ) + 8001208: 681b ldr r3, [r3, #0] + 800120a: 0a1b lsrs r3, r3, #8 + 800120c: b2da uxtb r2, r3 + 800120e: 4b32 ldr r3, [pc, #200] @ (80012d8 ) + 8001210: 715a strb r2, [r3, #5] + tx_buffer[6] = (uint8_t)(vin_val & 0xFF); + 8001212: 4b2d ldr r3, [pc, #180] @ (80012c8 ) + 8001214: 681b ldr r3, [r3, #0] + 8001216: b2da uxtb r2, r3 + 8001218: 4b2f ldr r3, [pc, #188] @ (80012d8 ) + 800121a: 719a strb r2, [r3, #6] + tx_buffer[7] = (uint8_t)((vout_val >> 24) & 0xFF); + 800121c: 4b2c ldr r3, [pc, #176] @ (80012d0 ) + 800121e: 681b ldr r3, [r3, #0] + 8001220: 0e1b lsrs r3, r3, #24 + 8001222: b2da uxtb r2, r3 + 8001224: 4b2c ldr r3, [pc, #176] @ (80012d8 ) + 8001226: 71da strb r2, [r3, #7] + tx_buffer[8] = (uint8_t)((vout_val >> 16) & 0xFF); + 8001228: 4b29 ldr r3, [pc, #164] @ (80012d0 ) + 800122a: 681b ldr r3, [r3, #0] + 800122c: 0c1b lsrs r3, r3, #16 + 800122e: b2da uxtb r2, r3 + 8001230: 4b29 ldr r3, [pc, #164] @ (80012d8 ) + 8001232: 721a strb r2, [r3, #8] + tx_buffer[9] = (uint8_t)((vout_val >> 8) & 0xFF); + 8001234: 4b26 ldr r3, [pc, #152] @ (80012d0 ) + 8001236: 681b ldr r3, [r3, #0] + 8001238: 0a1b lsrs r3, r3, #8 + 800123a: b2da uxtb r2, r3 + 800123c: 4b26 ldr r3, [pc, #152] @ (80012d8 ) + 800123e: 725a strb r2, [r3, #9] + tx_buffer[10] = (uint8_t)(vout_val & 0xFF); + 8001240: 4b23 ldr r3, [pc, #140] @ (80012d0 ) + 8001242: 681b ldr r3, [r3, #0] + 8001244: b2da uxtb r2, r3 + 8001246: 4b24 ldr r3, [pc, #144] @ (80012d8 ) + 8001248: 729a strb r2, [r3, #10] + + /* Need to apply checksum to all data bits */ + for (tx_len_counter = 0x00; tx_len_counter < tx_len; tx_len_counter++) + 800124a: 4b24 ldr r3, [pc, #144] @ (80012dc ) + 800124c: 2200 movs r2, #0 + 800124e: 701a strb r2, [r3, #0] + 8001250: e011 b.n 8001276 + { + tx_checksum += tx_buffer[tx_len_counter + 3]; + 8001252: 4b22 ldr r3, [pc, #136] @ (80012dc ) + 8001254: 781b ldrb r3, [r3, #0] + 8001256: 3303 adds r3, #3 + 8001258: 4a1f ldr r2, [pc, #124] @ (80012d8 ) + 800125a: 5cd3 ldrb r3, [r2, r3] + 800125c: 461a mov r2, r3 + 800125e: 4b20 ldr r3, [pc, #128] @ (80012e0 ) + 8001260: 881b ldrh r3, [r3, #0] + 8001262: 4413 add r3, r2 + 8001264: b29a uxth r2, r3 + 8001266: 4b1e ldr r3, [pc, #120] @ (80012e0 ) + 8001268: 801a strh r2, [r3, #0] + for (tx_len_counter = 0x00; tx_len_counter < tx_len; tx_len_counter++) + 800126a: 4b1c ldr r3, [pc, #112] @ (80012dc ) + 800126c: 781b ldrb r3, [r3, #0] + 800126e: 3301 adds r3, #1 + 8001270: b2da uxtb r2, r3 + 8001272: 4b1a ldr r3, [pc, #104] @ (80012dc ) + 8001274: 701a strb r2, [r3, #0] + 8001276: 4b19 ldr r3, [pc, #100] @ (80012dc ) + 8001278: 781a ldrb r2, [r3, #0] + 800127a: 4b16 ldr r3, [pc, #88] @ (80012d4 ) + 800127c: 781b ldrb r3, [r3, #0] + 800127e: 429a cmp r2, r3 + 8001280: d3e7 bcc.n 8001252 + } + + tx_checksum = ~tx_checksum; + 8001282: 4b17 ldr r3, [pc, #92] @ (80012e0 ) + 8001284: 881b ldrh r3, [r3, #0] + 8001286: 43db mvns r3, r3 + 8001288: b29a uxth r2, r3 + 800128a: 4b15 ldr r3, [pc, #84] @ (80012e0 ) + 800128c: 801a strh r2, [r3, #0] + + tx_buffer[11] = (uint8_t)((tx_checksum >> 8) & 0xFF); + 800128e: 4b14 ldr r3, [pc, #80] @ (80012e0 ) + 8001290: 881b ldrh r3, [r3, #0] + 8001292: 0a1b lsrs r3, r3, #8 + 8001294: b29b uxth r3, r3 + 8001296: b2da uxtb r2, r3 + 8001298: 4b0f ldr r3, [pc, #60] @ (80012d8 ) + 800129a: 72da strb r2, [r3, #11] + tx_buffer[12] = (uint8_t)(tx_checksum & 0xFF); + 800129c: 4b10 ldr r3, [pc, #64] @ (80012e0 ) + 800129e: 881b ldrh r3, [r3, #0] + 80012a0: b2da uxtb r2, r3 + 80012a2: 4b0d ldr r3, [pc, #52] @ (80012d8 ) + 80012a4: 731a strb r2, [r3, #12] + + tx_len = 0x0D; + 80012a6: 4b0b ldr r3, [pc, #44] @ (80012d4 ) + 80012a8: 220d movs r2, #13 + 80012aa: 701a strb r2, [r3, #0] + + HAL_UART_Transmit(&huart2, tx_buffer, tx_len, 100); + 80012ac: 4b09 ldr r3, [pc, #36] @ (80012d4 ) + 80012ae: 781b ldrb r3, [r3, #0] + 80012b0: 461a mov r2, r3 + 80012b2: 2364 movs r3, #100 @ 0x64 + 80012b4: 4908 ldr r1, [pc, #32] @ (80012d8 ) + 80012b6: 480b ldr r0, [pc, #44] @ (80012e4 ) + 80012b8: f004 f940 bl 800553c +} + 80012bc: bf00 nop + 80012be: bd80 pop {r7, pc} + 80012c0: 2000024a .word 0x2000024a + 80012c4: 20000250 .word 0x20000250 + 80012c8: 20000254 .word 0x20000254 + 80012cc: 2000024c .word 0x2000024c + 80012d0: 20000258 .word 0x20000258 + 80012d4: 20000238 .word 0x20000238 + 80012d8: 20000218 .word 0x20000218 + 80012dc: 20000239 .word 0x20000239 + 80012e0: 20000240 .word 0x20000240 + 80012e4: 20000160 .word 0x20000160 + +080012e8 : + +void serial_number_task (void) +{ + 80012e8: b580 push {r7, lr} + 80012ea: af00 add r7, sp, #0 + tx_len = 0x13; + 80012ec: 4b32 ldr r3, [pc, #200] @ (80013b8 ) + 80012ee: 2213 movs r2, #19 + 80012f0: 701a strb r2, [r3, #0] + + tx_buffer[0] = IN_SYNC_BYTE_1; + 80012f2: 4b32 ldr r3, [pc, #200] @ (80013bc ) + 80012f4: 2241 movs r2, #65 @ 0x41 + 80012f6: 701a strb r2, [r3, #0] + tx_buffer[1] = IN_SYNC_BYTE_2; + 80012f8: 4b30 ldr r3, [pc, #192] @ (80013bc ) + 80012fa: 2252 movs r2, #82 @ 0x52 + 80012fc: 705a strb r2, [r3, #1] + tx_buffer[2] = tx_len; + 80012fe: 4b2e ldr r3, [pc, #184] @ (80013b8 ) + 8001300: 781a ldrb r2, [r3, #0] + 8001302: 4b2e ldr r3, [pc, #184] @ (80013bc ) + 8001304: 709a strb r2, [r3, #2] + + for (tx_len_counter = 0x00; tx_len_counter < tx_len; tx_len_counter++) + 8001306: 4b2e ldr r3, [pc, #184] @ (80013c0 ) + 8001308: 2200 movs r2, #0 + 800130a: 701a strb r2, [r3, #0] + 800130c: e00f b.n 800132e + { + tx_buffer[tx_len_counter + 3] = serial_number[tx_len_counter]; + 800130e: 4b2c ldr r3, [pc, #176] @ (80013c0 ) + 8001310: 781b ldrb r3, [r3, #0] + 8001312: 4619 mov r1, r3 + 8001314: 4b2a ldr r3, [pc, #168] @ (80013c0 ) + 8001316: 781b ldrb r3, [r3, #0] + 8001318: 3303 adds r3, #3 + 800131a: 4a2a ldr r2, [pc, #168] @ (80013c4 ) + 800131c: 5c51 ldrb r1, [r2, r1] + 800131e: 4a27 ldr r2, [pc, #156] @ (80013bc ) + 8001320: 54d1 strb r1, [r2, r3] + for (tx_len_counter = 0x00; tx_len_counter < tx_len; tx_len_counter++) + 8001322: 4b27 ldr r3, [pc, #156] @ (80013c0 ) + 8001324: 781b ldrb r3, [r3, #0] + 8001326: 3301 adds r3, #1 + 8001328: b2da uxtb r2, r3 + 800132a: 4b25 ldr r3, [pc, #148] @ (80013c0 ) + 800132c: 701a strb r2, [r3, #0] + 800132e: 4b24 ldr r3, [pc, #144] @ (80013c0 ) + 8001330: 781a ldrb r2, [r3, #0] + 8001332: 4b21 ldr r3, [pc, #132] @ (80013b8 ) + 8001334: 781b ldrb r3, [r3, #0] + 8001336: 429a cmp r2, r3 + 8001338: d3e9 bcc.n 800130e + } + + tx_checksum = 0x00; + 800133a: 4b23 ldr r3, [pc, #140] @ (80013c8 ) + 800133c: 2200 movs r2, #0 + 800133e: 801a strh r2, [r3, #0] + + /* Need to apply checksum to all data bits */ + for (tx_len_counter = 0x00; tx_len_counter < tx_len; tx_len_counter++) + 8001340: 4b1f ldr r3, [pc, #124] @ (80013c0 ) + 8001342: 2200 movs r2, #0 + 8001344: 701a strb r2, [r3, #0] + 8001346: e011 b.n 800136c + { + tx_checksum += tx_buffer[tx_len_counter + 3]; + 8001348: 4b1d ldr r3, [pc, #116] @ (80013c0 ) + 800134a: 781b ldrb r3, [r3, #0] + 800134c: 3303 adds r3, #3 + 800134e: 4a1b ldr r2, [pc, #108] @ (80013bc ) + 8001350: 5cd3 ldrb r3, [r2, r3] + 8001352: 461a mov r2, r3 + 8001354: 4b1c ldr r3, [pc, #112] @ (80013c8 ) + 8001356: 881b ldrh r3, [r3, #0] + 8001358: 4413 add r3, r2 + 800135a: b29a uxth r2, r3 + 800135c: 4b1a ldr r3, [pc, #104] @ (80013c8 ) + 800135e: 801a strh r2, [r3, #0] + for (tx_len_counter = 0x00; tx_len_counter < tx_len; tx_len_counter++) + 8001360: 4b17 ldr r3, [pc, #92] @ (80013c0 ) + 8001362: 781b ldrb r3, [r3, #0] + 8001364: 3301 adds r3, #1 + 8001366: b2da uxtb r2, r3 + 8001368: 4b15 ldr r3, [pc, #84] @ (80013c0 ) + 800136a: 701a strb r2, [r3, #0] + 800136c: 4b14 ldr r3, [pc, #80] @ (80013c0 ) + 800136e: 781a ldrb r2, [r3, #0] + 8001370: 4b11 ldr r3, [pc, #68] @ (80013b8 ) + 8001372: 781b ldrb r3, [r3, #0] + 8001374: 429a cmp r2, r3 + 8001376: d3e7 bcc.n 8001348 + } + + tx_checksum = ~tx_checksum; + 8001378: 4b13 ldr r3, [pc, #76] @ (80013c8 ) + 800137a: 881b ldrh r3, [r3, #0] + 800137c: 43db mvns r3, r3 + 800137e: b29a uxth r2, r3 + 8001380: 4b11 ldr r3, [pc, #68] @ (80013c8 ) + 8001382: 801a strh r2, [r3, #0] + + tx_buffer[22] = (uint8_t)((tx_checksum >> 8) & 0xFF); + 8001384: 4b10 ldr r3, [pc, #64] @ (80013c8 ) + 8001386: 881b ldrh r3, [r3, #0] + 8001388: 0a1b lsrs r3, r3, #8 + 800138a: b29b uxth r3, r3 + 800138c: b2da uxtb r2, r3 + 800138e: 4b0b ldr r3, [pc, #44] @ (80013bc ) + 8001390: 759a strb r2, [r3, #22] + tx_buffer[23] = (uint8_t)(tx_checksum & 0xFF); + 8001392: 4b0d ldr r3, [pc, #52] @ (80013c8 ) + 8001394: 881b ldrh r3, [r3, #0] + 8001396: b2da uxtb r2, r3 + 8001398: 4b08 ldr r3, [pc, #32] @ (80013bc ) + 800139a: 75da strb r2, [r3, #23] + + tx_len = 0x18; + 800139c: 4b06 ldr r3, [pc, #24] @ (80013b8 ) + 800139e: 2218 movs r2, #24 + 80013a0: 701a strb r2, [r3, #0] + + HAL_UART_Transmit(&huart2, tx_buffer, tx_len, 100); + 80013a2: 4b05 ldr r3, [pc, #20] @ (80013b8 ) + 80013a4: 781b ldrb r3, [r3, #0] + 80013a6: 461a mov r2, r3 + 80013a8: 2364 movs r3, #100 @ 0x64 + 80013aa: 4904 ldr r1, [pc, #16] @ (80013bc ) + 80013ac: 4807 ldr r0, [pc, #28] @ (80013cc ) + 80013ae: f004 f8c5 bl 800553c +} + 80013b2: bf00 nop + 80013b4: bd80 pop {r7, pc} + 80013b6: bf00 nop + 80013b8: 20000238 .word 0x20000238 + 80013bc: 20000218 .word 0x20000218 + 80013c0: 20000239 .word 0x20000239 + 80013c4: 20000000 .word 0x20000000 + 80013c8: 20000240 .word 0x20000240 + 80013cc: 20000160 .word 0x20000160 + +080013d0 : /* ADC task */ void adc_task (void) { - 8000b10: b580 push {r7, lr} - 8000b12: af00 add r7, sp, #0 + 80013d0: b580 push {r7, lr} + 80013d2: af00 add r7, sp, #0 HAL_ADC_Start(&hadc2); - 8000b14: 4810 ldr r0, [pc, #64] @ (8000b58 ) - 8000b16: f000 ff85 bl 8001a24 - HAL_ADC_PollForConversion(&hadc2, 100); - 8000b1a: 2164 movs r1, #100 @ 0x64 - 8000b1c: 480e ldr r0, [pc, #56] @ (8000b58 ) - 8000b1e: f001 f871 bl 8001c04 - vin_adc_val = HAL_ADC_GetValue(&hadc2); - 8000b22: 480d ldr r0, [pc, #52] @ (8000b58 ) - 8000b24: f001 f946 bl 8001db4 - 8000b28: 4603 mov r3, r0 - 8000b2a: b29a uxth r2, r3 - 8000b2c: 4b0b ldr r3, [pc, #44] @ (8000b5c ) - 8000b2e: 801a strh r2, [r3, #0] + 80013d4: 4811 ldr r0, [pc, #68] @ (800141c ) + 80013d6: f000 ff93 bl 8002300 + HAL_ADC_PollForConversion(&hadc2, 500); + 80013da: f44f 71fa mov.w r1, #500 @ 0x1f4 + 80013de: 480f ldr r0, [pc, #60] @ (800141c ) + 80013e0: f001 f87e bl 80024e0 + vout_adc_val = HAL_ADC_GetValue(&hadc2); + 80013e4: 480d ldr r0, [pc, #52] @ (800141c ) + 80013e6: f001 f953 bl 8002690 + 80013ea: 4603 mov r3, r0 + 80013ec: b29a uxth r2, r3 + 80013ee: 4b0c ldr r3, [pc, #48] @ (8001420 ) + 80013f0: 801a strh r2, [r3, #0] HAL_ADC_Start(&hadc2); - 8000b30: 4809 ldr r0, [pc, #36] @ (8000b58 ) - 8000b32: f000 ff77 bl 8001a24 - HAL_ADC_PollForConversion(&hadc2, 100); - 8000b36: 2164 movs r1, #100 @ 0x64 - 8000b38: 4807 ldr r0, [pc, #28] @ (8000b58 ) - 8000b3a: f001 f863 bl 8001c04 - vout_adc_val = HAL_ADC_GetValue(&hadc2); - 8000b3e: 4806 ldr r0, [pc, #24] @ (8000b58 ) - 8000b40: f001 f938 bl 8001db4 - 8000b44: 4603 mov r3, r0 - 8000b46: b29a uxth r2, r3 - 8000b48: 4b05 ldr r3, [pc, #20] @ (8000b60 ) - 8000b4a: 801a strh r2, [r3, #0] + 80013f2: 480a ldr r0, [pc, #40] @ (800141c ) + 80013f4: f000 ff84 bl 8002300 + HAL_ADC_PollForConversion(&hadc2, 500); + 80013f8: f44f 71fa mov.w r1, #500 @ 0x1f4 + 80013fc: 4807 ldr r0, [pc, #28] @ (800141c ) + 80013fe: f001 f86f bl 80024e0 + vin_adc_val = HAL_ADC_GetValue(&hadc2); + 8001402: 4806 ldr r0, [pc, #24] @ (800141c ) + 8001404: f001 f944 bl 8002690 + 8001408: 4603 mov r3, r0 + 800140a: b29a uxth r2, r3 + 800140c: 4b05 ldr r3, [pc, #20] @ (8001424 ) + 800140e: 801a strh r2, [r3, #0] HAL_ADC_Stop(&hadc2); - 8000b4c: 4802 ldr r0, [pc, #8] @ (8000b58 ) - 8000b4e: f001 f825 bl 8001b9c + 8001410: 4802 ldr r0, [pc, #8] @ (800141c ) + 8001412: f001 f831 bl 8002478 } - 8000b52: bf00 nop - 8000b54: bd80 pop {r7, pc} - 8000b56: bf00 nop - 8000b58: 20000094 .word 0x20000094 - 8000b5c: 20000232 .word 0x20000232 - 8000b60: 20000234 .word 0x20000234 + 8001416: bf00 nop + 8001418: bd80 pop {r7, pc} + 800141a: bf00 nop + 800141c: 200000a8 .word 0x200000a8 + 8001420: 2000024c .word 0x2000024c + 8001424: 2000024a .word 0x2000024a -08000b64 : +08001428 : /* Power switch function */ void power_switch (uint8_t state) { - 8000b64: b580 push {r7, lr} - 8000b66: b082 sub sp, #8 - 8000b68: af00 add r7, sp, #0 - 8000b6a: 4603 mov r3, r0 - 8000b6c: 71fb strb r3, [r7, #7] + 8001428: b580 push {r7, lr} + 800142a: b082 sub sp, #8 + 800142c: af00 add r7, sp, #0 + 800142e: 4603 mov r3, r0 + 8001430: 71fb strb r3, [r7, #7] if (state == 1) - 8000b6e: 79fb ldrb r3, [r7, #7] - 8000b70: 2b01 cmp r3, #1 - 8000b72: d10d bne.n 8000b90 + 8001432: 79fb ldrb r3, [r7, #7] + 8001434: 2b01 cmp r3, #1 + 8001436: d10d bne.n 8001454 { HAL_GPIO_WritePin(POWER_SWITCH_GPIO_Port, POWER_SWITCH_Pin, GPIO_PIN_SET); - 8000b74: 2201 movs r2, #1 - 8000b76: f44f 5180 mov.w r1, #4096 @ 0x1000 - 8000b7a: f04f 4090 mov.w r0, #1207959552 @ 0x48000000 - 8000b7e: f002 fad5 bl 800312c + 8001438: 2201 movs r2, #1 + 800143a: f44f 5180 mov.w r1, #4096 @ 0x1000 + 800143e: f04f 4090 mov.w r0, #1207959552 @ 0x48000000 + 8001442: f002 fb6f bl 8003b24 HAL_GPIO_WritePin(LD2_GPIO_Port, LD2_Pin, GPIO_PIN_SET); - 8000b82: 2201 movs r2, #1 - 8000b84: f44f 7180 mov.w r1, #256 @ 0x100 - 8000b88: 480a ldr r0, [pc, #40] @ (8000bb4 ) - 8000b8a: f002 facf bl 800312c + 8001446: 2201 movs r2, #1 + 8001448: f44f 7180 mov.w r1, #256 @ 0x100 + 800144c: 480a ldr r0, [pc, #40] @ (8001478 ) + 800144e: f002 fb69 bl 8003b24 else { HAL_GPIO_WritePin(POWER_SWITCH_GPIO_Port, POWER_SWITCH_Pin, GPIO_PIN_RESET); HAL_GPIO_WritePin(LD2_GPIO_Port, LD2_Pin, GPIO_PIN_RESET); } } - 8000b8e: e00c b.n 8000baa + 8001452: e00c b.n 800146e HAL_GPIO_WritePin(POWER_SWITCH_GPIO_Port, POWER_SWITCH_Pin, GPIO_PIN_RESET); - 8000b90: 2200 movs r2, #0 - 8000b92: f44f 5180 mov.w r1, #4096 @ 0x1000 - 8000b96: f04f 4090 mov.w r0, #1207959552 @ 0x48000000 - 8000b9a: f002 fac7 bl 800312c + 8001454: 2200 movs r2, #0 + 8001456: f44f 5180 mov.w r1, #4096 @ 0x1000 + 800145a: f04f 4090 mov.w r0, #1207959552 @ 0x48000000 + 800145e: f002 fb61 bl 8003b24 HAL_GPIO_WritePin(LD2_GPIO_Port, LD2_Pin, GPIO_PIN_RESET); - 8000b9e: 2200 movs r2, #0 - 8000ba0: f44f 7180 mov.w r1, #256 @ 0x100 - 8000ba4: 4803 ldr r0, [pc, #12] @ (8000bb4 ) - 8000ba6: f002 fac1 bl 800312c + 8001462: 2200 movs r2, #0 + 8001464: f44f 7180 mov.w r1, #256 @ 0x100 + 8001468: 4803 ldr r0, [pc, #12] @ (8001478 ) + 800146a: f002 fb5b bl 8003b24 } - 8000baa: bf00 nop - 8000bac: 3708 adds r7, #8 - 8000bae: 46bd mov sp, r7 - 8000bb0: bd80 pop {r7, pc} - 8000bb2: bf00 nop - 8000bb4: 48000400 .word 0x48000400 + 800146e: bf00 nop + 8001470: 3708 adds r7, #8 + 8001472: 46bd mov sp, r7 + 8001474: bd80 pop {r7, pc} + 8001476: bf00 nop + 8001478: 48000400 .word 0x48000400 -08000bb8 : +0800147c : /* UART Tx callback */ void HAL_UART_TxCpltCallback(UART_HandleTypeDef *huart) { - 8000bb8: b480 push {r7} - 8000bba: b083 sub sp, #12 - 8000bbc: af00 add r7, sp, #0 - 8000bbe: 6078 str r0, [r7, #4] + 800147c: b480 push {r7} + 800147e: b083 sub sp, #12 + 8001480: af00 add r7, sp, #0 + 8001482: 6078 str r0, [r7, #4] /* Do nothing here for now */ } - 8000bc0: bf00 nop - 8000bc2: 370c adds r7, #12 - 8000bc4: 46bd mov sp, r7 - 8000bc6: f85d 7b04 ldr.w r7, [sp], #4 - 8000bca: 4770 bx lr + 8001484: bf00 nop + 8001486: 370c adds r7, #12 + 8001488: 46bd mov sp, r7 + 800148a: f85d 7b04 ldr.w r7, [sp], #4 + 800148e: 4770 bx lr -08000bcc : +08001490 : /* UART Rx callback */ void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart) { - 8000bcc: b580 push {r7, lr} - 8000bce: b082 sub sp, #8 - 8000bd0: af00 add r7, sp, #0 - 8000bd2: 6078 str r0, [r7, #4] + 8001490: b580 push {r7, lr} + 8001492: b082 sub sp, #8 + 8001494: af00 add r7, sp, #0 + 8001496: 6078 str r0, [r7, #4] /* If data received on UART */ if(huart->Instance==USART2) - 8000bd4: 687b ldr r3, [r7, #4] - 8000bd6: 681b ldr r3, [r3, #0] - 8000bd8: 4a70 ldr r2, [pc, #448] @ (8000d9c ) - 8000bda: 4293 cmp r3, r2 - 8000bdc: f040 80da bne.w 8000d94 + 8001498: 687b ldr r3, [r7, #4] + 800149a: 681b ldr r3, [r3, #0] + 800149c: 4a75 ldr r2, [pc, #468] @ (8001674 ) + 800149e: 4293 cmp r3, r2 + 80014a0: f040 80e3 bne.w 800166a { /* Act on received data */ switch (rx_counter) - 8000be0: 4b6f ldr r3, [pc, #444] @ (8000da0 ) - 8000be2: 781b ldrb r3, [r3, #0] - 8000be4: 2b05 cmp r3, #5 - 8000be6: f200 80cb bhi.w 8000d80 - 8000bea: a201 add r2, pc, #4 @ (adr r2, 8000bf0 ) - 8000bec: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 8000bf0: 08000c09 .word 0x08000c09 - 8000bf4: 08000c21 .word 0x08000c21 - 8000bf8: 08000c4f .word 0x08000c4f - 8000bfc: 08000c6b .word 0x08000c6b - 8000c00: 08000ca5 .word 0x08000ca5 - 8000c04: 08000cbb .word 0x08000cbb + 80014a4: 4b74 ldr r3, [pc, #464] @ (8001678 ) + 80014a6: 781b ldrb r3, [r3, #0] + 80014a8: 2b05 cmp r3, #5 + 80014aa: f200 80d4 bhi.w 8001656 + 80014ae: a201 add r2, pc, #4 @ (adr r2, 80014b4 ) + 80014b0: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 80014b4: 080014cd .word 0x080014cd + 80014b8: 080014e5 .word 0x080014e5 + 80014bc: 08001513 .word 0x08001513 + 80014c0: 0800152f .word 0x0800152f + 80014c4: 0800156b .word 0x0800156b + 80014c8: 08001581 .word 0x08001581 { case 0x00: /* Check to see if first sync byte has been received */ if (rx_hold_buffer[0] == IN_SYNC_BYTE_1) - 8000c08: 4b66 ldr r3, [pc, #408] @ (8000da4 ) - 8000c0a: 781b ldrb r3, [r3, #0] - 8000c0c: 2b41 cmp r3, #65 @ 0x41 - 8000c0e: f040 80b9 bne.w 8000d84 + 80014cc: 4b6b ldr r3, [pc, #428] @ (800167c ) + 80014ce: 781b ldrb r3, [r3, #0] + 80014d0: 2b41 cmp r3, #65 @ 0x41 + 80014d2: f040 80c2 bne.w 800165a { /* Got it, so now wait for the second sync byte */ rx_counter++; - 8000c12: 4b63 ldr r3, [pc, #396] @ (8000da0 ) - 8000c14: 781b ldrb r3, [r3, #0] - 8000c16: 3301 adds r3, #1 - 8000c18: b2da uxtb r2, r3 - 8000c1a: 4b61 ldr r3, [pc, #388] @ (8000da0 ) - 8000c1c: 701a strb r2, [r3, #0] + 80014d6: 4b68 ldr r3, [pc, #416] @ (8001678 ) + 80014d8: 781b ldrb r3, [r3, #0] + 80014da: 3301 adds r3, #1 + 80014dc: b2da uxtb r2, r3 + 80014de: 4b66 ldr r3, [pc, #408] @ (8001678 ) + 80014e0: 701a strb r2, [r3, #0] } break; - 8000c1e: e0b1 b.n 8000d84 + 80014e2: e0ba b.n 800165a case 0x01: /* Check to see if second sync byte has been received */ if (rx_hold_buffer[0] == IN_SYNC_BYTE_2) - 8000c20: 4b60 ldr r3, [pc, #384] @ (8000da4 ) - 8000c22: 781b ldrb r3, [r3, #0] - 8000c24: 2b52 cmp r3, #82 @ 0x52 - 8000c26: d106 bne.n 8000c36 + 80014e4: 4b65 ldr r3, [pc, #404] @ (800167c ) + 80014e6: 781b ldrb r3, [r3, #0] + 80014e8: 2b52 cmp r3, #82 @ 0x52 + 80014ea: d106 bne.n 80014fa { /* Got it, so now wait for the data byte */ rx_counter++; - 8000c28: 4b5d ldr r3, [pc, #372] @ (8000da0 ) - 8000c2a: 781b ldrb r3, [r3, #0] - 8000c2c: 3301 adds r3, #1 - 8000c2e: b2da uxtb r2, r3 - 8000c30: 4b5b ldr r3, [pc, #364] @ (8000da0 ) - 8000c32: 701a strb r2, [r3, #0] + 80014ec: 4b62 ldr r3, [pc, #392] @ (8001678 ) + 80014ee: 781b ldrb r3, [r3, #0] + 80014f0: 3301 adds r3, #1 + 80014f2: b2da uxtb r2, r3 + 80014f4: 4b60 ldr r3, [pc, #384] @ (8001678 ) + 80014f6: 701a strb r2, [r3, #0] { rx_counter = 0x00; } } break; - 8000c34: e0a9 b.n 8000d8a + 80014f8: e0b2 b.n 8001660 if (rx_hold_buffer[0] == IN_SYNC_BYTE_1) - 8000c36: 4b5b ldr r3, [pc, #364] @ (8000da4 ) - 8000c38: 781b ldrb r3, [r3, #0] - 8000c3a: 2b41 cmp r3, #65 @ 0x41 - 8000c3c: d103 bne.n 8000c46 + 80014fa: 4b60 ldr r3, [pc, #384] @ (800167c ) + 80014fc: 781b ldrb r3, [r3, #0] + 80014fe: 2b41 cmp r3, #65 @ 0x41 + 8001500: d103 bne.n 800150a rx_counter = 0x01; - 8000c3e: 4b58 ldr r3, [pc, #352] @ (8000da0 ) - 8000c40: 2201 movs r2, #1 - 8000c42: 701a strb r2, [r3, #0] + 8001502: 4b5d ldr r3, [pc, #372] @ (8001678 ) + 8001504: 2201 movs r2, #1 + 8001506: 701a strb r2, [r3, #0] break; - 8000c44: e0a1 b.n 8000d8a + 8001508: e0aa b.n 8001660 rx_counter = 0x00; - 8000c46: 4b56 ldr r3, [pc, #344] @ (8000da0 ) - 8000c48: 2200 movs r2, #0 - 8000c4a: 701a strb r2, [r3, #0] + 800150a: 4b5b ldr r3, [pc, #364] @ (8001678 ) + 800150c: 2200 movs r2, #0 + 800150e: 701a strb r2, [r3, #0] break; - 8000c4c: e09d b.n 8000d8a + 8001510: e0a6 b.n 8001660 case 0x02: /* Get rx length and reset counter */ rx_len = rx_hold_buffer[0]; - 8000c4e: 4b55 ldr r3, [pc, #340] @ (8000da4 ) - 8000c50: 781a ldrb r2, [r3, #0] - 8000c52: 4b55 ldr r3, [pc, #340] @ (8000da8 ) - 8000c54: 701a strb r2, [r3, #0] + 8001512: 4b5a ldr r3, [pc, #360] @ (800167c ) + 8001514: 781a ldrb r2, [r3, #0] + 8001516: 4b5a ldr r3, [pc, #360] @ (8001680 ) + 8001518: 701a strb r2, [r3, #0] rx_len_counter = 0x00; - 8000c56: 4b55 ldr r3, [pc, #340] @ (8000dac ) - 8000c58: 2200 movs r2, #0 - 8000c5a: 701a strb r2, [r3, #0] + 800151a: 4b5a ldr r3, [pc, #360] @ (8001684 ) + 800151c: 2200 movs r2, #0 + 800151e: 701a strb r2, [r3, #0] rx_counter++; - 8000c5c: 4b50 ldr r3, [pc, #320] @ (8000da0 ) - 8000c5e: 781b ldrb r3, [r3, #0] - 8000c60: 3301 adds r3, #1 - 8000c62: b2da uxtb r2, r3 - 8000c64: 4b4e ldr r3, [pc, #312] @ (8000da0 ) - 8000c66: 701a strb r2, [r3, #0] + 8001520: 4b55 ldr r3, [pc, #340] @ (8001678 ) + 8001522: 781b ldrb r3, [r3, #0] + 8001524: 3301 adds r3, #1 + 8001526: b2da uxtb r2, r3 + 8001528: 4b53 ldr r3, [pc, #332] @ (8001678 ) + 800152a: 701a strb r2, [r3, #0] break; - 8000c68: e08f b.n 8000d8a + 800152c: e098 b.n 8001660 case 0x03: /* Store entire length of Data bytes */ /* Increase count */ rx_len_counter++; - 8000c6a: 4b50 ldr r3, [pc, #320] @ (8000dac ) - 8000c6c: 781b ldrb r3, [r3, #0] - 8000c6e: 3301 adds r3, #1 - 8000c70: b2da uxtb r2, r3 - 8000c72: 4b4e ldr r3, [pc, #312] @ (8000dac ) - 8000c74: 701a strb r2, [r3, #0] + 800152e: 4b55 ldr r3, [pc, #340] @ (8001684 ) + 8001530: 781b ldrb r3, [r3, #0] + 8001532: 3301 adds r3, #1 + 8001534: b2da uxtb r2, r3 + 8001536: 4b53 ldr r3, [pc, #332] @ (8001684 ) + 8001538: 701a strb r2, [r3, #0] /* Store data */ rx_buffer[rx_len_counter - 1] = rx_hold_buffer[0]; - 8000c76: 4b4d ldr r3, [pc, #308] @ (8000dac ) - 8000c78: 781b ldrb r3, [r3, #0] - 8000c7a: 3b01 subs r3, #1 - 8000c7c: 4a49 ldr r2, [pc, #292] @ (8000da4 ) - 8000c7e: 7811 ldrb r1, [r2, #0] - 8000c80: 4a4b ldr r2, [pc, #300] @ (8000db0 ) - 8000c82: 54d1 strb r1, [r2, r3] + 800153a: 4b52 ldr r3, [pc, #328] @ (8001684 ) + 800153c: 781b ldrb r3, [r3, #0] + 800153e: 3b01 subs r3, #1 + 8001540: 4a4e ldr r2, [pc, #312] @ (800167c ) + 8001542: 7811 ldrb r1, [r2, #0] + 8001544: 4a50 ldr r2, [pc, #320] @ (8001688 ) + 8001546: 54d1 strb r1, [r2, r3] /* Check to see if we have all the expected data bytes */ /* If so, then move on the CRC */ if (rx_len_counter == rx_len) - 8000c84: 4b49 ldr r3, [pc, #292] @ (8000dac ) - 8000c86: 781a ldrb r2, [r3, #0] - 8000c88: 4b47 ldr r3, [pc, #284] @ (8000da8 ) - 8000c8a: 781b ldrb r3, [r3, #0] - 8000c8c: 429a cmp r2, r3 - 8000c8e: d17b bne.n 8000d88 + 8001548: 4b4e ldr r3, [pc, #312] @ (8001684 ) + 800154a: 781a ldrb r2, [r3, #0] + 800154c: 4b4c ldr r3, [pc, #304] @ (8001680 ) + 800154e: 781b ldrb r3, [r3, #0] + 8001550: 429a cmp r2, r3 + 8001552: f040 8084 bne.w 800165e { rx_counter++; - 8000c90: 4b43 ldr r3, [pc, #268] @ (8000da0 ) - 8000c92: 781b ldrb r3, [r3, #0] - 8000c94: 3301 adds r3, #1 - 8000c96: b2da uxtb r2, r3 - 8000c98: 4b41 ldr r3, [pc, #260] @ (8000da0 ) - 8000c9a: 701a strb r2, [r3, #0] + 8001556: 4b48 ldr r3, [pc, #288] @ (8001678 ) + 8001558: 781b ldrb r3, [r3, #0] + 800155a: 3301 adds r3, #1 + 800155c: b2da uxtb r2, r3 + 800155e: 4b46 ldr r3, [pc, #280] @ (8001678 ) + 8001560: 701a strb r2, [r3, #0] rx_len_counter = 0x00; - 8000c9c: 4b43 ldr r3, [pc, #268] @ (8000dac ) - 8000c9e: 2200 movs r2, #0 - 8000ca0: 701a strb r2, [r3, #0] + 8001562: 4b48 ldr r3, [pc, #288] @ (8001684 ) + 8001564: 2200 movs r2, #0 + 8001566: 701a strb r2, [r3, #0] } break; - 8000ca2: e071 b.n 8000d88 + 8001568: e079 b.n 800165e case 0x04: /* Store Rx checksum byte #1 */ rx_checksum_hold_1 = rx_hold_buffer[0]; - 8000ca4: 4b3f ldr r3, [pc, #252] @ (8000da4 ) - 8000ca6: 781a ldrb r2, [r3, #0] - 8000ca8: 4b42 ldr r3, [pc, #264] @ (8000db4 ) - 8000caa: 701a strb r2, [r3, #0] + 800156a: 4b44 ldr r3, [pc, #272] @ (800167c ) + 800156c: 781a ldrb r2, [r3, #0] + 800156e: 4b47 ldr r3, [pc, #284] @ (800168c ) + 8001570: 701a strb r2, [r3, #0] rx_counter++; - 8000cac: 4b3c ldr r3, [pc, #240] @ (8000da0 ) - 8000cae: 781b ldrb r3, [r3, #0] - 8000cb0: 3301 adds r3, #1 - 8000cb2: b2da uxtb r2, r3 - 8000cb4: 4b3a ldr r3, [pc, #232] @ (8000da0 ) - 8000cb6: 701a strb r2, [r3, #0] + 8001572: 4b41 ldr r3, [pc, #260] @ (8001678 ) + 8001574: 781b ldrb r3, [r3, #0] + 8001576: 3301 adds r3, #1 + 8001578: b2da uxtb r2, r3 + 800157a: 4b3f ldr r3, [pc, #252] @ (8001678 ) + 800157c: 701a strb r2, [r3, #0] break; - 8000cb8: e067 b.n 8000d8a + 800157e: e06f b.n 8001660 case 0x05: /* Store Rx checksum byte #2, reset and calculate checksum */ rx_checksum_hold_2 = rx_hold_buffer[0]; - 8000cba: 4b3a ldr r3, [pc, #232] @ (8000da4 ) - 8000cbc: 781a ldrb r2, [r3, #0] - 8000cbe: 4b3e ldr r3, [pc, #248] @ (8000db8 ) - 8000cc0: 701a strb r2, [r3, #0] + 8001580: 4b3e ldr r3, [pc, #248] @ (800167c ) + 8001582: 781a ldrb r2, [r3, #0] + 8001584: 4b42 ldr r3, [pc, #264] @ (8001690 ) + 8001586: 701a strb r2, [r3, #0] rx_checksum_hold = (rx_checksum_hold_1 << 8) | rx_checksum_hold_2; - 8000cc2: 4b3c ldr r3, [pc, #240] @ (8000db4 ) - 8000cc4: 781b ldrb r3, [r3, #0] - 8000cc6: b21b sxth r3, r3 - 8000cc8: 021b lsls r3, r3, #8 - 8000cca: b21a sxth r2, r3 - 8000ccc: 4b3a ldr r3, [pc, #232] @ (8000db8 ) - 8000cce: 781b ldrb r3, [r3, #0] - 8000cd0: b21b sxth r3, r3 - 8000cd2: 4313 orrs r3, r2 - 8000cd4: b21b sxth r3, r3 - 8000cd6: b29a uxth r2, r3 - 8000cd8: 4b38 ldr r3, [pc, #224] @ (8000dbc ) - 8000cda: 801a strh r2, [r3, #0] + 8001588: 4b40 ldr r3, [pc, #256] @ (800168c ) + 800158a: 781b ldrb r3, [r3, #0] + 800158c: b21b sxth r3, r3 + 800158e: 021b lsls r3, r3, #8 + 8001590: b21a sxth r2, r3 + 8001592: 4b3f ldr r3, [pc, #252] @ (8001690 ) + 8001594: 781b ldrb r3, [r3, #0] + 8001596: b21b sxth r3, r3 + 8001598: 4313 orrs r3, r2 + 800159a: b21b sxth r3, r3 + 800159c: b29a uxth r2, r3 + 800159e: 4b3d ldr r3, [pc, #244] @ (8001694 ) + 80015a0: 801a strh r2, [r3, #0] rx_checksum = 0; - 8000cdc: 4b38 ldr r3, [pc, #224] @ (8000dc0 ) - 8000cde: 2200 movs r2, #0 - 8000ce0: 801a strh r2, [r3, #0] + 80015a2: 4b3d ldr r3, [pc, #244] @ (8001698 ) + 80015a4: 2200 movs r2, #0 + 80015a6: 801a strh r2, [r3, #0] /* Need to apply to all data bits */ for (rx_len_counter = 0x00; rx_len_counter < rx_len; rx_len_counter++) - 8000ce2: 4b32 ldr r3, [pc, #200] @ (8000dac ) - 8000ce4: 2200 movs r2, #0 - 8000ce6: 701a strb r2, [r3, #0] - 8000ce8: e011 b.n 8000d0e + 80015a8: 4b36 ldr r3, [pc, #216] @ (8001684 ) + 80015aa: 2200 movs r2, #0 + 80015ac: 701a strb r2, [r3, #0] + 80015ae: e011 b.n 80015d4 { rx_checksum += rx_buffer[rx_len_counter]; - 8000cea: 4b30 ldr r3, [pc, #192] @ (8000dac ) - 8000cec: 781b ldrb r3, [r3, #0] - 8000cee: 461a mov r2, r3 - 8000cf0: 4b2f ldr r3, [pc, #188] @ (8000db0 ) - 8000cf2: 5c9b ldrb r3, [r3, r2] - 8000cf4: 461a mov r2, r3 - 8000cf6: 4b32 ldr r3, [pc, #200] @ (8000dc0 ) - 8000cf8: 881b ldrh r3, [r3, #0] - 8000cfa: 4413 add r3, r2 - 8000cfc: b29a uxth r2, r3 - 8000cfe: 4b30 ldr r3, [pc, #192] @ (8000dc0 ) - 8000d00: 801a strh r2, [r3, #0] + 80015b0: 4b34 ldr r3, [pc, #208] @ (8001684 ) + 80015b2: 781b ldrb r3, [r3, #0] + 80015b4: 461a mov r2, r3 + 80015b6: 4b34 ldr r3, [pc, #208] @ (8001688 ) + 80015b8: 5c9b ldrb r3, [r3, r2] + 80015ba: 461a mov r2, r3 + 80015bc: 4b36 ldr r3, [pc, #216] @ (8001698 ) + 80015be: 881b ldrh r3, [r3, #0] + 80015c0: 4413 add r3, r2 + 80015c2: b29a uxth r2, r3 + 80015c4: 4b34 ldr r3, [pc, #208] @ (8001698 ) + 80015c6: 801a strh r2, [r3, #0] for (rx_len_counter = 0x00; rx_len_counter < rx_len; rx_len_counter++) - 8000d02: 4b2a ldr r3, [pc, #168] @ (8000dac ) - 8000d04: 781b ldrb r3, [r3, #0] - 8000d06: 3301 adds r3, #1 - 8000d08: b2da uxtb r2, r3 - 8000d0a: 4b28 ldr r3, [pc, #160] @ (8000dac ) - 8000d0c: 701a strb r2, [r3, #0] - 8000d0e: 4b27 ldr r3, [pc, #156] @ (8000dac ) - 8000d10: 781a ldrb r2, [r3, #0] - 8000d12: 4b25 ldr r3, [pc, #148] @ (8000da8 ) - 8000d14: 781b ldrb r3, [r3, #0] - 8000d16: 429a cmp r2, r3 - 8000d18: d3e7 bcc.n 8000cea + 80015c8: 4b2e ldr r3, [pc, #184] @ (8001684 ) + 80015ca: 781b ldrb r3, [r3, #0] + 80015cc: 3301 adds r3, #1 + 80015ce: b2da uxtb r2, r3 + 80015d0: 4b2c ldr r3, [pc, #176] @ (8001684 ) + 80015d2: 701a strb r2, [r3, #0] + 80015d4: 4b2b ldr r3, [pc, #172] @ (8001684 ) + 80015d6: 781a ldrb r2, [r3, #0] + 80015d8: 4b29 ldr r3, [pc, #164] @ (8001680 ) + 80015da: 781b ldrb r3, [r3, #0] + 80015dc: 429a cmp r2, r3 + 80015de: d3e7 bcc.n 80015b0 } rx_len = 0x00; - 8000d1a: 4b23 ldr r3, [pc, #140] @ (8000da8 ) - 8000d1c: 2200 movs r2, #0 - 8000d1e: 701a strb r2, [r3, #0] + 80015e0: 4b27 ldr r3, [pc, #156] @ (8001680 ) + 80015e2: 2200 movs r2, #0 + 80015e4: 701a strb r2, [r3, #0] rx_len_counter = 0x00; - 8000d20: 4b22 ldr r3, [pc, #136] @ (8000dac ) - 8000d22: 2200 movs r2, #0 - 8000d24: 701a strb r2, [r3, #0] + 80015e6: 4b27 ldr r3, [pc, #156] @ (8001684 ) + 80015e8: 2200 movs r2, #0 + 80015ea: 701a strb r2, [r3, #0] rx_checksum = ~rx_checksum; - 8000d26: 4b26 ldr r3, [pc, #152] @ (8000dc0 ) - 8000d28: 881b ldrh r3, [r3, #0] - 8000d2a: 43db mvns r3, r3 - 8000d2c: b29a uxth r2, r3 - 8000d2e: 4b24 ldr r3, [pc, #144] @ (8000dc0 ) - 8000d30: 801a strh r2, [r3, #0] + 80015ec: 4b2a ldr r3, [pc, #168] @ (8001698 ) + 80015ee: 881b ldrh r3, [r3, #0] + 80015f0: 43db mvns r3, r3 + 80015f2: b29a uxth r2, r3 + 80015f4: 4b28 ldr r3, [pc, #160] @ (8001698 ) + 80015f6: 801a strh r2, [r3, #0] /* If checksum calculated equals the received checksum of packet then we got a good packet */ if (rx_checksum == rx_checksum_hold) - 8000d32: 4b23 ldr r3, [pc, #140] @ (8000dc0 ) - 8000d34: 881a ldrh r2, [r3, #0] - 8000d36: 4b21 ldr r3, [pc, #132] @ (8000dbc ) - 8000d38: 881b ldrh r3, [r3, #0] - 8000d3a: 429a cmp r2, r3 - 8000d3c: d11b bne.n 8000d76 + 80015f8: 4b27 ldr r3, [pc, #156] @ (8001698 ) + 80015fa: 881a ldrh r2, [r3, #0] + 80015fc: 4b25 ldr r3, [pc, #148] @ (8001694 ) + 80015fe: 881b ldrh r3, [r3, #0] + 8001600: 429a cmp r2, r3 + 8001602: d122 bne.n 800164a { /* Rx is finished, so reset count to wait for another first sync byte (also act on command/data)*/ rx_counter = 0x00; - 8000d3e: 4b18 ldr r3, [pc, #96] @ (8000da0 ) - 8000d40: 2200 movs r2, #0 - 8000d42: 701a strb r2, [r3, #0] + 8001604: 4b1c ldr r3, [pc, #112] @ (8001678 ) + 8001606: 2200 movs r2, #0 + 8001608: 701a strb r2, [r3, #0] command = rx_buffer[0]; - 8000d44: 4b1a ldr r3, [pc, #104] @ (8000db0 ) - 8000d46: 781a ldrb r2, [r3, #0] - 8000d48: 4b1e ldr r3, [pc, #120] @ (8000dc4 ) - 8000d4a: 701a strb r2, [r3, #0] + 800160a: 4b1f ldr r3, [pc, #124] @ (8001688 ) + 800160c: 781a ldrb r2, [r3, #0] + 800160e: 4b23 ldr r3, [pc, #140] @ (800169c ) + 8001610: 701a strb r2, [r3, #0] switch (command) - 8000d4c: 4b1d ldr r3, [pc, #116] @ (8000dc4 ) - 8000d4e: 781b ldrb r3, [r3, #0] - 8000d50: 2b53 cmp r3, #83 @ 0x53 - 8000d52: d002 beq.n 8000d5a - 8000d54: 2b56 cmp r3, #86 @ 0x56 - 8000d56: d00a beq.n 8000d6e + 8001612: 4b22 ldr r3, [pc, #136] @ (800169c ) + 8001614: 781b ldrb r3, [r3, #0] + 8001616: 2b56 cmp r3, #86 @ 0x56 + 8001618: d00f beq.n 800163a + 800161a: 2b56 cmp r3, #86 @ 0x56 + 800161c: dc19 bgt.n 8001652 + 800161e: 2b49 cmp r3, #73 @ 0x49 + 8001620: d00f beq.n 8001642 + 8001622: 2b53 cmp r3, #83 @ 0x53 + 8001624: d115 bne.n 8001652 + { + /* 'S' - Set power output state */ + case 0x53: + power_state_value = rx_buffer[1]; + 8001626: 4b18 ldr r3, [pc, #96] @ (8001688 ) + 8001628: 785a ldrb r2, [r3, #1] + 800162a: 4b1d ldr r3, [pc, #116] @ (80016a0 ) + 800162c: 701a strb r2, [r3, #0] + power_switch(power_state_value); + 800162e: 4b1c ldr r3, [pc, #112] @ (80016a0 ) + 8001630: 781b ldrb r3, [r3, #0] + 8001632: 4618 mov r0, r3 + 8001634: f7ff fef8 bl 8001428 + break; + 8001638: e00c b.n 8001654 + + /* 'V' - Get voltages (both input and output) */ case 0x56: adc_task_flag = 0xff; + 800163a: 4b1a ldr r3, [pc, #104] @ (80016a4 ) + 800163c: 22ff movs r2, #255 @ 0xff + 800163e: 701a strb r2, [r3, #0] break; + 8001640: e008 b.n 8001654 - default: + /* 'I' - Get serial number information */ + case 0x49: + serial_number_flag = 0xff; + 8001642: 4b19 ldr r3, [pc, #100] @ (80016a8 ) + 8001644: 22ff movs r2, #255 @ 0xff + 8001646: 701a strb r2, [r3, #0] break; - 8000d58: e011 b.n 8000d7e - power_state_value = rx_buffer[1]; - 8000d5a: 4b15 ldr r3, [pc, #84] @ (8000db0 ) - 8000d5c: 785a ldrb r2, [r3, #1] - 8000d5e: 4b1a ldr r3, [pc, #104] @ (8000dc8 ) - 8000d60: 701a strb r2, [r3, #0] - power_switch(power_state_value); - 8000d62: 4b19 ldr r3, [pc, #100] @ (8000dc8 ) - 8000d64: 781b ldrb r3, [r3, #0] - 8000d66: 4618 mov r0, r3 - 8000d68: f7ff fefc bl 8000b64 - break; - 8000d6c: e007 b.n 8000d7e - adc_task_flag = 0xff; - 8000d6e: 4b17 ldr r3, [pc, #92] @ (8000dcc ) - 8000d70: 22ff movs r2, #255 @ 0xff - 8000d72: 701a strb r2, [r3, #0] - break; - 8000d74: e003 b.n 8000d7e + 8001648: e004 b.n 8001654 /* Bad packet received */ else { /* Rx is finished, so reset count to wait for another first sync byte (bad packet so no flag)*/ rx_counter = 0x00; - 8000d76: 4b0a ldr r3, [pc, #40] @ (8000da0 ) - 8000d78: 2200 movs r2, #0 - 8000d7a: 701a strb r2, [r3, #0] + 800164a: 4b0b ldr r3, [pc, #44] @ (8001678 ) + 800164c: 2200 movs r2, #0 + 800164e: 701a strb r2, [r3, #0] } break; - 8000d7c: e005 b.n 8000d8a - 8000d7e: e004 b.n 8000d8a + 8001650: e006 b.n 8001660 + break; + 8001652: bf00 nop + break; + 8001654: e004 b.n 8001660 /* Default case - NOT USED!*/ default: break; - 8000d80: bf00 nop - 8000d82: e002 b.n 8000d8a + 8001656: bf00 nop + 8001658: e002 b.n 8001660 break; - 8000d84: bf00 nop - 8000d86: e000 b.n 8000d8a + 800165a: bf00 nop + 800165c: e000 b.n 8001660 break; - 8000d88: bf00 nop + 800165e: bf00 nop } /* Reset interrupts */ HAL_UART_Receive_IT(&huart2, rx_hold_buffer, 1); - 8000d8a: 2201 movs r2, #1 - 8000d8c: 4905 ldr r1, [pc, #20] @ (8000da4 ) - 8000d8e: 4810 ldr r0, [pc, #64] @ (8000dd0 ) - 8000d90: f003 ff66 bl 8004c60 + 8001660: 2201 movs r2, #1 + 8001662: 4906 ldr r1, [pc, #24] @ (800167c ) + 8001664: 4811 ldr r0, [pc, #68] @ (80016ac ) + 8001666: f003 fff7 bl 8005658 } } - 8000d94: bf00 nop - 8000d96: 3708 adds r7, #8 - 8000d98: 46bd mov sp, r7 - 8000d9a: bd80 pop {r7, pc} - 8000d9c: 40004400 .word 0x40004400 - 8000da0: 20000225 .word 0x20000225 - 8000da4: 200001e0 .word 0x200001e0 - 8000da8: 20000226 .word 0x20000226 - 8000dac: 20000227 .word 0x20000227 - 8000db0: 200001e4 .word 0x200001e4 - 8000db4: 2000022a .word 0x2000022a - 8000db8: 2000022b .word 0x2000022b - 8000dbc: 2000022c .word 0x2000022c - 8000dc0: 20000228 .word 0x20000228 - 8000dc4: 2000022f .word 0x2000022f - 8000dc8: 2000022e .word 0x2000022e - 8000dcc: 20000230 .word 0x20000230 - 8000dd0: 2000014c .word 0x2000014c + 800166a: bf00 nop + 800166c: 3708 adds r7, #8 + 800166e: 46bd mov sp, r7 + 8001670: bd80 pop {r7, pc} + 8001672: bf00 nop + 8001674: 40004400 .word 0x40004400 + 8001678: 2000023a .word 0x2000023a + 800167c: 200001f4 .word 0x200001f4 + 8001680: 2000023b .word 0x2000023b + 8001684: 2000023c .word 0x2000023c + 8001688: 200001f8 .word 0x200001f8 + 800168c: 20000242 .word 0x20000242 + 8001690: 20000243 .word 0x20000243 + 8001694: 20000244 .word 0x20000244 + 8001698: 2000023e .word 0x2000023e + 800169c: 20000247 .word 0x20000247 + 80016a0: 20000246 .word 0x20000246 + 80016a4: 20000248 .word 0x20000248 + 80016a8: 2000025c .word 0x2000025c + 80016ac: 20000160 .word 0x20000160 -08000dd4 : +080016b0 : /** * @brief This function is executed in case of error occurrence. * @retval None */ void Error_Handler(void) { - 8000dd4: b480 push {r7} - 8000dd6: af00 add r7, sp, #0 + 80016b0: b480 push {r7} + 80016b2: af00 add r7, sp, #0 \details Disables IRQ interrupts by setting the I-bit in the CPSR. Can only be executed in Privileged modes. */ __STATIC_FORCEINLINE void __disable_irq(void) { __ASM volatile ("cpsid i" : : : "memory"); - 8000dd8: b672 cpsid i + 80016b4: b672 cpsid i } - 8000dda: bf00 nop + 80016b6: bf00 nop /* USER CODE BEGIN Error_Handler_Debug */ /* User can add his own implementation to report the HAL error return state */ __disable_irq(); while (1) - 8000ddc: bf00 nop - 8000dde: e7fd b.n 8000ddc + 80016b8: bf00 nop + 80016ba: e7fd b.n 80016b8 -08000de0 : +080016bc : /* USER CODE END 0 */ /** * Initializes the Global MSP. */ void HAL_MspInit(void) { - 8000de0: b580 push {r7, lr} - 8000de2: b082 sub sp, #8 - 8000de4: af00 add r7, sp, #0 + 80016bc: b580 push {r7, lr} + 80016be: b082 sub sp, #8 + 80016c0: af00 add r7, sp, #0 /* USER CODE BEGIN MspInit 0 */ /* USER CODE END MspInit 0 */ __HAL_RCC_SYSCFG_CLK_ENABLE(); - 8000de6: 4b0f ldr r3, [pc, #60] @ (8000e24 ) - 8000de8: 6e1b ldr r3, [r3, #96] @ 0x60 - 8000dea: 4a0e ldr r2, [pc, #56] @ (8000e24 ) - 8000dec: f043 0301 orr.w r3, r3, #1 - 8000df0: 6613 str r3, [r2, #96] @ 0x60 - 8000df2: 4b0c ldr r3, [pc, #48] @ (8000e24 ) - 8000df4: 6e1b ldr r3, [r3, #96] @ 0x60 - 8000df6: f003 0301 and.w r3, r3, #1 - 8000dfa: 607b str r3, [r7, #4] - 8000dfc: 687b ldr r3, [r7, #4] + 80016c2: 4b0f ldr r3, [pc, #60] @ (8001700 ) + 80016c4: 6e1b ldr r3, [r3, #96] @ 0x60 + 80016c6: 4a0e ldr r2, [pc, #56] @ (8001700 ) + 80016c8: f043 0301 orr.w r3, r3, #1 + 80016cc: 6613 str r3, [r2, #96] @ 0x60 + 80016ce: 4b0c ldr r3, [pc, #48] @ (8001700 ) + 80016d0: 6e1b ldr r3, [r3, #96] @ 0x60 + 80016d2: f003 0301 and.w r3, r3, #1 + 80016d6: 607b str r3, [r7, #4] + 80016d8: 687b ldr r3, [r7, #4] __HAL_RCC_PWR_CLK_ENABLE(); - 8000dfe: 4b09 ldr r3, [pc, #36] @ (8000e24 ) - 8000e00: 6d9b ldr r3, [r3, #88] @ 0x58 - 8000e02: 4a08 ldr r2, [pc, #32] @ (8000e24 ) - 8000e04: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 - 8000e08: 6593 str r3, [r2, #88] @ 0x58 - 8000e0a: 4b06 ldr r3, [pc, #24] @ (8000e24 ) - 8000e0c: 6d9b ldr r3, [r3, #88] @ 0x58 - 8000e0e: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 - 8000e12: 603b str r3, [r7, #0] - 8000e14: 683b ldr r3, [r7, #0] + 80016da: 4b09 ldr r3, [pc, #36] @ (8001700 ) + 80016dc: 6d9b ldr r3, [r3, #88] @ 0x58 + 80016de: 4a08 ldr r2, [pc, #32] @ (8001700 ) + 80016e0: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 + 80016e4: 6593 str r3, [r2, #88] @ 0x58 + 80016e6: 4b06 ldr r3, [pc, #24] @ (8001700 ) + 80016e8: 6d9b ldr r3, [r3, #88] @ 0x58 + 80016ea: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 + 80016ee: 603b str r3, [r7, #0] + 80016f0: 683b ldr r3, [r7, #0] /* System interrupt init*/ /** Disable the internal Pull-Up in Dead Battery pins of UCPD peripheral */ HAL_PWREx_DisableUCPDDeadBattery(); - 8000e16: f002 fa45 bl 80032a4 + 80016f2: f002 fad3 bl 8003c9c /* USER CODE BEGIN MspInit 1 */ /* USER CODE END MspInit 1 */ } - 8000e1a: bf00 nop - 8000e1c: 3708 adds r7, #8 - 8000e1e: 46bd mov sp, r7 - 8000e20: bd80 pop {r7, pc} - 8000e22: bf00 nop - 8000e24: 40021000 .word 0x40021000 + 80016f6: bf00 nop + 80016f8: 3708 adds r7, #8 + 80016fa: 46bd mov sp, r7 + 80016fc: bd80 pop {r7, pc} + 80016fe: bf00 nop + 8001700: 40021000 .word 0x40021000 -08000e28 : +08001704 : * This function configures the hardware resources used in this example * @param hadc: ADC handle pointer * @retval None */ void HAL_ADC_MspInit(ADC_HandleTypeDef* hadc) { - 8000e28: b580 push {r7, lr} - 8000e2a: b09c sub sp, #112 @ 0x70 - 8000e2c: af00 add r7, sp, #0 - 8000e2e: 6078 str r0, [r7, #4] + 8001704: b580 push {r7, lr} + 8001706: b09c sub sp, #112 @ 0x70 + 8001708: af00 add r7, sp, #0 + 800170a: 6078 str r0, [r7, #4] GPIO_InitTypeDef GPIO_InitStruct = {0}; - 8000e30: f107 035c add.w r3, r7, #92 @ 0x5c - 8000e34: 2200 movs r2, #0 - 8000e36: 601a str r2, [r3, #0] - 8000e38: 605a str r2, [r3, #4] - 8000e3a: 609a str r2, [r3, #8] - 8000e3c: 60da str r2, [r3, #12] - 8000e3e: 611a str r2, [r3, #16] + 800170c: f107 035c add.w r3, r7, #92 @ 0x5c + 8001710: 2200 movs r2, #0 + 8001712: 601a str r2, [r3, #0] + 8001714: 605a str r2, [r3, #4] + 8001716: 609a str r2, [r3, #8] + 8001718: 60da str r2, [r3, #12] + 800171a: 611a str r2, [r3, #16] RCC_PeriphCLKInitTypeDef PeriphClkInit = {0}; - 8000e40: f107 0318 add.w r3, r7, #24 - 8000e44: 2244 movs r2, #68 @ 0x44 - 8000e46: 2100 movs r1, #0 - 8000e48: 4618 mov r0, r3 - 8000e4a: f005 ff3b bl 8006cc4 + 800171c: f107 0318 add.w r3, r7, #24 + 8001720: 2244 movs r2, #68 @ 0x44 + 8001722: 2100 movs r1, #0 + 8001724: 4618 mov r0, r3 + 8001726: f005 ffc9 bl 80076bc if(hadc->Instance==ADC1) - 8000e4e: 687b ldr r3, [r7, #4] - 8000e50: 681b ldr r3, [r3, #0] - 8000e52: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000 - 8000e56: d125 bne.n 8000ea4 + 800172a: 687b ldr r3, [r7, #4] + 800172c: 681b ldr r3, [r3, #0] + 800172e: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000 + 8001732: d125 bne.n 8001780 /* USER CODE END ADC1_MspInit 0 */ /** Initializes the peripherals clocks */ PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_ADC12; - 8000e58: f44f 4300 mov.w r3, #32768 @ 0x8000 - 8000e5c: 61bb str r3, [r7, #24] + 8001734: f44f 4300 mov.w r3, #32768 @ 0x8000 + 8001738: 61bb str r3, [r7, #24] PeriphClkInit.Adc12ClockSelection = RCC_ADC12CLKSOURCE_SYSCLK; - 8000e5e: f04f 5300 mov.w r3, #536870912 @ 0x20000000 - 8000e62: 657b str r3, [r7, #84] @ 0x54 + 800173a: f04f 5300 mov.w r3, #536870912 @ 0x20000000 + 800173e: 657b str r3, [r7, #84] @ 0x54 if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInit) != HAL_OK) - 8000e64: f107 0318 add.w r3, r7, #24 - 8000e68: 4618 mov r0, r3 - 8000e6a: f002 ff59 bl 8003d20 - 8000e6e: 4603 mov r3, r0 - 8000e70: 2b00 cmp r3, #0 - 8000e72: d001 beq.n 8000e78 + 8001740: f107 0318 add.w r3, r7, #24 + 8001744: 4618 mov r0, r3 + 8001746: f002 ffe7 bl 8004718 + 800174a: 4603 mov r3, r0 + 800174c: 2b00 cmp r3, #0 + 800174e: d001 beq.n 8001754 { Error_Handler(); - 8000e74: f7ff ffae bl 8000dd4 + 8001750: f7ff ffae bl 80016b0 } /* Peripheral clock enable */ HAL_RCC_ADC12_CLK_ENABLED++; - 8000e78: 4b2e ldr r3, [pc, #184] @ (8000f34 ) - 8000e7a: 681b ldr r3, [r3, #0] - 8000e7c: 3301 adds r3, #1 - 8000e7e: 4a2d ldr r2, [pc, #180] @ (8000f34 ) - 8000e80: 6013 str r3, [r2, #0] + 8001754: 4b2e ldr r3, [pc, #184] @ (8001810 ) + 8001756: 681b ldr r3, [r3, #0] + 8001758: 3301 adds r3, #1 + 800175a: 4a2d ldr r2, [pc, #180] @ (8001810 ) + 800175c: 6013 str r3, [r2, #0] if(HAL_RCC_ADC12_CLK_ENABLED==1){ - 8000e82: 4b2c ldr r3, [pc, #176] @ (8000f34 ) - 8000e84: 681b ldr r3, [r3, #0] - 8000e86: 2b01 cmp r3, #1 - 8000e88: d14f bne.n 8000f2a + 800175e: 4b2c ldr r3, [pc, #176] @ (8001810 ) + 8001760: 681b ldr r3, [r3, #0] + 8001762: 2b01 cmp r3, #1 + 8001764: d14f bne.n 8001806 __HAL_RCC_ADC12_CLK_ENABLE(); - 8000e8a: 4b2b ldr r3, [pc, #172] @ (8000f38 ) - 8000e8c: 6cdb ldr r3, [r3, #76] @ 0x4c - 8000e8e: 4a2a ldr r2, [pc, #168] @ (8000f38 ) - 8000e90: f443 5300 orr.w r3, r3, #8192 @ 0x2000 - 8000e94: 64d3 str r3, [r2, #76] @ 0x4c - 8000e96: 4b28 ldr r3, [pc, #160] @ (8000f38 ) - 8000e98: 6cdb ldr r3, [r3, #76] @ 0x4c - 8000e9a: f403 5300 and.w r3, r3, #8192 @ 0x2000 - 8000e9e: 617b str r3, [r7, #20] - 8000ea0: 697b ldr r3, [r7, #20] + 8001766: 4b2b ldr r3, [pc, #172] @ (8001814 ) + 8001768: 6cdb ldr r3, [r3, #76] @ 0x4c + 800176a: 4a2a ldr r2, [pc, #168] @ (8001814 ) + 800176c: f443 5300 orr.w r3, r3, #8192 @ 0x2000 + 8001770: 64d3 str r3, [r2, #76] @ 0x4c + 8001772: 4b28 ldr r3, [pc, #160] @ (8001814 ) + 8001774: 6cdb ldr r3, [r3, #76] @ 0x4c + 8001776: f403 5300 and.w r3, r3, #8192 @ 0x2000 + 800177a: 617b str r3, [r7, #20] + 800177c: 697b ldr r3, [r7, #20] /* USER CODE BEGIN ADC2_MspInit 1 */ /* USER CODE END ADC2_MspInit 1 */ } } - 8000ea2: e042 b.n 8000f2a + 800177e: e042 b.n 8001806 else if(hadc->Instance==ADC2) - 8000ea4: 687b ldr r3, [r7, #4] - 8000ea6: 681b ldr r3, [r3, #0] - 8000ea8: 4a24 ldr r2, [pc, #144] @ (8000f3c ) - 8000eaa: 4293 cmp r3, r2 - 8000eac: d13d bne.n 8000f2a + 8001780: 687b ldr r3, [r7, #4] + 8001782: 681b ldr r3, [r3, #0] + 8001784: 4a24 ldr r2, [pc, #144] @ (8001818 ) + 8001786: 4293 cmp r3, r2 + 8001788: d13d bne.n 8001806 PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_ADC12; - 8000eae: f44f 4300 mov.w r3, #32768 @ 0x8000 - 8000eb2: 61bb str r3, [r7, #24] + 800178a: f44f 4300 mov.w r3, #32768 @ 0x8000 + 800178e: 61bb str r3, [r7, #24] PeriphClkInit.Adc12ClockSelection = RCC_ADC12CLKSOURCE_SYSCLK; - 8000eb4: f04f 5300 mov.w r3, #536870912 @ 0x20000000 - 8000eb8: 657b str r3, [r7, #84] @ 0x54 + 8001790: f04f 5300 mov.w r3, #536870912 @ 0x20000000 + 8001794: 657b str r3, [r7, #84] @ 0x54 if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInit) != HAL_OK) - 8000eba: f107 0318 add.w r3, r7, #24 - 8000ebe: 4618 mov r0, r3 - 8000ec0: f002 ff2e bl 8003d20 - 8000ec4: 4603 mov r3, r0 - 8000ec6: 2b00 cmp r3, #0 - 8000ec8: d001 beq.n 8000ece + 8001796: f107 0318 add.w r3, r7, #24 + 800179a: 4618 mov r0, r3 + 800179c: f002 ffbc bl 8004718 + 80017a0: 4603 mov r3, r0 + 80017a2: 2b00 cmp r3, #0 + 80017a4: d001 beq.n 80017aa Error_Handler(); - 8000eca: f7ff ff83 bl 8000dd4 + 80017a6: f7ff ff83 bl 80016b0 HAL_RCC_ADC12_CLK_ENABLED++; - 8000ece: 4b19 ldr r3, [pc, #100] @ (8000f34 ) - 8000ed0: 681b ldr r3, [r3, #0] - 8000ed2: 3301 adds r3, #1 - 8000ed4: 4a17 ldr r2, [pc, #92] @ (8000f34 ) - 8000ed6: 6013 str r3, [r2, #0] + 80017aa: 4b19 ldr r3, [pc, #100] @ (8001810 ) + 80017ac: 681b ldr r3, [r3, #0] + 80017ae: 3301 adds r3, #1 + 80017b0: 4a17 ldr r2, [pc, #92] @ (8001810 ) + 80017b2: 6013 str r3, [r2, #0] if(HAL_RCC_ADC12_CLK_ENABLED==1){ - 8000ed8: 4b16 ldr r3, [pc, #88] @ (8000f34 ) - 8000eda: 681b ldr r3, [r3, #0] - 8000edc: 2b01 cmp r3, #1 - 8000ede: d10b bne.n 8000ef8 + 80017b4: 4b16 ldr r3, [pc, #88] @ (8001810 ) + 80017b6: 681b ldr r3, [r3, #0] + 80017b8: 2b01 cmp r3, #1 + 80017ba: d10b bne.n 80017d4 __HAL_RCC_ADC12_CLK_ENABLE(); - 8000ee0: 4b15 ldr r3, [pc, #84] @ (8000f38 ) - 8000ee2: 6cdb ldr r3, [r3, #76] @ 0x4c - 8000ee4: 4a14 ldr r2, [pc, #80] @ (8000f38 ) - 8000ee6: f443 5300 orr.w r3, r3, #8192 @ 0x2000 - 8000eea: 64d3 str r3, [r2, #76] @ 0x4c - 8000eec: 4b12 ldr r3, [pc, #72] @ (8000f38 ) - 8000eee: 6cdb ldr r3, [r3, #76] @ 0x4c - 8000ef0: f403 5300 and.w r3, r3, #8192 @ 0x2000 - 8000ef4: 613b str r3, [r7, #16] - 8000ef6: 693b ldr r3, [r7, #16] + 80017bc: 4b15 ldr r3, [pc, #84] @ (8001814 ) + 80017be: 6cdb ldr r3, [r3, #76] @ 0x4c + 80017c0: 4a14 ldr r2, [pc, #80] @ (8001814 ) + 80017c2: f443 5300 orr.w r3, r3, #8192 @ 0x2000 + 80017c6: 64d3 str r3, [r2, #76] @ 0x4c + 80017c8: 4b12 ldr r3, [pc, #72] @ (8001814 ) + 80017ca: 6cdb ldr r3, [r3, #76] @ 0x4c + 80017cc: f403 5300 and.w r3, r3, #8192 @ 0x2000 + 80017d0: 613b str r3, [r7, #16] + 80017d2: 693b ldr r3, [r7, #16] __HAL_RCC_GPIOA_CLK_ENABLE(); - 8000ef8: 4b0f ldr r3, [pc, #60] @ (8000f38 ) - 8000efa: 6cdb ldr r3, [r3, #76] @ 0x4c - 8000efc: 4a0e ldr r2, [pc, #56] @ (8000f38 ) - 8000efe: f043 0301 orr.w r3, r3, #1 - 8000f02: 64d3 str r3, [r2, #76] @ 0x4c - 8000f04: 4b0c ldr r3, [pc, #48] @ (8000f38 ) - 8000f06: 6cdb ldr r3, [r3, #76] @ 0x4c - 8000f08: f003 0301 and.w r3, r3, #1 - 8000f0c: 60fb str r3, [r7, #12] - 8000f0e: 68fb ldr r3, [r7, #12] + 80017d4: 4b0f ldr r3, [pc, #60] @ (8001814 ) + 80017d6: 6cdb ldr r3, [r3, #76] @ 0x4c + 80017d8: 4a0e ldr r2, [pc, #56] @ (8001814 ) + 80017da: f043 0301 orr.w r3, r3, #1 + 80017de: 64d3 str r3, [r2, #76] @ 0x4c + 80017e0: 4b0c ldr r3, [pc, #48] @ (8001814 ) + 80017e2: 6cdb ldr r3, [r3, #76] @ 0x4c + 80017e4: f003 0301 and.w r3, r3, #1 + 80017e8: 60fb str r3, [r7, #12] + 80017ea: 68fb ldr r3, [r7, #12] GPIO_InitStruct.Pin = VIN_Pin|VOUT_Pin; - 8000f10: 23c0 movs r3, #192 @ 0xc0 - 8000f12: 65fb str r3, [r7, #92] @ 0x5c + 80017ec: 23c0 movs r3, #192 @ 0xc0 + 80017ee: 65fb str r3, [r7, #92] @ 0x5c GPIO_InitStruct.Mode = GPIO_MODE_ANALOG; - 8000f14: 2303 movs r3, #3 - 8000f16: 663b str r3, [r7, #96] @ 0x60 + 80017f0: 2303 movs r3, #3 + 80017f2: 663b str r3, [r7, #96] @ 0x60 GPIO_InitStruct.Pull = GPIO_NOPULL; - 8000f18: 2300 movs r3, #0 - 8000f1a: 667b str r3, [r7, #100] @ 0x64 + 80017f4: 2300 movs r3, #0 + 80017f6: 667b str r3, [r7, #100] @ 0x64 HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); - 8000f1c: f107 035c add.w r3, r7, #92 @ 0x5c - 8000f20: 4619 mov r1, r3 - 8000f22: f04f 4090 mov.w r0, #1207959552 @ 0x48000000 - 8000f26: f001 ff7f bl 8002e28 + 80017f8: f107 035c add.w r3, r7, #92 @ 0x5c + 80017fc: 4619 mov r1, r3 + 80017fe: f04f 4090 mov.w r0, #1207959552 @ 0x48000000 + 8001802: f002 f80d bl 8003820 } - 8000f2a: bf00 nop - 8000f2c: 3770 adds r7, #112 @ 0x70 - 8000f2e: 46bd mov sp, r7 - 8000f30: bd80 pop {r7, pc} - 8000f32: bf00 nop - 8000f34: 2000023c .word 0x2000023c - 8000f38: 40021000 .word 0x40021000 - 8000f3c: 50000100 .word 0x50000100 + 8001806: bf00 nop + 8001808: 3770 adds r7, #112 @ 0x70 + 800180a: 46bd mov sp, r7 + 800180c: bd80 pop {r7, pc} + 800180e: bf00 nop + 8001810: 20000260 .word 0x20000260 + 8001814: 40021000 .word 0x40021000 + 8001818: 50000100 .word 0x50000100 -08000f40 : +0800181c : * This function configures the hardware resources used in this example * @param htim_base: TIM_Base handle pointer * @retval None */ void HAL_TIM_Base_MspInit(TIM_HandleTypeDef* htim_base) { - 8000f40: b580 push {r7, lr} - 8000f42: b084 sub sp, #16 - 8000f44: af00 add r7, sp, #0 - 8000f46: 6078 str r0, [r7, #4] + 800181c: b580 push {r7, lr} + 800181e: b084 sub sp, #16 + 8001820: af00 add r7, sp, #0 + 8001822: 6078 str r0, [r7, #4] if(htim_base->Instance==TIM2) - 8000f48: 687b ldr r3, [r7, #4] - 8000f4a: 681b ldr r3, [r3, #0] - 8000f4c: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 - 8000f50: d113 bne.n 8000f7a + 8001824: 687b ldr r3, [r7, #4] + 8001826: 681b ldr r3, [r3, #0] + 8001828: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 + 800182c: d113 bne.n 8001856 { /* USER CODE BEGIN TIM2_MspInit 0 */ /* USER CODE END TIM2_MspInit 0 */ /* Peripheral clock enable */ __HAL_RCC_TIM2_CLK_ENABLE(); - 8000f52: 4b0c ldr r3, [pc, #48] @ (8000f84 ) - 8000f54: 6d9b ldr r3, [r3, #88] @ 0x58 - 8000f56: 4a0b ldr r2, [pc, #44] @ (8000f84 ) - 8000f58: f043 0301 orr.w r3, r3, #1 - 8000f5c: 6593 str r3, [r2, #88] @ 0x58 - 8000f5e: 4b09 ldr r3, [pc, #36] @ (8000f84 ) - 8000f60: 6d9b ldr r3, [r3, #88] @ 0x58 - 8000f62: f003 0301 and.w r3, r3, #1 - 8000f66: 60fb str r3, [r7, #12] - 8000f68: 68fb ldr r3, [r7, #12] + 800182e: 4b0c ldr r3, [pc, #48] @ (8001860 ) + 8001830: 6d9b ldr r3, [r3, #88] @ 0x58 + 8001832: 4a0b ldr r2, [pc, #44] @ (8001860 ) + 8001834: f043 0301 orr.w r3, r3, #1 + 8001838: 6593 str r3, [r2, #88] @ 0x58 + 800183a: 4b09 ldr r3, [pc, #36] @ (8001860 ) + 800183c: 6d9b ldr r3, [r3, #88] @ 0x58 + 800183e: f003 0301 and.w r3, r3, #1 + 8001842: 60fb str r3, [r7, #12] + 8001844: 68fb ldr r3, [r7, #12] /* TIM2 interrupt Init */ HAL_NVIC_SetPriority(TIM2_IRQn, 0, 0); - 8000f6a: 2200 movs r2, #0 - 8000f6c: 2100 movs r1, #0 - 8000f6e: 201c movs r0, #28 - 8000f70: f001 fe65 bl 8002c3e + 8001846: 2200 movs r2, #0 + 8001848: 2100 movs r1, #0 + 800184a: 201c movs r0, #28 + 800184c: f001 fef3 bl 8003636 HAL_NVIC_EnableIRQ(TIM2_IRQn); - 8000f74: 201c movs r0, #28 - 8000f76: f001 fe7c bl 8002c72 + 8001850: 201c movs r0, #28 + 8001852: f001 ff0a bl 800366a /* USER CODE END TIM2_MspInit 1 */ } } - 8000f7a: bf00 nop - 8000f7c: 3710 adds r7, #16 - 8000f7e: 46bd mov sp, r7 - 8000f80: bd80 pop {r7, pc} - 8000f82: bf00 nop - 8000f84: 40021000 .word 0x40021000 + 8001856: bf00 nop + 8001858: 3710 adds r7, #16 + 800185a: 46bd mov sp, r7 + 800185c: bd80 pop {r7, pc} + 800185e: bf00 nop + 8001860: 40021000 .word 0x40021000 -08000f88 : +08001864 : * This function configures the hardware resources used in this example * @param huart: UART handle pointer * @retval None */ void HAL_UART_MspInit(UART_HandleTypeDef* huart) { - 8000f88: b580 push {r7, lr} - 8000f8a: b09a sub sp, #104 @ 0x68 - 8000f8c: af00 add r7, sp, #0 - 8000f8e: 6078 str r0, [r7, #4] + 8001864: b580 push {r7, lr} + 8001866: b09a sub sp, #104 @ 0x68 + 8001868: af00 add r7, sp, #0 + 800186a: 6078 str r0, [r7, #4] GPIO_InitTypeDef GPIO_InitStruct = {0}; - 8000f90: f107 0354 add.w r3, r7, #84 @ 0x54 - 8000f94: 2200 movs r2, #0 - 8000f96: 601a str r2, [r3, #0] - 8000f98: 605a str r2, [r3, #4] - 8000f9a: 609a str r2, [r3, #8] - 8000f9c: 60da str r2, [r3, #12] - 8000f9e: 611a str r2, [r3, #16] + 800186c: f107 0354 add.w r3, r7, #84 @ 0x54 + 8001870: 2200 movs r2, #0 + 8001872: 601a str r2, [r3, #0] + 8001874: 605a str r2, [r3, #4] + 8001876: 609a str r2, [r3, #8] + 8001878: 60da str r2, [r3, #12] + 800187a: 611a str r2, [r3, #16] RCC_PeriphCLKInitTypeDef PeriphClkInit = {0}; - 8000fa0: f107 0310 add.w r3, r7, #16 - 8000fa4: 2244 movs r2, #68 @ 0x44 - 8000fa6: 2100 movs r1, #0 - 8000fa8: 4618 mov r0, r3 - 8000faa: f005 fe8b bl 8006cc4 + 800187c: f107 0310 add.w r3, r7, #16 + 8001880: 2244 movs r2, #68 @ 0x44 + 8001882: 2100 movs r1, #0 + 8001884: 4618 mov r0, r3 + 8001886: f005 ff19 bl 80076bc if(huart->Instance==USART2) - 8000fae: 687b ldr r3, [r7, #4] - 8000fb0: 681b ldr r3, [r3, #0] - 8000fb2: 4a23 ldr r2, [pc, #140] @ (8001040 ) - 8000fb4: 4293 cmp r3, r2 - 8000fb6: d13e bne.n 8001036 + 800188a: 687b ldr r3, [r7, #4] + 800188c: 681b ldr r3, [r3, #0] + 800188e: 4a23 ldr r2, [pc, #140] @ (800191c ) + 8001890: 4293 cmp r3, r2 + 8001892: d13e bne.n 8001912 /* USER CODE END USART2_MspInit 0 */ /** Initializes the peripherals clocks */ PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_USART2; - 8000fb8: 2302 movs r3, #2 - 8000fba: 613b str r3, [r7, #16] + 8001894: 2302 movs r3, #2 + 8001896: 613b str r3, [r7, #16] PeriphClkInit.Usart2ClockSelection = RCC_USART2CLKSOURCE_PCLK1; - 8000fbc: 2300 movs r3, #0 - 8000fbe: 61bb str r3, [r7, #24] + 8001898: 2300 movs r3, #0 + 800189a: 61bb str r3, [r7, #24] if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInit) != HAL_OK) - 8000fc0: f107 0310 add.w r3, r7, #16 - 8000fc4: 4618 mov r0, r3 - 8000fc6: f002 feab bl 8003d20 - 8000fca: 4603 mov r3, r0 - 8000fcc: 2b00 cmp r3, #0 - 8000fce: d001 beq.n 8000fd4 + 800189c: f107 0310 add.w r3, r7, #16 + 80018a0: 4618 mov r0, r3 + 80018a2: f002 ff39 bl 8004718 + 80018a6: 4603 mov r3, r0 + 80018a8: 2b00 cmp r3, #0 + 80018aa: d001 beq.n 80018b0 { Error_Handler(); - 8000fd0: f7ff ff00 bl 8000dd4 + 80018ac: f7ff ff00 bl 80016b0 } /* Peripheral clock enable */ __HAL_RCC_USART2_CLK_ENABLE(); - 8000fd4: 4b1b ldr r3, [pc, #108] @ (8001044 ) - 8000fd6: 6d9b ldr r3, [r3, #88] @ 0x58 - 8000fd8: 4a1a ldr r2, [pc, #104] @ (8001044 ) - 8000fda: f443 3300 orr.w r3, r3, #131072 @ 0x20000 - 8000fde: 6593 str r3, [r2, #88] @ 0x58 - 8000fe0: 4b18 ldr r3, [pc, #96] @ (8001044 ) - 8000fe2: 6d9b ldr r3, [r3, #88] @ 0x58 - 8000fe4: f403 3300 and.w r3, r3, #131072 @ 0x20000 - 8000fe8: 60fb str r3, [r7, #12] - 8000fea: 68fb ldr r3, [r7, #12] + 80018b0: 4b1b ldr r3, [pc, #108] @ (8001920 ) + 80018b2: 6d9b ldr r3, [r3, #88] @ 0x58 + 80018b4: 4a1a ldr r2, [pc, #104] @ (8001920 ) + 80018b6: f443 3300 orr.w r3, r3, #131072 @ 0x20000 + 80018ba: 6593 str r3, [r2, #88] @ 0x58 + 80018bc: 4b18 ldr r3, [pc, #96] @ (8001920 ) + 80018be: 6d9b ldr r3, [r3, #88] @ 0x58 + 80018c0: f403 3300 and.w r3, r3, #131072 @ 0x20000 + 80018c4: 60fb str r3, [r7, #12] + 80018c6: 68fb ldr r3, [r7, #12] __HAL_RCC_GPIOA_CLK_ENABLE(); - 8000fec: 4b15 ldr r3, [pc, #84] @ (8001044 ) - 8000fee: 6cdb ldr r3, [r3, #76] @ 0x4c - 8000ff0: 4a14 ldr r2, [pc, #80] @ (8001044 ) - 8000ff2: f043 0301 orr.w r3, r3, #1 - 8000ff6: 64d3 str r3, [r2, #76] @ 0x4c - 8000ff8: 4b12 ldr r3, [pc, #72] @ (8001044 ) - 8000ffa: 6cdb ldr r3, [r3, #76] @ 0x4c - 8000ffc: f003 0301 and.w r3, r3, #1 - 8001000: 60bb str r3, [r7, #8] - 8001002: 68bb ldr r3, [r7, #8] + 80018c8: 4b15 ldr r3, [pc, #84] @ (8001920 ) + 80018ca: 6cdb ldr r3, [r3, #76] @ 0x4c + 80018cc: 4a14 ldr r2, [pc, #80] @ (8001920 ) + 80018ce: f043 0301 orr.w r3, r3, #1 + 80018d2: 64d3 str r3, [r2, #76] @ 0x4c + 80018d4: 4b12 ldr r3, [pc, #72] @ (8001920 ) + 80018d6: 6cdb ldr r3, [r3, #76] @ 0x4c + 80018d8: f003 0301 and.w r3, r3, #1 + 80018dc: 60bb str r3, [r7, #8] + 80018de: 68bb ldr r3, [r7, #8] /**USART2 GPIO Configuration PA2 ------> USART2_TX PA3 ------> USART2_RX */ GPIO_InitStruct.Pin = USART2_TX_Pin|USART2_RX_Pin; - 8001004: 230c movs r3, #12 - 8001006: 657b str r3, [r7, #84] @ 0x54 + 80018e0: 230c movs r3, #12 + 80018e2: 657b str r3, [r7, #84] @ 0x54 GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 8001008: 2302 movs r3, #2 - 800100a: 65bb str r3, [r7, #88] @ 0x58 + 80018e4: 2302 movs r3, #2 + 80018e6: 65bb str r3, [r7, #88] @ 0x58 GPIO_InitStruct.Pull = GPIO_NOPULL; - 800100c: 2300 movs r3, #0 - 800100e: 65fb str r3, [r7, #92] @ 0x5c + 80018e8: 2300 movs r3, #0 + 80018ea: 65fb str r3, [r7, #92] @ 0x5c GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; - 8001010: 2300 movs r3, #0 - 8001012: 663b str r3, [r7, #96] @ 0x60 + 80018ec: 2300 movs r3, #0 + 80018ee: 663b str r3, [r7, #96] @ 0x60 GPIO_InitStruct.Alternate = GPIO_AF7_USART2; - 8001014: 2307 movs r3, #7 - 8001016: 667b str r3, [r7, #100] @ 0x64 + 80018f0: 2307 movs r3, #7 + 80018f2: 667b str r3, [r7, #100] @ 0x64 HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); - 8001018: f107 0354 add.w r3, r7, #84 @ 0x54 - 800101c: 4619 mov r1, r3 - 800101e: f04f 4090 mov.w r0, #1207959552 @ 0x48000000 - 8001022: f001 ff01 bl 8002e28 + 80018f4: f107 0354 add.w r3, r7, #84 @ 0x54 + 80018f8: 4619 mov r1, r3 + 80018fa: f04f 4090 mov.w r0, #1207959552 @ 0x48000000 + 80018fe: f001 ff8f bl 8003820 /* USART2 interrupt Init */ HAL_NVIC_SetPriority(USART2_IRQn, 0, 0); - 8001026: 2200 movs r2, #0 - 8001028: 2100 movs r1, #0 - 800102a: 2026 movs r0, #38 @ 0x26 - 800102c: f001 fe07 bl 8002c3e + 8001902: 2200 movs r2, #0 + 8001904: 2100 movs r1, #0 + 8001906: 2026 movs r0, #38 @ 0x26 + 8001908: f001 fe95 bl 8003636 HAL_NVIC_EnableIRQ(USART2_IRQn); - 8001030: 2026 movs r0, #38 @ 0x26 - 8001032: f001 fe1e bl 8002c72 + 800190c: 2026 movs r0, #38 @ 0x26 + 800190e: f001 feac bl 800366a /* USER CODE END USART2_MspInit 1 */ } } - 8001036: bf00 nop - 8001038: 3768 adds r7, #104 @ 0x68 - 800103a: 46bd mov sp, r7 - 800103c: bd80 pop {r7, pc} - 800103e: bf00 nop - 8001040: 40004400 .word 0x40004400 - 8001044: 40021000 .word 0x40021000 + 8001912: bf00 nop + 8001914: 3768 adds r7, #104 @ 0x68 + 8001916: 46bd mov sp, r7 + 8001918: bd80 pop {r7, pc} + 800191a: bf00 nop + 800191c: 40004400 .word 0x40004400 + 8001920: 40021000 .word 0x40021000 -08001048 : +08001924 : /******************************************************************************/ /** * @brief This function handles Non maskable interrupt. */ void NMI_Handler(void) { - 8001048: b480 push {r7} - 800104a: af00 add r7, sp, #0 + 8001924: b480 push {r7} + 8001926: af00 add r7, sp, #0 /* USER CODE BEGIN NonMaskableInt_IRQn 0 */ /* USER CODE END NonMaskableInt_IRQn 0 */ /* USER CODE BEGIN NonMaskableInt_IRQn 1 */ while (1) - 800104c: bf00 nop - 800104e: e7fd b.n 800104c + 8001928: bf00 nop + 800192a: e7fd b.n 8001928 -08001050 : +0800192c : /** * @brief This function handles Hard fault interrupt. */ void HardFault_Handler(void) { - 8001050: b480 push {r7} - 8001052: af00 add r7, sp, #0 + 800192c: b480 push {r7} + 800192e: af00 add r7, sp, #0 /* USER CODE BEGIN HardFault_IRQn 0 */ /* USER CODE END HardFault_IRQn 0 */ while (1) - 8001054: bf00 nop - 8001056: e7fd b.n 8001054 + 8001930: bf00 nop + 8001932: e7fd b.n 8001930 -08001058 : +08001934 : /** * @brief This function handles Memory management fault. */ void MemManage_Handler(void) { - 8001058: b480 push {r7} - 800105a: af00 add r7, sp, #0 + 8001934: b480 push {r7} + 8001936: af00 add r7, sp, #0 /* USER CODE BEGIN MemoryManagement_IRQn 0 */ /* USER CODE END MemoryManagement_IRQn 0 */ while (1) - 800105c: bf00 nop - 800105e: e7fd b.n 800105c + 8001938: bf00 nop + 800193a: e7fd b.n 8001938 -08001060 : +0800193c : /** * @brief This function handles Prefetch fault, memory access fault. */ void BusFault_Handler(void) { - 8001060: b480 push {r7} - 8001062: af00 add r7, sp, #0 + 800193c: b480 push {r7} + 800193e: af00 add r7, sp, #0 /* USER CODE BEGIN BusFault_IRQn 0 */ /* USER CODE END BusFault_IRQn 0 */ while (1) - 8001064: bf00 nop - 8001066: e7fd b.n 8001064 + 8001940: bf00 nop + 8001942: e7fd b.n 8001940 -08001068 : +08001944 : /** * @brief This function handles Undefined instruction or illegal state. */ void UsageFault_Handler(void) { - 8001068: b480 push {r7} - 800106a: af00 add r7, sp, #0 + 8001944: b480 push {r7} + 8001946: af00 add r7, sp, #0 /* USER CODE BEGIN UsageFault_IRQn 0 */ /* USER CODE END UsageFault_IRQn 0 */ while (1) - 800106c: bf00 nop - 800106e: e7fd b.n 800106c + 8001948: bf00 nop + 800194a: e7fd b.n 8001948 -08001070 : +0800194c : /** * @brief This function handles System service call via SWI instruction. */ void SVC_Handler(void) { - 8001070: b480 push {r7} - 8001072: af00 add r7, sp, #0 + 800194c: b480 push {r7} + 800194e: af00 add r7, sp, #0 /* USER CODE END SVCall_IRQn 0 */ /* USER CODE BEGIN SVCall_IRQn 1 */ /* USER CODE END SVCall_IRQn 1 */ } - 8001074: bf00 nop - 8001076: 46bd mov sp, r7 - 8001078: f85d 7b04 ldr.w r7, [sp], #4 - 800107c: 4770 bx lr + 8001950: bf00 nop + 8001952: 46bd mov sp, r7 + 8001954: f85d 7b04 ldr.w r7, [sp], #4 + 8001958: 4770 bx lr -0800107e : +0800195a : /** * @brief This function handles Debug monitor. */ void DebugMon_Handler(void) { - 800107e: b480 push {r7} - 8001080: af00 add r7, sp, #0 + 800195a: b480 push {r7} + 800195c: af00 add r7, sp, #0 /* USER CODE END DebugMonitor_IRQn 0 */ /* USER CODE BEGIN DebugMonitor_IRQn 1 */ /* USER CODE END DebugMonitor_IRQn 1 */ } - 8001082: bf00 nop - 8001084: 46bd mov sp, r7 - 8001086: f85d 7b04 ldr.w r7, [sp], #4 - 800108a: 4770 bx lr + 800195e: bf00 nop + 8001960: 46bd mov sp, r7 + 8001962: f85d 7b04 ldr.w r7, [sp], #4 + 8001966: 4770 bx lr -0800108c : +08001968 : /** * @brief This function handles Pendable request for system service. */ void PendSV_Handler(void) { - 800108c: b480 push {r7} - 800108e: af00 add r7, sp, #0 + 8001968: b480 push {r7} + 800196a: af00 add r7, sp, #0 /* USER CODE END PendSV_IRQn 0 */ /* USER CODE BEGIN PendSV_IRQn 1 */ /* USER CODE END PendSV_IRQn 1 */ } - 8001090: bf00 nop - 8001092: 46bd mov sp, r7 - 8001094: f85d 7b04 ldr.w r7, [sp], #4 - 8001098: 4770 bx lr + 800196c: bf00 nop + 800196e: 46bd mov sp, r7 + 8001970: f85d 7b04 ldr.w r7, [sp], #4 + 8001974: 4770 bx lr -0800109a : +08001976 : /** * @brief This function handles System tick timer. */ void SysTick_Handler(void) { - 800109a: b580 push {r7, lr} - 800109c: af00 add r7, sp, #0 + 8001976: b580 push {r7, lr} + 8001978: af00 add r7, sp, #0 /* USER CODE BEGIN SysTick_IRQn 0 */ /* USER CODE END SysTick_IRQn 0 */ HAL_IncTick(); - 800109e: f000 f8a5 bl 80011ec + 800197a: f000 f8a5 bl 8001ac8 /* USER CODE BEGIN SysTick_IRQn 1 */ /* USER CODE END SysTick_IRQn 1 */ } - 80010a2: bf00 nop - 80010a4: bd80 pop {r7, pc} + 800197e: bf00 nop + 8001980: bd80 pop {r7, pc} ... -080010a8 : +08001984 : /** * @brief This function handles TIM2 global interrupt. */ void TIM2_IRQHandler(void) { - 80010a8: b580 push {r7, lr} - 80010aa: af00 add r7, sp, #0 + 8001984: b580 push {r7, lr} + 8001986: af00 add r7, sp, #0 /* USER CODE BEGIN TIM2_IRQn 0 */ /* USER CODE END TIM2_IRQn 0 */ HAL_TIM_IRQHandler(&htim2); - 80010ac: 4802 ldr r0, [pc, #8] @ (80010b8 ) - 80010ae: f003 f87e bl 80041ae + 8001988: 4802 ldr r0, [pc, #8] @ (8001994 ) + 800198a: f003 f90c bl 8004ba6 /* USER CODE BEGIN TIM2_IRQn 1 */ /* USER CODE END TIM2_IRQn 1 */ } - 80010b2: bf00 nop - 80010b4: bd80 pop {r7, pc} - 80010b6: bf00 nop - 80010b8: 20000100 .word 0x20000100 + 800198e: bf00 nop + 8001990: bd80 pop {r7, pc} + 8001992: bf00 nop + 8001994: 20000114 .word 0x20000114 -080010bc : +08001998 : /** * @brief This function handles USART2 global interrupt / USART2 wake-up interrupt through EXTI line 26. */ void USART2_IRQHandler(void) { - 80010bc: b580 push {r7, lr} - 80010be: af00 add r7, sp, #0 + 8001998: b580 push {r7, lr} + 800199a: af00 add r7, sp, #0 /* USER CODE BEGIN USART2_IRQn 0 */ /* USER CODE END USART2_IRQn 0 */ HAL_UART_IRQHandler(&huart2); - 80010c0: 4802 ldr r0, [pc, #8] @ (80010cc ) - 80010c2: f003 fe19 bl 8004cf8 + 800199c: 4802 ldr r0, [pc, #8] @ (80019a8 ) + 800199e: f003 fea7 bl 80056f0 /* USER CODE BEGIN USART2_IRQn 1 */ /* USER CODE END USART2_IRQn 1 */ } - 80010c6: bf00 nop - 80010c8: bd80 pop {r7, pc} - 80010ca: bf00 nop - 80010cc: 2000014c .word 0x2000014c + 80019a2: bf00 nop + 80019a4: bd80 pop {r7, pc} + 80019a6: bf00 nop + 80019a8: 20000160 .word 0x20000160 -080010d0 : +080019ac : * @param None * @retval None */ void SystemInit(void) { - 80010d0: b480 push {r7} - 80010d2: af00 add r7, sp, #0 + 80019ac: b480 push {r7} + 80019ae: af00 add r7, sp, #0 /* FPU settings ------------------------------------------------------------*/ #if (__FPU_PRESENT == 1) && (__FPU_USED == 1) SCB->CPACR |= ((3UL << (10*2))|(3UL << (11*2))); /* set CP10 and CP11 Full Access */ - 80010d4: 4b06 ldr r3, [pc, #24] @ (80010f0 ) - 80010d6: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 - 80010da: 4a05 ldr r2, [pc, #20] @ (80010f0 ) - 80010dc: f443 0370 orr.w r3, r3, #15728640 @ 0xf00000 - 80010e0: f8c2 3088 str.w r3, [r2, #136] @ 0x88 + 80019b0: 4b06 ldr r3, [pc, #24] @ (80019cc ) + 80019b2: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 + 80019b6: 4a05 ldr r2, [pc, #20] @ (80019cc ) + 80019b8: f443 0370 orr.w r3, r3, #15728640 @ 0xf00000 + 80019bc: f8c2 3088 str.w r3, [r2, #136] @ 0x88 /* Configure the Vector Table location add offset address ------------------*/ #if defined(USER_VECT_TAB_ADDRESS) SCB->VTOR = VECT_TAB_BASE_ADDRESS | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal SRAM */ #endif /* USER_VECT_TAB_ADDRESS */ } - 80010e4: bf00 nop - 80010e6: 46bd mov sp, r7 - 80010e8: f85d 7b04 ldr.w r7, [sp], #4 - 80010ec: 4770 bx lr - 80010ee: bf00 nop - 80010f0: e000ed00 .word 0xe000ed00 + 80019c0: bf00 nop + 80019c2: 46bd mov sp, r7 + 80019c4: f85d 7b04 ldr.w r7, [sp], #4 + 80019c8: 4770 bx lr + 80019ca: bf00 nop + 80019cc: e000ed00 .word 0xe000ed00 -080010f4 : +080019d0 : .section .text.Reset_Handler .weak Reset_Handler .type Reset_Handler, %function Reset_Handler: ldr r0, =_estack - 80010f4: 480d ldr r0, [pc, #52] @ (800112c ) + 80019d0: 480d ldr r0, [pc, #52] @ (8001a08 ) mov sp, r0 /* set stack pointer */ - 80010f6: 4685 mov sp, r0 + 80019d2: 4685 mov sp, r0 /* Call the clock system initialization function.*/ bl SystemInit - 80010f8: f7ff ffea bl 80010d0 + 80019d4: f7ff ffea bl 80019ac /* Copy the data segment initializers from flash to SRAM */ ldr r0, =_sdata - 80010fc: 480c ldr r0, [pc, #48] @ (8001130 ) + 80019d8: 480c ldr r0, [pc, #48] @ (8001a0c ) ldr r1, =_edata - 80010fe: 490d ldr r1, [pc, #52] @ (8001134 ) + 80019da: 490d ldr r1, [pc, #52] @ (8001a10 ) ldr r2, =_sidata - 8001100: 4a0d ldr r2, [pc, #52] @ (8001138 ) + 80019dc: 4a0d ldr r2, [pc, #52] @ (8001a14 ) movs r3, #0 - 8001102: 2300 movs r3, #0 + 80019de: 2300 movs r3, #0 b LoopCopyDataInit - 8001104: e002 b.n 800110c + 80019e0: e002 b.n 80019e8 -08001106 : +080019e2 : CopyDataInit: ldr r4, [r2, r3] - 8001106: 58d4 ldr r4, [r2, r3] + 80019e2: 58d4 ldr r4, [r2, r3] str r4, [r0, r3] - 8001108: 50c4 str r4, [r0, r3] + 80019e4: 50c4 str r4, [r0, r3] adds r3, r3, #4 - 800110a: 3304 adds r3, #4 + 80019e6: 3304 adds r3, #4 -0800110c : +080019e8 : LoopCopyDataInit: adds r4, r0, r3 - 800110c: 18c4 adds r4, r0, r3 + 80019e8: 18c4 adds r4, r0, r3 cmp r4, r1 - 800110e: 428c cmp r4, r1 + 80019ea: 428c cmp r4, r1 bcc CopyDataInit - 8001110: d3f9 bcc.n 8001106 + 80019ec: d3f9 bcc.n 80019e2 /* Zero fill the bss segment. */ ldr r2, =_sbss - 8001112: 4a0a ldr r2, [pc, #40] @ (800113c ) + 80019ee: 4a0a ldr r2, [pc, #40] @ (8001a18 ) ldr r4, =_ebss - 8001114: 4c0a ldr r4, [pc, #40] @ (8001140 ) + 80019f0: 4c0a ldr r4, [pc, #40] @ (8001a1c ) movs r3, #0 - 8001116: 2300 movs r3, #0 + 80019f2: 2300 movs r3, #0 b LoopFillZerobss - 8001118: e001 b.n 800111e + 80019f4: e001 b.n 80019fa -0800111a : +080019f6 : FillZerobss: str r3, [r2] - 800111a: 6013 str r3, [r2, #0] + 80019f6: 6013 str r3, [r2, #0] adds r2, r2, #4 - 800111c: 3204 adds r2, #4 + 80019f8: 3204 adds r2, #4 -0800111e : +080019fa : LoopFillZerobss: cmp r2, r4 - 800111e: 42a2 cmp r2, r4 + 80019fa: 42a2 cmp r2, r4 bcc FillZerobss - 8001120: d3fb bcc.n 800111a + 80019fc: d3fb bcc.n 80019f6 /* Call static constructors */ bl __libc_init_array - 8001122: f005 fdd7 bl 8006cd4 <__libc_init_array> + 80019fe: f005 fe65 bl 80076cc <__libc_init_array> /* Call the application's entry point.*/ bl main - 8001126: f7ff fa0d bl 8000544
+ 8001a02: f7ff f8a5 bl 8000b50
-0800112a : +08001a06 : LoopForever: b LoopForever - 800112a: e7fe b.n 800112a + 8001a06: e7fe b.n 8001a06 ldr r0, =_estack - 800112c: 20008000 .word 0x20008000 + 8001a08: 20008000 .word 0x20008000 ldr r0, =_sdata - 8001130: 20000000 .word 0x20000000 + 8001a0c: 20000000 .word 0x20000000 ldr r1, =_edata - 8001134: 2000000c .word 0x2000000c + 8001a10: 20000020 .word 0x20000020 ldr r2, =_sidata - 8001138: 08006d84 .word 0x08006d84 + 8001a14: 0800777c .word 0x0800777c ldr r2, =_sbss - 800113c: 2000000c .word 0x2000000c + 8001a18: 20000020 .word 0x20000020 ldr r4, =_ebss - 8001140: 20000244 .word 0x20000244 + 8001a1c: 20000268 .word 0x20000268 -08001144 : +08001a20 : * @retval : None */ .section .text.Default_Handler,"ax",%progbits Default_Handler: Infinite_Loop: b Infinite_Loop - 8001144: e7fe b.n 8001144 + 8001a20: e7fe b.n 8001a20 -08001146 : +08001a22 : * each 1ms in the SysTick_Handler() interrupt handler. * * @retval HAL status */ HAL_StatusTypeDef HAL_Init(void) { - 8001146: b580 push {r7, lr} - 8001148: b082 sub sp, #8 - 800114a: af00 add r7, sp, #0 + 8001a22: b580 push {r7, lr} + 8001a24: b082 sub sp, #8 + 8001a26: af00 add r7, sp, #0 HAL_StatusTypeDef status = HAL_OK; - 800114c: 2300 movs r3, #0 - 800114e: 71fb strb r3, [r7, #7] + 8001a28: 2300 movs r3, #0 + 8001a2a: 71fb strb r3, [r7, #7] #if (PREFETCH_ENABLE != 0U) __HAL_FLASH_PREFETCH_BUFFER_ENABLE(); #endif /* PREFETCH_ENABLE */ /* Set Interrupt Group Priority */ HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4); - 8001150: 2003 movs r0, #3 - 8001152: f001 fd69 bl 8002c28 + 8001a2c: 2003 movs r0, #3 + 8001a2e: f001 fdf7 bl 8003620 /* Use SysTick as time base source and configure 1ms tick (default clock after Reset is HSI) */ if (HAL_InitTick(TICK_INT_PRIORITY) != HAL_OK) - 8001156: 2000 movs r0, #0 - 8001158: f000 f80e bl 8001178 - 800115c: 4603 mov r3, r0 - 800115e: 2b00 cmp r3, #0 - 8001160: d002 beq.n 8001168 + 8001a32: 2000 movs r0, #0 + 8001a34: f000 f80e bl 8001a54 + 8001a38: 4603 mov r3, r0 + 8001a3a: 2b00 cmp r3, #0 + 8001a3c: d002 beq.n 8001a44 { status = HAL_ERROR; - 8001162: 2301 movs r3, #1 - 8001164: 71fb strb r3, [r7, #7] - 8001166: e001 b.n 800116c + 8001a3e: 2301 movs r3, #1 + 8001a40: 71fb strb r3, [r7, #7] + 8001a42: e001 b.n 8001a48 } else { /* Init the low level hardware */ HAL_MspInit(); - 8001168: f7ff fe3a bl 8000de0 + 8001a44: f7ff fe3a bl 80016bc } /* Return function status */ return status; - 800116c: 79fb ldrb r3, [r7, #7] + 8001a48: 79fb ldrb r3, [r7, #7] } - 800116e: 4618 mov r0, r3 - 8001170: 3708 adds r7, #8 - 8001172: 46bd mov sp, r7 - 8001174: bd80 pop {r7, pc} + 8001a4a: 4618 mov r0, r3 + 8001a4c: 3708 adds r7, #8 + 8001a4e: 46bd mov sp, r7 + 8001a50: bd80 pop {r7, pc} ... -08001178 : +08001a54 : * implementation in user file. * @param TickPriority: Tick interrupt priority. * @retval HAL status */ __weak HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority) { - 8001178: b580 push {r7, lr} - 800117a: b084 sub sp, #16 - 800117c: af00 add r7, sp, #0 - 800117e: 6078 str r0, [r7, #4] + 8001a54: b580 push {r7, lr} + 8001a56: b084 sub sp, #16 + 8001a58: af00 add r7, sp, #0 + 8001a5a: 6078 str r0, [r7, #4] HAL_StatusTypeDef status = HAL_OK; - 8001180: 2300 movs r3, #0 - 8001182: 73fb strb r3, [r7, #15] + 8001a5c: 2300 movs r3, #0 + 8001a5e: 73fb strb r3, [r7, #15] if (uwTickFreq != 0U) - 8001184: 4b16 ldr r3, [pc, #88] @ (80011e0 ) - 8001186: 681b ldr r3, [r3, #0] - 8001188: 2b00 cmp r3, #0 - 800118a: d022 beq.n 80011d2 + 8001a60: 4b16 ldr r3, [pc, #88] @ (8001abc ) + 8001a62: 681b ldr r3, [r3, #0] + 8001a64: 2b00 cmp r3, #0 + 8001a66: d022 beq.n 8001aae { /* Configure the SysTick to have interrupt in 1ms time basis*/ if (HAL_SYSTICK_Config(SystemCoreClock / (1000U / uwTickFreq)) == 0U) - 800118c: 4b15 ldr r3, [pc, #84] @ (80011e4 ) - 800118e: 681a ldr r2, [r3, #0] - 8001190: 4b13 ldr r3, [pc, #76] @ (80011e0 ) - 8001192: 681b ldr r3, [r3, #0] - 8001194: f44f 717a mov.w r1, #1000 @ 0x3e8 - 8001198: fbb1 f3f3 udiv r3, r1, r3 - 800119c: fbb2 f3f3 udiv r3, r2, r3 - 80011a0: 4618 mov r0, r3 - 80011a2: f001 fd74 bl 8002c8e - 80011a6: 4603 mov r3, r0 - 80011a8: 2b00 cmp r3, #0 - 80011aa: d10f bne.n 80011cc + 8001a68: 4b15 ldr r3, [pc, #84] @ (8001ac0 ) + 8001a6a: 681a ldr r2, [r3, #0] + 8001a6c: 4b13 ldr r3, [pc, #76] @ (8001abc ) + 8001a6e: 681b ldr r3, [r3, #0] + 8001a70: f44f 717a mov.w r1, #1000 @ 0x3e8 + 8001a74: fbb1 f3f3 udiv r3, r1, r3 + 8001a78: fbb2 f3f3 udiv r3, r2, r3 + 8001a7c: 4618 mov r0, r3 + 8001a7e: f001 fe02 bl 8003686 + 8001a82: 4603 mov r3, r0 + 8001a84: 2b00 cmp r3, #0 + 8001a86: d10f bne.n 8001aa8 { /* Configure the SysTick IRQ priority */ if (TickPriority < (1UL << __NVIC_PRIO_BITS)) - 80011ac: 687b ldr r3, [r7, #4] - 80011ae: 2b0f cmp r3, #15 - 80011b0: d809 bhi.n 80011c6 + 8001a88: 687b ldr r3, [r7, #4] + 8001a8a: 2b0f cmp r3, #15 + 8001a8c: d809 bhi.n 8001aa2 { HAL_NVIC_SetPriority(SysTick_IRQn, TickPriority, 0U); - 80011b2: 2200 movs r2, #0 - 80011b4: 6879 ldr r1, [r7, #4] - 80011b6: f04f 30ff mov.w r0, #4294967295 - 80011ba: f001 fd40 bl 8002c3e + 8001a8e: 2200 movs r2, #0 + 8001a90: 6879 ldr r1, [r7, #4] + 8001a92: f04f 30ff mov.w r0, #4294967295 + 8001a96: f001 fdce bl 8003636 uwTickPrio = TickPriority; - 80011be: 4a0a ldr r2, [pc, #40] @ (80011e8 ) - 80011c0: 687b ldr r3, [r7, #4] - 80011c2: 6013 str r3, [r2, #0] - 80011c4: e007 b.n 80011d6 + 8001a9a: 4a0a ldr r2, [pc, #40] @ (8001ac4 ) + 8001a9c: 687b ldr r3, [r7, #4] + 8001a9e: 6013 str r3, [r2, #0] + 8001aa0: e007 b.n 8001ab2 } else { status = HAL_ERROR; - 80011c6: 2301 movs r3, #1 - 80011c8: 73fb strb r3, [r7, #15] - 80011ca: e004 b.n 80011d6 + 8001aa2: 2301 movs r3, #1 + 8001aa4: 73fb strb r3, [r7, #15] + 8001aa6: e004 b.n 8001ab2 } } else { status = HAL_ERROR; - 80011cc: 2301 movs r3, #1 - 80011ce: 73fb strb r3, [r7, #15] - 80011d0: e001 b.n 80011d6 + 8001aa8: 2301 movs r3, #1 + 8001aaa: 73fb strb r3, [r7, #15] + 8001aac: e001 b.n 8001ab2 } } else { status = HAL_ERROR; - 80011d2: 2301 movs r3, #1 - 80011d4: 73fb strb r3, [r7, #15] + 8001aae: 2301 movs r3, #1 + 8001ab0: 73fb strb r3, [r7, #15] } /* Return function status */ return status; - 80011d6: 7bfb ldrb r3, [r7, #15] + 8001ab2: 7bfb ldrb r3, [r7, #15] } - 80011d8: 4618 mov r0, r3 - 80011da: 3710 adds r7, #16 - 80011dc: 46bd mov sp, r7 - 80011de: bd80 pop {r7, pc} - 80011e0: 20000008 .word 0x20000008 - 80011e4: 20000000 .word 0x20000000 - 80011e8: 20000004 .word 0x20000004 + 8001ab4: 4618 mov r0, r3 + 8001ab6: 3710 adds r7, #16 + 8001ab8: 46bd mov sp, r7 + 8001aba: bd80 pop {r7, pc} + 8001abc: 2000001c .word 0x2000001c + 8001ac0: 20000014 .word 0x20000014 + 8001ac4: 20000018 .word 0x20000018 -080011ec : +08001ac8 : * @note This function is declared as __weak to be overwritten in case of other * implementations in user file. * @retval None */ __weak void HAL_IncTick(void) { - 80011ec: b480 push {r7} - 80011ee: af00 add r7, sp, #0 + 8001ac8: b480 push {r7} + 8001aca: af00 add r7, sp, #0 uwTick += uwTickFreq; - 80011f0: 4b05 ldr r3, [pc, #20] @ (8001208 ) - 80011f2: 681a ldr r2, [r3, #0] - 80011f4: 4b05 ldr r3, [pc, #20] @ (800120c ) - 80011f6: 681b ldr r3, [r3, #0] - 80011f8: 4413 add r3, r2 - 80011fa: 4a03 ldr r2, [pc, #12] @ (8001208 ) - 80011fc: 6013 str r3, [r2, #0] + 8001acc: 4b05 ldr r3, [pc, #20] @ (8001ae4 ) + 8001ace: 681a ldr r2, [r3, #0] + 8001ad0: 4b05 ldr r3, [pc, #20] @ (8001ae8 ) + 8001ad2: 681b ldr r3, [r3, #0] + 8001ad4: 4413 add r3, r2 + 8001ad6: 4a03 ldr r2, [pc, #12] @ (8001ae4 ) + 8001ad8: 6013 str r3, [r2, #0] } - 80011fe: bf00 nop - 8001200: 46bd mov sp, r7 - 8001202: f85d 7b04 ldr.w r7, [sp], #4 - 8001206: 4770 bx lr - 8001208: 20000240 .word 0x20000240 - 800120c: 20000008 .word 0x20000008 + 8001ada: bf00 nop + 8001adc: 46bd mov sp, r7 + 8001ade: f85d 7b04 ldr.w r7, [sp], #4 + 8001ae2: 4770 bx lr + 8001ae4: 20000264 .word 0x20000264 + 8001ae8: 2000001c .word 0x2000001c -08001210 : +08001aec : * @note This function is declared as __weak to be overwritten in case of other * implementations in user file. * @retval tick value */ __weak uint32_t HAL_GetTick(void) { - 8001210: b480 push {r7} - 8001212: af00 add r7, sp, #0 + 8001aec: b480 push {r7} + 8001aee: af00 add r7, sp, #0 return uwTick; - 8001214: 4b03 ldr r3, [pc, #12] @ (8001224 ) - 8001216: 681b ldr r3, [r3, #0] + 8001af0: 4b03 ldr r3, [pc, #12] @ (8001b00 ) + 8001af2: 681b ldr r3, [r3, #0] } - 8001218: 4618 mov r0, r3 - 800121a: 46bd mov sp, r7 - 800121c: f85d 7b04 ldr.w r7, [sp], #4 - 8001220: 4770 bx lr - 8001222: bf00 nop - 8001224: 20000240 .word 0x20000240 + 8001af4: 4618 mov r0, r3 + 8001af6: 46bd mov sp, r7 + 8001af8: f85d 7b04 ldr.w r7, [sp], #4 + 8001afc: 4770 bx lr + 8001afe: bf00 nop + 8001b00: 20000264 .word 0x20000264 -08001228 : +08001b04 : * @arg @ref LL_ADC_CLOCK_ASYNC_DIV128 * @arg @ref LL_ADC_CLOCK_ASYNC_DIV256 * @retval None */ __STATIC_INLINE void LL_ADC_SetCommonClock(ADC_Common_TypeDef *ADCxy_COMMON, uint32_t CommonClock) { - 8001228: b480 push {r7} - 800122a: b083 sub sp, #12 - 800122c: af00 add r7, sp, #0 - 800122e: 6078 str r0, [r7, #4] - 8001230: 6039 str r1, [r7, #0] + 8001b04: b480 push {r7} + 8001b06: b083 sub sp, #12 + 8001b08: af00 add r7, sp, #0 + 8001b0a: 6078 str r0, [r7, #4] + 8001b0c: 6039 str r1, [r7, #0] MODIFY_REG(ADCxy_COMMON->CCR, ADC_CCR_CKMODE | ADC_CCR_PRESC, CommonClock); - 8001232: 687b ldr r3, [r7, #4] - 8001234: 689b ldr r3, [r3, #8] - 8001236: f423 127c bic.w r2, r3, #4128768 @ 0x3f0000 - 800123a: 683b ldr r3, [r7, #0] - 800123c: 431a orrs r2, r3 - 800123e: 687b ldr r3, [r7, #4] - 8001240: 609a str r2, [r3, #8] + 8001b0e: 687b ldr r3, [r7, #4] + 8001b10: 689b ldr r3, [r3, #8] + 8001b12: f423 127c bic.w r2, r3, #4128768 @ 0x3f0000 + 8001b16: 683b ldr r3, [r7, #0] + 8001b18: 431a orrs r2, r3 + 8001b1a: 687b ldr r3, [r7, #4] + 8001b1c: 609a str r2, [r3, #8] } - 8001242: bf00 nop - 8001244: 370c adds r7, #12 - 8001246: 46bd mov sp, r7 - 8001248: f85d 7b04 ldr.w r7, [sp], #4 - 800124c: 4770 bx lr + 8001b1e: bf00 nop + 8001b20: 370c adds r7, #12 + 8001b22: 46bd mov sp, r7 + 8001b24: f85d 7b04 ldr.w r7, [sp], #4 + 8001b28: 4770 bx lr -0800124e : +08001b2a : * @arg @ref LL_ADC_PATH_INTERNAL_TEMPSENSOR * @arg @ref LL_ADC_PATH_INTERNAL_VBAT * @retval None */ __STATIC_INLINE void LL_ADC_SetCommonPathInternalCh(ADC_Common_TypeDef *ADCxy_COMMON, uint32_t PathInternal) { - 800124e: b480 push {r7} - 8001250: b083 sub sp, #12 - 8001252: af00 add r7, sp, #0 - 8001254: 6078 str r0, [r7, #4] - 8001256: 6039 str r1, [r7, #0] + 8001b2a: b480 push {r7} + 8001b2c: b083 sub sp, #12 + 8001b2e: af00 add r7, sp, #0 + 8001b30: 6078 str r0, [r7, #4] + 8001b32: 6039 str r1, [r7, #0] MODIFY_REG(ADCxy_COMMON->CCR, ADC_CCR_VREFEN | ADC_CCR_VSENSESEL | ADC_CCR_VBATSEL, PathInternal); - 8001258: 687b ldr r3, [r7, #4] - 800125a: 689b ldr r3, [r3, #8] - 800125c: f023 72e0 bic.w r2, r3, #29360128 @ 0x1c00000 - 8001260: 683b ldr r3, [r7, #0] - 8001262: 431a orrs r2, r3 - 8001264: 687b ldr r3, [r7, #4] - 8001266: 609a str r2, [r3, #8] + 8001b34: 687b ldr r3, [r7, #4] + 8001b36: 689b ldr r3, [r3, #8] + 8001b38: f023 72e0 bic.w r2, r3, #29360128 @ 0x1c00000 + 8001b3c: 683b ldr r3, [r7, #0] + 8001b3e: 431a orrs r2, r3 + 8001b40: 687b ldr r3, [r7, #4] + 8001b42: 609a str r2, [r3, #8] } - 8001268: bf00 nop - 800126a: 370c adds r7, #12 - 800126c: 46bd mov sp, r7 - 800126e: f85d 7b04 ldr.w r7, [sp], #4 - 8001272: 4770 bx lr + 8001b44: bf00 nop + 8001b46: 370c adds r7, #12 + 8001b48: 46bd mov sp, r7 + 8001b4a: f85d 7b04 ldr.w r7, [sp], #4 + 8001b4e: 4770 bx lr -08001274 : +08001b50 : * @arg @ref LL_ADC_PATH_INTERNAL_VREFINT * @arg @ref LL_ADC_PATH_INTERNAL_TEMPSENSOR * @arg @ref LL_ADC_PATH_INTERNAL_VBAT */ __STATIC_INLINE uint32_t LL_ADC_GetCommonPathInternalCh(const ADC_Common_TypeDef *ADCxy_COMMON) { - 8001274: b480 push {r7} - 8001276: b083 sub sp, #12 - 8001278: af00 add r7, sp, #0 - 800127a: 6078 str r0, [r7, #4] + 8001b50: b480 push {r7} + 8001b52: b083 sub sp, #12 + 8001b54: af00 add r7, sp, #0 + 8001b56: 6078 str r0, [r7, #4] return (uint32_t)(READ_BIT(ADCxy_COMMON->CCR, ADC_CCR_VREFEN | ADC_CCR_VSENSESEL | ADC_CCR_VBATSEL)); - 800127c: 687b ldr r3, [r7, #4] - 800127e: 689b ldr r3, [r3, #8] - 8001280: f003 73e0 and.w r3, r3, #29360128 @ 0x1c00000 + 8001b58: 687b ldr r3, [r7, #4] + 8001b5a: 689b ldr r3, [r3, #8] + 8001b5c: f003 73e0 and.w r3, r3, #29360128 @ 0x1c00000 } - 8001284: 4618 mov r0, r3 - 8001286: 370c adds r7, #12 - 8001288: 46bd mov sp, r7 - 800128a: f85d 7b04 ldr.w r7, [sp], #4 - 800128e: 4770 bx lr + 8001b60: 4618 mov r0, r3 + 8001b62: 370c adds r7, #12 + 8001b64: 46bd mov sp, r7 + 8001b66: f85d 7b04 ldr.w r7, [sp], #4 + 8001b6a: 4770 bx lr -08001290 : +08001b6c : * (fADC) to convert in 12-bit resolution.\n * @param OffsetLevel Value between Min_Data=0x000 and Max_Data=0xFFF * @retval None */ __STATIC_INLINE void LL_ADC_SetOffset(ADC_TypeDef *ADCx, uint32_t Offsety, uint32_t Channel, uint32_t OffsetLevel) { - 8001290: b480 push {r7} - 8001292: b087 sub sp, #28 - 8001294: af00 add r7, sp, #0 - 8001296: 60f8 str r0, [r7, #12] - 8001298: 60b9 str r1, [r7, #8] - 800129a: 607a str r2, [r7, #4] - 800129c: 603b str r3, [r7, #0] + 8001b6c: b480 push {r7} + 8001b6e: b087 sub sp, #28 + 8001b70: af00 add r7, sp, #0 + 8001b72: 60f8 str r0, [r7, #12] + 8001b74: 60b9 str r1, [r7, #8] + 8001b76: 607a str r2, [r7, #4] + 8001b78: 603b str r3, [r7, #0] __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->OFR1, Offsety); - 800129e: 68fb ldr r3, [r7, #12] - 80012a0: 3360 adds r3, #96 @ 0x60 - 80012a2: 461a mov r2, r3 - 80012a4: 68bb ldr r3, [r7, #8] - 80012a6: 009b lsls r3, r3, #2 - 80012a8: 4413 add r3, r2 - 80012aa: 617b str r3, [r7, #20] + 8001b7a: 68fb ldr r3, [r7, #12] + 8001b7c: 3360 adds r3, #96 @ 0x60 + 8001b7e: 461a mov r2, r3 + 8001b80: 68bb ldr r3, [r7, #8] + 8001b82: 009b lsls r3, r3, #2 + 8001b84: 4413 add r3, r2 + 8001b86: 617b str r3, [r7, #20] MODIFY_REG(*preg, - 80012ac: 697b ldr r3, [r7, #20] - 80012ae: 681a ldr r2, [r3, #0] - 80012b0: 4b08 ldr r3, [pc, #32] @ (80012d4 ) - 80012b2: 4013 ands r3, r2 - 80012b4: 687a ldr r2, [r7, #4] - 80012b6: f002 41f8 and.w r1, r2, #2080374784 @ 0x7c000000 - 80012ba: 683a ldr r2, [r7, #0] - 80012bc: 430a orrs r2, r1 - 80012be: 4313 orrs r3, r2 - 80012c0: f043 4200 orr.w r2, r3, #2147483648 @ 0x80000000 - 80012c4: 697b ldr r3, [r7, #20] - 80012c6: 601a str r2, [r3, #0] + 8001b88: 697b ldr r3, [r7, #20] + 8001b8a: 681a ldr r2, [r3, #0] + 8001b8c: 4b08 ldr r3, [pc, #32] @ (8001bb0 ) + 8001b8e: 4013 ands r3, r2 + 8001b90: 687a ldr r2, [r7, #4] + 8001b92: f002 41f8 and.w r1, r2, #2080374784 @ 0x7c000000 + 8001b96: 683a ldr r2, [r7, #0] + 8001b98: 430a orrs r2, r1 + 8001b9a: 4313 orrs r3, r2 + 8001b9c: f043 4200 orr.w r2, r3, #2147483648 @ 0x80000000 + 8001ba0: 697b ldr r3, [r7, #20] + 8001ba2: 601a str r2, [r3, #0] ADC_OFR1_OFFSET1_EN | ADC_OFR1_OFFSET1_CH | ADC_OFR1_OFFSET1, ADC_OFR1_OFFSET1_EN | (Channel & ADC_CHANNEL_ID_NUMBER_MASK) | OffsetLevel); } - 80012c8: bf00 nop - 80012ca: 371c adds r7, #28 - 80012cc: 46bd mov sp, r7 - 80012ce: f85d 7b04 ldr.w r7, [sp], #4 - 80012d2: 4770 bx lr - 80012d4: 03fff000 .word 0x03fff000 + 8001ba4: bf00 nop + 8001ba6: 371c adds r7, #28 + 8001ba8: 46bd mov sp, r7 + 8001baa: f85d 7b04 ldr.w r7, [sp], #4 + 8001bae: 4770 bx lr + 8001bb0: 03fff000 .word 0x03fff000 -080012d8 : +08001bb4 : * (1, 2, 3, 4, 5, 7) For ADC channel read back from ADC register, * comparison with internal channel parameter to be done * using helper macro @ref __LL_ADC_CHANNEL_INTERNAL_TO_EXTERNAL(). */ __STATIC_INLINE uint32_t LL_ADC_GetOffsetChannel(const ADC_TypeDef *ADCx, uint32_t Offsety) { - 80012d8: b480 push {r7} - 80012da: b085 sub sp, #20 - 80012dc: af00 add r7, sp, #0 - 80012de: 6078 str r0, [r7, #4] - 80012e0: 6039 str r1, [r7, #0] + 8001bb4: b480 push {r7} + 8001bb6: b085 sub sp, #20 + 8001bb8: af00 add r7, sp, #0 + 8001bba: 6078 str r0, [r7, #4] + 8001bbc: 6039 str r1, [r7, #0] const __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->OFR1, Offsety); - 80012e2: 687b ldr r3, [r7, #4] - 80012e4: 3360 adds r3, #96 @ 0x60 - 80012e6: 461a mov r2, r3 - 80012e8: 683b ldr r3, [r7, #0] - 80012ea: 009b lsls r3, r3, #2 - 80012ec: 4413 add r3, r2 - 80012ee: 60fb str r3, [r7, #12] + 8001bbe: 687b ldr r3, [r7, #4] + 8001bc0: 3360 adds r3, #96 @ 0x60 + 8001bc2: 461a mov r2, r3 + 8001bc4: 683b ldr r3, [r7, #0] + 8001bc6: 009b lsls r3, r3, #2 + 8001bc8: 4413 add r3, r2 + 8001bca: 60fb str r3, [r7, #12] return (uint32_t) READ_BIT(*preg, ADC_OFR1_OFFSET1_CH); - 80012f0: 68fb ldr r3, [r7, #12] - 80012f2: 681b ldr r3, [r3, #0] - 80012f4: f003 43f8 and.w r3, r3, #2080374784 @ 0x7c000000 + 8001bcc: 68fb ldr r3, [r7, #12] + 8001bce: 681b ldr r3, [r3, #0] + 8001bd0: f003 43f8 and.w r3, r3, #2080374784 @ 0x7c000000 } - 80012f8: 4618 mov r0, r3 - 80012fa: 3714 adds r7, #20 - 80012fc: 46bd mov sp, r7 - 80012fe: f85d 7b04 ldr.w r7, [sp], #4 - 8001302: 4770 bx lr + 8001bd4: 4618 mov r0, r3 + 8001bd6: 3714 adds r7, #20 + 8001bd8: 46bd mov sp, r7 + 8001bda: f85d 7b04 ldr.w r7, [sp], #4 + 8001bde: 4770 bx lr -08001304 : +08001be0 : * @arg @ref LL_ADC_OFFSET_DISABLE * @arg @ref LL_ADC_OFFSET_ENABLE * @retval None */ __STATIC_INLINE void LL_ADC_SetOffsetState(ADC_TypeDef *ADCx, uint32_t Offsety, uint32_t OffsetState) { - 8001304: b480 push {r7} - 8001306: b087 sub sp, #28 - 8001308: af00 add r7, sp, #0 - 800130a: 60f8 str r0, [r7, #12] - 800130c: 60b9 str r1, [r7, #8] - 800130e: 607a str r2, [r7, #4] + 8001be0: b480 push {r7} + 8001be2: b087 sub sp, #28 + 8001be4: af00 add r7, sp, #0 + 8001be6: 60f8 str r0, [r7, #12] + 8001be8: 60b9 str r1, [r7, #8] + 8001bea: 607a str r2, [r7, #4] __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->OFR1, Offsety); - 8001310: 68fb ldr r3, [r7, #12] - 8001312: 3360 adds r3, #96 @ 0x60 - 8001314: 461a mov r2, r3 - 8001316: 68bb ldr r3, [r7, #8] - 8001318: 009b lsls r3, r3, #2 - 800131a: 4413 add r3, r2 - 800131c: 617b str r3, [r7, #20] + 8001bec: 68fb ldr r3, [r7, #12] + 8001bee: 3360 adds r3, #96 @ 0x60 + 8001bf0: 461a mov r2, r3 + 8001bf2: 68bb ldr r3, [r7, #8] + 8001bf4: 009b lsls r3, r3, #2 + 8001bf6: 4413 add r3, r2 + 8001bf8: 617b str r3, [r7, #20] MODIFY_REG(*preg, - 800131e: 697b ldr r3, [r7, #20] - 8001320: 681b ldr r3, [r3, #0] - 8001322: f023 4200 bic.w r2, r3, #2147483648 @ 0x80000000 - 8001326: 687b ldr r3, [r7, #4] - 8001328: 431a orrs r2, r3 - 800132a: 697b ldr r3, [r7, #20] - 800132c: 601a str r2, [r3, #0] + 8001bfa: 697b ldr r3, [r7, #20] + 8001bfc: 681b ldr r3, [r3, #0] + 8001bfe: f023 4200 bic.w r2, r3, #2147483648 @ 0x80000000 + 8001c02: 687b ldr r3, [r7, #4] + 8001c04: 431a orrs r2, r3 + 8001c06: 697b ldr r3, [r7, #20] + 8001c08: 601a str r2, [r3, #0] ADC_OFR1_OFFSET1_EN, OffsetState); } - 800132e: bf00 nop - 8001330: 371c adds r7, #28 - 8001332: 46bd mov sp, r7 - 8001334: f85d 7b04 ldr.w r7, [sp], #4 - 8001338: 4770 bx lr + 8001c0a: bf00 nop + 8001c0c: 371c adds r7, #28 + 8001c0e: 46bd mov sp, r7 + 8001c10: f85d 7b04 ldr.w r7, [sp], #4 + 8001c14: 4770 bx lr -0800133a : +08001c16 : * @arg @ref LL_ADC_OFFSET_SIGN_NEGATIVE * @arg @ref LL_ADC_OFFSET_SIGN_POSITIVE * @retval None */ __STATIC_INLINE void LL_ADC_SetOffsetSign(ADC_TypeDef *ADCx, uint32_t Offsety, uint32_t OffsetSign) { - 800133a: b480 push {r7} - 800133c: b087 sub sp, #28 - 800133e: af00 add r7, sp, #0 - 8001340: 60f8 str r0, [r7, #12] - 8001342: 60b9 str r1, [r7, #8] - 8001344: 607a str r2, [r7, #4] + 8001c16: b480 push {r7} + 8001c18: b087 sub sp, #28 + 8001c1a: af00 add r7, sp, #0 + 8001c1c: 60f8 str r0, [r7, #12] + 8001c1e: 60b9 str r1, [r7, #8] + 8001c20: 607a str r2, [r7, #4] __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->OFR1, Offsety); - 8001346: 68fb ldr r3, [r7, #12] - 8001348: 3360 adds r3, #96 @ 0x60 - 800134a: 461a mov r2, r3 - 800134c: 68bb ldr r3, [r7, #8] - 800134e: 009b lsls r3, r3, #2 - 8001350: 4413 add r3, r2 - 8001352: 617b str r3, [r7, #20] + 8001c22: 68fb ldr r3, [r7, #12] + 8001c24: 3360 adds r3, #96 @ 0x60 + 8001c26: 461a mov r2, r3 + 8001c28: 68bb ldr r3, [r7, #8] + 8001c2a: 009b lsls r3, r3, #2 + 8001c2c: 4413 add r3, r2 + 8001c2e: 617b str r3, [r7, #20] MODIFY_REG(*preg, - 8001354: 697b ldr r3, [r7, #20] - 8001356: 681b ldr r3, [r3, #0] - 8001358: f023 7280 bic.w r2, r3, #16777216 @ 0x1000000 - 800135c: 687b ldr r3, [r7, #4] - 800135e: 431a orrs r2, r3 - 8001360: 697b ldr r3, [r7, #20] - 8001362: 601a str r2, [r3, #0] + 8001c30: 697b ldr r3, [r7, #20] + 8001c32: 681b ldr r3, [r3, #0] + 8001c34: f023 7280 bic.w r2, r3, #16777216 @ 0x1000000 + 8001c38: 687b ldr r3, [r7, #4] + 8001c3a: 431a orrs r2, r3 + 8001c3c: 697b ldr r3, [r7, #20] + 8001c3e: 601a str r2, [r3, #0] ADC_OFR1_OFFSETPOS, OffsetSign); } - 8001364: bf00 nop - 8001366: 371c adds r7, #28 - 8001368: 46bd mov sp, r7 - 800136a: f85d 7b04 ldr.w r7, [sp], #4 - 800136e: 4770 bx lr + 8001c40: bf00 nop + 8001c42: 371c adds r7, #28 + 8001c44: 46bd mov sp, r7 + 8001c46: f85d 7b04 ldr.w r7, [sp], #4 + 8001c4a: 4770 bx lr -08001370 : +08001c4c : * @arg @ref LL_ADC_OFFSET_SATURATION_ENABLE * @arg @ref LL_ADC_OFFSET_SATURATION_DISABLE * @retval None */ __STATIC_INLINE void LL_ADC_SetOffsetSaturation(ADC_TypeDef *ADCx, uint32_t Offsety, uint32_t OffsetSaturation) { - 8001370: b480 push {r7} - 8001372: b087 sub sp, #28 - 8001374: af00 add r7, sp, #0 - 8001376: 60f8 str r0, [r7, #12] - 8001378: 60b9 str r1, [r7, #8] - 800137a: 607a str r2, [r7, #4] + 8001c4c: b480 push {r7} + 8001c4e: b087 sub sp, #28 + 8001c50: af00 add r7, sp, #0 + 8001c52: 60f8 str r0, [r7, #12] + 8001c54: 60b9 str r1, [r7, #8] + 8001c56: 607a str r2, [r7, #4] __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->OFR1, Offsety); - 800137c: 68fb ldr r3, [r7, #12] - 800137e: 3360 adds r3, #96 @ 0x60 - 8001380: 461a mov r2, r3 - 8001382: 68bb ldr r3, [r7, #8] - 8001384: 009b lsls r3, r3, #2 - 8001386: 4413 add r3, r2 - 8001388: 617b str r3, [r7, #20] + 8001c58: 68fb ldr r3, [r7, #12] + 8001c5a: 3360 adds r3, #96 @ 0x60 + 8001c5c: 461a mov r2, r3 + 8001c5e: 68bb ldr r3, [r7, #8] + 8001c60: 009b lsls r3, r3, #2 + 8001c62: 4413 add r3, r2 + 8001c64: 617b str r3, [r7, #20] MODIFY_REG(*preg, - 800138a: 697b ldr r3, [r7, #20] - 800138c: 681b ldr r3, [r3, #0] - 800138e: f023 7200 bic.w r2, r3, #33554432 @ 0x2000000 - 8001392: 687b ldr r3, [r7, #4] - 8001394: 431a orrs r2, r3 - 8001396: 697b ldr r3, [r7, #20] - 8001398: 601a str r2, [r3, #0] + 8001c66: 697b ldr r3, [r7, #20] + 8001c68: 681b ldr r3, [r3, #0] + 8001c6a: f023 7200 bic.w r2, r3, #33554432 @ 0x2000000 + 8001c6e: 687b ldr r3, [r7, #4] + 8001c70: 431a orrs r2, r3 + 8001c72: 697b ldr r3, [r7, #20] + 8001c74: 601a str r2, [r3, #0] ADC_OFR1_SATEN, OffsetSaturation); } - 800139a: bf00 nop - 800139c: 371c adds r7, #28 - 800139e: 46bd mov sp, r7 - 80013a0: f85d 7b04 ldr.w r7, [sp], #4 - 80013a4: 4770 bx lr + 8001c76: bf00 nop + 8001c78: 371c adds r7, #28 + 8001c7a: 46bd mov sp, r7 + 8001c7c: f85d 7b04 ldr.w r7, [sp], #4 + 8001c80: 4770 bx lr -080013a6 : +08001c82 : * @arg @ref LL_ADC_SAMPLINGTIME_COMMON_DEFAULT * @arg @ref LL_ADC_SAMPLINGTIME_COMMON_3C5_REPL_2C5 * @retval None */ __STATIC_INLINE void LL_ADC_SetSamplingTimeCommonConfig(ADC_TypeDef *ADCx, uint32_t SamplingTimeCommonConfig) { - 80013a6: b480 push {r7} - 80013a8: b083 sub sp, #12 - 80013aa: af00 add r7, sp, #0 - 80013ac: 6078 str r0, [r7, #4] - 80013ae: 6039 str r1, [r7, #0] + 8001c82: b480 push {r7} + 8001c84: b083 sub sp, #12 + 8001c86: af00 add r7, sp, #0 + 8001c88: 6078 str r0, [r7, #4] + 8001c8a: 6039 str r1, [r7, #0] MODIFY_REG(ADCx->SMPR1, ADC_SMPR1_SMPPLUS, SamplingTimeCommonConfig); - 80013b0: 687b ldr r3, [r7, #4] - 80013b2: 695b ldr r3, [r3, #20] - 80013b4: f023 4200 bic.w r2, r3, #2147483648 @ 0x80000000 - 80013b8: 683b ldr r3, [r7, #0] - 80013ba: 431a orrs r2, r3 - 80013bc: 687b ldr r3, [r7, #4] - 80013be: 615a str r2, [r3, #20] + 8001c8c: 687b ldr r3, [r7, #4] + 8001c8e: 695b ldr r3, [r3, #20] + 8001c90: f023 4200 bic.w r2, r3, #2147483648 @ 0x80000000 + 8001c94: 683b ldr r3, [r7, #0] + 8001c96: 431a orrs r2, r3 + 8001c98: 687b ldr r3, [r7, #4] + 8001c9a: 615a str r2, [r3, #20] } - 80013c0: bf00 nop - 80013c2: 370c adds r7, #12 - 80013c4: 46bd mov sp, r7 - 80013c6: f85d 7b04 ldr.w r7, [sp], #4 - 80013ca: 4770 bx lr + 8001c9c: bf00 nop + 8001c9e: 370c adds r7, #12 + 8001ca0: 46bd mov sp, r7 + 8001ca2: f85d 7b04 ldr.w r7, [sp], #4 + 8001ca6: 4770 bx lr -080013cc : +08001ca8 : * @param ADCx ADC instance * @retval Value "0" if trigger source external trigger * Value "1" if trigger source SW start. */ __STATIC_INLINE uint32_t LL_ADC_REG_IsTriggerSourceSWStart(const ADC_TypeDef *ADCx) { - 80013cc: b480 push {r7} - 80013ce: b083 sub sp, #12 - 80013d0: af00 add r7, sp, #0 - 80013d2: 6078 str r0, [r7, #4] + 8001ca8: b480 push {r7} + 8001caa: b083 sub sp, #12 + 8001cac: af00 add r7, sp, #0 + 8001cae: 6078 str r0, [r7, #4] return ((READ_BIT(ADCx->CFGR, ADC_CFGR_EXTEN) == (LL_ADC_REG_TRIG_SOFTWARE & ADC_CFGR_EXTEN)) ? 1UL : 0UL); - 80013d4: 687b ldr r3, [r7, #4] - 80013d6: 68db ldr r3, [r3, #12] - 80013d8: f403 6340 and.w r3, r3, #3072 @ 0xc00 - 80013dc: 2b00 cmp r3, #0 - 80013de: d101 bne.n 80013e4 - 80013e0: 2301 movs r3, #1 - 80013e2: e000 b.n 80013e6 - 80013e4: 2300 movs r3, #0 + 8001cb0: 687b ldr r3, [r7, #4] + 8001cb2: 68db ldr r3, [r3, #12] + 8001cb4: f403 6340 and.w r3, r3, #3072 @ 0xc00 + 8001cb8: 2b00 cmp r3, #0 + 8001cba: d101 bne.n 8001cc0 + 8001cbc: 2301 movs r3, #1 + 8001cbe: e000 b.n 8001cc2 + 8001cc0: 2300 movs r3, #0 } - 80013e6: 4618 mov r0, r3 - 80013e8: 370c adds r7, #12 - 80013ea: 46bd mov sp, r7 - 80013ec: f85d 7b04 ldr.w r7, [sp], #4 - 80013f0: 4770 bx lr + 8001cc2: 4618 mov r0, r3 + 8001cc4: 370c adds r7, #12 + 8001cc6: 46bd mov sp, r7 + 8001cc8: f85d 7b04 ldr.w r7, [sp], #4 + 8001ccc: 4770 bx lr -080013f2 : +08001cce : * Other channels are slow channels allows: 6.5 (sampling) + 12.5 (conversion) = 19 ADC clock cycles * (fADC) to convert in 12-bit resolution.\n * @retval None */ __STATIC_INLINE void LL_ADC_REG_SetSequencerRanks(ADC_TypeDef *ADCx, uint32_t Rank, uint32_t Channel) { - 80013f2: b480 push {r7} - 80013f4: b087 sub sp, #28 - 80013f6: af00 add r7, sp, #0 - 80013f8: 60f8 str r0, [r7, #12] - 80013fa: 60b9 str r1, [r7, #8] - 80013fc: 607a str r2, [r7, #4] + 8001cce: b480 push {r7} + 8001cd0: b087 sub sp, #28 + 8001cd2: af00 add r7, sp, #0 + 8001cd4: 60f8 str r0, [r7, #12] + 8001cd6: 60b9 str r1, [r7, #8] + 8001cd8: 607a str r2, [r7, #4] /* Set bits with content of parameter "Channel" with bits position */ /* in register and register position depending on parameter "Rank". */ /* Parameters "Rank" and "Channel" are used with masks because containing */ /* other bits reserved for other purpose. */ __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->SQR1, - 80013fe: 68fb ldr r3, [r7, #12] - 8001400: 3330 adds r3, #48 @ 0x30 - 8001402: 461a mov r2, r3 - 8001404: 68bb ldr r3, [r7, #8] - 8001406: 0a1b lsrs r3, r3, #8 - 8001408: 009b lsls r3, r3, #2 - 800140a: f003 030c and.w r3, r3, #12 - 800140e: 4413 add r3, r2 - 8001410: 617b str r3, [r7, #20] + 8001cda: 68fb ldr r3, [r7, #12] + 8001cdc: 3330 adds r3, #48 @ 0x30 + 8001cde: 461a mov r2, r3 + 8001ce0: 68bb ldr r3, [r7, #8] + 8001ce2: 0a1b lsrs r3, r3, #8 + 8001ce4: 009b lsls r3, r3, #2 + 8001ce6: f003 030c and.w r3, r3, #12 + 8001cea: 4413 add r3, r2 + 8001cec: 617b str r3, [r7, #20] ((Rank & ADC_REG_SQRX_REGOFFSET_MASK) >> ADC_SQRX_REGOFFSET_POS)); MODIFY_REG(*preg, - 8001412: 697b ldr r3, [r7, #20] - 8001414: 681a ldr r2, [r3, #0] - 8001416: 68bb ldr r3, [r7, #8] - 8001418: f003 031f and.w r3, r3, #31 - 800141c: 211f movs r1, #31 - 800141e: fa01 f303 lsl.w r3, r1, r3 - 8001422: 43db mvns r3, r3 - 8001424: 401a ands r2, r3 - 8001426: 687b ldr r3, [r7, #4] - 8001428: 0e9b lsrs r3, r3, #26 - 800142a: f003 011f and.w r1, r3, #31 - 800142e: 68bb ldr r3, [r7, #8] - 8001430: f003 031f and.w r3, r3, #31 - 8001434: fa01 f303 lsl.w r3, r1, r3 - 8001438: 431a orrs r2, r3 - 800143a: 697b ldr r3, [r7, #20] - 800143c: 601a str r2, [r3, #0] + 8001cee: 697b ldr r3, [r7, #20] + 8001cf0: 681a ldr r2, [r3, #0] + 8001cf2: 68bb ldr r3, [r7, #8] + 8001cf4: f003 031f and.w r3, r3, #31 + 8001cf8: 211f movs r1, #31 + 8001cfa: fa01 f303 lsl.w r3, r1, r3 + 8001cfe: 43db mvns r3, r3 + 8001d00: 401a ands r2, r3 + 8001d02: 687b ldr r3, [r7, #4] + 8001d04: 0e9b lsrs r3, r3, #26 + 8001d06: f003 011f and.w r1, r3, #31 + 8001d0a: 68bb ldr r3, [r7, #8] + 8001d0c: f003 031f and.w r3, r3, #31 + 8001d10: fa01 f303 lsl.w r3, r1, r3 + 8001d14: 431a orrs r2, r3 + 8001d16: 697b ldr r3, [r7, #20] + 8001d18: 601a str r2, [r3, #0] ADC_CHANNEL_ID_NUMBER_MASK_POSBIT0 << (Rank & ADC_REG_RANK_ID_SQRX_MASK), ((Channel & ADC_CHANNEL_ID_NUMBER_MASK) >> ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS) << (Rank & ADC_REG_RANK_ID_SQRX_MASK)); } - 800143e: bf00 nop - 8001440: 371c adds r7, #28 - 8001442: 46bd mov sp, r7 - 8001444: f85d 7b04 ldr.w r7, [sp], #4 - 8001448: 4770 bx lr + 8001d1a: bf00 nop + 8001d1c: 371c adds r7, #28 + 8001d1e: 46bd mov sp, r7 + 8001d20: f85d 7b04 ldr.w r7, [sp], #4 + 8001d24: 4770 bx lr -0800144a : +08001d26 : * can be replaced by 3.5 ADC clock cycles. * Refer to function @ref LL_ADC_SetSamplingTimeCommonConfig(). * @retval None */ __STATIC_INLINE void LL_ADC_SetChannelSamplingTime(ADC_TypeDef *ADCx, uint32_t Channel, uint32_t SamplingTime) { - 800144a: b480 push {r7} - 800144c: b087 sub sp, #28 - 800144e: af00 add r7, sp, #0 - 8001450: 60f8 str r0, [r7, #12] - 8001452: 60b9 str r1, [r7, #8] - 8001454: 607a str r2, [r7, #4] + 8001d26: b480 push {r7} + 8001d28: b087 sub sp, #28 + 8001d2a: af00 add r7, sp, #0 + 8001d2c: 60f8 str r0, [r7, #12] + 8001d2e: 60b9 str r1, [r7, #8] + 8001d30: 607a str r2, [r7, #4] /* Set bits with content of parameter "SamplingTime" with bits position */ /* in register and register position depending on parameter "Channel". */ /* Parameter "Channel" is used with masks because containing */ /* other bits reserved for other purpose. */ __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->SMPR1, - 8001456: 68fb ldr r3, [r7, #12] - 8001458: 3314 adds r3, #20 - 800145a: 461a mov r2, r3 - 800145c: 68bb ldr r3, [r7, #8] - 800145e: 0e5b lsrs r3, r3, #25 - 8001460: 009b lsls r3, r3, #2 - 8001462: f003 0304 and.w r3, r3, #4 - 8001466: 4413 add r3, r2 - 8001468: 617b str r3, [r7, #20] + 8001d32: 68fb ldr r3, [r7, #12] + 8001d34: 3314 adds r3, #20 + 8001d36: 461a mov r2, r3 + 8001d38: 68bb ldr r3, [r7, #8] + 8001d3a: 0e5b lsrs r3, r3, #25 + 8001d3c: 009b lsls r3, r3, #2 + 8001d3e: f003 0304 and.w r3, r3, #4 + 8001d42: 4413 add r3, r2 + 8001d44: 617b str r3, [r7, #20] ((Channel & ADC_CHANNEL_SMPRX_REGOFFSET_MASK) >> ADC_SMPRX_REGOFFSET_POS)); MODIFY_REG(*preg, - 800146a: 697b ldr r3, [r7, #20] - 800146c: 681a ldr r2, [r3, #0] - 800146e: 68bb ldr r3, [r7, #8] - 8001470: 0d1b lsrs r3, r3, #20 - 8001472: f003 031f and.w r3, r3, #31 - 8001476: 2107 movs r1, #7 - 8001478: fa01 f303 lsl.w r3, r1, r3 - 800147c: 43db mvns r3, r3 - 800147e: 401a ands r2, r3 - 8001480: 68bb ldr r3, [r7, #8] - 8001482: 0d1b lsrs r3, r3, #20 - 8001484: f003 031f and.w r3, r3, #31 - 8001488: 6879 ldr r1, [r7, #4] - 800148a: fa01 f303 lsl.w r3, r1, r3 - 800148e: 431a orrs r2, r3 - 8001490: 697b ldr r3, [r7, #20] - 8001492: 601a str r2, [r3, #0] + 8001d46: 697b ldr r3, [r7, #20] + 8001d48: 681a ldr r2, [r3, #0] + 8001d4a: 68bb ldr r3, [r7, #8] + 8001d4c: 0d1b lsrs r3, r3, #20 + 8001d4e: f003 031f and.w r3, r3, #31 + 8001d52: 2107 movs r1, #7 + 8001d54: fa01 f303 lsl.w r3, r1, r3 + 8001d58: 43db mvns r3, r3 + 8001d5a: 401a ands r2, r3 + 8001d5c: 68bb ldr r3, [r7, #8] + 8001d5e: 0d1b lsrs r3, r3, #20 + 8001d60: f003 031f and.w r3, r3, #31 + 8001d64: 6879 ldr r1, [r7, #4] + 8001d66: fa01 f303 lsl.w r3, r1, r3 + 8001d6a: 431a orrs r2, r3 + 8001d6c: 697b ldr r3, [r7, #20] + 8001d6e: 601a str r2, [r3, #0] ADC_SMPR1_SMP0 << ((Channel & ADC_CHANNEL_SMPx_BITOFFSET_MASK) >> ADC_CHANNEL_SMPx_BITOFFSET_POS), SamplingTime << ((Channel & ADC_CHANNEL_SMPx_BITOFFSET_MASK) >> ADC_CHANNEL_SMPx_BITOFFSET_POS)); } - 8001494: bf00 nop - 8001496: 371c adds r7, #28 - 8001498: 46bd mov sp, r7 - 800149a: f85d 7b04 ldr.w r7, [sp], #4 - 800149e: 4770 bx lr + 8001d70: bf00 nop + 8001d72: 371c adds r7, #28 + 8001d74: 46bd mov sp, r7 + 8001d76: f85d 7b04 ldr.w r7, [sp], #4 + 8001d7a: 4770 bx lr -080014a0 : +08001d7c : * @arg @ref LL_ADC_SINGLE_ENDED * @arg @ref LL_ADC_DIFFERENTIAL_ENDED * @retval None */ __STATIC_INLINE void LL_ADC_SetChannelSingleDiff(ADC_TypeDef *ADCx, uint32_t Channel, uint32_t SingleDiff) { - 80014a0: b480 push {r7} - 80014a2: b085 sub sp, #20 - 80014a4: af00 add r7, sp, #0 - 80014a6: 60f8 str r0, [r7, #12] - 80014a8: 60b9 str r1, [r7, #8] - 80014aa: 607a str r2, [r7, #4] + 8001d7c: b480 push {r7} + 8001d7e: b085 sub sp, #20 + 8001d80: af00 add r7, sp, #0 + 8001d82: 60f8 str r0, [r7, #12] + 8001d84: 60b9 str r1, [r7, #8] + 8001d86: 607a str r2, [r7, #4] /* Bits of channels in single or differential mode are set only for */ /* differential mode (for single mode, mask of bits allowed to be set is */ /* shifted out of range of bits of channels in single or differential mode. */ MODIFY_REG(ADCx->DIFSEL, - 80014ac: 68fb ldr r3, [r7, #12] - 80014ae: f8d3 20b0 ldr.w r2, [r3, #176] @ 0xb0 - 80014b2: 68bb ldr r3, [r7, #8] - 80014b4: f3c3 0312 ubfx r3, r3, #0, #19 - 80014b8: 43db mvns r3, r3 - 80014ba: 401a ands r2, r3 - 80014bc: 687b ldr r3, [r7, #4] - 80014be: f003 0318 and.w r3, r3, #24 - 80014c2: 4908 ldr r1, [pc, #32] @ (80014e4 ) - 80014c4: 40d9 lsrs r1, r3 - 80014c6: 68bb ldr r3, [r7, #8] - 80014c8: 400b ands r3, r1 - 80014ca: f3c3 0312 ubfx r3, r3, #0, #19 - 80014ce: 431a orrs r2, r3 - 80014d0: 68fb ldr r3, [r7, #12] - 80014d2: f8c3 20b0 str.w r2, [r3, #176] @ 0xb0 + 8001d88: 68fb ldr r3, [r7, #12] + 8001d8a: f8d3 20b0 ldr.w r2, [r3, #176] @ 0xb0 + 8001d8e: 68bb ldr r3, [r7, #8] + 8001d90: f3c3 0312 ubfx r3, r3, #0, #19 + 8001d94: 43db mvns r3, r3 + 8001d96: 401a ands r2, r3 + 8001d98: 687b ldr r3, [r7, #4] + 8001d9a: f003 0318 and.w r3, r3, #24 + 8001d9e: 4908 ldr r1, [pc, #32] @ (8001dc0 ) + 8001da0: 40d9 lsrs r1, r3 + 8001da2: 68bb ldr r3, [r7, #8] + 8001da4: 400b ands r3, r1 + 8001da6: f3c3 0312 ubfx r3, r3, #0, #19 + 8001daa: 431a orrs r2, r3 + 8001dac: 68fb ldr r3, [r7, #12] + 8001dae: f8c3 20b0 str.w r2, [r3, #176] @ 0xb0 Channel & ADC_SINGLEDIFF_CHANNEL_MASK, (Channel & ADC_SINGLEDIFF_CHANNEL_MASK) & (ADC_DIFSEL_DIFSEL >> (SingleDiff & ADC_SINGLEDIFF_CHANNEL_SHIFT_MASK))); } - 80014d6: bf00 nop - 80014d8: 3714 adds r7, #20 - 80014da: 46bd mov sp, r7 - 80014dc: f85d 7b04 ldr.w r7, [sp], #4 - 80014e0: 4770 bx lr - 80014e2: bf00 nop - 80014e4: 0007ffff .word 0x0007ffff + 8001db2: bf00 nop + 8001db4: 3714 adds r7, #20 + 8001db6: 46bd mov sp, r7 + 8001db8: f85d 7b04 ldr.w r7, [sp], #4 + 8001dbc: 4770 bx lr + 8001dbe: bf00 nop + 8001dc0: 0007ffff .word 0x0007ffff -080014e8 : +08001dc4 : * @arg @ref LL_ADC_MULTI_DUAL_REG_SIM_INJ_SIM * @arg @ref LL_ADC_MULTI_DUAL_REG_SIM_INJ_ALT * @arg @ref LL_ADC_MULTI_DUAL_REG_INT_INJ_SIM */ __STATIC_INLINE uint32_t LL_ADC_GetMultimode(const ADC_Common_TypeDef *ADCxy_COMMON) { - 80014e8: b480 push {r7} - 80014ea: b083 sub sp, #12 - 80014ec: af00 add r7, sp, #0 - 80014ee: 6078 str r0, [r7, #4] + 8001dc4: b480 push {r7} + 8001dc6: b083 sub sp, #12 + 8001dc8: af00 add r7, sp, #0 + 8001dca: 6078 str r0, [r7, #4] return (uint32_t)(READ_BIT(ADCxy_COMMON->CCR, ADC_CCR_DUAL)); - 80014f0: 687b ldr r3, [r7, #4] - 80014f2: 689b ldr r3, [r3, #8] - 80014f4: f003 031f and.w r3, r3, #31 + 8001dcc: 687b ldr r3, [r7, #4] + 8001dce: 689b ldr r3, [r3, #8] + 8001dd0: f003 031f and.w r3, r3, #31 } - 80014f8: 4618 mov r0, r3 - 80014fa: 370c adds r7, #12 - 80014fc: 46bd mov sp, r7 - 80014fe: f85d 7b04 ldr.w r7, [sp], #4 - 8001502: 4770 bx lr + 8001dd4: 4618 mov r0, r3 + 8001dd6: 370c adds r7, #12 + 8001dd8: 46bd mov sp, r7 + 8001dda: f85d 7b04 ldr.w r7, [sp], #4 + 8001dde: 4770 bx lr -08001504 : +08001de0 : * @arg @ref LL_ADC_MULTI_REG_DMA_LIMIT_RES8_6B * @arg @ref LL_ADC_MULTI_REG_DMA_UNLMT_RES12_10B * @arg @ref LL_ADC_MULTI_REG_DMA_UNLMT_RES8_6B */ __STATIC_INLINE uint32_t LL_ADC_GetMultiDMATransfer(const ADC_Common_TypeDef *ADCxy_COMMON) { - 8001504: b480 push {r7} - 8001506: b083 sub sp, #12 - 8001508: af00 add r7, sp, #0 - 800150a: 6078 str r0, [r7, #4] + 8001de0: b480 push {r7} + 8001de2: b083 sub sp, #12 + 8001de4: af00 add r7, sp, #0 + 8001de6: 6078 str r0, [r7, #4] return (uint32_t)(READ_BIT(ADCxy_COMMON->CCR, ADC_CCR_MDMA | ADC_CCR_DMACFG)); - 800150c: 687b ldr r3, [r7, #4] - 800150e: 689b ldr r3, [r3, #8] - 8001510: f403 4360 and.w r3, r3, #57344 @ 0xe000 + 8001de8: 687b ldr r3, [r7, #4] + 8001dea: 689b ldr r3, [r3, #8] + 8001dec: f403 4360 and.w r3, r3, #57344 @ 0xe000 } - 8001514: 4618 mov r0, r3 - 8001516: 370c adds r7, #12 - 8001518: 46bd mov sp, r7 - 800151a: f85d 7b04 ldr.w r7, [sp], #4 - 800151e: 4770 bx lr + 8001df0: 4618 mov r0, r3 + 8001df2: 370c adds r7, #12 + 8001df4: 46bd mov sp, r7 + 8001df6: f85d 7b04 ldr.w r7, [sp], #4 + 8001dfa: 4770 bx lr -08001520 : +08001dfc : * @rmtoll CR DEEPPWD LL_ADC_DisableDeepPowerDown * @param ADCx ADC instance * @retval None */ __STATIC_INLINE void LL_ADC_DisableDeepPowerDown(ADC_TypeDef *ADCx) { - 8001520: b480 push {r7} - 8001522: b083 sub sp, #12 - 8001524: af00 add r7, sp, #0 - 8001526: 6078 str r0, [r7, #4] + 8001dfc: b480 push {r7} + 8001dfe: b083 sub sp, #12 + 8001e00: af00 add r7, sp, #0 + 8001e02: 6078 str r0, [r7, #4] /* Note: Write register with some additional bits forced to state reset */ /* instead of modifying only the selected bit for this function, */ /* to not interfere with bits with HW property "rs". */ CLEAR_BIT(ADCx->CR, (ADC_CR_DEEPPWD | ADC_CR_BITS_PROPERTY_RS)); - 8001528: 687b ldr r3, [r7, #4] - 800152a: 689b ldr r3, [r3, #8] - 800152c: f023 4320 bic.w r3, r3, #2684354560 @ 0xa0000000 - 8001530: f023 033f bic.w r3, r3, #63 @ 0x3f - 8001534: 687a ldr r2, [r7, #4] - 8001536: 6093 str r3, [r2, #8] + 8001e04: 687b ldr r3, [r7, #4] + 8001e06: 689b ldr r3, [r3, #8] + 8001e08: f023 4320 bic.w r3, r3, #2684354560 @ 0xa0000000 + 8001e0c: f023 033f bic.w r3, r3, #63 @ 0x3f + 8001e10: 687a ldr r2, [r7, #4] + 8001e12: 6093 str r3, [r2, #8] } - 8001538: bf00 nop - 800153a: 370c adds r7, #12 - 800153c: 46bd mov sp, r7 - 800153e: f85d 7b04 ldr.w r7, [sp], #4 - 8001542: 4770 bx lr + 8001e14: bf00 nop + 8001e16: 370c adds r7, #12 + 8001e18: 46bd mov sp, r7 + 8001e1a: f85d 7b04 ldr.w r7, [sp], #4 + 8001e1e: 4770 bx lr -08001544 : +08001e20 : * @rmtoll CR DEEPPWD LL_ADC_IsDeepPowerDownEnabled * @param ADCx ADC instance * @retval 0: deep power down is disabled, 1: deep power down is enabled. */ __STATIC_INLINE uint32_t LL_ADC_IsDeepPowerDownEnabled(const ADC_TypeDef *ADCx) { - 8001544: b480 push {r7} - 8001546: b083 sub sp, #12 - 8001548: af00 add r7, sp, #0 - 800154a: 6078 str r0, [r7, #4] + 8001e20: b480 push {r7} + 8001e22: b083 sub sp, #12 + 8001e24: af00 add r7, sp, #0 + 8001e26: 6078 str r0, [r7, #4] return ((READ_BIT(ADCx->CR, ADC_CR_DEEPPWD) == (ADC_CR_DEEPPWD)) ? 1UL : 0UL); - 800154c: 687b ldr r3, [r7, #4] - 800154e: 689b ldr r3, [r3, #8] - 8001550: f003 5300 and.w r3, r3, #536870912 @ 0x20000000 - 8001554: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000 - 8001558: d101 bne.n 800155e - 800155a: 2301 movs r3, #1 - 800155c: e000 b.n 8001560 - 800155e: 2300 movs r3, #0 + 8001e28: 687b ldr r3, [r7, #4] + 8001e2a: 689b ldr r3, [r3, #8] + 8001e2c: f003 5300 and.w r3, r3, #536870912 @ 0x20000000 + 8001e30: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000 + 8001e34: d101 bne.n 8001e3a + 8001e36: 2301 movs r3, #1 + 8001e38: e000 b.n 8001e3c + 8001e3a: 2300 movs r3, #0 } - 8001560: 4618 mov r0, r3 - 8001562: 370c adds r7, #12 - 8001564: 46bd mov sp, r7 - 8001566: f85d 7b04 ldr.w r7, [sp], #4 - 800156a: 4770 bx lr + 8001e3c: 4618 mov r0, r3 + 8001e3e: 370c adds r7, #12 + 8001e40: 46bd mov sp, r7 + 8001e42: f85d 7b04 ldr.w r7, [sp], #4 + 8001e46: 4770 bx lr -0800156c : +08001e48 : * @rmtoll CR ADVREGEN LL_ADC_EnableInternalRegulator * @param ADCx ADC instance * @retval None */ __STATIC_INLINE void LL_ADC_EnableInternalRegulator(ADC_TypeDef *ADCx) { - 800156c: b480 push {r7} - 800156e: b083 sub sp, #12 - 8001570: af00 add r7, sp, #0 - 8001572: 6078 str r0, [r7, #4] + 8001e48: b480 push {r7} + 8001e4a: b083 sub sp, #12 + 8001e4c: af00 add r7, sp, #0 + 8001e4e: 6078 str r0, [r7, #4] /* Note: Write register with some additional bits forced to state reset */ /* instead of modifying only the selected bit for this function, */ /* to not interfere with bits with HW property "rs". */ MODIFY_REG(ADCx->CR, - 8001574: 687b ldr r3, [r7, #4] - 8001576: 689b ldr r3, [r3, #8] - 8001578: f023 4310 bic.w r3, r3, #2415919104 @ 0x90000000 - 800157c: f023 033f bic.w r3, r3, #63 @ 0x3f - 8001580: f043 5280 orr.w r2, r3, #268435456 @ 0x10000000 - 8001584: 687b ldr r3, [r7, #4] - 8001586: 609a str r2, [r3, #8] + 8001e50: 687b ldr r3, [r7, #4] + 8001e52: 689b ldr r3, [r3, #8] + 8001e54: f023 4310 bic.w r3, r3, #2415919104 @ 0x90000000 + 8001e58: f023 033f bic.w r3, r3, #63 @ 0x3f + 8001e5c: f043 5280 orr.w r2, r3, #268435456 @ 0x10000000 + 8001e60: 687b ldr r3, [r7, #4] + 8001e62: 609a str r2, [r3, #8] ADC_CR_BITS_PROPERTY_RS, ADC_CR_ADVREGEN); } - 8001588: bf00 nop - 800158a: 370c adds r7, #12 - 800158c: 46bd mov sp, r7 - 800158e: f85d 7b04 ldr.w r7, [sp], #4 - 8001592: 4770 bx lr + 8001e64: bf00 nop + 8001e66: 370c adds r7, #12 + 8001e68: 46bd mov sp, r7 + 8001e6a: f85d 7b04 ldr.w r7, [sp], #4 + 8001e6e: 4770 bx lr -08001594 : +08001e70 : * @rmtoll CR ADVREGEN LL_ADC_IsInternalRegulatorEnabled * @param ADCx ADC instance * @retval 0: internal regulator is disabled, 1: internal regulator is enabled. */ __STATIC_INLINE uint32_t LL_ADC_IsInternalRegulatorEnabled(const ADC_TypeDef *ADCx) { - 8001594: b480 push {r7} - 8001596: b083 sub sp, #12 - 8001598: af00 add r7, sp, #0 - 800159a: 6078 str r0, [r7, #4] + 8001e70: b480 push {r7} + 8001e72: b083 sub sp, #12 + 8001e74: af00 add r7, sp, #0 + 8001e76: 6078 str r0, [r7, #4] return ((READ_BIT(ADCx->CR, ADC_CR_ADVREGEN) == (ADC_CR_ADVREGEN)) ? 1UL : 0UL); - 800159c: 687b ldr r3, [r7, #4] - 800159e: 689b ldr r3, [r3, #8] - 80015a0: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 - 80015a4: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000 - 80015a8: d101 bne.n 80015ae - 80015aa: 2301 movs r3, #1 - 80015ac: e000 b.n 80015b0 - 80015ae: 2300 movs r3, #0 + 8001e78: 687b ldr r3, [r7, #4] + 8001e7a: 689b ldr r3, [r3, #8] + 8001e7c: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 + 8001e80: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000 + 8001e84: d101 bne.n 8001e8a + 8001e86: 2301 movs r3, #1 + 8001e88: e000 b.n 8001e8c + 8001e8a: 2300 movs r3, #0 } - 80015b0: 4618 mov r0, r3 - 80015b2: 370c adds r7, #12 - 80015b4: 46bd mov sp, r7 - 80015b6: f85d 7b04 ldr.w r7, [sp], #4 - 80015ba: 4770 bx lr + 8001e8c: 4618 mov r0, r3 + 8001e8e: 370c adds r7, #12 + 8001e90: 46bd mov sp, r7 + 8001e92: f85d 7b04 ldr.w r7, [sp], #4 + 8001e96: 4770 bx lr -080015bc : +08001e98 : * @rmtoll CR ADEN LL_ADC_Enable * @param ADCx ADC instance * @retval None */ __STATIC_INLINE void LL_ADC_Enable(ADC_TypeDef *ADCx) { - 80015bc: b480 push {r7} - 80015be: b083 sub sp, #12 - 80015c0: af00 add r7, sp, #0 - 80015c2: 6078 str r0, [r7, #4] + 8001e98: b480 push {r7} + 8001e9a: b083 sub sp, #12 + 8001e9c: af00 add r7, sp, #0 + 8001e9e: 6078 str r0, [r7, #4] /* Note: Write register with some additional bits forced to state reset */ /* instead of modifying only the selected bit for this function, */ /* to not interfere with bits with HW property "rs". */ MODIFY_REG(ADCx->CR, - 80015c4: 687b ldr r3, [r7, #4] - 80015c6: 689b ldr r3, [r3, #8] - 80015c8: f023 4300 bic.w r3, r3, #2147483648 @ 0x80000000 - 80015cc: f023 033f bic.w r3, r3, #63 @ 0x3f - 80015d0: f043 0201 orr.w r2, r3, #1 - 80015d4: 687b ldr r3, [r7, #4] - 80015d6: 609a str r2, [r3, #8] + 8001ea0: 687b ldr r3, [r7, #4] + 8001ea2: 689b ldr r3, [r3, #8] + 8001ea4: f023 4300 bic.w r3, r3, #2147483648 @ 0x80000000 + 8001ea8: f023 033f bic.w r3, r3, #63 @ 0x3f + 8001eac: f043 0201 orr.w r2, r3, #1 + 8001eb0: 687b ldr r3, [r7, #4] + 8001eb2: 609a str r2, [r3, #8] ADC_CR_BITS_PROPERTY_RS, ADC_CR_ADEN); } - 80015d8: bf00 nop - 80015da: 370c adds r7, #12 - 80015dc: 46bd mov sp, r7 - 80015de: f85d 7b04 ldr.w r7, [sp], #4 - 80015e2: 4770 bx lr + 8001eb4: bf00 nop + 8001eb6: 370c adds r7, #12 + 8001eb8: 46bd mov sp, r7 + 8001eba: f85d 7b04 ldr.w r7, [sp], #4 + 8001ebe: 4770 bx lr -080015e4 : +08001ec0 : * @rmtoll CR ADDIS LL_ADC_Disable * @param ADCx ADC instance * @retval None */ __STATIC_INLINE void LL_ADC_Disable(ADC_TypeDef *ADCx) { - 80015e4: b480 push {r7} - 80015e6: b083 sub sp, #12 - 80015e8: af00 add r7, sp, #0 - 80015ea: 6078 str r0, [r7, #4] + 8001ec0: b480 push {r7} + 8001ec2: b083 sub sp, #12 + 8001ec4: af00 add r7, sp, #0 + 8001ec6: 6078 str r0, [r7, #4] /* Note: Write register with some additional bits forced to state reset */ /* instead of modifying only the selected bit for this function, */ /* to not interfere with bits with HW property "rs". */ MODIFY_REG(ADCx->CR, - 80015ec: 687b ldr r3, [r7, #4] - 80015ee: 689b ldr r3, [r3, #8] - 80015f0: f023 4300 bic.w r3, r3, #2147483648 @ 0x80000000 - 80015f4: f023 033f bic.w r3, r3, #63 @ 0x3f - 80015f8: f043 0202 orr.w r2, r3, #2 - 80015fc: 687b ldr r3, [r7, #4] - 80015fe: 609a str r2, [r3, #8] + 8001ec8: 687b ldr r3, [r7, #4] + 8001eca: 689b ldr r3, [r3, #8] + 8001ecc: f023 4300 bic.w r3, r3, #2147483648 @ 0x80000000 + 8001ed0: f023 033f bic.w r3, r3, #63 @ 0x3f + 8001ed4: f043 0202 orr.w r2, r3, #2 + 8001ed8: 687b ldr r3, [r7, #4] + 8001eda: 609a str r2, [r3, #8] ADC_CR_BITS_PROPERTY_RS, ADC_CR_ADDIS); } - 8001600: bf00 nop - 8001602: 370c adds r7, #12 - 8001604: 46bd mov sp, r7 - 8001606: f85d 7b04 ldr.w r7, [sp], #4 - 800160a: 4770 bx lr + 8001edc: bf00 nop + 8001ede: 370c adds r7, #12 + 8001ee0: 46bd mov sp, r7 + 8001ee2: f85d 7b04 ldr.w r7, [sp], #4 + 8001ee6: 4770 bx lr -0800160c : +08001ee8 : * @rmtoll CR ADEN LL_ADC_IsEnabled * @param ADCx ADC instance * @retval 0: ADC is disabled, 1: ADC is enabled. */ __STATIC_INLINE uint32_t LL_ADC_IsEnabled(const ADC_TypeDef *ADCx) { - 800160c: b480 push {r7} - 800160e: b083 sub sp, #12 - 8001610: af00 add r7, sp, #0 - 8001612: 6078 str r0, [r7, #4] + 8001ee8: b480 push {r7} + 8001eea: b083 sub sp, #12 + 8001eec: af00 add r7, sp, #0 + 8001eee: 6078 str r0, [r7, #4] return ((READ_BIT(ADCx->CR, ADC_CR_ADEN) == (ADC_CR_ADEN)) ? 1UL : 0UL); - 8001614: 687b ldr r3, [r7, #4] - 8001616: 689b ldr r3, [r3, #8] - 8001618: f003 0301 and.w r3, r3, #1 - 800161c: 2b01 cmp r3, #1 - 800161e: d101 bne.n 8001624 - 8001620: 2301 movs r3, #1 - 8001622: e000 b.n 8001626 - 8001624: 2300 movs r3, #0 + 8001ef0: 687b ldr r3, [r7, #4] + 8001ef2: 689b ldr r3, [r3, #8] + 8001ef4: f003 0301 and.w r3, r3, #1 + 8001ef8: 2b01 cmp r3, #1 + 8001efa: d101 bne.n 8001f00 + 8001efc: 2301 movs r3, #1 + 8001efe: e000 b.n 8001f02 + 8001f00: 2300 movs r3, #0 } - 8001626: 4618 mov r0, r3 - 8001628: 370c adds r7, #12 - 800162a: 46bd mov sp, r7 - 800162c: f85d 7b04 ldr.w r7, [sp], #4 - 8001630: 4770 bx lr + 8001f02: 4618 mov r0, r3 + 8001f04: 370c adds r7, #12 + 8001f06: 46bd mov sp, r7 + 8001f08: f85d 7b04 ldr.w r7, [sp], #4 + 8001f0c: 4770 bx lr -08001632 : +08001f0e : * @rmtoll CR ADDIS LL_ADC_IsDisableOngoing * @param ADCx ADC instance * @retval 0: no ADC disable command on going. */ __STATIC_INLINE uint32_t LL_ADC_IsDisableOngoing(const ADC_TypeDef *ADCx) { - 8001632: b480 push {r7} - 8001634: b083 sub sp, #12 - 8001636: af00 add r7, sp, #0 - 8001638: 6078 str r0, [r7, #4] + 8001f0e: b480 push {r7} + 8001f10: b083 sub sp, #12 + 8001f12: af00 add r7, sp, #0 + 8001f14: 6078 str r0, [r7, #4] return ((READ_BIT(ADCx->CR, ADC_CR_ADDIS) == (ADC_CR_ADDIS)) ? 1UL : 0UL); - 800163a: 687b ldr r3, [r7, #4] - 800163c: 689b ldr r3, [r3, #8] - 800163e: f003 0302 and.w r3, r3, #2 - 8001642: 2b02 cmp r3, #2 - 8001644: d101 bne.n 800164a - 8001646: 2301 movs r3, #1 - 8001648: e000 b.n 800164c - 800164a: 2300 movs r3, #0 + 8001f16: 687b ldr r3, [r7, #4] + 8001f18: 689b ldr r3, [r3, #8] + 8001f1a: f003 0302 and.w r3, r3, #2 + 8001f1e: 2b02 cmp r3, #2 + 8001f20: d101 bne.n 8001f26 + 8001f22: 2301 movs r3, #1 + 8001f24: e000 b.n 8001f28 + 8001f26: 2300 movs r3, #0 } - 800164c: 4618 mov r0, r3 - 800164e: 370c adds r7, #12 - 8001650: 46bd mov sp, r7 - 8001652: f85d 7b04 ldr.w r7, [sp], #4 - 8001656: 4770 bx lr + 8001f28: 4618 mov r0, r3 + 8001f2a: 370c adds r7, #12 + 8001f2c: 46bd mov sp, r7 + 8001f2e: f85d 7b04 ldr.w r7, [sp], #4 + 8001f32: 4770 bx lr -08001658 : +08001f34 : * @rmtoll CR ADSTART LL_ADC_REG_StartConversion * @param ADCx ADC instance * @retval None */ __STATIC_INLINE void LL_ADC_REG_StartConversion(ADC_TypeDef *ADCx) { - 8001658: b480 push {r7} - 800165a: b083 sub sp, #12 - 800165c: af00 add r7, sp, #0 - 800165e: 6078 str r0, [r7, #4] + 8001f34: b480 push {r7} + 8001f36: b083 sub sp, #12 + 8001f38: af00 add r7, sp, #0 + 8001f3a: 6078 str r0, [r7, #4] /* Note: Write register with some additional bits forced to state reset */ /* instead of modifying only the selected bit for this function, */ /* to not interfere with bits with HW property "rs". */ MODIFY_REG(ADCx->CR, - 8001660: 687b ldr r3, [r7, #4] - 8001662: 689b ldr r3, [r3, #8] - 8001664: f023 4300 bic.w r3, r3, #2147483648 @ 0x80000000 - 8001668: f023 033f bic.w r3, r3, #63 @ 0x3f - 800166c: f043 0204 orr.w r2, r3, #4 - 8001670: 687b ldr r3, [r7, #4] - 8001672: 609a str r2, [r3, #8] + 8001f3c: 687b ldr r3, [r7, #4] + 8001f3e: 689b ldr r3, [r3, #8] + 8001f40: f023 4300 bic.w r3, r3, #2147483648 @ 0x80000000 + 8001f44: f023 033f bic.w r3, r3, #63 @ 0x3f + 8001f48: f043 0204 orr.w r2, r3, #4 + 8001f4c: 687b ldr r3, [r7, #4] + 8001f4e: 609a str r2, [r3, #8] ADC_CR_BITS_PROPERTY_RS, ADC_CR_ADSTART); } - 8001674: bf00 nop - 8001676: 370c adds r7, #12 - 8001678: 46bd mov sp, r7 - 800167a: f85d 7b04 ldr.w r7, [sp], #4 - 800167e: 4770 bx lr + 8001f50: bf00 nop + 8001f52: 370c adds r7, #12 + 8001f54: 46bd mov sp, r7 + 8001f56: f85d 7b04 ldr.w r7, [sp], #4 + 8001f5a: 4770 bx lr -08001680 : +08001f5c : * @rmtoll CR ADSTP LL_ADC_REG_StopConversion * @param ADCx ADC instance * @retval None */ __STATIC_INLINE void LL_ADC_REG_StopConversion(ADC_TypeDef *ADCx) { - 8001680: b480 push {r7} - 8001682: b083 sub sp, #12 - 8001684: af00 add r7, sp, #0 - 8001686: 6078 str r0, [r7, #4] + 8001f5c: b480 push {r7} + 8001f5e: b083 sub sp, #12 + 8001f60: af00 add r7, sp, #0 + 8001f62: 6078 str r0, [r7, #4] /* Note: Write register with some additional bits forced to state reset */ /* instead of modifying only the selected bit for this function, */ /* to not interfere with bits with HW property "rs". */ MODIFY_REG(ADCx->CR, - 8001688: 687b ldr r3, [r7, #4] - 800168a: 689b ldr r3, [r3, #8] - 800168c: f023 4300 bic.w r3, r3, #2147483648 @ 0x80000000 - 8001690: f023 033f bic.w r3, r3, #63 @ 0x3f - 8001694: f043 0210 orr.w r2, r3, #16 - 8001698: 687b ldr r3, [r7, #4] - 800169a: 609a str r2, [r3, #8] + 8001f64: 687b ldr r3, [r7, #4] + 8001f66: 689b ldr r3, [r3, #8] + 8001f68: f023 4300 bic.w r3, r3, #2147483648 @ 0x80000000 + 8001f6c: f023 033f bic.w r3, r3, #63 @ 0x3f + 8001f70: f043 0210 orr.w r2, r3, #16 + 8001f74: 687b ldr r3, [r7, #4] + 8001f76: 609a str r2, [r3, #8] ADC_CR_BITS_PROPERTY_RS, ADC_CR_ADSTP); } - 800169c: bf00 nop - 800169e: 370c adds r7, #12 - 80016a0: 46bd mov sp, r7 - 80016a2: f85d 7b04 ldr.w r7, [sp], #4 - 80016a6: 4770 bx lr + 8001f78: bf00 nop + 8001f7a: 370c adds r7, #12 + 8001f7c: 46bd mov sp, r7 + 8001f7e: f85d 7b04 ldr.w r7, [sp], #4 + 8001f82: 4770 bx lr -080016a8 : +08001f84 : * @rmtoll CR ADSTART LL_ADC_REG_IsConversionOngoing * @param ADCx ADC instance * @retval 0: no conversion is on going on ADC group regular. */ __STATIC_INLINE uint32_t LL_ADC_REG_IsConversionOngoing(const ADC_TypeDef *ADCx) { - 80016a8: b480 push {r7} - 80016aa: b083 sub sp, #12 - 80016ac: af00 add r7, sp, #0 - 80016ae: 6078 str r0, [r7, #4] + 8001f84: b480 push {r7} + 8001f86: b083 sub sp, #12 + 8001f88: af00 add r7, sp, #0 + 8001f8a: 6078 str r0, [r7, #4] return ((READ_BIT(ADCx->CR, ADC_CR_ADSTART) == (ADC_CR_ADSTART)) ? 1UL : 0UL); - 80016b0: 687b ldr r3, [r7, #4] - 80016b2: 689b ldr r3, [r3, #8] - 80016b4: f003 0304 and.w r3, r3, #4 - 80016b8: 2b04 cmp r3, #4 - 80016ba: d101 bne.n 80016c0 - 80016bc: 2301 movs r3, #1 - 80016be: e000 b.n 80016c2 - 80016c0: 2300 movs r3, #0 + 8001f8c: 687b ldr r3, [r7, #4] + 8001f8e: 689b ldr r3, [r3, #8] + 8001f90: f003 0304 and.w r3, r3, #4 + 8001f94: 2b04 cmp r3, #4 + 8001f96: d101 bne.n 8001f9c + 8001f98: 2301 movs r3, #1 + 8001f9a: e000 b.n 8001f9e + 8001f9c: 2300 movs r3, #0 } - 80016c2: 4618 mov r0, r3 - 80016c4: 370c adds r7, #12 - 80016c6: 46bd mov sp, r7 - 80016c8: f85d 7b04 ldr.w r7, [sp], #4 - 80016cc: 4770 bx lr + 8001f9e: 4618 mov r0, r3 + 8001fa0: 370c adds r7, #12 + 8001fa2: 46bd mov sp, r7 + 8001fa4: f85d 7b04 ldr.w r7, [sp], #4 + 8001fa8: 4770 bx lr -080016ce : +08001faa : * @rmtoll CR JADSTP LL_ADC_INJ_StopConversion * @param ADCx ADC instance * @retval None */ __STATIC_INLINE void LL_ADC_INJ_StopConversion(ADC_TypeDef *ADCx) { - 80016ce: b480 push {r7} - 80016d0: b083 sub sp, #12 - 80016d2: af00 add r7, sp, #0 - 80016d4: 6078 str r0, [r7, #4] + 8001faa: b480 push {r7} + 8001fac: b083 sub sp, #12 + 8001fae: af00 add r7, sp, #0 + 8001fb0: 6078 str r0, [r7, #4] /* Note: Write register with some additional bits forced to state reset */ /* instead of modifying only the selected bit for this function, */ /* to not interfere with bits with HW property "rs". */ MODIFY_REG(ADCx->CR, - 80016d6: 687b ldr r3, [r7, #4] - 80016d8: 689b ldr r3, [r3, #8] - 80016da: f023 4300 bic.w r3, r3, #2147483648 @ 0x80000000 - 80016de: f023 033f bic.w r3, r3, #63 @ 0x3f - 80016e2: f043 0220 orr.w r2, r3, #32 - 80016e6: 687b ldr r3, [r7, #4] - 80016e8: 609a str r2, [r3, #8] + 8001fb2: 687b ldr r3, [r7, #4] + 8001fb4: 689b ldr r3, [r3, #8] + 8001fb6: f023 4300 bic.w r3, r3, #2147483648 @ 0x80000000 + 8001fba: f023 033f bic.w r3, r3, #63 @ 0x3f + 8001fbe: f043 0220 orr.w r2, r3, #32 + 8001fc2: 687b ldr r3, [r7, #4] + 8001fc4: 609a str r2, [r3, #8] ADC_CR_BITS_PROPERTY_RS, ADC_CR_JADSTP); } - 80016ea: bf00 nop - 80016ec: 370c adds r7, #12 - 80016ee: 46bd mov sp, r7 - 80016f0: f85d 7b04 ldr.w r7, [sp], #4 - 80016f4: 4770 bx lr + 8001fc6: bf00 nop + 8001fc8: 370c adds r7, #12 + 8001fca: 46bd mov sp, r7 + 8001fcc: f85d 7b04 ldr.w r7, [sp], #4 + 8001fd0: 4770 bx lr -080016f6 : +08001fd2 : * @rmtoll CR JADSTART LL_ADC_INJ_IsConversionOngoing * @param ADCx ADC instance * @retval 0: no conversion is on going on ADC group injected. */ __STATIC_INLINE uint32_t LL_ADC_INJ_IsConversionOngoing(const ADC_TypeDef *ADCx) { - 80016f6: b480 push {r7} - 80016f8: b083 sub sp, #12 - 80016fa: af00 add r7, sp, #0 - 80016fc: 6078 str r0, [r7, #4] + 8001fd2: b480 push {r7} + 8001fd4: b083 sub sp, #12 + 8001fd6: af00 add r7, sp, #0 + 8001fd8: 6078 str r0, [r7, #4] return ((READ_BIT(ADCx->CR, ADC_CR_JADSTART) == (ADC_CR_JADSTART)) ? 1UL : 0UL); - 80016fe: 687b ldr r3, [r7, #4] - 8001700: 689b ldr r3, [r3, #8] - 8001702: f003 0308 and.w r3, r3, #8 - 8001706: 2b08 cmp r3, #8 - 8001708: d101 bne.n 800170e - 800170a: 2301 movs r3, #1 - 800170c: e000 b.n 8001710 - 800170e: 2300 movs r3, #0 + 8001fda: 687b ldr r3, [r7, #4] + 8001fdc: 689b ldr r3, [r3, #8] + 8001fde: f003 0308 and.w r3, r3, #8 + 8001fe2: 2b08 cmp r3, #8 + 8001fe4: d101 bne.n 8001fea + 8001fe6: 2301 movs r3, #1 + 8001fe8: e000 b.n 8001fec + 8001fea: 2300 movs r3, #0 } - 8001710: 4618 mov r0, r3 - 8001712: 370c adds r7, #12 - 8001714: 46bd mov sp, r7 - 8001716: f85d 7b04 ldr.w r7, [sp], #4 - 800171a: 4770 bx lr + 8001fec: 4618 mov r0, r3 + 8001fee: 370c adds r7, #12 + 8001ff0: 46bd mov sp, r7 + 8001ff2: f85d 7b04 ldr.w r7, [sp], #4 + 8001ff6: 4770 bx lr -0800171c : +08001ff8 : * without disabling the other ADCs. * @param hadc ADC handle * @retval HAL status */ HAL_StatusTypeDef HAL_ADC_Init(ADC_HandleTypeDef *hadc) { - 800171c: b590 push {r4, r7, lr} - 800171e: b089 sub sp, #36 @ 0x24 - 8001720: af00 add r7, sp, #0 - 8001722: 6078 str r0, [r7, #4] + 8001ff8: b590 push {r4, r7, lr} + 8001ffa: b089 sub sp, #36 @ 0x24 + 8001ffc: af00 add r7, sp, #0 + 8001ffe: 6078 str r0, [r7, #4] HAL_StatusTypeDef tmp_hal_status = HAL_OK; - 8001724: 2300 movs r3, #0 - 8001726: 77fb strb r3, [r7, #31] + 8002000: 2300 movs r3, #0 + 8002002: 77fb strb r3, [r7, #31] uint32_t tmp_cfgr; uint32_t tmp_adc_is_conversion_on_going_regular; uint32_t tmp_adc_is_conversion_on_going_injected; __IO uint32_t wait_loop_index = 0UL; - 8001728: 2300 movs r3, #0 - 800172a: 60fb str r3, [r7, #12] + 8002004: 2300 movs r3, #0 + 8002006: 60fb str r3, [r7, #12] /* Check ADC handle */ if (hadc == NULL) - 800172c: 687b ldr r3, [r7, #4] - 800172e: 2b00 cmp r3, #0 - 8001730: d101 bne.n 8001736 + 8002008: 687b ldr r3, [r7, #4] + 800200a: 2b00 cmp r3, #0 + 800200c: d101 bne.n 8002012 { return HAL_ERROR; - 8001732: 2301 movs r3, #1 - 8001734: e167 b.n 8001a06 + 800200e: 2301 movs r3, #1 + 8002010: e167 b.n 80022e2 assert_param(IS_ADC_EOC_SELECTION(hadc->Init.EOCSelection)); assert_param(IS_ADC_OVERRUN(hadc->Init.Overrun)); assert_param(IS_FUNCTIONAL_STATE(hadc->Init.LowPowerAutoWait)); assert_param(IS_FUNCTIONAL_STATE(hadc->Init.OversamplingMode)); if (hadc->Init.ScanConvMode != ADC_SCAN_DISABLE) - 8001736: 687b ldr r3, [r7, #4] - 8001738: 695b ldr r3, [r3, #20] - 800173a: 2b00 cmp r3, #0 + 8002012: 687b ldr r3, [r7, #4] + 8002014: 695b ldr r3, [r3, #20] + 8002016: 2b00 cmp r3, #0 /* DISCEN and CONT bits cannot be set at the same time */ assert_param(!((hadc->Init.DiscontinuousConvMode == ENABLE) && (hadc->Init.ContinuousConvMode == ENABLE))); /* Actions performed only if ADC is coming from state reset: */ /* - Initialization of ADC MSP */ if (hadc->State == HAL_ADC_STATE_RESET) - 800173c: 687b ldr r3, [r7, #4] - 800173e: 6ddb ldr r3, [r3, #92] @ 0x5c - 8001740: 2b00 cmp r3, #0 - 8001742: d109 bne.n 8001758 + 8002018: 687b ldr r3, [r7, #4] + 800201a: 6ddb ldr r3, [r3, #92] @ 0x5c + 800201c: 2b00 cmp r3, #0 + 800201e: d109 bne.n 8002034 /* Init the low level hardware */ hadc->MspInitCallback(hadc); #else /* Init the low level hardware */ HAL_ADC_MspInit(hadc); - 8001744: 6878 ldr r0, [r7, #4] - 8001746: f7ff fb6f bl 8000e28 + 8002020: 6878 ldr r0, [r7, #4] + 8002022: f7ff fb6f bl 8001704 #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ /* Set ADC error code to none */ ADC_CLEAR_ERRORCODE(hadc); - 800174a: 687b ldr r3, [r7, #4] - 800174c: 2200 movs r2, #0 - 800174e: 661a str r2, [r3, #96] @ 0x60 + 8002026: 687b ldr r3, [r7, #4] + 8002028: 2200 movs r2, #0 + 800202a: 661a str r2, [r3, #96] @ 0x60 /* Initialize Lock */ hadc->Lock = HAL_UNLOCKED; - 8001750: 687b ldr r3, [r7, #4] - 8001752: 2200 movs r2, #0 - 8001754: f883 2058 strb.w r2, [r3, #88] @ 0x58 + 800202c: 687b ldr r3, [r7, #4] + 800202e: 2200 movs r2, #0 + 8002030: f883 2058 strb.w r2, [r3, #88] @ 0x58 } /* - Exit from deep-power-down mode and ADC voltage regulator enable */ if (LL_ADC_IsDeepPowerDownEnabled(hadc->Instance) != 0UL) - 8001758: 687b ldr r3, [r7, #4] - 800175a: 681b ldr r3, [r3, #0] - 800175c: 4618 mov r0, r3 - 800175e: f7ff fef1 bl 8001544 - 8001762: 4603 mov r3, r0 - 8001764: 2b00 cmp r3, #0 - 8001766: d004 beq.n 8001772 + 8002034: 687b ldr r3, [r7, #4] + 8002036: 681b ldr r3, [r3, #0] + 8002038: 4618 mov r0, r3 + 800203a: f7ff fef1 bl 8001e20 + 800203e: 4603 mov r3, r0 + 8002040: 2b00 cmp r3, #0 + 8002042: d004 beq.n 800204e { /* Disable ADC deep power down mode */ LL_ADC_DisableDeepPowerDown(hadc->Instance); - 8001768: 687b ldr r3, [r7, #4] - 800176a: 681b ldr r3, [r3, #0] - 800176c: 4618 mov r0, r3 - 800176e: f7ff fed7 bl 8001520 + 8002044: 687b ldr r3, [r7, #4] + 8002046: 681b ldr r3, [r3, #0] + 8002048: 4618 mov r0, r3 + 800204a: f7ff fed7 bl 8001dfc /* System was in deep power down mode, calibration must be relaunched or a previously saved calibration factor re-applied once the ADC voltage regulator is enabled */ } if (LL_ADC_IsInternalRegulatorEnabled(hadc->Instance) == 0UL) - 8001772: 687b ldr r3, [r7, #4] - 8001774: 681b ldr r3, [r3, #0] - 8001776: 4618 mov r0, r3 - 8001778: f7ff ff0c bl 8001594 - 800177c: 4603 mov r3, r0 - 800177e: 2b00 cmp r3, #0 - 8001780: d115 bne.n 80017ae + 800204e: 687b ldr r3, [r7, #4] + 8002050: 681b ldr r3, [r3, #0] + 8002052: 4618 mov r0, r3 + 8002054: f7ff ff0c bl 8001e70 + 8002058: 4603 mov r3, r0 + 800205a: 2b00 cmp r3, #0 + 800205c: d115 bne.n 800208a { /* Enable ADC internal voltage regulator */ LL_ADC_EnableInternalRegulator(hadc->Instance); - 8001782: 687b ldr r3, [r7, #4] - 8001784: 681b ldr r3, [r3, #0] - 8001786: 4618 mov r0, r3 - 8001788: f7ff fef0 bl 800156c + 800205e: 687b ldr r3, [r7, #4] + 8002060: 681b ldr r3, [r3, #0] + 8002062: 4618 mov r0, r3 + 8002064: f7ff fef0 bl 8001e48 /* Note: Variable divided by 2 to compensate partially */ /* CPU processing cycles, scaling in us split to not */ /* exceed 32 bits register capacity and handle low frequency. */ wait_loop_index = ((LL_ADC_DELAY_INTERNAL_REGUL_STAB_US / 10UL) * ((SystemCoreClock / (100000UL * 2UL)) + 1UL)); - 800178c: 4ba0 ldr r3, [pc, #640] @ (8001a10 ) - 800178e: 681b ldr r3, [r3, #0] - 8001790: 099b lsrs r3, r3, #6 - 8001792: 4aa0 ldr r2, [pc, #640] @ (8001a14 ) - 8001794: fba2 2303 umull r2, r3, r2, r3 - 8001798: 099b lsrs r3, r3, #6 - 800179a: 3301 adds r3, #1 - 800179c: 005b lsls r3, r3, #1 - 800179e: 60fb str r3, [r7, #12] + 8002068: 4ba0 ldr r3, [pc, #640] @ (80022ec ) + 800206a: 681b ldr r3, [r3, #0] + 800206c: 099b lsrs r3, r3, #6 + 800206e: 4aa0 ldr r2, [pc, #640] @ (80022f0 ) + 8002070: fba2 2303 umull r2, r3, r2, r3 + 8002074: 099b lsrs r3, r3, #6 + 8002076: 3301 adds r3, #1 + 8002078: 005b lsls r3, r3, #1 + 800207a: 60fb str r3, [r7, #12] while (wait_loop_index != 0UL) - 80017a0: e002 b.n 80017a8 + 800207c: e002 b.n 8002084 { wait_loop_index--; - 80017a2: 68fb ldr r3, [r7, #12] - 80017a4: 3b01 subs r3, #1 - 80017a6: 60fb str r3, [r7, #12] + 800207e: 68fb ldr r3, [r7, #12] + 8002080: 3b01 subs r3, #1 + 8002082: 60fb str r3, [r7, #12] while (wait_loop_index != 0UL) - 80017a8: 68fb ldr r3, [r7, #12] - 80017aa: 2b00 cmp r3, #0 - 80017ac: d1f9 bne.n 80017a2 + 8002084: 68fb ldr r3, [r7, #12] + 8002086: 2b00 cmp r3, #0 + 8002088: d1f9 bne.n 800207e } /* Verification that ADC voltage regulator is correctly enabled, whether */ /* or not ADC is coming from state reset (if any potential problem of */ /* clocking, voltage regulator would not be enabled). */ if (LL_ADC_IsInternalRegulatorEnabled(hadc->Instance) == 0UL) - 80017ae: 687b ldr r3, [r7, #4] - 80017b0: 681b ldr r3, [r3, #0] - 80017b2: 4618 mov r0, r3 - 80017b4: f7ff feee bl 8001594 - 80017b8: 4603 mov r3, r0 - 80017ba: 2b00 cmp r3, #0 - 80017bc: d10d bne.n 80017da + 800208a: 687b ldr r3, [r7, #4] + 800208c: 681b ldr r3, [r3, #0] + 800208e: 4618 mov r0, r3 + 8002090: f7ff feee bl 8001e70 + 8002094: 4603 mov r3, r0 + 8002096: 2b00 cmp r3, #0 + 8002098: d10d bne.n 80020b6 { /* Update ADC state machine to error */ SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); - 80017be: 687b ldr r3, [r7, #4] - 80017c0: 6ddb ldr r3, [r3, #92] @ 0x5c - 80017c2: f043 0210 orr.w r2, r3, #16 - 80017c6: 687b ldr r3, [r7, #4] - 80017c8: 65da str r2, [r3, #92] @ 0x5c + 800209a: 687b ldr r3, [r7, #4] + 800209c: 6ddb ldr r3, [r3, #92] @ 0x5c + 800209e: f043 0210 orr.w r2, r3, #16 + 80020a2: 687b ldr r3, [r7, #4] + 80020a4: 65da str r2, [r3, #92] @ 0x5c /* Set ADC error code to ADC peripheral internal error */ SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); - 80017ca: 687b ldr r3, [r7, #4] - 80017cc: 6e1b ldr r3, [r3, #96] @ 0x60 - 80017ce: f043 0201 orr.w r2, r3, #1 - 80017d2: 687b ldr r3, [r7, #4] - 80017d4: 661a str r2, [r3, #96] @ 0x60 + 80020a6: 687b ldr r3, [r7, #4] + 80020a8: 6e1b ldr r3, [r3, #96] @ 0x60 + 80020aa: f043 0201 orr.w r2, r3, #1 + 80020ae: 687b ldr r3, [r7, #4] + 80020b0: 661a str r2, [r3, #96] @ 0x60 tmp_hal_status = HAL_ERROR; - 80017d6: 2301 movs r3, #1 - 80017d8: 77fb strb r3, [r7, #31] + 80020b2: 2301 movs r3, #1 + 80020b4: 77fb strb r3, [r7, #31] /* Configuration of ADC parameters if previous preliminary actions are */ /* correctly completed and if there is no conversion on going on regular */ /* group (ADC may already be enabled at this point if HAL_ADC_Init() is */ /* called to update a parameter on the fly). */ tmp_adc_is_conversion_on_going_regular = LL_ADC_REG_IsConversionOngoing(hadc->Instance); - 80017da: 687b ldr r3, [r7, #4] - 80017dc: 681b ldr r3, [r3, #0] - 80017de: 4618 mov r0, r3 - 80017e0: f7ff ff62 bl 80016a8 - 80017e4: 6178 str r0, [r7, #20] + 80020b6: 687b ldr r3, [r7, #4] + 80020b8: 681b ldr r3, [r3, #0] + 80020ba: 4618 mov r0, r3 + 80020bc: f7ff ff62 bl 8001f84 + 80020c0: 6178 str r0, [r7, #20] if (((hadc->State & HAL_ADC_STATE_ERROR_INTERNAL) == 0UL) - 80017e6: 687b ldr r3, [r7, #4] - 80017e8: 6ddb ldr r3, [r3, #92] @ 0x5c - 80017ea: f003 0310 and.w r3, r3, #16 - 80017ee: 2b00 cmp r3, #0 - 80017f0: f040 8100 bne.w 80019f4 + 80020c2: 687b ldr r3, [r7, #4] + 80020c4: 6ddb ldr r3, [r3, #92] @ 0x5c + 80020c6: f003 0310 and.w r3, r3, #16 + 80020ca: 2b00 cmp r3, #0 + 80020cc: f040 8100 bne.w 80022d0 && (tmp_adc_is_conversion_on_going_regular == 0UL) - 80017f4: 697b ldr r3, [r7, #20] - 80017f6: 2b00 cmp r3, #0 - 80017f8: f040 80fc bne.w 80019f4 + 80020d0: 697b ldr r3, [r7, #20] + 80020d2: 2b00 cmp r3, #0 + 80020d4: f040 80fc bne.w 80022d0 ) { /* Set ADC state */ ADC_STATE_CLR_SET(hadc->State, - 80017fc: 687b ldr r3, [r7, #4] - 80017fe: 6ddb ldr r3, [r3, #92] @ 0x5c - 8001800: f423 7381 bic.w r3, r3, #258 @ 0x102 - 8001804: f043 0202 orr.w r2, r3, #2 - 8001808: 687b ldr r3, [r7, #4] - 800180a: 65da str r2, [r3, #92] @ 0x5c + 80020d8: 687b ldr r3, [r7, #4] + 80020da: 6ddb ldr r3, [r3, #92] @ 0x5c + 80020dc: f423 7381 bic.w r3, r3, #258 @ 0x102 + 80020e0: f043 0202 orr.w r2, r3, #2 + 80020e4: 687b ldr r3, [r7, #4] + 80020e6: 65da str r2, [r3, #92] @ 0x5c /* Configuration of common ADC parameters */ /* Parameters update conditioned to ADC state: */ /* Parameters that can be updated only when ADC is disabled: */ /* - clock configuration */ if (LL_ADC_IsEnabled(hadc->Instance) == 0UL) - 800180c: 687b ldr r3, [r7, #4] - 800180e: 681b ldr r3, [r3, #0] - 8001810: 4618 mov r0, r3 - 8001812: f7ff fefb bl 800160c - 8001816: 4603 mov r3, r0 - 8001818: 2b00 cmp r3, #0 - 800181a: d111 bne.n 8001840 + 80020e8: 687b ldr r3, [r7, #4] + 80020ea: 681b ldr r3, [r3, #0] + 80020ec: 4618 mov r0, r3 + 80020ee: f7ff fefb bl 8001ee8 + 80020f2: 4603 mov r3, r0 + 80020f4: 2b00 cmp r3, #0 + 80020f6: d111 bne.n 800211c { if (__LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__LL_ADC_COMMON_INSTANCE(hadc->Instance)) == 0UL) - 800181c: f04f 40a0 mov.w r0, #1342177280 @ 0x50000000 - 8001820: f7ff fef4 bl 800160c - 8001824: 4604 mov r4, r0 - 8001826: 487c ldr r0, [pc, #496] @ (8001a18 ) - 8001828: f7ff fef0 bl 800160c - 800182c: 4603 mov r3, r0 - 800182e: 4323 orrs r3, r4 - 8001830: 2b00 cmp r3, #0 - 8001832: d105 bne.n 8001840 + 80020f8: f04f 40a0 mov.w r0, #1342177280 @ 0x50000000 + 80020fc: f7ff fef4 bl 8001ee8 + 8002100: 4604 mov r4, r0 + 8002102: 487c ldr r0, [pc, #496] @ (80022f4 ) + 8002104: f7ff fef0 bl 8001ee8 + 8002108: 4603 mov r3, r0 + 800210a: 4323 orrs r3, r4 + 800210c: 2b00 cmp r3, #0 + 800210e: d105 bne.n 800211c /* parameters: MDMA, DMACFG, DELAY, DUAL (set by API */ /* HAL_ADCEx_MultiModeConfigChannel() ) */ /* - internal measurement paths: Vbat, temperature sensor, Vref */ /* (set into HAL_ADC_ConfigChannel() or */ /* HAL_ADCEx_InjectedConfigChannel() ) */ LL_ADC_SetCommonClock(__LL_ADC_COMMON_INSTANCE(hadc->Instance), hadc->Init.ClockPrescaler); - 8001834: 687b ldr r3, [r7, #4] - 8001836: 685b ldr r3, [r3, #4] - 8001838: 4619 mov r1, r3 - 800183a: 4878 ldr r0, [pc, #480] @ (8001a1c ) - 800183c: f7ff fcf4 bl 8001228 + 8002110: 687b ldr r3, [r7, #4] + 8002112: 685b ldr r3, [r3, #4] + 8002114: 4619 mov r1, r3 + 8002116: 4878 ldr r0, [pc, #480] @ (80022f8 ) + 8002118: f7ff fcf4 bl 8001b04 /* - external trigger polarity Init.ExternalTrigConvEdge */ /* - continuous conversion mode Init.ContinuousConvMode */ /* - overrun Init.Overrun */ /* - discontinuous mode Init.DiscontinuousConvMode */ /* - discontinuous mode channel count Init.NbrOfDiscConversion */ tmp_cfgr = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) | - 8001840: 687b ldr r3, [r7, #4] - 8001842: 7f5b ldrb r3, [r3, #29] - 8001844: 035a lsls r2, r3, #13 + 800211c: 687b ldr r3, [r7, #4] + 800211e: 7f5b ldrb r3, [r3, #29] + 8002120: 035a lsls r2, r3, #13 hadc->Init.Overrun | - 8001846: 687b ldr r3, [r7, #4] - 8001848: 6bdb ldr r3, [r3, #60] @ 0x3c + 8002122: 687b ldr r3, [r7, #4] + 8002124: 6bdb ldr r3, [r3, #60] @ 0x3c tmp_cfgr = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) | - 800184a: 431a orrs r2, r3 + 8002126: 431a orrs r2, r3 hadc->Init.DataAlign | - 800184c: 687b ldr r3, [r7, #4] - 800184e: 68db ldr r3, [r3, #12] + 8002128: 687b ldr r3, [r7, #4] + 800212a: 68db ldr r3, [r3, #12] hadc->Init.Overrun | - 8001850: 431a orrs r2, r3 + 800212c: 431a orrs r2, r3 hadc->Init.Resolution | - 8001852: 687b ldr r3, [r7, #4] - 8001854: 689b ldr r3, [r3, #8] + 800212e: 687b ldr r3, [r7, #4] + 8002130: 689b ldr r3, [r3, #8] hadc->Init.DataAlign | - 8001856: 431a orrs r2, r3 + 8002132: 431a orrs r2, r3 ADC_CFGR_REG_DISCONTINUOUS((uint32_t)hadc->Init.DiscontinuousConvMode)); - 8001858: 687b ldr r3, [r7, #4] - 800185a: f893 3024 ldrb.w r3, [r3, #36] @ 0x24 - 800185e: 041b lsls r3, r3, #16 + 8002134: 687b ldr r3, [r7, #4] + 8002136: f893 3024 ldrb.w r3, [r3, #36] @ 0x24 + 800213a: 041b lsls r3, r3, #16 tmp_cfgr = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) | - 8001860: 4313 orrs r3, r2 - 8001862: 61bb str r3, [r7, #24] + 800213c: 4313 orrs r3, r2 + 800213e: 61bb str r3, [r7, #24] if (hadc->Init.DiscontinuousConvMode == ENABLE) - 8001864: 687b ldr r3, [r7, #4] - 8001866: f893 3024 ldrb.w r3, [r3, #36] @ 0x24 - 800186a: 2b01 cmp r3, #1 - 800186c: d106 bne.n 800187c + 8002140: 687b ldr r3, [r7, #4] + 8002142: f893 3024 ldrb.w r3, [r3, #36] @ 0x24 + 8002146: 2b01 cmp r3, #1 + 8002148: d106 bne.n 8002158 { tmp_cfgr |= ADC_CFGR_DISCONTINUOUS_NUM(hadc->Init.NbrOfDiscConversion); - 800186e: 687b ldr r3, [r7, #4] - 8001870: 6a9b ldr r3, [r3, #40] @ 0x28 - 8001872: 3b01 subs r3, #1 - 8001874: 045b lsls r3, r3, #17 - 8001876: 69ba ldr r2, [r7, #24] - 8001878: 4313 orrs r3, r2 - 800187a: 61bb str r3, [r7, #24] + 800214a: 687b ldr r3, [r7, #4] + 800214c: 6a9b ldr r3, [r3, #40] @ 0x28 + 800214e: 3b01 subs r3, #1 + 8002150: 045b lsls r3, r3, #17 + 8002152: 69ba ldr r2, [r7, #24] + 8002154: 4313 orrs r3, r2 + 8002156: 61bb str r3, [r7, #24] /* Enable external trigger if trigger selection is different of software */ /* start. */ /* Note: This configuration keeps the hardware feature of parameter */ /* ExternalTrigConvEdge "trigger edge none" equivalent to */ /* software start. */ if (hadc->Init.ExternalTrigConv != ADC_SOFTWARE_START) - 800187c: 687b ldr r3, [r7, #4] - 800187e: 6adb ldr r3, [r3, #44] @ 0x2c - 8001880: 2b00 cmp r3, #0 - 8001882: d009 beq.n 8001898 + 8002158: 687b ldr r3, [r7, #4] + 800215a: 6adb ldr r3, [r3, #44] @ 0x2c + 800215c: 2b00 cmp r3, #0 + 800215e: d009 beq.n 8002174 { tmp_cfgr |= ((hadc->Init.ExternalTrigConv & ADC_CFGR_EXTSEL) - 8001884: 687b ldr r3, [r7, #4] - 8001886: 6adb ldr r3, [r3, #44] @ 0x2c - 8001888: f403 7278 and.w r2, r3, #992 @ 0x3e0 + 8002160: 687b ldr r3, [r7, #4] + 8002162: 6adb ldr r3, [r3, #44] @ 0x2c + 8002164: f403 7278 and.w r2, r3, #992 @ 0x3e0 | hadc->Init.ExternalTrigConvEdge - 800188c: 687b ldr r3, [r7, #4] - 800188e: 6b1b ldr r3, [r3, #48] @ 0x30 - 8001890: 4313 orrs r3, r2 + 8002168: 687b ldr r3, [r7, #4] + 800216a: 6b1b ldr r3, [r3, #48] @ 0x30 + 800216c: 4313 orrs r3, r2 tmp_cfgr |= ((hadc->Init.ExternalTrigConv & ADC_CFGR_EXTSEL) - 8001892: 69ba ldr r2, [r7, #24] - 8001894: 4313 orrs r3, r2 - 8001896: 61bb str r3, [r7, #24] + 800216e: 69ba ldr r2, [r7, #24] + 8002170: 4313 orrs r3, r2 + 8002172: 61bb str r3, [r7, #24] ); } /* Update Configuration Register CFGR */ MODIFY_REG(hadc->Instance->CFGR, ADC_CFGR_FIELDS_1, tmp_cfgr); - 8001898: 687b ldr r3, [r7, #4] - 800189a: 681b ldr r3, [r3, #0] - 800189c: 68da ldr r2, [r3, #12] - 800189e: 4b60 ldr r3, [pc, #384] @ (8001a20 ) - 80018a0: 4013 ands r3, r2 - 80018a2: 687a ldr r2, [r7, #4] - 80018a4: 6812 ldr r2, [r2, #0] - 80018a6: 69b9 ldr r1, [r7, #24] - 80018a8: 430b orrs r3, r1 - 80018aa: 60d3 str r3, [r2, #12] + 8002174: 687b ldr r3, [r7, #4] + 8002176: 681b ldr r3, [r3, #0] + 8002178: 68da ldr r2, [r3, #12] + 800217a: 4b60 ldr r3, [pc, #384] @ (80022fc ) + 800217c: 4013 ands r3, r2 + 800217e: 687a ldr r2, [r7, #4] + 8002180: 6812 ldr r2, [r2, #0] + 8002182: 69b9 ldr r1, [r7, #24] + 8002184: 430b orrs r3, r1 + 8002186: 60d3 str r3, [r2, #12] /* Configuration of sampling mode */ MODIFY_REG(hadc->Instance->CFGR2, ADC_CFGR2_BULB | ADC_CFGR2_SMPTRIG, hadc->Init.SamplingMode); - 80018ac: 687b ldr r3, [r7, #4] - 80018ae: 681b ldr r3, [r3, #0] - 80018b0: 691b ldr r3, [r3, #16] - 80018b2: f023 6140 bic.w r1, r3, #201326592 @ 0xc000000 - 80018b6: 687b ldr r3, [r7, #4] - 80018b8: 6b5a ldr r2, [r3, #52] @ 0x34 - 80018ba: 687b ldr r3, [r7, #4] - 80018bc: 681b ldr r3, [r3, #0] - 80018be: 430a orrs r2, r1 - 80018c0: 611a str r2, [r3, #16] + 8002188: 687b ldr r3, [r7, #4] + 800218a: 681b ldr r3, [r3, #0] + 800218c: 691b ldr r3, [r3, #16] + 800218e: f023 6140 bic.w r1, r3, #201326592 @ 0xc000000 + 8002192: 687b ldr r3, [r7, #4] + 8002194: 6b5a ldr r2, [r3, #52] @ 0x34 + 8002196: 687b ldr r3, [r7, #4] + 8002198: 681b ldr r3, [r3, #0] + 800219a: 430a orrs r2, r1 + 800219c: 611a str r2, [r3, #16] /* conversion on going on regular and injected groups: */ /* - Gain Compensation Init.GainCompensation */ /* - DMA continuous request Init.DMAContinuousRequests */ /* - LowPowerAutoWait feature Init.LowPowerAutoWait */ /* - Oversampling parameters Init.Oversampling */ tmp_adc_is_conversion_on_going_injected = LL_ADC_INJ_IsConversionOngoing(hadc->Instance); - 80018c2: 687b ldr r3, [r7, #4] - 80018c4: 681b ldr r3, [r3, #0] - 80018c6: 4618 mov r0, r3 - 80018c8: f7ff ff15 bl 80016f6 - 80018cc: 6138 str r0, [r7, #16] + 800219e: 687b ldr r3, [r7, #4] + 80021a0: 681b ldr r3, [r3, #0] + 80021a2: 4618 mov r0, r3 + 80021a4: f7ff ff15 bl 8001fd2 + 80021a8: 6138 str r0, [r7, #16] if ((tmp_adc_is_conversion_on_going_regular == 0UL) - 80018ce: 697b ldr r3, [r7, #20] - 80018d0: 2b00 cmp r3, #0 - 80018d2: d16d bne.n 80019b0 + 80021aa: 697b ldr r3, [r7, #20] + 80021ac: 2b00 cmp r3, #0 + 80021ae: d16d bne.n 800228c && (tmp_adc_is_conversion_on_going_injected == 0UL) - 80018d4: 693b ldr r3, [r7, #16] - 80018d6: 2b00 cmp r3, #0 - 80018d8: d16a bne.n 80019b0 + 80021b0: 693b ldr r3, [r7, #16] + 80021b2: 2b00 cmp r3, #0 + 80021b4: d16a bne.n 800228c ) { tmp_cfgr = (ADC_CFGR_DFSDM(hadc) | ADC_CFGR_AUTOWAIT((uint32_t)hadc->Init.LowPowerAutoWait) | - 80018da: 687b ldr r3, [r7, #4] - 80018dc: 7f1b ldrb r3, [r3, #28] + 80021b6: 687b ldr r3, [r7, #4] + 80021b8: 7f1b ldrb r3, [r3, #28] tmp_cfgr = (ADC_CFGR_DFSDM(hadc) | - 80018de: 039a lsls r2, r3, #14 + 80021ba: 039a lsls r2, r3, #14 ADC_CFGR_DMACONTREQ((uint32_t)hadc->Init.DMAContinuousRequests)); - 80018e0: 687b ldr r3, [r7, #4] - 80018e2: f893 3038 ldrb.w r3, [r3, #56] @ 0x38 - 80018e6: 005b lsls r3, r3, #1 + 80021bc: 687b ldr r3, [r7, #4] + 80021be: f893 3038 ldrb.w r3, [r3, #56] @ 0x38 + 80021c2: 005b lsls r3, r3, #1 tmp_cfgr = (ADC_CFGR_DFSDM(hadc) | - 80018e8: 4313 orrs r3, r2 - 80018ea: 61bb str r3, [r7, #24] + 80021c4: 4313 orrs r3, r2 + 80021c6: 61bb str r3, [r7, #24] MODIFY_REG(hadc->Instance->CFGR, ADC_CFGR_FIELDS_2, tmp_cfgr); - 80018ec: 687b ldr r3, [r7, #4] - 80018ee: 681b ldr r3, [r3, #0] - 80018f0: 68db ldr r3, [r3, #12] - 80018f2: f423 4380 bic.w r3, r3, #16384 @ 0x4000 - 80018f6: f023 0302 bic.w r3, r3, #2 - 80018fa: 687a ldr r2, [r7, #4] - 80018fc: 6812 ldr r2, [r2, #0] - 80018fe: 69b9 ldr r1, [r7, #24] - 8001900: 430b orrs r3, r1 - 8001902: 60d3 str r3, [r2, #12] + 80021c8: 687b ldr r3, [r7, #4] + 80021ca: 681b ldr r3, [r3, #0] + 80021cc: 68db ldr r3, [r3, #12] + 80021ce: f423 4380 bic.w r3, r3, #16384 @ 0x4000 + 80021d2: f023 0302 bic.w r3, r3, #2 + 80021d6: 687a ldr r2, [r7, #4] + 80021d8: 6812 ldr r2, [r2, #0] + 80021da: 69b9 ldr r1, [r7, #24] + 80021dc: 430b orrs r3, r1 + 80021de: 60d3 str r3, [r2, #12] if (hadc->Init.GainCompensation != 0UL) - 8001904: 687b ldr r3, [r7, #4] - 8001906: 691b ldr r3, [r3, #16] - 8001908: 2b00 cmp r3, #0 - 800190a: d017 beq.n 800193c + 80021e0: 687b ldr r3, [r7, #4] + 80021e2: 691b ldr r3, [r3, #16] + 80021e4: 2b00 cmp r3, #0 + 80021e6: d017 beq.n 8002218 { SET_BIT(hadc->Instance->CFGR2, ADC_CFGR2_GCOMP); - 800190c: 687b ldr r3, [r7, #4] - 800190e: 681b ldr r3, [r3, #0] - 8001910: 691a ldr r2, [r3, #16] - 8001912: 687b ldr r3, [r7, #4] - 8001914: 681b ldr r3, [r3, #0] - 8001916: f442 3280 orr.w r2, r2, #65536 @ 0x10000 - 800191a: 611a str r2, [r3, #16] + 80021e8: 687b ldr r3, [r7, #4] + 80021ea: 681b ldr r3, [r3, #0] + 80021ec: 691a ldr r2, [r3, #16] + 80021ee: 687b ldr r3, [r7, #4] + 80021f0: 681b ldr r3, [r3, #0] + 80021f2: f442 3280 orr.w r2, r2, #65536 @ 0x10000 + 80021f6: 611a str r2, [r3, #16] MODIFY_REG(hadc->Instance->GCOMP, ADC_GCOMP_GCOMPCOEFF, hadc->Init.GainCompensation); - 800191c: 687b ldr r3, [r7, #4] - 800191e: 681b ldr r3, [r3, #0] - 8001920: f8d3 30c0 ldr.w r3, [r3, #192] @ 0xc0 - 8001924: f423 537f bic.w r3, r3, #16320 @ 0x3fc0 - 8001928: f023 033f bic.w r3, r3, #63 @ 0x3f - 800192c: 687a ldr r2, [r7, #4] - 800192e: 6911 ldr r1, [r2, #16] - 8001930: 687a ldr r2, [r7, #4] - 8001932: 6812 ldr r2, [r2, #0] - 8001934: 430b orrs r3, r1 - 8001936: f8c2 30c0 str.w r3, [r2, #192] @ 0xc0 - 800193a: e013 b.n 8001964 + 80021f8: 687b ldr r3, [r7, #4] + 80021fa: 681b ldr r3, [r3, #0] + 80021fc: f8d3 30c0 ldr.w r3, [r3, #192] @ 0xc0 + 8002200: f423 537f bic.w r3, r3, #16320 @ 0x3fc0 + 8002204: f023 033f bic.w r3, r3, #63 @ 0x3f + 8002208: 687a ldr r2, [r7, #4] + 800220a: 6911 ldr r1, [r2, #16] + 800220c: 687a ldr r2, [r7, #4] + 800220e: 6812 ldr r2, [r2, #0] + 8002210: 430b orrs r3, r1 + 8002212: f8c2 30c0 str.w r3, [r2, #192] @ 0xc0 + 8002216: e013 b.n 8002240 } else { CLEAR_BIT(hadc->Instance->CFGR2, ADC_CFGR2_GCOMP); - 800193c: 687b ldr r3, [r7, #4] - 800193e: 681b ldr r3, [r3, #0] - 8001940: 691a ldr r2, [r3, #16] - 8001942: 687b ldr r3, [r7, #4] - 8001944: 681b ldr r3, [r3, #0] - 8001946: f422 3280 bic.w r2, r2, #65536 @ 0x10000 - 800194a: 611a str r2, [r3, #16] + 8002218: 687b ldr r3, [r7, #4] + 800221a: 681b ldr r3, [r3, #0] + 800221c: 691a ldr r2, [r3, #16] + 800221e: 687b ldr r3, [r7, #4] + 8002220: 681b ldr r3, [r3, #0] + 8002222: f422 3280 bic.w r2, r2, #65536 @ 0x10000 + 8002226: 611a str r2, [r3, #16] MODIFY_REG(hadc->Instance->GCOMP, ADC_GCOMP_GCOMPCOEFF, 0UL); - 800194c: 687b ldr r3, [r7, #4] - 800194e: 681b ldr r3, [r3, #0] - 8001950: f8d3 30c0 ldr.w r3, [r3, #192] @ 0xc0 - 8001954: 687a ldr r2, [r7, #4] - 8001956: 6812 ldr r2, [r2, #0] - 8001958: f423 537f bic.w r3, r3, #16320 @ 0x3fc0 - 800195c: f023 033f bic.w r3, r3, #63 @ 0x3f - 8001960: f8c2 30c0 str.w r3, [r2, #192] @ 0xc0 + 8002228: 687b ldr r3, [r7, #4] + 800222a: 681b ldr r3, [r3, #0] + 800222c: f8d3 30c0 ldr.w r3, [r3, #192] @ 0xc0 + 8002230: 687a ldr r2, [r7, #4] + 8002232: 6812 ldr r2, [r2, #0] + 8002234: f423 537f bic.w r3, r3, #16320 @ 0x3fc0 + 8002238: f023 033f bic.w r3, r3, #63 @ 0x3f + 800223c: f8c2 30c0 str.w r3, [r2, #192] @ 0xc0 } if (hadc->Init.OversamplingMode == ENABLE) - 8001964: 687b ldr r3, [r7, #4] - 8001966: f893 3040 ldrb.w r3, [r3, #64] @ 0x40 - 800196a: 2b01 cmp r3, #1 - 800196c: d118 bne.n 80019a0 + 8002240: 687b ldr r3, [r7, #4] + 8002242: f893 3040 ldrb.w r3, [r3, #64] @ 0x40 + 8002246: 2b01 cmp r3, #1 + 8002248: d118 bne.n 800227c /* Configuration of Oversampler: */ /* - Oversampling Ratio */ /* - Right bit shift */ /* - Triggered mode */ /* - Oversampling mode (continued/resumed) */ MODIFY_REG(hadc->Instance->CFGR2, - 800196e: 687b ldr r3, [r7, #4] - 8001970: 681b ldr r3, [r3, #0] - 8001972: 691b ldr r3, [r3, #16] - 8001974: f423 63ff bic.w r3, r3, #2040 @ 0x7f8 - 8001978: f023 0304 bic.w r3, r3, #4 - 800197c: 687a ldr r2, [r7, #4] - 800197e: 6c51 ldr r1, [r2, #68] @ 0x44 - 8001980: 687a ldr r2, [r7, #4] - 8001982: 6c92 ldr r2, [r2, #72] @ 0x48 - 8001984: 4311 orrs r1, r2 - 8001986: 687a ldr r2, [r7, #4] - 8001988: 6cd2 ldr r2, [r2, #76] @ 0x4c - 800198a: 4311 orrs r1, r2 - 800198c: 687a ldr r2, [r7, #4] - 800198e: 6d12 ldr r2, [r2, #80] @ 0x50 - 8001990: 430a orrs r2, r1 - 8001992: 431a orrs r2, r3 - 8001994: 687b ldr r3, [r7, #4] - 8001996: 681b ldr r3, [r3, #0] - 8001998: f042 0201 orr.w r2, r2, #1 - 800199c: 611a str r2, [r3, #16] - 800199e: e007 b.n 80019b0 + 800224a: 687b ldr r3, [r7, #4] + 800224c: 681b ldr r3, [r3, #0] + 800224e: 691b ldr r3, [r3, #16] + 8002250: f423 63ff bic.w r3, r3, #2040 @ 0x7f8 + 8002254: f023 0304 bic.w r3, r3, #4 + 8002258: 687a ldr r2, [r7, #4] + 800225a: 6c51 ldr r1, [r2, #68] @ 0x44 + 800225c: 687a ldr r2, [r7, #4] + 800225e: 6c92 ldr r2, [r2, #72] @ 0x48 + 8002260: 4311 orrs r1, r2 + 8002262: 687a ldr r2, [r7, #4] + 8002264: 6cd2 ldr r2, [r2, #76] @ 0x4c + 8002266: 4311 orrs r1, r2 + 8002268: 687a ldr r2, [r7, #4] + 800226a: 6d12 ldr r2, [r2, #80] @ 0x50 + 800226c: 430a orrs r2, r1 + 800226e: 431a orrs r2, r3 + 8002270: 687b ldr r3, [r7, #4] + 8002272: 681b ldr r3, [r3, #0] + 8002274: f042 0201 orr.w r2, r2, #1 + 8002278: 611a str r2, [r3, #16] + 800227a: e007 b.n 800228c ); } else { /* Disable ADC oversampling scope on ADC group regular */ CLEAR_BIT(hadc->Instance->CFGR2, ADC_CFGR2_ROVSE); - 80019a0: 687b ldr r3, [r7, #4] - 80019a2: 681b ldr r3, [r3, #0] - 80019a4: 691a ldr r2, [r3, #16] - 80019a6: 687b ldr r3, [r7, #4] - 80019a8: 681b ldr r3, [r3, #0] - 80019aa: f022 0201 bic.w r2, r2, #1 - 80019ae: 611a str r2, [r3, #16] + 800227c: 687b ldr r3, [r7, #4] + 800227e: 681b ldr r3, [r3, #0] + 8002280: 691a ldr r2, [r3, #16] + 8002282: 687b ldr r3, [r7, #4] + 8002284: 681b ldr r3, [r3, #0] + 8002286: f022 0201 bic.w r2, r2, #1 + 800228a: 611a str r2, [r3, #16] /* Note: Scan mode is not present by hardware on this device, but */ /* emulated by software for alignment over all STM32 devices. */ /* - if scan mode is enabled, regular channels sequence length is set to */ /* parameter "NbrOfConversion". */ if (hadc->Init.ScanConvMode == ADC_SCAN_ENABLE) - 80019b0: 687b ldr r3, [r7, #4] - 80019b2: 695b ldr r3, [r3, #20] - 80019b4: 2b01 cmp r3, #1 - 80019b6: d10c bne.n 80019d2 + 800228c: 687b ldr r3, [r7, #4] + 800228e: 695b ldr r3, [r3, #20] + 8002290: 2b01 cmp r3, #1 + 8002292: d10c bne.n 80022ae { /* Set number of ranks in regular group sequencer */ MODIFY_REG(hadc->Instance->SQR1, ADC_SQR1_L, (hadc->Init.NbrOfConversion - (uint8_t)1)); - 80019b8: 687b ldr r3, [r7, #4] - 80019ba: 681b ldr r3, [r3, #0] - 80019bc: 6b1b ldr r3, [r3, #48] @ 0x30 - 80019be: f023 010f bic.w r1, r3, #15 - 80019c2: 687b ldr r3, [r7, #4] - 80019c4: 6a1b ldr r3, [r3, #32] - 80019c6: 1e5a subs r2, r3, #1 - 80019c8: 687b ldr r3, [r7, #4] - 80019ca: 681b ldr r3, [r3, #0] - 80019cc: 430a orrs r2, r1 - 80019ce: 631a str r2, [r3, #48] @ 0x30 - 80019d0: e007 b.n 80019e2 + 8002294: 687b ldr r3, [r7, #4] + 8002296: 681b ldr r3, [r3, #0] + 8002298: 6b1b ldr r3, [r3, #48] @ 0x30 + 800229a: f023 010f bic.w r1, r3, #15 + 800229e: 687b ldr r3, [r7, #4] + 80022a0: 6a1b ldr r3, [r3, #32] + 80022a2: 1e5a subs r2, r3, #1 + 80022a4: 687b ldr r3, [r7, #4] + 80022a6: 681b ldr r3, [r3, #0] + 80022a8: 430a orrs r2, r1 + 80022aa: 631a str r2, [r3, #48] @ 0x30 + 80022ac: e007 b.n 80022be } else { CLEAR_BIT(hadc->Instance->SQR1, ADC_SQR1_L); - 80019d2: 687b ldr r3, [r7, #4] - 80019d4: 681b ldr r3, [r3, #0] - 80019d6: 6b1a ldr r2, [r3, #48] @ 0x30 - 80019d8: 687b ldr r3, [r7, #4] - 80019da: 681b ldr r3, [r3, #0] - 80019dc: f022 020f bic.w r2, r2, #15 - 80019e0: 631a str r2, [r3, #48] @ 0x30 + 80022ae: 687b ldr r3, [r7, #4] + 80022b0: 681b ldr r3, [r3, #0] + 80022b2: 6b1a ldr r2, [r3, #48] @ 0x30 + 80022b4: 687b ldr r3, [r7, #4] + 80022b6: 681b ldr r3, [r3, #0] + 80022b8: f022 020f bic.w r2, r2, #15 + 80022bc: 631a str r2, [r3, #48] @ 0x30 } /* Initialize the ADC state */ /* Clear HAL_ADC_STATE_BUSY_INTERNAL bit, set HAL_ADC_STATE_READY bit */ ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_BUSY_INTERNAL, HAL_ADC_STATE_READY); - 80019e2: 687b ldr r3, [r7, #4] - 80019e4: 6ddb ldr r3, [r3, #92] @ 0x5c - 80019e6: f023 0303 bic.w r3, r3, #3 - 80019ea: f043 0201 orr.w r2, r3, #1 - 80019ee: 687b ldr r3, [r7, #4] - 80019f0: 65da str r2, [r3, #92] @ 0x5c - 80019f2: e007 b.n 8001a04 + 80022be: 687b ldr r3, [r7, #4] + 80022c0: 6ddb ldr r3, [r3, #92] @ 0x5c + 80022c2: f023 0303 bic.w r3, r3, #3 + 80022c6: f043 0201 orr.w r2, r3, #1 + 80022ca: 687b ldr r3, [r7, #4] + 80022cc: 65da str r2, [r3, #92] @ 0x5c + 80022ce: e007 b.n 80022e0 } else { /* Update ADC state machine to error */ SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); - 80019f4: 687b ldr r3, [r7, #4] - 80019f6: 6ddb ldr r3, [r3, #92] @ 0x5c - 80019f8: f043 0210 orr.w r2, r3, #16 - 80019fc: 687b ldr r3, [r7, #4] - 80019fe: 65da str r2, [r3, #92] @ 0x5c + 80022d0: 687b ldr r3, [r7, #4] + 80022d2: 6ddb ldr r3, [r3, #92] @ 0x5c + 80022d4: f043 0210 orr.w r2, r3, #16 + 80022d8: 687b ldr r3, [r7, #4] + 80022da: 65da str r2, [r3, #92] @ 0x5c tmp_hal_status = HAL_ERROR; - 8001a00: 2301 movs r3, #1 - 8001a02: 77fb strb r3, [r7, #31] + 80022dc: 2301 movs r3, #1 + 80022de: 77fb strb r3, [r7, #31] } /* Return function status */ return tmp_hal_status; - 8001a04: 7ffb ldrb r3, [r7, #31] + 80022e0: 7ffb ldrb r3, [r7, #31] } - 8001a06: 4618 mov r0, r3 - 8001a08: 3724 adds r7, #36 @ 0x24 - 8001a0a: 46bd mov sp, r7 - 8001a0c: bd90 pop {r4, r7, pc} - 8001a0e: bf00 nop - 8001a10: 20000000 .word 0x20000000 - 8001a14: 053e2d63 .word 0x053e2d63 - 8001a18: 50000100 .word 0x50000100 - 8001a1c: 50000300 .word 0x50000300 - 8001a20: fff04007 .word 0xfff04007 + 80022e2: 4618 mov r0, r3 + 80022e4: 3724 adds r7, #36 @ 0x24 + 80022e6: 46bd mov sp, r7 + 80022e8: bd90 pop {r4, r7, pc} + 80022ea: bf00 nop + 80022ec: 20000014 .word 0x20000014 + 80022f0: 053e2d63 .word 0x053e2d63 + 80022f4: 50000100 .word 0x50000100 + 80022f8: 50000300 .word 0x50000300 + 80022fc: fff04007 .word 0xfff04007 -08001a24 : +08002300 : * if ADC is master, ADC is enabled and multimode conversion is started. * @param hadc ADC handle * @retval HAL status */ HAL_StatusTypeDef HAL_ADC_Start(ADC_HandleTypeDef *hadc) { - 8001a24: b580 push {r7, lr} - 8001a26: b086 sub sp, #24 - 8001a28: af00 add r7, sp, #0 - 8001a2a: 6078 str r0, [r7, #4] + 8002300: b580 push {r7, lr} + 8002302: b086 sub sp, #24 + 8002304: af00 add r7, sp, #0 + 8002306: 6078 str r0, [r7, #4] HAL_StatusTypeDef tmp_hal_status; #if defined(ADC_MULTIMODE_SUPPORT) const ADC_TypeDef *tmpADC_Master; uint32_t tmp_multimode_config = LL_ADC_GetMultimode(__LL_ADC_COMMON_INSTANCE(hadc->Instance)); - 8001a2c: 4859 ldr r0, [pc, #356] @ (8001b94 ) - 8001a2e: f7ff fd5b bl 80014e8 - 8001a32: 6138 str r0, [r7, #16] + 8002308: 4859 ldr r0, [pc, #356] @ (8002470 ) + 800230a: f7ff fd5b bl 8001dc4 + 800230e: 6138 str r0, [r7, #16] /* Check the parameters */ assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); /* Perform ADC enable and conversion start if no conversion is on going */ if (LL_ADC_REG_IsConversionOngoing(hadc->Instance) == 0UL) - 8001a34: 687b ldr r3, [r7, #4] - 8001a36: 681b ldr r3, [r3, #0] - 8001a38: 4618 mov r0, r3 - 8001a3a: f7ff fe35 bl 80016a8 - 8001a3e: 4603 mov r3, r0 - 8001a40: 2b00 cmp r3, #0 - 8001a42: f040 809f bne.w 8001b84 + 8002310: 687b ldr r3, [r7, #4] + 8002312: 681b ldr r3, [r3, #0] + 8002314: 4618 mov r0, r3 + 8002316: f7ff fe35 bl 8001f84 + 800231a: 4603 mov r3, r0 + 800231c: 2b00 cmp r3, #0 + 800231e: f040 809f bne.w 8002460 { /* Process locked */ __HAL_LOCK(hadc); - 8001a46: 687b ldr r3, [r7, #4] - 8001a48: f893 3058 ldrb.w r3, [r3, #88] @ 0x58 - 8001a4c: 2b01 cmp r3, #1 - 8001a4e: d101 bne.n 8001a54 - 8001a50: 2302 movs r3, #2 - 8001a52: e09a b.n 8001b8a - 8001a54: 687b ldr r3, [r7, #4] - 8001a56: 2201 movs r2, #1 - 8001a58: f883 2058 strb.w r2, [r3, #88] @ 0x58 + 8002322: 687b ldr r3, [r7, #4] + 8002324: f893 3058 ldrb.w r3, [r3, #88] @ 0x58 + 8002328: 2b01 cmp r3, #1 + 800232a: d101 bne.n 8002330 + 800232c: 2302 movs r3, #2 + 800232e: e09a b.n 8002466 + 8002330: 687b ldr r3, [r7, #4] + 8002332: 2201 movs r2, #1 + 8002334: f883 2058 strb.w r2, [r3, #88] @ 0x58 /* Enable the ADC peripheral */ tmp_hal_status = ADC_Enable(hadc); - 8001a5c: 6878 ldr r0, [r7, #4] - 8001a5e: f000 fe63 bl 8002728 - 8001a62: 4603 mov r3, r0 - 8001a64: 75fb strb r3, [r7, #23] + 8002338: 6878 ldr r0, [r7, #4] + 800233a: f000 fe63 bl 8003004 + 800233e: 4603 mov r3, r0 + 8002340: 75fb strb r3, [r7, #23] /* Start conversion if ADC is effectively enabled */ if (tmp_hal_status == HAL_OK) - 8001a66: 7dfb ldrb r3, [r7, #23] - 8001a68: 2b00 cmp r3, #0 - 8001a6a: f040 8086 bne.w 8001b7a + 8002342: 7dfb ldrb r3, [r7, #23] + 8002344: 2b00 cmp r3, #0 + 8002346: f040 8086 bne.w 8002456 { /* Set ADC state */ /* - Clear state bitfield related to regular group conversion results */ /* - Set state bitfield related to regular operation */ ADC_STATE_CLR_SET(hadc->State, - 8001a6e: 687b ldr r3, [r7, #4] - 8001a70: 6ddb ldr r3, [r3, #92] @ 0x5c - 8001a72: f423 6370 bic.w r3, r3, #3840 @ 0xf00 - 8001a76: f023 0301 bic.w r3, r3, #1 - 8001a7a: f443 7280 orr.w r2, r3, #256 @ 0x100 - 8001a7e: 687b ldr r3, [r7, #4] - 8001a80: 65da str r2, [r3, #92] @ 0x5c + 800234a: 687b ldr r3, [r7, #4] + 800234c: 6ddb ldr r3, [r3, #92] @ 0x5c + 800234e: f423 6370 bic.w r3, r3, #3840 @ 0xf00 + 8002352: f023 0301 bic.w r3, r3, #1 + 8002356: f443 7280 orr.w r2, r3, #256 @ 0x100 + 800235a: 687b ldr r3, [r7, #4] + 800235c: 65da str r2, [r3, #92] @ 0x5c #if defined(ADC_MULTIMODE_SUPPORT) /* Reset HAL_ADC_STATE_MULTIMODE_SLAVE bit - if ADC instance is master or if multimode feature is not available - if multimode setting is disabled (ADC instance slave in independent mode) */ if ((__LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance) == hadc->Instance) - 8001a82: 687b ldr r3, [r7, #4] - 8001a84: 681b ldr r3, [r3, #0] - 8001a86: 4a44 ldr r2, [pc, #272] @ (8001b98 ) - 8001a88: 4293 cmp r3, r2 - 8001a8a: d002 beq.n 8001a92 - 8001a8c: 687b ldr r3, [r7, #4] - 8001a8e: 681b ldr r3, [r3, #0] - 8001a90: e001 b.n 8001a96 - 8001a92: f04f 43a0 mov.w r3, #1342177280 @ 0x50000000 - 8001a96: 687a ldr r2, [r7, #4] - 8001a98: 6812 ldr r2, [r2, #0] - 8001a9a: 4293 cmp r3, r2 - 8001a9c: d002 beq.n 8001aa4 + 800235e: 687b ldr r3, [r7, #4] + 8002360: 681b ldr r3, [r3, #0] + 8002362: 4a44 ldr r2, [pc, #272] @ (8002474 ) + 8002364: 4293 cmp r3, r2 + 8002366: d002 beq.n 800236e + 8002368: 687b ldr r3, [r7, #4] + 800236a: 681b ldr r3, [r3, #0] + 800236c: e001 b.n 8002372 + 800236e: f04f 43a0 mov.w r3, #1342177280 @ 0x50000000 + 8002372: 687a ldr r2, [r7, #4] + 8002374: 6812 ldr r2, [r2, #0] + 8002376: 4293 cmp r3, r2 + 8002378: d002 beq.n 8002380 || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) - 8001a9e: 693b ldr r3, [r7, #16] - 8001aa0: 2b00 cmp r3, #0 - 8001aa2: d105 bne.n 8001ab0 + 800237a: 693b ldr r3, [r7, #16] + 800237c: 2b00 cmp r3, #0 + 800237e: d105 bne.n 800238c ) { CLEAR_BIT(hadc->State, HAL_ADC_STATE_MULTIMODE_SLAVE); - 8001aa4: 687b ldr r3, [r7, #4] - 8001aa6: 6ddb ldr r3, [r3, #92] @ 0x5c - 8001aa8: f423 1280 bic.w r2, r3, #1048576 @ 0x100000 - 8001aac: 687b ldr r3, [r7, #4] - 8001aae: 65da str r2, [r3, #92] @ 0x5c + 8002380: 687b ldr r3, [r7, #4] + 8002382: 6ddb ldr r3, [r3, #92] @ 0x5c + 8002384: f423 1280 bic.w r2, r3, #1048576 @ 0x100000 + 8002388: 687b ldr r3, [r7, #4] + 800238a: 65da str r2, [r3, #92] @ 0x5c } #endif /* ADC_MULTIMODE_SUPPORT */ /* Set ADC error code */ /* Check if a conversion is on going on ADC group injected */ if (HAL_IS_BIT_SET(hadc->State, HAL_ADC_STATE_INJ_BUSY)) - 8001ab0: 687b ldr r3, [r7, #4] - 8001ab2: 6ddb ldr r3, [r3, #92] @ 0x5c - 8001ab4: f403 5380 and.w r3, r3, #4096 @ 0x1000 - 8001ab8: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 - 8001abc: d106 bne.n 8001acc + 800238c: 687b ldr r3, [r7, #4] + 800238e: 6ddb ldr r3, [r3, #92] @ 0x5c + 8002390: f403 5380 and.w r3, r3, #4096 @ 0x1000 + 8002394: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 + 8002398: d106 bne.n 80023a8 { /* Reset ADC error code fields related to regular conversions only */ CLEAR_BIT(hadc->ErrorCode, (HAL_ADC_ERROR_OVR | HAL_ADC_ERROR_DMA)); - 8001abe: 687b ldr r3, [r7, #4] - 8001ac0: 6e1b ldr r3, [r3, #96] @ 0x60 - 8001ac2: f023 0206 bic.w r2, r3, #6 - 8001ac6: 687b ldr r3, [r7, #4] - 8001ac8: 661a str r2, [r3, #96] @ 0x60 - 8001aca: e002 b.n 8001ad2 + 800239a: 687b ldr r3, [r7, #4] + 800239c: 6e1b ldr r3, [r3, #96] @ 0x60 + 800239e: f023 0206 bic.w r2, r3, #6 + 80023a2: 687b ldr r3, [r7, #4] + 80023a4: 661a str r2, [r3, #96] @ 0x60 + 80023a6: e002 b.n 80023ae } else { /* Reset all ADC error code fields */ ADC_CLEAR_ERRORCODE(hadc); - 8001acc: 687b ldr r3, [r7, #4] - 8001ace: 2200 movs r2, #0 - 8001ad0: 661a str r2, [r3, #96] @ 0x60 + 80023a8: 687b ldr r3, [r7, #4] + 80023aa: 2200 movs r2, #0 + 80023ac: 661a str r2, [r3, #96] @ 0x60 } /* Clear ADC group regular conversion flag and overrun flag */ /* (To ensure of no unknown state from potential previous ADC operations) */ __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_EOC | ADC_FLAG_EOS | ADC_FLAG_OVR)); - 8001ad2: 687b ldr r3, [r7, #4] - 8001ad4: 681b ldr r3, [r3, #0] - 8001ad6: 221c movs r2, #28 - 8001ad8: 601a str r2, [r3, #0] + 80023ae: 687b ldr r3, [r7, #4] + 80023b0: 681b ldr r3, [r3, #0] + 80023b2: 221c movs r2, #28 + 80023b4: 601a str r2, [r3, #0] /* Process unlocked */ /* Unlock before starting ADC conversions: in case of potential */ /* interruption, to let the process to ADC IRQ Handler. */ __HAL_UNLOCK(hadc); - 8001ada: 687b ldr r3, [r7, #4] - 8001adc: 2200 movs r2, #0 - 8001ade: f883 2058 strb.w r2, [r3, #88] @ 0x58 + 80023b6: 687b ldr r3, [r7, #4] + 80023b8: 2200 movs r2, #0 + 80023ba: f883 2058 strb.w r2, [r3, #88] @ 0x58 /* Case of multimode enabled (when multimode feature is available): */ /* - if ADC is slave and dual regular conversions are enabled, ADC is */ /* enabled only (conversion is not started), */ /* - if ADC is master, ADC is enabled and conversion is started. */ #if defined(ADC_MULTIMODE_SUPPORT) if ((__LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance) == hadc->Instance) - 8001ae2: 687b ldr r3, [r7, #4] - 8001ae4: 681b ldr r3, [r3, #0] - 8001ae6: 4a2c ldr r2, [pc, #176] @ (8001b98 ) - 8001ae8: 4293 cmp r3, r2 - 8001aea: d002 beq.n 8001af2 - 8001aec: 687b ldr r3, [r7, #4] - 8001aee: 681b ldr r3, [r3, #0] - 8001af0: e001 b.n 8001af6 - 8001af2: f04f 43a0 mov.w r3, #1342177280 @ 0x50000000 - 8001af6: 687a ldr r2, [r7, #4] - 8001af8: 6812 ldr r2, [r2, #0] - 8001afa: 4293 cmp r3, r2 - 8001afc: d008 beq.n 8001b10 + 80023be: 687b ldr r3, [r7, #4] + 80023c0: 681b ldr r3, [r3, #0] + 80023c2: 4a2c ldr r2, [pc, #176] @ (8002474 ) + 80023c4: 4293 cmp r3, r2 + 80023c6: d002 beq.n 80023ce + 80023c8: 687b ldr r3, [r7, #4] + 80023ca: 681b ldr r3, [r3, #0] + 80023cc: e001 b.n 80023d2 + 80023ce: f04f 43a0 mov.w r3, #1342177280 @ 0x50000000 + 80023d2: 687a ldr r2, [r7, #4] + 80023d4: 6812 ldr r2, [r2, #0] + 80023d6: 4293 cmp r3, r2 + 80023d8: d008 beq.n 80023ec || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) - 8001afe: 693b ldr r3, [r7, #16] - 8001b00: 2b00 cmp r3, #0 - 8001b02: d005 beq.n 8001b10 + 80023da: 693b ldr r3, [r7, #16] + 80023dc: 2b00 cmp r3, #0 + 80023de: d005 beq.n 80023ec || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_SIMULT) - 8001b04: 693b ldr r3, [r7, #16] - 8001b06: 2b05 cmp r3, #5 - 8001b08: d002 beq.n 8001b10 + 80023e0: 693b ldr r3, [r7, #16] + 80023e2: 2b05 cmp r3, #5 + 80023e4: d002 beq.n 80023ec || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_ALTERN) - 8001b0a: 693b ldr r3, [r7, #16] - 8001b0c: 2b09 cmp r3, #9 - 8001b0e: d114 bne.n 8001b3a + 80023e6: 693b ldr r3, [r7, #16] + 80023e8: 2b09 cmp r3, #9 + 80023ea: d114 bne.n 8002416 ) { /* ADC instance is not a multimode slave instance with multimode regular conversions enabled */ if (READ_BIT(hadc->Instance->CFGR, ADC_CFGR_JAUTO) != 0UL) - 8001b10: 687b ldr r3, [r7, #4] - 8001b12: 681b ldr r3, [r3, #0] - 8001b14: 68db ldr r3, [r3, #12] - 8001b16: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 - 8001b1a: 2b00 cmp r3, #0 - 8001b1c: d007 beq.n 8001b2e + 80023ec: 687b ldr r3, [r7, #4] + 80023ee: 681b ldr r3, [r3, #0] + 80023f0: 68db ldr r3, [r3, #12] + 80023f2: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 + 80023f6: 2b00 cmp r3, #0 + 80023f8: d007 beq.n 800240a { ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_INJ_EOC, HAL_ADC_STATE_INJ_BUSY); - 8001b1e: 687b ldr r3, [r7, #4] - 8001b20: 6ddb ldr r3, [r3, #92] @ 0x5c - 8001b22: f423 5340 bic.w r3, r3, #12288 @ 0x3000 - 8001b26: f443 5280 orr.w r2, r3, #4096 @ 0x1000 - 8001b2a: 687b ldr r3, [r7, #4] - 8001b2c: 65da str r2, [r3, #92] @ 0x5c + 80023fa: 687b ldr r3, [r7, #4] + 80023fc: 6ddb ldr r3, [r3, #92] @ 0x5c + 80023fe: f423 5340 bic.w r3, r3, #12288 @ 0x3000 + 8002402: f443 5280 orr.w r2, r3, #4096 @ 0x1000 + 8002406: 687b ldr r3, [r7, #4] + 8002408: 65da str r2, [r3, #92] @ 0x5c } /* Start ADC group regular conversion */ LL_ADC_REG_StartConversion(hadc->Instance); - 8001b2e: 687b ldr r3, [r7, #4] - 8001b30: 681b ldr r3, [r3, #0] - 8001b32: 4618 mov r0, r3 - 8001b34: f7ff fd90 bl 8001658 - 8001b38: e026 b.n 8001b88 + 800240a: 687b ldr r3, [r7, #4] + 800240c: 681b ldr r3, [r3, #0] + 800240e: 4618 mov r0, r3 + 8002410: f7ff fd90 bl 8001f34 + 8002414: e026 b.n 8002464 } else { /* ADC instance is a multimode slave instance with multimode regular conversions enabled */ SET_BIT(hadc->State, HAL_ADC_STATE_MULTIMODE_SLAVE); - 8001b3a: 687b ldr r3, [r7, #4] - 8001b3c: 6ddb ldr r3, [r3, #92] @ 0x5c - 8001b3e: f443 1280 orr.w r2, r3, #1048576 @ 0x100000 - 8001b42: 687b ldr r3, [r7, #4] - 8001b44: 65da str r2, [r3, #92] @ 0x5c + 8002416: 687b ldr r3, [r7, #4] + 8002418: 6ddb ldr r3, [r3, #92] @ 0x5c + 800241a: f443 1280 orr.w r2, r3, #1048576 @ 0x100000 + 800241e: 687b ldr r3, [r7, #4] + 8002420: 65da str r2, [r3, #92] @ 0x5c /* if Master ADC JAUTO bit is set, update Slave State in setting HAL_ADC_STATE_INJ_BUSY bit and in resetting HAL_ADC_STATE_INJ_EOC bit */ tmpADC_Master = __LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance); - 8001b46: 687b ldr r3, [r7, #4] - 8001b48: 681b ldr r3, [r3, #0] - 8001b4a: 4a13 ldr r2, [pc, #76] @ (8001b98 ) - 8001b4c: 4293 cmp r3, r2 - 8001b4e: d002 beq.n 8001b56 - 8001b50: 687b ldr r3, [r7, #4] - 8001b52: 681b ldr r3, [r3, #0] - 8001b54: e001 b.n 8001b5a - 8001b56: f04f 43a0 mov.w r3, #1342177280 @ 0x50000000 - 8001b5a: 60fb str r3, [r7, #12] + 8002422: 687b ldr r3, [r7, #4] + 8002424: 681b ldr r3, [r3, #0] + 8002426: 4a13 ldr r2, [pc, #76] @ (8002474 ) + 8002428: 4293 cmp r3, r2 + 800242a: d002 beq.n 8002432 + 800242c: 687b ldr r3, [r7, #4] + 800242e: 681b ldr r3, [r3, #0] + 8002430: e001 b.n 8002436 + 8002432: f04f 43a0 mov.w r3, #1342177280 @ 0x50000000 + 8002436: 60fb str r3, [r7, #12] if (READ_BIT(tmpADC_Master->CFGR, ADC_CFGR_JAUTO) != 0UL) - 8001b5c: 68fb ldr r3, [r7, #12] - 8001b5e: 68db ldr r3, [r3, #12] - 8001b60: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 - 8001b64: 2b00 cmp r3, #0 - 8001b66: d00f beq.n 8001b88 + 8002438: 68fb ldr r3, [r7, #12] + 800243a: 68db ldr r3, [r3, #12] + 800243c: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 + 8002440: 2b00 cmp r3, #0 + 8002442: d00f beq.n 8002464 { ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_INJ_EOC, HAL_ADC_STATE_INJ_BUSY); - 8001b68: 687b ldr r3, [r7, #4] - 8001b6a: 6ddb ldr r3, [r3, #92] @ 0x5c - 8001b6c: f423 5340 bic.w r3, r3, #12288 @ 0x3000 - 8001b70: f443 5280 orr.w r2, r3, #4096 @ 0x1000 - 8001b74: 687b ldr r3, [r7, #4] - 8001b76: 65da str r2, [r3, #92] @ 0x5c - 8001b78: e006 b.n 8001b88 + 8002444: 687b ldr r3, [r7, #4] + 8002446: 6ddb ldr r3, [r3, #92] @ 0x5c + 8002448: f423 5340 bic.w r3, r3, #12288 @ 0x3000 + 800244c: f443 5280 orr.w r2, r3, #4096 @ 0x1000 + 8002450: 687b ldr r3, [r7, #4] + 8002452: 65da str r2, [r3, #92] @ 0x5c + 8002454: e006 b.n 8002464 #endif /* ADC_MULTIMODE_SUPPORT */ } else { /* Process unlocked */ __HAL_UNLOCK(hadc); - 8001b7a: 687b ldr r3, [r7, #4] - 8001b7c: 2200 movs r2, #0 - 8001b7e: f883 2058 strb.w r2, [r3, #88] @ 0x58 - 8001b82: e001 b.n 8001b88 + 8002456: 687b ldr r3, [r7, #4] + 8002458: 2200 movs r2, #0 + 800245a: f883 2058 strb.w r2, [r3, #88] @ 0x58 + 800245e: e001 b.n 8002464 } } else { tmp_hal_status = HAL_BUSY; - 8001b84: 2302 movs r3, #2 - 8001b86: 75fb strb r3, [r7, #23] + 8002460: 2302 movs r3, #2 + 8002462: 75fb strb r3, [r7, #23] } /* Return function status */ return tmp_hal_status; - 8001b88: 7dfb ldrb r3, [r7, #23] + 8002464: 7dfb ldrb r3, [r7, #23] } - 8001b8a: 4618 mov r0, r3 - 8001b8c: 3718 adds r7, #24 - 8001b8e: 46bd mov sp, r7 - 8001b90: bd80 pop {r7, pc} - 8001b92: bf00 nop - 8001b94: 50000300 .word 0x50000300 - 8001b98: 50000100 .word 0x50000100 + 8002466: 4618 mov r0, r3 + 8002468: 3718 adds r7, #24 + 800246a: 46bd mov sp, r7 + 800246c: bd80 pop {r7, pc} + 800246e: bf00 nop + 8002470: 50000300 .word 0x50000300 + 8002474: 50000100 .word 0x50000100 -08001b9c : +08002478 : * should be preliminarily stopped using HAL_ADCEx_InjectedStop function. * @param hadc ADC handle * @retval HAL status. */ HAL_StatusTypeDef HAL_ADC_Stop(ADC_HandleTypeDef *hadc) { - 8001b9c: b580 push {r7, lr} - 8001b9e: b084 sub sp, #16 - 8001ba0: af00 add r7, sp, #0 - 8001ba2: 6078 str r0, [r7, #4] + 8002478: b580 push {r7, lr} + 800247a: b084 sub sp, #16 + 800247c: af00 add r7, sp, #0 + 800247e: 6078 str r0, [r7, #4] /* Check the parameters */ assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); /* Process locked */ __HAL_LOCK(hadc); - 8001ba4: 687b ldr r3, [r7, #4] - 8001ba6: f893 3058 ldrb.w r3, [r3, #88] @ 0x58 - 8001baa: 2b01 cmp r3, #1 - 8001bac: d101 bne.n 8001bb2 - 8001bae: 2302 movs r3, #2 - 8001bb0: e023 b.n 8001bfa - 8001bb2: 687b ldr r3, [r7, #4] - 8001bb4: 2201 movs r2, #1 - 8001bb6: f883 2058 strb.w r2, [r3, #88] @ 0x58 + 8002480: 687b ldr r3, [r7, #4] + 8002482: f893 3058 ldrb.w r3, [r3, #88] @ 0x58 + 8002486: 2b01 cmp r3, #1 + 8002488: d101 bne.n 800248e + 800248a: 2302 movs r3, #2 + 800248c: e023 b.n 80024d6 + 800248e: 687b ldr r3, [r7, #4] + 8002490: 2201 movs r2, #1 + 8002492: f883 2058 strb.w r2, [r3, #88] @ 0x58 /* 1. Stop potential conversion on going, on ADC groups regular and injected */ tmp_hal_status = ADC_ConversionStop(hadc, ADC_REGULAR_INJECTED_GROUP); - 8001bba: 2103 movs r1, #3 - 8001bbc: 6878 ldr r0, [r7, #4] - 8001bbe: f000 fcf7 bl 80025b0 - 8001bc2: 4603 mov r3, r0 - 8001bc4: 73fb strb r3, [r7, #15] + 8002496: 2103 movs r1, #3 + 8002498: 6878 ldr r0, [r7, #4] + 800249a: f000 fcf7 bl 8002e8c + 800249e: 4603 mov r3, r0 + 80024a0: 73fb strb r3, [r7, #15] /* Disable ADC peripheral if conversions are effectively stopped */ if (tmp_hal_status == HAL_OK) - 8001bc6: 7bfb ldrb r3, [r7, #15] - 8001bc8: 2b00 cmp r3, #0 - 8001bca: d111 bne.n 8001bf0 + 80024a2: 7bfb ldrb r3, [r7, #15] + 80024a4: 2b00 cmp r3, #0 + 80024a6: d111 bne.n 80024cc { /* 2. Disable the ADC peripheral */ tmp_hal_status = ADC_Disable(hadc); - 8001bcc: 6878 ldr r0, [r7, #4] - 8001bce: f000 fe31 bl 8002834 - 8001bd2: 4603 mov r3, r0 - 8001bd4: 73fb strb r3, [r7, #15] + 80024a8: 6878 ldr r0, [r7, #4] + 80024aa: f000 fe31 bl 8003110 + 80024ae: 4603 mov r3, r0 + 80024b0: 73fb strb r3, [r7, #15] /* Check if ADC is effectively disabled */ if (tmp_hal_status == HAL_OK) - 8001bd6: 7bfb ldrb r3, [r7, #15] - 8001bd8: 2b00 cmp r3, #0 - 8001bda: d109 bne.n 8001bf0 + 80024b2: 7bfb ldrb r3, [r7, #15] + 80024b4: 2b00 cmp r3, #0 + 80024b6: d109 bne.n 80024cc { /* Set ADC state */ ADC_STATE_CLR_SET(hadc->State, - 8001bdc: 687b ldr r3, [r7, #4] - 8001bde: 6ddb ldr r3, [r3, #92] @ 0x5c - 8001be0: f423 5388 bic.w r3, r3, #4352 @ 0x1100 - 8001be4: f023 0301 bic.w r3, r3, #1 - 8001be8: f043 0201 orr.w r2, r3, #1 - 8001bec: 687b ldr r3, [r7, #4] - 8001bee: 65da str r2, [r3, #92] @ 0x5c + 80024b8: 687b ldr r3, [r7, #4] + 80024ba: 6ddb ldr r3, [r3, #92] @ 0x5c + 80024bc: f423 5388 bic.w r3, r3, #4352 @ 0x1100 + 80024c0: f023 0301 bic.w r3, r3, #1 + 80024c4: f043 0201 orr.w r2, r3, #1 + 80024c8: 687b ldr r3, [r7, #4] + 80024ca: 65da str r2, [r3, #92] @ 0x5c HAL_ADC_STATE_READY); } } /* Process unlocked */ __HAL_UNLOCK(hadc); - 8001bf0: 687b ldr r3, [r7, #4] - 8001bf2: 2200 movs r2, #0 - 8001bf4: f883 2058 strb.w r2, [r3, #88] @ 0x58 + 80024cc: 687b ldr r3, [r7, #4] + 80024ce: 2200 movs r2, #0 + 80024d0: f883 2058 strb.w r2, [r3, #88] @ 0x58 /* Return function status */ return tmp_hal_status; - 8001bf8: 7bfb ldrb r3, [r7, #15] + 80024d4: 7bfb ldrb r3, [r7, #15] } - 8001bfa: 4618 mov r0, r3 - 8001bfc: 3710 adds r7, #16 - 8001bfe: 46bd mov sp, r7 - 8001c00: bd80 pop {r7, pc} + 80024d6: 4618 mov r0, r3 + 80024d8: 3710 adds r7, #16 + 80024da: 46bd mov sp, r7 + 80024dc: bd80 pop {r7, pc} ... -08001c04 : +080024e0 : * @param hadc ADC handle * @param Timeout Timeout value in millisecond. * @retval HAL status */ HAL_StatusTypeDef HAL_ADC_PollForConversion(ADC_HandleTypeDef *hadc, uint32_t Timeout) { - 8001c04: b580 push {r7, lr} - 8001c06: b088 sub sp, #32 - 8001c08: af00 add r7, sp, #0 - 8001c0a: 6078 str r0, [r7, #4] - 8001c0c: 6039 str r1, [r7, #0] + 80024e0: b580 push {r7, lr} + 80024e2: b088 sub sp, #32 + 80024e4: af00 add r7, sp, #0 + 80024e6: 6078 str r0, [r7, #4] + 80024e8: 6039 str r1, [r7, #0] uint32_t tickstart; uint32_t tmp_Flag_End; uint32_t tmp_cfgr; #if defined(ADC_MULTIMODE_SUPPORT) const ADC_TypeDef *tmpADC_Master; uint32_t tmp_multimode_config = LL_ADC_GetMultimode(__LL_ADC_COMMON_INSTANCE(hadc->Instance)); - 8001c0e: 4867 ldr r0, [pc, #412] @ (8001dac ) - 8001c10: f7ff fc6a bl 80014e8 - 8001c14: 6178 str r0, [r7, #20] + 80024ea: 4867 ldr r0, [pc, #412] @ (8002688 ) + 80024ec: f7ff fc6a bl 8001dc4 + 80024f0: 6178 str r0, [r7, #20] /* Check the parameters */ assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); /* If end of conversion selected to end of sequence conversions */ if (hadc->Init.EOCSelection == ADC_EOC_SEQ_CONV) - 8001c16: 687b ldr r3, [r7, #4] - 8001c18: 699b ldr r3, [r3, #24] - 8001c1a: 2b08 cmp r3, #8 - 8001c1c: d102 bne.n 8001c24 + 80024f2: 687b ldr r3, [r7, #4] + 80024f4: 699b ldr r3, [r3, #24] + 80024f6: 2b08 cmp r3, #8 + 80024f8: d102 bne.n 8002500 { tmp_Flag_End = ADC_FLAG_EOS; - 8001c1e: 2308 movs r3, #8 - 8001c20: 61fb str r3, [r7, #28] - 8001c22: e02a b.n 8001c7a + 80024fa: 2308 movs r3, #8 + 80024fc: 61fb str r3, [r7, #28] + 80024fe: e02a b.n 8002556 /* Particular case is ADC configured in DMA mode and ADC sequencer with */ /* several ranks and polling for end of each conversion. */ /* For code simplicity sake, this particular case is generalized to */ /* ADC configured in DMA mode and and polling for end of each conversion. */ #if defined(ADC_MULTIMODE_SUPPORT) if ((tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) - 8001c24: 697b ldr r3, [r7, #20] - 8001c26: 2b00 cmp r3, #0 - 8001c28: d005 beq.n 8001c36 + 8002500: 697b ldr r3, [r7, #20] + 8002502: 2b00 cmp r3, #0 + 8002504: d005 beq.n 8002512 || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_SIMULT) - 8001c2a: 697b ldr r3, [r7, #20] - 8001c2c: 2b05 cmp r3, #5 - 8001c2e: d002 beq.n 8001c36 + 8002506: 697b ldr r3, [r7, #20] + 8002508: 2b05 cmp r3, #5 + 800250a: d002 beq.n 8002512 || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_ALTERN) - 8001c30: 697b ldr r3, [r7, #20] - 8001c32: 2b09 cmp r3, #9 - 8001c34: d111 bne.n 8001c5a + 800250c: 697b ldr r3, [r7, #20] + 800250e: 2b09 cmp r3, #9 + 8002510: d111 bne.n 8002536 ) { /* Check ADC DMA mode in independent mode on ADC group regular */ if (READ_BIT(hadc->Instance->CFGR, ADC_CFGR_DMAEN) != 0UL) - 8001c36: 687b ldr r3, [r7, #4] - 8001c38: 681b ldr r3, [r3, #0] - 8001c3a: 68db ldr r3, [r3, #12] - 8001c3c: f003 0301 and.w r3, r3, #1 - 8001c40: 2b00 cmp r3, #0 - 8001c42: d007 beq.n 8001c54 + 8002512: 687b ldr r3, [r7, #4] + 8002514: 681b ldr r3, [r3, #0] + 8002516: 68db ldr r3, [r3, #12] + 8002518: f003 0301 and.w r3, r3, #1 + 800251c: 2b00 cmp r3, #0 + 800251e: d007 beq.n 8002530 { SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG); - 8001c44: 687b ldr r3, [r7, #4] - 8001c46: 6ddb ldr r3, [r3, #92] @ 0x5c - 8001c48: f043 0220 orr.w r2, r3, #32 - 8001c4c: 687b ldr r3, [r7, #4] - 8001c4e: 65da str r2, [r3, #92] @ 0x5c + 8002520: 687b ldr r3, [r7, #4] + 8002522: 6ddb ldr r3, [r3, #92] @ 0x5c + 8002524: f043 0220 orr.w r2, r3, #32 + 8002528: 687b ldr r3, [r7, #4] + 800252a: 65da str r2, [r3, #92] @ 0x5c return HAL_ERROR; - 8001c50: 2301 movs r3, #1 - 8001c52: e0a6 b.n 8001da2 + 800252c: 2301 movs r3, #1 + 800252e: e0a6 b.n 800267e } else { tmp_Flag_End = (ADC_FLAG_EOC); - 8001c54: 2304 movs r3, #4 - 8001c56: 61fb str r3, [r7, #28] + 8002530: 2304 movs r3, #4 + 8002532: 61fb str r3, [r7, #28] if (READ_BIT(hadc->Instance->CFGR, ADC_CFGR_DMAEN) != 0UL) - 8001c58: e00f b.n 8001c7a + 8002534: e00f b.n 8002556 } } else { /* Check ADC DMA mode in multimode on ADC group regular */ if (LL_ADC_GetMultiDMATransfer(__LL_ADC_COMMON_INSTANCE(hadc->Instance)) != LL_ADC_MULTI_REG_DMA_EACH_ADC) - 8001c5a: 4854 ldr r0, [pc, #336] @ (8001dac ) - 8001c5c: f7ff fc52 bl 8001504 - 8001c60: 4603 mov r3, r0 - 8001c62: 2b00 cmp r3, #0 - 8001c64: d007 beq.n 8001c76 + 8002536: 4854 ldr r0, [pc, #336] @ (8002688 ) + 8002538: f7ff fc52 bl 8001de0 + 800253c: 4603 mov r3, r0 + 800253e: 2b00 cmp r3, #0 + 8002540: d007 beq.n 8002552 { SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG); - 8001c66: 687b ldr r3, [r7, #4] - 8001c68: 6ddb ldr r3, [r3, #92] @ 0x5c - 8001c6a: f043 0220 orr.w r2, r3, #32 - 8001c6e: 687b ldr r3, [r7, #4] - 8001c70: 65da str r2, [r3, #92] @ 0x5c + 8002542: 687b ldr r3, [r7, #4] + 8002544: 6ddb ldr r3, [r3, #92] @ 0x5c + 8002546: f043 0220 orr.w r2, r3, #32 + 800254a: 687b ldr r3, [r7, #4] + 800254c: 65da str r2, [r3, #92] @ 0x5c return HAL_ERROR; - 8001c72: 2301 movs r3, #1 - 8001c74: e095 b.n 8001da2 + 800254e: 2301 movs r3, #1 + 8002550: e095 b.n 800267e } else { tmp_Flag_End = (ADC_FLAG_EOC); - 8001c76: 2304 movs r3, #4 - 8001c78: 61fb str r3, [r7, #28] + 8002552: 2304 movs r3, #4 + 8002554: 61fb str r3, [r7, #28] } #endif /* ADC_MULTIMODE_SUPPORT */ } /* Get tick count */ tickstart = HAL_GetTick(); - 8001c7a: f7ff fac9 bl 8001210 - 8001c7e: 6138 str r0, [r7, #16] + 8002556: f7ff fac9 bl 8001aec + 800255a: 6138 str r0, [r7, #16] /* Wait until End of unitary conversion or sequence conversions flag is raised */ while ((hadc->Instance->ISR & tmp_Flag_End) == 0UL) - 8001c80: e021 b.n 8001cc6 + 800255c: e021 b.n 80025a2 { /* Check if timeout is disabled (set to infinite wait) */ if (Timeout != HAL_MAX_DELAY) - 8001c82: 683b ldr r3, [r7, #0] - 8001c84: f1b3 3fff cmp.w r3, #4294967295 - 8001c88: d01d beq.n 8001cc6 + 800255e: 683b ldr r3, [r7, #0] + 8002560: f1b3 3fff cmp.w r3, #4294967295 + 8002564: d01d beq.n 80025a2 { if (((HAL_GetTick() - tickstart) > Timeout) || (Timeout == 0UL)) - 8001c8a: f7ff fac1 bl 8001210 - 8001c8e: 4602 mov r2, r0 - 8001c90: 693b ldr r3, [r7, #16] - 8001c92: 1ad3 subs r3, r2, r3 - 8001c94: 683a ldr r2, [r7, #0] - 8001c96: 429a cmp r2, r3 - 8001c98: d302 bcc.n 8001ca0 - 8001c9a: 683b ldr r3, [r7, #0] - 8001c9c: 2b00 cmp r3, #0 - 8001c9e: d112 bne.n 8001cc6 + 8002566: f7ff fac1 bl 8001aec + 800256a: 4602 mov r2, r0 + 800256c: 693b ldr r3, [r7, #16] + 800256e: 1ad3 subs r3, r2, r3 + 8002570: 683a ldr r2, [r7, #0] + 8002572: 429a cmp r2, r3 + 8002574: d302 bcc.n 800257c + 8002576: 683b ldr r3, [r7, #0] + 8002578: 2b00 cmp r3, #0 + 800257a: d112 bne.n 80025a2 { /* New check to avoid false timeout detection in case of preemption */ if ((hadc->Instance->ISR & tmp_Flag_End) == 0UL) - 8001ca0: 687b ldr r3, [r7, #4] - 8001ca2: 681b ldr r3, [r3, #0] - 8001ca4: 681a ldr r2, [r3, #0] - 8001ca6: 69fb ldr r3, [r7, #28] - 8001ca8: 4013 ands r3, r2 - 8001caa: 2b00 cmp r3, #0 - 8001cac: d10b bne.n 8001cc6 + 800257c: 687b ldr r3, [r7, #4] + 800257e: 681b ldr r3, [r3, #0] + 8002580: 681a ldr r2, [r3, #0] + 8002582: 69fb ldr r3, [r7, #28] + 8002584: 4013 ands r3, r2 + 8002586: 2b00 cmp r3, #0 + 8002588: d10b bne.n 80025a2 { /* Update ADC state machine to timeout */ SET_BIT(hadc->State, HAL_ADC_STATE_TIMEOUT); - 8001cae: 687b ldr r3, [r7, #4] - 8001cb0: 6ddb ldr r3, [r3, #92] @ 0x5c - 8001cb2: f043 0204 orr.w r2, r3, #4 - 8001cb6: 687b ldr r3, [r7, #4] - 8001cb8: 65da str r2, [r3, #92] @ 0x5c + 800258a: 687b ldr r3, [r7, #4] + 800258c: 6ddb ldr r3, [r3, #92] @ 0x5c + 800258e: f043 0204 orr.w r2, r3, #4 + 8002592: 687b ldr r3, [r7, #4] + 8002594: 65da str r2, [r3, #92] @ 0x5c /* Process unlocked */ __HAL_UNLOCK(hadc); - 8001cba: 687b ldr r3, [r7, #4] - 8001cbc: 2200 movs r2, #0 - 8001cbe: f883 2058 strb.w r2, [r3, #88] @ 0x58 + 8002596: 687b ldr r3, [r7, #4] + 8002598: 2200 movs r2, #0 + 800259a: f883 2058 strb.w r2, [r3, #88] @ 0x58 return HAL_TIMEOUT; - 8001cc2: 2303 movs r3, #3 - 8001cc4: e06d b.n 8001da2 + 800259e: 2303 movs r3, #3 + 80025a0: e06d b.n 800267e while ((hadc->Instance->ISR & tmp_Flag_End) == 0UL) - 8001cc6: 687b ldr r3, [r7, #4] - 8001cc8: 681b ldr r3, [r3, #0] - 8001cca: 681a ldr r2, [r3, #0] - 8001ccc: 69fb ldr r3, [r7, #28] - 8001cce: 4013 ands r3, r2 - 8001cd0: 2b00 cmp r3, #0 - 8001cd2: d0d6 beq.n 8001c82 + 80025a2: 687b ldr r3, [r7, #4] + 80025a4: 681b ldr r3, [r3, #0] + 80025a6: 681a ldr r2, [r3, #0] + 80025a8: 69fb ldr r3, [r7, #28] + 80025aa: 4013 ands r3, r2 + 80025ac: 2b00 cmp r3, #0 + 80025ae: d0d6 beq.n 800255e } } } /* Update ADC state machine */ SET_BIT(hadc->State, HAL_ADC_STATE_REG_EOC); - 8001cd4: 687b ldr r3, [r7, #4] - 8001cd6: 6ddb ldr r3, [r3, #92] @ 0x5c - 8001cd8: f443 7200 orr.w r2, r3, #512 @ 0x200 - 8001cdc: 687b ldr r3, [r7, #4] - 8001cde: 65da str r2, [r3, #92] @ 0x5c + 80025b0: 687b ldr r3, [r7, #4] + 80025b2: 6ddb ldr r3, [r3, #92] @ 0x5c + 80025b4: f443 7200 orr.w r2, r3, #512 @ 0x200 + 80025b8: 687b ldr r3, [r7, #4] + 80025ba: 65da str r2, [r3, #92] @ 0x5c /* Determine whether any further conversion upcoming on group regular */ /* by external trigger, continuous mode or scan sequence on going. */ if ((LL_ADC_REG_IsTriggerSourceSWStart(hadc->Instance) != 0UL) - 8001ce0: 687b ldr r3, [r7, #4] - 8001ce2: 681b ldr r3, [r3, #0] - 8001ce4: 4618 mov r0, r3 - 8001ce6: f7ff fb71 bl 80013cc - 8001cea: 4603 mov r3, r0 - 8001cec: 2b00 cmp r3, #0 - 8001cee: d01c beq.n 8001d2a + 80025bc: 687b ldr r3, [r7, #4] + 80025be: 681b ldr r3, [r3, #0] + 80025c0: 4618 mov r0, r3 + 80025c2: f7ff fb71 bl 8001ca8 + 80025c6: 4603 mov r3, r0 + 80025c8: 2b00 cmp r3, #0 + 80025ca: d01c beq.n 8002606 && (hadc->Init.ContinuousConvMode == DISABLE) - 8001cf0: 687b ldr r3, [r7, #4] - 8001cf2: 7f5b ldrb r3, [r3, #29] - 8001cf4: 2b00 cmp r3, #0 - 8001cf6: d118 bne.n 8001d2a + 80025cc: 687b ldr r3, [r7, #4] + 80025ce: 7f5b ldrb r3, [r3, #29] + 80025d0: 2b00 cmp r3, #0 + 80025d2: d118 bne.n 8002606 ) { /* Check whether end of sequence is reached */ if (__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_EOS)) - 8001cf8: 687b ldr r3, [r7, #4] - 8001cfa: 681b ldr r3, [r3, #0] - 8001cfc: 681b ldr r3, [r3, #0] - 8001cfe: f003 0308 and.w r3, r3, #8 - 8001d02: 2b08 cmp r3, #8 - 8001d04: d111 bne.n 8001d2a + 80025d4: 687b ldr r3, [r7, #4] + 80025d6: 681b ldr r3, [r3, #0] + 80025d8: 681b ldr r3, [r3, #0] + 80025da: f003 0308 and.w r3, r3, #8 + 80025de: 2b08 cmp r3, #8 + 80025e0: d111 bne.n 8002606 { /* Set ADC state */ CLEAR_BIT(hadc->State, HAL_ADC_STATE_REG_BUSY); - 8001d06: 687b ldr r3, [r7, #4] - 8001d08: 6ddb ldr r3, [r3, #92] @ 0x5c - 8001d0a: f423 7280 bic.w r2, r3, #256 @ 0x100 - 8001d0e: 687b ldr r3, [r7, #4] - 8001d10: 65da str r2, [r3, #92] @ 0x5c + 80025e2: 687b ldr r3, [r7, #4] + 80025e4: 6ddb ldr r3, [r3, #92] @ 0x5c + 80025e6: f423 7280 bic.w r2, r3, #256 @ 0x100 + 80025ea: 687b ldr r3, [r7, #4] + 80025ec: 65da str r2, [r3, #92] @ 0x5c if ((hadc->State & HAL_ADC_STATE_INJ_BUSY) == 0UL) - 8001d12: 687b ldr r3, [r7, #4] - 8001d14: 6ddb ldr r3, [r3, #92] @ 0x5c - 8001d16: f403 5380 and.w r3, r3, #4096 @ 0x1000 - 8001d1a: 2b00 cmp r3, #0 - 8001d1c: d105 bne.n 8001d2a + 80025ee: 687b ldr r3, [r7, #4] + 80025f0: 6ddb ldr r3, [r3, #92] @ 0x5c + 80025f2: f403 5380 and.w r3, r3, #4096 @ 0x1000 + 80025f6: 2b00 cmp r3, #0 + 80025f8: d105 bne.n 8002606 { SET_BIT(hadc->State, HAL_ADC_STATE_READY); - 8001d1e: 687b ldr r3, [r7, #4] - 8001d20: 6ddb ldr r3, [r3, #92] @ 0x5c - 8001d22: f043 0201 orr.w r2, r3, #1 - 8001d26: 687b ldr r3, [r7, #4] - 8001d28: 65da str r2, [r3, #92] @ 0x5c + 80025fa: 687b ldr r3, [r7, #4] + 80025fc: 6ddb ldr r3, [r3, #92] @ 0x5c + 80025fe: f043 0201 orr.w r2, r3, #1 + 8002602: 687b ldr r3, [r7, #4] + 8002604: 65da str r2, [r3, #92] @ 0x5c /* Get relevant register CFGR in ADC instance of ADC master or slave */ /* in function of multimode state (for devices with multimode */ /* available). */ #if defined(ADC_MULTIMODE_SUPPORT) if ((__LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance) == hadc->Instance) - 8001d2a: 687b ldr r3, [r7, #4] - 8001d2c: 681b ldr r3, [r3, #0] - 8001d2e: 4a20 ldr r2, [pc, #128] @ (8001db0 ) - 8001d30: 4293 cmp r3, r2 - 8001d32: d002 beq.n 8001d3a - 8001d34: 687b ldr r3, [r7, #4] - 8001d36: 681b ldr r3, [r3, #0] - 8001d38: e001 b.n 8001d3e - 8001d3a: f04f 43a0 mov.w r3, #1342177280 @ 0x50000000 - 8001d3e: 687a ldr r2, [r7, #4] - 8001d40: 6812 ldr r2, [r2, #0] - 8001d42: 4293 cmp r3, r2 - 8001d44: d008 beq.n 8001d58 + 8002606: 687b ldr r3, [r7, #4] + 8002608: 681b ldr r3, [r3, #0] + 800260a: 4a20 ldr r2, [pc, #128] @ (800268c ) + 800260c: 4293 cmp r3, r2 + 800260e: d002 beq.n 8002616 + 8002610: 687b ldr r3, [r7, #4] + 8002612: 681b ldr r3, [r3, #0] + 8002614: e001 b.n 800261a + 8002616: f04f 43a0 mov.w r3, #1342177280 @ 0x50000000 + 800261a: 687a ldr r2, [r7, #4] + 800261c: 6812 ldr r2, [r2, #0] + 800261e: 4293 cmp r3, r2 + 8002620: d008 beq.n 8002634 || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) - 8001d46: 697b ldr r3, [r7, #20] - 8001d48: 2b00 cmp r3, #0 - 8001d4a: d005 beq.n 8001d58 + 8002622: 697b ldr r3, [r7, #20] + 8002624: 2b00 cmp r3, #0 + 8002626: d005 beq.n 8002634 || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_SIMULT) - 8001d4c: 697b ldr r3, [r7, #20] - 8001d4e: 2b05 cmp r3, #5 - 8001d50: d002 beq.n 8001d58 + 8002628: 697b ldr r3, [r7, #20] + 800262a: 2b05 cmp r3, #5 + 800262c: d002 beq.n 8002634 || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_ALTERN) - 8001d52: 697b ldr r3, [r7, #20] - 8001d54: 2b09 cmp r3, #9 - 8001d56: d104 bne.n 8001d62 + 800262e: 697b ldr r3, [r7, #20] + 8002630: 2b09 cmp r3, #9 + 8002632: d104 bne.n 800263e ) { /* Retrieve handle ADC CFGR register */ tmp_cfgr = READ_REG(hadc->Instance->CFGR); - 8001d58: 687b ldr r3, [r7, #4] - 8001d5a: 681b ldr r3, [r3, #0] - 8001d5c: 68db ldr r3, [r3, #12] - 8001d5e: 61bb str r3, [r7, #24] - 8001d60: e00d b.n 8001d7e + 8002634: 687b ldr r3, [r7, #4] + 8002636: 681b ldr r3, [r3, #0] + 8002638: 68db ldr r3, [r3, #12] + 800263a: 61bb str r3, [r7, #24] + 800263c: e00d b.n 800265a } else { /* Retrieve Master ADC CFGR register */ tmpADC_Master = __LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance); - 8001d62: 687b ldr r3, [r7, #4] - 8001d64: 681b ldr r3, [r3, #0] - 8001d66: 4a12 ldr r2, [pc, #72] @ (8001db0 ) - 8001d68: 4293 cmp r3, r2 - 8001d6a: d002 beq.n 8001d72 - 8001d6c: 687b ldr r3, [r7, #4] - 8001d6e: 681b ldr r3, [r3, #0] - 8001d70: e001 b.n 8001d76 - 8001d72: f04f 43a0 mov.w r3, #1342177280 @ 0x50000000 - 8001d76: 60fb str r3, [r7, #12] + 800263e: 687b ldr r3, [r7, #4] + 8002640: 681b ldr r3, [r3, #0] + 8002642: 4a12 ldr r2, [pc, #72] @ (800268c ) + 8002644: 4293 cmp r3, r2 + 8002646: d002 beq.n 800264e + 8002648: 687b ldr r3, [r7, #4] + 800264a: 681b ldr r3, [r3, #0] + 800264c: e001 b.n 8002652 + 800264e: f04f 43a0 mov.w r3, #1342177280 @ 0x50000000 + 8002652: 60fb str r3, [r7, #12] tmp_cfgr = READ_REG(tmpADC_Master->CFGR); - 8001d78: 68fb ldr r3, [r7, #12] - 8001d7a: 68db ldr r3, [r3, #12] - 8001d7c: 61bb str r3, [r7, #24] + 8002654: 68fb ldr r3, [r7, #12] + 8002656: 68db ldr r3, [r3, #12] + 8002658: 61bb str r3, [r7, #24] /* Retrieve handle ADC CFGR register */ tmp_cfgr = READ_REG(hadc->Instance->CFGR); #endif /* ADC_MULTIMODE_SUPPORT */ /* Clear polled flag */ if (tmp_Flag_End == ADC_FLAG_EOS) - 8001d7e: 69fb ldr r3, [r7, #28] - 8001d80: 2b08 cmp r3, #8 - 8001d82: d104 bne.n 8001d8e + 800265a: 69fb ldr r3, [r7, #28] + 800265c: 2b08 cmp r3, #8 + 800265e: d104 bne.n 800266a { __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_EOS); - 8001d84: 687b ldr r3, [r7, #4] - 8001d86: 681b ldr r3, [r3, #0] - 8001d88: 2208 movs r2, #8 - 8001d8a: 601a str r2, [r3, #0] - 8001d8c: e008 b.n 8001da0 + 8002660: 687b ldr r3, [r7, #4] + 8002662: 681b ldr r3, [r3, #0] + 8002664: 2208 movs r2, #8 + 8002666: 601a str r2, [r3, #0] + 8002668: e008 b.n 800267c else { /* Clear end of conversion EOC flag of regular group if low power feature */ /* "LowPowerAutoWait " is disabled, to not interfere with this feature */ /* until data register is read using function HAL_ADC_GetValue(). */ if (READ_BIT(tmp_cfgr, ADC_CFGR_AUTDLY) == 0UL) - 8001d8e: 69bb ldr r3, [r7, #24] - 8001d90: f403 4380 and.w r3, r3, #16384 @ 0x4000 - 8001d94: 2b00 cmp r3, #0 - 8001d96: d103 bne.n 8001da0 + 800266a: 69bb ldr r3, [r7, #24] + 800266c: f403 4380 and.w r3, r3, #16384 @ 0x4000 + 8002670: 2b00 cmp r3, #0 + 8002672: d103 bne.n 800267c { __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_EOC | ADC_FLAG_EOS)); - 8001d98: 687b ldr r3, [r7, #4] - 8001d9a: 681b ldr r3, [r3, #0] - 8001d9c: 220c movs r2, #12 - 8001d9e: 601a str r2, [r3, #0] + 8002674: 687b ldr r3, [r7, #4] + 8002676: 681b ldr r3, [r3, #0] + 8002678: 220c movs r2, #12 + 800267a: 601a str r2, [r3, #0] } } /* Return function status */ return HAL_OK; - 8001da0: 2300 movs r3, #0 + 800267c: 2300 movs r3, #0 } - 8001da2: 4618 mov r0, r3 - 8001da4: 3720 adds r7, #32 - 8001da6: 46bd mov sp, r7 - 8001da8: bd80 pop {r7, pc} - 8001daa: bf00 nop - 8001dac: 50000300 .word 0x50000300 - 8001db0: 50000100 .word 0x50000100 + 800267e: 4618 mov r0, r3 + 8002680: 3720 adds r7, #32 + 8002682: 46bd mov sp, r7 + 8002684: bd80 pop {r7, pc} + 8002686: bf00 nop + 8002688: 50000300 .word 0x50000300 + 800268c: 50000100 .word 0x50000100 -08001db4 : +08002690 : * or @ref __HAL_ADC_CLEAR_FLAG(&hadc, ADC_FLAG_EOS). * @param hadc ADC handle * @retval ADC group regular conversion data */ uint32_t HAL_ADC_GetValue(const ADC_HandleTypeDef *hadc) { - 8001db4: b480 push {r7} - 8001db6: b083 sub sp, #12 - 8001db8: af00 add r7, sp, #0 - 8001dba: 6078 str r0, [r7, #4] + 8002690: b480 push {r7} + 8002692: b083 sub sp, #12 + 8002694: af00 add r7, sp, #0 + 8002696: 6078 str r0, [r7, #4] /* Note: EOC flag is not cleared here by software because automatically */ /* cleared by hardware when reading register DR. */ /* Return ADC converted value */ return hadc->Instance->DR; - 8001dbc: 687b ldr r3, [r7, #4] - 8001dbe: 681b ldr r3, [r3, #0] - 8001dc0: 6c1b ldr r3, [r3, #64] @ 0x40 + 8002698: 687b ldr r3, [r7, #4] + 800269a: 681b ldr r3, [r3, #0] + 800269c: 6c1b ldr r3, [r3, #64] @ 0x40 } - 8001dc2: 4618 mov r0, r3 - 8001dc4: 370c adds r7, #12 - 8001dc6: 46bd mov sp, r7 - 8001dc8: f85d 7b04 ldr.w r7, [sp], #4 - 8001dcc: 4770 bx lr + 800269e: 4618 mov r0, r3 + 80026a0: 370c adds r7, #12 + 80026a2: 46bd mov sp, r7 + 80026a4: f85d 7b04 ldr.w r7, [sp], #4 + 80026a8: 4770 bx lr ... -08001dd0 : +080026ac : * @param hadc ADC handle * @param pConfig Structure of ADC channel assigned to ADC group regular. * @retval HAL status */ HAL_StatusTypeDef HAL_ADC_ConfigChannel(ADC_HandleTypeDef *hadc, const ADC_ChannelConfTypeDef *pConfig) { - 8001dd0: b580 push {r7, lr} - 8001dd2: b0b6 sub sp, #216 @ 0xd8 - 8001dd4: af00 add r7, sp, #0 - 8001dd6: 6078 str r0, [r7, #4] - 8001dd8: 6039 str r1, [r7, #0] + 80026ac: b580 push {r7, lr} + 80026ae: b0b6 sub sp, #216 @ 0xd8 + 80026b0: af00 add r7, sp, #0 + 80026b2: 6078 str r0, [r7, #4] + 80026b4: 6039 str r1, [r7, #0] HAL_StatusTypeDef tmp_hal_status = HAL_OK; - 8001dda: 2300 movs r3, #0 - 8001ddc: f887 30d7 strb.w r3, [r7, #215] @ 0xd7 + 80026b6: 2300 movs r3, #0 + 80026b8: f887 30d7 strb.w r3, [r7, #215] @ 0xd7 uint32_t tmpOffsetShifted; uint32_t tmp_config_internal_channel; __IO uint32_t wait_loop_index = 0UL; - 8001de0: 2300 movs r3, #0 - 8001de2: 60fb str r3, [r7, #12] + 80026bc: 2300 movs r3, #0 + 80026be: 60fb str r3, [r7, #12] { assert_param(IS_ADC_DIFF_CHANNEL(hadc, pConfig->Channel)); } /* Process locked */ __HAL_LOCK(hadc); - 8001de4: 687b ldr r3, [r7, #4] - 8001de6: f893 3058 ldrb.w r3, [r3, #88] @ 0x58 - 8001dea: 2b01 cmp r3, #1 - 8001dec: d101 bne.n 8001df2 - 8001dee: 2302 movs r3, #2 - 8001df0: e3c8 b.n 8002584 - 8001df2: 687b ldr r3, [r7, #4] - 8001df4: 2201 movs r2, #1 - 8001df6: f883 2058 strb.w r2, [r3, #88] @ 0x58 + 80026c0: 687b ldr r3, [r7, #4] + 80026c2: f893 3058 ldrb.w r3, [r3, #88] @ 0x58 + 80026c6: 2b01 cmp r3, #1 + 80026c8: d101 bne.n 80026ce + 80026ca: 2302 movs r3, #2 + 80026cc: e3c8 b.n 8002e60 + 80026ce: 687b ldr r3, [r7, #4] + 80026d0: 2201 movs r2, #1 + 80026d2: f883 2058 strb.w r2, [r3, #88] @ 0x58 /* Parameters update conditioned to ADC state: */ /* Parameters that can be updated when ADC is disabled or enabled without */ /* conversion on going on regular group: */ /* - Channel number */ /* - Channel rank */ if (LL_ADC_REG_IsConversionOngoing(hadc->Instance) == 0UL) - 8001dfa: 687b ldr r3, [r7, #4] - 8001dfc: 681b ldr r3, [r3, #0] - 8001dfe: 4618 mov r0, r3 - 8001e00: f7ff fc52 bl 80016a8 - 8001e04: 4603 mov r3, r0 - 8001e06: 2b00 cmp r3, #0 - 8001e08: f040 83ad bne.w 8002566 + 80026d6: 687b ldr r3, [r7, #4] + 80026d8: 681b ldr r3, [r3, #0] + 80026da: 4618 mov r0, r3 + 80026dc: f7ff fc52 bl 8001f84 + 80026e0: 4603 mov r3, r0 + 80026e2: 2b00 cmp r3, #0 + 80026e4: f040 83ad bne.w 8002e42 { /* Set ADC group regular sequence: channel on the selected scan sequence rank */ LL_ADC_REG_SetSequencerRanks(hadc->Instance, pConfig->Rank, pConfig->Channel); - 8001e0c: 687b ldr r3, [r7, #4] - 8001e0e: 6818 ldr r0, [r3, #0] - 8001e10: 683b ldr r3, [r7, #0] - 8001e12: 6859 ldr r1, [r3, #4] - 8001e14: 683b ldr r3, [r7, #0] - 8001e16: 681b ldr r3, [r3, #0] - 8001e18: 461a mov r2, r3 - 8001e1a: f7ff faea bl 80013f2 + 80026e8: 687b ldr r3, [r7, #4] + 80026ea: 6818 ldr r0, [r3, #0] + 80026ec: 683b ldr r3, [r7, #0] + 80026ee: 6859 ldr r1, [r3, #4] + 80026f0: 683b ldr r3, [r7, #0] + 80026f2: 681b ldr r3, [r3, #0] + 80026f4: 461a mov r2, r3 + 80026f6: f7ff faea bl 8001cce /* Parameters update conditioned to ADC state: */ /* Parameters that can be updated when ADC is disabled or enabled without */ /* conversion on going on regular group: */ /* - Channel sampling time */ /* - Channel offset */ tmp_adc_is_conversion_on_going_regular = LL_ADC_REG_IsConversionOngoing(hadc->Instance); - 8001e1e: 687b ldr r3, [r7, #4] - 8001e20: 681b ldr r3, [r3, #0] - 8001e22: 4618 mov r0, r3 - 8001e24: f7ff fc40 bl 80016a8 - 8001e28: f8c7 00d0 str.w r0, [r7, #208] @ 0xd0 + 80026fa: 687b ldr r3, [r7, #4] + 80026fc: 681b ldr r3, [r3, #0] + 80026fe: 4618 mov r0, r3 + 8002700: f7ff fc40 bl 8001f84 + 8002704: f8c7 00d0 str.w r0, [r7, #208] @ 0xd0 tmp_adc_is_conversion_on_going_injected = LL_ADC_INJ_IsConversionOngoing(hadc->Instance); - 8001e2c: 687b ldr r3, [r7, #4] - 8001e2e: 681b ldr r3, [r3, #0] - 8001e30: 4618 mov r0, r3 - 8001e32: f7ff fc60 bl 80016f6 - 8001e36: f8c7 00cc str.w r0, [r7, #204] @ 0xcc + 8002708: 687b ldr r3, [r7, #4] + 800270a: 681b ldr r3, [r3, #0] + 800270c: 4618 mov r0, r3 + 800270e: f7ff fc60 bl 8001fd2 + 8002712: f8c7 00cc str.w r0, [r7, #204] @ 0xcc if ((tmp_adc_is_conversion_on_going_regular == 0UL) - 8001e3a: f8d7 30d0 ldr.w r3, [r7, #208] @ 0xd0 - 8001e3e: 2b00 cmp r3, #0 - 8001e40: f040 81d9 bne.w 80021f6 + 8002716: f8d7 30d0 ldr.w r3, [r7, #208] @ 0xd0 + 800271a: 2b00 cmp r3, #0 + 800271c: f040 81d9 bne.w 8002ad2 && (tmp_adc_is_conversion_on_going_injected == 0UL) - 8001e44: f8d7 30cc ldr.w r3, [r7, #204] @ 0xcc - 8001e48: 2b00 cmp r3, #0 - 8001e4a: f040 81d4 bne.w 80021f6 + 8002720: f8d7 30cc ldr.w r3, [r7, #204] @ 0xcc + 8002724: 2b00 cmp r3, #0 + 8002726: f040 81d4 bne.w 8002ad2 ) { /* Manage specific case of sampling time 3.5 cycles replacing 2.5 cyles */ if (pConfig->SamplingTime == ADC_SAMPLETIME_3CYCLES_5) - 8001e4e: 683b ldr r3, [r7, #0] - 8001e50: 689b ldr r3, [r3, #8] - 8001e52: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 - 8001e56: d10f bne.n 8001e78 + 800272a: 683b ldr r3, [r7, #0] + 800272c: 689b ldr r3, [r3, #8] + 800272e: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 + 8002732: d10f bne.n 8002754 { /* Set sampling time of the selected ADC channel */ LL_ADC_SetChannelSamplingTime(hadc->Instance, pConfig->Channel, LL_ADC_SAMPLINGTIME_2CYCLES_5); - 8001e58: 687b ldr r3, [r7, #4] - 8001e5a: 6818 ldr r0, [r3, #0] - 8001e5c: 683b ldr r3, [r7, #0] - 8001e5e: 681b ldr r3, [r3, #0] - 8001e60: 2200 movs r2, #0 - 8001e62: 4619 mov r1, r3 - 8001e64: f7ff faf1 bl 800144a + 8002734: 687b ldr r3, [r7, #4] + 8002736: 6818 ldr r0, [r3, #0] + 8002738: 683b ldr r3, [r7, #0] + 800273a: 681b ldr r3, [r3, #0] + 800273c: 2200 movs r2, #0 + 800273e: 4619 mov r1, r3 + 8002740: f7ff faf1 bl 8001d26 /* Set ADC sampling time common configuration */ LL_ADC_SetSamplingTimeCommonConfig(hadc->Instance, LL_ADC_SAMPLINGTIME_COMMON_3C5_REPL_2C5); - 8001e68: 687b ldr r3, [r7, #4] - 8001e6a: 681b ldr r3, [r3, #0] - 8001e6c: f04f 4100 mov.w r1, #2147483648 @ 0x80000000 - 8001e70: 4618 mov r0, r3 - 8001e72: f7ff fa98 bl 80013a6 - 8001e76: e00e b.n 8001e96 + 8002744: 687b ldr r3, [r7, #4] + 8002746: 681b ldr r3, [r3, #0] + 8002748: f04f 4100 mov.w r1, #2147483648 @ 0x80000000 + 800274c: 4618 mov r0, r3 + 800274e: f7ff fa98 bl 8001c82 + 8002752: e00e b.n 8002772 } else { /* Set sampling time of the selected ADC channel */ LL_ADC_SetChannelSamplingTime(hadc->Instance, pConfig->Channel, pConfig->SamplingTime); - 8001e78: 687b ldr r3, [r7, #4] - 8001e7a: 6818 ldr r0, [r3, #0] - 8001e7c: 683b ldr r3, [r7, #0] - 8001e7e: 6819 ldr r1, [r3, #0] - 8001e80: 683b ldr r3, [r7, #0] - 8001e82: 689b ldr r3, [r3, #8] - 8001e84: 461a mov r2, r3 - 8001e86: f7ff fae0 bl 800144a + 8002754: 687b ldr r3, [r7, #4] + 8002756: 6818 ldr r0, [r3, #0] + 8002758: 683b ldr r3, [r7, #0] + 800275a: 6819 ldr r1, [r3, #0] + 800275c: 683b ldr r3, [r7, #0] + 800275e: 689b ldr r3, [r3, #8] + 8002760: 461a mov r2, r3 + 8002762: f7ff fae0 bl 8001d26 /* Set ADC sampling time common configuration */ LL_ADC_SetSamplingTimeCommonConfig(hadc->Instance, LL_ADC_SAMPLINGTIME_COMMON_DEFAULT); - 8001e8a: 687b ldr r3, [r7, #4] - 8001e8c: 681b ldr r3, [r3, #0] - 8001e8e: 2100 movs r1, #0 - 8001e90: 4618 mov r0, r3 - 8001e92: f7ff fa88 bl 80013a6 + 8002766: 687b ldr r3, [r7, #4] + 8002768: 681b ldr r3, [r3, #0] + 800276a: 2100 movs r1, #0 + 800276c: 4618 mov r0, r3 + 800276e: f7ff fa88 bl 8001c82 /* Configure the offset: offset enable/disable, channel, offset value */ /* Shift the offset with respect to the selected ADC resolution. */ /* Offset has to be left-aligned on bit 11, the LSB (right bits) are set to 0 */ tmpOffsetShifted = ADC_OFFSET_SHIFT_RESOLUTION(hadc, (uint32_t)pConfig->Offset); - 8001e96: 683b ldr r3, [r7, #0] - 8001e98: 695a ldr r2, [r3, #20] - 8001e9a: 687b ldr r3, [r7, #4] - 8001e9c: 681b ldr r3, [r3, #0] - 8001e9e: 68db ldr r3, [r3, #12] - 8001ea0: 08db lsrs r3, r3, #3 - 8001ea2: f003 0303 and.w r3, r3, #3 - 8001ea6: 005b lsls r3, r3, #1 - 8001ea8: fa02 f303 lsl.w r3, r2, r3 - 8001eac: f8c7 30c8 str.w r3, [r7, #200] @ 0xc8 + 8002772: 683b ldr r3, [r7, #0] + 8002774: 695a ldr r2, [r3, #20] + 8002776: 687b ldr r3, [r7, #4] + 8002778: 681b ldr r3, [r3, #0] + 800277a: 68db ldr r3, [r3, #12] + 800277c: 08db lsrs r3, r3, #3 + 800277e: f003 0303 and.w r3, r3, #3 + 8002782: 005b lsls r3, r3, #1 + 8002784: fa02 f303 lsl.w r3, r2, r3 + 8002788: f8c7 30c8 str.w r3, [r7, #200] @ 0xc8 if (pConfig->OffsetNumber != ADC_OFFSET_NONE) - 8001eb0: 683b ldr r3, [r7, #0] - 8001eb2: 691b ldr r3, [r3, #16] - 8001eb4: 2b04 cmp r3, #4 - 8001eb6: d022 beq.n 8001efe + 800278c: 683b ldr r3, [r7, #0] + 800278e: 691b ldr r3, [r3, #16] + 8002790: 2b04 cmp r3, #4 + 8002792: d022 beq.n 80027da { /* Set ADC selected offset number */ LL_ADC_SetOffset(hadc->Instance, pConfig->OffsetNumber, pConfig->Channel, tmpOffsetShifted); - 8001eb8: 687b ldr r3, [r7, #4] - 8001eba: 6818 ldr r0, [r3, #0] - 8001ebc: 683b ldr r3, [r7, #0] - 8001ebe: 6919 ldr r1, [r3, #16] - 8001ec0: 683b ldr r3, [r7, #0] - 8001ec2: 681a ldr r2, [r3, #0] - 8001ec4: f8d7 30c8 ldr.w r3, [r7, #200] @ 0xc8 - 8001ec8: f7ff f9e2 bl 8001290 + 8002794: 687b ldr r3, [r7, #4] + 8002796: 6818 ldr r0, [r3, #0] + 8002798: 683b ldr r3, [r7, #0] + 800279a: 6919 ldr r1, [r3, #16] + 800279c: 683b ldr r3, [r7, #0] + 800279e: 681a ldr r2, [r3, #0] + 80027a0: f8d7 30c8 ldr.w r3, [r7, #200] @ 0xc8 + 80027a4: f7ff f9e2 bl 8001b6c assert_param(IS_ADC_OFFSET_SIGN(pConfig->OffsetSign)); assert_param(IS_FUNCTIONAL_STATE(pConfig->OffsetSaturation)); /* Set ADC selected offset sign & saturation */ LL_ADC_SetOffsetSign(hadc->Instance, pConfig->OffsetNumber, pConfig->OffsetSign); - 8001ecc: 687b ldr r3, [r7, #4] - 8001ece: 6818 ldr r0, [r3, #0] - 8001ed0: 683b ldr r3, [r7, #0] - 8001ed2: 6919 ldr r1, [r3, #16] - 8001ed4: 683b ldr r3, [r7, #0] - 8001ed6: 699b ldr r3, [r3, #24] - 8001ed8: 461a mov r2, r3 - 8001eda: f7ff fa2e bl 800133a + 80027a8: 687b ldr r3, [r7, #4] + 80027aa: 6818 ldr r0, [r3, #0] + 80027ac: 683b ldr r3, [r7, #0] + 80027ae: 6919 ldr r1, [r3, #16] + 80027b0: 683b ldr r3, [r7, #0] + 80027b2: 699b ldr r3, [r3, #24] + 80027b4: 461a mov r2, r3 + 80027b6: f7ff fa2e bl 8001c16 LL_ADC_SetOffsetSaturation(hadc->Instance, pConfig->OffsetNumber, - 8001ede: 687b ldr r3, [r7, #4] - 8001ee0: 6818 ldr r0, [r3, #0] - 8001ee2: 683b ldr r3, [r7, #0] - 8001ee4: 6919 ldr r1, [r3, #16] + 80027ba: 687b ldr r3, [r7, #4] + 80027bc: 6818 ldr r0, [r3, #0] + 80027be: 683b ldr r3, [r7, #0] + 80027c0: 6919 ldr r1, [r3, #16] (pConfig->OffsetSaturation == ENABLE) ? - 8001ee6: 683b ldr r3, [r7, #0] - 8001ee8: 7f1b ldrb r3, [r3, #28] + 80027c2: 683b ldr r3, [r7, #0] + 80027c4: 7f1b ldrb r3, [r3, #28] LL_ADC_SetOffsetSaturation(hadc->Instance, pConfig->OffsetNumber, - 8001eea: 2b01 cmp r3, #1 - 8001eec: d102 bne.n 8001ef4 - 8001eee: f04f 7300 mov.w r3, #33554432 @ 0x2000000 - 8001ef2: e000 b.n 8001ef6 - 8001ef4: 2300 movs r3, #0 - 8001ef6: 461a mov r2, r3 - 8001ef8: f7ff fa3a bl 8001370 - 8001efc: e17b b.n 80021f6 + 80027c6: 2b01 cmp r3, #1 + 80027c8: d102 bne.n 80027d0 + 80027ca: f04f 7300 mov.w r3, #33554432 @ 0x2000000 + 80027ce: e000 b.n 80027d2 + 80027d0: 2300 movs r3, #0 + 80027d2: 461a mov r2, r3 + 80027d4: f7ff fa3a bl 8001c4c + 80027d8: e17b b.n 8002ad2 } else { /* Scan each offset register to check if the selected channel is targeted. */ /* If this is the case, the corresponding offset number is disabled. */ if (__LL_ADC_CHANNEL_TO_DECIMAL_NB(LL_ADC_GetOffsetChannel(hadc->Instance, LL_ADC_OFFSET_1)) - 8001efe: 687b ldr r3, [r7, #4] - 8001f00: 681b ldr r3, [r3, #0] - 8001f02: 2100 movs r1, #0 - 8001f04: 4618 mov r0, r3 - 8001f06: f7ff f9e7 bl 80012d8 - 8001f0a: 4603 mov r3, r0 - 8001f0c: f3c3 0312 ubfx r3, r3, #0, #19 - 8001f10: 2b00 cmp r3, #0 - 8001f12: d10a bne.n 8001f2a - 8001f14: 687b ldr r3, [r7, #4] - 8001f16: 681b ldr r3, [r3, #0] - 8001f18: 2100 movs r1, #0 - 8001f1a: 4618 mov r0, r3 - 8001f1c: f7ff f9dc bl 80012d8 - 8001f20: 4603 mov r3, r0 - 8001f22: 0e9b lsrs r3, r3, #26 - 8001f24: f003 021f and.w r2, r3, #31 - 8001f28: e01e b.n 8001f68 - 8001f2a: 687b ldr r3, [r7, #4] - 8001f2c: 681b ldr r3, [r3, #0] - 8001f2e: 2100 movs r1, #0 - 8001f30: 4618 mov r0, r3 - 8001f32: f7ff f9d1 bl 80012d8 - 8001f36: 4603 mov r3, r0 - 8001f38: f8c7 30bc str.w r3, [r7, #188] @ 0xbc + 80027da: 687b ldr r3, [r7, #4] + 80027dc: 681b ldr r3, [r3, #0] + 80027de: 2100 movs r1, #0 + 80027e0: 4618 mov r0, r3 + 80027e2: f7ff f9e7 bl 8001bb4 + 80027e6: 4603 mov r3, r0 + 80027e8: f3c3 0312 ubfx r3, r3, #0, #19 + 80027ec: 2b00 cmp r3, #0 + 80027ee: d10a bne.n 8002806 + 80027f0: 687b ldr r3, [r7, #4] + 80027f2: 681b ldr r3, [r3, #0] + 80027f4: 2100 movs r1, #0 + 80027f6: 4618 mov r0, r3 + 80027f8: f7ff f9dc bl 8001bb4 + 80027fc: 4603 mov r3, r0 + 80027fe: 0e9b lsrs r3, r3, #26 + 8002800: f003 021f and.w r2, r3, #31 + 8002804: e01e b.n 8002844 + 8002806: 687b ldr r3, [r7, #4] + 8002808: 681b ldr r3, [r3, #0] + 800280a: 2100 movs r1, #0 + 800280c: 4618 mov r0, r3 + 800280e: f7ff f9d1 bl 8001bb4 + 8002812: 4603 mov r3, r0 + 8002814: f8c7 30bc str.w r3, [r7, #188] @ 0xbc uint32_t result; #if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) ) __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); - 8001f3c: f8d7 30bc ldr.w r3, [r7, #188] @ 0xbc - 8001f40: fa93 f3a3 rbit r3, r3 - 8001f44: f8c7 30c0 str.w r3, [r7, #192] @ 0xc0 + 8002818: f8d7 30bc ldr.w r3, [r7, #188] @ 0xbc + 800281c: fa93 f3a3 rbit r3, r3 + 8002820: f8c7 30c0 str.w r3, [r7, #192] @ 0xc0 result |= value & 1U; s--; } result <<= s; /* shift when v's highest bits are zero */ #endif return result; - 8001f48: f8d7 30c0 ldr.w r3, [r7, #192] @ 0xc0 - 8001f4c: f8c7 30b8 str.w r3, [r7, #184] @ 0xb8 + 8002824: f8d7 30c0 ldr.w r3, [r7, #192] @ 0xc0 + 8002828: f8c7 30b8 str.w r3, [r7, #184] @ 0xb8 optimisations using the logic "value was passed to __builtin_clz, so it is non-zero". ARM GCC 7.3 and possibly earlier will optimise this test away, leaving a single CLZ instruction. */ if (value == 0U) - 8001f50: f8d7 30b8 ldr.w r3, [r7, #184] @ 0xb8 - 8001f54: 2b00 cmp r3, #0 - 8001f56: d101 bne.n 8001f5c + 800282c: f8d7 30b8 ldr.w r3, [r7, #184] @ 0xb8 + 8002830: 2b00 cmp r3, #0 + 8002832: d101 bne.n 8002838 { return 32U; - 8001f58: 2320 movs r3, #32 - 8001f5a: e004 b.n 8001f66 + 8002834: 2320 movs r3, #32 + 8002836: e004 b.n 8002842 } return __builtin_clz(value); - 8001f5c: f8d7 30b8 ldr.w r3, [r7, #184] @ 0xb8 - 8001f60: fab3 f383 clz r3, r3 - 8001f64: b2db uxtb r3, r3 - 8001f66: 461a mov r2, r3 + 8002838: f8d7 30b8 ldr.w r3, [r7, #184] @ 0xb8 + 800283c: fab3 f383 clz r3, r3 + 8002840: b2db uxtb r3, r3 + 8002842: 461a mov r2, r3 == __LL_ADC_CHANNEL_TO_DECIMAL_NB(pConfig->Channel)) - 8001f68: 683b ldr r3, [r7, #0] - 8001f6a: 681b ldr r3, [r3, #0] - 8001f6c: f3c3 0312 ubfx r3, r3, #0, #19 - 8001f70: 2b00 cmp r3, #0 - 8001f72: d105 bne.n 8001f80 - 8001f74: 683b ldr r3, [r7, #0] - 8001f76: 681b ldr r3, [r3, #0] - 8001f78: 0e9b lsrs r3, r3, #26 - 8001f7a: f003 031f and.w r3, r3, #31 - 8001f7e: e018 b.n 8001fb2 - 8001f80: 683b ldr r3, [r7, #0] - 8001f82: 681b ldr r3, [r3, #0] - 8001f84: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 + 8002844: 683b ldr r3, [r7, #0] + 8002846: 681b ldr r3, [r3, #0] + 8002848: f3c3 0312 ubfx r3, r3, #0, #19 + 800284c: 2b00 cmp r3, #0 + 800284e: d105 bne.n 800285c + 8002850: 683b ldr r3, [r7, #0] + 8002852: 681b ldr r3, [r3, #0] + 8002854: 0e9b lsrs r3, r3, #26 + 8002856: f003 031f and.w r3, r3, #31 + 800285a: e018 b.n 800288e + 800285c: 683b ldr r3, [r7, #0] + 800285e: 681b ldr r3, [r3, #0] + 8002860: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); - 8001f88: f8d7 30b0 ldr.w r3, [r7, #176] @ 0xb0 - 8001f8c: fa93 f3a3 rbit r3, r3 - 8001f90: f8c7 30ac str.w r3, [r7, #172] @ 0xac + 8002864: f8d7 30b0 ldr.w r3, [r7, #176] @ 0xb0 + 8002868: fa93 f3a3 rbit r3, r3 + 800286c: f8c7 30ac str.w r3, [r7, #172] @ 0xac return result; - 8001f94: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac - 8001f98: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 + 8002870: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac + 8002874: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 if (value == 0U) - 8001f9c: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4 - 8001fa0: 2b00 cmp r3, #0 - 8001fa2: d101 bne.n 8001fa8 + 8002878: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4 + 800287c: 2b00 cmp r3, #0 + 800287e: d101 bne.n 8002884 return 32U; - 8001fa4: 2320 movs r3, #32 - 8001fa6: e004 b.n 8001fb2 + 8002880: 2320 movs r3, #32 + 8002882: e004 b.n 800288e return __builtin_clz(value); - 8001fa8: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4 - 8001fac: fab3 f383 clz r3, r3 - 8001fb0: b2db uxtb r3, r3 + 8002884: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4 + 8002888: fab3 f383 clz r3, r3 + 800288c: b2db uxtb r3, r3 if (__LL_ADC_CHANNEL_TO_DECIMAL_NB(LL_ADC_GetOffsetChannel(hadc->Instance, LL_ADC_OFFSET_1)) - 8001fb2: 429a cmp r2, r3 - 8001fb4: d106 bne.n 8001fc4 + 800288e: 429a cmp r2, r3 + 8002890: d106 bne.n 80028a0 { LL_ADC_SetOffsetState(hadc->Instance, LL_ADC_OFFSET_1, LL_ADC_OFFSET_DISABLE); - 8001fb6: 687b ldr r3, [r7, #4] - 8001fb8: 681b ldr r3, [r3, #0] - 8001fba: 2200 movs r2, #0 - 8001fbc: 2100 movs r1, #0 - 8001fbe: 4618 mov r0, r3 - 8001fc0: f7ff f9a0 bl 8001304 + 8002892: 687b ldr r3, [r7, #4] + 8002894: 681b ldr r3, [r3, #0] + 8002896: 2200 movs r2, #0 + 8002898: 2100 movs r1, #0 + 800289a: 4618 mov r0, r3 + 800289c: f7ff f9a0 bl 8001be0 } if (__LL_ADC_CHANNEL_TO_DECIMAL_NB(LL_ADC_GetOffsetChannel(hadc->Instance, LL_ADC_OFFSET_2)) - 8001fc4: 687b ldr r3, [r7, #4] - 8001fc6: 681b ldr r3, [r3, #0] - 8001fc8: 2101 movs r1, #1 - 8001fca: 4618 mov r0, r3 - 8001fcc: f7ff f984 bl 80012d8 - 8001fd0: 4603 mov r3, r0 - 8001fd2: f3c3 0312 ubfx r3, r3, #0, #19 - 8001fd6: 2b00 cmp r3, #0 - 8001fd8: d10a bne.n 8001ff0 - 8001fda: 687b ldr r3, [r7, #4] - 8001fdc: 681b ldr r3, [r3, #0] - 8001fde: 2101 movs r1, #1 - 8001fe0: 4618 mov r0, r3 - 8001fe2: f7ff f979 bl 80012d8 - 8001fe6: 4603 mov r3, r0 - 8001fe8: 0e9b lsrs r3, r3, #26 - 8001fea: f003 021f and.w r2, r3, #31 - 8001fee: e01e b.n 800202e - 8001ff0: 687b ldr r3, [r7, #4] - 8001ff2: 681b ldr r3, [r3, #0] - 8001ff4: 2101 movs r1, #1 - 8001ff6: 4618 mov r0, r3 - 8001ff8: f7ff f96e bl 80012d8 - 8001ffc: 4603 mov r3, r0 - 8001ffe: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4 + 80028a0: 687b ldr r3, [r7, #4] + 80028a2: 681b ldr r3, [r3, #0] + 80028a4: 2101 movs r1, #1 + 80028a6: 4618 mov r0, r3 + 80028a8: f7ff f984 bl 8001bb4 + 80028ac: 4603 mov r3, r0 + 80028ae: f3c3 0312 ubfx r3, r3, #0, #19 + 80028b2: 2b00 cmp r3, #0 + 80028b4: d10a bne.n 80028cc + 80028b6: 687b ldr r3, [r7, #4] + 80028b8: 681b ldr r3, [r3, #0] + 80028ba: 2101 movs r1, #1 + 80028bc: 4618 mov r0, r3 + 80028be: f7ff f979 bl 8001bb4 + 80028c2: 4603 mov r3, r0 + 80028c4: 0e9b lsrs r3, r3, #26 + 80028c6: f003 021f and.w r2, r3, #31 + 80028ca: e01e b.n 800290a + 80028cc: 687b ldr r3, [r7, #4] + 80028ce: 681b ldr r3, [r3, #0] + 80028d0: 2101 movs r1, #1 + 80028d2: 4618 mov r0, r3 + 80028d4: f7ff f96e bl 8001bb4 + 80028d8: 4603 mov r3, r0 + 80028da: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); - 8002002: f8d7 30a4 ldr.w r3, [r7, #164] @ 0xa4 - 8002006: fa93 f3a3 rbit r3, r3 - 800200a: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0 + 80028de: f8d7 30a4 ldr.w r3, [r7, #164] @ 0xa4 + 80028e2: fa93 f3a3 rbit r3, r3 + 80028e6: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0 return result; - 800200e: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0 - 8002012: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8 + 80028ea: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0 + 80028ee: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8 if (value == 0U) - 8002016: f8d7 30a8 ldr.w r3, [r7, #168] @ 0xa8 - 800201a: 2b00 cmp r3, #0 - 800201c: d101 bne.n 8002022 + 80028f2: f8d7 30a8 ldr.w r3, [r7, #168] @ 0xa8 + 80028f6: 2b00 cmp r3, #0 + 80028f8: d101 bne.n 80028fe return 32U; - 800201e: 2320 movs r3, #32 - 8002020: e004 b.n 800202c + 80028fa: 2320 movs r3, #32 + 80028fc: e004 b.n 8002908 return __builtin_clz(value); - 8002022: f8d7 30a8 ldr.w r3, [r7, #168] @ 0xa8 - 8002026: fab3 f383 clz r3, r3 - 800202a: b2db uxtb r3, r3 - 800202c: 461a mov r2, r3 + 80028fe: f8d7 30a8 ldr.w r3, [r7, #168] @ 0xa8 + 8002902: fab3 f383 clz r3, r3 + 8002906: b2db uxtb r3, r3 + 8002908: 461a mov r2, r3 == __LL_ADC_CHANNEL_TO_DECIMAL_NB(pConfig->Channel)) - 800202e: 683b ldr r3, [r7, #0] - 8002030: 681b ldr r3, [r3, #0] - 8002032: f3c3 0312 ubfx r3, r3, #0, #19 - 8002036: 2b00 cmp r3, #0 - 8002038: d105 bne.n 8002046 - 800203a: 683b ldr r3, [r7, #0] - 800203c: 681b ldr r3, [r3, #0] - 800203e: 0e9b lsrs r3, r3, #26 - 8002040: f003 031f and.w r3, r3, #31 - 8002044: e018 b.n 8002078 - 8002046: 683b ldr r3, [r7, #0] - 8002048: 681b ldr r3, [r3, #0] - 800204a: f8c7 3098 str.w r3, [r7, #152] @ 0x98 + 800290a: 683b ldr r3, [r7, #0] + 800290c: 681b ldr r3, [r3, #0] + 800290e: f3c3 0312 ubfx r3, r3, #0, #19 + 8002912: 2b00 cmp r3, #0 + 8002914: d105 bne.n 8002922 + 8002916: 683b ldr r3, [r7, #0] + 8002918: 681b ldr r3, [r3, #0] + 800291a: 0e9b lsrs r3, r3, #26 + 800291c: f003 031f and.w r3, r3, #31 + 8002920: e018 b.n 8002954 + 8002922: 683b ldr r3, [r7, #0] + 8002924: 681b ldr r3, [r3, #0] + 8002926: f8c7 3098 str.w r3, [r7, #152] @ 0x98 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); - 800204e: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98 - 8002052: fa93 f3a3 rbit r3, r3 - 8002056: f8c7 3094 str.w r3, [r7, #148] @ 0x94 + 800292a: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98 + 800292e: fa93 f3a3 rbit r3, r3 + 8002932: f8c7 3094 str.w r3, [r7, #148] @ 0x94 return result; - 800205a: f8d7 3094 ldr.w r3, [r7, #148] @ 0x94 - 800205e: f8c7 309c str.w r3, [r7, #156] @ 0x9c + 8002936: f8d7 3094 ldr.w r3, [r7, #148] @ 0x94 + 800293a: f8c7 309c str.w r3, [r7, #156] @ 0x9c if (value == 0U) - 8002062: f8d7 309c ldr.w r3, [r7, #156] @ 0x9c - 8002066: 2b00 cmp r3, #0 - 8002068: d101 bne.n 800206e + 800293e: f8d7 309c ldr.w r3, [r7, #156] @ 0x9c + 8002942: 2b00 cmp r3, #0 + 8002944: d101 bne.n 800294a return 32U; - 800206a: 2320 movs r3, #32 - 800206c: e004 b.n 8002078 + 8002946: 2320 movs r3, #32 + 8002948: e004 b.n 8002954 return __builtin_clz(value); - 800206e: f8d7 309c ldr.w r3, [r7, #156] @ 0x9c - 8002072: fab3 f383 clz r3, r3 - 8002076: b2db uxtb r3, r3 + 800294a: f8d7 309c ldr.w r3, [r7, #156] @ 0x9c + 800294e: fab3 f383 clz r3, r3 + 8002952: b2db uxtb r3, r3 if (__LL_ADC_CHANNEL_TO_DECIMAL_NB(LL_ADC_GetOffsetChannel(hadc->Instance, LL_ADC_OFFSET_2)) - 8002078: 429a cmp r2, r3 - 800207a: d106 bne.n 800208a + 8002954: 429a cmp r2, r3 + 8002956: d106 bne.n 8002966 { LL_ADC_SetOffsetState(hadc->Instance, LL_ADC_OFFSET_2, LL_ADC_OFFSET_DISABLE); - 800207c: 687b ldr r3, [r7, #4] - 800207e: 681b ldr r3, [r3, #0] - 8002080: 2200 movs r2, #0 - 8002082: 2101 movs r1, #1 - 8002084: 4618 mov r0, r3 - 8002086: f7ff f93d bl 8001304 + 8002958: 687b ldr r3, [r7, #4] + 800295a: 681b ldr r3, [r3, #0] + 800295c: 2200 movs r2, #0 + 800295e: 2101 movs r1, #1 + 8002960: 4618 mov r0, r3 + 8002962: f7ff f93d bl 8001be0 } if (__LL_ADC_CHANNEL_TO_DECIMAL_NB(LL_ADC_GetOffsetChannel(hadc->Instance, LL_ADC_OFFSET_3)) - 800208a: 687b ldr r3, [r7, #4] - 800208c: 681b ldr r3, [r3, #0] - 800208e: 2102 movs r1, #2 - 8002090: 4618 mov r0, r3 - 8002092: f7ff f921 bl 80012d8 - 8002096: 4603 mov r3, r0 - 8002098: f3c3 0312 ubfx r3, r3, #0, #19 - 800209c: 2b00 cmp r3, #0 - 800209e: d10a bne.n 80020b6 - 80020a0: 687b ldr r3, [r7, #4] - 80020a2: 681b ldr r3, [r3, #0] - 80020a4: 2102 movs r1, #2 - 80020a6: 4618 mov r0, r3 - 80020a8: f7ff f916 bl 80012d8 - 80020ac: 4603 mov r3, r0 - 80020ae: 0e9b lsrs r3, r3, #26 - 80020b0: f003 021f and.w r2, r3, #31 - 80020b4: e01e b.n 80020f4 - 80020b6: 687b ldr r3, [r7, #4] - 80020b8: 681b ldr r3, [r3, #0] - 80020ba: 2102 movs r1, #2 - 80020bc: 4618 mov r0, r3 - 80020be: f7ff f90b bl 80012d8 - 80020c2: 4603 mov r3, r0 - 80020c4: f8c7 308c str.w r3, [r7, #140] @ 0x8c + 8002966: 687b ldr r3, [r7, #4] + 8002968: 681b ldr r3, [r3, #0] + 800296a: 2102 movs r1, #2 + 800296c: 4618 mov r0, r3 + 800296e: f7ff f921 bl 8001bb4 + 8002972: 4603 mov r3, r0 + 8002974: f3c3 0312 ubfx r3, r3, #0, #19 + 8002978: 2b00 cmp r3, #0 + 800297a: d10a bne.n 8002992 + 800297c: 687b ldr r3, [r7, #4] + 800297e: 681b ldr r3, [r3, #0] + 8002980: 2102 movs r1, #2 + 8002982: 4618 mov r0, r3 + 8002984: f7ff f916 bl 8001bb4 + 8002988: 4603 mov r3, r0 + 800298a: 0e9b lsrs r3, r3, #26 + 800298c: f003 021f and.w r2, r3, #31 + 8002990: e01e b.n 80029d0 + 8002992: 687b ldr r3, [r7, #4] + 8002994: 681b ldr r3, [r3, #0] + 8002996: 2102 movs r1, #2 + 8002998: 4618 mov r0, r3 + 800299a: f7ff f90b bl 8001bb4 + 800299e: 4603 mov r3, r0 + 80029a0: f8c7 308c str.w r3, [r7, #140] @ 0x8c __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); - 80020c8: f8d7 308c ldr.w r3, [r7, #140] @ 0x8c - 80020cc: fa93 f3a3 rbit r3, r3 - 80020d0: f8c7 3088 str.w r3, [r7, #136] @ 0x88 + 80029a4: f8d7 308c ldr.w r3, [r7, #140] @ 0x8c + 80029a8: fa93 f3a3 rbit r3, r3 + 80029ac: f8c7 3088 str.w r3, [r7, #136] @ 0x88 return result; - 80020d4: f8d7 3088 ldr.w r3, [r7, #136] @ 0x88 - 80020d8: f8c7 3090 str.w r3, [r7, #144] @ 0x90 + 80029b0: f8d7 3088 ldr.w r3, [r7, #136] @ 0x88 + 80029b4: f8c7 3090 str.w r3, [r7, #144] @ 0x90 if (value == 0U) - 80020dc: f8d7 3090 ldr.w r3, [r7, #144] @ 0x90 - 80020e0: 2b00 cmp r3, #0 - 80020e2: d101 bne.n 80020e8 + 80029b8: f8d7 3090 ldr.w r3, [r7, #144] @ 0x90 + 80029bc: 2b00 cmp r3, #0 + 80029be: d101 bne.n 80029c4 return 32U; - 80020e4: 2320 movs r3, #32 - 80020e6: e004 b.n 80020f2 + 80029c0: 2320 movs r3, #32 + 80029c2: e004 b.n 80029ce return __builtin_clz(value); - 80020e8: f8d7 3090 ldr.w r3, [r7, #144] @ 0x90 - 80020ec: fab3 f383 clz r3, r3 - 80020f0: b2db uxtb r3, r3 - 80020f2: 461a mov r2, r3 + 80029c4: f8d7 3090 ldr.w r3, [r7, #144] @ 0x90 + 80029c8: fab3 f383 clz r3, r3 + 80029cc: b2db uxtb r3, r3 + 80029ce: 461a mov r2, r3 == __LL_ADC_CHANNEL_TO_DECIMAL_NB(pConfig->Channel)) - 80020f4: 683b ldr r3, [r7, #0] - 80020f6: 681b ldr r3, [r3, #0] - 80020f8: f3c3 0312 ubfx r3, r3, #0, #19 - 80020fc: 2b00 cmp r3, #0 - 80020fe: d105 bne.n 800210c - 8002100: 683b ldr r3, [r7, #0] - 8002102: 681b ldr r3, [r3, #0] - 8002104: 0e9b lsrs r3, r3, #26 - 8002106: f003 031f and.w r3, r3, #31 - 800210a: e016 b.n 800213a - 800210c: 683b ldr r3, [r7, #0] - 800210e: 681b ldr r3, [r3, #0] - 8002110: f8c7 3080 str.w r3, [r7, #128] @ 0x80 + 80029d0: 683b ldr r3, [r7, #0] + 80029d2: 681b ldr r3, [r3, #0] + 80029d4: f3c3 0312 ubfx r3, r3, #0, #19 + 80029d8: 2b00 cmp r3, #0 + 80029da: d105 bne.n 80029e8 + 80029dc: 683b ldr r3, [r7, #0] + 80029de: 681b ldr r3, [r3, #0] + 80029e0: 0e9b lsrs r3, r3, #26 + 80029e2: f003 031f and.w r3, r3, #31 + 80029e6: e016 b.n 8002a16 + 80029e8: 683b ldr r3, [r7, #0] + 80029ea: 681b ldr r3, [r3, #0] + 80029ec: f8c7 3080 str.w r3, [r7, #128] @ 0x80 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); - 8002114: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80 - 8002118: fa93 f3a3 rbit r3, r3 - 800211c: 67fb str r3, [r7, #124] @ 0x7c + 80029f0: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80 + 80029f4: fa93 f3a3 rbit r3, r3 + 80029f8: 67fb str r3, [r7, #124] @ 0x7c return result; - 800211e: 6ffb ldr r3, [r7, #124] @ 0x7c - 8002120: f8c7 3084 str.w r3, [r7, #132] @ 0x84 + 80029fa: 6ffb ldr r3, [r7, #124] @ 0x7c + 80029fc: f8c7 3084 str.w r3, [r7, #132] @ 0x84 if (value == 0U) - 8002124: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84 - 8002128: 2b00 cmp r3, #0 - 800212a: d101 bne.n 8002130 + 8002a00: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84 + 8002a04: 2b00 cmp r3, #0 + 8002a06: d101 bne.n 8002a0c return 32U; - 800212c: 2320 movs r3, #32 - 800212e: e004 b.n 800213a + 8002a08: 2320 movs r3, #32 + 8002a0a: e004 b.n 8002a16 return __builtin_clz(value); - 8002130: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84 - 8002134: fab3 f383 clz r3, r3 - 8002138: b2db uxtb r3, r3 + 8002a0c: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84 + 8002a10: fab3 f383 clz r3, r3 + 8002a14: b2db uxtb r3, r3 if (__LL_ADC_CHANNEL_TO_DECIMAL_NB(LL_ADC_GetOffsetChannel(hadc->Instance, LL_ADC_OFFSET_3)) - 800213a: 429a cmp r2, r3 - 800213c: d106 bne.n 800214c + 8002a16: 429a cmp r2, r3 + 8002a18: d106 bne.n 8002a28 { LL_ADC_SetOffsetState(hadc->Instance, LL_ADC_OFFSET_3, LL_ADC_OFFSET_DISABLE); - 800213e: 687b ldr r3, [r7, #4] - 8002140: 681b ldr r3, [r3, #0] - 8002142: 2200 movs r2, #0 - 8002144: 2102 movs r1, #2 - 8002146: 4618 mov r0, r3 - 8002148: f7ff f8dc bl 8001304 + 8002a1a: 687b ldr r3, [r7, #4] + 8002a1c: 681b ldr r3, [r3, #0] + 8002a1e: 2200 movs r2, #0 + 8002a20: 2102 movs r1, #2 + 8002a22: 4618 mov r0, r3 + 8002a24: f7ff f8dc bl 8001be0 } if (__LL_ADC_CHANNEL_TO_DECIMAL_NB(LL_ADC_GetOffsetChannel(hadc->Instance, LL_ADC_OFFSET_4)) - 800214c: 687b ldr r3, [r7, #4] - 800214e: 681b ldr r3, [r3, #0] - 8002150: 2103 movs r1, #3 - 8002152: 4618 mov r0, r3 - 8002154: f7ff f8c0 bl 80012d8 - 8002158: 4603 mov r3, r0 - 800215a: f3c3 0312 ubfx r3, r3, #0, #19 - 800215e: 2b00 cmp r3, #0 - 8002160: d10a bne.n 8002178 - 8002162: 687b ldr r3, [r7, #4] - 8002164: 681b ldr r3, [r3, #0] - 8002166: 2103 movs r1, #3 - 8002168: 4618 mov r0, r3 - 800216a: f7ff f8b5 bl 80012d8 - 800216e: 4603 mov r3, r0 - 8002170: 0e9b lsrs r3, r3, #26 - 8002172: f003 021f and.w r2, r3, #31 - 8002176: e017 b.n 80021a8 - 8002178: 687b ldr r3, [r7, #4] - 800217a: 681b ldr r3, [r3, #0] - 800217c: 2103 movs r1, #3 - 800217e: 4618 mov r0, r3 - 8002180: f7ff f8aa bl 80012d8 - 8002184: 4603 mov r3, r0 - 8002186: 677b str r3, [r7, #116] @ 0x74 + 8002a28: 687b ldr r3, [r7, #4] + 8002a2a: 681b ldr r3, [r3, #0] + 8002a2c: 2103 movs r1, #3 + 8002a2e: 4618 mov r0, r3 + 8002a30: f7ff f8c0 bl 8001bb4 + 8002a34: 4603 mov r3, r0 + 8002a36: f3c3 0312 ubfx r3, r3, #0, #19 + 8002a3a: 2b00 cmp r3, #0 + 8002a3c: d10a bne.n 8002a54 + 8002a3e: 687b ldr r3, [r7, #4] + 8002a40: 681b ldr r3, [r3, #0] + 8002a42: 2103 movs r1, #3 + 8002a44: 4618 mov r0, r3 + 8002a46: f7ff f8b5 bl 8001bb4 + 8002a4a: 4603 mov r3, r0 + 8002a4c: 0e9b lsrs r3, r3, #26 + 8002a4e: f003 021f and.w r2, r3, #31 + 8002a52: e017 b.n 8002a84 + 8002a54: 687b ldr r3, [r7, #4] + 8002a56: 681b ldr r3, [r3, #0] + 8002a58: 2103 movs r1, #3 + 8002a5a: 4618 mov r0, r3 + 8002a5c: f7ff f8aa bl 8001bb4 + 8002a60: 4603 mov r3, r0 + 8002a62: 677b str r3, [r7, #116] @ 0x74 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); - 8002188: 6f7b ldr r3, [r7, #116] @ 0x74 - 800218a: fa93 f3a3 rbit r3, r3 - 800218e: 673b str r3, [r7, #112] @ 0x70 + 8002a64: 6f7b ldr r3, [r7, #116] @ 0x74 + 8002a66: fa93 f3a3 rbit r3, r3 + 8002a6a: 673b str r3, [r7, #112] @ 0x70 return result; - 8002190: 6f3b ldr r3, [r7, #112] @ 0x70 - 8002192: 67bb str r3, [r7, #120] @ 0x78 + 8002a6c: 6f3b ldr r3, [r7, #112] @ 0x70 + 8002a6e: 67bb str r3, [r7, #120] @ 0x78 if (value == 0U) - 8002194: 6fbb ldr r3, [r7, #120] @ 0x78 - 8002196: 2b00 cmp r3, #0 - 8002198: d101 bne.n 800219e + 8002a70: 6fbb ldr r3, [r7, #120] @ 0x78 + 8002a72: 2b00 cmp r3, #0 + 8002a74: d101 bne.n 8002a7a return 32U; - 800219a: 2320 movs r3, #32 - 800219c: e003 b.n 80021a6 + 8002a76: 2320 movs r3, #32 + 8002a78: e003 b.n 8002a82 return __builtin_clz(value); - 800219e: 6fbb ldr r3, [r7, #120] @ 0x78 - 80021a0: fab3 f383 clz r3, r3 - 80021a4: b2db uxtb r3, r3 - 80021a6: 461a mov r2, r3 + 8002a7a: 6fbb ldr r3, [r7, #120] @ 0x78 + 8002a7c: fab3 f383 clz r3, r3 + 8002a80: b2db uxtb r3, r3 + 8002a82: 461a mov r2, r3 == __LL_ADC_CHANNEL_TO_DECIMAL_NB(pConfig->Channel)) - 80021a8: 683b ldr r3, [r7, #0] - 80021aa: 681b ldr r3, [r3, #0] - 80021ac: f3c3 0312 ubfx r3, r3, #0, #19 - 80021b0: 2b00 cmp r3, #0 - 80021b2: d105 bne.n 80021c0 - 80021b4: 683b ldr r3, [r7, #0] - 80021b6: 681b ldr r3, [r3, #0] - 80021b8: 0e9b lsrs r3, r3, #26 - 80021ba: f003 031f and.w r3, r3, #31 - 80021be: e011 b.n 80021e4 - 80021c0: 683b ldr r3, [r7, #0] - 80021c2: 681b ldr r3, [r3, #0] - 80021c4: 66bb str r3, [r7, #104] @ 0x68 + 8002a84: 683b ldr r3, [r7, #0] + 8002a86: 681b ldr r3, [r3, #0] + 8002a88: f3c3 0312 ubfx r3, r3, #0, #19 + 8002a8c: 2b00 cmp r3, #0 + 8002a8e: d105 bne.n 8002a9c + 8002a90: 683b ldr r3, [r7, #0] + 8002a92: 681b ldr r3, [r3, #0] + 8002a94: 0e9b lsrs r3, r3, #26 + 8002a96: f003 031f and.w r3, r3, #31 + 8002a9a: e011 b.n 8002ac0 + 8002a9c: 683b ldr r3, [r7, #0] + 8002a9e: 681b ldr r3, [r3, #0] + 8002aa0: 66bb str r3, [r7, #104] @ 0x68 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); - 80021c6: 6ebb ldr r3, [r7, #104] @ 0x68 - 80021c8: fa93 f3a3 rbit r3, r3 - 80021cc: 667b str r3, [r7, #100] @ 0x64 + 8002aa2: 6ebb ldr r3, [r7, #104] @ 0x68 + 8002aa4: fa93 f3a3 rbit r3, r3 + 8002aa8: 667b str r3, [r7, #100] @ 0x64 return result; - 80021ce: 6e7b ldr r3, [r7, #100] @ 0x64 - 80021d0: 66fb str r3, [r7, #108] @ 0x6c + 8002aaa: 6e7b ldr r3, [r7, #100] @ 0x64 + 8002aac: 66fb str r3, [r7, #108] @ 0x6c if (value == 0U) - 80021d2: 6efb ldr r3, [r7, #108] @ 0x6c - 80021d4: 2b00 cmp r3, #0 - 80021d6: d101 bne.n 80021dc + 8002aae: 6efb ldr r3, [r7, #108] @ 0x6c + 8002ab0: 2b00 cmp r3, #0 + 8002ab2: d101 bne.n 8002ab8 return 32U; - 80021d8: 2320 movs r3, #32 - 80021da: e003 b.n 80021e4 + 8002ab4: 2320 movs r3, #32 + 8002ab6: e003 b.n 8002ac0 return __builtin_clz(value); - 80021dc: 6efb ldr r3, [r7, #108] @ 0x6c - 80021de: fab3 f383 clz r3, r3 - 80021e2: b2db uxtb r3, r3 + 8002ab8: 6efb ldr r3, [r7, #108] @ 0x6c + 8002aba: fab3 f383 clz r3, r3 + 8002abe: b2db uxtb r3, r3 if (__LL_ADC_CHANNEL_TO_DECIMAL_NB(LL_ADC_GetOffsetChannel(hadc->Instance, LL_ADC_OFFSET_4)) - 80021e4: 429a cmp r2, r3 - 80021e6: d106 bne.n 80021f6 + 8002ac0: 429a cmp r2, r3 + 8002ac2: d106 bne.n 8002ad2 { LL_ADC_SetOffsetState(hadc->Instance, LL_ADC_OFFSET_4, LL_ADC_OFFSET_DISABLE); - 80021e8: 687b ldr r3, [r7, #4] - 80021ea: 681b ldr r3, [r3, #0] - 80021ec: 2200 movs r2, #0 - 80021ee: 2103 movs r1, #3 - 80021f0: 4618 mov r0, r3 - 80021f2: f7ff f887 bl 8001304 + 8002ac4: 687b ldr r3, [r7, #4] + 8002ac6: 681b ldr r3, [r3, #0] + 8002ac8: 2200 movs r2, #0 + 8002aca: 2103 movs r1, #3 + 8002acc: 4618 mov r0, r3 + 8002ace: f7ff f887 bl 8001be0 } /* Parameters update conditioned to ADC state: */ /* Parameters that can be updated only when ADC is disabled: */ /* - Single or differential mode */ if (LL_ADC_IsEnabled(hadc->Instance) == 0UL) - 80021f6: 687b ldr r3, [r7, #4] - 80021f8: 681b ldr r3, [r3, #0] - 80021fa: 4618 mov r0, r3 - 80021fc: f7ff fa06 bl 800160c - 8002200: 4603 mov r3, r0 - 8002202: 2b00 cmp r3, #0 - 8002204: f040 8140 bne.w 8002488 + 8002ad2: 687b ldr r3, [r7, #4] + 8002ad4: 681b ldr r3, [r3, #0] + 8002ad6: 4618 mov r0, r3 + 8002ad8: f7ff fa06 bl 8001ee8 + 8002adc: 4603 mov r3, r0 + 8002ade: 2b00 cmp r3, #0 + 8002ae0: f040 8140 bne.w 8002d64 { /* Set mode single-ended or differential input of the selected ADC channel */ LL_ADC_SetChannelSingleDiff(hadc->Instance, pConfig->Channel, pConfig->SingleDiff); - 8002208: 687b ldr r3, [r7, #4] - 800220a: 6818 ldr r0, [r3, #0] - 800220c: 683b ldr r3, [r7, #0] - 800220e: 6819 ldr r1, [r3, #0] - 8002210: 683b ldr r3, [r7, #0] - 8002212: 68db ldr r3, [r3, #12] - 8002214: 461a mov r2, r3 - 8002216: f7ff f943 bl 80014a0 + 8002ae4: 687b ldr r3, [r7, #4] + 8002ae6: 6818 ldr r0, [r3, #0] + 8002ae8: 683b ldr r3, [r7, #0] + 8002aea: 6819 ldr r1, [r3, #0] + 8002aec: 683b ldr r3, [r7, #0] + 8002aee: 68db ldr r3, [r3, #12] + 8002af0: 461a mov r2, r3 + 8002af2: f7ff f943 bl 8001d7c /* Configuration of differential mode */ if (pConfig->SingleDiff == ADC_DIFFERENTIAL_ENDED) - 800221a: 683b ldr r3, [r7, #0] - 800221c: 68db ldr r3, [r3, #12] - 800221e: 4a8f ldr r2, [pc, #572] @ (800245c ) - 8002220: 4293 cmp r3, r2 - 8002222: f040 8131 bne.w 8002488 + 8002af6: 683b ldr r3, [r7, #0] + 8002af8: 68db ldr r3, [r3, #12] + 8002afa: 4a8f ldr r2, [pc, #572] @ (8002d38 ) + 8002afc: 4293 cmp r3, r2 + 8002afe: f040 8131 bne.w 8002d64 { /* Set sampling time of the selected ADC channel */ /* Note: ADC channel number masked with value "0x1F" to ensure shift value within 32 bits range */ LL_ADC_SetChannelSamplingTime(hadc->Instance, - 8002226: 687b ldr r3, [r7, #4] - 8002228: 6818 ldr r0, [r3, #0] + 8002b02: 687b ldr r3, [r7, #4] + 8002b04: 6818 ldr r0, [r3, #0] (uint32_t)(__LL_ADC_DECIMAL_NB_TO_CHANNEL( - 800222a: 683b ldr r3, [r7, #0] - 800222c: 681b ldr r3, [r3, #0] - 800222e: f3c3 0312 ubfx r3, r3, #0, #19 - 8002232: 2b00 cmp r3, #0 - 8002234: d10b bne.n 800224e - 8002236: 683b ldr r3, [r7, #0] - 8002238: 681b ldr r3, [r3, #0] - 800223a: 0e9b lsrs r3, r3, #26 - 800223c: 3301 adds r3, #1 - 800223e: f003 031f and.w r3, r3, #31 - 8002242: 2b09 cmp r3, #9 - 8002244: bf94 ite ls - 8002246: 2301 movls r3, #1 - 8002248: 2300 movhi r3, #0 - 800224a: b2db uxtb r3, r3 - 800224c: e019 b.n 8002282 - 800224e: 683b ldr r3, [r7, #0] - 8002250: 681b ldr r3, [r3, #0] - 8002252: 65fb str r3, [r7, #92] @ 0x5c + 8002b06: 683b ldr r3, [r7, #0] + 8002b08: 681b ldr r3, [r3, #0] + 8002b0a: f3c3 0312 ubfx r3, r3, #0, #19 + 8002b0e: 2b00 cmp r3, #0 + 8002b10: d10b bne.n 8002b2a + 8002b12: 683b ldr r3, [r7, #0] + 8002b14: 681b ldr r3, [r3, #0] + 8002b16: 0e9b lsrs r3, r3, #26 + 8002b18: 3301 adds r3, #1 + 8002b1a: f003 031f and.w r3, r3, #31 + 8002b1e: 2b09 cmp r3, #9 + 8002b20: bf94 ite ls + 8002b22: 2301 movls r3, #1 + 8002b24: 2300 movhi r3, #0 + 8002b26: b2db uxtb r3, r3 + 8002b28: e019 b.n 8002b5e + 8002b2a: 683b ldr r3, [r7, #0] + 8002b2c: 681b ldr r3, [r3, #0] + 8002b2e: 65fb str r3, [r7, #92] @ 0x5c __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); - 8002254: 6dfb ldr r3, [r7, #92] @ 0x5c - 8002256: fa93 f3a3 rbit r3, r3 - 800225a: 65bb str r3, [r7, #88] @ 0x58 + 8002b30: 6dfb ldr r3, [r7, #92] @ 0x5c + 8002b32: fa93 f3a3 rbit r3, r3 + 8002b36: 65bb str r3, [r7, #88] @ 0x58 return result; - 800225c: 6dbb ldr r3, [r7, #88] @ 0x58 - 800225e: 663b str r3, [r7, #96] @ 0x60 + 8002b38: 6dbb ldr r3, [r7, #88] @ 0x58 + 8002b3a: 663b str r3, [r7, #96] @ 0x60 if (value == 0U) - 8002260: 6e3b ldr r3, [r7, #96] @ 0x60 - 8002262: 2b00 cmp r3, #0 - 8002264: d101 bne.n 800226a + 8002b3c: 6e3b ldr r3, [r7, #96] @ 0x60 + 8002b3e: 2b00 cmp r3, #0 + 8002b40: d101 bne.n 8002b46 return 32U; - 8002266: 2320 movs r3, #32 - 8002268: e003 b.n 8002272 + 8002b42: 2320 movs r3, #32 + 8002b44: e003 b.n 8002b4e return __builtin_clz(value); - 800226a: 6e3b ldr r3, [r7, #96] @ 0x60 - 800226c: fab3 f383 clz r3, r3 - 8002270: b2db uxtb r3, r3 - 8002272: 3301 adds r3, #1 - 8002274: f003 031f and.w r3, r3, #31 - 8002278: 2b09 cmp r3, #9 - 800227a: bf94 ite ls - 800227c: 2301 movls r3, #1 - 800227e: 2300 movhi r3, #0 - 8002280: b2db uxtb r3, r3 + 8002b46: 6e3b ldr r3, [r7, #96] @ 0x60 + 8002b48: fab3 f383 clz r3, r3 + 8002b4c: b2db uxtb r3, r3 + 8002b4e: 3301 adds r3, #1 + 8002b50: f003 031f and.w r3, r3, #31 + 8002b54: 2b09 cmp r3, #9 + 8002b56: bf94 ite ls + 8002b58: 2301 movls r3, #1 + 8002b5a: 2300 movhi r3, #0 + 8002b5c: b2db uxtb r3, r3 LL_ADC_SetChannelSamplingTime(hadc->Instance, - 8002282: 2b00 cmp r3, #0 - 8002284: d079 beq.n 800237a + 8002b5e: 2b00 cmp r3, #0 + 8002b60: d079 beq.n 8002c56 (uint32_t)(__LL_ADC_DECIMAL_NB_TO_CHANNEL( - 8002286: 683b ldr r3, [r7, #0] - 8002288: 681b ldr r3, [r3, #0] - 800228a: f3c3 0312 ubfx r3, r3, #0, #19 - 800228e: 2b00 cmp r3, #0 - 8002290: d107 bne.n 80022a2 - 8002292: 683b ldr r3, [r7, #0] - 8002294: 681b ldr r3, [r3, #0] - 8002296: 0e9b lsrs r3, r3, #26 - 8002298: 3301 adds r3, #1 - 800229a: 069b lsls r3, r3, #26 - 800229c: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000 - 80022a0: e015 b.n 80022ce - 80022a2: 683b ldr r3, [r7, #0] - 80022a4: 681b ldr r3, [r3, #0] - 80022a6: 653b str r3, [r7, #80] @ 0x50 + 8002b62: 683b ldr r3, [r7, #0] + 8002b64: 681b ldr r3, [r3, #0] + 8002b66: f3c3 0312 ubfx r3, r3, #0, #19 + 8002b6a: 2b00 cmp r3, #0 + 8002b6c: d107 bne.n 8002b7e + 8002b6e: 683b ldr r3, [r7, #0] + 8002b70: 681b ldr r3, [r3, #0] + 8002b72: 0e9b lsrs r3, r3, #26 + 8002b74: 3301 adds r3, #1 + 8002b76: 069b lsls r3, r3, #26 + 8002b78: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000 + 8002b7c: e015 b.n 8002baa + 8002b7e: 683b ldr r3, [r7, #0] + 8002b80: 681b ldr r3, [r3, #0] + 8002b82: 653b str r3, [r7, #80] @ 0x50 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); - 80022a8: 6d3b ldr r3, [r7, #80] @ 0x50 - 80022aa: fa93 f3a3 rbit r3, r3 - 80022ae: 64fb str r3, [r7, #76] @ 0x4c + 8002b84: 6d3b ldr r3, [r7, #80] @ 0x50 + 8002b86: fa93 f3a3 rbit r3, r3 + 8002b8a: 64fb str r3, [r7, #76] @ 0x4c return result; - 80022b0: 6cfb ldr r3, [r7, #76] @ 0x4c - 80022b2: 657b str r3, [r7, #84] @ 0x54 + 8002b8c: 6cfb ldr r3, [r7, #76] @ 0x4c + 8002b8e: 657b str r3, [r7, #84] @ 0x54 if (value == 0U) - 80022b4: 6d7b ldr r3, [r7, #84] @ 0x54 - 80022b6: 2b00 cmp r3, #0 - 80022b8: d101 bne.n 80022be + 8002b90: 6d7b ldr r3, [r7, #84] @ 0x54 + 8002b92: 2b00 cmp r3, #0 + 8002b94: d101 bne.n 8002b9a return 32U; - 80022ba: 2320 movs r3, #32 - 80022bc: e003 b.n 80022c6 + 8002b96: 2320 movs r3, #32 + 8002b98: e003 b.n 8002ba2 return __builtin_clz(value); - 80022be: 6d7b ldr r3, [r7, #84] @ 0x54 - 80022c0: fab3 f383 clz r3, r3 - 80022c4: b2db uxtb r3, r3 - 80022c6: 3301 adds r3, #1 - 80022c8: 069b lsls r3, r3, #26 - 80022ca: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000 - 80022ce: 683b ldr r3, [r7, #0] - 80022d0: 681b ldr r3, [r3, #0] - 80022d2: f3c3 0312 ubfx r3, r3, #0, #19 - 80022d6: 2b00 cmp r3, #0 - 80022d8: d109 bne.n 80022ee - 80022da: 683b ldr r3, [r7, #0] - 80022dc: 681b ldr r3, [r3, #0] - 80022de: 0e9b lsrs r3, r3, #26 - 80022e0: 3301 adds r3, #1 - 80022e2: f003 031f and.w r3, r3, #31 - 80022e6: 2101 movs r1, #1 - 80022e8: fa01 f303 lsl.w r3, r1, r3 - 80022ec: e017 b.n 800231e - 80022ee: 683b ldr r3, [r7, #0] - 80022f0: 681b ldr r3, [r3, #0] - 80022f2: 647b str r3, [r7, #68] @ 0x44 + 8002b9a: 6d7b ldr r3, [r7, #84] @ 0x54 + 8002b9c: fab3 f383 clz r3, r3 + 8002ba0: b2db uxtb r3, r3 + 8002ba2: 3301 adds r3, #1 + 8002ba4: 069b lsls r3, r3, #26 + 8002ba6: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000 + 8002baa: 683b ldr r3, [r7, #0] + 8002bac: 681b ldr r3, [r3, #0] + 8002bae: f3c3 0312 ubfx r3, r3, #0, #19 + 8002bb2: 2b00 cmp r3, #0 + 8002bb4: d109 bne.n 8002bca + 8002bb6: 683b ldr r3, [r7, #0] + 8002bb8: 681b ldr r3, [r3, #0] + 8002bba: 0e9b lsrs r3, r3, #26 + 8002bbc: 3301 adds r3, #1 + 8002bbe: f003 031f and.w r3, r3, #31 + 8002bc2: 2101 movs r1, #1 + 8002bc4: fa01 f303 lsl.w r3, r1, r3 + 8002bc8: e017 b.n 8002bfa + 8002bca: 683b ldr r3, [r7, #0] + 8002bcc: 681b ldr r3, [r3, #0] + 8002bce: 647b str r3, [r7, #68] @ 0x44 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); - 80022f4: 6c7b ldr r3, [r7, #68] @ 0x44 - 80022f6: fa93 f3a3 rbit r3, r3 - 80022fa: 643b str r3, [r7, #64] @ 0x40 + 8002bd0: 6c7b ldr r3, [r7, #68] @ 0x44 + 8002bd2: fa93 f3a3 rbit r3, r3 + 8002bd6: 643b str r3, [r7, #64] @ 0x40 return result; - 80022fc: 6c3b ldr r3, [r7, #64] @ 0x40 - 80022fe: 64bb str r3, [r7, #72] @ 0x48 + 8002bd8: 6c3b ldr r3, [r7, #64] @ 0x40 + 8002bda: 64bb str r3, [r7, #72] @ 0x48 if (value == 0U) - 8002300: 6cbb ldr r3, [r7, #72] @ 0x48 - 8002302: 2b00 cmp r3, #0 - 8002304: d101 bne.n 800230a + 8002bdc: 6cbb ldr r3, [r7, #72] @ 0x48 + 8002bde: 2b00 cmp r3, #0 + 8002be0: d101 bne.n 8002be6 return 32U; - 8002306: 2320 movs r3, #32 - 8002308: e003 b.n 8002312 + 8002be2: 2320 movs r3, #32 + 8002be4: e003 b.n 8002bee return __builtin_clz(value); - 800230a: 6cbb ldr r3, [r7, #72] @ 0x48 - 800230c: fab3 f383 clz r3, r3 - 8002310: b2db uxtb r3, r3 - 8002312: 3301 adds r3, #1 - 8002314: f003 031f and.w r3, r3, #31 - 8002318: 2101 movs r1, #1 - 800231a: fa01 f303 lsl.w r3, r1, r3 - 800231e: ea42 0103 orr.w r1, r2, r3 - 8002322: 683b ldr r3, [r7, #0] - 8002324: 681b ldr r3, [r3, #0] - 8002326: f3c3 0312 ubfx r3, r3, #0, #19 - 800232a: 2b00 cmp r3, #0 - 800232c: d10a bne.n 8002344 - 800232e: 683b ldr r3, [r7, #0] - 8002330: 681b ldr r3, [r3, #0] - 8002332: 0e9b lsrs r3, r3, #26 - 8002334: 3301 adds r3, #1 - 8002336: f003 021f and.w r2, r3, #31 - 800233a: 4613 mov r3, r2 - 800233c: 005b lsls r3, r3, #1 - 800233e: 4413 add r3, r2 - 8002340: 051b lsls r3, r3, #20 - 8002342: e018 b.n 8002376 - 8002344: 683b ldr r3, [r7, #0] - 8002346: 681b ldr r3, [r3, #0] - 8002348: 63bb str r3, [r7, #56] @ 0x38 + 8002be6: 6cbb ldr r3, [r7, #72] @ 0x48 + 8002be8: fab3 f383 clz r3, r3 + 8002bec: b2db uxtb r3, r3 + 8002bee: 3301 adds r3, #1 + 8002bf0: f003 031f and.w r3, r3, #31 + 8002bf4: 2101 movs r1, #1 + 8002bf6: fa01 f303 lsl.w r3, r1, r3 + 8002bfa: ea42 0103 orr.w r1, r2, r3 + 8002bfe: 683b ldr r3, [r7, #0] + 8002c00: 681b ldr r3, [r3, #0] + 8002c02: f3c3 0312 ubfx r3, r3, #0, #19 + 8002c06: 2b00 cmp r3, #0 + 8002c08: d10a bne.n 8002c20 + 8002c0a: 683b ldr r3, [r7, #0] + 8002c0c: 681b ldr r3, [r3, #0] + 8002c0e: 0e9b lsrs r3, r3, #26 + 8002c10: 3301 adds r3, #1 + 8002c12: f003 021f and.w r2, r3, #31 + 8002c16: 4613 mov r3, r2 + 8002c18: 005b lsls r3, r3, #1 + 8002c1a: 4413 add r3, r2 + 8002c1c: 051b lsls r3, r3, #20 + 8002c1e: e018 b.n 8002c52 + 8002c20: 683b ldr r3, [r7, #0] + 8002c22: 681b ldr r3, [r3, #0] + 8002c24: 63bb str r3, [r7, #56] @ 0x38 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); - 800234a: 6bbb ldr r3, [r7, #56] @ 0x38 - 800234c: fa93 f3a3 rbit r3, r3 - 8002350: 637b str r3, [r7, #52] @ 0x34 + 8002c26: 6bbb ldr r3, [r7, #56] @ 0x38 + 8002c28: fa93 f3a3 rbit r3, r3 + 8002c2c: 637b str r3, [r7, #52] @ 0x34 return result; - 8002352: 6b7b ldr r3, [r7, #52] @ 0x34 - 8002354: 63fb str r3, [r7, #60] @ 0x3c + 8002c2e: 6b7b ldr r3, [r7, #52] @ 0x34 + 8002c30: 63fb str r3, [r7, #60] @ 0x3c if (value == 0U) - 8002356: 6bfb ldr r3, [r7, #60] @ 0x3c - 8002358: 2b00 cmp r3, #0 - 800235a: d101 bne.n 8002360 + 8002c32: 6bfb ldr r3, [r7, #60] @ 0x3c + 8002c34: 2b00 cmp r3, #0 + 8002c36: d101 bne.n 8002c3c return 32U; - 800235c: 2320 movs r3, #32 - 800235e: e003 b.n 8002368 + 8002c38: 2320 movs r3, #32 + 8002c3a: e003 b.n 8002c44 return __builtin_clz(value); - 8002360: 6bfb ldr r3, [r7, #60] @ 0x3c - 8002362: fab3 f383 clz r3, r3 - 8002366: b2db uxtb r3, r3 - 8002368: 3301 adds r3, #1 - 800236a: f003 021f and.w r2, r3, #31 - 800236e: 4613 mov r3, r2 - 8002370: 005b lsls r3, r3, #1 - 8002372: 4413 add r3, r2 - 8002374: 051b lsls r3, r3, #20 + 8002c3c: 6bfb ldr r3, [r7, #60] @ 0x3c + 8002c3e: fab3 f383 clz r3, r3 + 8002c42: b2db uxtb r3, r3 + 8002c44: 3301 adds r3, #1 + 8002c46: f003 021f and.w r2, r3, #31 + 8002c4a: 4613 mov r3, r2 + 8002c4c: 005b lsls r3, r3, #1 + 8002c4e: 4413 add r3, r2 + 8002c50: 051b lsls r3, r3, #20 LL_ADC_SetChannelSamplingTime(hadc->Instance, - 8002376: 430b orrs r3, r1 - 8002378: e081 b.n 800247e + 8002c52: 430b orrs r3, r1 + 8002c54: e081 b.n 8002d5a (uint32_t)(__LL_ADC_DECIMAL_NB_TO_CHANNEL( - 800237a: 683b ldr r3, [r7, #0] - 800237c: 681b ldr r3, [r3, #0] - 800237e: f3c3 0312 ubfx r3, r3, #0, #19 - 8002382: 2b00 cmp r3, #0 - 8002384: d107 bne.n 8002396 - 8002386: 683b ldr r3, [r7, #0] - 8002388: 681b ldr r3, [r3, #0] - 800238a: 0e9b lsrs r3, r3, #26 - 800238c: 3301 adds r3, #1 - 800238e: 069b lsls r3, r3, #26 - 8002390: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000 - 8002394: e015 b.n 80023c2 - 8002396: 683b ldr r3, [r7, #0] - 8002398: 681b ldr r3, [r3, #0] - 800239a: 62fb str r3, [r7, #44] @ 0x2c + 8002c56: 683b ldr r3, [r7, #0] + 8002c58: 681b ldr r3, [r3, #0] + 8002c5a: f3c3 0312 ubfx r3, r3, #0, #19 + 8002c5e: 2b00 cmp r3, #0 + 8002c60: d107 bne.n 8002c72 + 8002c62: 683b ldr r3, [r7, #0] + 8002c64: 681b ldr r3, [r3, #0] + 8002c66: 0e9b lsrs r3, r3, #26 + 8002c68: 3301 adds r3, #1 + 8002c6a: 069b lsls r3, r3, #26 + 8002c6c: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000 + 8002c70: e015 b.n 8002c9e + 8002c72: 683b ldr r3, [r7, #0] + 8002c74: 681b ldr r3, [r3, #0] + 8002c76: 62fb str r3, [r7, #44] @ 0x2c __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); - 800239c: 6afb ldr r3, [r7, #44] @ 0x2c - 800239e: fa93 f3a3 rbit r3, r3 - 80023a2: 62bb str r3, [r7, #40] @ 0x28 + 8002c78: 6afb ldr r3, [r7, #44] @ 0x2c + 8002c7a: fa93 f3a3 rbit r3, r3 + 8002c7e: 62bb str r3, [r7, #40] @ 0x28 return result; - 80023a4: 6abb ldr r3, [r7, #40] @ 0x28 - 80023a6: 633b str r3, [r7, #48] @ 0x30 + 8002c80: 6abb ldr r3, [r7, #40] @ 0x28 + 8002c82: 633b str r3, [r7, #48] @ 0x30 if (value == 0U) - 80023a8: 6b3b ldr r3, [r7, #48] @ 0x30 - 80023aa: 2b00 cmp r3, #0 - 80023ac: d101 bne.n 80023b2 + 8002c84: 6b3b ldr r3, [r7, #48] @ 0x30 + 8002c86: 2b00 cmp r3, #0 + 8002c88: d101 bne.n 8002c8e return 32U; - 80023ae: 2320 movs r3, #32 - 80023b0: e003 b.n 80023ba + 8002c8a: 2320 movs r3, #32 + 8002c8c: e003 b.n 8002c96 return __builtin_clz(value); - 80023b2: 6b3b ldr r3, [r7, #48] @ 0x30 - 80023b4: fab3 f383 clz r3, r3 - 80023b8: b2db uxtb r3, r3 - 80023ba: 3301 adds r3, #1 - 80023bc: 069b lsls r3, r3, #26 - 80023be: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000 - 80023c2: 683b ldr r3, [r7, #0] - 80023c4: 681b ldr r3, [r3, #0] - 80023c6: f3c3 0312 ubfx r3, r3, #0, #19 - 80023ca: 2b00 cmp r3, #0 - 80023cc: d109 bne.n 80023e2 - 80023ce: 683b ldr r3, [r7, #0] - 80023d0: 681b ldr r3, [r3, #0] - 80023d2: 0e9b lsrs r3, r3, #26 - 80023d4: 3301 adds r3, #1 - 80023d6: f003 031f and.w r3, r3, #31 - 80023da: 2101 movs r1, #1 - 80023dc: fa01 f303 lsl.w r3, r1, r3 - 80023e0: e017 b.n 8002412 - 80023e2: 683b ldr r3, [r7, #0] - 80023e4: 681b ldr r3, [r3, #0] - 80023e6: 623b str r3, [r7, #32] + 8002c8e: 6b3b ldr r3, [r7, #48] @ 0x30 + 8002c90: fab3 f383 clz r3, r3 + 8002c94: b2db uxtb r3, r3 + 8002c96: 3301 adds r3, #1 + 8002c98: 069b lsls r3, r3, #26 + 8002c9a: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000 + 8002c9e: 683b ldr r3, [r7, #0] + 8002ca0: 681b ldr r3, [r3, #0] + 8002ca2: f3c3 0312 ubfx r3, r3, #0, #19 + 8002ca6: 2b00 cmp r3, #0 + 8002ca8: d109 bne.n 8002cbe + 8002caa: 683b ldr r3, [r7, #0] + 8002cac: 681b ldr r3, [r3, #0] + 8002cae: 0e9b lsrs r3, r3, #26 + 8002cb0: 3301 adds r3, #1 + 8002cb2: f003 031f and.w r3, r3, #31 + 8002cb6: 2101 movs r1, #1 + 8002cb8: fa01 f303 lsl.w r3, r1, r3 + 8002cbc: e017 b.n 8002cee + 8002cbe: 683b ldr r3, [r7, #0] + 8002cc0: 681b ldr r3, [r3, #0] + 8002cc2: 623b str r3, [r7, #32] __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); - 80023e8: 6a3b ldr r3, [r7, #32] - 80023ea: fa93 f3a3 rbit r3, r3 - 80023ee: 61fb str r3, [r7, #28] + 8002cc4: 6a3b ldr r3, [r7, #32] + 8002cc6: fa93 f3a3 rbit r3, r3 + 8002cca: 61fb str r3, [r7, #28] return result; - 80023f0: 69fb ldr r3, [r7, #28] - 80023f2: 627b str r3, [r7, #36] @ 0x24 + 8002ccc: 69fb ldr r3, [r7, #28] + 8002cce: 627b str r3, [r7, #36] @ 0x24 if (value == 0U) - 80023f4: 6a7b ldr r3, [r7, #36] @ 0x24 - 80023f6: 2b00 cmp r3, #0 - 80023f8: d101 bne.n 80023fe + 8002cd0: 6a7b ldr r3, [r7, #36] @ 0x24 + 8002cd2: 2b00 cmp r3, #0 + 8002cd4: d101 bne.n 8002cda return 32U; - 80023fa: 2320 movs r3, #32 - 80023fc: e003 b.n 8002406 + 8002cd6: 2320 movs r3, #32 + 8002cd8: e003 b.n 8002ce2 return __builtin_clz(value); - 80023fe: 6a7b ldr r3, [r7, #36] @ 0x24 - 8002400: fab3 f383 clz r3, r3 - 8002404: b2db uxtb r3, r3 - 8002406: 3301 adds r3, #1 - 8002408: f003 031f and.w r3, r3, #31 - 800240c: 2101 movs r1, #1 - 800240e: fa01 f303 lsl.w r3, r1, r3 - 8002412: ea42 0103 orr.w r1, r2, r3 - 8002416: 683b ldr r3, [r7, #0] - 8002418: 681b ldr r3, [r3, #0] - 800241a: f3c3 0312 ubfx r3, r3, #0, #19 - 800241e: 2b00 cmp r3, #0 - 8002420: d10d bne.n 800243e - 8002422: 683b ldr r3, [r7, #0] - 8002424: 681b ldr r3, [r3, #0] - 8002426: 0e9b lsrs r3, r3, #26 - 8002428: 3301 adds r3, #1 - 800242a: f003 021f and.w r2, r3, #31 - 800242e: 4613 mov r3, r2 - 8002430: 005b lsls r3, r3, #1 - 8002432: 4413 add r3, r2 - 8002434: 3b1e subs r3, #30 - 8002436: 051b lsls r3, r3, #20 - 8002438: f043 7300 orr.w r3, r3, #33554432 @ 0x2000000 - 800243c: e01e b.n 800247c - 800243e: 683b ldr r3, [r7, #0] - 8002440: 681b ldr r3, [r3, #0] - 8002442: 617b str r3, [r7, #20] + 8002cda: 6a7b ldr r3, [r7, #36] @ 0x24 + 8002cdc: fab3 f383 clz r3, r3 + 8002ce0: b2db uxtb r3, r3 + 8002ce2: 3301 adds r3, #1 + 8002ce4: f003 031f and.w r3, r3, #31 + 8002ce8: 2101 movs r1, #1 + 8002cea: fa01 f303 lsl.w r3, r1, r3 + 8002cee: ea42 0103 orr.w r1, r2, r3 + 8002cf2: 683b ldr r3, [r7, #0] + 8002cf4: 681b ldr r3, [r3, #0] + 8002cf6: f3c3 0312 ubfx r3, r3, #0, #19 + 8002cfa: 2b00 cmp r3, #0 + 8002cfc: d10d bne.n 8002d1a + 8002cfe: 683b ldr r3, [r7, #0] + 8002d00: 681b ldr r3, [r3, #0] + 8002d02: 0e9b lsrs r3, r3, #26 + 8002d04: 3301 adds r3, #1 + 8002d06: f003 021f and.w r2, r3, #31 + 8002d0a: 4613 mov r3, r2 + 8002d0c: 005b lsls r3, r3, #1 + 8002d0e: 4413 add r3, r2 + 8002d10: 3b1e subs r3, #30 + 8002d12: 051b lsls r3, r3, #20 + 8002d14: f043 7300 orr.w r3, r3, #33554432 @ 0x2000000 + 8002d18: e01e b.n 8002d58 + 8002d1a: 683b ldr r3, [r7, #0] + 8002d1c: 681b ldr r3, [r3, #0] + 8002d1e: 617b str r3, [r7, #20] __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); - 8002444: 697b ldr r3, [r7, #20] - 8002446: fa93 f3a3 rbit r3, r3 - 800244a: 613b str r3, [r7, #16] + 8002d20: 697b ldr r3, [r7, #20] + 8002d22: fa93 f3a3 rbit r3, r3 + 8002d26: 613b str r3, [r7, #16] return result; - 800244c: 693b ldr r3, [r7, #16] - 800244e: 61bb str r3, [r7, #24] + 8002d28: 693b ldr r3, [r7, #16] + 8002d2a: 61bb str r3, [r7, #24] if (value == 0U) - 8002450: 69bb ldr r3, [r7, #24] - 8002452: 2b00 cmp r3, #0 - 8002454: d104 bne.n 8002460 + 8002d2c: 69bb ldr r3, [r7, #24] + 8002d2e: 2b00 cmp r3, #0 + 8002d30: d104 bne.n 8002d3c return 32U; - 8002456: 2320 movs r3, #32 - 8002458: e006 b.n 8002468 - 800245a: bf00 nop - 800245c: 407f0000 .word 0x407f0000 + 8002d32: 2320 movs r3, #32 + 8002d34: e006 b.n 8002d44 + 8002d36: bf00 nop + 8002d38: 407f0000 .word 0x407f0000 return __builtin_clz(value); - 8002460: 69bb ldr r3, [r7, #24] - 8002462: fab3 f383 clz r3, r3 - 8002466: b2db uxtb r3, r3 - 8002468: 3301 adds r3, #1 - 800246a: f003 021f and.w r2, r3, #31 - 800246e: 4613 mov r3, r2 - 8002470: 005b lsls r3, r3, #1 - 8002472: 4413 add r3, r2 - 8002474: 3b1e subs r3, #30 - 8002476: 051b lsls r3, r3, #20 - 8002478: f043 7300 orr.w r3, r3, #33554432 @ 0x2000000 + 8002d3c: 69bb ldr r3, [r7, #24] + 8002d3e: fab3 f383 clz r3, r3 + 8002d42: b2db uxtb r3, r3 + 8002d44: 3301 adds r3, #1 + 8002d46: f003 021f and.w r2, r3, #31 + 8002d4a: 4613 mov r3, r2 + 8002d4c: 005b lsls r3, r3, #1 + 8002d4e: 4413 add r3, r2 + 8002d50: 3b1e subs r3, #30 + 8002d52: 051b lsls r3, r3, #20 + 8002d54: f043 7300 orr.w r3, r3, #33554432 @ 0x2000000 LL_ADC_SetChannelSamplingTime(hadc->Instance, - 800247c: 430b orrs r3, r1 + 8002d58: 430b orrs r3, r1 (__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)pConfig->Channel) + 1UL) & 0x1FUL)), pConfig->SamplingTime); - 800247e: 683a ldr r2, [r7, #0] - 8002480: 6892 ldr r2, [r2, #8] + 8002d5a: 683a ldr r2, [r7, #0] + 8002d5c: 6892 ldr r2, [r2, #8] LL_ADC_SetChannelSamplingTime(hadc->Instance, - 8002482: 4619 mov r1, r3 - 8002484: f7fe ffe1 bl 800144a + 8002d5e: 4619 mov r1, r3 + 8002d60: f7fe ffe1 bl 8001d26 /* If internal channel selected, enable dedicated internal buffers and */ /* paths. */ /* Note: these internal measurement paths can be disabled using */ /* HAL_ADC_DeInit(). */ if (__LL_ADC_IS_CHANNEL_INTERNAL(pConfig->Channel)) - 8002488: 683b ldr r3, [r7, #0] - 800248a: 681a ldr r2, [r3, #0] - 800248c: 4b3f ldr r3, [pc, #252] @ (800258c ) - 800248e: 4013 ands r3, r2 - 8002490: 2b00 cmp r3, #0 - 8002492: d071 beq.n 8002578 + 8002d64: 683b ldr r3, [r7, #0] + 8002d66: 681a ldr r2, [r3, #0] + 8002d68: 4b3f ldr r3, [pc, #252] @ (8002e68 ) + 8002d6a: 4013 ands r3, r2 + 8002d6c: 2b00 cmp r3, #0 + 8002d6e: d071 beq.n 8002e54 { tmp_config_internal_channel = LL_ADC_GetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(hadc->Instance)); - 8002494: 483e ldr r0, [pc, #248] @ (8002590 ) - 8002496: f7fe feed bl 8001274 - 800249a: f8c7 00c4 str.w r0, [r7, #196] @ 0xc4 + 8002d70: 483e ldr r0, [pc, #248] @ (8002e6c ) + 8002d72: f7fe feed bl 8001b50 + 8002d76: f8c7 00c4 str.w r0, [r7, #196] @ 0xc4 /* If the requested internal measurement path has already been enabled, */ /* bypass the configuration processing. */ if (((pConfig->Channel == ADC_CHANNEL_TEMPSENSOR_ADC1) || (pConfig->Channel == ADC_CHANNEL_TEMPSENSOR_ADC5)) - 800249e: 683b ldr r3, [r7, #0] - 80024a0: 681b ldr r3, [r3, #0] - 80024a2: 4a3c ldr r2, [pc, #240] @ (8002594 ) - 80024a4: 4293 cmp r3, r2 - 80024a6: d004 beq.n 80024b2 - 80024a8: 683b ldr r3, [r7, #0] - 80024aa: 681b ldr r3, [r3, #0] - 80024ac: 4a3a ldr r2, [pc, #232] @ (8002598 ) - 80024ae: 4293 cmp r3, r2 - 80024b0: d127 bne.n 8002502 + 8002d7a: 683b ldr r3, [r7, #0] + 8002d7c: 681b ldr r3, [r3, #0] + 8002d7e: 4a3c ldr r2, [pc, #240] @ (8002e70 ) + 8002d80: 4293 cmp r3, r2 + 8002d82: d004 beq.n 8002d8e + 8002d84: 683b ldr r3, [r7, #0] + 8002d86: 681b ldr r3, [r3, #0] + 8002d88: 4a3a ldr r2, [pc, #232] @ (8002e74 ) + 8002d8a: 4293 cmp r3, r2 + 8002d8c: d127 bne.n 8002dde && ((tmp_config_internal_channel & LL_ADC_PATH_INTERNAL_TEMPSENSOR) == 0UL)) - 80024b2: f8d7 30c4 ldr.w r3, [r7, #196] @ 0xc4 - 80024b6: f403 0300 and.w r3, r3, #8388608 @ 0x800000 - 80024ba: 2b00 cmp r3, #0 - 80024bc: d121 bne.n 8002502 + 8002d8e: f8d7 30c4 ldr.w r3, [r7, #196] @ 0xc4 + 8002d92: f403 0300 and.w r3, r3, #8388608 @ 0x800000 + 8002d96: 2b00 cmp r3, #0 + 8002d98: d121 bne.n 8002dde { if (ADC_TEMPERATURE_SENSOR_INSTANCE(hadc)) - 80024be: 687b ldr r3, [r7, #4] - 80024c0: 681b ldr r3, [r3, #0] - 80024c2: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000 - 80024c6: d157 bne.n 8002578 + 8002d9a: 687b ldr r3, [r7, #4] + 8002d9c: 681b ldr r3, [r3, #0] + 8002d9e: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000 + 8002da2: d157 bne.n 8002e54 { LL_ADC_SetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(hadc->Instance), - 80024c8: f8d7 30c4 ldr.w r3, [r7, #196] @ 0xc4 - 80024cc: f443 0300 orr.w r3, r3, #8388608 @ 0x800000 - 80024d0: 4619 mov r1, r3 - 80024d2: 482f ldr r0, [pc, #188] @ (8002590 ) - 80024d4: f7fe febb bl 800124e + 8002da4: f8d7 30c4 ldr.w r3, [r7, #196] @ 0xc4 + 8002da8: f443 0300 orr.w r3, r3, #8388608 @ 0x800000 + 8002dac: 4619 mov r1, r3 + 8002dae: 482f ldr r0, [pc, #188] @ (8002e6c ) + 8002db0: f7fe febb bl 8001b2a /* Delay for temperature sensor stabilization time */ /* Wait loop initialization and execution */ /* Note: Variable divided by 2 to compensate partially */ /* CPU processing cycles, scaling in us split to not */ /* exceed 32 bits register capacity and handle low frequency. */ wait_loop_index = ((LL_ADC_DELAY_TEMPSENSOR_STAB_US / 10UL) * ((SystemCoreClock / (100000UL * 2UL)) + 1UL)); - 80024d8: 4b30 ldr r3, [pc, #192] @ (800259c ) - 80024da: 681b ldr r3, [r3, #0] - 80024dc: 099b lsrs r3, r3, #6 - 80024de: 4a30 ldr r2, [pc, #192] @ (80025a0 ) - 80024e0: fba2 2303 umull r2, r3, r2, r3 - 80024e4: 099b lsrs r3, r3, #6 - 80024e6: 1c5a adds r2, r3, #1 - 80024e8: 4613 mov r3, r2 - 80024ea: 005b lsls r3, r3, #1 - 80024ec: 4413 add r3, r2 - 80024ee: 009b lsls r3, r3, #2 - 80024f0: 60fb str r3, [r7, #12] + 8002db4: 4b30 ldr r3, [pc, #192] @ (8002e78 ) + 8002db6: 681b ldr r3, [r3, #0] + 8002db8: 099b lsrs r3, r3, #6 + 8002dba: 4a30 ldr r2, [pc, #192] @ (8002e7c ) + 8002dbc: fba2 2303 umull r2, r3, r2, r3 + 8002dc0: 099b lsrs r3, r3, #6 + 8002dc2: 1c5a adds r2, r3, #1 + 8002dc4: 4613 mov r3, r2 + 8002dc6: 005b lsls r3, r3, #1 + 8002dc8: 4413 add r3, r2 + 8002dca: 009b lsls r3, r3, #2 + 8002dcc: 60fb str r3, [r7, #12] while (wait_loop_index != 0UL) - 80024f2: e002 b.n 80024fa + 8002dce: e002 b.n 8002dd6 { wait_loop_index--; - 80024f4: 68fb ldr r3, [r7, #12] - 80024f6: 3b01 subs r3, #1 - 80024f8: 60fb str r3, [r7, #12] + 8002dd0: 68fb ldr r3, [r7, #12] + 8002dd2: 3b01 subs r3, #1 + 8002dd4: 60fb str r3, [r7, #12] while (wait_loop_index != 0UL) - 80024fa: 68fb ldr r3, [r7, #12] - 80024fc: 2b00 cmp r3, #0 - 80024fe: d1f9 bne.n 80024f4 + 8002dd6: 68fb ldr r3, [r7, #12] + 8002dd8: 2b00 cmp r3, #0 + 8002dda: d1f9 bne.n 8002dd0 if (ADC_TEMPERATURE_SENSOR_INSTANCE(hadc)) - 8002500: e03a b.n 8002578 + 8002ddc: e03a b.n 8002e54 } } } else if ((pConfig->Channel == ADC_CHANNEL_VBAT) - 8002502: 683b ldr r3, [r7, #0] - 8002504: 681b ldr r3, [r3, #0] - 8002506: 4a27 ldr r2, [pc, #156] @ (80025a4 ) - 8002508: 4293 cmp r3, r2 - 800250a: d113 bne.n 8002534 + 8002dde: 683b ldr r3, [r7, #0] + 8002de0: 681b ldr r3, [r3, #0] + 8002de2: 4a27 ldr r2, [pc, #156] @ (8002e80 ) + 8002de4: 4293 cmp r3, r2 + 8002de6: d113 bne.n 8002e10 && ((tmp_config_internal_channel & LL_ADC_PATH_INTERNAL_VBAT) == 0UL)) - 800250c: f8d7 30c4 ldr.w r3, [r7, #196] @ 0xc4 - 8002510: f003 7380 and.w r3, r3, #16777216 @ 0x1000000 - 8002514: 2b00 cmp r3, #0 - 8002516: d10d bne.n 8002534 + 8002de8: f8d7 30c4 ldr.w r3, [r7, #196] @ 0xc4 + 8002dec: f003 7380 and.w r3, r3, #16777216 @ 0x1000000 + 8002df0: 2b00 cmp r3, #0 + 8002df2: d10d bne.n 8002e10 { if (ADC_BATTERY_VOLTAGE_INSTANCE(hadc)) - 8002518: 687b ldr r3, [r7, #4] - 800251a: 681b ldr r3, [r3, #0] - 800251c: 4a22 ldr r2, [pc, #136] @ (80025a8 ) - 800251e: 4293 cmp r3, r2 - 8002520: d02a beq.n 8002578 + 8002df4: 687b ldr r3, [r7, #4] + 8002df6: 681b ldr r3, [r3, #0] + 8002df8: 4a22 ldr r2, [pc, #136] @ (8002e84 ) + 8002dfa: 4293 cmp r3, r2 + 8002dfc: d02a beq.n 8002e54 { LL_ADC_SetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(hadc->Instance), - 8002522: f8d7 30c4 ldr.w r3, [r7, #196] @ 0xc4 - 8002526: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000 - 800252a: 4619 mov r1, r3 - 800252c: 4818 ldr r0, [pc, #96] @ (8002590 ) - 800252e: f7fe fe8e bl 800124e + 8002dfe: f8d7 30c4 ldr.w r3, [r7, #196] @ 0xc4 + 8002e02: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000 + 8002e06: 4619 mov r1, r3 + 8002e08: 4818 ldr r0, [pc, #96] @ (8002e6c ) + 8002e0a: f7fe fe8e bl 8001b2a if (ADC_BATTERY_VOLTAGE_INSTANCE(hadc)) - 8002532: e021 b.n 8002578 + 8002e0e: e021 b.n 8002e54 LL_ADC_PATH_INTERNAL_VBAT | tmp_config_internal_channel); } } else if ((pConfig->Channel == ADC_CHANNEL_VREFINT) - 8002534: 683b ldr r3, [r7, #0] - 8002536: 681b ldr r3, [r3, #0] - 8002538: 4a1c ldr r2, [pc, #112] @ (80025ac ) - 800253a: 4293 cmp r3, r2 - 800253c: d11c bne.n 8002578 + 8002e10: 683b ldr r3, [r7, #0] + 8002e12: 681b ldr r3, [r3, #0] + 8002e14: 4a1c ldr r2, [pc, #112] @ (8002e88 ) + 8002e16: 4293 cmp r3, r2 + 8002e18: d11c bne.n 8002e54 && ((tmp_config_internal_channel & LL_ADC_PATH_INTERNAL_VREFINT) == 0UL)) - 800253e: f8d7 30c4 ldr.w r3, [r7, #196] @ 0xc4 - 8002542: f403 0380 and.w r3, r3, #4194304 @ 0x400000 - 8002546: 2b00 cmp r3, #0 - 8002548: d116 bne.n 8002578 + 8002e1a: f8d7 30c4 ldr.w r3, [r7, #196] @ 0xc4 + 8002e1e: f403 0380 and.w r3, r3, #4194304 @ 0x400000 + 8002e22: 2b00 cmp r3, #0 + 8002e24: d116 bne.n 8002e54 { if (ADC_VREFINT_INSTANCE(hadc)) - 800254a: 687b ldr r3, [r7, #4] - 800254c: 681b ldr r3, [r3, #0] - 800254e: 4a16 ldr r2, [pc, #88] @ (80025a8 ) - 8002550: 4293 cmp r3, r2 - 8002552: d011 beq.n 8002578 + 8002e26: 687b ldr r3, [r7, #4] + 8002e28: 681b ldr r3, [r3, #0] + 8002e2a: 4a16 ldr r2, [pc, #88] @ (8002e84 ) + 8002e2c: 4293 cmp r3, r2 + 8002e2e: d011 beq.n 8002e54 { LL_ADC_SetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(hadc->Instance), - 8002554: f8d7 30c4 ldr.w r3, [r7, #196] @ 0xc4 - 8002558: f443 0380 orr.w r3, r3, #4194304 @ 0x400000 - 800255c: 4619 mov r1, r3 - 800255e: 480c ldr r0, [pc, #48] @ (8002590 ) - 8002560: f7fe fe75 bl 800124e - 8002564: e008 b.n 8002578 + 8002e30: f8d7 30c4 ldr.w r3, [r7, #196] @ 0xc4 + 8002e34: f443 0380 orr.w r3, r3, #4194304 @ 0x400000 + 8002e38: 4619 mov r1, r3 + 8002e3a: 480c ldr r0, [pc, #48] @ (8002e6c ) + 8002e3c: f7fe fe75 bl 8001b2a + 8002e40: e008 b.n 8002e54 /* channel could be done on neither of the channel configuration structure */ /* parameters. */ else { /* Update ADC state machine to error */ SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG); - 8002566: 687b ldr r3, [r7, #4] - 8002568: 6ddb ldr r3, [r3, #92] @ 0x5c - 800256a: f043 0220 orr.w r2, r3, #32 - 800256e: 687b ldr r3, [r7, #4] - 8002570: 65da str r2, [r3, #92] @ 0x5c + 8002e42: 687b ldr r3, [r7, #4] + 8002e44: 6ddb ldr r3, [r3, #92] @ 0x5c + 8002e46: f043 0220 orr.w r2, r3, #32 + 8002e4a: 687b ldr r3, [r7, #4] + 8002e4c: 65da str r2, [r3, #92] @ 0x5c tmp_hal_status = HAL_ERROR; - 8002572: 2301 movs r3, #1 - 8002574: f887 30d7 strb.w r3, [r7, #215] @ 0xd7 + 8002e4e: 2301 movs r3, #1 + 8002e50: f887 30d7 strb.w r3, [r7, #215] @ 0xd7 } /* Process unlocked */ __HAL_UNLOCK(hadc); - 8002578: 687b ldr r3, [r7, #4] - 800257a: 2200 movs r2, #0 - 800257c: f883 2058 strb.w r2, [r3, #88] @ 0x58 + 8002e54: 687b ldr r3, [r7, #4] + 8002e56: 2200 movs r2, #0 + 8002e58: f883 2058 strb.w r2, [r3, #88] @ 0x58 /* Return function status */ return tmp_hal_status; - 8002580: f897 30d7 ldrb.w r3, [r7, #215] @ 0xd7 + 8002e5c: f897 30d7 ldrb.w r3, [r7, #215] @ 0xd7 } - 8002584: 4618 mov r0, r3 - 8002586: 37d8 adds r7, #216 @ 0xd8 - 8002588: 46bd mov sp, r7 - 800258a: bd80 pop {r7, pc} - 800258c: 80080000 .word 0x80080000 - 8002590: 50000300 .word 0x50000300 - 8002594: c3210000 .word 0xc3210000 - 8002598: 90c00010 .word 0x90c00010 - 800259c: 20000000 .word 0x20000000 - 80025a0: 053e2d63 .word 0x053e2d63 - 80025a4: c7520000 .word 0xc7520000 - 80025a8: 50000100 .word 0x50000100 - 80025ac: cb840000 .word 0xcb840000 + 8002e60: 4618 mov r0, r3 + 8002e62: 37d8 adds r7, #216 @ 0xd8 + 8002e64: 46bd mov sp, r7 + 8002e66: bd80 pop {r7, pc} + 8002e68: 80080000 .word 0x80080000 + 8002e6c: 50000300 .word 0x50000300 + 8002e70: c3210000 .word 0xc3210000 + 8002e74: 90c00010 .word 0x90c00010 + 8002e78: 20000014 .word 0x20000014 + 8002e7c: 053e2d63 .word 0x053e2d63 + 8002e80: c7520000 .word 0xc7520000 + 8002e84: 50000100 .word 0x50000100 + 8002e88: cb840000 .word 0xcb840000 -080025b0 : +08002e8c : * @arg @ref ADC_INJECTED_GROUP ADC injected conversion type. * @arg @ref ADC_REGULAR_INJECTED_GROUP ADC regular and injected conversion type. * @retval HAL status. */ HAL_StatusTypeDef ADC_ConversionStop(ADC_HandleTypeDef *hadc, uint32_t ConversionGroup) { - 80025b0: b580 push {r7, lr} - 80025b2: b088 sub sp, #32 - 80025b4: af00 add r7, sp, #0 - 80025b6: 6078 str r0, [r7, #4] - 80025b8: 6039 str r1, [r7, #0] + 8002e8c: b580 push {r7, lr} + 8002e8e: b088 sub sp, #32 + 8002e90: af00 add r7, sp, #0 + 8002e92: 6078 str r0, [r7, #4] + 8002e94: 6039 str r1, [r7, #0] uint32_t tickstart; uint32_t Conversion_Timeout_CPU_cycles = 0UL; - 80025ba: 2300 movs r3, #0 - 80025bc: 61fb str r3, [r7, #28] + 8002e96: 2300 movs r3, #0 + 8002e98: 61fb str r3, [r7, #28] uint32_t conversion_group_reassigned = ConversionGroup; - 80025be: 683b ldr r3, [r7, #0] - 80025c0: 61bb str r3, [r7, #24] + 8002e9a: 683b ldr r3, [r7, #0] + 8002e9c: 61bb str r3, [r7, #24] assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); assert_param(IS_ADC_CONVERSION_GROUP(ConversionGroup)); /* Verification if ADC is not already stopped (on regular and injected */ /* groups) to bypass this function if not needed. */ tmp_adc_is_conversion_on_going_regular = LL_ADC_REG_IsConversionOngoing(hadc->Instance); - 80025c2: 687b ldr r3, [r7, #4] - 80025c4: 681b ldr r3, [r3, #0] - 80025c6: 4618 mov r0, r3 - 80025c8: f7ff f86e bl 80016a8 - 80025cc: 6138 str r0, [r7, #16] + 8002e9e: 687b ldr r3, [r7, #4] + 8002ea0: 681b ldr r3, [r3, #0] + 8002ea2: 4618 mov r0, r3 + 8002ea4: f7ff f86e bl 8001f84 + 8002ea8: 6138 str r0, [r7, #16] tmp_adc_is_conversion_on_going_injected = LL_ADC_INJ_IsConversionOngoing(hadc->Instance); - 80025ce: 687b ldr r3, [r7, #4] - 80025d0: 681b ldr r3, [r3, #0] - 80025d2: 4618 mov r0, r3 - 80025d4: f7ff f88f bl 80016f6 - 80025d8: 60f8 str r0, [r7, #12] + 8002eaa: 687b ldr r3, [r7, #4] + 8002eac: 681b ldr r3, [r3, #0] + 8002eae: 4618 mov r0, r3 + 8002eb0: f7ff f88f bl 8001fd2 + 8002eb4: 60f8 str r0, [r7, #12] if ((tmp_adc_is_conversion_on_going_regular != 0UL) - 80025da: 693b ldr r3, [r7, #16] - 80025dc: 2b00 cmp r3, #0 - 80025de: d103 bne.n 80025e8 + 8002eb6: 693b ldr r3, [r7, #16] + 8002eb8: 2b00 cmp r3, #0 + 8002eba: d103 bne.n 8002ec4 || (tmp_adc_is_conversion_on_going_injected != 0UL) - 80025e0: 68fb ldr r3, [r7, #12] - 80025e2: 2b00 cmp r3, #0 - 80025e4: f000 8098 beq.w 8002718 + 8002ebc: 68fb ldr r3, [r7, #12] + 8002ebe: 2b00 cmp r3, #0 + 8002ec0: f000 8098 beq.w 8002ff4 /* auto-delay mode. */ /* In auto-injection mode, regular group stop ADC_CR_ADSTP is used (not */ /* injected group stop ADC_CR_JADSTP). */ /* Procedure to be followed: Wait until JEOS=1, clear JEOS, set ADSTP=1 */ /* (see reference manual). */ if (((hadc->Instance->CFGR & ADC_CFGR_JAUTO) != 0UL) - 80025e8: 687b ldr r3, [r7, #4] - 80025ea: 681b ldr r3, [r3, #0] - 80025ec: 68db ldr r3, [r3, #12] - 80025ee: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 - 80025f2: 2b00 cmp r3, #0 - 80025f4: d02a beq.n 800264c + 8002ec4: 687b ldr r3, [r7, #4] + 8002ec6: 681b ldr r3, [r3, #0] + 8002ec8: 68db ldr r3, [r3, #12] + 8002eca: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 + 8002ece: 2b00 cmp r3, #0 + 8002ed0: d02a beq.n 8002f28 && (hadc->Init.ContinuousConvMode == ENABLE) - 80025f6: 687b ldr r3, [r7, #4] - 80025f8: 7f5b ldrb r3, [r3, #29] - 80025fa: 2b01 cmp r3, #1 - 80025fc: d126 bne.n 800264c + 8002ed2: 687b ldr r3, [r7, #4] + 8002ed4: 7f5b ldrb r3, [r3, #29] + 8002ed6: 2b01 cmp r3, #1 + 8002ed8: d126 bne.n 8002f28 && (hadc->Init.LowPowerAutoWait == ENABLE) - 80025fe: 687b ldr r3, [r7, #4] - 8002600: 7f1b ldrb r3, [r3, #28] - 8002602: 2b01 cmp r3, #1 - 8002604: d122 bne.n 800264c + 8002eda: 687b ldr r3, [r7, #4] + 8002edc: 7f1b ldrb r3, [r3, #28] + 8002ede: 2b01 cmp r3, #1 + 8002ee0: d122 bne.n 8002f28 ) { /* Use stop of regular group */ conversion_group_reassigned = ADC_REGULAR_GROUP; - 8002606: 2301 movs r3, #1 - 8002608: 61bb str r3, [r7, #24] + 8002ee2: 2301 movs r3, #1 + 8002ee4: 61bb str r3, [r7, #24] /* Wait until JEOS=1 (maximum Timeout: 4 injected conversions) */ while (__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_JEOS) == 0UL) - 800260a: e014 b.n 8002636 + 8002ee6: e014 b.n 8002f12 { if (Conversion_Timeout_CPU_cycles >= (ADC_CONVERSION_TIME_MAX_CPU_CYCLES * 4UL)) - 800260c: 69fb ldr r3, [r7, #28] - 800260e: 4a45 ldr r2, [pc, #276] @ (8002724 ) - 8002610: 4293 cmp r3, r2 - 8002612: d90d bls.n 8002630 + 8002ee8: 69fb ldr r3, [r7, #28] + 8002eea: 4a45 ldr r2, [pc, #276] @ (8003000 ) + 8002eec: 4293 cmp r3, r2 + 8002eee: d90d bls.n 8002f0c { /* Update ADC state machine to error */ SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); - 8002614: 687b ldr r3, [r7, #4] - 8002616: 6ddb ldr r3, [r3, #92] @ 0x5c - 8002618: f043 0210 orr.w r2, r3, #16 - 800261c: 687b ldr r3, [r7, #4] - 800261e: 65da str r2, [r3, #92] @ 0x5c + 8002ef0: 687b ldr r3, [r7, #4] + 8002ef2: 6ddb ldr r3, [r3, #92] @ 0x5c + 8002ef4: f043 0210 orr.w r2, r3, #16 + 8002ef8: 687b ldr r3, [r7, #4] + 8002efa: 65da str r2, [r3, #92] @ 0x5c /* Set ADC error code to ADC peripheral internal error */ SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); - 8002620: 687b ldr r3, [r7, #4] - 8002622: 6e1b ldr r3, [r3, #96] @ 0x60 - 8002624: f043 0201 orr.w r2, r3, #1 - 8002628: 687b ldr r3, [r7, #4] - 800262a: 661a str r2, [r3, #96] @ 0x60 + 8002efc: 687b ldr r3, [r7, #4] + 8002efe: 6e1b ldr r3, [r3, #96] @ 0x60 + 8002f00: f043 0201 orr.w r2, r3, #1 + 8002f04: 687b ldr r3, [r7, #4] + 8002f06: 661a str r2, [r3, #96] @ 0x60 return HAL_ERROR; - 800262c: 2301 movs r3, #1 - 800262e: e074 b.n 800271a + 8002f08: 2301 movs r3, #1 + 8002f0a: e074 b.n 8002ff6 } Conversion_Timeout_CPU_cycles ++; - 8002630: 69fb ldr r3, [r7, #28] - 8002632: 3301 adds r3, #1 - 8002634: 61fb str r3, [r7, #28] + 8002f0c: 69fb ldr r3, [r7, #28] + 8002f0e: 3301 adds r3, #1 + 8002f10: 61fb str r3, [r7, #28] while (__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_JEOS) == 0UL) - 8002636: 687b ldr r3, [r7, #4] - 8002638: 681b ldr r3, [r3, #0] - 800263a: 681b ldr r3, [r3, #0] - 800263c: f003 0340 and.w r3, r3, #64 @ 0x40 - 8002640: 2b40 cmp r3, #64 @ 0x40 - 8002642: d1e3 bne.n 800260c + 8002f12: 687b ldr r3, [r7, #4] + 8002f14: 681b ldr r3, [r3, #0] + 8002f16: 681b ldr r3, [r3, #0] + 8002f18: f003 0340 and.w r3, r3, #64 @ 0x40 + 8002f1c: 2b40 cmp r3, #64 @ 0x40 + 8002f1e: d1e3 bne.n 8002ee8 } /* Clear JEOS */ __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_JEOS); - 8002644: 687b ldr r3, [r7, #4] - 8002646: 681b ldr r3, [r3, #0] - 8002648: 2240 movs r2, #64 @ 0x40 - 800264a: 601a str r2, [r3, #0] + 8002f20: 687b ldr r3, [r7, #4] + 8002f22: 681b ldr r3, [r3, #0] + 8002f24: 2240 movs r2, #64 @ 0x40 + 8002f26: 601a str r2, [r3, #0] } /* Stop potential conversion on going on ADC group regular */ if (conversion_group_reassigned != ADC_INJECTED_GROUP) - 800264c: 69bb ldr r3, [r7, #24] - 800264e: 2b02 cmp r3, #2 - 8002650: d014 beq.n 800267c + 8002f28: 69bb ldr r3, [r7, #24] + 8002f2a: 2b02 cmp r3, #2 + 8002f2c: d014 beq.n 8002f58 { /* Software is allowed to set ADSTP only when ADSTART=1 and ADDIS=0 */ if (LL_ADC_REG_IsConversionOngoing(hadc->Instance) != 0UL) - 8002652: 687b ldr r3, [r7, #4] - 8002654: 681b ldr r3, [r3, #0] - 8002656: 4618 mov r0, r3 - 8002658: f7ff f826 bl 80016a8 - 800265c: 4603 mov r3, r0 - 800265e: 2b00 cmp r3, #0 - 8002660: d00c beq.n 800267c + 8002f2e: 687b ldr r3, [r7, #4] + 8002f30: 681b ldr r3, [r3, #0] + 8002f32: 4618 mov r0, r3 + 8002f34: f7ff f826 bl 8001f84 + 8002f38: 4603 mov r3, r0 + 8002f3a: 2b00 cmp r3, #0 + 8002f3c: d00c beq.n 8002f58 { if (LL_ADC_IsDisableOngoing(hadc->Instance) == 0UL) - 8002662: 687b ldr r3, [r7, #4] - 8002664: 681b ldr r3, [r3, #0] - 8002666: 4618 mov r0, r3 - 8002668: f7fe ffe3 bl 8001632 - 800266c: 4603 mov r3, r0 - 800266e: 2b00 cmp r3, #0 - 8002670: d104 bne.n 800267c + 8002f3e: 687b ldr r3, [r7, #4] + 8002f40: 681b ldr r3, [r3, #0] + 8002f42: 4618 mov r0, r3 + 8002f44: f7fe ffe3 bl 8001f0e + 8002f48: 4603 mov r3, r0 + 8002f4a: 2b00 cmp r3, #0 + 8002f4c: d104 bne.n 8002f58 { /* Stop ADC group regular conversion */ LL_ADC_REG_StopConversion(hadc->Instance); - 8002672: 687b ldr r3, [r7, #4] - 8002674: 681b ldr r3, [r3, #0] - 8002676: 4618 mov r0, r3 - 8002678: f7ff f802 bl 8001680 + 8002f4e: 687b ldr r3, [r7, #4] + 8002f50: 681b ldr r3, [r3, #0] + 8002f52: 4618 mov r0, r3 + 8002f54: f7ff f802 bl 8001f5c } } } /* Stop potential conversion on going on ADC group injected */ if (conversion_group_reassigned != ADC_REGULAR_GROUP) - 800267c: 69bb ldr r3, [r7, #24] - 800267e: 2b01 cmp r3, #1 - 8002680: d014 beq.n 80026ac + 8002f58: 69bb ldr r3, [r7, #24] + 8002f5a: 2b01 cmp r3, #1 + 8002f5c: d014 beq.n 8002f88 { /* Software is allowed to set JADSTP only when JADSTART=1 and ADDIS=0 */ if (LL_ADC_INJ_IsConversionOngoing(hadc->Instance) != 0UL) - 8002682: 687b ldr r3, [r7, #4] - 8002684: 681b ldr r3, [r3, #0] - 8002686: 4618 mov r0, r3 - 8002688: f7ff f835 bl 80016f6 - 800268c: 4603 mov r3, r0 - 800268e: 2b00 cmp r3, #0 - 8002690: d00c beq.n 80026ac + 8002f5e: 687b ldr r3, [r7, #4] + 8002f60: 681b ldr r3, [r3, #0] + 8002f62: 4618 mov r0, r3 + 8002f64: f7ff f835 bl 8001fd2 + 8002f68: 4603 mov r3, r0 + 8002f6a: 2b00 cmp r3, #0 + 8002f6c: d00c beq.n 8002f88 { if (LL_ADC_IsDisableOngoing(hadc->Instance) == 0UL) - 8002692: 687b ldr r3, [r7, #4] - 8002694: 681b ldr r3, [r3, #0] - 8002696: 4618 mov r0, r3 - 8002698: f7fe ffcb bl 8001632 - 800269c: 4603 mov r3, r0 - 800269e: 2b00 cmp r3, #0 - 80026a0: d104 bne.n 80026ac + 8002f6e: 687b ldr r3, [r7, #4] + 8002f70: 681b ldr r3, [r3, #0] + 8002f72: 4618 mov r0, r3 + 8002f74: f7fe ffcb bl 8001f0e + 8002f78: 4603 mov r3, r0 + 8002f7a: 2b00 cmp r3, #0 + 8002f7c: d104 bne.n 8002f88 { /* Stop ADC group injected conversion */ LL_ADC_INJ_StopConversion(hadc->Instance); - 80026a2: 687b ldr r3, [r7, #4] - 80026a4: 681b ldr r3, [r3, #0] - 80026a6: 4618 mov r0, r3 - 80026a8: f7ff f811 bl 80016ce + 8002f7e: 687b ldr r3, [r7, #4] + 8002f80: 681b ldr r3, [r3, #0] + 8002f82: 4618 mov r0, r3 + 8002f84: f7ff f811 bl 8001faa } } } /* Selection of start and stop bits with respect to the regular or injected group */ switch (conversion_group_reassigned) - 80026ac: 69bb ldr r3, [r7, #24] - 80026ae: 2b02 cmp r3, #2 - 80026b0: d005 beq.n 80026be - 80026b2: 69bb ldr r3, [r7, #24] - 80026b4: 2b03 cmp r3, #3 - 80026b6: d105 bne.n 80026c4 + 8002f88: 69bb ldr r3, [r7, #24] + 8002f8a: 2b02 cmp r3, #2 + 8002f8c: d005 beq.n 8002f9a + 8002f8e: 69bb ldr r3, [r7, #24] + 8002f90: 2b03 cmp r3, #3 + 8002f92: d105 bne.n 8002fa0 { case ADC_REGULAR_INJECTED_GROUP: tmp_ADC_CR_ADSTART_JADSTART = (ADC_CR_ADSTART | ADC_CR_JADSTART); - 80026b8: 230c movs r3, #12 - 80026ba: 617b str r3, [r7, #20] + 8002f94: 230c movs r3, #12 + 8002f96: 617b str r3, [r7, #20] break; - 80026bc: e005 b.n 80026ca + 8002f98: e005 b.n 8002fa6 case ADC_INJECTED_GROUP: tmp_ADC_CR_ADSTART_JADSTART = ADC_CR_JADSTART; - 80026be: 2308 movs r3, #8 - 80026c0: 617b str r3, [r7, #20] + 8002f9a: 2308 movs r3, #8 + 8002f9c: 617b str r3, [r7, #20] break; - 80026c2: e002 b.n 80026ca + 8002f9e: e002 b.n 8002fa6 /* Case ADC_REGULAR_GROUP only*/ default: tmp_ADC_CR_ADSTART_JADSTART = ADC_CR_ADSTART; - 80026c4: 2304 movs r3, #4 - 80026c6: 617b str r3, [r7, #20] + 8002fa0: 2304 movs r3, #4 + 8002fa2: 617b str r3, [r7, #20] break; - 80026c8: bf00 nop + 8002fa4: bf00 nop } /* Wait for conversion effectively stopped */ tickstart = HAL_GetTick(); - 80026ca: f7fe fda1 bl 8001210 - 80026ce: 60b8 str r0, [r7, #8] + 8002fa6: f7fe fda1 bl 8001aec + 8002faa: 60b8 str r0, [r7, #8] while ((hadc->Instance->CR & tmp_ADC_CR_ADSTART_JADSTART) != 0UL) - 80026d0: e01b b.n 800270a + 8002fac: e01b b.n 8002fe6 { if ((HAL_GetTick() - tickstart) > ADC_STOP_CONVERSION_TIMEOUT) - 80026d2: f7fe fd9d bl 8001210 - 80026d6: 4602 mov r2, r0 - 80026d8: 68bb ldr r3, [r7, #8] - 80026da: 1ad3 subs r3, r2, r3 - 80026dc: 2b05 cmp r3, #5 - 80026de: d914 bls.n 800270a + 8002fae: f7fe fd9d bl 8001aec + 8002fb2: 4602 mov r2, r0 + 8002fb4: 68bb ldr r3, [r7, #8] + 8002fb6: 1ad3 subs r3, r2, r3 + 8002fb8: 2b05 cmp r3, #5 + 8002fba: d914 bls.n 8002fe6 { /* New check to avoid false timeout detection in case of preemption */ if ((hadc->Instance->CR & tmp_ADC_CR_ADSTART_JADSTART) != 0UL) - 80026e0: 687b ldr r3, [r7, #4] - 80026e2: 681b ldr r3, [r3, #0] - 80026e4: 689a ldr r2, [r3, #8] - 80026e6: 697b ldr r3, [r7, #20] - 80026e8: 4013 ands r3, r2 - 80026ea: 2b00 cmp r3, #0 - 80026ec: d00d beq.n 800270a + 8002fbc: 687b ldr r3, [r7, #4] + 8002fbe: 681b ldr r3, [r3, #0] + 8002fc0: 689a ldr r2, [r3, #8] + 8002fc2: 697b ldr r3, [r7, #20] + 8002fc4: 4013 ands r3, r2 + 8002fc6: 2b00 cmp r3, #0 + 8002fc8: d00d beq.n 8002fe6 { /* Update ADC state machine to error */ SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); - 80026ee: 687b ldr r3, [r7, #4] - 80026f0: 6ddb ldr r3, [r3, #92] @ 0x5c - 80026f2: f043 0210 orr.w r2, r3, #16 - 80026f6: 687b ldr r3, [r7, #4] - 80026f8: 65da str r2, [r3, #92] @ 0x5c + 8002fca: 687b ldr r3, [r7, #4] + 8002fcc: 6ddb ldr r3, [r3, #92] @ 0x5c + 8002fce: f043 0210 orr.w r2, r3, #16 + 8002fd2: 687b ldr r3, [r7, #4] + 8002fd4: 65da str r2, [r3, #92] @ 0x5c /* Set ADC error code to ADC peripheral internal error */ SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); - 80026fa: 687b ldr r3, [r7, #4] - 80026fc: 6e1b ldr r3, [r3, #96] @ 0x60 - 80026fe: f043 0201 orr.w r2, r3, #1 - 8002702: 687b ldr r3, [r7, #4] - 8002704: 661a str r2, [r3, #96] @ 0x60 + 8002fd6: 687b ldr r3, [r7, #4] + 8002fd8: 6e1b ldr r3, [r3, #96] @ 0x60 + 8002fda: f043 0201 orr.w r2, r3, #1 + 8002fde: 687b ldr r3, [r7, #4] + 8002fe0: 661a str r2, [r3, #96] @ 0x60 return HAL_ERROR; - 8002706: 2301 movs r3, #1 - 8002708: e007 b.n 800271a + 8002fe2: 2301 movs r3, #1 + 8002fe4: e007 b.n 8002ff6 while ((hadc->Instance->CR & tmp_ADC_CR_ADSTART_JADSTART) != 0UL) - 800270a: 687b ldr r3, [r7, #4] - 800270c: 681b ldr r3, [r3, #0] - 800270e: 689a ldr r2, [r3, #8] - 8002710: 697b ldr r3, [r7, #20] - 8002712: 4013 ands r3, r2 - 8002714: 2b00 cmp r3, #0 - 8002716: d1dc bne.n 80026d2 + 8002fe6: 687b ldr r3, [r7, #4] + 8002fe8: 681b ldr r3, [r3, #0] + 8002fea: 689a ldr r2, [r3, #8] + 8002fec: 697b ldr r3, [r7, #20] + 8002fee: 4013 ands r3, r2 + 8002ff0: 2b00 cmp r3, #0 + 8002ff2: d1dc bne.n 8002fae } } /* Return HAL status */ return HAL_OK; - 8002718: 2300 movs r3, #0 + 8002ff4: 2300 movs r3, #0 } - 800271a: 4618 mov r0, r3 - 800271c: 3720 adds r7, #32 - 800271e: 46bd mov sp, r7 - 8002720: bd80 pop {r7, pc} - 8002722: bf00 nop - 8002724: a33fffff .word 0xa33fffff + 8002ff6: 4618 mov r0, r3 + 8002ff8: 3720 adds r7, #32 + 8002ffa: 46bd mov sp, r7 + 8002ffc: bd80 pop {r7, pc} + 8002ffe: bf00 nop + 8003000: a33fffff .word 0xa33fffff -08002728 : +08003004 : * and voltage regulator must be enabled (done into HAL_ADC_Init()). * @param hadc ADC handle * @retval HAL status. */ HAL_StatusTypeDef ADC_Enable(ADC_HandleTypeDef *hadc) { - 8002728: b580 push {r7, lr} - 800272a: b084 sub sp, #16 - 800272c: af00 add r7, sp, #0 - 800272e: 6078 str r0, [r7, #4] + 8003004: b580 push {r7, lr} + 8003006: b084 sub sp, #16 + 8003008: af00 add r7, sp, #0 + 800300a: 6078 str r0, [r7, #4] uint32_t tickstart; __IO uint32_t wait_loop_index = 0UL; - 8002730: 2300 movs r3, #0 - 8002732: 60bb str r3, [r7, #8] + 800300c: 2300 movs r3, #0 + 800300e: 60bb str r3, [r7, #8] /* ADC enable and wait for ADC ready (in case of ADC is disabled or */ /* enabling phase not yet completed: flag ADC ready not yet set). */ /* Timeout implemented to not be stuck if ADC cannot be enabled (possible */ /* causes: ADC clock not running, ...). */ if (LL_ADC_IsEnabled(hadc->Instance) == 0UL) - 8002734: 687b ldr r3, [r7, #4] - 8002736: 681b ldr r3, [r3, #0] - 8002738: 4618 mov r0, r3 - 800273a: f7fe ff67 bl 800160c - 800273e: 4603 mov r3, r0 - 8002740: 2b00 cmp r3, #0 - 8002742: d169 bne.n 8002818 + 8003010: 687b ldr r3, [r7, #4] + 8003012: 681b ldr r3, [r3, #0] + 8003014: 4618 mov r0, r3 + 8003016: f7fe ff67 bl 8001ee8 + 800301a: 4603 mov r3, r0 + 800301c: 2b00 cmp r3, #0 + 800301e: d169 bne.n 80030f4 { /* Check if conditions to enable the ADC are fulfilled */ if ((hadc->Instance->CR & (ADC_CR_ADCAL | ADC_CR_JADSTP | ADC_CR_ADSTP | ADC_CR_JADSTART | ADC_CR_ADSTART - 8002744: 687b ldr r3, [r7, #4] - 8002746: 681b ldr r3, [r3, #0] - 8002748: 689a ldr r2, [r3, #8] - 800274a: 4b36 ldr r3, [pc, #216] @ (8002824 ) - 800274c: 4013 ands r3, r2 - 800274e: 2b00 cmp r3, #0 - 8002750: d00d beq.n 800276e + 8003020: 687b ldr r3, [r7, #4] + 8003022: 681b ldr r3, [r3, #0] + 8003024: 689a ldr r2, [r3, #8] + 8003026: 4b36 ldr r3, [pc, #216] @ (8003100 ) + 8003028: 4013 ands r3, r2 + 800302a: 2b00 cmp r3, #0 + 800302c: d00d beq.n 800304a | ADC_CR_ADDIS | ADC_CR_ADEN)) != 0UL) { /* Update ADC state machine to error */ SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); - 8002752: 687b ldr r3, [r7, #4] - 8002754: 6ddb ldr r3, [r3, #92] @ 0x5c - 8002756: f043 0210 orr.w r2, r3, #16 - 800275a: 687b ldr r3, [r7, #4] - 800275c: 65da str r2, [r3, #92] @ 0x5c + 800302e: 687b ldr r3, [r7, #4] + 8003030: 6ddb ldr r3, [r3, #92] @ 0x5c + 8003032: f043 0210 orr.w r2, r3, #16 + 8003036: 687b ldr r3, [r7, #4] + 8003038: 65da str r2, [r3, #92] @ 0x5c /* Set ADC error code to ADC peripheral internal error */ SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); - 800275e: 687b ldr r3, [r7, #4] - 8002760: 6e1b ldr r3, [r3, #96] @ 0x60 - 8002762: f043 0201 orr.w r2, r3, #1 - 8002766: 687b ldr r3, [r7, #4] - 8002768: 661a str r2, [r3, #96] @ 0x60 + 800303a: 687b ldr r3, [r7, #4] + 800303c: 6e1b ldr r3, [r3, #96] @ 0x60 + 800303e: f043 0201 orr.w r2, r3, #1 + 8003042: 687b ldr r3, [r7, #4] + 8003044: 661a str r2, [r3, #96] @ 0x60 return HAL_ERROR; - 800276a: 2301 movs r3, #1 - 800276c: e055 b.n 800281a + 8003046: 2301 movs r3, #1 + 8003048: e055 b.n 80030f6 } /* Enable the ADC peripheral */ LL_ADC_Enable(hadc->Instance); - 800276e: 687b ldr r3, [r7, #4] - 8002770: 681b ldr r3, [r3, #0] - 8002772: 4618 mov r0, r3 - 8002774: f7fe ff22 bl 80015bc + 800304a: 687b ldr r3, [r7, #4] + 800304c: 681b ldr r3, [r3, #0] + 800304e: 4618 mov r0, r3 + 8003050: f7fe ff22 bl 8001e98 if ((LL_ADC_GetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(hadc->Instance)) - 8002778: 482b ldr r0, [pc, #172] @ (8002828 ) - 800277a: f7fe fd7b bl 8001274 - 800277e: 4603 mov r3, r0 + 8003054: 482b ldr r0, [pc, #172] @ (8003104 ) + 8003056: f7fe fd7b bl 8001b50 + 800305a: 4603 mov r3, r0 & LL_ADC_PATH_INTERNAL_TEMPSENSOR) != 0UL) - 8002780: f403 0300 and.w r3, r3, #8388608 @ 0x800000 + 800305c: f403 0300 and.w r3, r3, #8388608 @ 0x800000 if ((LL_ADC_GetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(hadc->Instance)) - 8002784: 2b00 cmp r3, #0 - 8002786: d013 beq.n 80027b0 + 8003060: 2b00 cmp r3, #0 + 8003062: d013 beq.n 800308c /* Wait loop initialization and execution */ /* Note: Variable divided by 2 to compensate partially */ /* CPU processing cycles, scaling in us split to not */ /* exceed 32 bits register capacity and handle low frequency. */ wait_loop_index = ((LL_ADC_DELAY_TEMPSENSOR_STAB_US / 10UL) * ((SystemCoreClock / (100000UL * 2UL)) + 1UL)); - 8002788: 4b28 ldr r3, [pc, #160] @ (800282c ) - 800278a: 681b ldr r3, [r3, #0] - 800278c: 099b lsrs r3, r3, #6 - 800278e: 4a28 ldr r2, [pc, #160] @ (8002830 ) - 8002790: fba2 2303 umull r2, r3, r2, r3 - 8002794: 099b lsrs r3, r3, #6 - 8002796: 1c5a adds r2, r3, #1 - 8002798: 4613 mov r3, r2 - 800279a: 005b lsls r3, r3, #1 - 800279c: 4413 add r3, r2 - 800279e: 009b lsls r3, r3, #2 - 80027a0: 60bb str r3, [r7, #8] + 8003064: 4b28 ldr r3, [pc, #160] @ (8003108 ) + 8003066: 681b ldr r3, [r3, #0] + 8003068: 099b lsrs r3, r3, #6 + 800306a: 4a28 ldr r2, [pc, #160] @ (800310c ) + 800306c: fba2 2303 umull r2, r3, r2, r3 + 8003070: 099b lsrs r3, r3, #6 + 8003072: 1c5a adds r2, r3, #1 + 8003074: 4613 mov r3, r2 + 8003076: 005b lsls r3, r3, #1 + 8003078: 4413 add r3, r2 + 800307a: 009b lsls r3, r3, #2 + 800307c: 60bb str r3, [r7, #8] while (wait_loop_index != 0UL) - 80027a2: e002 b.n 80027aa + 800307e: e002 b.n 8003086 { wait_loop_index--; - 80027a4: 68bb ldr r3, [r7, #8] - 80027a6: 3b01 subs r3, #1 - 80027a8: 60bb str r3, [r7, #8] + 8003080: 68bb ldr r3, [r7, #8] + 8003082: 3b01 subs r3, #1 + 8003084: 60bb str r3, [r7, #8] while (wait_loop_index != 0UL) - 80027aa: 68bb ldr r3, [r7, #8] - 80027ac: 2b00 cmp r3, #0 - 80027ae: d1f9 bne.n 80027a4 + 8003086: 68bb ldr r3, [r7, #8] + 8003088: 2b00 cmp r3, #0 + 800308a: d1f9 bne.n 8003080 } } /* Wait for ADC effectively enabled */ tickstart = HAL_GetTick(); - 80027b0: f7fe fd2e bl 8001210 - 80027b4: 60f8 str r0, [r7, #12] + 800308c: f7fe fd2e bl 8001aec + 8003090: 60f8 str r0, [r7, #12] while (__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_RDY) == 0UL) - 80027b6: e028 b.n 800280a + 8003092: e028 b.n 80030e6 The workaround is to continue setting ADEN until ADRDY is becomes 1. Additionally, ADC_ENABLE_TIMEOUT is defined to encompass this 4 ADC clock cycle duration */ /* Note: Test of ADC enabled required due to hardware constraint to */ /* not enable ADC if already enabled. */ if (LL_ADC_IsEnabled(hadc->Instance) == 0UL) - 80027b8: 687b ldr r3, [r7, #4] - 80027ba: 681b ldr r3, [r3, #0] - 80027bc: 4618 mov r0, r3 - 80027be: f7fe ff25 bl 800160c - 80027c2: 4603 mov r3, r0 - 80027c4: 2b00 cmp r3, #0 - 80027c6: d104 bne.n 80027d2 + 8003094: 687b ldr r3, [r7, #4] + 8003096: 681b ldr r3, [r3, #0] + 8003098: 4618 mov r0, r3 + 800309a: f7fe ff25 bl 8001ee8 + 800309e: 4603 mov r3, r0 + 80030a0: 2b00 cmp r3, #0 + 80030a2: d104 bne.n 80030ae { LL_ADC_Enable(hadc->Instance); - 80027c8: 687b ldr r3, [r7, #4] - 80027ca: 681b ldr r3, [r3, #0] - 80027cc: 4618 mov r0, r3 - 80027ce: f7fe fef5 bl 80015bc + 80030a4: 687b ldr r3, [r7, #4] + 80030a6: 681b ldr r3, [r3, #0] + 80030a8: 4618 mov r0, r3 + 80030aa: f7fe fef5 bl 8001e98 } if ((HAL_GetTick() - tickstart) > ADC_ENABLE_TIMEOUT) - 80027d2: f7fe fd1d bl 8001210 - 80027d6: 4602 mov r2, r0 - 80027d8: 68fb ldr r3, [r7, #12] - 80027da: 1ad3 subs r3, r2, r3 - 80027dc: 2b02 cmp r3, #2 - 80027de: d914 bls.n 800280a + 80030ae: f7fe fd1d bl 8001aec + 80030b2: 4602 mov r2, r0 + 80030b4: 68fb ldr r3, [r7, #12] + 80030b6: 1ad3 subs r3, r2, r3 + 80030b8: 2b02 cmp r3, #2 + 80030ba: d914 bls.n 80030e6 { /* New check to avoid false timeout detection in case of preemption */ if (__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_RDY) == 0UL) - 80027e0: 687b ldr r3, [r7, #4] - 80027e2: 681b ldr r3, [r3, #0] - 80027e4: 681b ldr r3, [r3, #0] - 80027e6: f003 0301 and.w r3, r3, #1 - 80027ea: 2b01 cmp r3, #1 - 80027ec: d00d beq.n 800280a + 80030bc: 687b ldr r3, [r7, #4] + 80030be: 681b ldr r3, [r3, #0] + 80030c0: 681b ldr r3, [r3, #0] + 80030c2: f003 0301 and.w r3, r3, #1 + 80030c6: 2b01 cmp r3, #1 + 80030c8: d00d beq.n 80030e6 { /* Update ADC state machine to error */ SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); - 80027ee: 687b ldr r3, [r7, #4] - 80027f0: 6ddb ldr r3, [r3, #92] @ 0x5c - 80027f2: f043 0210 orr.w r2, r3, #16 - 80027f6: 687b ldr r3, [r7, #4] - 80027f8: 65da str r2, [r3, #92] @ 0x5c + 80030ca: 687b ldr r3, [r7, #4] + 80030cc: 6ddb ldr r3, [r3, #92] @ 0x5c + 80030ce: f043 0210 orr.w r2, r3, #16 + 80030d2: 687b ldr r3, [r7, #4] + 80030d4: 65da str r2, [r3, #92] @ 0x5c /* Set ADC error code to ADC peripheral internal error */ SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); - 80027fa: 687b ldr r3, [r7, #4] - 80027fc: 6e1b ldr r3, [r3, #96] @ 0x60 - 80027fe: f043 0201 orr.w r2, r3, #1 - 8002802: 687b ldr r3, [r7, #4] - 8002804: 661a str r2, [r3, #96] @ 0x60 + 80030d6: 687b ldr r3, [r7, #4] + 80030d8: 6e1b ldr r3, [r3, #96] @ 0x60 + 80030da: f043 0201 orr.w r2, r3, #1 + 80030de: 687b ldr r3, [r7, #4] + 80030e0: 661a str r2, [r3, #96] @ 0x60 return HAL_ERROR; - 8002806: 2301 movs r3, #1 - 8002808: e007 b.n 800281a + 80030e2: 2301 movs r3, #1 + 80030e4: e007 b.n 80030f6 while (__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_RDY) == 0UL) - 800280a: 687b ldr r3, [r7, #4] - 800280c: 681b ldr r3, [r3, #0] - 800280e: 681b ldr r3, [r3, #0] - 8002810: f003 0301 and.w r3, r3, #1 - 8002814: 2b01 cmp r3, #1 - 8002816: d1cf bne.n 80027b8 + 80030e6: 687b ldr r3, [r7, #4] + 80030e8: 681b ldr r3, [r3, #0] + 80030ea: 681b ldr r3, [r3, #0] + 80030ec: f003 0301 and.w r3, r3, #1 + 80030f0: 2b01 cmp r3, #1 + 80030f2: d1cf bne.n 8003094 } } } /* Return HAL status */ return HAL_OK; - 8002818: 2300 movs r3, #0 + 80030f4: 2300 movs r3, #0 } - 800281a: 4618 mov r0, r3 - 800281c: 3710 adds r7, #16 - 800281e: 46bd mov sp, r7 - 8002820: bd80 pop {r7, pc} - 8002822: bf00 nop - 8002824: 8000003f .word 0x8000003f - 8002828: 50000300 .word 0x50000300 - 800282c: 20000000 .word 0x20000000 - 8002830: 053e2d63 .word 0x053e2d63 + 80030f6: 4618 mov r0, r3 + 80030f8: 3710 adds r7, #16 + 80030fa: 46bd mov sp, r7 + 80030fc: bd80 pop {r7, pc} + 80030fe: bf00 nop + 8003100: 8000003f .word 0x8000003f + 8003104: 50000300 .word 0x50000300 + 8003108: 20000014 .word 0x20000014 + 800310c: 053e2d63 .word 0x053e2d63 -08002834 : +08003110 : * stopped. * @param hadc ADC handle * @retval HAL status. */ HAL_StatusTypeDef ADC_Disable(ADC_HandleTypeDef *hadc) { - 8002834: b580 push {r7, lr} - 8002836: b084 sub sp, #16 - 8002838: af00 add r7, sp, #0 - 800283a: 6078 str r0, [r7, #4] + 8003110: b580 push {r7, lr} + 8003112: b084 sub sp, #16 + 8003114: af00 add r7, sp, #0 + 8003116: 6078 str r0, [r7, #4] uint32_t tickstart; const uint32_t tmp_adc_is_disable_on_going = LL_ADC_IsDisableOngoing(hadc->Instance); - 800283c: 687b ldr r3, [r7, #4] - 800283e: 681b ldr r3, [r3, #0] - 8002840: 4618 mov r0, r3 - 8002842: f7fe fef6 bl 8001632 - 8002846: 60f8 str r0, [r7, #12] + 8003118: 687b ldr r3, [r7, #4] + 800311a: 681b ldr r3, [r3, #0] + 800311c: 4618 mov r0, r3 + 800311e: f7fe fef6 bl 8001f0e + 8003122: 60f8 str r0, [r7, #12] /* Verification if ADC is not already disabled: */ /* Note: forbidden to disable ADC (set bit ADC_CR_ADDIS) if ADC is already */ /* disabled. */ if ((LL_ADC_IsEnabled(hadc->Instance) != 0UL) - 8002848: 687b ldr r3, [r7, #4] - 800284a: 681b ldr r3, [r3, #0] - 800284c: 4618 mov r0, r3 - 800284e: f7fe fedd bl 800160c - 8002852: 4603 mov r3, r0 - 8002854: 2b00 cmp r3, #0 - 8002856: d047 beq.n 80028e8 + 8003124: 687b ldr r3, [r7, #4] + 8003126: 681b ldr r3, [r3, #0] + 8003128: 4618 mov r0, r3 + 800312a: f7fe fedd bl 8001ee8 + 800312e: 4603 mov r3, r0 + 8003130: 2b00 cmp r3, #0 + 8003132: d047 beq.n 80031c4 && (tmp_adc_is_disable_on_going == 0UL) - 8002858: 68fb ldr r3, [r7, #12] - 800285a: 2b00 cmp r3, #0 - 800285c: d144 bne.n 80028e8 + 8003134: 68fb ldr r3, [r7, #12] + 8003136: 2b00 cmp r3, #0 + 8003138: d144 bne.n 80031c4 ) { /* Check if conditions to disable the ADC are fulfilled */ if ((hadc->Instance->CR & (ADC_CR_JADSTART | ADC_CR_ADSTART | ADC_CR_ADEN)) == ADC_CR_ADEN) - 800285e: 687b ldr r3, [r7, #4] - 8002860: 681b ldr r3, [r3, #0] - 8002862: 689b ldr r3, [r3, #8] - 8002864: f003 030d and.w r3, r3, #13 - 8002868: 2b01 cmp r3, #1 - 800286a: d10c bne.n 8002886 + 800313a: 687b ldr r3, [r7, #4] + 800313c: 681b ldr r3, [r3, #0] + 800313e: 689b ldr r3, [r3, #8] + 8003140: f003 030d and.w r3, r3, #13 + 8003144: 2b01 cmp r3, #1 + 8003146: d10c bne.n 8003162 { /* Disable the ADC peripheral */ LL_ADC_Disable(hadc->Instance); - 800286c: 687b ldr r3, [r7, #4] - 800286e: 681b ldr r3, [r3, #0] - 8002870: 4618 mov r0, r3 - 8002872: f7fe feb7 bl 80015e4 + 8003148: 687b ldr r3, [r7, #4] + 800314a: 681b ldr r3, [r3, #0] + 800314c: 4618 mov r0, r3 + 800314e: f7fe feb7 bl 8001ec0 __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_EOSMP | ADC_FLAG_RDY)); - 8002876: 687b ldr r3, [r7, #4] - 8002878: 681b ldr r3, [r3, #0] - 800287a: 2203 movs r2, #3 - 800287c: 601a str r2, [r3, #0] + 8003152: 687b ldr r3, [r7, #4] + 8003154: 681b ldr r3, [r3, #0] + 8003156: 2203 movs r2, #3 + 8003158: 601a str r2, [r3, #0] return HAL_ERROR; } /* Wait for ADC effectively disabled */ /* Get tick count */ tickstart = HAL_GetTick(); - 800287e: f7fe fcc7 bl 8001210 - 8002882: 60b8 str r0, [r7, #8] + 800315a: f7fe fcc7 bl 8001aec + 800315e: 60b8 str r0, [r7, #8] while ((hadc->Instance->CR & ADC_CR_ADEN) != 0UL) - 8002884: e029 b.n 80028da + 8003160: e029 b.n 80031b6 SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); - 8002886: 687b ldr r3, [r7, #4] - 8002888: 6ddb ldr r3, [r3, #92] @ 0x5c - 800288a: f043 0210 orr.w r2, r3, #16 - 800288e: 687b ldr r3, [r7, #4] - 8002890: 65da str r2, [r3, #92] @ 0x5c + 8003162: 687b ldr r3, [r7, #4] + 8003164: 6ddb ldr r3, [r3, #92] @ 0x5c + 8003166: f043 0210 orr.w r2, r3, #16 + 800316a: 687b ldr r3, [r7, #4] + 800316c: 65da str r2, [r3, #92] @ 0x5c SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); - 8002892: 687b ldr r3, [r7, #4] - 8002894: 6e1b ldr r3, [r3, #96] @ 0x60 - 8002896: f043 0201 orr.w r2, r3, #1 - 800289a: 687b ldr r3, [r7, #4] - 800289c: 661a str r2, [r3, #96] @ 0x60 + 800316e: 687b ldr r3, [r7, #4] + 8003170: 6e1b ldr r3, [r3, #96] @ 0x60 + 8003172: f043 0201 orr.w r2, r3, #1 + 8003176: 687b ldr r3, [r7, #4] + 8003178: 661a str r2, [r3, #96] @ 0x60 return HAL_ERROR; - 800289e: 2301 movs r3, #1 - 80028a0: e023 b.n 80028ea + 800317a: 2301 movs r3, #1 + 800317c: e023 b.n 80031c6 { if ((HAL_GetTick() - tickstart) > ADC_DISABLE_TIMEOUT) - 80028a2: f7fe fcb5 bl 8001210 - 80028a6: 4602 mov r2, r0 - 80028a8: 68bb ldr r3, [r7, #8] - 80028aa: 1ad3 subs r3, r2, r3 - 80028ac: 2b02 cmp r3, #2 - 80028ae: d914 bls.n 80028da + 800317e: f7fe fcb5 bl 8001aec + 8003182: 4602 mov r2, r0 + 8003184: 68bb ldr r3, [r7, #8] + 8003186: 1ad3 subs r3, r2, r3 + 8003188: 2b02 cmp r3, #2 + 800318a: d914 bls.n 80031b6 { /* New check to avoid false timeout detection in case of preemption */ if ((hadc->Instance->CR & ADC_CR_ADEN) != 0UL) - 80028b0: 687b ldr r3, [r7, #4] - 80028b2: 681b ldr r3, [r3, #0] - 80028b4: 689b ldr r3, [r3, #8] - 80028b6: f003 0301 and.w r3, r3, #1 - 80028ba: 2b00 cmp r3, #0 - 80028bc: d00d beq.n 80028da + 800318c: 687b ldr r3, [r7, #4] + 800318e: 681b ldr r3, [r3, #0] + 8003190: 689b ldr r3, [r3, #8] + 8003192: f003 0301 and.w r3, r3, #1 + 8003196: 2b00 cmp r3, #0 + 8003198: d00d beq.n 80031b6 { /* Update ADC state machine to error */ SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); - 80028be: 687b ldr r3, [r7, #4] - 80028c0: 6ddb ldr r3, [r3, #92] @ 0x5c - 80028c2: f043 0210 orr.w r2, r3, #16 - 80028c6: 687b ldr r3, [r7, #4] - 80028c8: 65da str r2, [r3, #92] @ 0x5c + 800319a: 687b ldr r3, [r7, #4] + 800319c: 6ddb ldr r3, [r3, #92] @ 0x5c + 800319e: f043 0210 orr.w r2, r3, #16 + 80031a2: 687b ldr r3, [r7, #4] + 80031a4: 65da str r2, [r3, #92] @ 0x5c /* Set ADC error code to ADC peripheral internal error */ SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); - 80028ca: 687b ldr r3, [r7, #4] - 80028cc: 6e1b ldr r3, [r3, #96] @ 0x60 - 80028ce: f043 0201 orr.w r2, r3, #1 - 80028d2: 687b ldr r3, [r7, #4] - 80028d4: 661a str r2, [r3, #96] @ 0x60 + 80031a6: 687b ldr r3, [r7, #4] + 80031a8: 6e1b ldr r3, [r3, #96] @ 0x60 + 80031aa: f043 0201 orr.w r2, r3, #1 + 80031ae: 687b ldr r3, [r7, #4] + 80031b0: 661a str r2, [r3, #96] @ 0x60 return HAL_ERROR; - 80028d6: 2301 movs r3, #1 - 80028d8: e007 b.n 80028ea + 80031b2: 2301 movs r3, #1 + 80031b4: e007 b.n 80031c6 while ((hadc->Instance->CR & ADC_CR_ADEN) != 0UL) - 80028da: 687b ldr r3, [r7, #4] - 80028dc: 681b ldr r3, [r3, #0] - 80028de: 689b ldr r3, [r3, #8] - 80028e0: f003 0301 and.w r3, r3, #1 - 80028e4: 2b00 cmp r3, #0 - 80028e6: d1dc bne.n 80028a2 + 80031b6: 687b ldr r3, [r7, #4] + 80031b8: 681b ldr r3, [r3, #0] + 80031ba: 689b ldr r3, [r3, #8] + 80031bc: f003 0301 and.w r3, r3, #1 + 80031c0: 2b00 cmp r3, #0 + 80031c2: d1dc bne.n 800317e } } } /* Return HAL status */ return HAL_OK; - 80028e8: 2300 movs r3, #0 + 80031c4: 2300 movs r3, #0 } - 80028ea: 4618 mov r0, r3 - 80028ec: 3710 adds r7, #16 - 80028ee: 46bd mov sp, r7 - 80028f0: bd80 pop {r7, pc} + 80031c6: 4618 mov r0, r3 + 80031c8: 3710 adds r7, #16 + 80031ca: 46bd mov sp, r7 + 80031cc: bd80 pop {r7, pc} -080028f2 : +080031ce : { - 80028f2: b480 push {r7} - 80028f4: b083 sub sp, #12 - 80028f6: af00 add r7, sp, #0 - 80028f8: 6078 str r0, [r7, #4] + 80031ce: b480 push {r7} + 80031d0: b083 sub sp, #12 + 80031d2: af00 add r7, sp, #0 + 80031d4: 6078 str r0, [r7, #4] return ((READ_BIT(ADCx->CR, ADC_CR_ADEN) == (ADC_CR_ADEN)) ? 1UL : 0UL); - 80028fa: 687b ldr r3, [r7, #4] - 80028fc: 689b ldr r3, [r3, #8] - 80028fe: f003 0301 and.w r3, r3, #1 - 8002902: 2b01 cmp r3, #1 - 8002904: d101 bne.n 800290a - 8002906: 2301 movs r3, #1 - 8002908: e000 b.n 800290c - 800290a: 2300 movs r3, #0 + 80031d6: 687b ldr r3, [r7, #4] + 80031d8: 689b ldr r3, [r3, #8] + 80031da: f003 0301 and.w r3, r3, #1 + 80031de: 2b01 cmp r3, #1 + 80031e0: d101 bne.n 80031e6 + 80031e2: 2301 movs r3, #1 + 80031e4: e000 b.n 80031e8 + 80031e6: 2300 movs r3, #0 } - 800290c: 4618 mov r0, r3 - 800290e: 370c adds r7, #12 - 8002910: 46bd mov sp, r7 - 8002912: f85d 7b04 ldr.w r7, [sp], #4 - 8002916: 4770 bx lr + 80031e8: 4618 mov r0, r3 + 80031ea: 370c adds r7, #12 + 80031ec: 46bd mov sp, r7 + 80031ee: f85d 7b04 ldr.w r7, [sp], #4 + 80031f2: 4770 bx lr -08002918 : +080031f4 : { - 8002918: b480 push {r7} - 800291a: b083 sub sp, #12 - 800291c: af00 add r7, sp, #0 - 800291e: 6078 str r0, [r7, #4] - return ((READ_BIT(ADCx->CR, ADC_CR_ADSTART) == (ADC_CR_ADSTART)) ? 1UL : 0UL); - 8002920: 687b ldr r3, [r7, #4] - 8002922: 689b ldr r3, [r3, #8] - 8002924: f003 0304 and.w r3, r3, #4 - 8002928: 2b04 cmp r3, #4 - 800292a: d101 bne.n 8002930 - 800292c: 2301 movs r3, #1 - 800292e: e000 b.n 8002932 - 8002930: 2300 movs r3, #0 + 80031f4: b480 push {r7} + 80031f6: b083 sub sp, #12 + 80031f8: af00 add r7, sp, #0 + 80031fa: 6078 str r0, [r7, #4] + 80031fc: 6039 str r1, [r7, #0] + MODIFY_REG(ADCx->CR, + 80031fe: 687b ldr r3, [r7, #4] + 8003200: 689b ldr r3, [r3, #8] + 8003202: f023 4340 bic.w r3, r3, #3221225472 @ 0xc0000000 + 8003206: f023 033f bic.w r3, r3, #63 @ 0x3f + 800320a: 683a ldr r2, [r7, #0] + 800320c: f002 4280 and.w r2, r2, #1073741824 @ 0x40000000 + 8003210: 4313 orrs r3, r2 + 8003212: f043 4200 orr.w r2, r3, #2147483648 @ 0x80000000 + 8003216: 687b ldr r3, [r7, #4] + 8003218: 609a str r2, [r3, #8] } - 8002932: 4618 mov r0, r3 - 8002934: 370c adds r7, #12 - 8002936: 46bd mov sp, r7 - 8002938: f85d 7b04 ldr.w r7, [sp], #4 - 800293c: 4770 bx lr - ... + 800321a: bf00 nop + 800321c: 370c adds r7, #12 + 800321e: 46bd mov sp, r7 + 8003220: f85d 7b04 ldr.w r7, [sp], #4 + 8003224: 4770 bx lr -08002940 : +08003226 : +{ + 8003226: b480 push {r7} + 8003228: b083 sub sp, #12 + 800322a: af00 add r7, sp, #0 + 800322c: 6078 str r0, [r7, #4] + return ((READ_BIT(ADCx->CR, ADC_CR_ADCAL) == (ADC_CR_ADCAL)) ? 1UL : 0UL); + 800322e: 687b ldr r3, [r7, #4] + 8003230: 689b ldr r3, [r3, #8] + 8003232: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 + 8003236: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 + 800323a: d101 bne.n 8003240 + 800323c: 2301 movs r3, #1 + 800323e: e000 b.n 8003242 + 8003240: 2300 movs r3, #0 +} + 8003242: 4618 mov r0, r3 + 8003244: 370c adds r7, #12 + 8003246: 46bd mov sp, r7 + 8003248: f85d 7b04 ldr.w r7, [sp], #4 + 800324c: 4770 bx lr + +0800324e : +{ + 800324e: b480 push {r7} + 8003250: b083 sub sp, #12 + 8003252: af00 add r7, sp, #0 + 8003254: 6078 str r0, [r7, #4] + return ((READ_BIT(ADCx->CR, ADC_CR_ADSTART) == (ADC_CR_ADSTART)) ? 1UL : 0UL); + 8003256: 687b ldr r3, [r7, #4] + 8003258: 689b ldr r3, [r3, #8] + 800325a: f003 0304 and.w r3, r3, #4 + 800325e: 2b04 cmp r3, #4 + 8003260: d101 bne.n 8003266 + 8003262: 2301 movs r3, #1 + 8003264: e000 b.n 8003268 + 8003266: 2300 movs r3, #0 +} + 8003268: 4618 mov r0, r3 + 800326a: 370c adds r7, #12 + 800326c: 46bd mov sp, r7 + 800326e: f85d 7b04 ldr.w r7, [sp], #4 + 8003272: 4770 bx lr + +08003274 : + * @arg @ref ADC_SINGLE_ENDED Channel in mode input single ended + * @arg @ref ADC_DIFFERENTIAL_ENDED Channel in mode input differential ended + * @retval HAL status + */ +HAL_StatusTypeDef HAL_ADCEx_Calibration_Start(ADC_HandleTypeDef *hadc, uint32_t SingleDiff) +{ + 8003274: b580 push {r7, lr} + 8003276: b084 sub sp, #16 + 8003278: af00 add r7, sp, #0 + 800327a: 6078 str r0, [r7, #4] + 800327c: 6039 str r1, [r7, #0] + HAL_StatusTypeDef tmp_hal_status; + __IO uint32_t wait_loop_index = 0UL; + 800327e: 2300 movs r3, #0 + 8003280: 60bb str r3, [r7, #8] + /* Check the parameters */ + assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); + assert_param(IS_ADC_SINGLE_DIFFERENTIAL(SingleDiff)); + + /* Process locked */ + __HAL_LOCK(hadc); + 8003282: 687b ldr r3, [r7, #4] + 8003284: f893 3058 ldrb.w r3, [r3, #88] @ 0x58 + 8003288: 2b01 cmp r3, #1 + 800328a: d101 bne.n 8003290 + 800328c: 2302 movs r3, #2 + 800328e: e04d b.n 800332c + 8003290: 687b ldr r3, [r7, #4] + 8003292: 2201 movs r2, #1 + 8003294: f883 2058 strb.w r2, [r3, #88] @ 0x58 + + /* Calibration prerequisite: ADC must be disabled. */ + + /* Disable the ADC (if not already disabled) */ + tmp_hal_status = ADC_Disable(hadc); + 8003298: 6878 ldr r0, [r7, #4] + 800329a: f7ff ff39 bl 8003110 + 800329e: 4603 mov r3, r0 + 80032a0: 73fb strb r3, [r7, #15] + + /* Check if ADC is effectively disabled */ + if (tmp_hal_status == HAL_OK) + 80032a2: 7bfb ldrb r3, [r7, #15] + 80032a4: 2b00 cmp r3, #0 + 80032a6: d136 bne.n 8003316 + { + /* Set ADC state */ + ADC_STATE_CLR_SET(hadc->State, + 80032a8: 687b ldr r3, [r7, #4] + 80032aa: 6ddb ldr r3, [r3, #92] @ 0x5c + 80032ac: f423 5388 bic.w r3, r3, #4352 @ 0x1100 + 80032b0: f023 0302 bic.w r3, r3, #2 + 80032b4: f043 0202 orr.w r2, r3, #2 + 80032b8: 687b ldr r3, [r7, #4] + 80032ba: 65da str r2, [r3, #92] @ 0x5c + HAL_ADC_STATE_REG_BUSY | HAL_ADC_STATE_INJ_BUSY, + HAL_ADC_STATE_BUSY_INTERNAL); + + /* Start ADC calibration in mode single-ended or differential */ + LL_ADC_StartCalibration(hadc->Instance, SingleDiff); + 80032bc: 687b ldr r3, [r7, #4] + 80032be: 681b ldr r3, [r3, #0] + 80032c0: 6839 ldr r1, [r7, #0] + 80032c2: 4618 mov r0, r3 + 80032c4: f7ff ff96 bl 80031f4 + + /* Wait for calibration completion */ + while (LL_ADC_IsCalibrationOnGoing(hadc->Instance) != 0UL) + 80032c8: e014 b.n 80032f4 + { + wait_loop_index++; + 80032ca: 68bb ldr r3, [r7, #8] + 80032cc: 3301 adds r3, #1 + 80032ce: 60bb str r3, [r7, #8] + if (wait_loop_index >= ADC_CALIBRATION_TIMEOUT) + 80032d0: 68bb ldr r3, [r7, #8] + 80032d2: 4a18 ldr r2, [pc, #96] @ (8003334 ) + 80032d4: 4293 cmp r3, r2 + 80032d6: d90d bls.n 80032f4 + { + /* Update ADC state machine to error */ + ADC_STATE_CLR_SET(hadc->State, + 80032d8: 687b ldr r3, [r7, #4] + 80032da: 6ddb ldr r3, [r3, #92] @ 0x5c + 80032dc: f023 0312 bic.w r3, r3, #18 + 80032e0: f043 0210 orr.w r2, r3, #16 + 80032e4: 687b ldr r3, [r7, #4] + 80032e6: 65da str r2, [r3, #92] @ 0x5c + HAL_ADC_STATE_BUSY_INTERNAL, + HAL_ADC_STATE_ERROR_INTERNAL); + + /* Process unlocked */ + __HAL_UNLOCK(hadc); + 80032e8: 687b ldr r3, [r7, #4] + 80032ea: 2200 movs r2, #0 + 80032ec: f883 2058 strb.w r2, [r3, #88] @ 0x58 + + return HAL_ERROR; + 80032f0: 2301 movs r3, #1 + 80032f2: e01b b.n 800332c + while (LL_ADC_IsCalibrationOnGoing(hadc->Instance) != 0UL) + 80032f4: 687b ldr r3, [r7, #4] + 80032f6: 681b ldr r3, [r3, #0] + 80032f8: 4618 mov r0, r3 + 80032fa: f7ff ff94 bl 8003226 + 80032fe: 4603 mov r3, r0 + 8003300: 2b00 cmp r3, #0 + 8003302: d1e2 bne.n 80032ca + } + } + + /* Set ADC state */ + ADC_STATE_CLR_SET(hadc->State, + 8003304: 687b ldr r3, [r7, #4] + 8003306: 6ddb ldr r3, [r3, #92] @ 0x5c + 8003308: f023 0303 bic.w r3, r3, #3 + 800330c: f043 0201 orr.w r2, r3, #1 + 8003310: 687b ldr r3, [r7, #4] + 8003312: 65da str r2, [r3, #92] @ 0x5c + 8003314: e005 b.n 8003322 + HAL_ADC_STATE_BUSY_INTERNAL, + HAL_ADC_STATE_READY); + } + else + { + SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); + 8003316: 687b ldr r3, [r7, #4] + 8003318: 6ddb ldr r3, [r3, #92] @ 0x5c + 800331a: f043 0210 orr.w r2, r3, #16 + 800331e: 687b ldr r3, [r7, #4] + 8003320: 65da str r2, [r3, #92] @ 0x5c + /* Note: No need to update variable "tmp_hal_status" here: already set */ + /* to state "HAL_ERROR" by function disabling the ADC. */ + } + + /* Process unlocked */ + __HAL_UNLOCK(hadc); + 8003322: 687b ldr r3, [r7, #4] + 8003324: 2200 movs r2, #0 + 8003326: f883 2058 strb.w r2, [r3, #88] @ 0x58 + + /* Return function status */ + return tmp_hal_status; + 800332a: 7bfb ldrb r3, [r7, #15] +} + 800332c: 4618 mov r0, r3 + 800332e: 3710 adds r7, #16 + 8003330: 46bd mov sp, r7 + 8003332: bd80 pop {r7, pc} + 8003334: 0004de01 .word 0x0004de01 + +08003338 : * @param hadc Master ADC handle * @param pMultimode Structure of ADC multimode configuration * @retval HAL status */ HAL_StatusTypeDef HAL_ADCEx_MultiModeConfigChannel(ADC_HandleTypeDef *hadc, const ADC_MultiModeTypeDef *pMultimode) { - 8002940: b590 push {r4, r7, lr} - 8002942: b0a1 sub sp, #132 @ 0x84 - 8002944: af00 add r7, sp, #0 - 8002946: 6078 str r0, [r7, #4] - 8002948: 6039 str r1, [r7, #0] + 8003338: b590 push {r4, r7, lr} + 800333a: b0a1 sub sp, #132 @ 0x84 + 800333c: af00 add r7, sp, #0 + 800333e: 6078 str r0, [r7, #4] + 8003340: 6039 str r1, [r7, #0] HAL_StatusTypeDef tmp_hal_status = HAL_OK; - 800294a: 2300 movs r3, #0 - 800294c: f887 307f strb.w r3, [r7, #127] @ 0x7f + 8003342: 2300 movs r3, #0 + 8003344: f887 307f strb.w r3, [r7, #127] @ 0x7f assert_param(IS_ADC_DMA_ACCESS_MULTIMODE(pMultimode->DMAAccessMode)); assert_param(IS_ADC_SAMPLING_DELAY(pMultimode->TwoSamplingDelay)); } /* Process locked */ __HAL_LOCK(hadc); - 8002950: 687b ldr r3, [r7, #4] - 8002952: f893 3058 ldrb.w r3, [r3, #88] @ 0x58 - 8002956: 2b01 cmp r3, #1 - 8002958: d101 bne.n 800295e - 800295a: 2302 movs r3, #2 - 800295c: e08b b.n 8002a76 - 800295e: 687b ldr r3, [r7, #4] - 8002960: 2201 movs r2, #1 - 8002962: f883 2058 strb.w r2, [r3, #88] @ 0x58 + 8003348: 687b ldr r3, [r7, #4] + 800334a: f893 3058 ldrb.w r3, [r3, #88] @ 0x58 + 800334e: 2b01 cmp r3, #1 + 8003350: d101 bne.n 8003356 + 8003352: 2302 movs r3, #2 + 8003354: e08b b.n 800346e + 8003356: 687b ldr r3, [r7, #4] + 8003358: 2201 movs r2, #1 + 800335a: f883 2058 strb.w r2, [r3, #88] @ 0x58 /* Temporary handle minimum initialization */ __HAL_ADC_RESET_HANDLE_STATE(&tmp_hadc_slave); - 8002966: 2300 movs r3, #0 - 8002968: 667b str r3, [r7, #100] @ 0x64 + 800335e: 2300 movs r3, #0 + 8003360: 667b str r3, [r7, #100] @ 0x64 ADC_CLEAR_ERRORCODE(&tmp_hadc_slave); - 800296a: 2300 movs r3, #0 - 800296c: 66bb str r3, [r7, #104] @ 0x68 + 8003362: 2300 movs r3, #0 + 8003364: 66bb str r3, [r7, #104] @ 0x68 ADC_MULTI_SLAVE(hadc, &tmp_hadc_slave); - 800296e: 687b ldr r3, [r7, #4] - 8002970: 681b ldr r3, [r3, #0] - 8002972: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000 - 8002976: d102 bne.n 800297e - 8002978: 4b41 ldr r3, [pc, #260] @ (8002a80 ) - 800297a: 60bb str r3, [r7, #8] - 800297c: e001 b.n 8002982 - 800297e: 2300 movs r3, #0 - 8002980: 60bb str r3, [r7, #8] + 8003366: 687b ldr r3, [r7, #4] + 8003368: 681b ldr r3, [r3, #0] + 800336a: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000 + 800336e: d102 bne.n 8003376 + 8003370: 4b41 ldr r3, [pc, #260] @ (8003478 ) + 8003372: 60bb str r3, [r7, #8] + 8003374: e001 b.n 800337a + 8003376: 2300 movs r3, #0 + 8003378: 60bb str r3, [r7, #8] if (tmp_hadc_slave.Instance == NULL) - 8002982: 68bb ldr r3, [r7, #8] - 8002984: 2b00 cmp r3, #0 - 8002986: d10b bne.n 80029a0 + 800337a: 68bb ldr r3, [r7, #8] + 800337c: 2b00 cmp r3, #0 + 800337e: d10b bne.n 8003398 { /* Update ADC state machine to error */ SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG); - 8002988: 687b ldr r3, [r7, #4] - 800298a: 6ddb ldr r3, [r3, #92] @ 0x5c - 800298c: f043 0220 orr.w r2, r3, #32 - 8002990: 687b ldr r3, [r7, #4] - 8002992: 65da str r2, [r3, #92] @ 0x5c + 8003380: 687b ldr r3, [r7, #4] + 8003382: 6ddb ldr r3, [r3, #92] @ 0x5c + 8003384: f043 0220 orr.w r2, r3, #32 + 8003388: 687b ldr r3, [r7, #4] + 800338a: 65da str r2, [r3, #92] @ 0x5c /* Process unlocked */ __HAL_UNLOCK(hadc); - 8002994: 687b ldr r3, [r7, #4] - 8002996: 2200 movs r2, #0 - 8002998: f883 2058 strb.w r2, [r3, #88] @ 0x58 + 800338c: 687b ldr r3, [r7, #4] + 800338e: 2200 movs r2, #0 + 8003390: f883 2058 strb.w r2, [r3, #88] @ 0x58 return HAL_ERROR; - 800299c: 2301 movs r3, #1 - 800299e: e06a b.n 8002a76 + 8003394: 2301 movs r3, #1 + 8003396: e06a b.n 800346e /* Parameters update conditioned to ADC state: */ /* Parameters that can be updated when ADC is disabled or enabled without */ /* conversion on going on regular group: */ /* - Multimode DMA configuration */ /* - Multimode DMA mode */ tmp_hadc_slave_conversion_on_going = LL_ADC_REG_IsConversionOngoing((&tmp_hadc_slave)->Instance); - 80029a0: 68bb ldr r3, [r7, #8] - 80029a2: 4618 mov r0, r3 - 80029a4: f7ff ffb8 bl 8002918 - 80029a8: 67b8 str r0, [r7, #120] @ 0x78 + 8003398: 68bb ldr r3, [r7, #8] + 800339a: 4618 mov r0, r3 + 800339c: f7ff ff57 bl 800324e + 80033a0: 67b8 str r0, [r7, #120] @ 0x78 if ((LL_ADC_REG_IsConversionOngoing(hadc->Instance) == 0UL) - 80029aa: 687b ldr r3, [r7, #4] - 80029ac: 681b ldr r3, [r3, #0] - 80029ae: 4618 mov r0, r3 - 80029b0: f7ff ffb2 bl 8002918 - 80029b4: 4603 mov r3, r0 - 80029b6: 2b00 cmp r3, #0 - 80029b8: d14c bne.n 8002a54 + 80033a2: 687b ldr r3, [r7, #4] + 80033a4: 681b ldr r3, [r3, #0] + 80033a6: 4618 mov r0, r3 + 80033a8: f7ff ff51 bl 800324e + 80033ac: 4603 mov r3, r0 + 80033ae: 2b00 cmp r3, #0 + 80033b0: d14c bne.n 800344c && (tmp_hadc_slave_conversion_on_going == 0UL)) - 80029ba: 6fbb ldr r3, [r7, #120] @ 0x78 - 80029bc: 2b00 cmp r3, #0 - 80029be: d149 bne.n 8002a54 + 80033b2: 6fbb ldr r3, [r7, #120] @ 0x78 + 80033b4: 2b00 cmp r3, #0 + 80033b6: d149 bne.n 800344c { /* Pointer to the common control register */ tmpADC_Common = __LL_ADC_COMMON_INSTANCE(hadc->Instance); - 80029c0: 4b30 ldr r3, [pc, #192] @ (8002a84 ) - 80029c2: 677b str r3, [r7, #116] @ 0x74 + 80033b8: 4b30 ldr r3, [pc, #192] @ (800347c ) + 80033ba: 677b str r3, [r7, #116] @ 0x74 /* If multimode is selected, configure all multimode parameters. */ /* Otherwise, reset multimode parameters (can be used in case of */ /* transition from multimode to independent mode). */ if (pMultimode->Mode != ADC_MODE_INDEPENDENT) - 80029c4: 683b ldr r3, [r7, #0] - 80029c6: 681b ldr r3, [r3, #0] - 80029c8: 2b00 cmp r3, #0 - 80029ca: d028 beq.n 8002a1e + 80033bc: 683b ldr r3, [r7, #0] + 80033be: 681b ldr r3, [r3, #0] + 80033c0: 2b00 cmp r3, #0 + 80033c2: d028 beq.n 8003416 { MODIFY_REG(tmpADC_Common->CCR, ADC_CCR_MDMA | ADC_CCR_DMACFG, - 80029cc: 6f7b ldr r3, [r7, #116] @ 0x74 - 80029ce: 689b ldr r3, [r3, #8] - 80029d0: f423 4260 bic.w r2, r3, #57344 @ 0xe000 - 80029d4: 683b ldr r3, [r7, #0] - 80029d6: 6859 ldr r1, [r3, #4] - 80029d8: 687b ldr r3, [r7, #4] - 80029da: f893 3038 ldrb.w r3, [r3, #56] @ 0x38 - 80029de: 035b lsls r3, r3, #13 - 80029e0: 430b orrs r3, r1 - 80029e2: 431a orrs r2, r3 - 80029e4: 6f7b ldr r3, [r7, #116] @ 0x74 - 80029e6: 609a str r2, [r3, #8] + 80033c4: 6f7b ldr r3, [r7, #116] @ 0x74 + 80033c6: 689b ldr r3, [r3, #8] + 80033c8: f423 4260 bic.w r2, r3, #57344 @ 0xe000 + 80033cc: 683b ldr r3, [r7, #0] + 80033ce: 6859 ldr r1, [r3, #4] + 80033d0: 687b ldr r3, [r7, #4] + 80033d2: f893 3038 ldrb.w r3, [r3, #56] @ 0x38 + 80033d6: 035b lsls r3, r3, #13 + 80033d8: 430b orrs r3, r1 + 80033da: 431a orrs r2, r3 + 80033dc: 6f7b ldr r3, [r7, #116] @ 0x74 + 80033de: 609a str r2, [r3, #8] /* from 1 to 10 clock cycles for 10 bits, */ /* from 1 to 8 clock cycles for 8 bits */ /* from 1 to 6 clock cycles for 6 bits */ /* If a higher delay is selected, it will be clipped to maximum delay */ /* range */ if (__LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__LL_ADC_COMMON_INSTANCE(hadc->Instance)) == 0UL) - 80029e8: f04f 40a0 mov.w r0, #1342177280 @ 0x50000000 - 80029ec: f7ff ff81 bl 80028f2 - 80029f0: 4604 mov r4, r0 - 80029f2: 4823 ldr r0, [pc, #140] @ (8002a80 ) - 80029f4: f7ff ff7d bl 80028f2 - 80029f8: 4603 mov r3, r0 - 80029fa: 4323 orrs r3, r4 - 80029fc: 2b00 cmp r3, #0 - 80029fe: d133 bne.n 8002a68 + 80033e0: f04f 40a0 mov.w r0, #1342177280 @ 0x50000000 + 80033e4: f7ff fef3 bl 80031ce + 80033e8: 4604 mov r4, r0 + 80033ea: 4823 ldr r0, [pc, #140] @ (8003478 ) + 80033ec: f7ff feef bl 80031ce + 80033f0: 4603 mov r3, r0 + 80033f2: 4323 orrs r3, r4 + 80033f4: 2b00 cmp r3, #0 + 80033f6: d133 bne.n 8003460 { MODIFY_REG(tmpADC_Common->CCR, - 8002a00: 6f7b ldr r3, [r7, #116] @ 0x74 - 8002a02: 689b ldr r3, [r3, #8] - 8002a04: f423 6371 bic.w r3, r3, #3856 @ 0xf10 - 8002a08: f023 030f bic.w r3, r3, #15 - 8002a0c: 683a ldr r2, [r7, #0] - 8002a0e: 6811 ldr r1, [r2, #0] - 8002a10: 683a ldr r2, [r7, #0] - 8002a12: 6892 ldr r2, [r2, #8] - 8002a14: 430a orrs r2, r1 - 8002a16: 431a orrs r2, r3 - 8002a18: 6f7b ldr r3, [r7, #116] @ 0x74 - 8002a1a: 609a str r2, [r3, #8] + 80033f8: 6f7b ldr r3, [r7, #116] @ 0x74 + 80033fa: 689b ldr r3, [r3, #8] + 80033fc: f423 6371 bic.w r3, r3, #3856 @ 0xf10 + 8003400: f023 030f bic.w r3, r3, #15 + 8003404: 683a ldr r2, [r7, #0] + 8003406: 6811 ldr r1, [r2, #0] + 8003408: 683a ldr r2, [r7, #0] + 800340a: 6892 ldr r2, [r2, #8] + 800340c: 430a orrs r2, r1 + 800340e: 431a orrs r2, r3 + 8003410: 6f7b ldr r3, [r7, #116] @ 0x74 + 8003412: 609a str r2, [r3, #8] if (pMultimode->Mode != ADC_MODE_INDEPENDENT) - 8002a1c: e024 b.n 8002a68 + 8003414: e024 b.n 8003460 ); } } else /* ADC_MODE_INDEPENDENT */ { CLEAR_BIT(tmpADC_Common->CCR, ADC_CCR_MDMA | ADC_CCR_DMACFG); - 8002a1e: 6f7b ldr r3, [r7, #116] @ 0x74 - 8002a20: 689b ldr r3, [r3, #8] - 8002a22: f423 4260 bic.w r2, r3, #57344 @ 0xe000 - 8002a26: 6f7b ldr r3, [r7, #116] @ 0x74 - 8002a28: 609a str r2, [r3, #8] + 8003416: 6f7b ldr r3, [r7, #116] @ 0x74 + 8003418: 689b ldr r3, [r3, #8] + 800341a: f423 4260 bic.w r2, r3, #57344 @ 0xe000 + 800341e: 6f7b ldr r3, [r7, #116] @ 0x74 + 8003420: 609a str r2, [r3, #8] /* Parameters that can be updated only when ADC is disabled: */ /* - Multimode mode selection */ /* - Multimode delay */ if (__LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__LL_ADC_COMMON_INSTANCE(hadc->Instance)) == 0UL) - 8002a2a: f04f 40a0 mov.w r0, #1342177280 @ 0x50000000 - 8002a2e: f7ff ff60 bl 80028f2 - 8002a32: 4604 mov r4, r0 - 8002a34: 4812 ldr r0, [pc, #72] @ (8002a80 ) - 8002a36: f7ff ff5c bl 80028f2 - 8002a3a: 4603 mov r3, r0 - 8002a3c: 4323 orrs r3, r4 - 8002a3e: 2b00 cmp r3, #0 - 8002a40: d112 bne.n 8002a68 + 8003422: f04f 40a0 mov.w r0, #1342177280 @ 0x50000000 + 8003426: f7ff fed2 bl 80031ce + 800342a: 4604 mov r4, r0 + 800342c: 4812 ldr r0, [pc, #72] @ (8003478 ) + 800342e: f7ff fece bl 80031ce + 8003432: 4603 mov r3, r0 + 8003434: 4323 orrs r3, r4 + 8003436: 2b00 cmp r3, #0 + 8003438: d112 bne.n 8003460 { CLEAR_BIT(tmpADC_Common->CCR, ADC_CCR_DUAL | ADC_CCR_DELAY); - 8002a42: 6f7b ldr r3, [r7, #116] @ 0x74 - 8002a44: 689b ldr r3, [r3, #8] - 8002a46: f423 6371 bic.w r3, r3, #3856 @ 0xf10 - 8002a4a: f023 030f bic.w r3, r3, #15 - 8002a4e: 6f7a ldr r2, [r7, #116] @ 0x74 - 8002a50: 6093 str r3, [r2, #8] + 800343a: 6f7b ldr r3, [r7, #116] @ 0x74 + 800343c: 689b ldr r3, [r3, #8] + 800343e: f423 6371 bic.w r3, r3, #3856 @ 0xf10 + 8003442: f023 030f bic.w r3, r3, #15 + 8003446: 6f7a ldr r2, [r7, #116] @ 0x74 + 8003448: 6093 str r3, [r2, #8] if (pMultimode->Mode != ADC_MODE_INDEPENDENT) - 8002a52: e009 b.n 8002a68 + 800344a: e009 b.n 8003460 /* If one of the ADC sharing the same common group is enabled, no update */ /* could be done on neither of the multimode structure parameters. */ else { /* Update ADC state machine to error */ SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG); - 8002a54: 687b ldr r3, [r7, #4] - 8002a56: 6ddb ldr r3, [r3, #92] @ 0x5c - 8002a58: f043 0220 orr.w r2, r3, #32 - 8002a5c: 687b ldr r3, [r7, #4] - 8002a5e: 65da str r2, [r3, #92] @ 0x5c + 800344c: 687b ldr r3, [r7, #4] + 800344e: 6ddb ldr r3, [r3, #92] @ 0x5c + 8003450: f043 0220 orr.w r2, r3, #32 + 8003454: 687b ldr r3, [r7, #4] + 8003456: 65da str r2, [r3, #92] @ 0x5c tmp_hal_status = HAL_ERROR; - 8002a60: 2301 movs r3, #1 - 8002a62: f887 307f strb.w r3, [r7, #127] @ 0x7f - 8002a66: e000 b.n 8002a6a + 8003458: 2301 movs r3, #1 + 800345a: f887 307f strb.w r3, [r7, #127] @ 0x7f + 800345e: e000 b.n 8003462 if (pMultimode->Mode != ADC_MODE_INDEPENDENT) - 8002a68: bf00 nop + 8003460: bf00 nop } /* Process unlocked */ __HAL_UNLOCK(hadc); - 8002a6a: 687b ldr r3, [r7, #4] - 8002a6c: 2200 movs r2, #0 - 8002a6e: f883 2058 strb.w r2, [r3, #88] @ 0x58 + 8003462: 687b ldr r3, [r7, #4] + 8003464: 2200 movs r2, #0 + 8003466: f883 2058 strb.w r2, [r3, #88] @ 0x58 /* Return function status */ return tmp_hal_status; - 8002a72: f897 307f ldrb.w r3, [r7, #127] @ 0x7f + 800346a: f897 307f ldrb.w r3, [r7, #127] @ 0x7f } - 8002a76: 4618 mov r0, r3 - 8002a78: 3784 adds r7, #132 @ 0x84 - 8002a7a: 46bd mov sp, r7 - 8002a7c: bd90 pop {r4, r7, pc} - 8002a7e: bf00 nop - 8002a80: 50000100 .word 0x50000100 - 8002a84: 50000300 .word 0x50000300 + 800346e: 4618 mov r0, r3 + 8003470: 3784 adds r7, #132 @ 0x84 + 8003472: 46bd mov sp, r7 + 8003474: bd90 pop {r4, r7, pc} + 8003476: bf00 nop + 8003478: 50000100 .word 0x50000100 + 800347c: 50000300 .word 0x50000300 -08002a88 <__NVIC_SetPriorityGrouping>: +08003480 <__NVIC_SetPriorityGrouping>: In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set. \param [in] PriorityGroup Priority grouping field. */ __STATIC_INLINE void __NVIC_SetPriorityGrouping(uint32_t PriorityGroup) { - 8002a88: b480 push {r7} - 8002a8a: b085 sub sp, #20 - 8002a8c: af00 add r7, sp, #0 - 8002a8e: 6078 str r0, [r7, #4] + 8003480: b480 push {r7} + 8003482: b085 sub sp, #20 + 8003484: af00 add r7, sp, #0 + 8003486: 6078 str r0, [r7, #4] uint32_t reg_value; uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - 8002a90: 687b ldr r3, [r7, #4] - 8002a92: f003 0307 and.w r3, r3, #7 - 8002a96: 60fb str r3, [r7, #12] + 8003488: 687b ldr r3, [r7, #4] + 800348a: f003 0307 and.w r3, r3, #7 + 800348e: 60fb str r3, [r7, #12] reg_value = SCB->AIRCR; /* read old register configuration */ - 8002a98: 4b0c ldr r3, [pc, #48] @ (8002acc <__NVIC_SetPriorityGrouping+0x44>) - 8002a9a: 68db ldr r3, [r3, #12] - 8002a9c: 60bb str r3, [r7, #8] + 8003490: 4b0c ldr r3, [pc, #48] @ (80034c4 <__NVIC_SetPriorityGrouping+0x44>) + 8003492: 68db ldr r3, [r3, #12] + 8003494: 60bb str r3, [r7, #8] reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */ - 8002a9e: 68ba ldr r2, [r7, #8] - 8002aa0: f64f 03ff movw r3, #63743 @ 0xf8ff - 8002aa4: 4013 ands r3, r2 - 8002aa6: 60bb str r3, [r7, #8] + 8003496: 68ba ldr r2, [r7, #8] + 8003498: f64f 03ff movw r3, #63743 @ 0xf8ff + 800349c: 4013 ands r3, r2 + 800349e: 60bb str r3, [r7, #8] reg_value = (reg_value | ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | (PriorityGroupTmp << SCB_AIRCR_PRIGROUP_Pos) ); /* Insert write key and priority group */ - 8002aa8: 68fb ldr r3, [r7, #12] - 8002aaa: 021a lsls r2, r3, #8 + 80034a0: 68fb ldr r3, [r7, #12] + 80034a2: 021a lsls r2, r3, #8 ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | - 8002aac: 68bb ldr r3, [r7, #8] - 8002aae: 4313 orrs r3, r2 + 80034a4: 68bb ldr r3, [r7, #8] + 80034a6: 4313 orrs r3, r2 reg_value = (reg_value | - 8002ab0: f043 63bf orr.w r3, r3, #100139008 @ 0x5f80000 - 8002ab4: f443 3300 orr.w r3, r3, #131072 @ 0x20000 - 8002ab8: 60bb str r3, [r7, #8] + 80034a8: f043 63bf orr.w r3, r3, #100139008 @ 0x5f80000 + 80034ac: f443 3300 orr.w r3, r3, #131072 @ 0x20000 + 80034b0: 60bb str r3, [r7, #8] SCB->AIRCR = reg_value; - 8002aba: 4a04 ldr r2, [pc, #16] @ (8002acc <__NVIC_SetPriorityGrouping+0x44>) - 8002abc: 68bb ldr r3, [r7, #8] - 8002abe: 60d3 str r3, [r2, #12] + 80034b2: 4a04 ldr r2, [pc, #16] @ (80034c4 <__NVIC_SetPriorityGrouping+0x44>) + 80034b4: 68bb ldr r3, [r7, #8] + 80034b6: 60d3 str r3, [r2, #12] } - 8002ac0: bf00 nop - 8002ac2: 3714 adds r7, #20 - 8002ac4: 46bd mov sp, r7 - 8002ac6: f85d 7b04 ldr.w r7, [sp], #4 - 8002aca: 4770 bx lr - 8002acc: e000ed00 .word 0xe000ed00 + 80034b8: bf00 nop + 80034ba: 3714 adds r7, #20 + 80034bc: 46bd mov sp, r7 + 80034be: f85d 7b04 ldr.w r7, [sp], #4 + 80034c2: 4770 bx lr + 80034c4: e000ed00 .word 0xe000ed00 -08002ad0 <__NVIC_GetPriorityGrouping>: +080034c8 <__NVIC_GetPriorityGrouping>: \brief Get Priority Grouping \details Reads the priority grouping field from the NVIC Interrupt Controller. \return Priority grouping field (SCB->AIRCR [10:8] PRIGROUP field). */ __STATIC_INLINE uint32_t __NVIC_GetPriorityGrouping(void) { - 8002ad0: b480 push {r7} - 8002ad2: af00 add r7, sp, #0 + 80034c8: b480 push {r7} + 80034ca: af00 add r7, sp, #0 return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos)); - 8002ad4: 4b04 ldr r3, [pc, #16] @ (8002ae8 <__NVIC_GetPriorityGrouping+0x18>) - 8002ad6: 68db ldr r3, [r3, #12] - 8002ad8: 0a1b lsrs r3, r3, #8 - 8002ada: f003 0307 and.w r3, r3, #7 + 80034cc: 4b04 ldr r3, [pc, #16] @ (80034e0 <__NVIC_GetPriorityGrouping+0x18>) + 80034ce: 68db ldr r3, [r3, #12] + 80034d0: 0a1b lsrs r3, r3, #8 + 80034d2: f003 0307 and.w r3, r3, #7 } - 8002ade: 4618 mov r0, r3 - 8002ae0: 46bd mov sp, r7 - 8002ae2: f85d 7b04 ldr.w r7, [sp], #4 - 8002ae6: 4770 bx lr - 8002ae8: e000ed00 .word 0xe000ed00 + 80034d6: 4618 mov r0, r3 + 80034d8: 46bd mov sp, r7 + 80034da: f85d 7b04 ldr.w r7, [sp], #4 + 80034de: 4770 bx lr + 80034e0: e000ed00 .word 0xe000ed00 -08002aec <__NVIC_EnableIRQ>: +080034e4 <__NVIC_EnableIRQ>: \details Enables a device specific interrupt in the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_EnableIRQ(IRQn_Type IRQn) { - 8002aec: b480 push {r7} - 8002aee: b083 sub sp, #12 - 8002af0: af00 add r7, sp, #0 - 8002af2: 4603 mov r3, r0 - 8002af4: 71fb strb r3, [r7, #7] + 80034e4: b480 push {r7} + 80034e6: b083 sub sp, #12 + 80034e8: af00 add r7, sp, #0 + 80034ea: 4603 mov r3, r0 + 80034ec: 71fb strb r3, [r7, #7] if ((int32_t)(IRQn) >= 0) - 8002af6: f997 3007 ldrsb.w r3, [r7, #7] - 8002afa: 2b00 cmp r3, #0 - 8002afc: db0b blt.n 8002b16 <__NVIC_EnableIRQ+0x2a> + 80034ee: f997 3007 ldrsb.w r3, [r7, #7] + 80034f2: 2b00 cmp r3, #0 + 80034f4: db0b blt.n 800350e <__NVIC_EnableIRQ+0x2a> { __COMPILER_BARRIER(); NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - 8002afe: 79fb ldrb r3, [r7, #7] - 8002b00: f003 021f and.w r2, r3, #31 - 8002b04: 4907 ldr r1, [pc, #28] @ (8002b24 <__NVIC_EnableIRQ+0x38>) - 8002b06: f997 3007 ldrsb.w r3, [r7, #7] - 8002b0a: 095b lsrs r3, r3, #5 - 8002b0c: 2001 movs r0, #1 - 8002b0e: fa00 f202 lsl.w r2, r0, r2 - 8002b12: f841 2023 str.w r2, [r1, r3, lsl #2] + 80034f6: 79fb ldrb r3, [r7, #7] + 80034f8: f003 021f and.w r2, r3, #31 + 80034fc: 4907 ldr r1, [pc, #28] @ (800351c <__NVIC_EnableIRQ+0x38>) + 80034fe: f997 3007 ldrsb.w r3, [r7, #7] + 8003502: 095b lsrs r3, r3, #5 + 8003504: 2001 movs r0, #1 + 8003506: fa00 f202 lsl.w r2, r0, r2 + 800350a: f841 2023 str.w r2, [r1, r3, lsl #2] __COMPILER_BARRIER(); } } - 8002b16: bf00 nop - 8002b18: 370c adds r7, #12 - 8002b1a: 46bd mov sp, r7 - 8002b1c: f85d 7b04 ldr.w r7, [sp], #4 - 8002b20: 4770 bx lr - 8002b22: bf00 nop - 8002b24: e000e100 .word 0xe000e100 + 800350e: bf00 nop + 8003510: 370c adds r7, #12 + 8003512: 46bd mov sp, r7 + 8003514: f85d 7b04 ldr.w r7, [sp], #4 + 8003518: 4770 bx lr + 800351a: bf00 nop + 800351c: e000e100 .word 0xe000e100 -08002b28 <__NVIC_SetPriority>: +08003520 <__NVIC_SetPriority>: \param [in] IRQn Interrupt number. \param [in] priority Priority to set. \note The priority cannot be set for every processor exception. */ __STATIC_INLINE void __NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) { - 8002b28: b480 push {r7} - 8002b2a: b083 sub sp, #12 - 8002b2c: af00 add r7, sp, #0 - 8002b2e: 4603 mov r3, r0 - 8002b30: 6039 str r1, [r7, #0] - 8002b32: 71fb strb r3, [r7, #7] + 8003520: b480 push {r7} + 8003522: b083 sub sp, #12 + 8003524: af00 add r7, sp, #0 + 8003526: 4603 mov r3, r0 + 8003528: 6039 str r1, [r7, #0] + 800352a: 71fb strb r3, [r7, #7] if ((int32_t)(IRQn) >= 0) - 8002b34: f997 3007 ldrsb.w r3, [r7, #7] - 8002b38: 2b00 cmp r3, #0 - 8002b3a: db0a blt.n 8002b52 <__NVIC_SetPriority+0x2a> + 800352c: f997 3007 ldrsb.w r3, [r7, #7] + 8003530: 2b00 cmp r3, #0 + 8003532: db0a blt.n 800354a <__NVIC_SetPriority+0x2a> { NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); - 8002b3c: 683b ldr r3, [r7, #0] - 8002b3e: b2da uxtb r2, r3 - 8002b40: 490c ldr r1, [pc, #48] @ (8002b74 <__NVIC_SetPriority+0x4c>) - 8002b42: f997 3007 ldrsb.w r3, [r7, #7] - 8002b46: 0112 lsls r2, r2, #4 - 8002b48: b2d2 uxtb r2, r2 - 8002b4a: 440b add r3, r1 - 8002b4c: f883 2300 strb.w r2, [r3, #768] @ 0x300 + 8003534: 683b ldr r3, [r7, #0] + 8003536: b2da uxtb r2, r3 + 8003538: 490c ldr r1, [pc, #48] @ (800356c <__NVIC_SetPriority+0x4c>) + 800353a: f997 3007 ldrsb.w r3, [r7, #7] + 800353e: 0112 lsls r2, r2, #4 + 8003540: b2d2 uxtb r2, r2 + 8003542: 440b add r3, r1 + 8003544: f883 2300 strb.w r2, [r3, #768] @ 0x300 } else { SCB->SHP[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); } } - 8002b50: e00a b.n 8002b68 <__NVIC_SetPriority+0x40> + 8003548: e00a b.n 8003560 <__NVIC_SetPriority+0x40> SCB->SHP[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); - 8002b52: 683b ldr r3, [r7, #0] - 8002b54: b2da uxtb r2, r3 - 8002b56: 4908 ldr r1, [pc, #32] @ (8002b78 <__NVIC_SetPriority+0x50>) - 8002b58: 79fb ldrb r3, [r7, #7] - 8002b5a: f003 030f and.w r3, r3, #15 - 8002b5e: 3b04 subs r3, #4 - 8002b60: 0112 lsls r2, r2, #4 - 8002b62: b2d2 uxtb r2, r2 - 8002b64: 440b add r3, r1 - 8002b66: 761a strb r2, [r3, #24] + 800354a: 683b ldr r3, [r7, #0] + 800354c: b2da uxtb r2, r3 + 800354e: 4908 ldr r1, [pc, #32] @ (8003570 <__NVIC_SetPriority+0x50>) + 8003550: 79fb ldrb r3, [r7, #7] + 8003552: f003 030f and.w r3, r3, #15 + 8003556: 3b04 subs r3, #4 + 8003558: 0112 lsls r2, r2, #4 + 800355a: b2d2 uxtb r2, r2 + 800355c: 440b add r3, r1 + 800355e: 761a strb r2, [r3, #24] } - 8002b68: bf00 nop - 8002b6a: 370c adds r7, #12 - 8002b6c: 46bd mov sp, r7 - 8002b6e: f85d 7b04 ldr.w r7, [sp], #4 - 8002b72: 4770 bx lr - 8002b74: e000e100 .word 0xe000e100 - 8002b78: e000ed00 .word 0xe000ed00 + 8003560: bf00 nop + 8003562: 370c adds r7, #12 + 8003564: 46bd mov sp, r7 + 8003566: f85d 7b04 ldr.w r7, [sp], #4 + 800356a: 4770 bx lr + 800356c: e000e100 .word 0xe000e100 + 8003570: e000ed00 .word 0xe000ed00 -08002b7c : +08003574 : \param [in] PreemptPriority Preemptive priority value (starting from 0). \param [in] SubPriority Subpriority value (starting from 0). \return Encoded priority. Value can be used in the function \ref NVIC_SetPriority(). */ __STATIC_INLINE uint32_t NVIC_EncodePriority (uint32_t PriorityGroup, uint32_t PreemptPriority, uint32_t SubPriority) { - 8002b7c: b480 push {r7} - 8002b7e: b089 sub sp, #36 @ 0x24 - 8002b80: af00 add r7, sp, #0 - 8002b82: 60f8 str r0, [r7, #12] - 8002b84: 60b9 str r1, [r7, #8] - 8002b86: 607a str r2, [r7, #4] + 8003574: b480 push {r7} + 8003576: b089 sub sp, #36 @ 0x24 + 8003578: af00 add r7, sp, #0 + 800357a: 60f8 str r0, [r7, #12] + 800357c: 60b9 str r1, [r7, #8] + 800357e: 607a str r2, [r7, #4] uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - 8002b88: 68fb ldr r3, [r7, #12] - 8002b8a: f003 0307 and.w r3, r3, #7 - 8002b8e: 61fb str r3, [r7, #28] + 8003580: 68fb ldr r3, [r7, #12] + 8003582: f003 0307 and.w r3, r3, #7 + 8003586: 61fb str r3, [r7, #28] uint32_t PreemptPriorityBits; uint32_t SubPriorityBits; PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); - 8002b90: 69fb ldr r3, [r7, #28] - 8002b92: f1c3 0307 rsb r3, r3, #7 - 8002b96: 2b04 cmp r3, #4 - 8002b98: bf28 it cs - 8002b9a: 2304 movcs r3, #4 - 8002b9c: 61bb str r3, [r7, #24] + 8003588: 69fb ldr r3, [r7, #28] + 800358a: f1c3 0307 rsb r3, r3, #7 + 800358e: 2b04 cmp r3, #4 + 8003590: bf28 it cs + 8003592: 2304 movcs r3, #4 + 8003594: 61bb str r3, [r7, #24] SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); - 8002b9e: 69fb ldr r3, [r7, #28] - 8002ba0: 3304 adds r3, #4 - 8002ba2: 2b06 cmp r3, #6 - 8002ba4: d902 bls.n 8002bac - 8002ba6: 69fb ldr r3, [r7, #28] - 8002ba8: 3b03 subs r3, #3 - 8002baa: e000 b.n 8002bae - 8002bac: 2300 movs r3, #0 - 8002bae: 617b str r3, [r7, #20] + 8003596: 69fb ldr r3, [r7, #28] + 8003598: 3304 adds r3, #4 + 800359a: 2b06 cmp r3, #6 + 800359c: d902 bls.n 80035a4 + 800359e: 69fb ldr r3, [r7, #28] + 80035a0: 3b03 subs r3, #3 + 80035a2: e000 b.n 80035a6 + 80035a4: 2300 movs r3, #0 + 80035a6: 617b str r3, [r7, #20] return ( ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | - 8002bb0: f04f 32ff mov.w r2, #4294967295 - 8002bb4: 69bb ldr r3, [r7, #24] - 8002bb6: fa02 f303 lsl.w r3, r2, r3 - 8002bba: 43da mvns r2, r3 - 8002bbc: 68bb ldr r3, [r7, #8] - 8002bbe: 401a ands r2, r3 - 8002bc0: 697b ldr r3, [r7, #20] - 8002bc2: 409a lsls r2, r3 + 80035a8: f04f 32ff mov.w r2, #4294967295 + 80035ac: 69bb ldr r3, [r7, #24] + 80035ae: fa02 f303 lsl.w r3, r2, r3 + 80035b2: 43da mvns r2, r3 + 80035b4: 68bb ldr r3, [r7, #8] + 80035b6: 401a ands r2, r3 + 80035b8: 697b ldr r3, [r7, #20] + 80035ba: 409a lsls r2, r3 ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL))) - 8002bc4: f04f 31ff mov.w r1, #4294967295 - 8002bc8: 697b ldr r3, [r7, #20] - 8002bca: fa01 f303 lsl.w r3, r1, r3 - 8002bce: 43d9 mvns r1, r3 - 8002bd0: 687b ldr r3, [r7, #4] - 8002bd2: 400b ands r3, r1 + 80035bc: f04f 31ff mov.w r1, #4294967295 + 80035c0: 697b ldr r3, [r7, #20] + 80035c2: fa01 f303 lsl.w r3, r1, r3 + 80035c6: 43d9 mvns r1, r3 + 80035c8: 687b ldr r3, [r7, #4] + 80035ca: 400b ands r3, r1 ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | - 8002bd4: 4313 orrs r3, r2 + 80035cc: 4313 orrs r3, r2 ); } - 8002bd6: 4618 mov r0, r3 - 8002bd8: 3724 adds r7, #36 @ 0x24 - 8002bda: 46bd mov sp, r7 - 8002bdc: f85d 7b04 ldr.w r7, [sp], #4 - 8002be0: 4770 bx lr + 80035ce: 4618 mov r0, r3 + 80035d0: 3724 adds r7, #36 @ 0x24 + 80035d2: 46bd mov sp, r7 + 80035d4: f85d 7b04 ldr.w r7, [sp], #4 + 80035d8: 4770 bx lr ... -08002be4 : +080035dc : \note When the variable __Vendor_SysTickConfig is set to 1, then the function SysTick_Config is not included. In this case, the file device.h must contain a vendor-specific implementation of this function. */ __STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) { - 8002be4: b580 push {r7, lr} - 8002be6: b082 sub sp, #8 - 8002be8: af00 add r7, sp, #0 - 8002bea: 6078 str r0, [r7, #4] + 80035dc: b580 push {r7, lr} + 80035de: b082 sub sp, #8 + 80035e0: af00 add r7, sp, #0 + 80035e2: 6078 str r0, [r7, #4] if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) - 8002bec: 687b ldr r3, [r7, #4] - 8002bee: 3b01 subs r3, #1 - 8002bf0: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000 - 8002bf4: d301 bcc.n 8002bfa + 80035e4: 687b ldr r3, [r7, #4] + 80035e6: 3b01 subs r3, #1 + 80035e8: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000 + 80035ec: d301 bcc.n 80035f2 { return (1UL); /* Reload value impossible */ - 8002bf6: 2301 movs r3, #1 - 8002bf8: e00f b.n 8002c1a + 80035ee: 2301 movs r3, #1 + 80035f0: e00f b.n 8003612 } SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ - 8002bfa: 4a0a ldr r2, [pc, #40] @ (8002c24 ) - 8002bfc: 687b ldr r3, [r7, #4] - 8002bfe: 3b01 subs r3, #1 - 8002c00: 6053 str r3, [r2, #4] + 80035f2: 4a0a ldr r2, [pc, #40] @ (800361c ) + 80035f4: 687b ldr r3, [r7, #4] + 80035f6: 3b01 subs r3, #1 + 80035f8: 6053 str r3, [r2, #4] NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ - 8002c02: 210f movs r1, #15 - 8002c04: f04f 30ff mov.w r0, #4294967295 - 8002c08: f7ff ff8e bl 8002b28 <__NVIC_SetPriority> + 80035fa: 210f movs r1, #15 + 80035fc: f04f 30ff mov.w r0, #4294967295 + 8003600: f7ff ff8e bl 8003520 <__NVIC_SetPriority> SysTick->VAL = 0UL; /* Load the SysTick Counter Value */ - 8002c0c: 4b05 ldr r3, [pc, #20] @ (8002c24 ) - 8002c0e: 2200 movs r2, #0 - 8002c10: 609a str r2, [r3, #8] + 8003604: 4b05 ldr r3, [pc, #20] @ (800361c ) + 8003606: 2200 movs r2, #0 + 8003608: 609a str r2, [r3, #8] SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | - 8002c12: 4b04 ldr r3, [pc, #16] @ (8002c24 ) - 8002c14: 2207 movs r2, #7 - 8002c16: 601a str r2, [r3, #0] + 800360a: 4b04 ldr r3, [pc, #16] @ (800361c ) + 800360c: 2207 movs r2, #7 + 800360e: 601a str r2, [r3, #0] SysTick_CTRL_TICKINT_Msk | SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ return (0UL); /* Function successful */ - 8002c18: 2300 movs r3, #0 + 8003610: 2300 movs r3, #0 } - 8002c1a: 4618 mov r0, r3 - 8002c1c: 3708 adds r7, #8 - 8002c1e: 46bd mov sp, r7 - 8002c20: bd80 pop {r7, pc} - 8002c22: bf00 nop - 8002c24: e000e010 .word 0xe000e010 + 8003612: 4618 mov r0, r3 + 8003614: 3708 adds r7, #8 + 8003616: 46bd mov sp, r7 + 8003618: bd80 pop {r7, pc} + 800361a: bf00 nop + 800361c: e000e010 .word 0xe000e010 -08002c28 : +08003620 : * @note When the NVIC_PriorityGroup_0 is selected, IRQ pre-emption is no more possible. * The pending IRQ priority will be managed only by the subpriority. * @retval None */ void HAL_NVIC_SetPriorityGrouping(uint32_t PriorityGroup) { - 8002c28: b580 push {r7, lr} - 8002c2a: b082 sub sp, #8 - 8002c2c: af00 add r7, sp, #0 - 8002c2e: 6078 str r0, [r7, #4] + 8003620: b580 push {r7, lr} + 8003622: b082 sub sp, #8 + 8003624: af00 add r7, sp, #0 + 8003626: 6078 str r0, [r7, #4] /* Check the parameters */ assert_param(IS_NVIC_PRIORITY_GROUP(PriorityGroup)); /* Set the PRIGROUP[10:8] bits according to the PriorityGroup parameter value */ NVIC_SetPriorityGrouping(PriorityGroup); - 8002c30: 6878 ldr r0, [r7, #4] - 8002c32: f7ff ff29 bl 8002a88 <__NVIC_SetPriorityGrouping> + 8003628: 6878 ldr r0, [r7, #4] + 800362a: f7ff ff29 bl 8003480 <__NVIC_SetPriorityGrouping> } - 8002c36: bf00 nop - 8002c38: 3708 adds r7, #8 - 8002c3a: 46bd mov sp, r7 - 8002c3c: bd80 pop {r7, pc} + 800362e: bf00 nop + 8003630: 3708 adds r7, #8 + 8003632: 46bd mov sp, r7 + 8003634: bd80 pop {r7, pc} -08002c3e : +08003636 : * This parameter can be a value between 0 and 15 * A lower priority value indicates a higher priority. * @retval None */ void HAL_NVIC_SetPriority(IRQn_Type IRQn, uint32_t PreemptPriority, uint32_t SubPriority) { - 8002c3e: b580 push {r7, lr} - 8002c40: b086 sub sp, #24 - 8002c42: af00 add r7, sp, #0 - 8002c44: 4603 mov r3, r0 - 8002c46: 60b9 str r1, [r7, #8] - 8002c48: 607a str r2, [r7, #4] - 8002c4a: 73fb strb r3, [r7, #15] + 8003636: b580 push {r7, lr} + 8003638: b086 sub sp, #24 + 800363a: af00 add r7, sp, #0 + 800363c: 4603 mov r3, r0 + 800363e: 60b9 str r1, [r7, #8] + 8003640: 607a str r2, [r7, #4] + 8003642: 73fb strb r3, [r7, #15] /* Check the parameters */ assert_param(IS_NVIC_SUB_PRIORITY(SubPriority)); assert_param(IS_NVIC_PREEMPTION_PRIORITY(PreemptPriority)); prioritygroup = NVIC_GetPriorityGrouping(); - 8002c4c: f7ff ff40 bl 8002ad0 <__NVIC_GetPriorityGrouping> - 8002c50: 6178 str r0, [r7, #20] + 8003644: f7ff ff40 bl 80034c8 <__NVIC_GetPriorityGrouping> + 8003648: 6178 str r0, [r7, #20] NVIC_SetPriority(IRQn, NVIC_EncodePriority(prioritygroup, PreemptPriority, SubPriority)); - 8002c52: 687a ldr r2, [r7, #4] - 8002c54: 68b9 ldr r1, [r7, #8] - 8002c56: 6978 ldr r0, [r7, #20] - 8002c58: f7ff ff90 bl 8002b7c - 8002c5c: 4602 mov r2, r0 - 8002c5e: f997 300f ldrsb.w r3, [r7, #15] - 8002c62: 4611 mov r1, r2 - 8002c64: 4618 mov r0, r3 - 8002c66: f7ff ff5f bl 8002b28 <__NVIC_SetPriority> + 800364a: 687a ldr r2, [r7, #4] + 800364c: 68b9 ldr r1, [r7, #8] + 800364e: 6978 ldr r0, [r7, #20] + 8003650: f7ff ff90 bl 8003574 + 8003654: 4602 mov r2, r0 + 8003656: f997 300f ldrsb.w r3, [r7, #15] + 800365a: 4611 mov r1, r2 + 800365c: 4618 mov r0, r3 + 800365e: f7ff ff5f bl 8003520 <__NVIC_SetPriority> } - 8002c6a: bf00 nop - 8002c6c: 3718 adds r7, #24 - 8002c6e: 46bd mov sp, r7 - 8002c70: bd80 pop {r7, pc} + 8003662: bf00 nop + 8003664: 3718 adds r7, #24 + 8003666: 46bd mov sp, r7 + 8003668: bd80 pop {r7, pc} -08002c72 : +0800366a : * This parameter can be an enumerator of IRQn_Type enumeration * (For the complete STM32 Devices IRQ Channels list, please refer to the appropriate CMSIS device file (stm32g4xxxx.h)) * @retval None */ void HAL_NVIC_EnableIRQ(IRQn_Type IRQn) { - 8002c72: b580 push {r7, lr} - 8002c74: b082 sub sp, #8 - 8002c76: af00 add r7, sp, #0 - 8002c78: 4603 mov r3, r0 - 8002c7a: 71fb strb r3, [r7, #7] + 800366a: b580 push {r7, lr} + 800366c: b082 sub sp, #8 + 800366e: af00 add r7, sp, #0 + 8003670: 4603 mov r3, r0 + 8003672: 71fb strb r3, [r7, #7] /* Check the parameters */ assert_param(IS_NVIC_DEVICE_IRQ(IRQn)); /* Enable interrupt */ NVIC_EnableIRQ(IRQn); - 8002c7c: f997 3007 ldrsb.w r3, [r7, #7] - 8002c80: 4618 mov r0, r3 - 8002c82: f7ff ff33 bl 8002aec <__NVIC_EnableIRQ> + 8003674: f997 3007 ldrsb.w r3, [r7, #7] + 8003678: 4618 mov r0, r3 + 800367a: f7ff ff33 bl 80034e4 <__NVIC_EnableIRQ> } - 8002c86: bf00 nop - 8002c88: 3708 adds r7, #8 - 8002c8a: 46bd mov sp, r7 - 8002c8c: bd80 pop {r7, pc} + 800367e: bf00 nop + 8003680: 3708 adds r7, #8 + 8003682: 46bd mov sp, r7 + 8003684: bd80 pop {r7, pc} -08002c8e : +08003686 : * @param TicksNumb: Specifies the ticks Number of ticks between two interrupts. * @retval status: - 0 Function succeeded. * - 1 Function failed. */ uint32_t HAL_SYSTICK_Config(uint32_t TicksNumb) { - 8002c8e: b580 push {r7, lr} - 8002c90: b082 sub sp, #8 - 8002c92: af00 add r7, sp, #0 - 8002c94: 6078 str r0, [r7, #4] + 8003686: b580 push {r7, lr} + 8003688: b082 sub sp, #8 + 800368a: af00 add r7, sp, #0 + 800368c: 6078 str r0, [r7, #4] return SysTick_Config(TicksNumb); - 8002c96: 6878 ldr r0, [r7, #4] - 8002c98: f7ff ffa4 bl 8002be4 - 8002c9c: 4603 mov r3, r0 + 800368e: 6878 ldr r0, [r7, #4] + 8003690: f7ff ffa4 bl 80035dc + 8003694: 4603 mov r3, r0 } - 8002c9e: 4618 mov r0, r3 - 8002ca0: 3708 adds r7, #8 - 8002ca2: 46bd mov sp, r7 - 8002ca4: bd80 pop {r7, pc} + 8003696: 4618 mov r0, r3 + 8003698: 3708 adds r7, #8 + 800369a: 46bd mov sp, r7 + 800369c: bd80 pop {r7, pc} -08002ca6 : +0800369e : * @param hdma pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA Channel. * @retval HAL status */ HAL_StatusTypeDef HAL_DMA_Abort(DMA_HandleTypeDef *hdma) { - 8002ca6: b480 push {r7} - 8002ca8: b085 sub sp, #20 - 8002caa: af00 add r7, sp, #0 - 8002cac: 6078 str r0, [r7, #4] + 800369e: b480 push {r7} + 80036a0: b085 sub sp, #20 + 80036a2: af00 add r7, sp, #0 + 80036a4: 6078 str r0, [r7, #4] HAL_StatusTypeDef status = HAL_OK; - 8002cae: 2300 movs r3, #0 - 8002cb0: 73fb strb r3, [r7, #15] + 80036a6: 2300 movs r3, #0 + 80036a8: 73fb strb r3, [r7, #15] if(hdma->State != HAL_DMA_STATE_BUSY) - 8002cb2: 687b ldr r3, [r7, #4] - 8002cb4: f893 3025 ldrb.w r3, [r3, #37] @ 0x25 - 8002cb8: b2db uxtb r3, r3 - 8002cba: 2b02 cmp r3, #2 - 8002cbc: d005 beq.n 8002cca + 80036aa: 687b ldr r3, [r7, #4] + 80036ac: f893 3025 ldrb.w r3, [r3, #37] @ 0x25 + 80036b0: b2db uxtb r3, r3 + 80036b2: 2b02 cmp r3, #2 + 80036b4: d005 beq.n 80036c2 { /* no transfer ongoing */ hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER; - 8002cbe: 687b ldr r3, [r7, #4] - 8002cc0: 2204 movs r2, #4 - 8002cc2: 63da str r2, [r3, #60] @ 0x3c + 80036b6: 687b ldr r3, [r7, #4] + 80036b8: 2204 movs r2, #4 + 80036ba: 63da str r2, [r3, #60] @ 0x3c status = HAL_ERROR; - 8002cc4: 2301 movs r3, #1 - 8002cc6: 73fb strb r3, [r7, #15] - 8002cc8: e037 b.n 8002d3a + 80036bc: 2301 movs r3, #1 + 80036be: 73fb strb r3, [r7, #15] + 80036c0: e037 b.n 8003732 } else { /* Disable DMA IT */ __HAL_DMA_DISABLE_IT(hdma, (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE)); - 8002cca: 687b ldr r3, [r7, #4] - 8002ccc: 681b ldr r3, [r3, #0] - 8002cce: 681a ldr r2, [r3, #0] - 8002cd0: 687b ldr r3, [r7, #4] - 8002cd2: 681b ldr r3, [r3, #0] - 8002cd4: f022 020e bic.w r2, r2, #14 - 8002cd8: 601a str r2, [r3, #0] + 80036c2: 687b ldr r3, [r7, #4] + 80036c4: 681b ldr r3, [r3, #0] + 80036c6: 681a ldr r2, [r3, #0] + 80036c8: 687b ldr r3, [r7, #4] + 80036ca: 681b ldr r3, [r3, #0] + 80036cc: f022 020e bic.w r2, r2, #14 + 80036d0: 601a str r2, [r3, #0] /* disable the DMAMUX sync overrun IT*/ hdma->DMAmuxChannel->CCR &= ~DMAMUX_CxCR_SOIE; - 8002cda: 687b ldr r3, [r7, #4] - 8002cdc: 6c9b ldr r3, [r3, #72] @ 0x48 - 8002cde: 681a ldr r2, [r3, #0] - 8002ce0: 687b ldr r3, [r7, #4] - 8002ce2: 6c9b ldr r3, [r3, #72] @ 0x48 - 8002ce4: f422 7280 bic.w r2, r2, #256 @ 0x100 - 8002ce8: 601a str r2, [r3, #0] + 80036d2: 687b ldr r3, [r7, #4] + 80036d4: 6c9b ldr r3, [r3, #72] @ 0x48 + 80036d6: 681a ldr r2, [r3, #0] + 80036d8: 687b ldr r3, [r7, #4] + 80036da: 6c9b ldr r3, [r3, #72] @ 0x48 + 80036dc: f422 7280 bic.w r2, r2, #256 @ 0x100 + 80036e0: 601a str r2, [r3, #0] /* Disable the channel */ __HAL_DMA_DISABLE(hdma); - 8002cea: 687b ldr r3, [r7, #4] - 8002cec: 681b ldr r3, [r3, #0] - 8002cee: 681a ldr r2, [r3, #0] - 8002cf0: 687b ldr r3, [r7, #4] - 8002cf2: 681b ldr r3, [r3, #0] - 8002cf4: f022 0201 bic.w r2, r2, #1 - 8002cf8: 601a str r2, [r3, #0] + 80036e2: 687b ldr r3, [r7, #4] + 80036e4: 681b ldr r3, [r3, #0] + 80036e6: 681a ldr r2, [r3, #0] + 80036e8: 687b ldr r3, [r7, #4] + 80036ea: 681b ldr r3, [r3, #0] + 80036ec: f022 0201 bic.w r2, r2, #1 + 80036f0: 601a str r2, [r3, #0] /* Clear all flags */ hdma->DmaBaseAddress->IFCR = (DMA_ISR_GIF1 << (hdma->ChannelIndex & 0x1FU)); - 8002cfa: 687b ldr r3, [r7, #4] - 8002cfc: 6c5b ldr r3, [r3, #68] @ 0x44 - 8002cfe: f003 021f and.w r2, r3, #31 - 8002d02: 687b ldr r3, [r7, #4] - 8002d04: 6c1b ldr r3, [r3, #64] @ 0x40 - 8002d06: 2101 movs r1, #1 - 8002d08: fa01 f202 lsl.w r2, r1, r2 - 8002d0c: 605a str r2, [r3, #4] + 80036f2: 687b ldr r3, [r7, #4] + 80036f4: 6c5b ldr r3, [r3, #68] @ 0x44 + 80036f6: f003 021f and.w r2, r3, #31 + 80036fa: 687b ldr r3, [r7, #4] + 80036fc: 6c1b ldr r3, [r3, #64] @ 0x40 + 80036fe: 2101 movs r1, #1 + 8003700: fa01 f202 lsl.w r2, r1, r2 + 8003704: 605a str r2, [r3, #4] /* Clear the DMAMUX synchro overrun flag */ hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask; - 8002d0e: 687b ldr r3, [r7, #4] - 8002d10: 6cdb ldr r3, [r3, #76] @ 0x4c - 8002d12: 687a ldr r2, [r7, #4] - 8002d14: 6d12 ldr r2, [r2, #80] @ 0x50 - 8002d16: 605a str r2, [r3, #4] + 8003706: 687b ldr r3, [r7, #4] + 8003708: 6cdb ldr r3, [r3, #76] @ 0x4c + 800370a: 687a ldr r2, [r7, #4] + 800370c: 6d12 ldr r2, [r2, #80] @ 0x50 + 800370e: 605a str r2, [r3, #4] if (hdma->DMAmuxRequestGen != 0U) - 8002d18: 687b ldr r3, [r7, #4] - 8002d1a: 6d5b ldr r3, [r3, #84] @ 0x54 - 8002d1c: 2b00 cmp r3, #0 - 8002d1e: d00c beq.n 8002d3a + 8003710: 687b ldr r3, [r7, #4] + 8003712: 6d5b ldr r3, [r3, #84] @ 0x54 + 8003714: 2b00 cmp r3, #0 + 8003716: d00c beq.n 8003732 { /* if using DMAMUX request generator, disable the DMAMUX request generator overrun IT*/ /* disable the request gen overrun IT*/ hdma->DMAmuxRequestGen->RGCR &= ~DMAMUX_RGxCR_OIE; - 8002d20: 687b ldr r3, [r7, #4] - 8002d22: 6d5b ldr r3, [r3, #84] @ 0x54 - 8002d24: 681a ldr r2, [r3, #0] - 8002d26: 687b ldr r3, [r7, #4] - 8002d28: 6d5b ldr r3, [r3, #84] @ 0x54 - 8002d2a: f422 7280 bic.w r2, r2, #256 @ 0x100 - 8002d2e: 601a str r2, [r3, #0] + 8003718: 687b ldr r3, [r7, #4] + 800371a: 6d5b ldr r3, [r3, #84] @ 0x54 + 800371c: 681a ldr r2, [r3, #0] + 800371e: 687b ldr r3, [r7, #4] + 8003720: 6d5b ldr r3, [r3, #84] @ 0x54 + 8003722: f422 7280 bic.w r2, r2, #256 @ 0x100 + 8003726: 601a str r2, [r3, #0] /* Clear the DMAMUX request generator overrun flag */ hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask; - 8002d30: 687b ldr r3, [r7, #4] - 8002d32: 6d9b ldr r3, [r3, #88] @ 0x58 - 8002d34: 687a ldr r2, [r7, #4] - 8002d36: 6dd2 ldr r2, [r2, #92] @ 0x5c - 8002d38: 605a str r2, [r3, #4] + 8003728: 687b ldr r3, [r7, #4] + 800372a: 6d9b ldr r3, [r3, #88] @ 0x58 + 800372c: 687a ldr r2, [r7, #4] + 800372e: 6dd2 ldr r2, [r2, #92] @ 0x5c + 8003730: 605a str r2, [r3, #4] } } /* Change the DMA state */ hdma->State = HAL_DMA_STATE_READY; - 8002d3a: 687b ldr r3, [r7, #4] - 8002d3c: 2201 movs r2, #1 - 8002d3e: f883 2025 strb.w r2, [r3, #37] @ 0x25 + 8003732: 687b ldr r3, [r7, #4] + 8003734: 2201 movs r2, #1 + 8003736: f883 2025 strb.w r2, [r3, #37] @ 0x25 /* Process Unlocked */ __HAL_UNLOCK(hdma); - 8002d42: 687b ldr r3, [r7, #4] - 8002d44: 2200 movs r2, #0 - 8002d46: f883 2024 strb.w r2, [r3, #36] @ 0x24 + 800373a: 687b ldr r3, [r7, #4] + 800373c: 2200 movs r2, #0 + 800373e: f883 2024 strb.w r2, [r3, #36] @ 0x24 return status; - 8002d4a: 7bfb ldrb r3, [r7, #15] + 8003742: 7bfb ldrb r3, [r7, #15] } - 8002d4c: 4618 mov r0, r3 - 8002d4e: 3714 adds r7, #20 - 8002d50: 46bd mov sp, r7 - 8002d52: f85d 7b04 ldr.w r7, [sp], #4 - 8002d56: 4770 bx lr + 8003744: 4618 mov r0, r3 + 8003746: 3714 adds r7, #20 + 8003748: 46bd mov sp, r7 + 800374a: f85d 7b04 ldr.w r7, [sp], #4 + 800374e: 4770 bx lr -08002d58 : +08003750 : * @param hdma pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA Channel. * @retval HAL status */ HAL_StatusTypeDef HAL_DMA_Abort_IT(DMA_HandleTypeDef *hdma) { - 8002d58: b580 push {r7, lr} - 8002d5a: b084 sub sp, #16 - 8002d5c: af00 add r7, sp, #0 - 8002d5e: 6078 str r0, [r7, #4] + 8003750: b580 push {r7, lr} + 8003752: b084 sub sp, #16 + 8003754: af00 add r7, sp, #0 + 8003756: 6078 str r0, [r7, #4] HAL_StatusTypeDef status = HAL_OK; - 8002d60: 2300 movs r3, #0 - 8002d62: 73fb strb r3, [r7, #15] + 8003758: 2300 movs r3, #0 + 800375a: 73fb strb r3, [r7, #15] if (HAL_DMA_STATE_BUSY != hdma->State) - 8002d64: 687b ldr r3, [r7, #4] - 8002d66: f893 3025 ldrb.w r3, [r3, #37] @ 0x25 - 8002d6a: b2db uxtb r3, r3 - 8002d6c: 2b02 cmp r3, #2 - 8002d6e: d00d beq.n 8002d8c + 800375c: 687b ldr r3, [r7, #4] + 800375e: f893 3025 ldrb.w r3, [r3, #37] @ 0x25 + 8003762: b2db uxtb r3, r3 + 8003764: 2b02 cmp r3, #2 + 8003766: d00d beq.n 8003784 { /* no transfer ongoing */ hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER; - 8002d70: 687b ldr r3, [r7, #4] - 8002d72: 2204 movs r2, #4 - 8002d74: 63da str r2, [r3, #60] @ 0x3c + 8003768: 687b ldr r3, [r7, #4] + 800376a: 2204 movs r2, #4 + 800376c: 63da str r2, [r3, #60] @ 0x3c /* Change the DMA state */ hdma->State = HAL_DMA_STATE_READY; - 8002d76: 687b ldr r3, [r7, #4] - 8002d78: 2201 movs r2, #1 - 8002d7a: f883 2025 strb.w r2, [r3, #37] @ 0x25 + 800376e: 687b ldr r3, [r7, #4] + 8003770: 2201 movs r2, #1 + 8003772: f883 2025 strb.w r2, [r3, #37] @ 0x25 /* Process Unlocked */ __HAL_UNLOCK(hdma); - 8002d7e: 687b ldr r3, [r7, #4] - 8002d80: 2200 movs r2, #0 - 8002d82: f883 2024 strb.w r2, [r3, #36] @ 0x24 + 8003776: 687b ldr r3, [r7, #4] + 8003778: 2200 movs r2, #0 + 800377a: f883 2024 strb.w r2, [r3, #36] @ 0x24 status = HAL_ERROR; - 8002d86: 2301 movs r3, #1 - 8002d88: 73fb strb r3, [r7, #15] - 8002d8a: e047 b.n 8002e1c + 800377e: 2301 movs r3, #1 + 8003780: 73fb strb r3, [r7, #15] + 8003782: e047 b.n 8003814 } else { /* Disable DMA IT */ __HAL_DMA_DISABLE_IT(hdma, (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE)); - 8002d8c: 687b ldr r3, [r7, #4] - 8002d8e: 681b ldr r3, [r3, #0] - 8002d90: 681a ldr r2, [r3, #0] - 8002d92: 687b ldr r3, [r7, #4] - 8002d94: 681b ldr r3, [r3, #0] - 8002d96: f022 020e bic.w r2, r2, #14 - 8002d9a: 601a str r2, [r3, #0] + 8003784: 687b ldr r3, [r7, #4] + 8003786: 681b ldr r3, [r3, #0] + 8003788: 681a ldr r2, [r3, #0] + 800378a: 687b ldr r3, [r7, #4] + 800378c: 681b ldr r3, [r3, #0] + 800378e: f022 020e bic.w r2, r2, #14 + 8003792: 601a str r2, [r3, #0] /* Disable the channel */ __HAL_DMA_DISABLE(hdma); - 8002d9c: 687b ldr r3, [r7, #4] - 8002d9e: 681b ldr r3, [r3, #0] - 8002da0: 681a ldr r2, [r3, #0] - 8002da2: 687b ldr r3, [r7, #4] - 8002da4: 681b ldr r3, [r3, #0] - 8002da6: f022 0201 bic.w r2, r2, #1 - 8002daa: 601a str r2, [r3, #0] + 8003794: 687b ldr r3, [r7, #4] + 8003796: 681b ldr r3, [r3, #0] + 8003798: 681a ldr r2, [r3, #0] + 800379a: 687b ldr r3, [r7, #4] + 800379c: 681b ldr r3, [r3, #0] + 800379e: f022 0201 bic.w r2, r2, #1 + 80037a2: 601a str r2, [r3, #0] /* disable the DMAMUX sync overrun IT*/ hdma->DMAmuxChannel->CCR &= ~DMAMUX_CxCR_SOIE; - 8002dac: 687b ldr r3, [r7, #4] - 8002dae: 6c9b ldr r3, [r3, #72] @ 0x48 - 8002db0: 681a ldr r2, [r3, #0] - 8002db2: 687b ldr r3, [r7, #4] - 8002db4: 6c9b ldr r3, [r3, #72] @ 0x48 - 8002db6: f422 7280 bic.w r2, r2, #256 @ 0x100 - 8002dba: 601a str r2, [r3, #0] + 80037a4: 687b ldr r3, [r7, #4] + 80037a6: 6c9b ldr r3, [r3, #72] @ 0x48 + 80037a8: 681a ldr r2, [r3, #0] + 80037aa: 687b ldr r3, [r7, #4] + 80037ac: 6c9b ldr r3, [r3, #72] @ 0x48 + 80037ae: f422 7280 bic.w r2, r2, #256 @ 0x100 + 80037b2: 601a str r2, [r3, #0] /* Clear all flags */ hdma->DmaBaseAddress->IFCR = (DMA_ISR_GIF1 << (hdma->ChannelIndex & 0x1FU)); - 8002dbc: 687b ldr r3, [r7, #4] - 8002dbe: 6c5b ldr r3, [r3, #68] @ 0x44 - 8002dc0: f003 021f and.w r2, r3, #31 - 8002dc4: 687b ldr r3, [r7, #4] - 8002dc6: 6c1b ldr r3, [r3, #64] @ 0x40 - 8002dc8: 2101 movs r1, #1 - 8002dca: fa01 f202 lsl.w r2, r1, r2 - 8002dce: 605a str r2, [r3, #4] + 80037b4: 687b ldr r3, [r7, #4] + 80037b6: 6c5b ldr r3, [r3, #68] @ 0x44 + 80037b8: f003 021f and.w r2, r3, #31 + 80037bc: 687b ldr r3, [r7, #4] + 80037be: 6c1b ldr r3, [r3, #64] @ 0x40 + 80037c0: 2101 movs r1, #1 + 80037c2: fa01 f202 lsl.w r2, r1, r2 + 80037c6: 605a str r2, [r3, #4] /* Clear the DMAMUX synchro overrun flag */ hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask; - 8002dd0: 687b ldr r3, [r7, #4] - 8002dd2: 6cdb ldr r3, [r3, #76] @ 0x4c - 8002dd4: 687a ldr r2, [r7, #4] - 8002dd6: 6d12 ldr r2, [r2, #80] @ 0x50 - 8002dd8: 605a str r2, [r3, #4] + 80037c8: 687b ldr r3, [r7, #4] + 80037ca: 6cdb ldr r3, [r3, #76] @ 0x4c + 80037cc: 687a ldr r2, [r7, #4] + 80037ce: 6d12 ldr r2, [r2, #80] @ 0x50 + 80037d0: 605a str r2, [r3, #4] if (hdma->DMAmuxRequestGen != 0U) - 8002dda: 687b ldr r3, [r7, #4] - 8002ddc: 6d5b ldr r3, [r3, #84] @ 0x54 - 8002dde: 2b00 cmp r3, #0 - 8002de0: d00c beq.n 8002dfc + 80037d2: 687b ldr r3, [r7, #4] + 80037d4: 6d5b ldr r3, [r3, #84] @ 0x54 + 80037d6: 2b00 cmp r3, #0 + 80037d8: d00c beq.n 80037f4 { /* if using DMAMUX request generator, disable the DMAMUX request generator overrun IT*/ /* disable the request gen overrun IT*/ hdma->DMAmuxRequestGen->RGCR &= ~DMAMUX_RGxCR_OIE; - 8002de2: 687b ldr r3, [r7, #4] - 8002de4: 6d5b ldr r3, [r3, #84] @ 0x54 - 8002de6: 681a ldr r2, [r3, #0] - 8002de8: 687b ldr r3, [r7, #4] - 8002dea: 6d5b ldr r3, [r3, #84] @ 0x54 - 8002dec: f422 7280 bic.w r2, r2, #256 @ 0x100 - 8002df0: 601a str r2, [r3, #0] + 80037da: 687b ldr r3, [r7, #4] + 80037dc: 6d5b ldr r3, [r3, #84] @ 0x54 + 80037de: 681a ldr r2, [r3, #0] + 80037e0: 687b ldr r3, [r7, #4] + 80037e2: 6d5b ldr r3, [r3, #84] @ 0x54 + 80037e4: f422 7280 bic.w r2, r2, #256 @ 0x100 + 80037e8: 601a str r2, [r3, #0] /* Clear the DMAMUX request generator overrun flag */ hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask; - 8002df2: 687b ldr r3, [r7, #4] - 8002df4: 6d9b ldr r3, [r3, #88] @ 0x58 - 8002df6: 687a ldr r2, [r7, #4] - 8002df8: 6dd2 ldr r2, [r2, #92] @ 0x5c - 8002dfa: 605a str r2, [r3, #4] + 80037ea: 687b ldr r3, [r7, #4] + 80037ec: 6d9b ldr r3, [r3, #88] @ 0x58 + 80037ee: 687a ldr r2, [r7, #4] + 80037f0: 6dd2 ldr r2, [r2, #92] @ 0x5c + 80037f2: 605a str r2, [r3, #4] } /* Change the DMA state */ hdma->State = HAL_DMA_STATE_READY; - 8002dfc: 687b ldr r3, [r7, #4] - 8002dfe: 2201 movs r2, #1 - 8002e00: f883 2025 strb.w r2, [r3, #37] @ 0x25 + 80037f4: 687b ldr r3, [r7, #4] + 80037f6: 2201 movs r2, #1 + 80037f8: f883 2025 strb.w r2, [r3, #37] @ 0x25 /* Process Unlocked */ __HAL_UNLOCK(hdma); - 8002e04: 687b ldr r3, [r7, #4] - 8002e06: 2200 movs r2, #0 - 8002e08: f883 2024 strb.w r2, [r3, #36] @ 0x24 + 80037fc: 687b ldr r3, [r7, #4] + 80037fe: 2200 movs r2, #0 + 8003800: f883 2024 strb.w r2, [r3, #36] @ 0x24 /* Call User Abort callback */ if (hdma->XferAbortCallback != NULL) - 8002e0c: 687b ldr r3, [r7, #4] - 8002e0e: 6b9b ldr r3, [r3, #56] @ 0x38 - 8002e10: 2b00 cmp r3, #0 - 8002e12: d003 beq.n 8002e1c + 8003804: 687b ldr r3, [r7, #4] + 8003806: 6b9b ldr r3, [r3, #56] @ 0x38 + 8003808: 2b00 cmp r3, #0 + 800380a: d003 beq.n 8003814 { hdma->XferAbortCallback(hdma); - 8002e14: 687b ldr r3, [r7, #4] - 8002e16: 6b9b ldr r3, [r3, #56] @ 0x38 - 8002e18: 6878 ldr r0, [r7, #4] - 8002e1a: 4798 blx r3 + 800380c: 687b ldr r3, [r7, #4] + 800380e: 6b9b ldr r3, [r3, #56] @ 0x38 + 8003810: 6878 ldr r0, [r7, #4] + 8003812: 4798 blx r3 } } return status; - 8002e1c: 7bfb ldrb r3, [r7, #15] + 8003814: 7bfb ldrb r3, [r7, #15] } - 8002e1e: 4618 mov r0, r3 - 8002e20: 3710 adds r7, #16 - 8002e22: 46bd mov sp, r7 - 8002e24: bd80 pop {r7, pc} + 8003816: 4618 mov r0, r3 + 8003818: 3710 adds r7, #16 + 800381a: 46bd mov sp, r7 + 800381c: bd80 pop {r7, pc} ... -08002e28 : +08003820 : * @param GPIO_Init pointer to a GPIO_InitTypeDef structure that contains * the configuration information for the specified GPIO peripheral. * @retval None */ void HAL_GPIO_Init(GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_Init) { - 8002e28: b480 push {r7} - 8002e2a: b087 sub sp, #28 - 8002e2c: af00 add r7, sp, #0 - 8002e2e: 6078 str r0, [r7, #4] - 8002e30: 6039 str r1, [r7, #0] + 8003820: b480 push {r7} + 8003822: b087 sub sp, #28 + 8003824: af00 add r7, sp, #0 + 8003826: 6078 str r0, [r7, #4] + 8003828: 6039 str r1, [r7, #0] uint32_t position = 0x00U; - 8002e32: 2300 movs r3, #0 - 8002e34: 617b str r3, [r7, #20] + 800382a: 2300 movs r3, #0 + 800382c: 617b str r3, [r7, #20] assert_param(IS_GPIO_ALL_INSTANCE(GPIOx)); assert_param(IS_GPIO_PIN(GPIO_Init->Pin)); assert_param(IS_GPIO_MODE(GPIO_Init->Mode)); /* Configure the port pins */ while (((GPIO_Init->Pin) >> position) != 0U) - 8002e36: e15a b.n 80030ee + 800382e: e15a b.n 8003ae6 { /* Get current io position */ iocurrent = (GPIO_Init->Pin) & (1UL << position); - 8002e38: 683b ldr r3, [r7, #0] - 8002e3a: 681a ldr r2, [r3, #0] - 8002e3c: 2101 movs r1, #1 - 8002e3e: 697b ldr r3, [r7, #20] - 8002e40: fa01 f303 lsl.w r3, r1, r3 - 8002e44: 4013 ands r3, r2 - 8002e46: 60fb str r3, [r7, #12] + 8003830: 683b ldr r3, [r7, #0] + 8003832: 681a ldr r2, [r3, #0] + 8003834: 2101 movs r1, #1 + 8003836: 697b ldr r3, [r7, #20] + 8003838: fa01 f303 lsl.w r3, r1, r3 + 800383c: 4013 ands r3, r2 + 800383e: 60fb str r3, [r7, #12] if (iocurrent != 0x00u) - 8002e48: 68fb ldr r3, [r7, #12] - 8002e4a: 2b00 cmp r3, #0 - 8002e4c: f000 814c beq.w 80030e8 + 8003840: 68fb ldr r3, [r7, #12] + 8003842: 2b00 cmp r3, #0 + 8003844: f000 814c beq.w 8003ae0 { /*--------------------- GPIO Mode Configuration ------------------------*/ /* In case of Output or Alternate function mode selection */ if(((GPIO_Init->Mode & GPIO_MODE) == MODE_OUTPUT) || - 8002e50: 683b ldr r3, [r7, #0] - 8002e52: 685b ldr r3, [r3, #4] - 8002e54: f003 0303 and.w r3, r3, #3 - 8002e58: 2b01 cmp r3, #1 - 8002e5a: d005 beq.n 8002e68 + 8003848: 683b ldr r3, [r7, #0] + 800384a: 685b ldr r3, [r3, #4] + 800384c: f003 0303 and.w r3, r3, #3 + 8003850: 2b01 cmp r3, #1 + 8003852: d005 beq.n 8003860 ((GPIO_Init->Mode & GPIO_MODE) == MODE_AF)) - 8002e5c: 683b ldr r3, [r7, #0] - 8002e5e: 685b ldr r3, [r3, #4] - 8002e60: f003 0303 and.w r3, r3, #3 + 8003854: 683b ldr r3, [r7, #0] + 8003856: 685b ldr r3, [r3, #4] + 8003858: f003 0303 and.w r3, r3, #3 if(((GPIO_Init->Mode & GPIO_MODE) == MODE_OUTPUT) || - 8002e64: 2b02 cmp r3, #2 - 8002e66: d130 bne.n 8002eca + 800385c: 2b02 cmp r3, #2 + 800385e: d130 bne.n 80038c2 { /* Check the Speed parameter */ assert_param(IS_GPIO_SPEED(GPIO_Init->Speed)); /* Configure the IO Speed */ temp = GPIOx->OSPEEDR; - 8002e68: 687b ldr r3, [r7, #4] - 8002e6a: 689b ldr r3, [r3, #8] - 8002e6c: 613b str r3, [r7, #16] + 8003860: 687b ldr r3, [r7, #4] + 8003862: 689b ldr r3, [r3, #8] + 8003864: 613b str r3, [r7, #16] temp &= ~(GPIO_OSPEEDR_OSPEED0 << (position * 2U)); - 8002e6e: 697b ldr r3, [r7, #20] - 8002e70: 005b lsls r3, r3, #1 - 8002e72: 2203 movs r2, #3 - 8002e74: fa02 f303 lsl.w r3, r2, r3 - 8002e78: 43db mvns r3, r3 - 8002e7a: 693a ldr r2, [r7, #16] - 8002e7c: 4013 ands r3, r2 - 8002e7e: 613b str r3, [r7, #16] + 8003866: 697b ldr r3, [r7, #20] + 8003868: 005b lsls r3, r3, #1 + 800386a: 2203 movs r2, #3 + 800386c: fa02 f303 lsl.w r3, r2, r3 + 8003870: 43db mvns r3, r3 + 8003872: 693a ldr r2, [r7, #16] + 8003874: 4013 ands r3, r2 + 8003876: 613b str r3, [r7, #16] temp |= (GPIO_Init->Speed << (position * 2U)); - 8002e80: 683b ldr r3, [r7, #0] - 8002e82: 68da ldr r2, [r3, #12] - 8002e84: 697b ldr r3, [r7, #20] - 8002e86: 005b lsls r3, r3, #1 - 8002e88: fa02 f303 lsl.w r3, r2, r3 - 8002e8c: 693a ldr r2, [r7, #16] - 8002e8e: 4313 orrs r3, r2 - 8002e90: 613b str r3, [r7, #16] + 8003878: 683b ldr r3, [r7, #0] + 800387a: 68da ldr r2, [r3, #12] + 800387c: 697b ldr r3, [r7, #20] + 800387e: 005b lsls r3, r3, #1 + 8003880: fa02 f303 lsl.w r3, r2, r3 + 8003884: 693a ldr r2, [r7, #16] + 8003886: 4313 orrs r3, r2 + 8003888: 613b str r3, [r7, #16] GPIOx->OSPEEDR = temp; - 8002e92: 687b ldr r3, [r7, #4] - 8002e94: 693a ldr r2, [r7, #16] - 8002e96: 609a str r2, [r3, #8] + 800388a: 687b ldr r3, [r7, #4] + 800388c: 693a ldr r2, [r7, #16] + 800388e: 609a str r2, [r3, #8] /* Configure the IO Output Type */ temp = GPIOx->OTYPER; - 8002e98: 687b ldr r3, [r7, #4] - 8002e9a: 685b ldr r3, [r3, #4] - 8002e9c: 613b str r3, [r7, #16] + 8003890: 687b ldr r3, [r7, #4] + 8003892: 685b ldr r3, [r3, #4] + 8003894: 613b str r3, [r7, #16] temp &= ~(GPIO_OTYPER_OT0 << position) ; - 8002e9e: 2201 movs r2, #1 - 8002ea0: 697b ldr r3, [r7, #20] - 8002ea2: fa02 f303 lsl.w r3, r2, r3 - 8002ea6: 43db mvns r3, r3 - 8002ea8: 693a ldr r2, [r7, #16] - 8002eaa: 4013 ands r3, r2 - 8002eac: 613b str r3, [r7, #16] + 8003896: 2201 movs r2, #1 + 8003898: 697b ldr r3, [r7, #20] + 800389a: fa02 f303 lsl.w r3, r2, r3 + 800389e: 43db mvns r3, r3 + 80038a0: 693a ldr r2, [r7, #16] + 80038a2: 4013 ands r3, r2 + 80038a4: 613b str r3, [r7, #16] temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position); - 8002eae: 683b ldr r3, [r7, #0] - 8002eb0: 685b ldr r3, [r3, #4] - 8002eb2: 091b lsrs r3, r3, #4 - 8002eb4: f003 0201 and.w r2, r3, #1 - 8002eb8: 697b ldr r3, [r7, #20] - 8002eba: fa02 f303 lsl.w r3, r2, r3 - 8002ebe: 693a ldr r2, [r7, #16] - 8002ec0: 4313 orrs r3, r2 - 8002ec2: 613b str r3, [r7, #16] + 80038a6: 683b ldr r3, [r7, #0] + 80038a8: 685b ldr r3, [r3, #4] + 80038aa: 091b lsrs r3, r3, #4 + 80038ac: f003 0201 and.w r2, r3, #1 + 80038b0: 697b ldr r3, [r7, #20] + 80038b2: fa02 f303 lsl.w r3, r2, r3 + 80038b6: 693a ldr r2, [r7, #16] + 80038b8: 4313 orrs r3, r2 + 80038ba: 613b str r3, [r7, #16] GPIOx->OTYPER = temp; - 8002ec4: 687b ldr r3, [r7, #4] - 8002ec6: 693a ldr r2, [r7, #16] - 8002ec8: 605a str r2, [r3, #4] + 80038bc: 687b ldr r3, [r7, #4] + 80038be: 693a ldr r2, [r7, #16] + 80038c0: 605a str r2, [r3, #4] } if ((GPIO_Init->Mode & GPIO_MODE) != MODE_ANALOG) - 8002eca: 683b ldr r3, [r7, #0] - 8002ecc: 685b ldr r3, [r3, #4] - 8002ece: f003 0303 and.w r3, r3, #3 - 8002ed2: 2b03 cmp r3, #3 - 8002ed4: d017 beq.n 8002f06 + 80038c2: 683b ldr r3, [r7, #0] + 80038c4: 685b ldr r3, [r3, #4] + 80038c6: f003 0303 and.w r3, r3, #3 + 80038ca: 2b03 cmp r3, #3 + 80038cc: d017 beq.n 80038fe { /* Check the Pull parameter */ assert_param(IS_GPIO_PULL(GPIO_Init->Pull)); /* Activate the Pull-up or Pull down resistor for the current IO */ temp = GPIOx->PUPDR; - 8002ed6: 687b ldr r3, [r7, #4] - 8002ed8: 68db ldr r3, [r3, #12] - 8002eda: 613b str r3, [r7, #16] + 80038ce: 687b ldr r3, [r7, #4] + 80038d0: 68db ldr r3, [r3, #12] + 80038d2: 613b str r3, [r7, #16] temp &= ~(GPIO_PUPDR_PUPD0 << (position * 2U)); - 8002edc: 697b ldr r3, [r7, #20] - 8002ede: 005b lsls r3, r3, #1 - 8002ee0: 2203 movs r2, #3 - 8002ee2: fa02 f303 lsl.w r3, r2, r3 - 8002ee6: 43db mvns r3, r3 - 8002ee8: 693a ldr r2, [r7, #16] - 8002eea: 4013 ands r3, r2 - 8002eec: 613b str r3, [r7, #16] + 80038d4: 697b ldr r3, [r7, #20] + 80038d6: 005b lsls r3, r3, #1 + 80038d8: 2203 movs r2, #3 + 80038da: fa02 f303 lsl.w r3, r2, r3 + 80038de: 43db mvns r3, r3 + 80038e0: 693a ldr r2, [r7, #16] + 80038e2: 4013 ands r3, r2 + 80038e4: 613b str r3, [r7, #16] temp |= ((GPIO_Init->Pull) << (position * 2U)); - 8002eee: 683b ldr r3, [r7, #0] - 8002ef0: 689a ldr r2, [r3, #8] - 8002ef2: 697b ldr r3, [r7, #20] - 8002ef4: 005b lsls r3, r3, #1 - 8002ef6: fa02 f303 lsl.w r3, r2, r3 - 8002efa: 693a ldr r2, [r7, #16] - 8002efc: 4313 orrs r3, r2 - 8002efe: 613b str r3, [r7, #16] + 80038e6: 683b ldr r3, [r7, #0] + 80038e8: 689a ldr r2, [r3, #8] + 80038ea: 697b ldr r3, [r7, #20] + 80038ec: 005b lsls r3, r3, #1 + 80038ee: fa02 f303 lsl.w r3, r2, r3 + 80038f2: 693a ldr r2, [r7, #16] + 80038f4: 4313 orrs r3, r2 + 80038f6: 613b str r3, [r7, #16] GPIOx->PUPDR = temp; - 8002f00: 687b ldr r3, [r7, #4] - 8002f02: 693a ldr r2, [r7, #16] - 8002f04: 60da str r2, [r3, #12] + 80038f8: 687b ldr r3, [r7, #4] + 80038fa: 693a ldr r2, [r7, #16] + 80038fc: 60da str r2, [r3, #12] } /* In case of Alternate function mode selection */ if ((GPIO_Init->Mode & GPIO_MODE) == MODE_AF) - 8002f06: 683b ldr r3, [r7, #0] - 8002f08: 685b ldr r3, [r3, #4] - 8002f0a: f003 0303 and.w r3, r3, #3 - 8002f0e: 2b02 cmp r3, #2 - 8002f10: d123 bne.n 8002f5a + 80038fe: 683b ldr r3, [r7, #0] + 8003900: 685b ldr r3, [r3, #4] + 8003902: f003 0303 and.w r3, r3, #3 + 8003906: 2b02 cmp r3, #2 + 8003908: d123 bne.n 8003952 /* Check the Alternate function parameters */ assert_param(IS_GPIO_AF_INSTANCE(GPIOx)); assert_param(IS_GPIO_AF(GPIO_Init->Alternate)); /* Configure Alternate function mapped with the current IO */ temp = GPIOx->AFR[position >> 3U]; - 8002f12: 697b ldr r3, [r7, #20] - 8002f14: 08da lsrs r2, r3, #3 - 8002f16: 687b ldr r3, [r7, #4] - 8002f18: 3208 adds r2, #8 - 8002f1a: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8002f1e: 613b str r3, [r7, #16] + 800390a: 697b ldr r3, [r7, #20] + 800390c: 08da lsrs r2, r3, #3 + 800390e: 687b ldr r3, [r7, #4] + 8003910: 3208 adds r2, #8 + 8003912: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8003916: 613b str r3, [r7, #16] temp &= ~(0xFU << ((position & 0x07U) * 4U)); - 8002f20: 697b ldr r3, [r7, #20] - 8002f22: f003 0307 and.w r3, r3, #7 - 8002f26: 009b lsls r3, r3, #2 - 8002f28: 220f movs r2, #15 - 8002f2a: fa02 f303 lsl.w r3, r2, r3 - 8002f2e: 43db mvns r3, r3 - 8002f30: 693a ldr r2, [r7, #16] - 8002f32: 4013 ands r3, r2 - 8002f34: 613b str r3, [r7, #16] + 8003918: 697b ldr r3, [r7, #20] + 800391a: f003 0307 and.w r3, r3, #7 + 800391e: 009b lsls r3, r3, #2 + 8003920: 220f movs r2, #15 + 8003922: fa02 f303 lsl.w r3, r2, r3 + 8003926: 43db mvns r3, r3 + 8003928: 693a ldr r2, [r7, #16] + 800392a: 4013 ands r3, r2 + 800392c: 613b str r3, [r7, #16] temp |= ((GPIO_Init->Alternate) << ((position & 0x07U) * 4U)); - 8002f36: 683b ldr r3, [r7, #0] - 8002f38: 691a ldr r2, [r3, #16] - 8002f3a: 697b ldr r3, [r7, #20] - 8002f3c: f003 0307 and.w r3, r3, #7 - 8002f40: 009b lsls r3, r3, #2 - 8002f42: fa02 f303 lsl.w r3, r2, r3 - 8002f46: 693a ldr r2, [r7, #16] - 8002f48: 4313 orrs r3, r2 - 8002f4a: 613b str r3, [r7, #16] + 800392e: 683b ldr r3, [r7, #0] + 8003930: 691a ldr r2, [r3, #16] + 8003932: 697b ldr r3, [r7, #20] + 8003934: f003 0307 and.w r3, r3, #7 + 8003938: 009b lsls r3, r3, #2 + 800393a: fa02 f303 lsl.w r3, r2, r3 + 800393e: 693a ldr r2, [r7, #16] + 8003940: 4313 orrs r3, r2 + 8003942: 613b str r3, [r7, #16] GPIOx->AFR[position >> 3U] = temp; - 8002f4c: 697b ldr r3, [r7, #20] - 8002f4e: 08da lsrs r2, r3, #3 - 8002f50: 687b ldr r3, [r7, #4] - 8002f52: 3208 adds r2, #8 - 8002f54: 6939 ldr r1, [r7, #16] - 8002f56: f843 1022 str.w r1, [r3, r2, lsl #2] + 8003944: 697b ldr r3, [r7, #20] + 8003946: 08da lsrs r2, r3, #3 + 8003948: 687b ldr r3, [r7, #4] + 800394a: 3208 adds r2, #8 + 800394c: 6939 ldr r1, [r7, #16] + 800394e: f843 1022 str.w r1, [r3, r2, lsl #2] } /* Configure IO Direction mode (Input, Output, Alternate or Analog) */ temp = GPIOx->MODER; - 8002f5a: 687b ldr r3, [r7, #4] - 8002f5c: 681b ldr r3, [r3, #0] - 8002f5e: 613b str r3, [r7, #16] + 8003952: 687b ldr r3, [r7, #4] + 8003954: 681b ldr r3, [r3, #0] + 8003956: 613b str r3, [r7, #16] temp &= ~(GPIO_MODER_MODE0 << (position * 2U)); - 8002f60: 697b ldr r3, [r7, #20] - 8002f62: 005b lsls r3, r3, #1 - 8002f64: 2203 movs r2, #3 - 8002f66: fa02 f303 lsl.w r3, r2, r3 - 8002f6a: 43db mvns r3, r3 - 8002f6c: 693a ldr r2, [r7, #16] - 8002f6e: 4013 ands r3, r2 - 8002f70: 613b str r3, [r7, #16] + 8003958: 697b ldr r3, [r7, #20] + 800395a: 005b lsls r3, r3, #1 + 800395c: 2203 movs r2, #3 + 800395e: fa02 f303 lsl.w r3, r2, r3 + 8003962: 43db mvns r3, r3 + 8003964: 693a ldr r2, [r7, #16] + 8003966: 4013 ands r3, r2 + 8003968: 613b str r3, [r7, #16] temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * 2U)); - 8002f72: 683b ldr r3, [r7, #0] - 8002f74: 685b ldr r3, [r3, #4] - 8002f76: f003 0203 and.w r2, r3, #3 - 8002f7a: 697b ldr r3, [r7, #20] - 8002f7c: 005b lsls r3, r3, #1 - 8002f7e: fa02 f303 lsl.w r3, r2, r3 - 8002f82: 693a ldr r2, [r7, #16] - 8002f84: 4313 orrs r3, r2 - 8002f86: 613b str r3, [r7, #16] + 800396a: 683b ldr r3, [r7, #0] + 800396c: 685b ldr r3, [r3, #4] + 800396e: f003 0203 and.w r2, r3, #3 + 8003972: 697b ldr r3, [r7, #20] + 8003974: 005b lsls r3, r3, #1 + 8003976: fa02 f303 lsl.w r3, r2, r3 + 800397a: 693a ldr r2, [r7, #16] + 800397c: 4313 orrs r3, r2 + 800397e: 613b str r3, [r7, #16] GPIOx->MODER = temp; - 8002f88: 687b ldr r3, [r7, #4] - 8002f8a: 693a ldr r2, [r7, #16] - 8002f8c: 601a str r2, [r3, #0] + 8003980: 687b ldr r3, [r7, #4] + 8003982: 693a ldr r2, [r7, #16] + 8003984: 601a str r2, [r3, #0] /*--------------------- EXTI Mode Configuration ------------------------*/ /* Configure the External Interrupt or event for the current IO */ if ((GPIO_Init->Mode & EXTI_MODE) != 0x00u) - 8002f8e: 683b ldr r3, [r7, #0] - 8002f90: 685b ldr r3, [r3, #4] - 8002f92: f403 3340 and.w r3, r3, #196608 @ 0x30000 - 8002f96: 2b00 cmp r3, #0 - 8002f98: f000 80a6 beq.w 80030e8 + 8003986: 683b ldr r3, [r7, #0] + 8003988: 685b ldr r3, [r3, #4] + 800398a: f403 3340 and.w r3, r3, #196608 @ 0x30000 + 800398e: 2b00 cmp r3, #0 + 8003990: f000 80a6 beq.w 8003ae0 { /* Enable SYSCFG Clock */ __HAL_RCC_SYSCFG_CLK_ENABLE(); - 8002f9c: 4b5b ldr r3, [pc, #364] @ (800310c ) - 8002f9e: 6e1b ldr r3, [r3, #96] @ 0x60 - 8002fa0: 4a5a ldr r2, [pc, #360] @ (800310c ) - 8002fa2: f043 0301 orr.w r3, r3, #1 - 8002fa6: 6613 str r3, [r2, #96] @ 0x60 - 8002fa8: 4b58 ldr r3, [pc, #352] @ (800310c ) - 8002faa: 6e1b ldr r3, [r3, #96] @ 0x60 - 8002fac: f003 0301 and.w r3, r3, #1 - 8002fb0: 60bb str r3, [r7, #8] - 8002fb2: 68bb ldr r3, [r7, #8] + 8003994: 4b5b ldr r3, [pc, #364] @ (8003b04 ) + 8003996: 6e1b ldr r3, [r3, #96] @ 0x60 + 8003998: 4a5a ldr r2, [pc, #360] @ (8003b04 ) + 800399a: f043 0301 orr.w r3, r3, #1 + 800399e: 6613 str r3, [r2, #96] @ 0x60 + 80039a0: 4b58 ldr r3, [pc, #352] @ (8003b04 ) + 80039a2: 6e1b ldr r3, [r3, #96] @ 0x60 + 80039a4: f003 0301 and.w r3, r3, #1 + 80039a8: 60bb str r3, [r7, #8] + 80039aa: 68bb ldr r3, [r7, #8] temp = SYSCFG->EXTICR[position >> 2U]; - 8002fb4: 4a56 ldr r2, [pc, #344] @ (8003110 ) - 8002fb6: 697b ldr r3, [r7, #20] - 8002fb8: 089b lsrs r3, r3, #2 - 8002fba: 3302 adds r3, #2 - 8002fbc: f852 3023 ldr.w r3, [r2, r3, lsl #2] - 8002fc0: 613b str r3, [r7, #16] + 80039ac: 4a56 ldr r2, [pc, #344] @ (8003b08 ) + 80039ae: 697b ldr r3, [r7, #20] + 80039b0: 089b lsrs r3, r3, #2 + 80039b2: 3302 adds r3, #2 + 80039b4: f852 3023 ldr.w r3, [r2, r3, lsl #2] + 80039b8: 613b str r3, [r7, #16] temp &= ~(0x0FUL << (4U * (position & 0x03U))); - 8002fc2: 697b ldr r3, [r7, #20] - 8002fc4: f003 0303 and.w r3, r3, #3 - 8002fc8: 009b lsls r3, r3, #2 - 8002fca: 220f movs r2, #15 - 8002fcc: fa02 f303 lsl.w r3, r2, r3 - 8002fd0: 43db mvns r3, r3 - 8002fd2: 693a ldr r2, [r7, #16] - 8002fd4: 4013 ands r3, r2 - 8002fd6: 613b str r3, [r7, #16] + 80039ba: 697b ldr r3, [r7, #20] + 80039bc: f003 0303 and.w r3, r3, #3 + 80039c0: 009b lsls r3, r3, #2 + 80039c2: 220f movs r2, #15 + 80039c4: fa02 f303 lsl.w r3, r2, r3 + 80039c8: 43db mvns r3, r3 + 80039ca: 693a ldr r2, [r7, #16] + 80039cc: 4013 ands r3, r2 + 80039ce: 613b str r3, [r7, #16] temp |= (GPIO_GET_INDEX(GPIOx) << (4U * (position & 0x03U))); - 8002fd8: 687b ldr r3, [r7, #4] - 8002fda: f1b3 4f90 cmp.w r3, #1207959552 @ 0x48000000 - 8002fde: d01f beq.n 8003020 - 8002fe0: 687b ldr r3, [r7, #4] - 8002fe2: 4a4c ldr r2, [pc, #304] @ (8003114 ) - 8002fe4: 4293 cmp r3, r2 - 8002fe6: d019 beq.n 800301c - 8002fe8: 687b ldr r3, [r7, #4] - 8002fea: 4a4b ldr r2, [pc, #300] @ (8003118 ) - 8002fec: 4293 cmp r3, r2 - 8002fee: d013 beq.n 8003018 - 8002ff0: 687b ldr r3, [r7, #4] - 8002ff2: 4a4a ldr r2, [pc, #296] @ (800311c ) - 8002ff4: 4293 cmp r3, r2 - 8002ff6: d00d beq.n 8003014 - 8002ff8: 687b ldr r3, [r7, #4] - 8002ffa: 4a49 ldr r2, [pc, #292] @ (8003120 ) - 8002ffc: 4293 cmp r3, r2 - 8002ffe: d007 beq.n 8003010 - 8003000: 687b ldr r3, [r7, #4] - 8003002: 4a48 ldr r2, [pc, #288] @ (8003124 ) - 8003004: 4293 cmp r3, r2 - 8003006: d101 bne.n 800300c - 8003008: 2305 movs r3, #5 - 800300a: e00a b.n 8003022 - 800300c: 2306 movs r3, #6 - 800300e: e008 b.n 8003022 - 8003010: 2304 movs r3, #4 - 8003012: e006 b.n 8003022 - 8003014: 2303 movs r3, #3 - 8003016: e004 b.n 8003022 - 8003018: 2302 movs r3, #2 - 800301a: e002 b.n 8003022 - 800301c: 2301 movs r3, #1 - 800301e: e000 b.n 8003022 - 8003020: 2300 movs r3, #0 - 8003022: 697a ldr r2, [r7, #20] - 8003024: f002 0203 and.w r2, r2, #3 - 8003028: 0092 lsls r2, r2, #2 - 800302a: 4093 lsls r3, r2 - 800302c: 693a ldr r2, [r7, #16] - 800302e: 4313 orrs r3, r2 - 8003030: 613b str r3, [r7, #16] + 80039d0: 687b ldr r3, [r7, #4] + 80039d2: f1b3 4f90 cmp.w r3, #1207959552 @ 0x48000000 + 80039d6: d01f beq.n 8003a18 + 80039d8: 687b ldr r3, [r7, #4] + 80039da: 4a4c ldr r2, [pc, #304] @ (8003b0c ) + 80039dc: 4293 cmp r3, r2 + 80039de: d019 beq.n 8003a14 + 80039e0: 687b ldr r3, [r7, #4] + 80039e2: 4a4b ldr r2, [pc, #300] @ (8003b10 ) + 80039e4: 4293 cmp r3, r2 + 80039e6: d013 beq.n 8003a10 + 80039e8: 687b ldr r3, [r7, #4] + 80039ea: 4a4a ldr r2, [pc, #296] @ (8003b14 ) + 80039ec: 4293 cmp r3, r2 + 80039ee: d00d beq.n 8003a0c + 80039f0: 687b ldr r3, [r7, #4] + 80039f2: 4a49 ldr r2, [pc, #292] @ (8003b18 ) + 80039f4: 4293 cmp r3, r2 + 80039f6: d007 beq.n 8003a08 + 80039f8: 687b ldr r3, [r7, #4] + 80039fa: 4a48 ldr r2, [pc, #288] @ (8003b1c ) + 80039fc: 4293 cmp r3, r2 + 80039fe: d101 bne.n 8003a04 + 8003a00: 2305 movs r3, #5 + 8003a02: e00a b.n 8003a1a + 8003a04: 2306 movs r3, #6 + 8003a06: e008 b.n 8003a1a + 8003a08: 2304 movs r3, #4 + 8003a0a: e006 b.n 8003a1a + 8003a0c: 2303 movs r3, #3 + 8003a0e: e004 b.n 8003a1a + 8003a10: 2302 movs r3, #2 + 8003a12: e002 b.n 8003a1a + 8003a14: 2301 movs r3, #1 + 8003a16: e000 b.n 8003a1a + 8003a18: 2300 movs r3, #0 + 8003a1a: 697a ldr r2, [r7, #20] + 8003a1c: f002 0203 and.w r2, r2, #3 + 8003a20: 0092 lsls r2, r2, #2 + 8003a22: 4093 lsls r3, r2 + 8003a24: 693a ldr r2, [r7, #16] + 8003a26: 4313 orrs r3, r2 + 8003a28: 613b str r3, [r7, #16] SYSCFG->EXTICR[position >> 2U] = temp; - 8003032: 4937 ldr r1, [pc, #220] @ (8003110 ) - 8003034: 697b ldr r3, [r7, #20] - 8003036: 089b lsrs r3, r3, #2 - 8003038: 3302 adds r3, #2 - 800303a: 693a ldr r2, [r7, #16] - 800303c: f841 2023 str.w r2, [r1, r3, lsl #2] + 8003a2a: 4937 ldr r1, [pc, #220] @ (8003b08 ) + 8003a2c: 697b ldr r3, [r7, #20] + 8003a2e: 089b lsrs r3, r3, #2 + 8003a30: 3302 adds r3, #2 + 8003a32: 693a ldr r2, [r7, #16] + 8003a34: f841 2023 str.w r2, [r1, r3, lsl #2] /* Clear Rising Falling edge configuration */ temp = EXTI->RTSR1; - 8003040: 4b39 ldr r3, [pc, #228] @ (8003128 ) - 8003042: 689b ldr r3, [r3, #8] - 8003044: 613b str r3, [r7, #16] + 8003a38: 4b39 ldr r3, [pc, #228] @ (8003b20 ) + 8003a3a: 689b ldr r3, [r3, #8] + 8003a3c: 613b str r3, [r7, #16] temp &= ~(iocurrent); - 8003046: 68fb ldr r3, [r7, #12] - 8003048: 43db mvns r3, r3 - 800304a: 693a ldr r2, [r7, #16] - 800304c: 4013 ands r3, r2 - 800304e: 613b str r3, [r7, #16] + 8003a3e: 68fb ldr r3, [r7, #12] + 8003a40: 43db mvns r3, r3 + 8003a42: 693a ldr r2, [r7, #16] + 8003a44: 4013 ands r3, r2 + 8003a46: 613b str r3, [r7, #16] if ((GPIO_Init->Mode & TRIGGER_RISING) != 0x00U) - 8003050: 683b ldr r3, [r7, #0] - 8003052: 685b ldr r3, [r3, #4] - 8003054: f403 1380 and.w r3, r3, #1048576 @ 0x100000 - 8003058: 2b00 cmp r3, #0 - 800305a: d003 beq.n 8003064 + 8003a48: 683b ldr r3, [r7, #0] + 8003a4a: 685b ldr r3, [r3, #4] + 8003a4c: f403 1380 and.w r3, r3, #1048576 @ 0x100000 + 8003a50: 2b00 cmp r3, #0 + 8003a52: d003 beq.n 8003a5c { temp |= iocurrent; - 800305c: 693a ldr r2, [r7, #16] - 800305e: 68fb ldr r3, [r7, #12] - 8003060: 4313 orrs r3, r2 - 8003062: 613b str r3, [r7, #16] + 8003a54: 693a ldr r2, [r7, #16] + 8003a56: 68fb ldr r3, [r7, #12] + 8003a58: 4313 orrs r3, r2 + 8003a5a: 613b str r3, [r7, #16] } EXTI->RTSR1 = temp; - 8003064: 4a30 ldr r2, [pc, #192] @ (8003128 ) - 8003066: 693b ldr r3, [r7, #16] - 8003068: 6093 str r3, [r2, #8] + 8003a5c: 4a30 ldr r2, [pc, #192] @ (8003b20 ) + 8003a5e: 693b ldr r3, [r7, #16] + 8003a60: 6093 str r3, [r2, #8] temp = EXTI->FTSR1; - 800306a: 4b2f ldr r3, [pc, #188] @ (8003128 ) - 800306c: 68db ldr r3, [r3, #12] - 800306e: 613b str r3, [r7, #16] + 8003a62: 4b2f ldr r3, [pc, #188] @ (8003b20 ) + 8003a64: 68db ldr r3, [r3, #12] + 8003a66: 613b str r3, [r7, #16] temp &= ~(iocurrent); - 8003070: 68fb ldr r3, [r7, #12] - 8003072: 43db mvns r3, r3 - 8003074: 693a ldr r2, [r7, #16] - 8003076: 4013 ands r3, r2 - 8003078: 613b str r3, [r7, #16] + 8003a68: 68fb ldr r3, [r7, #12] + 8003a6a: 43db mvns r3, r3 + 8003a6c: 693a ldr r2, [r7, #16] + 8003a6e: 4013 ands r3, r2 + 8003a70: 613b str r3, [r7, #16] if ((GPIO_Init->Mode & TRIGGER_FALLING) != 0x00U) - 800307a: 683b ldr r3, [r7, #0] - 800307c: 685b ldr r3, [r3, #4] - 800307e: f403 1300 and.w r3, r3, #2097152 @ 0x200000 - 8003082: 2b00 cmp r3, #0 - 8003084: d003 beq.n 800308e + 8003a72: 683b ldr r3, [r7, #0] + 8003a74: 685b ldr r3, [r3, #4] + 8003a76: f403 1300 and.w r3, r3, #2097152 @ 0x200000 + 8003a7a: 2b00 cmp r3, #0 + 8003a7c: d003 beq.n 8003a86 { temp |= iocurrent; - 8003086: 693a ldr r2, [r7, #16] - 8003088: 68fb ldr r3, [r7, #12] - 800308a: 4313 orrs r3, r2 - 800308c: 613b str r3, [r7, #16] + 8003a7e: 693a ldr r2, [r7, #16] + 8003a80: 68fb ldr r3, [r7, #12] + 8003a82: 4313 orrs r3, r2 + 8003a84: 613b str r3, [r7, #16] } EXTI->FTSR1 = temp; - 800308e: 4a26 ldr r2, [pc, #152] @ (8003128 ) - 8003090: 693b ldr r3, [r7, #16] - 8003092: 60d3 str r3, [r2, #12] + 8003a86: 4a26 ldr r2, [pc, #152] @ (8003b20 ) + 8003a88: 693b ldr r3, [r7, #16] + 8003a8a: 60d3 str r3, [r2, #12] temp = EXTI->EMR1; - 8003094: 4b24 ldr r3, [pc, #144] @ (8003128 ) - 8003096: 685b ldr r3, [r3, #4] - 8003098: 613b str r3, [r7, #16] + 8003a8c: 4b24 ldr r3, [pc, #144] @ (8003b20 ) + 8003a8e: 685b ldr r3, [r3, #4] + 8003a90: 613b str r3, [r7, #16] temp &= ~(iocurrent); - 800309a: 68fb ldr r3, [r7, #12] - 800309c: 43db mvns r3, r3 - 800309e: 693a ldr r2, [r7, #16] - 80030a0: 4013 ands r3, r2 - 80030a2: 613b str r3, [r7, #16] + 8003a92: 68fb ldr r3, [r7, #12] + 8003a94: 43db mvns r3, r3 + 8003a96: 693a ldr r2, [r7, #16] + 8003a98: 4013 ands r3, r2 + 8003a9a: 613b str r3, [r7, #16] if ((GPIO_Init->Mode & EXTI_EVT) != 0x00U) - 80030a4: 683b ldr r3, [r7, #0] - 80030a6: 685b ldr r3, [r3, #4] - 80030a8: f403 3300 and.w r3, r3, #131072 @ 0x20000 - 80030ac: 2b00 cmp r3, #0 - 80030ae: d003 beq.n 80030b8 + 8003a9c: 683b ldr r3, [r7, #0] + 8003a9e: 685b ldr r3, [r3, #4] + 8003aa0: f403 3300 and.w r3, r3, #131072 @ 0x20000 + 8003aa4: 2b00 cmp r3, #0 + 8003aa6: d003 beq.n 8003ab0 { temp |= iocurrent; - 80030b0: 693a ldr r2, [r7, #16] - 80030b2: 68fb ldr r3, [r7, #12] - 80030b4: 4313 orrs r3, r2 - 80030b6: 613b str r3, [r7, #16] + 8003aa8: 693a ldr r2, [r7, #16] + 8003aaa: 68fb ldr r3, [r7, #12] + 8003aac: 4313 orrs r3, r2 + 8003aae: 613b str r3, [r7, #16] } EXTI->EMR1 = temp; - 80030b8: 4a1b ldr r2, [pc, #108] @ (8003128 ) - 80030ba: 693b ldr r3, [r7, #16] - 80030bc: 6053 str r3, [r2, #4] + 8003ab0: 4a1b ldr r2, [pc, #108] @ (8003b20 ) + 8003ab2: 693b ldr r3, [r7, #16] + 8003ab4: 6053 str r3, [r2, #4] /* Clear EXTI line configuration */ temp = EXTI->IMR1; - 80030be: 4b1a ldr r3, [pc, #104] @ (8003128 ) - 80030c0: 681b ldr r3, [r3, #0] - 80030c2: 613b str r3, [r7, #16] + 8003ab6: 4b1a ldr r3, [pc, #104] @ (8003b20 ) + 8003ab8: 681b ldr r3, [r3, #0] + 8003aba: 613b str r3, [r7, #16] temp &= ~(iocurrent); - 80030c4: 68fb ldr r3, [r7, #12] - 80030c6: 43db mvns r3, r3 - 80030c8: 693a ldr r2, [r7, #16] - 80030ca: 4013 ands r3, r2 - 80030cc: 613b str r3, [r7, #16] + 8003abc: 68fb ldr r3, [r7, #12] + 8003abe: 43db mvns r3, r3 + 8003ac0: 693a ldr r2, [r7, #16] + 8003ac2: 4013 ands r3, r2 + 8003ac4: 613b str r3, [r7, #16] if ((GPIO_Init->Mode & EXTI_IT) != 0x00U) - 80030ce: 683b ldr r3, [r7, #0] - 80030d0: 685b ldr r3, [r3, #4] - 80030d2: f403 3380 and.w r3, r3, #65536 @ 0x10000 - 80030d6: 2b00 cmp r3, #0 - 80030d8: d003 beq.n 80030e2 + 8003ac6: 683b ldr r3, [r7, #0] + 8003ac8: 685b ldr r3, [r3, #4] + 8003aca: f403 3380 and.w r3, r3, #65536 @ 0x10000 + 8003ace: 2b00 cmp r3, #0 + 8003ad0: d003 beq.n 8003ada { temp |= iocurrent; - 80030da: 693a ldr r2, [r7, #16] - 80030dc: 68fb ldr r3, [r7, #12] - 80030de: 4313 orrs r3, r2 - 80030e0: 613b str r3, [r7, #16] + 8003ad2: 693a ldr r2, [r7, #16] + 8003ad4: 68fb ldr r3, [r7, #12] + 8003ad6: 4313 orrs r3, r2 + 8003ad8: 613b str r3, [r7, #16] } EXTI->IMR1 = temp; - 80030e2: 4a11 ldr r2, [pc, #68] @ (8003128 ) - 80030e4: 693b ldr r3, [r7, #16] - 80030e6: 6013 str r3, [r2, #0] + 8003ada: 4a11 ldr r2, [pc, #68] @ (8003b20 ) + 8003adc: 693b ldr r3, [r7, #16] + 8003ade: 6013 str r3, [r2, #0] } } position++; - 80030e8: 697b ldr r3, [r7, #20] - 80030ea: 3301 adds r3, #1 - 80030ec: 617b str r3, [r7, #20] + 8003ae0: 697b ldr r3, [r7, #20] + 8003ae2: 3301 adds r3, #1 + 8003ae4: 617b str r3, [r7, #20] while (((GPIO_Init->Pin) >> position) != 0U) - 80030ee: 683b ldr r3, [r7, #0] - 80030f0: 681a ldr r2, [r3, #0] - 80030f2: 697b ldr r3, [r7, #20] - 80030f4: fa22 f303 lsr.w r3, r2, r3 - 80030f8: 2b00 cmp r3, #0 - 80030fa: f47f ae9d bne.w 8002e38 + 8003ae6: 683b ldr r3, [r7, #0] + 8003ae8: 681a ldr r2, [r3, #0] + 8003aea: 697b ldr r3, [r7, #20] + 8003aec: fa22 f303 lsr.w r3, r2, r3 + 8003af0: 2b00 cmp r3, #0 + 8003af2: f47f ae9d bne.w 8003830 } } - 80030fe: bf00 nop - 8003100: bf00 nop - 8003102: 371c adds r7, #28 - 8003104: 46bd mov sp, r7 - 8003106: f85d 7b04 ldr.w r7, [sp], #4 - 800310a: 4770 bx lr - 800310c: 40021000 .word 0x40021000 - 8003110: 40010000 .word 0x40010000 - 8003114: 48000400 .word 0x48000400 - 8003118: 48000800 .word 0x48000800 - 800311c: 48000c00 .word 0x48000c00 - 8003120: 48001000 .word 0x48001000 - 8003124: 48001400 .word 0x48001400 - 8003128: 40010400 .word 0x40010400 + 8003af6: bf00 nop + 8003af8: bf00 nop + 8003afa: 371c adds r7, #28 + 8003afc: 46bd mov sp, r7 + 8003afe: f85d 7b04 ldr.w r7, [sp], #4 + 8003b02: 4770 bx lr + 8003b04: 40021000 .word 0x40021000 + 8003b08: 40010000 .word 0x40010000 + 8003b0c: 48000400 .word 0x48000400 + 8003b10: 48000800 .word 0x48000800 + 8003b14: 48000c00 .word 0x48000c00 + 8003b18: 48001000 .word 0x48001000 + 8003b1c: 48001400 .word 0x48001400 + 8003b20: 40010400 .word 0x40010400 -0800312c : +08003b24 : * @arg GPIO_PIN_RESET: to clear the port pin * @arg GPIO_PIN_SET: to set the port pin * @retval None */ void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState) { - 800312c: b480 push {r7} - 800312e: b083 sub sp, #12 - 8003130: af00 add r7, sp, #0 - 8003132: 6078 str r0, [r7, #4] - 8003134: 460b mov r3, r1 - 8003136: 807b strh r3, [r7, #2] - 8003138: 4613 mov r3, r2 - 800313a: 707b strb r3, [r7, #1] + 8003b24: b480 push {r7} + 8003b26: b083 sub sp, #12 + 8003b28: af00 add r7, sp, #0 + 8003b2a: 6078 str r0, [r7, #4] + 8003b2c: 460b mov r3, r1 + 8003b2e: 807b strh r3, [r7, #2] + 8003b30: 4613 mov r3, r2 + 8003b32: 707b strb r3, [r7, #1] /* Check the parameters */ assert_param(IS_GPIO_PIN(GPIO_Pin)); assert_param(IS_GPIO_PIN_ACTION(PinState)); if (PinState != GPIO_PIN_RESET) - 800313c: 787b ldrb r3, [r7, #1] - 800313e: 2b00 cmp r3, #0 - 8003140: d003 beq.n 800314a + 8003b34: 787b ldrb r3, [r7, #1] + 8003b36: 2b00 cmp r3, #0 + 8003b38: d003 beq.n 8003b42 { GPIOx->BSRR = (uint32_t)GPIO_Pin; - 8003142: 887a ldrh r2, [r7, #2] - 8003144: 687b ldr r3, [r7, #4] - 8003146: 619a str r2, [r3, #24] + 8003b3a: 887a ldrh r2, [r7, #2] + 8003b3c: 687b ldr r3, [r7, #4] + 8003b3e: 619a str r2, [r3, #24] } else { GPIOx->BRR = (uint32_t)GPIO_Pin; } } - 8003148: e002 b.n 8003150 + 8003b40: e002 b.n 8003b48 GPIOx->BRR = (uint32_t)GPIO_Pin; - 800314a: 887a ldrh r2, [r7, #2] - 800314c: 687b ldr r3, [r7, #4] - 800314e: 629a str r2, [r3, #40] @ 0x28 + 8003b42: 887a ldrh r2, [r7, #2] + 8003b44: 687b ldr r3, [r7, #4] + 8003b46: 629a str r2, [r3, #40] @ 0x28 } - 8003150: bf00 nop - 8003152: 370c adds r7, #12 - 8003154: 46bd mov sp, r7 - 8003156: f85d 7b04 ldr.w r7, [sp], #4 - 800315a: 4770 bx lr + 8003b48: bf00 nop + 8003b4a: 370c adds r7, #12 + 8003b4c: 46bd mov sp, r7 + 8003b4e: f85d 7b04 ldr.w r7, [sp], #4 + 8003b52: 4770 bx lr -0800315c : +08003b54 : * cleared before returning the status. If the flag is not cleared within * 50 microseconds, HAL_TIMEOUT status is reported. * @retval HAL Status */ HAL_StatusTypeDef HAL_PWREx_ControlVoltageScaling(uint32_t VoltageScaling) { - 800315c: b480 push {r7} - 800315e: b085 sub sp, #20 - 8003160: af00 add r7, sp, #0 - 8003162: 6078 str r0, [r7, #4] + 8003b54: b480 push {r7} + 8003b56: b085 sub sp, #20 + 8003b58: af00 add r7, sp, #0 + 8003b5a: 6078 str r0, [r7, #4] uint32_t wait_loop_index; assert_param(IS_PWR_VOLTAGE_SCALING_RANGE(VoltageScaling)); if (VoltageScaling == PWR_REGULATOR_VOLTAGE_SCALE1_BOOST) - 8003164: 687b ldr r3, [r7, #4] - 8003166: 2b00 cmp r3, #0 - 8003168: d141 bne.n 80031ee + 8003b5c: 687b ldr r3, [r7, #4] + 8003b5e: 2b00 cmp r3, #0 + 8003b60: d141 bne.n 8003be6 { /* If current range is range 2 */ if (READ_BIT(PWR->CR1, PWR_CR1_VOS) == PWR_REGULATOR_VOLTAGE_SCALE2) - 800316a: 4b4b ldr r3, [pc, #300] @ (8003298 ) - 800316c: 681b ldr r3, [r3, #0] - 800316e: f403 63c0 and.w r3, r3, #1536 @ 0x600 - 8003172: f5b3 6f80 cmp.w r3, #1024 @ 0x400 - 8003176: d131 bne.n 80031dc + 8003b62: 4b4b ldr r3, [pc, #300] @ (8003c90 ) + 8003b64: 681b ldr r3, [r3, #0] + 8003b66: f403 63c0 and.w r3, r3, #1536 @ 0x600 + 8003b6a: f5b3 6f80 cmp.w r3, #1024 @ 0x400 + 8003b6e: d131 bne.n 8003bd4 { /* Make sure Range 1 Boost is enabled */ CLEAR_BIT(PWR->CR5, PWR_CR5_R1MODE); - 8003178: 4b47 ldr r3, [pc, #284] @ (8003298 ) - 800317a: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80 - 800317e: 4a46 ldr r2, [pc, #280] @ (8003298 ) - 8003180: f423 7380 bic.w r3, r3, #256 @ 0x100 - 8003184: f8c2 3080 str.w r3, [r2, #128] @ 0x80 + 8003b70: 4b47 ldr r3, [pc, #284] @ (8003c90 ) + 8003b72: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80 + 8003b76: 4a46 ldr r2, [pc, #280] @ (8003c90 ) + 8003b78: f423 7380 bic.w r3, r3, #256 @ 0x100 + 8003b7c: f8c2 3080 str.w r3, [r2, #128] @ 0x80 /* Set Range 1 */ MODIFY_REG(PWR->CR1, PWR_CR1_VOS, PWR_REGULATOR_VOLTAGE_SCALE1); - 8003188: 4b43 ldr r3, [pc, #268] @ (8003298 ) - 800318a: 681b ldr r3, [r3, #0] - 800318c: f423 63c0 bic.w r3, r3, #1536 @ 0x600 - 8003190: 4a41 ldr r2, [pc, #260] @ (8003298 ) - 8003192: f443 7300 orr.w r3, r3, #512 @ 0x200 - 8003196: 6013 str r3, [r2, #0] + 8003b80: 4b43 ldr r3, [pc, #268] @ (8003c90 ) + 8003b82: 681b ldr r3, [r3, #0] + 8003b84: f423 63c0 bic.w r3, r3, #1536 @ 0x600 + 8003b88: 4a41 ldr r2, [pc, #260] @ (8003c90 ) + 8003b8a: f443 7300 orr.w r3, r3, #512 @ 0x200 + 8003b8e: 6013 str r3, [r2, #0] /* Wait until VOSF is cleared */ wait_loop_index = ((PWR_FLAG_SETTING_DELAY_US * SystemCoreClock) / 1000000U) + 1U; - 8003198: 4b40 ldr r3, [pc, #256] @ (800329c ) - 800319a: 681b ldr r3, [r3, #0] - 800319c: 2232 movs r2, #50 @ 0x32 - 800319e: fb02 f303 mul.w r3, r2, r3 - 80031a2: 4a3f ldr r2, [pc, #252] @ (80032a0 ) - 80031a4: fba2 2303 umull r2, r3, r2, r3 - 80031a8: 0c9b lsrs r3, r3, #18 - 80031aa: 3301 adds r3, #1 - 80031ac: 60fb str r3, [r7, #12] + 8003b90: 4b40 ldr r3, [pc, #256] @ (8003c94 ) + 8003b92: 681b ldr r3, [r3, #0] + 8003b94: 2232 movs r2, #50 @ 0x32 + 8003b96: fb02 f303 mul.w r3, r2, r3 + 8003b9a: 4a3f ldr r2, [pc, #252] @ (8003c98 ) + 8003b9c: fba2 2303 umull r2, r3, r2, r3 + 8003ba0: 0c9b lsrs r3, r3, #18 + 8003ba2: 3301 adds r3, #1 + 8003ba4: 60fb str r3, [r7, #12] while ((HAL_IS_BIT_SET(PWR->SR2, PWR_SR2_VOSF)) && (wait_loop_index != 0U)) - 80031ae: e002 b.n 80031b6 + 8003ba6: e002 b.n 8003bae { wait_loop_index--; - 80031b0: 68fb ldr r3, [r7, #12] - 80031b2: 3b01 subs r3, #1 - 80031b4: 60fb str r3, [r7, #12] + 8003ba8: 68fb ldr r3, [r7, #12] + 8003baa: 3b01 subs r3, #1 + 8003bac: 60fb str r3, [r7, #12] while ((HAL_IS_BIT_SET(PWR->SR2, PWR_SR2_VOSF)) && (wait_loop_index != 0U)) - 80031b6: 4b38 ldr r3, [pc, #224] @ (8003298 ) - 80031b8: 695b ldr r3, [r3, #20] - 80031ba: f403 6380 and.w r3, r3, #1024 @ 0x400 - 80031be: f5b3 6f80 cmp.w r3, #1024 @ 0x400 - 80031c2: d102 bne.n 80031ca - 80031c4: 68fb ldr r3, [r7, #12] - 80031c6: 2b00 cmp r3, #0 - 80031c8: d1f2 bne.n 80031b0 + 8003bae: 4b38 ldr r3, [pc, #224] @ (8003c90 ) + 8003bb0: 695b ldr r3, [r3, #20] + 8003bb2: f403 6380 and.w r3, r3, #1024 @ 0x400 + 8003bb6: f5b3 6f80 cmp.w r3, #1024 @ 0x400 + 8003bba: d102 bne.n 8003bc2 + 8003bbc: 68fb ldr r3, [r7, #12] + 8003bbe: 2b00 cmp r3, #0 + 8003bc0: d1f2 bne.n 8003ba8 } if (HAL_IS_BIT_SET(PWR->SR2, PWR_SR2_VOSF)) - 80031ca: 4b33 ldr r3, [pc, #204] @ (8003298 ) - 80031cc: 695b ldr r3, [r3, #20] - 80031ce: f403 6380 and.w r3, r3, #1024 @ 0x400 - 80031d2: f5b3 6f80 cmp.w r3, #1024 @ 0x400 - 80031d6: d158 bne.n 800328a + 8003bc2: 4b33 ldr r3, [pc, #204] @ (8003c90 ) + 8003bc4: 695b ldr r3, [r3, #20] + 8003bc6: f403 6380 and.w r3, r3, #1024 @ 0x400 + 8003bca: f5b3 6f80 cmp.w r3, #1024 @ 0x400 + 8003bce: d158 bne.n 8003c82 { return HAL_TIMEOUT; - 80031d8: 2303 movs r3, #3 - 80031da: e057 b.n 800328c + 8003bd0: 2303 movs r3, #3 + 8003bd2: e057 b.n 8003c84 } /* If current range is range 1 normal or boost mode */ else { /* Enable Range 1 Boost (no issue if bit already reset) */ CLEAR_BIT(PWR->CR5, PWR_CR5_R1MODE); - 80031dc: 4b2e ldr r3, [pc, #184] @ (8003298 ) - 80031de: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80 - 80031e2: 4a2d ldr r2, [pc, #180] @ (8003298 ) - 80031e4: f423 7380 bic.w r3, r3, #256 @ 0x100 - 80031e8: f8c2 3080 str.w r3, [r2, #128] @ 0x80 - 80031ec: e04d b.n 800328a + 8003bd4: 4b2e ldr r3, [pc, #184] @ (8003c90 ) + 8003bd6: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80 + 8003bda: 4a2d ldr r2, [pc, #180] @ (8003c90 ) + 8003bdc: f423 7380 bic.w r3, r3, #256 @ 0x100 + 8003be0: f8c2 3080 str.w r3, [r2, #128] @ 0x80 + 8003be4: e04d b.n 8003c82 } } else if (VoltageScaling == PWR_REGULATOR_VOLTAGE_SCALE1) - 80031ee: 687b ldr r3, [r7, #4] - 80031f0: f5b3 7f00 cmp.w r3, #512 @ 0x200 - 80031f4: d141 bne.n 800327a + 8003be6: 687b ldr r3, [r7, #4] + 8003be8: f5b3 7f00 cmp.w r3, #512 @ 0x200 + 8003bec: d141 bne.n 8003c72 { /* If current range is range 2 */ if (READ_BIT(PWR->CR1, PWR_CR1_VOS) == PWR_REGULATOR_VOLTAGE_SCALE2) - 80031f6: 4b28 ldr r3, [pc, #160] @ (8003298 ) - 80031f8: 681b ldr r3, [r3, #0] - 80031fa: f403 63c0 and.w r3, r3, #1536 @ 0x600 - 80031fe: f5b3 6f80 cmp.w r3, #1024 @ 0x400 - 8003202: d131 bne.n 8003268 + 8003bee: 4b28 ldr r3, [pc, #160] @ (8003c90 ) + 8003bf0: 681b ldr r3, [r3, #0] + 8003bf2: f403 63c0 and.w r3, r3, #1536 @ 0x600 + 8003bf6: f5b3 6f80 cmp.w r3, #1024 @ 0x400 + 8003bfa: d131 bne.n 8003c60 { /* Make sure Range 1 Boost is disabled */ SET_BIT(PWR->CR5, PWR_CR5_R1MODE); - 8003204: 4b24 ldr r3, [pc, #144] @ (8003298 ) - 8003206: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80 - 800320a: 4a23 ldr r2, [pc, #140] @ (8003298 ) - 800320c: f443 7380 orr.w r3, r3, #256 @ 0x100 - 8003210: f8c2 3080 str.w r3, [r2, #128] @ 0x80 + 8003bfc: 4b24 ldr r3, [pc, #144] @ (8003c90 ) + 8003bfe: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80 + 8003c02: 4a23 ldr r2, [pc, #140] @ (8003c90 ) + 8003c04: f443 7380 orr.w r3, r3, #256 @ 0x100 + 8003c08: f8c2 3080 str.w r3, [r2, #128] @ 0x80 /* Set Range 1 */ MODIFY_REG(PWR->CR1, PWR_CR1_VOS, PWR_REGULATOR_VOLTAGE_SCALE1); - 8003214: 4b20 ldr r3, [pc, #128] @ (8003298 ) - 8003216: 681b ldr r3, [r3, #0] - 8003218: f423 63c0 bic.w r3, r3, #1536 @ 0x600 - 800321c: 4a1e ldr r2, [pc, #120] @ (8003298 ) - 800321e: f443 7300 orr.w r3, r3, #512 @ 0x200 - 8003222: 6013 str r3, [r2, #0] + 8003c0c: 4b20 ldr r3, [pc, #128] @ (8003c90 ) + 8003c0e: 681b ldr r3, [r3, #0] + 8003c10: f423 63c0 bic.w r3, r3, #1536 @ 0x600 + 8003c14: 4a1e ldr r2, [pc, #120] @ (8003c90 ) + 8003c16: f443 7300 orr.w r3, r3, #512 @ 0x200 + 8003c1a: 6013 str r3, [r2, #0] /* Wait until VOSF is cleared */ wait_loop_index = ((PWR_FLAG_SETTING_DELAY_US * SystemCoreClock) / 1000000U) + 1U; - 8003224: 4b1d ldr r3, [pc, #116] @ (800329c ) - 8003226: 681b ldr r3, [r3, #0] - 8003228: 2232 movs r2, #50 @ 0x32 - 800322a: fb02 f303 mul.w r3, r2, r3 - 800322e: 4a1c ldr r2, [pc, #112] @ (80032a0 ) - 8003230: fba2 2303 umull r2, r3, r2, r3 - 8003234: 0c9b lsrs r3, r3, #18 - 8003236: 3301 adds r3, #1 - 8003238: 60fb str r3, [r7, #12] + 8003c1c: 4b1d ldr r3, [pc, #116] @ (8003c94 ) + 8003c1e: 681b ldr r3, [r3, #0] + 8003c20: 2232 movs r2, #50 @ 0x32 + 8003c22: fb02 f303 mul.w r3, r2, r3 + 8003c26: 4a1c ldr r2, [pc, #112] @ (8003c98 ) + 8003c28: fba2 2303 umull r2, r3, r2, r3 + 8003c2c: 0c9b lsrs r3, r3, #18 + 8003c2e: 3301 adds r3, #1 + 8003c30: 60fb str r3, [r7, #12] while ((HAL_IS_BIT_SET(PWR->SR2, PWR_SR2_VOSF)) && (wait_loop_index != 0U)) - 800323a: e002 b.n 8003242 + 8003c32: e002 b.n 8003c3a { wait_loop_index--; - 800323c: 68fb ldr r3, [r7, #12] - 800323e: 3b01 subs r3, #1 - 8003240: 60fb str r3, [r7, #12] + 8003c34: 68fb ldr r3, [r7, #12] + 8003c36: 3b01 subs r3, #1 + 8003c38: 60fb str r3, [r7, #12] while ((HAL_IS_BIT_SET(PWR->SR2, PWR_SR2_VOSF)) && (wait_loop_index != 0U)) - 8003242: 4b15 ldr r3, [pc, #84] @ (8003298 ) - 8003244: 695b ldr r3, [r3, #20] - 8003246: f403 6380 and.w r3, r3, #1024 @ 0x400 - 800324a: f5b3 6f80 cmp.w r3, #1024 @ 0x400 - 800324e: d102 bne.n 8003256 - 8003250: 68fb ldr r3, [r7, #12] - 8003252: 2b00 cmp r3, #0 - 8003254: d1f2 bne.n 800323c + 8003c3a: 4b15 ldr r3, [pc, #84] @ (8003c90 ) + 8003c3c: 695b ldr r3, [r3, #20] + 8003c3e: f403 6380 and.w r3, r3, #1024 @ 0x400 + 8003c42: f5b3 6f80 cmp.w r3, #1024 @ 0x400 + 8003c46: d102 bne.n 8003c4e + 8003c48: 68fb ldr r3, [r7, #12] + 8003c4a: 2b00 cmp r3, #0 + 8003c4c: d1f2 bne.n 8003c34 } if (HAL_IS_BIT_SET(PWR->SR2, PWR_SR2_VOSF)) - 8003256: 4b10 ldr r3, [pc, #64] @ (8003298 ) - 8003258: 695b ldr r3, [r3, #20] - 800325a: f403 6380 and.w r3, r3, #1024 @ 0x400 - 800325e: f5b3 6f80 cmp.w r3, #1024 @ 0x400 - 8003262: d112 bne.n 800328a + 8003c4e: 4b10 ldr r3, [pc, #64] @ (8003c90 ) + 8003c50: 695b ldr r3, [r3, #20] + 8003c52: f403 6380 and.w r3, r3, #1024 @ 0x400 + 8003c56: f5b3 6f80 cmp.w r3, #1024 @ 0x400 + 8003c5a: d112 bne.n 8003c82 { return HAL_TIMEOUT; - 8003264: 2303 movs r3, #3 - 8003266: e011 b.n 800328c + 8003c5c: 2303 movs r3, #3 + 8003c5e: e011 b.n 8003c84 } /* If current range is range 1 normal or boost mode */ else { /* Disable Range 1 Boost (no issue if bit already set) */ SET_BIT(PWR->CR5, PWR_CR5_R1MODE); - 8003268: 4b0b ldr r3, [pc, #44] @ (8003298 ) - 800326a: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80 - 800326e: 4a0a ldr r2, [pc, #40] @ (8003298 ) - 8003270: f443 7380 orr.w r3, r3, #256 @ 0x100 - 8003274: f8c2 3080 str.w r3, [r2, #128] @ 0x80 - 8003278: e007 b.n 800328a + 8003c60: 4b0b ldr r3, [pc, #44] @ (8003c90 ) + 8003c62: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80 + 8003c66: 4a0a ldr r2, [pc, #40] @ (8003c90 ) + 8003c68: f443 7380 orr.w r3, r3, #256 @ 0x100 + 8003c6c: f8c2 3080 str.w r3, [r2, #128] @ 0x80 + 8003c70: e007 b.n 8003c82 } } else { /* Set Range 2 */ MODIFY_REG(PWR->CR1, PWR_CR1_VOS, PWR_REGULATOR_VOLTAGE_SCALE2); - 800327a: 4b07 ldr r3, [pc, #28] @ (8003298 ) - 800327c: 681b ldr r3, [r3, #0] - 800327e: f423 63c0 bic.w r3, r3, #1536 @ 0x600 - 8003282: 4a05 ldr r2, [pc, #20] @ (8003298 ) - 8003284: f443 6380 orr.w r3, r3, #1024 @ 0x400 - 8003288: 6013 str r3, [r2, #0] + 8003c72: 4b07 ldr r3, [pc, #28] @ (8003c90 ) + 8003c74: 681b ldr r3, [r3, #0] + 8003c76: f423 63c0 bic.w r3, r3, #1536 @ 0x600 + 8003c7a: 4a05 ldr r2, [pc, #20] @ (8003c90 ) + 8003c7c: f443 6380 orr.w r3, r3, #1024 @ 0x400 + 8003c80: 6013 str r3, [r2, #0] /* No need to wait for VOSF to be cleared for this transition */ /* PWR_CR5_R1MODE bit setting has no effect in Range 2 */ } return HAL_OK; - 800328a: 2300 movs r3, #0 + 8003c82: 2300 movs r3, #0 } - 800328c: 4618 mov r0, r3 - 800328e: 3714 adds r7, #20 - 8003290: 46bd mov sp, r7 - 8003292: f85d 7b04 ldr.w r7, [sp], #4 - 8003296: 4770 bx lr - 8003298: 40007000 .word 0x40007000 - 800329c: 20000000 .word 0x20000000 - 80032a0: 431bde83 .word 0x431bde83 + 8003c84: 4618 mov r0, r3 + 8003c86: 3714 adds r7, #20 + 8003c88: 46bd mov sp, r7 + 8003c8a: f85d 7b04 ldr.w r7, [sp], #4 + 8003c8e: 4770 bx lr + 8003c90: 40007000 .word 0x40007000 + 8003c94: 20000014 .word 0x20000014 + 8003c98: 431bde83 .word 0x431bde83 -080032a4 : +08003c9c : * or to hand over control to the UCPD (which should therefore be * initialized before doing the disable). * @retval None */ void HAL_PWREx_DisableUCPDDeadBattery(void) { - 80032a4: b480 push {r7} - 80032a6: af00 add r7, sp, #0 + 8003c9c: b480 push {r7} + 8003c9e: af00 add r7, sp, #0 /* Write 1 to disable the USB Type-C dead battery pull-down behavior */ SET_BIT(PWR->CR3, PWR_CR3_UCPD_DBDIS); - 80032a8: 4b05 ldr r3, [pc, #20] @ (80032c0 ) - 80032aa: 689b ldr r3, [r3, #8] - 80032ac: 4a04 ldr r2, [pc, #16] @ (80032c0 ) - 80032ae: f443 4380 orr.w r3, r3, #16384 @ 0x4000 - 80032b2: 6093 str r3, [r2, #8] + 8003ca0: 4b05 ldr r3, [pc, #20] @ (8003cb8 ) + 8003ca2: 689b ldr r3, [r3, #8] + 8003ca4: 4a04 ldr r2, [pc, #16] @ (8003cb8 ) + 8003ca6: f443 4380 orr.w r3, r3, #16384 @ 0x4000 + 8003caa: 6093 str r3, [r2, #8] } - 80032b4: bf00 nop - 80032b6: 46bd mov sp, r7 - 80032b8: f85d 7b04 ldr.w r7, [sp], #4 - 80032bc: 4770 bx lr - 80032be: bf00 nop - 80032c0: 40007000 .word 0x40007000 + 8003cac: bf00 nop + 8003cae: 46bd mov sp, r7 + 8003cb0: f85d 7b04 ldr.w r7, [sp], #4 + 8003cb4: 4770 bx lr + 8003cb6: bf00 nop + 8003cb8: 40007000 .word 0x40007000 -080032c4 : +08003cbc : * supported by this macro. User should request a transition to HSE Off * first and then HSE On or HSE Bypass. * @retval HAL status */ HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct) { - 80032c4: b580 push {r7, lr} - 80032c6: b088 sub sp, #32 - 80032c8: af00 add r7, sp, #0 - 80032ca: 6078 str r0, [r7, #4] + 8003cbc: b580 push {r7, lr} + 8003cbe: b088 sub sp, #32 + 8003cc0: af00 add r7, sp, #0 + 8003cc2: 6078 str r0, [r7, #4] uint32_t tickstart; uint32_t temp_sysclksrc; uint32_t temp_pllckcfg; /* Check Null pointer */ if (RCC_OscInitStruct == NULL) - 80032cc: 687b ldr r3, [r7, #4] - 80032ce: 2b00 cmp r3, #0 - 80032d0: d101 bne.n 80032d6 + 8003cc4: 687b ldr r3, [r7, #4] + 8003cc6: 2b00 cmp r3, #0 + 8003cc8: d101 bne.n 8003cce { return HAL_ERROR; - 80032d2: 2301 movs r3, #1 - 80032d4: e2fe b.n 80038d4 + 8003cca: 2301 movs r3, #1 + 8003ccc: e2fe b.n 80042cc /* Check the parameters */ assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType)); /*------------------------------- HSE Configuration ------------------------*/ if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE) - 80032d6: 687b ldr r3, [r7, #4] - 80032d8: 681b ldr r3, [r3, #0] - 80032da: f003 0301 and.w r3, r3, #1 - 80032de: 2b00 cmp r3, #0 - 80032e0: d075 beq.n 80033ce + 8003cce: 687b ldr r3, [r7, #4] + 8003cd0: 681b ldr r3, [r3, #0] + 8003cd2: f003 0301 and.w r3, r3, #1 + 8003cd6: 2b00 cmp r3, #0 + 8003cd8: d075 beq.n 8003dc6 { /* Check the parameters */ assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState)); temp_sysclksrc = __HAL_RCC_GET_SYSCLK_SOURCE(); - 80032e2: 4b97 ldr r3, [pc, #604] @ (8003540 ) - 80032e4: 689b ldr r3, [r3, #8] - 80032e6: f003 030c and.w r3, r3, #12 - 80032ea: 61bb str r3, [r7, #24] + 8003cda: 4b97 ldr r3, [pc, #604] @ (8003f38 ) + 8003cdc: 689b ldr r3, [r3, #8] + 8003cde: f003 030c and.w r3, r3, #12 + 8003ce2: 61bb str r3, [r7, #24] temp_pllckcfg = __HAL_RCC_GET_PLL_OSCSOURCE(); - 80032ec: 4b94 ldr r3, [pc, #592] @ (8003540 ) - 80032ee: 68db ldr r3, [r3, #12] - 80032f0: f003 0303 and.w r3, r3, #3 - 80032f4: 617b str r3, [r7, #20] + 8003ce4: 4b94 ldr r3, [pc, #592] @ (8003f38 ) + 8003ce6: 68db ldr r3, [r3, #12] + 8003ce8: f003 0303 and.w r3, r3, #3 + 8003cec: 617b str r3, [r7, #20] /* When the HSE is used as system clock or clock source for PLL in these cases it is not allowed to be disabled */ if (((temp_sysclksrc == RCC_CFGR_SWS_PLL) && (temp_pllckcfg == RCC_PLLSOURCE_HSE)) || (temp_sysclksrc == RCC_CFGR_SWS_HSE)) - 80032f6: 69bb ldr r3, [r7, #24] - 80032f8: 2b0c cmp r3, #12 - 80032fa: d102 bne.n 8003302 - 80032fc: 697b ldr r3, [r7, #20] - 80032fe: 2b03 cmp r3, #3 - 8003300: d002 beq.n 8003308 - 8003302: 69bb ldr r3, [r7, #24] - 8003304: 2b08 cmp r3, #8 - 8003306: d10b bne.n 8003320 + 8003cee: 69bb ldr r3, [r7, #24] + 8003cf0: 2b0c cmp r3, #12 + 8003cf2: d102 bne.n 8003cfa + 8003cf4: 697b ldr r3, [r7, #20] + 8003cf6: 2b03 cmp r3, #3 + 8003cf8: d002 beq.n 8003d00 + 8003cfa: 69bb ldr r3, [r7, #24] + 8003cfc: 2b08 cmp r3, #8 + 8003cfe: d10b bne.n 8003d18 { if ((READ_BIT(RCC->CR, RCC_CR_HSERDY) != 0U) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) - 8003308: 4b8d ldr r3, [pc, #564] @ (8003540 ) - 800330a: 681b ldr r3, [r3, #0] - 800330c: f403 3300 and.w r3, r3, #131072 @ 0x20000 - 8003310: 2b00 cmp r3, #0 - 8003312: d05b beq.n 80033cc - 8003314: 687b ldr r3, [r7, #4] - 8003316: 685b ldr r3, [r3, #4] - 8003318: 2b00 cmp r3, #0 - 800331a: d157 bne.n 80033cc + 8003d00: 4b8d ldr r3, [pc, #564] @ (8003f38 ) + 8003d02: 681b ldr r3, [r3, #0] + 8003d04: f403 3300 and.w r3, r3, #131072 @ 0x20000 + 8003d08: 2b00 cmp r3, #0 + 8003d0a: d05b beq.n 8003dc4 + 8003d0c: 687b ldr r3, [r7, #4] + 8003d0e: 685b ldr r3, [r3, #4] + 8003d10: 2b00 cmp r3, #0 + 8003d12: d157 bne.n 8003dc4 { return HAL_ERROR; - 800331c: 2301 movs r3, #1 - 800331e: e2d9 b.n 80038d4 + 8003d14: 2301 movs r3, #1 + 8003d16: e2d9 b.n 80042cc } } else { /* Set the new HSE configuration ---------------------------------------*/ __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState); - 8003320: 687b ldr r3, [r7, #4] - 8003322: 685b ldr r3, [r3, #4] - 8003324: f5b3 3f80 cmp.w r3, #65536 @ 0x10000 - 8003328: d106 bne.n 8003338 - 800332a: 4b85 ldr r3, [pc, #532] @ (8003540 ) - 800332c: 681b ldr r3, [r3, #0] - 800332e: 4a84 ldr r2, [pc, #528] @ (8003540 ) - 8003330: f443 3380 orr.w r3, r3, #65536 @ 0x10000 - 8003334: 6013 str r3, [r2, #0] - 8003336: e01d b.n 8003374 - 8003338: 687b ldr r3, [r7, #4] - 800333a: 685b ldr r3, [r3, #4] - 800333c: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000 - 8003340: d10c bne.n 800335c - 8003342: 4b7f ldr r3, [pc, #508] @ (8003540 ) - 8003344: 681b ldr r3, [r3, #0] - 8003346: 4a7e ldr r2, [pc, #504] @ (8003540 ) - 8003348: f443 2380 orr.w r3, r3, #262144 @ 0x40000 - 800334c: 6013 str r3, [r2, #0] - 800334e: 4b7c ldr r3, [pc, #496] @ (8003540 ) - 8003350: 681b ldr r3, [r3, #0] - 8003352: 4a7b ldr r2, [pc, #492] @ (8003540 ) - 8003354: f443 3380 orr.w r3, r3, #65536 @ 0x10000 - 8003358: 6013 str r3, [r2, #0] - 800335a: e00b b.n 8003374 - 800335c: 4b78 ldr r3, [pc, #480] @ (8003540 ) - 800335e: 681b ldr r3, [r3, #0] - 8003360: 4a77 ldr r2, [pc, #476] @ (8003540 ) - 8003362: f423 3380 bic.w r3, r3, #65536 @ 0x10000 - 8003366: 6013 str r3, [r2, #0] - 8003368: 4b75 ldr r3, [pc, #468] @ (8003540 ) - 800336a: 681b ldr r3, [r3, #0] - 800336c: 4a74 ldr r2, [pc, #464] @ (8003540 ) - 800336e: f423 2380 bic.w r3, r3, #262144 @ 0x40000 - 8003372: 6013 str r3, [r2, #0] + 8003d18: 687b ldr r3, [r7, #4] + 8003d1a: 685b ldr r3, [r3, #4] + 8003d1c: f5b3 3f80 cmp.w r3, #65536 @ 0x10000 + 8003d20: d106 bne.n 8003d30 + 8003d22: 4b85 ldr r3, [pc, #532] @ (8003f38 ) + 8003d24: 681b ldr r3, [r3, #0] + 8003d26: 4a84 ldr r2, [pc, #528] @ (8003f38 ) + 8003d28: f443 3380 orr.w r3, r3, #65536 @ 0x10000 + 8003d2c: 6013 str r3, [r2, #0] + 8003d2e: e01d b.n 8003d6c + 8003d30: 687b ldr r3, [r7, #4] + 8003d32: 685b ldr r3, [r3, #4] + 8003d34: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000 + 8003d38: d10c bne.n 8003d54 + 8003d3a: 4b7f ldr r3, [pc, #508] @ (8003f38 ) + 8003d3c: 681b ldr r3, [r3, #0] + 8003d3e: 4a7e ldr r2, [pc, #504] @ (8003f38 ) + 8003d40: f443 2380 orr.w r3, r3, #262144 @ 0x40000 + 8003d44: 6013 str r3, [r2, #0] + 8003d46: 4b7c ldr r3, [pc, #496] @ (8003f38 ) + 8003d48: 681b ldr r3, [r3, #0] + 8003d4a: 4a7b ldr r2, [pc, #492] @ (8003f38 ) + 8003d4c: f443 3380 orr.w r3, r3, #65536 @ 0x10000 + 8003d50: 6013 str r3, [r2, #0] + 8003d52: e00b b.n 8003d6c + 8003d54: 4b78 ldr r3, [pc, #480] @ (8003f38 ) + 8003d56: 681b ldr r3, [r3, #0] + 8003d58: 4a77 ldr r2, [pc, #476] @ (8003f38 ) + 8003d5a: f423 3380 bic.w r3, r3, #65536 @ 0x10000 + 8003d5e: 6013 str r3, [r2, #0] + 8003d60: 4b75 ldr r3, [pc, #468] @ (8003f38 ) + 8003d62: 681b ldr r3, [r3, #0] + 8003d64: 4a74 ldr r2, [pc, #464] @ (8003f38 ) + 8003d66: f423 2380 bic.w r3, r3, #262144 @ 0x40000 + 8003d6a: 6013 str r3, [r2, #0] /* Check the HSE State */ if (RCC_OscInitStruct->HSEState != RCC_HSE_OFF) - 8003374: 687b ldr r3, [r7, #4] - 8003376: 685b ldr r3, [r3, #4] - 8003378: 2b00 cmp r3, #0 - 800337a: d013 beq.n 80033a4 + 8003d6c: 687b ldr r3, [r7, #4] + 8003d6e: 685b ldr r3, [r3, #4] + 8003d70: 2b00 cmp r3, #0 + 8003d72: d013 beq.n 8003d9c { /* Get Start Tick*/ tickstart = HAL_GetTick(); - 800337c: f7fd ff48 bl 8001210 - 8003380: 6138 str r0, [r7, #16] + 8003d74: f7fd feba bl 8001aec + 8003d78: 6138 str r0, [r7, #16] /* Wait till HSE is ready */ while (READ_BIT(RCC->CR, RCC_CR_HSERDY) == 0U) - 8003382: e008 b.n 8003396 + 8003d7a: e008 b.n 8003d8e { if ((HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE) - 8003384: f7fd ff44 bl 8001210 - 8003388: 4602 mov r2, r0 - 800338a: 693b ldr r3, [r7, #16] - 800338c: 1ad3 subs r3, r2, r3 - 800338e: 2b64 cmp r3, #100 @ 0x64 - 8003390: d901 bls.n 8003396 + 8003d7c: f7fd feb6 bl 8001aec + 8003d80: 4602 mov r2, r0 + 8003d82: 693b ldr r3, [r7, #16] + 8003d84: 1ad3 subs r3, r2, r3 + 8003d86: 2b64 cmp r3, #100 @ 0x64 + 8003d88: d901 bls.n 8003d8e { return HAL_TIMEOUT; - 8003392: 2303 movs r3, #3 - 8003394: e29e b.n 80038d4 + 8003d8a: 2303 movs r3, #3 + 8003d8c: e29e b.n 80042cc while (READ_BIT(RCC->CR, RCC_CR_HSERDY) == 0U) - 8003396: 4b6a ldr r3, [pc, #424] @ (8003540 ) - 8003398: 681b ldr r3, [r3, #0] - 800339a: f403 3300 and.w r3, r3, #131072 @ 0x20000 - 800339e: 2b00 cmp r3, #0 - 80033a0: d0f0 beq.n 8003384 - 80033a2: e014 b.n 80033ce + 8003d8e: 4b6a ldr r3, [pc, #424] @ (8003f38 ) + 8003d90: 681b ldr r3, [r3, #0] + 8003d92: f403 3300 and.w r3, r3, #131072 @ 0x20000 + 8003d96: 2b00 cmp r3, #0 + 8003d98: d0f0 beq.n 8003d7c + 8003d9a: e014 b.n 8003dc6 } } else { /* Get Start Tick*/ tickstart = HAL_GetTick(); - 80033a4: f7fd ff34 bl 8001210 - 80033a8: 6138 str r0, [r7, #16] + 8003d9c: f7fd fea6 bl 8001aec + 8003da0: 6138 str r0, [r7, #16] /* Wait till HSE is disabled */ while (READ_BIT(RCC->CR, RCC_CR_HSERDY) != 0U) - 80033aa: e008 b.n 80033be + 8003da2: e008 b.n 8003db6 { if ((HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE) - 80033ac: f7fd ff30 bl 8001210 - 80033b0: 4602 mov r2, r0 - 80033b2: 693b ldr r3, [r7, #16] - 80033b4: 1ad3 subs r3, r2, r3 - 80033b6: 2b64 cmp r3, #100 @ 0x64 - 80033b8: d901 bls.n 80033be + 8003da4: f7fd fea2 bl 8001aec + 8003da8: 4602 mov r2, r0 + 8003daa: 693b ldr r3, [r7, #16] + 8003dac: 1ad3 subs r3, r2, r3 + 8003dae: 2b64 cmp r3, #100 @ 0x64 + 8003db0: d901 bls.n 8003db6 { return HAL_TIMEOUT; - 80033ba: 2303 movs r3, #3 - 80033bc: e28a b.n 80038d4 + 8003db2: 2303 movs r3, #3 + 8003db4: e28a b.n 80042cc while (READ_BIT(RCC->CR, RCC_CR_HSERDY) != 0U) - 80033be: 4b60 ldr r3, [pc, #384] @ (8003540 ) - 80033c0: 681b ldr r3, [r3, #0] - 80033c2: f403 3300 and.w r3, r3, #131072 @ 0x20000 - 80033c6: 2b00 cmp r3, #0 - 80033c8: d1f0 bne.n 80033ac - 80033ca: e000 b.n 80033ce + 8003db6: 4b60 ldr r3, [pc, #384] @ (8003f38 ) + 8003db8: 681b ldr r3, [r3, #0] + 8003dba: f403 3300 and.w r3, r3, #131072 @ 0x20000 + 8003dbe: 2b00 cmp r3, #0 + 8003dc0: d1f0 bne.n 8003da4 + 8003dc2: e000 b.n 8003dc6 if ((READ_BIT(RCC->CR, RCC_CR_HSERDY) != 0U) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) - 80033cc: bf00 nop + 8003dc4: bf00 nop } } } } /*----------------------------- HSI Configuration --------------------------*/ if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI) - 80033ce: 687b ldr r3, [r7, #4] - 80033d0: 681b ldr r3, [r3, #0] - 80033d2: f003 0302 and.w r3, r3, #2 - 80033d6: 2b00 cmp r3, #0 - 80033d8: d075 beq.n 80034c6 + 8003dc6: 687b ldr r3, [r7, #4] + 8003dc8: 681b ldr r3, [r3, #0] + 8003dca: f003 0302 and.w r3, r3, #2 + 8003dce: 2b00 cmp r3, #0 + 8003dd0: d075 beq.n 8003ebe /* Check the parameters */ assert_param(IS_RCC_HSI(RCC_OscInitStruct->HSIState)); assert_param(IS_RCC_HSI_CALIBRATION_VALUE(RCC_OscInitStruct->HSICalibrationValue)); /* Check if HSI is used as system clock or as PLL source when PLL is selected as system clock */ temp_sysclksrc = __HAL_RCC_GET_SYSCLK_SOURCE(); - 80033da: 4b59 ldr r3, [pc, #356] @ (8003540 ) - 80033dc: 689b ldr r3, [r3, #8] - 80033de: f003 030c and.w r3, r3, #12 - 80033e2: 61bb str r3, [r7, #24] + 8003dd2: 4b59 ldr r3, [pc, #356] @ (8003f38 ) + 8003dd4: 689b ldr r3, [r3, #8] + 8003dd6: f003 030c and.w r3, r3, #12 + 8003dda: 61bb str r3, [r7, #24] temp_pllckcfg = __HAL_RCC_GET_PLL_OSCSOURCE(); - 80033e4: 4b56 ldr r3, [pc, #344] @ (8003540 ) - 80033e6: 68db ldr r3, [r3, #12] - 80033e8: f003 0303 and.w r3, r3, #3 - 80033ec: 617b str r3, [r7, #20] + 8003ddc: 4b56 ldr r3, [pc, #344] @ (8003f38 ) + 8003dde: 68db ldr r3, [r3, #12] + 8003de0: f003 0303 and.w r3, r3, #3 + 8003de4: 617b str r3, [r7, #20] if (((temp_sysclksrc == RCC_CFGR_SWS_PLL) && (temp_pllckcfg == RCC_PLLSOURCE_HSI)) || (temp_sysclksrc == RCC_CFGR_SWS_HSI)) - 80033ee: 69bb ldr r3, [r7, #24] - 80033f0: 2b0c cmp r3, #12 - 80033f2: d102 bne.n 80033fa - 80033f4: 697b ldr r3, [r7, #20] - 80033f6: 2b02 cmp r3, #2 - 80033f8: d002 beq.n 8003400 - 80033fa: 69bb ldr r3, [r7, #24] - 80033fc: 2b04 cmp r3, #4 - 80033fe: d11f bne.n 8003440 + 8003de6: 69bb ldr r3, [r7, #24] + 8003de8: 2b0c cmp r3, #12 + 8003dea: d102 bne.n 8003df2 + 8003dec: 697b ldr r3, [r7, #20] + 8003dee: 2b02 cmp r3, #2 + 8003df0: d002 beq.n 8003df8 + 8003df2: 69bb ldr r3, [r7, #24] + 8003df4: 2b04 cmp r3, #4 + 8003df6: d11f bne.n 8003e38 { /* When HSI is used as system clock it will not be disabled */ if ((READ_BIT(RCC->CR, RCC_CR_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF)) - 8003400: 4b4f ldr r3, [pc, #316] @ (8003540 ) - 8003402: 681b ldr r3, [r3, #0] - 8003404: f403 6380 and.w r3, r3, #1024 @ 0x400 - 8003408: 2b00 cmp r3, #0 - 800340a: d005 beq.n 8003418 - 800340c: 687b ldr r3, [r7, #4] - 800340e: 68db ldr r3, [r3, #12] - 8003410: 2b00 cmp r3, #0 - 8003412: d101 bne.n 8003418 + 8003df8: 4b4f ldr r3, [pc, #316] @ (8003f38 ) + 8003dfa: 681b ldr r3, [r3, #0] + 8003dfc: f403 6380 and.w r3, r3, #1024 @ 0x400 + 8003e00: 2b00 cmp r3, #0 + 8003e02: d005 beq.n 8003e10 + 8003e04: 687b ldr r3, [r7, #4] + 8003e06: 68db ldr r3, [r3, #12] + 8003e08: 2b00 cmp r3, #0 + 8003e0a: d101 bne.n 8003e10 { return HAL_ERROR; - 8003414: 2301 movs r3, #1 - 8003416: e25d b.n 80038d4 + 8003e0c: 2301 movs r3, #1 + 8003e0e: e25d b.n 80042cc } /* Otherwise, just the calibration is allowed */ else { /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/ __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue); - 8003418: 4b49 ldr r3, [pc, #292] @ (8003540 ) - 800341a: 685b ldr r3, [r3, #4] - 800341c: f023 42fe bic.w r2, r3, #2130706432 @ 0x7f000000 - 8003420: 687b ldr r3, [r7, #4] - 8003422: 691b ldr r3, [r3, #16] - 8003424: 061b lsls r3, r3, #24 - 8003426: 4946 ldr r1, [pc, #280] @ (8003540 ) - 8003428: 4313 orrs r3, r2 - 800342a: 604b str r3, [r1, #4] + 8003e10: 4b49 ldr r3, [pc, #292] @ (8003f38 ) + 8003e12: 685b ldr r3, [r3, #4] + 8003e14: f023 42fe bic.w r2, r3, #2130706432 @ 0x7f000000 + 8003e18: 687b ldr r3, [r7, #4] + 8003e1a: 691b ldr r3, [r3, #16] + 8003e1c: 061b lsls r3, r3, #24 + 8003e1e: 4946 ldr r1, [pc, #280] @ (8003f38 ) + 8003e20: 4313 orrs r3, r2 + 8003e22: 604b str r3, [r1, #4] /* Adapt Systick interrupt period */ if (HAL_InitTick(uwTickPrio) != HAL_OK) - 800342c: 4b45 ldr r3, [pc, #276] @ (8003544 ) - 800342e: 681b ldr r3, [r3, #0] - 8003430: 4618 mov r0, r3 - 8003432: f7fd fea1 bl 8001178 - 8003436: 4603 mov r3, r0 - 8003438: 2b00 cmp r3, #0 - 800343a: d043 beq.n 80034c4 + 8003e24: 4b45 ldr r3, [pc, #276] @ (8003f3c ) + 8003e26: 681b ldr r3, [r3, #0] + 8003e28: 4618 mov r0, r3 + 8003e2a: f7fd fe13 bl 8001a54 + 8003e2e: 4603 mov r3, r0 + 8003e30: 2b00 cmp r3, #0 + 8003e32: d043 beq.n 8003ebc { return HAL_ERROR; - 800343c: 2301 movs r3, #1 - 800343e: e249 b.n 80038d4 + 8003e34: 2301 movs r3, #1 + 8003e36: e249 b.n 80042cc } } else { /* Check the HSI State */ if (RCC_OscInitStruct->HSIState != RCC_HSI_OFF) - 8003440: 687b ldr r3, [r7, #4] - 8003442: 68db ldr r3, [r3, #12] - 8003444: 2b00 cmp r3, #0 - 8003446: d023 beq.n 8003490 + 8003e38: 687b ldr r3, [r7, #4] + 8003e3a: 68db ldr r3, [r3, #12] + 8003e3c: 2b00 cmp r3, #0 + 8003e3e: d023 beq.n 8003e88 { /* Enable the Internal High Speed oscillator (HSI). */ __HAL_RCC_HSI_ENABLE(); - 8003448: 4b3d ldr r3, [pc, #244] @ (8003540 ) - 800344a: 681b ldr r3, [r3, #0] - 800344c: 4a3c ldr r2, [pc, #240] @ (8003540 ) - 800344e: f443 7380 orr.w r3, r3, #256 @ 0x100 - 8003452: 6013 str r3, [r2, #0] + 8003e40: 4b3d ldr r3, [pc, #244] @ (8003f38 ) + 8003e42: 681b ldr r3, [r3, #0] + 8003e44: 4a3c ldr r2, [pc, #240] @ (8003f38 ) + 8003e46: f443 7380 orr.w r3, r3, #256 @ 0x100 + 8003e4a: 6013 str r3, [r2, #0] /* Get Start Tick*/ tickstart = HAL_GetTick(); - 8003454: f7fd fedc bl 8001210 - 8003458: 6138 str r0, [r7, #16] + 8003e4c: f7fd fe4e bl 8001aec + 8003e50: 6138 str r0, [r7, #16] /* Wait till HSI is ready */ while (READ_BIT(RCC->CR, RCC_CR_HSIRDY) == 0U) - 800345a: e008 b.n 800346e + 8003e52: e008 b.n 8003e66 { if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE) - 800345c: f7fd fed8 bl 8001210 - 8003460: 4602 mov r2, r0 - 8003462: 693b ldr r3, [r7, #16] - 8003464: 1ad3 subs r3, r2, r3 - 8003466: 2b02 cmp r3, #2 - 8003468: d901 bls.n 800346e + 8003e54: f7fd fe4a bl 8001aec + 8003e58: 4602 mov r2, r0 + 8003e5a: 693b ldr r3, [r7, #16] + 8003e5c: 1ad3 subs r3, r2, r3 + 8003e5e: 2b02 cmp r3, #2 + 8003e60: d901 bls.n 8003e66 { return HAL_TIMEOUT; - 800346a: 2303 movs r3, #3 - 800346c: e232 b.n 80038d4 + 8003e62: 2303 movs r3, #3 + 8003e64: e232 b.n 80042cc while (READ_BIT(RCC->CR, RCC_CR_HSIRDY) == 0U) - 800346e: 4b34 ldr r3, [pc, #208] @ (8003540 ) - 8003470: 681b ldr r3, [r3, #0] - 8003472: f403 6380 and.w r3, r3, #1024 @ 0x400 - 8003476: 2b00 cmp r3, #0 - 8003478: d0f0 beq.n 800345c + 8003e66: 4b34 ldr r3, [pc, #208] @ (8003f38 ) + 8003e68: 681b ldr r3, [r3, #0] + 8003e6a: f403 6380 and.w r3, r3, #1024 @ 0x400 + 8003e6e: 2b00 cmp r3, #0 + 8003e70: d0f0 beq.n 8003e54 } } /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/ __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue); - 800347a: 4b31 ldr r3, [pc, #196] @ (8003540 ) - 800347c: 685b ldr r3, [r3, #4] - 800347e: f023 42fe bic.w r2, r3, #2130706432 @ 0x7f000000 - 8003482: 687b ldr r3, [r7, #4] - 8003484: 691b ldr r3, [r3, #16] - 8003486: 061b lsls r3, r3, #24 - 8003488: 492d ldr r1, [pc, #180] @ (8003540 ) - 800348a: 4313 orrs r3, r2 - 800348c: 604b str r3, [r1, #4] - 800348e: e01a b.n 80034c6 + 8003e72: 4b31 ldr r3, [pc, #196] @ (8003f38 ) + 8003e74: 685b ldr r3, [r3, #4] + 8003e76: f023 42fe bic.w r2, r3, #2130706432 @ 0x7f000000 + 8003e7a: 687b ldr r3, [r7, #4] + 8003e7c: 691b ldr r3, [r3, #16] + 8003e7e: 061b lsls r3, r3, #24 + 8003e80: 492d ldr r1, [pc, #180] @ (8003f38 ) + 8003e82: 4313 orrs r3, r2 + 8003e84: 604b str r3, [r1, #4] + 8003e86: e01a b.n 8003ebe } else { /* Disable the Internal High Speed oscillator (HSI). */ __HAL_RCC_HSI_DISABLE(); - 8003490: 4b2b ldr r3, [pc, #172] @ (8003540 ) - 8003492: 681b ldr r3, [r3, #0] - 8003494: 4a2a ldr r2, [pc, #168] @ (8003540 ) - 8003496: f423 7380 bic.w r3, r3, #256 @ 0x100 - 800349a: 6013 str r3, [r2, #0] + 8003e88: 4b2b ldr r3, [pc, #172] @ (8003f38 ) + 8003e8a: 681b ldr r3, [r3, #0] + 8003e8c: 4a2a ldr r2, [pc, #168] @ (8003f38 ) + 8003e8e: f423 7380 bic.w r3, r3, #256 @ 0x100 + 8003e92: 6013 str r3, [r2, #0] /* Get Start Tick*/ tickstart = HAL_GetTick(); - 800349c: f7fd feb8 bl 8001210 - 80034a0: 6138 str r0, [r7, #16] + 8003e94: f7fd fe2a bl 8001aec + 8003e98: 6138 str r0, [r7, #16] /* Wait till HSI is disabled */ while (READ_BIT(RCC->CR, RCC_CR_HSIRDY) != 0U) - 80034a2: e008 b.n 80034b6 + 8003e9a: e008 b.n 8003eae { if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE) - 80034a4: f7fd feb4 bl 8001210 - 80034a8: 4602 mov r2, r0 - 80034aa: 693b ldr r3, [r7, #16] - 80034ac: 1ad3 subs r3, r2, r3 - 80034ae: 2b02 cmp r3, #2 - 80034b0: d901 bls.n 80034b6 + 8003e9c: f7fd fe26 bl 8001aec + 8003ea0: 4602 mov r2, r0 + 8003ea2: 693b ldr r3, [r7, #16] + 8003ea4: 1ad3 subs r3, r2, r3 + 8003ea6: 2b02 cmp r3, #2 + 8003ea8: d901 bls.n 8003eae { return HAL_TIMEOUT; - 80034b2: 2303 movs r3, #3 - 80034b4: e20e b.n 80038d4 + 8003eaa: 2303 movs r3, #3 + 8003eac: e20e b.n 80042cc while (READ_BIT(RCC->CR, RCC_CR_HSIRDY) != 0U) - 80034b6: 4b22 ldr r3, [pc, #136] @ (8003540 ) - 80034b8: 681b ldr r3, [r3, #0] - 80034ba: f403 6380 and.w r3, r3, #1024 @ 0x400 - 80034be: 2b00 cmp r3, #0 - 80034c0: d1f0 bne.n 80034a4 - 80034c2: e000 b.n 80034c6 + 8003eae: 4b22 ldr r3, [pc, #136] @ (8003f38 ) + 8003eb0: 681b ldr r3, [r3, #0] + 8003eb2: f403 6380 and.w r3, r3, #1024 @ 0x400 + 8003eb6: 2b00 cmp r3, #0 + 8003eb8: d1f0 bne.n 8003e9c + 8003eba: e000 b.n 8003ebe if ((READ_BIT(RCC->CR, RCC_CR_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF)) - 80034c4: bf00 nop + 8003ebc: bf00 nop } } } } /*------------------------------ LSI Configuration -------------------------*/ if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSI) == RCC_OSCILLATORTYPE_LSI) - 80034c6: 687b ldr r3, [r7, #4] - 80034c8: 681b ldr r3, [r3, #0] - 80034ca: f003 0308 and.w r3, r3, #8 - 80034ce: 2b00 cmp r3, #0 - 80034d0: d041 beq.n 8003556 + 8003ebe: 687b ldr r3, [r7, #4] + 8003ec0: 681b ldr r3, [r3, #0] + 8003ec2: f003 0308 and.w r3, r3, #8 + 8003ec6: 2b00 cmp r3, #0 + 8003ec8: d041 beq.n 8003f4e { /* Check the parameters */ assert_param(IS_RCC_LSI(RCC_OscInitStruct->LSIState)); /* Check the LSI State */ if(RCC_OscInitStruct->LSIState != RCC_LSI_OFF) - 80034d2: 687b ldr r3, [r7, #4] - 80034d4: 695b ldr r3, [r3, #20] - 80034d6: 2b00 cmp r3, #0 - 80034d8: d01c beq.n 8003514 + 8003eca: 687b ldr r3, [r7, #4] + 8003ecc: 695b ldr r3, [r3, #20] + 8003ece: 2b00 cmp r3, #0 + 8003ed0: d01c beq.n 8003f0c { /* Enable the Internal Low Speed oscillator (LSI). */ __HAL_RCC_LSI_ENABLE(); - 80034da: 4b19 ldr r3, [pc, #100] @ (8003540 ) - 80034dc: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94 - 80034e0: 4a17 ldr r2, [pc, #92] @ (8003540 ) - 80034e2: f043 0301 orr.w r3, r3, #1 - 80034e6: f8c2 3094 str.w r3, [r2, #148] @ 0x94 + 8003ed2: 4b19 ldr r3, [pc, #100] @ (8003f38 ) + 8003ed4: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94 + 8003ed8: 4a17 ldr r2, [pc, #92] @ (8003f38 ) + 8003eda: f043 0301 orr.w r3, r3, #1 + 8003ede: f8c2 3094 str.w r3, [r2, #148] @ 0x94 /* Get Start Tick*/ tickstart = HAL_GetTick(); - 80034ea: f7fd fe91 bl 8001210 - 80034ee: 6138 str r0, [r7, #16] + 8003ee2: f7fd fe03 bl 8001aec + 8003ee6: 6138 str r0, [r7, #16] /* Wait till LSI is ready */ while (READ_BIT(RCC->CSR, RCC_CSR_LSIRDY) == 0U) - 80034f0: e008 b.n 8003504 + 8003ee8: e008 b.n 8003efc { if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE) - 80034f2: f7fd fe8d bl 8001210 - 80034f6: 4602 mov r2, r0 - 80034f8: 693b ldr r3, [r7, #16] - 80034fa: 1ad3 subs r3, r2, r3 - 80034fc: 2b02 cmp r3, #2 - 80034fe: d901 bls.n 8003504 + 8003eea: f7fd fdff bl 8001aec + 8003eee: 4602 mov r2, r0 + 8003ef0: 693b ldr r3, [r7, #16] + 8003ef2: 1ad3 subs r3, r2, r3 + 8003ef4: 2b02 cmp r3, #2 + 8003ef6: d901 bls.n 8003efc { return HAL_TIMEOUT; - 8003500: 2303 movs r3, #3 - 8003502: e1e7 b.n 80038d4 + 8003ef8: 2303 movs r3, #3 + 8003efa: e1e7 b.n 80042cc while (READ_BIT(RCC->CSR, RCC_CSR_LSIRDY) == 0U) - 8003504: 4b0e ldr r3, [pc, #56] @ (8003540 ) - 8003506: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94 - 800350a: f003 0302 and.w r3, r3, #2 - 800350e: 2b00 cmp r3, #0 - 8003510: d0ef beq.n 80034f2 - 8003512: e020 b.n 8003556 + 8003efc: 4b0e ldr r3, [pc, #56] @ (8003f38 ) + 8003efe: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94 + 8003f02: f003 0302 and.w r3, r3, #2 + 8003f06: 2b00 cmp r3, #0 + 8003f08: d0ef beq.n 8003eea + 8003f0a: e020 b.n 8003f4e } } else { /* Disable the Internal Low Speed oscillator (LSI). */ __HAL_RCC_LSI_DISABLE(); - 8003514: 4b0a ldr r3, [pc, #40] @ (8003540 ) - 8003516: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94 - 800351a: 4a09 ldr r2, [pc, #36] @ (8003540 ) - 800351c: f023 0301 bic.w r3, r3, #1 - 8003520: f8c2 3094 str.w r3, [r2, #148] @ 0x94 + 8003f0c: 4b0a ldr r3, [pc, #40] @ (8003f38 ) + 8003f0e: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94 + 8003f12: 4a09 ldr r2, [pc, #36] @ (8003f38 ) + 8003f14: f023 0301 bic.w r3, r3, #1 + 8003f18: f8c2 3094 str.w r3, [r2, #148] @ 0x94 /* Get Start Tick*/ tickstart = HAL_GetTick(); - 8003524: f7fd fe74 bl 8001210 - 8003528: 6138 str r0, [r7, #16] + 8003f1c: f7fd fde6 bl 8001aec + 8003f20: 6138 str r0, [r7, #16] /* Wait till LSI is disabled */ while(READ_BIT(RCC->CSR, RCC_CSR_LSIRDY) != 0U) - 800352a: e00d b.n 8003548 + 8003f22: e00d b.n 8003f40 { if((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE) - 800352c: f7fd fe70 bl 8001210 - 8003530: 4602 mov r2, r0 - 8003532: 693b ldr r3, [r7, #16] - 8003534: 1ad3 subs r3, r2, r3 - 8003536: 2b02 cmp r3, #2 - 8003538: d906 bls.n 8003548 + 8003f24: f7fd fde2 bl 8001aec + 8003f28: 4602 mov r2, r0 + 8003f2a: 693b ldr r3, [r7, #16] + 8003f2c: 1ad3 subs r3, r2, r3 + 8003f2e: 2b02 cmp r3, #2 + 8003f30: d906 bls.n 8003f40 { return HAL_TIMEOUT; - 800353a: 2303 movs r3, #3 - 800353c: e1ca b.n 80038d4 - 800353e: bf00 nop - 8003540: 40021000 .word 0x40021000 - 8003544: 20000004 .word 0x20000004 + 8003f32: 2303 movs r3, #3 + 8003f34: e1ca b.n 80042cc + 8003f36: bf00 nop + 8003f38: 40021000 .word 0x40021000 + 8003f3c: 20000018 .word 0x20000018 while(READ_BIT(RCC->CSR, RCC_CSR_LSIRDY) != 0U) - 8003548: 4b8c ldr r3, [pc, #560] @ (800377c ) - 800354a: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94 - 800354e: f003 0302 and.w r3, r3, #2 - 8003552: 2b00 cmp r3, #0 - 8003554: d1ea bne.n 800352c + 8003f40: 4b8c ldr r3, [pc, #560] @ (8004174 ) + 8003f42: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94 + 8003f46: f003 0302 and.w r3, r3, #2 + 8003f4a: 2b00 cmp r3, #0 + 8003f4c: d1ea bne.n 8003f24 } } } } /*------------------------------ LSE Configuration -------------------------*/ if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSE) == RCC_OSCILLATORTYPE_LSE) - 8003556: 687b ldr r3, [r7, #4] - 8003558: 681b ldr r3, [r3, #0] - 800355a: f003 0304 and.w r3, r3, #4 - 800355e: 2b00 cmp r3, #0 - 8003560: f000 80a6 beq.w 80036b0 + 8003f4e: 687b ldr r3, [r7, #4] + 8003f50: 681b ldr r3, [r3, #0] + 8003f52: f003 0304 and.w r3, r3, #4 + 8003f56: 2b00 cmp r3, #0 + 8003f58: f000 80a6 beq.w 80040a8 { FlagStatus pwrclkchanged = RESET; - 8003564: 2300 movs r3, #0 - 8003566: 77fb strb r3, [r7, #31] + 8003f5c: 2300 movs r3, #0 + 8003f5e: 77fb strb r3, [r7, #31] /* Check the parameters */ assert_param(IS_RCC_LSE(RCC_OscInitStruct->LSEState)); /* Update LSE configuration in Backup Domain control register */ /* Requires to enable write access to Backup Domain if necessary */ if (__HAL_RCC_PWR_IS_CLK_DISABLED() != 0U) - 8003568: 4b84 ldr r3, [pc, #528] @ (800377c ) - 800356a: 6d9b ldr r3, [r3, #88] @ 0x58 - 800356c: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 - 8003570: 2b00 cmp r3, #0 - 8003572: d101 bne.n 8003578 - 8003574: 2301 movs r3, #1 - 8003576: e000 b.n 800357a - 8003578: 2300 movs r3, #0 - 800357a: 2b00 cmp r3, #0 - 800357c: d00d beq.n 800359a + 8003f60: 4b84 ldr r3, [pc, #528] @ (8004174 ) + 8003f62: 6d9b ldr r3, [r3, #88] @ 0x58 + 8003f64: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 + 8003f68: 2b00 cmp r3, #0 + 8003f6a: d101 bne.n 8003f70 + 8003f6c: 2301 movs r3, #1 + 8003f6e: e000 b.n 8003f72 + 8003f70: 2300 movs r3, #0 + 8003f72: 2b00 cmp r3, #0 + 8003f74: d00d beq.n 8003f92 { __HAL_RCC_PWR_CLK_ENABLE(); - 800357e: 4b7f ldr r3, [pc, #508] @ (800377c ) - 8003580: 6d9b ldr r3, [r3, #88] @ 0x58 - 8003582: 4a7e ldr r2, [pc, #504] @ (800377c ) - 8003584: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 - 8003588: 6593 str r3, [r2, #88] @ 0x58 - 800358a: 4b7c ldr r3, [pc, #496] @ (800377c ) - 800358c: 6d9b ldr r3, [r3, #88] @ 0x58 - 800358e: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 - 8003592: 60fb str r3, [r7, #12] - 8003594: 68fb ldr r3, [r7, #12] + 8003f76: 4b7f ldr r3, [pc, #508] @ (8004174 ) + 8003f78: 6d9b ldr r3, [r3, #88] @ 0x58 + 8003f7a: 4a7e ldr r2, [pc, #504] @ (8004174 ) + 8003f7c: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 + 8003f80: 6593 str r3, [r2, #88] @ 0x58 + 8003f82: 4b7c ldr r3, [pc, #496] @ (8004174 ) + 8003f84: 6d9b ldr r3, [r3, #88] @ 0x58 + 8003f86: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 + 8003f8a: 60fb str r3, [r7, #12] + 8003f8c: 68fb ldr r3, [r7, #12] pwrclkchanged = SET; - 8003596: 2301 movs r3, #1 - 8003598: 77fb strb r3, [r7, #31] + 8003f8e: 2301 movs r3, #1 + 8003f90: 77fb strb r3, [r7, #31] } if (HAL_IS_BIT_CLR(PWR->CR1, PWR_CR1_DBP)) - 800359a: 4b79 ldr r3, [pc, #484] @ (8003780 ) - 800359c: 681b ldr r3, [r3, #0] - 800359e: f403 7380 and.w r3, r3, #256 @ 0x100 - 80035a2: 2b00 cmp r3, #0 - 80035a4: d118 bne.n 80035d8 + 8003f92: 4b79 ldr r3, [pc, #484] @ (8004178 ) + 8003f94: 681b ldr r3, [r3, #0] + 8003f96: f403 7380 and.w r3, r3, #256 @ 0x100 + 8003f9a: 2b00 cmp r3, #0 + 8003f9c: d118 bne.n 8003fd0 { /* Enable write access to Backup domain */ SET_BIT(PWR->CR1, PWR_CR1_DBP); - 80035a6: 4b76 ldr r3, [pc, #472] @ (8003780 ) - 80035a8: 681b ldr r3, [r3, #0] - 80035aa: 4a75 ldr r2, [pc, #468] @ (8003780 ) - 80035ac: f443 7380 orr.w r3, r3, #256 @ 0x100 - 80035b0: 6013 str r3, [r2, #0] + 8003f9e: 4b76 ldr r3, [pc, #472] @ (8004178 ) + 8003fa0: 681b ldr r3, [r3, #0] + 8003fa2: 4a75 ldr r2, [pc, #468] @ (8004178 ) + 8003fa4: f443 7380 orr.w r3, r3, #256 @ 0x100 + 8003fa8: 6013 str r3, [r2, #0] /* Wait for Backup domain Write protection disable */ tickstart = HAL_GetTick(); - 80035b2: f7fd fe2d bl 8001210 - 80035b6: 6138 str r0, [r7, #16] + 8003faa: f7fd fd9f bl 8001aec + 8003fae: 6138 str r0, [r7, #16] while (HAL_IS_BIT_CLR(PWR->CR1, PWR_CR1_DBP)) - 80035b8: e008 b.n 80035cc + 8003fb0: e008 b.n 8003fc4 { if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE) - 80035ba: f7fd fe29 bl 8001210 - 80035be: 4602 mov r2, r0 - 80035c0: 693b ldr r3, [r7, #16] - 80035c2: 1ad3 subs r3, r2, r3 - 80035c4: 2b02 cmp r3, #2 - 80035c6: d901 bls.n 80035cc + 8003fb2: f7fd fd9b bl 8001aec + 8003fb6: 4602 mov r2, r0 + 8003fb8: 693b ldr r3, [r7, #16] + 8003fba: 1ad3 subs r3, r2, r3 + 8003fbc: 2b02 cmp r3, #2 + 8003fbe: d901 bls.n 8003fc4 { return HAL_TIMEOUT; - 80035c8: 2303 movs r3, #3 - 80035ca: e183 b.n 80038d4 + 8003fc0: 2303 movs r3, #3 + 8003fc2: e183 b.n 80042cc while (HAL_IS_BIT_CLR(PWR->CR1, PWR_CR1_DBP)) - 80035cc: 4b6c ldr r3, [pc, #432] @ (8003780 ) - 80035ce: 681b ldr r3, [r3, #0] - 80035d0: f403 7380 and.w r3, r3, #256 @ 0x100 - 80035d4: 2b00 cmp r3, #0 - 80035d6: d0f0 beq.n 80035ba + 8003fc4: 4b6c ldr r3, [pc, #432] @ (8004178 ) + 8003fc6: 681b ldr r3, [r3, #0] + 8003fc8: f403 7380 and.w r3, r3, #256 @ 0x100 + 8003fcc: 2b00 cmp r3, #0 + 8003fce: d0f0 beq.n 8003fb2 } } } /* Set the new LSE configuration -----------------------------------------*/ __HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState); - 80035d8: 687b ldr r3, [r7, #4] - 80035da: 689b ldr r3, [r3, #8] - 80035dc: 2b01 cmp r3, #1 - 80035de: d108 bne.n 80035f2 - 80035e0: 4b66 ldr r3, [pc, #408] @ (800377c ) - 80035e2: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 - 80035e6: 4a65 ldr r2, [pc, #404] @ (800377c ) - 80035e8: f043 0301 orr.w r3, r3, #1 - 80035ec: f8c2 3090 str.w r3, [r2, #144] @ 0x90 - 80035f0: e024 b.n 800363c - 80035f2: 687b ldr r3, [r7, #4] - 80035f4: 689b ldr r3, [r3, #8] - 80035f6: 2b05 cmp r3, #5 - 80035f8: d110 bne.n 800361c - 80035fa: 4b60 ldr r3, [pc, #384] @ (800377c ) - 80035fc: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 - 8003600: 4a5e ldr r2, [pc, #376] @ (800377c ) - 8003602: f043 0304 orr.w r3, r3, #4 - 8003606: f8c2 3090 str.w r3, [r2, #144] @ 0x90 - 800360a: 4b5c ldr r3, [pc, #368] @ (800377c ) - 800360c: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 - 8003610: 4a5a ldr r2, [pc, #360] @ (800377c ) - 8003612: f043 0301 orr.w r3, r3, #1 - 8003616: f8c2 3090 str.w r3, [r2, #144] @ 0x90 - 800361a: e00f b.n 800363c - 800361c: 4b57 ldr r3, [pc, #348] @ (800377c ) - 800361e: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 - 8003622: 4a56 ldr r2, [pc, #344] @ (800377c ) - 8003624: f023 0301 bic.w r3, r3, #1 - 8003628: f8c2 3090 str.w r3, [r2, #144] @ 0x90 - 800362c: 4b53 ldr r3, [pc, #332] @ (800377c ) - 800362e: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 - 8003632: 4a52 ldr r2, [pc, #328] @ (800377c ) - 8003634: f023 0304 bic.w r3, r3, #4 - 8003638: f8c2 3090 str.w r3, [r2, #144] @ 0x90 + 8003fd0: 687b ldr r3, [r7, #4] + 8003fd2: 689b ldr r3, [r3, #8] + 8003fd4: 2b01 cmp r3, #1 + 8003fd6: d108 bne.n 8003fea + 8003fd8: 4b66 ldr r3, [pc, #408] @ (8004174 ) + 8003fda: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 + 8003fde: 4a65 ldr r2, [pc, #404] @ (8004174 ) + 8003fe0: f043 0301 orr.w r3, r3, #1 + 8003fe4: f8c2 3090 str.w r3, [r2, #144] @ 0x90 + 8003fe8: e024 b.n 8004034 + 8003fea: 687b ldr r3, [r7, #4] + 8003fec: 689b ldr r3, [r3, #8] + 8003fee: 2b05 cmp r3, #5 + 8003ff0: d110 bne.n 8004014 + 8003ff2: 4b60 ldr r3, [pc, #384] @ (8004174 ) + 8003ff4: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 + 8003ff8: 4a5e ldr r2, [pc, #376] @ (8004174 ) + 8003ffa: f043 0304 orr.w r3, r3, #4 + 8003ffe: f8c2 3090 str.w r3, [r2, #144] @ 0x90 + 8004002: 4b5c ldr r3, [pc, #368] @ (8004174 ) + 8004004: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 + 8004008: 4a5a ldr r2, [pc, #360] @ (8004174 ) + 800400a: f043 0301 orr.w r3, r3, #1 + 800400e: f8c2 3090 str.w r3, [r2, #144] @ 0x90 + 8004012: e00f b.n 8004034 + 8004014: 4b57 ldr r3, [pc, #348] @ (8004174 ) + 8004016: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 + 800401a: 4a56 ldr r2, [pc, #344] @ (8004174 ) + 800401c: f023 0301 bic.w r3, r3, #1 + 8004020: f8c2 3090 str.w r3, [r2, #144] @ 0x90 + 8004024: 4b53 ldr r3, [pc, #332] @ (8004174 ) + 8004026: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 + 800402a: 4a52 ldr r2, [pc, #328] @ (8004174 ) + 800402c: f023 0304 bic.w r3, r3, #4 + 8004030: f8c2 3090 str.w r3, [r2, #144] @ 0x90 /* Check the LSE State */ if (RCC_OscInitStruct->LSEState != RCC_LSE_OFF) - 800363c: 687b ldr r3, [r7, #4] - 800363e: 689b ldr r3, [r3, #8] - 8003640: 2b00 cmp r3, #0 - 8003642: d016 beq.n 8003672 + 8004034: 687b ldr r3, [r7, #4] + 8004036: 689b ldr r3, [r3, #8] + 8004038: 2b00 cmp r3, #0 + 800403a: d016 beq.n 800406a { /* Get Start Tick*/ tickstart = HAL_GetTick(); - 8003644: f7fd fde4 bl 8001210 - 8003648: 6138 str r0, [r7, #16] + 800403c: f7fd fd56 bl 8001aec + 8004040: 6138 str r0, [r7, #16] /* Wait till LSE is ready */ while (READ_BIT(RCC->BDCR, RCC_BDCR_LSERDY) == 0U) - 800364a: e00a b.n 8003662 + 8004042: e00a b.n 800405a { if((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE) - 800364c: f7fd fde0 bl 8001210 - 8003650: 4602 mov r2, r0 - 8003652: 693b ldr r3, [r7, #16] - 8003654: 1ad3 subs r3, r2, r3 - 8003656: f241 3288 movw r2, #5000 @ 0x1388 - 800365a: 4293 cmp r3, r2 - 800365c: d901 bls.n 8003662 + 8004044: f7fd fd52 bl 8001aec + 8004048: 4602 mov r2, r0 + 800404a: 693b ldr r3, [r7, #16] + 800404c: 1ad3 subs r3, r2, r3 + 800404e: f241 3288 movw r2, #5000 @ 0x1388 + 8004052: 4293 cmp r3, r2 + 8004054: d901 bls.n 800405a { return HAL_TIMEOUT; - 800365e: 2303 movs r3, #3 - 8003660: e138 b.n 80038d4 + 8004056: 2303 movs r3, #3 + 8004058: e138 b.n 80042cc while (READ_BIT(RCC->BDCR, RCC_BDCR_LSERDY) == 0U) - 8003662: 4b46 ldr r3, [pc, #280] @ (800377c ) - 8003664: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 - 8003668: f003 0302 and.w r3, r3, #2 - 800366c: 2b00 cmp r3, #0 - 800366e: d0ed beq.n 800364c - 8003670: e015 b.n 800369e + 800405a: 4b46 ldr r3, [pc, #280] @ (8004174 ) + 800405c: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 + 8004060: f003 0302 and.w r3, r3, #2 + 8004064: 2b00 cmp r3, #0 + 8004066: d0ed beq.n 8004044 + 8004068: e015 b.n 8004096 } } else { /* Get Start Tick*/ tickstart = HAL_GetTick(); - 8003672: f7fd fdcd bl 8001210 - 8003676: 6138 str r0, [r7, #16] + 800406a: f7fd fd3f bl 8001aec + 800406e: 6138 str r0, [r7, #16] /* Wait till LSE is disabled */ while (READ_BIT(RCC->BDCR, RCC_BDCR_LSERDY) != 0U) - 8003678: e00a b.n 8003690 + 8004070: e00a b.n 8004088 { if((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE) - 800367a: f7fd fdc9 bl 8001210 - 800367e: 4602 mov r2, r0 - 8003680: 693b ldr r3, [r7, #16] - 8003682: 1ad3 subs r3, r2, r3 - 8003684: f241 3288 movw r2, #5000 @ 0x1388 - 8003688: 4293 cmp r3, r2 - 800368a: d901 bls.n 8003690 + 8004072: f7fd fd3b bl 8001aec + 8004076: 4602 mov r2, r0 + 8004078: 693b ldr r3, [r7, #16] + 800407a: 1ad3 subs r3, r2, r3 + 800407c: f241 3288 movw r2, #5000 @ 0x1388 + 8004080: 4293 cmp r3, r2 + 8004082: d901 bls.n 8004088 { return HAL_TIMEOUT; - 800368c: 2303 movs r3, #3 - 800368e: e121 b.n 80038d4 + 8004084: 2303 movs r3, #3 + 8004086: e121 b.n 80042cc while (READ_BIT(RCC->BDCR, RCC_BDCR_LSERDY) != 0U) - 8003690: 4b3a ldr r3, [pc, #232] @ (800377c ) - 8003692: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 - 8003696: f003 0302 and.w r3, r3, #2 - 800369a: 2b00 cmp r3, #0 - 800369c: d1ed bne.n 800367a + 8004088: 4b3a ldr r3, [pc, #232] @ (8004174 ) + 800408a: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 + 800408e: f003 0302 and.w r3, r3, #2 + 8004092: 2b00 cmp r3, #0 + 8004094: d1ed bne.n 8004072 } } } /* Restore clock configuration if changed */ if (pwrclkchanged == SET) - 800369e: 7ffb ldrb r3, [r7, #31] - 80036a0: 2b01 cmp r3, #1 - 80036a2: d105 bne.n 80036b0 + 8004096: 7ffb ldrb r3, [r7, #31] + 8004098: 2b01 cmp r3, #1 + 800409a: d105 bne.n 80040a8 { __HAL_RCC_PWR_CLK_DISABLE(); - 80036a4: 4b35 ldr r3, [pc, #212] @ (800377c ) - 80036a6: 6d9b ldr r3, [r3, #88] @ 0x58 - 80036a8: 4a34 ldr r2, [pc, #208] @ (800377c ) - 80036aa: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000 - 80036ae: 6593 str r3, [r2, #88] @ 0x58 + 800409c: 4b35 ldr r3, [pc, #212] @ (8004174 ) + 800409e: 6d9b ldr r3, [r3, #88] @ 0x58 + 80040a0: 4a34 ldr r2, [pc, #208] @ (8004174 ) + 80040a2: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000 + 80040a6: 6593 str r3, [r2, #88] @ 0x58 } } /*------------------------------ HSI48 Configuration -----------------------*/ if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI48) == RCC_OSCILLATORTYPE_HSI48) - 80036b0: 687b ldr r3, [r7, #4] - 80036b2: 681b ldr r3, [r3, #0] - 80036b4: f003 0320 and.w r3, r3, #32 - 80036b8: 2b00 cmp r3, #0 - 80036ba: d03c beq.n 8003736 + 80040a8: 687b ldr r3, [r7, #4] + 80040aa: 681b ldr r3, [r3, #0] + 80040ac: f003 0320 and.w r3, r3, #32 + 80040b0: 2b00 cmp r3, #0 + 80040b2: d03c beq.n 800412e { /* Check the parameters */ assert_param(IS_RCC_HSI48(RCC_OscInitStruct->HSI48State)); /* Check the HSI48 State */ if(RCC_OscInitStruct->HSI48State != RCC_HSI48_OFF) - 80036bc: 687b ldr r3, [r7, #4] - 80036be: 699b ldr r3, [r3, #24] - 80036c0: 2b00 cmp r3, #0 - 80036c2: d01c beq.n 80036fe + 80040b4: 687b ldr r3, [r7, #4] + 80040b6: 699b ldr r3, [r3, #24] + 80040b8: 2b00 cmp r3, #0 + 80040ba: d01c beq.n 80040f6 { /* Enable the Internal Low Speed oscillator (HSI48). */ __HAL_RCC_HSI48_ENABLE(); - 80036c4: 4b2d ldr r3, [pc, #180] @ (800377c ) - 80036c6: f8d3 3098 ldr.w r3, [r3, #152] @ 0x98 - 80036ca: 4a2c ldr r2, [pc, #176] @ (800377c ) - 80036cc: f043 0301 orr.w r3, r3, #1 - 80036d0: f8c2 3098 str.w r3, [r2, #152] @ 0x98 + 80040bc: 4b2d ldr r3, [pc, #180] @ (8004174 ) + 80040be: f8d3 3098 ldr.w r3, [r3, #152] @ 0x98 + 80040c2: 4a2c ldr r2, [pc, #176] @ (8004174 ) + 80040c4: f043 0301 orr.w r3, r3, #1 + 80040c8: f8c2 3098 str.w r3, [r2, #152] @ 0x98 /* Get Start Tick*/ tickstart = HAL_GetTick(); - 80036d4: f7fd fd9c bl 8001210 - 80036d8: 6138 str r0, [r7, #16] + 80040cc: f7fd fd0e bl 8001aec + 80040d0: 6138 str r0, [r7, #16] /* Wait till HSI48 is ready */ while(READ_BIT(RCC->CRRCR, RCC_CRRCR_HSI48RDY) == 0U) - 80036da: e008 b.n 80036ee + 80040d2: e008 b.n 80040e6 { if((HAL_GetTick() - tickstart) > HSI48_TIMEOUT_VALUE) - 80036dc: f7fd fd98 bl 8001210 - 80036e0: 4602 mov r2, r0 - 80036e2: 693b ldr r3, [r7, #16] - 80036e4: 1ad3 subs r3, r2, r3 - 80036e6: 2b02 cmp r3, #2 - 80036e8: d901 bls.n 80036ee + 80040d4: f7fd fd0a bl 8001aec + 80040d8: 4602 mov r2, r0 + 80040da: 693b ldr r3, [r7, #16] + 80040dc: 1ad3 subs r3, r2, r3 + 80040de: 2b02 cmp r3, #2 + 80040e0: d901 bls.n 80040e6 { return HAL_TIMEOUT; - 80036ea: 2303 movs r3, #3 - 80036ec: e0f2 b.n 80038d4 + 80040e2: 2303 movs r3, #3 + 80040e4: e0f2 b.n 80042cc while(READ_BIT(RCC->CRRCR, RCC_CRRCR_HSI48RDY) == 0U) - 80036ee: 4b23 ldr r3, [pc, #140] @ (800377c ) - 80036f0: f8d3 3098 ldr.w r3, [r3, #152] @ 0x98 - 80036f4: f003 0302 and.w r3, r3, #2 - 80036f8: 2b00 cmp r3, #0 - 80036fa: d0ef beq.n 80036dc - 80036fc: e01b b.n 8003736 + 80040e6: 4b23 ldr r3, [pc, #140] @ (8004174 ) + 80040e8: f8d3 3098 ldr.w r3, [r3, #152] @ 0x98 + 80040ec: f003 0302 and.w r3, r3, #2 + 80040f0: 2b00 cmp r3, #0 + 80040f2: d0ef beq.n 80040d4 + 80040f4: e01b b.n 800412e } } else { /* Disable the Internal Low Speed oscillator (HSI48). */ __HAL_RCC_HSI48_DISABLE(); - 80036fe: 4b1f ldr r3, [pc, #124] @ (800377c ) - 8003700: f8d3 3098 ldr.w r3, [r3, #152] @ 0x98 - 8003704: 4a1d ldr r2, [pc, #116] @ (800377c ) - 8003706: f023 0301 bic.w r3, r3, #1 - 800370a: f8c2 3098 str.w r3, [r2, #152] @ 0x98 + 80040f6: 4b1f ldr r3, [pc, #124] @ (8004174 ) + 80040f8: f8d3 3098 ldr.w r3, [r3, #152] @ 0x98 + 80040fc: 4a1d ldr r2, [pc, #116] @ (8004174 ) + 80040fe: f023 0301 bic.w r3, r3, #1 + 8004102: f8c2 3098 str.w r3, [r2, #152] @ 0x98 /* Get Start Tick*/ tickstart = HAL_GetTick(); - 800370e: f7fd fd7f bl 8001210 - 8003712: 6138 str r0, [r7, #16] + 8004106: f7fd fcf1 bl 8001aec + 800410a: 6138 str r0, [r7, #16] /* Wait till HSI48 is disabled */ while(READ_BIT(RCC->CRRCR, RCC_CRRCR_HSI48RDY) != 0U) - 8003714: e008 b.n 8003728 + 800410c: e008 b.n 8004120 { if((HAL_GetTick() - tickstart) > HSI48_TIMEOUT_VALUE) - 8003716: f7fd fd7b bl 8001210 - 800371a: 4602 mov r2, r0 - 800371c: 693b ldr r3, [r7, #16] - 800371e: 1ad3 subs r3, r2, r3 - 8003720: 2b02 cmp r3, #2 - 8003722: d901 bls.n 8003728 + 800410e: f7fd fced bl 8001aec + 8004112: 4602 mov r2, r0 + 8004114: 693b ldr r3, [r7, #16] + 8004116: 1ad3 subs r3, r2, r3 + 8004118: 2b02 cmp r3, #2 + 800411a: d901 bls.n 8004120 { return HAL_TIMEOUT; - 8003724: 2303 movs r3, #3 - 8003726: e0d5 b.n 80038d4 + 800411c: 2303 movs r3, #3 + 800411e: e0d5 b.n 80042cc while(READ_BIT(RCC->CRRCR, RCC_CRRCR_HSI48RDY) != 0U) - 8003728: 4b14 ldr r3, [pc, #80] @ (800377c ) - 800372a: f8d3 3098 ldr.w r3, [r3, #152] @ 0x98 - 800372e: f003 0302 and.w r3, r3, #2 - 8003732: 2b00 cmp r3, #0 - 8003734: d1ef bne.n 8003716 + 8004120: 4b14 ldr r3, [pc, #80] @ (8004174 ) + 8004122: f8d3 3098 ldr.w r3, [r3, #152] @ 0x98 + 8004126: f003 0302 and.w r3, r3, #2 + 800412a: 2b00 cmp r3, #0 + 800412c: d1ef bne.n 800410e /*-------------------------------- PLL Configuration -----------------------*/ /* Check the parameters */ assert_param(IS_RCC_PLL(RCC_OscInitStruct->PLL.PLLState)); if (RCC_OscInitStruct->PLL.PLLState != RCC_PLL_NONE) - 8003736: 687b ldr r3, [r7, #4] - 8003738: 69db ldr r3, [r3, #28] - 800373a: 2b00 cmp r3, #0 - 800373c: f000 80c9 beq.w 80038d2 + 800412e: 687b ldr r3, [r7, #4] + 8004130: 69db ldr r3, [r3, #28] + 8004132: 2b00 cmp r3, #0 + 8004134: f000 80c9 beq.w 80042ca { /* Check if the PLL is used as system clock or not */ if (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_CFGR_SWS_PLL) - 8003740: 4b0e ldr r3, [pc, #56] @ (800377c ) - 8003742: 689b ldr r3, [r3, #8] - 8003744: f003 030c and.w r3, r3, #12 - 8003748: 2b0c cmp r3, #12 - 800374a: f000 8083 beq.w 8003854 + 8004138: 4b0e ldr r3, [pc, #56] @ (8004174 ) + 800413a: 689b ldr r3, [r3, #8] + 800413c: f003 030c and.w r3, r3, #12 + 8004140: 2b0c cmp r3, #12 + 8004142: f000 8083 beq.w 800424c { if (RCC_OscInitStruct->PLL.PLLState == RCC_PLL_ON) - 800374e: 687b ldr r3, [r7, #4] - 8003750: 69db ldr r3, [r3, #28] - 8003752: 2b02 cmp r3, #2 - 8003754: d15e bne.n 8003814 + 8004146: 687b ldr r3, [r7, #4] + 8004148: 69db ldr r3, [r3, #28] + 800414a: 2b02 cmp r3, #2 + 800414c: d15e bne.n 800420c assert_param(IS_RCC_PLLP_VALUE(RCC_OscInitStruct->PLL.PLLP)); assert_param(IS_RCC_PLLQ_VALUE(RCC_OscInitStruct->PLL.PLLQ)); assert_param(IS_RCC_PLLR_VALUE(RCC_OscInitStruct->PLL.PLLR)); /* Disable the main PLL. */ __HAL_RCC_PLL_DISABLE(); - 8003756: 4b09 ldr r3, [pc, #36] @ (800377c ) - 8003758: 681b ldr r3, [r3, #0] - 800375a: 4a08 ldr r2, [pc, #32] @ (800377c ) - 800375c: f023 7380 bic.w r3, r3, #16777216 @ 0x1000000 - 8003760: 6013 str r3, [r2, #0] + 800414e: 4b09 ldr r3, [pc, #36] @ (8004174 ) + 8004150: 681b ldr r3, [r3, #0] + 8004152: 4a08 ldr r2, [pc, #32] @ (8004174 ) + 8004154: f023 7380 bic.w r3, r3, #16777216 @ 0x1000000 + 8004158: 6013 str r3, [r2, #0] /* Get Start Tick*/ tickstart = HAL_GetTick(); - 8003762: f7fd fd55 bl 8001210 - 8003766: 6138 str r0, [r7, #16] + 800415a: f7fd fcc7 bl 8001aec + 800415e: 6138 str r0, [r7, #16] /* Wait till PLL is disabled */ while (READ_BIT(RCC->CR, RCC_CR_PLLRDY) != 0U) - 8003768: e00c b.n 8003784 + 8004160: e00c b.n 800417c { if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) - 800376a: f7fd fd51 bl 8001210 - 800376e: 4602 mov r2, r0 - 8003770: 693b ldr r3, [r7, #16] - 8003772: 1ad3 subs r3, r2, r3 - 8003774: 2b02 cmp r3, #2 - 8003776: d905 bls.n 8003784 + 8004162: f7fd fcc3 bl 8001aec + 8004166: 4602 mov r2, r0 + 8004168: 693b ldr r3, [r7, #16] + 800416a: 1ad3 subs r3, r2, r3 + 800416c: 2b02 cmp r3, #2 + 800416e: d905 bls.n 800417c { return HAL_TIMEOUT; - 8003778: 2303 movs r3, #3 - 800377a: e0ab b.n 80038d4 - 800377c: 40021000 .word 0x40021000 - 8003780: 40007000 .word 0x40007000 + 8004170: 2303 movs r3, #3 + 8004172: e0ab b.n 80042cc + 8004174: 40021000 .word 0x40021000 + 8004178: 40007000 .word 0x40007000 while (READ_BIT(RCC->CR, RCC_CR_PLLRDY) != 0U) - 8003784: 4b55 ldr r3, [pc, #340] @ (80038dc ) - 8003786: 681b ldr r3, [r3, #0] - 8003788: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 - 800378c: 2b00 cmp r3, #0 - 800378e: d1ec bne.n 800376a + 800417c: 4b55 ldr r3, [pc, #340] @ (80042d4 ) + 800417e: 681b ldr r3, [r3, #0] + 8004180: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 + 8004184: 2b00 cmp r3, #0 + 8004186: d1ec bne.n 8004162 } } /* Configure the main PLL clock source, multiplication and division factors. */ __HAL_RCC_PLL_CONFIG(RCC_OscInitStruct->PLL.PLLSource, - 8003790: 4b52 ldr r3, [pc, #328] @ (80038dc ) - 8003792: 68da ldr r2, [r3, #12] - 8003794: 4b52 ldr r3, [pc, #328] @ (80038e0 ) - 8003796: 4013 ands r3, r2 - 8003798: 687a ldr r2, [r7, #4] - 800379a: 6a11 ldr r1, [r2, #32] - 800379c: 687a ldr r2, [r7, #4] - 800379e: 6a52 ldr r2, [r2, #36] @ 0x24 - 80037a0: 3a01 subs r2, #1 - 80037a2: 0112 lsls r2, r2, #4 - 80037a4: 4311 orrs r1, r2 - 80037a6: 687a ldr r2, [r7, #4] - 80037a8: 6a92 ldr r2, [r2, #40] @ 0x28 - 80037aa: 0212 lsls r2, r2, #8 - 80037ac: 4311 orrs r1, r2 - 80037ae: 687a ldr r2, [r7, #4] - 80037b0: 6b12 ldr r2, [r2, #48] @ 0x30 - 80037b2: 0852 lsrs r2, r2, #1 - 80037b4: 3a01 subs r2, #1 - 80037b6: 0552 lsls r2, r2, #21 - 80037b8: 4311 orrs r1, r2 - 80037ba: 687a ldr r2, [r7, #4] - 80037bc: 6b52 ldr r2, [r2, #52] @ 0x34 - 80037be: 0852 lsrs r2, r2, #1 - 80037c0: 3a01 subs r2, #1 - 80037c2: 0652 lsls r2, r2, #25 - 80037c4: 4311 orrs r1, r2 - 80037c6: 687a ldr r2, [r7, #4] - 80037c8: 6ad2 ldr r2, [r2, #44] @ 0x2c - 80037ca: 06d2 lsls r2, r2, #27 - 80037cc: 430a orrs r2, r1 - 80037ce: 4943 ldr r1, [pc, #268] @ (80038dc ) - 80037d0: 4313 orrs r3, r2 - 80037d2: 60cb str r3, [r1, #12] + 8004188: 4b52 ldr r3, [pc, #328] @ (80042d4 ) + 800418a: 68da ldr r2, [r3, #12] + 800418c: 4b52 ldr r3, [pc, #328] @ (80042d8 ) + 800418e: 4013 ands r3, r2 + 8004190: 687a ldr r2, [r7, #4] + 8004192: 6a11 ldr r1, [r2, #32] + 8004194: 687a ldr r2, [r7, #4] + 8004196: 6a52 ldr r2, [r2, #36] @ 0x24 + 8004198: 3a01 subs r2, #1 + 800419a: 0112 lsls r2, r2, #4 + 800419c: 4311 orrs r1, r2 + 800419e: 687a ldr r2, [r7, #4] + 80041a0: 6a92 ldr r2, [r2, #40] @ 0x28 + 80041a2: 0212 lsls r2, r2, #8 + 80041a4: 4311 orrs r1, r2 + 80041a6: 687a ldr r2, [r7, #4] + 80041a8: 6b12 ldr r2, [r2, #48] @ 0x30 + 80041aa: 0852 lsrs r2, r2, #1 + 80041ac: 3a01 subs r2, #1 + 80041ae: 0552 lsls r2, r2, #21 + 80041b0: 4311 orrs r1, r2 + 80041b2: 687a ldr r2, [r7, #4] + 80041b4: 6b52 ldr r2, [r2, #52] @ 0x34 + 80041b6: 0852 lsrs r2, r2, #1 + 80041b8: 3a01 subs r2, #1 + 80041ba: 0652 lsls r2, r2, #25 + 80041bc: 4311 orrs r1, r2 + 80041be: 687a ldr r2, [r7, #4] + 80041c0: 6ad2 ldr r2, [r2, #44] @ 0x2c + 80041c2: 06d2 lsls r2, r2, #27 + 80041c4: 430a orrs r2, r1 + 80041c6: 4943 ldr r1, [pc, #268] @ (80042d4 ) + 80041c8: 4313 orrs r3, r2 + 80041ca: 60cb str r3, [r1, #12] RCC_OscInitStruct->PLL.PLLP, RCC_OscInitStruct->PLL.PLLQ, RCC_OscInitStruct->PLL.PLLR); /* Enable the main PLL. */ __HAL_RCC_PLL_ENABLE(); - 80037d4: 4b41 ldr r3, [pc, #260] @ (80038dc ) - 80037d6: 681b ldr r3, [r3, #0] - 80037d8: 4a40 ldr r2, [pc, #256] @ (80038dc ) - 80037da: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000 - 80037de: 6013 str r3, [r2, #0] + 80041cc: 4b41 ldr r3, [pc, #260] @ (80042d4 ) + 80041ce: 681b ldr r3, [r3, #0] + 80041d0: 4a40 ldr r2, [pc, #256] @ (80042d4 ) + 80041d2: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000 + 80041d6: 6013 str r3, [r2, #0] /* Enable PLL System Clock output. */ __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL_SYSCLK); - 80037e0: 4b3e ldr r3, [pc, #248] @ (80038dc ) - 80037e2: 68db ldr r3, [r3, #12] - 80037e4: 4a3d ldr r2, [pc, #244] @ (80038dc ) - 80037e6: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000 - 80037ea: 60d3 str r3, [r2, #12] + 80041d8: 4b3e ldr r3, [pc, #248] @ (80042d4 ) + 80041da: 68db ldr r3, [r3, #12] + 80041dc: 4a3d ldr r2, [pc, #244] @ (80042d4 ) + 80041de: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000 + 80041e2: 60d3 str r3, [r2, #12] /* Get Start Tick*/ tickstart = HAL_GetTick(); - 80037ec: f7fd fd10 bl 8001210 - 80037f0: 6138 str r0, [r7, #16] + 80041e4: f7fd fc82 bl 8001aec + 80041e8: 6138 str r0, [r7, #16] /* Wait till PLL is ready */ while (READ_BIT(RCC->CR, RCC_CR_PLLRDY) == 0U) - 80037f2: e008 b.n 8003806 + 80041ea: e008 b.n 80041fe { if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) - 80037f4: f7fd fd0c bl 8001210 - 80037f8: 4602 mov r2, r0 - 80037fa: 693b ldr r3, [r7, #16] - 80037fc: 1ad3 subs r3, r2, r3 - 80037fe: 2b02 cmp r3, #2 - 8003800: d901 bls.n 8003806 + 80041ec: f7fd fc7e bl 8001aec + 80041f0: 4602 mov r2, r0 + 80041f2: 693b ldr r3, [r7, #16] + 80041f4: 1ad3 subs r3, r2, r3 + 80041f6: 2b02 cmp r3, #2 + 80041f8: d901 bls.n 80041fe { return HAL_TIMEOUT; - 8003802: 2303 movs r3, #3 - 8003804: e066 b.n 80038d4 + 80041fa: 2303 movs r3, #3 + 80041fc: e066 b.n 80042cc while (READ_BIT(RCC->CR, RCC_CR_PLLRDY) == 0U) - 8003806: 4b35 ldr r3, [pc, #212] @ (80038dc ) - 8003808: 681b ldr r3, [r3, #0] - 800380a: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 - 800380e: 2b00 cmp r3, #0 - 8003810: d0f0 beq.n 80037f4 - 8003812: e05e b.n 80038d2 + 80041fe: 4b35 ldr r3, [pc, #212] @ (80042d4 ) + 8004200: 681b ldr r3, [r3, #0] + 8004202: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 + 8004206: 2b00 cmp r3, #0 + 8004208: d0f0 beq.n 80041ec + 800420a: e05e b.n 80042ca } } else { /* Disable the main PLL. */ __HAL_RCC_PLL_DISABLE(); - 8003814: 4b31 ldr r3, [pc, #196] @ (80038dc ) - 8003816: 681b ldr r3, [r3, #0] - 8003818: 4a30 ldr r2, [pc, #192] @ (80038dc ) - 800381a: f023 7380 bic.w r3, r3, #16777216 @ 0x1000000 - 800381e: 6013 str r3, [r2, #0] + 800420c: 4b31 ldr r3, [pc, #196] @ (80042d4 ) + 800420e: 681b ldr r3, [r3, #0] + 8004210: 4a30 ldr r2, [pc, #192] @ (80042d4 ) + 8004212: f023 7380 bic.w r3, r3, #16777216 @ 0x1000000 + 8004216: 6013 str r3, [r2, #0] /* Get Start Tick*/ tickstart = HAL_GetTick(); - 8003820: f7fd fcf6 bl 8001210 - 8003824: 6138 str r0, [r7, #16] + 8004218: f7fd fc68 bl 8001aec + 800421c: 6138 str r0, [r7, #16] /* Wait till PLL is disabled */ while (READ_BIT(RCC->CR, RCC_CR_PLLRDY) != 0U) - 8003826: e008 b.n 800383a + 800421e: e008 b.n 8004232 { if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) - 8003828: f7fd fcf2 bl 8001210 - 800382c: 4602 mov r2, r0 - 800382e: 693b ldr r3, [r7, #16] - 8003830: 1ad3 subs r3, r2, r3 - 8003832: 2b02 cmp r3, #2 - 8003834: d901 bls.n 800383a + 8004220: f7fd fc64 bl 8001aec + 8004224: 4602 mov r2, r0 + 8004226: 693b ldr r3, [r7, #16] + 8004228: 1ad3 subs r3, r2, r3 + 800422a: 2b02 cmp r3, #2 + 800422c: d901 bls.n 8004232 { return HAL_TIMEOUT; - 8003836: 2303 movs r3, #3 - 8003838: e04c b.n 80038d4 + 800422e: 2303 movs r3, #3 + 8004230: e04c b.n 80042cc while (READ_BIT(RCC->CR, RCC_CR_PLLRDY) != 0U) - 800383a: 4b28 ldr r3, [pc, #160] @ (80038dc ) - 800383c: 681b ldr r3, [r3, #0] - 800383e: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 - 8003842: 2b00 cmp r3, #0 - 8003844: d1f0 bne.n 8003828 + 8004232: 4b28 ldr r3, [pc, #160] @ (80042d4 ) + 8004234: 681b ldr r3, [r3, #0] + 8004236: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 + 800423a: 2b00 cmp r3, #0 + 800423c: d1f0 bne.n 8004220 } } /* Unselect PLL clock source and disable outputs to save power */ RCC->PLLCFGR &= ~(RCC_PLLCFGR_PLLSRC | RCC_PLL_SYSCLK | RCC_PLL_48M1CLK | RCC_PLL_ADCCLK); - 8003846: 4b25 ldr r3, [pc, #148] @ (80038dc ) - 8003848: 68da ldr r2, [r3, #12] - 800384a: 4924 ldr r1, [pc, #144] @ (80038dc ) - 800384c: 4b25 ldr r3, [pc, #148] @ (80038e4 ) - 800384e: 4013 ands r3, r2 - 8003850: 60cb str r3, [r1, #12] - 8003852: e03e b.n 80038d2 + 800423e: 4b25 ldr r3, [pc, #148] @ (80042d4 ) + 8004240: 68da ldr r2, [r3, #12] + 8004242: 4924 ldr r1, [pc, #144] @ (80042d4 ) + 8004244: 4b25 ldr r3, [pc, #148] @ (80042dc ) + 8004246: 4013 ands r3, r2 + 8004248: 60cb str r3, [r1, #12] + 800424a: e03e b.n 80042ca } } else { /* Check if there is a request to disable the PLL used as System clock source */ if((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) - 8003854: 687b ldr r3, [r7, #4] - 8003856: 69db ldr r3, [r3, #28] - 8003858: 2b01 cmp r3, #1 - 800385a: d101 bne.n 8003860 + 800424c: 687b ldr r3, [r7, #4] + 800424e: 69db ldr r3, [r3, #28] + 8004250: 2b01 cmp r3, #1 + 8004252: d101 bne.n 8004258 { return HAL_ERROR; - 800385c: 2301 movs r3, #1 - 800385e: e039 b.n 80038d4 + 8004254: 2301 movs r3, #1 + 8004256: e039 b.n 80042cc } else { /* Do not return HAL_ERROR if request repeats the current configuration */ temp_pllckcfg = RCC->PLLCFGR; - 8003860: 4b1e ldr r3, [pc, #120] @ (80038dc ) - 8003862: 68db ldr r3, [r3, #12] - 8003864: 617b str r3, [r7, #20] + 8004258: 4b1e ldr r3, [pc, #120] @ (80042d4 ) + 800425a: 68db ldr r3, [r3, #12] + 800425c: 617b str r3, [r7, #20] if((READ_BIT(temp_pllckcfg, RCC_PLLCFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) || - 8003866: 697b ldr r3, [r7, #20] - 8003868: f003 0203 and.w r2, r3, #3 - 800386c: 687b ldr r3, [r7, #4] - 800386e: 6a1b ldr r3, [r3, #32] - 8003870: 429a cmp r2, r3 - 8003872: d12c bne.n 80038ce + 800425e: 697b ldr r3, [r7, #20] + 8004260: f003 0203 and.w r2, r3, #3 + 8004264: 687b ldr r3, [r7, #4] + 8004266: 6a1b ldr r3, [r3, #32] + 8004268: 429a cmp r2, r3 + 800426a: d12c bne.n 80042c6 (READ_BIT(temp_pllckcfg, RCC_PLLCFGR_PLLM) != (((RCC_OscInitStruct->PLL.PLLM) - 1U) << RCC_PLLCFGR_PLLM_Pos)) || - 8003874: 697b ldr r3, [r7, #20] - 8003876: f003 02f0 and.w r2, r3, #240 @ 0xf0 - 800387a: 687b ldr r3, [r7, #4] - 800387c: 6a5b ldr r3, [r3, #36] @ 0x24 - 800387e: 3b01 subs r3, #1 - 8003880: 011b lsls r3, r3, #4 + 800426c: 697b ldr r3, [r7, #20] + 800426e: f003 02f0 and.w r2, r3, #240 @ 0xf0 + 8004272: 687b ldr r3, [r7, #4] + 8004274: 6a5b ldr r3, [r3, #36] @ 0x24 + 8004276: 3b01 subs r3, #1 + 8004278: 011b lsls r3, r3, #4 if((READ_BIT(temp_pllckcfg, RCC_PLLCFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) || - 8003882: 429a cmp r2, r3 - 8003884: d123 bne.n 80038ce + 800427a: 429a cmp r2, r3 + 800427c: d123 bne.n 80042c6 (READ_BIT(temp_pllckcfg, RCC_PLLCFGR_PLLN) != ((RCC_OscInitStruct->PLL.PLLN) << RCC_PLLCFGR_PLLN_Pos)) || - 8003886: 697b ldr r3, [r7, #20] - 8003888: f403 42fe and.w r2, r3, #32512 @ 0x7f00 - 800388c: 687b ldr r3, [r7, #4] - 800388e: 6a9b ldr r3, [r3, #40] @ 0x28 - 8003890: 021b lsls r3, r3, #8 + 800427e: 697b ldr r3, [r7, #20] + 8004280: f403 42fe and.w r2, r3, #32512 @ 0x7f00 + 8004284: 687b ldr r3, [r7, #4] + 8004286: 6a9b ldr r3, [r3, #40] @ 0x28 + 8004288: 021b lsls r3, r3, #8 (READ_BIT(temp_pllckcfg, RCC_PLLCFGR_PLLM) != (((RCC_OscInitStruct->PLL.PLLM) - 1U) << RCC_PLLCFGR_PLLM_Pos)) || - 8003892: 429a cmp r2, r3 - 8003894: d11b bne.n 80038ce + 800428a: 429a cmp r2, r3 + 800428c: d11b bne.n 80042c6 (READ_BIT(temp_pllckcfg, RCC_PLLCFGR_PLLPDIV) != ((RCC_OscInitStruct->PLL.PLLP) << RCC_PLLCFGR_PLLPDIV_Pos)) || - 8003896: 697b ldr r3, [r7, #20] - 8003898: f003 4278 and.w r2, r3, #4160749568 @ 0xf8000000 - 800389c: 687b ldr r3, [r7, #4] - 800389e: 6adb ldr r3, [r3, #44] @ 0x2c - 80038a0: 06db lsls r3, r3, #27 + 800428e: 697b ldr r3, [r7, #20] + 8004290: f003 4278 and.w r2, r3, #4160749568 @ 0xf8000000 + 8004294: 687b ldr r3, [r7, #4] + 8004296: 6adb ldr r3, [r3, #44] @ 0x2c + 8004298: 06db lsls r3, r3, #27 (READ_BIT(temp_pllckcfg, RCC_PLLCFGR_PLLN) != ((RCC_OscInitStruct->PLL.PLLN) << RCC_PLLCFGR_PLLN_Pos)) || - 80038a2: 429a cmp r2, r3 - 80038a4: d113 bne.n 80038ce + 800429a: 429a cmp r2, r3 + 800429c: d113 bne.n 80042c6 (READ_BIT(temp_pllckcfg, RCC_PLLCFGR_PLLQ) != ((((RCC_OscInitStruct->PLL.PLLQ) >> 1U) - 1U) << RCC_PLLCFGR_PLLQ_Pos)) || - 80038a6: 697b ldr r3, [r7, #20] - 80038a8: f403 02c0 and.w r2, r3, #6291456 @ 0x600000 - 80038ac: 687b ldr r3, [r7, #4] - 80038ae: 6b1b ldr r3, [r3, #48] @ 0x30 - 80038b0: 085b lsrs r3, r3, #1 - 80038b2: 3b01 subs r3, #1 - 80038b4: 055b lsls r3, r3, #21 + 800429e: 697b ldr r3, [r7, #20] + 80042a0: f403 02c0 and.w r2, r3, #6291456 @ 0x600000 + 80042a4: 687b ldr r3, [r7, #4] + 80042a6: 6b1b ldr r3, [r3, #48] @ 0x30 + 80042a8: 085b lsrs r3, r3, #1 + 80042aa: 3b01 subs r3, #1 + 80042ac: 055b lsls r3, r3, #21 (READ_BIT(temp_pllckcfg, RCC_PLLCFGR_PLLPDIV) != ((RCC_OscInitStruct->PLL.PLLP) << RCC_PLLCFGR_PLLPDIV_Pos)) || - 80038b6: 429a cmp r2, r3 - 80038b8: d109 bne.n 80038ce + 80042ae: 429a cmp r2, r3 + 80042b0: d109 bne.n 80042c6 (READ_BIT(temp_pllckcfg, RCC_PLLCFGR_PLLR) != ((((RCC_OscInitStruct->PLL.PLLR) >> 1U) - 1U) << RCC_PLLCFGR_PLLR_Pos))) - 80038ba: 697b ldr r3, [r7, #20] - 80038bc: f003 62c0 and.w r2, r3, #100663296 @ 0x6000000 - 80038c0: 687b ldr r3, [r7, #4] - 80038c2: 6b5b ldr r3, [r3, #52] @ 0x34 - 80038c4: 085b lsrs r3, r3, #1 - 80038c6: 3b01 subs r3, #1 - 80038c8: 065b lsls r3, r3, #25 + 80042b2: 697b ldr r3, [r7, #20] + 80042b4: f003 62c0 and.w r2, r3, #100663296 @ 0x6000000 + 80042b8: 687b ldr r3, [r7, #4] + 80042ba: 6b5b ldr r3, [r3, #52] @ 0x34 + 80042bc: 085b lsrs r3, r3, #1 + 80042be: 3b01 subs r3, #1 + 80042c0: 065b lsls r3, r3, #25 (READ_BIT(temp_pllckcfg, RCC_PLLCFGR_PLLQ) != ((((RCC_OscInitStruct->PLL.PLLQ) >> 1U) - 1U) << RCC_PLLCFGR_PLLQ_Pos)) || - 80038ca: 429a cmp r2, r3 - 80038cc: d001 beq.n 80038d2 + 80042c2: 429a cmp r2, r3 + 80042c4: d001 beq.n 80042ca { return HAL_ERROR; - 80038ce: 2301 movs r3, #1 - 80038d0: e000 b.n 80038d4 + 80042c6: 2301 movs r3, #1 + 80042c8: e000 b.n 80042cc } } } } return HAL_OK; - 80038d2: 2300 movs r3, #0 + 80042ca: 2300 movs r3, #0 } - 80038d4: 4618 mov r0, r3 - 80038d6: 3720 adds r7, #32 - 80038d8: 46bd mov sp, r7 - 80038da: bd80 pop {r7, pc} - 80038dc: 40021000 .word 0x40021000 - 80038e0: 019f800c .word 0x019f800c - 80038e4: feeefffc .word 0xfeeefffc + 80042cc: 4618 mov r0, r3 + 80042ce: 3720 adds r7, #32 + 80042d0: 46bd mov sp, r7 + 80042d2: bd80 pop {r7, pc} + 80042d4: 40021000 .word 0x40021000 + 80042d8: 019f800c .word 0x019f800c + 80042dc: feeefffc .word 0xfeeefffc -080038e8 : +080042e0 : * HPRE[3:0] bits to ensure that HCLK not exceed the maximum allowed frequency * (for more details refer to section above "Initialization/de-initialization functions") * @retval None */ HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency) { - 80038e8: b580 push {r7, lr} - 80038ea: b086 sub sp, #24 - 80038ec: af00 add r7, sp, #0 - 80038ee: 6078 str r0, [r7, #4] - 80038f0: 6039 str r1, [r7, #0] + 80042e0: b580 push {r7, lr} + 80042e2: b086 sub sp, #24 + 80042e4: af00 add r7, sp, #0 + 80042e6: 6078 str r0, [r7, #4] + 80042e8: 6039 str r1, [r7, #0] uint32_t tickstart; uint32_t pllfreq; uint32_t hpre = RCC_SYSCLK_DIV1; - 80038f2: 2300 movs r3, #0 - 80038f4: 617b str r3, [r7, #20] + 80042ea: 2300 movs r3, #0 + 80042ec: 617b str r3, [r7, #20] /* Check Null pointer */ if (RCC_ClkInitStruct == NULL) - 80038f6: 687b ldr r3, [r7, #4] - 80038f8: 2b00 cmp r3, #0 - 80038fa: d101 bne.n 8003900 + 80042ee: 687b ldr r3, [r7, #4] + 80042f0: 2b00 cmp r3, #0 + 80042f2: d101 bne.n 80042f8 { return HAL_ERROR; - 80038fc: 2301 movs r3, #1 - 80038fe: e11e b.n 8003b3e + 80042f4: 2301 movs r3, #1 + 80042f6: e11e b.n 8004536 /* To correctly read data from FLASH memory, the number of wait states (LATENCY) must be correctly programmed according to the frequency of the CPU clock (HCLK) and the supply voltage of the device. */ /* Increasing the number of wait states because of higher CPU frequency */ if (FLatency > __HAL_FLASH_GET_LATENCY()) - 8003900: 4b91 ldr r3, [pc, #580] @ (8003b48 ) - 8003902: 681b ldr r3, [r3, #0] - 8003904: f003 030f and.w r3, r3, #15 - 8003908: 683a ldr r2, [r7, #0] - 800390a: 429a cmp r2, r3 - 800390c: d910 bls.n 8003930 + 80042f8: 4b91 ldr r3, [pc, #580] @ (8004540 ) + 80042fa: 681b ldr r3, [r3, #0] + 80042fc: f003 030f and.w r3, r3, #15 + 8004300: 683a ldr r2, [r7, #0] + 8004302: 429a cmp r2, r3 + 8004304: d910 bls.n 8004328 { /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */ __HAL_FLASH_SET_LATENCY(FLatency); - 800390e: 4b8e ldr r3, [pc, #568] @ (8003b48 ) - 8003910: 681b ldr r3, [r3, #0] - 8003912: f023 020f bic.w r2, r3, #15 - 8003916: 498c ldr r1, [pc, #560] @ (8003b48 ) - 8003918: 683b ldr r3, [r7, #0] - 800391a: 4313 orrs r3, r2 - 800391c: 600b str r3, [r1, #0] + 8004306: 4b8e ldr r3, [pc, #568] @ (8004540 ) + 8004308: 681b ldr r3, [r3, #0] + 800430a: f023 020f bic.w r2, r3, #15 + 800430e: 498c ldr r1, [pc, #560] @ (8004540 ) + 8004310: 683b ldr r3, [r7, #0] + 8004312: 4313 orrs r3, r2 + 8004314: 600b str r3, [r1, #0] /* Check that the new number of wait states is taken into account to access the Flash memory by reading the FLASH_ACR register */ if (__HAL_FLASH_GET_LATENCY() != FLatency) - 800391e: 4b8a ldr r3, [pc, #552] @ (8003b48 ) - 8003920: 681b ldr r3, [r3, #0] - 8003922: f003 030f and.w r3, r3, #15 - 8003926: 683a ldr r2, [r7, #0] - 8003928: 429a cmp r2, r3 - 800392a: d001 beq.n 8003930 + 8004316: 4b8a ldr r3, [pc, #552] @ (8004540 ) + 8004318: 681b ldr r3, [r3, #0] + 800431a: f003 030f and.w r3, r3, #15 + 800431e: 683a ldr r2, [r7, #0] + 8004320: 429a cmp r2, r3 + 8004322: d001 beq.n 8004328 { return HAL_ERROR; - 800392c: 2301 movs r3, #1 - 800392e: e106 b.n 8003b3e + 8004324: 2301 movs r3, #1 + 8004326: e106 b.n 8004536 } } /*------------------------- SYSCLK Configuration ---------------------------*/ if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK) - 8003930: 687b ldr r3, [r7, #4] - 8003932: 681b ldr r3, [r3, #0] - 8003934: f003 0301 and.w r3, r3, #1 - 8003938: 2b00 cmp r3, #0 - 800393a: d073 beq.n 8003a24 + 8004328: 687b ldr r3, [r7, #4] + 800432a: 681b ldr r3, [r3, #0] + 800432c: f003 0301 and.w r3, r3, #1 + 8004330: 2b00 cmp r3, #0 + 8004332: d073 beq.n 800441c { assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource)); /* PLL is selected as System Clock Source */ if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK) - 800393c: 687b ldr r3, [r7, #4] - 800393e: 685b ldr r3, [r3, #4] - 8003940: 2b03 cmp r3, #3 - 8003942: d129 bne.n 8003998 + 8004334: 687b ldr r3, [r7, #4] + 8004336: 685b ldr r3, [r3, #4] + 8004338: 2b03 cmp r3, #3 + 800433a: d129 bne.n 8004390 { /* Check the PLL ready flag */ if (READ_BIT(RCC->CR, RCC_CR_PLLRDY) == 0U) - 8003944: 4b81 ldr r3, [pc, #516] @ (8003b4c ) - 8003946: 681b ldr r3, [r3, #0] - 8003948: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 - 800394c: 2b00 cmp r3, #0 - 800394e: d101 bne.n 8003954 + 800433c: 4b81 ldr r3, [pc, #516] @ (8004544 ) + 800433e: 681b ldr r3, [r3, #0] + 8004340: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 + 8004344: 2b00 cmp r3, #0 + 8004346: d101 bne.n 800434c { return HAL_ERROR; - 8003950: 2301 movs r3, #1 - 8003952: e0f4 b.n 8003b3e + 8004348: 2301 movs r3, #1 + 800434a: e0f4 b.n 8004536 } /* Undershoot management when selection PLL as SYSCLK source and frequency above 80Mhz */ /* Compute target PLL output frequency */ pllfreq = RCC_GetSysClockFreqFromPLLSource(); - 8003954: f000 f99e bl 8003c94 - 8003958: 6138 str r0, [r7, #16] + 800434c: f000 f99e bl 800468c + 8004350: 6138 str r0, [r7, #16] /* Intermediate step with HCLK prescaler 2 necessary before to go over 80Mhz */ if(pllfreq > 80000000U) - 800395a: 693b ldr r3, [r7, #16] - 800395c: 4a7c ldr r2, [pc, #496] @ (8003b50 ) - 800395e: 4293 cmp r3, r2 - 8003960: d93f bls.n 80039e2 + 8004352: 693b ldr r3, [r7, #16] + 8004354: 4a7c ldr r2, [pc, #496] @ (8004548 ) + 8004356: 4293 cmp r3, r2 + 8004358: d93f bls.n 80043da { if (((READ_BIT(RCC->CFGR, RCC_CFGR_HPRE) == RCC_SYSCLK_DIV1)) || - 8003962: 4b7a ldr r3, [pc, #488] @ (8003b4c ) - 8003964: 689b ldr r3, [r3, #8] - 8003966: f003 03f0 and.w r3, r3, #240 @ 0xf0 - 800396a: 2b00 cmp r3, #0 - 800396c: d009 beq.n 8003982 + 800435a: 4b7a ldr r3, [pc, #488] @ (8004544 ) + 800435c: 689b ldr r3, [r3, #8] + 800435e: f003 03f0 and.w r3, r3, #240 @ 0xf0 + 8004362: 2b00 cmp r3, #0 + 8004364: d009 beq.n 800437a (((((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK) && - 800396e: 687b ldr r3, [r7, #4] - 8003970: 681b ldr r3, [r3, #0] - 8003972: f003 0302 and.w r3, r3, #2 + 8004366: 687b ldr r3, [r7, #4] + 8004368: 681b ldr r3, [r3, #0] + 800436a: f003 0302 and.w r3, r3, #2 if (((READ_BIT(RCC->CFGR, RCC_CFGR_HPRE) == RCC_SYSCLK_DIV1)) || - 8003976: 2b00 cmp r3, #0 - 8003978: d033 beq.n 80039e2 + 800436e: 2b00 cmp r3, #0 + 8004370: d033 beq.n 80043da (RCC_ClkInitStruct->AHBCLKDivider == RCC_SYSCLK_DIV1)))) - 800397a: 687b ldr r3, [r7, #4] - 800397c: 689b ldr r3, [r3, #8] + 8004372: 687b ldr r3, [r7, #4] + 8004374: 689b ldr r3, [r3, #8] (((((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK) && - 800397e: 2b00 cmp r3, #0 - 8003980: d12f bne.n 80039e2 + 8004376: 2b00 cmp r3, #0 + 8004378: d12f bne.n 80043da { MODIFY_REG(RCC->CFGR, RCC_CFGR_HPRE, RCC_SYSCLK_DIV2); - 8003982: 4b72 ldr r3, [pc, #456] @ (8003b4c ) - 8003984: 689b ldr r3, [r3, #8] - 8003986: f023 03f0 bic.w r3, r3, #240 @ 0xf0 - 800398a: 4a70 ldr r2, [pc, #448] @ (8003b4c ) - 800398c: f043 0380 orr.w r3, r3, #128 @ 0x80 - 8003990: 6093 str r3, [r2, #8] + 800437a: 4b72 ldr r3, [pc, #456] @ (8004544 ) + 800437c: 689b ldr r3, [r3, #8] + 800437e: f023 03f0 bic.w r3, r3, #240 @ 0xf0 + 8004382: 4a70 ldr r2, [pc, #448] @ (8004544 ) + 8004384: f043 0380 orr.w r3, r3, #128 @ 0x80 + 8004388: 6093 str r3, [r2, #8] hpre = RCC_SYSCLK_DIV2; - 8003992: 2380 movs r3, #128 @ 0x80 - 8003994: 617b str r3, [r7, #20] - 8003996: e024 b.n 80039e2 + 800438a: 2380 movs r3, #128 @ 0x80 + 800438c: 617b str r3, [r7, #20] + 800438e: e024 b.n 80043da } } else { /* HSE is selected as System Clock Source */ if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE) - 8003998: 687b ldr r3, [r7, #4] - 800399a: 685b ldr r3, [r3, #4] - 800399c: 2b02 cmp r3, #2 - 800399e: d107 bne.n 80039b0 + 8004390: 687b ldr r3, [r7, #4] + 8004392: 685b ldr r3, [r3, #4] + 8004394: 2b02 cmp r3, #2 + 8004396: d107 bne.n 80043a8 { /* Check the HSE ready flag */ if(READ_BIT(RCC->CR, RCC_CR_HSERDY) == 0U) - 80039a0: 4b6a ldr r3, [pc, #424] @ (8003b4c ) - 80039a2: 681b ldr r3, [r3, #0] - 80039a4: f403 3300 and.w r3, r3, #131072 @ 0x20000 - 80039a8: 2b00 cmp r3, #0 - 80039aa: d109 bne.n 80039c0 + 8004398: 4b6a ldr r3, [pc, #424] @ (8004544 ) + 800439a: 681b ldr r3, [r3, #0] + 800439c: f403 3300 and.w r3, r3, #131072 @ 0x20000 + 80043a0: 2b00 cmp r3, #0 + 80043a2: d109 bne.n 80043b8 { return HAL_ERROR; - 80039ac: 2301 movs r3, #1 - 80039ae: e0c6 b.n 8003b3e + 80043a4: 2301 movs r3, #1 + 80043a6: e0c6 b.n 8004536 } /* HSI is selected as System Clock Source */ else { /* Check the HSI ready flag */ if(READ_BIT(RCC->CR, RCC_CR_HSIRDY) == 0U) - 80039b0: 4b66 ldr r3, [pc, #408] @ (8003b4c ) - 80039b2: 681b ldr r3, [r3, #0] - 80039b4: f403 6380 and.w r3, r3, #1024 @ 0x400 - 80039b8: 2b00 cmp r3, #0 - 80039ba: d101 bne.n 80039c0 + 80043a8: 4b66 ldr r3, [pc, #408] @ (8004544 ) + 80043aa: 681b ldr r3, [r3, #0] + 80043ac: f403 6380 and.w r3, r3, #1024 @ 0x400 + 80043b0: 2b00 cmp r3, #0 + 80043b2: d101 bne.n 80043b8 { return HAL_ERROR; - 80039bc: 2301 movs r3, #1 - 80039be: e0be b.n 8003b3e + 80043b4: 2301 movs r3, #1 + 80043b6: e0be b.n 8004536 } } /* Overshoot management when going down from PLL as SYSCLK source and frequency above 80Mhz */ pllfreq = HAL_RCC_GetSysClockFreq(); - 80039c0: f000 f8ce bl 8003b60 - 80039c4: 6138 str r0, [r7, #16] + 80043b8: f000 f8ce bl 8004558 + 80043bc: 6138 str r0, [r7, #16] /* Intermediate step with HCLK prescaler 2 necessary before to go under 80Mhz */ if(pllfreq > 80000000U) - 80039c6: 693b ldr r3, [r7, #16] - 80039c8: 4a61 ldr r2, [pc, #388] @ (8003b50 ) - 80039ca: 4293 cmp r3, r2 - 80039cc: d909 bls.n 80039e2 + 80043be: 693b ldr r3, [r7, #16] + 80043c0: 4a61 ldr r2, [pc, #388] @ (8004548 ) + 80043c2: 4293 cmp r3, r2 + 80043c4: d909 bls.n 80043da { MODIFY_REG(RCC->CFGR, RCC_CFGR_HPRE, RCC_SYSCLK_DIV2); - 80039ce: 4b5f ldr r3, [pc, #380] @ (8003b4c ) - 80039d0: 689b ldr r3, [r3, #8] - 80039d2: f023 03f0 bic.w r3, r3, #240 @ 0xf0 - 80039d6: 4a5d ldr r2, [pc, #372] @ (8003b4c ) - 80039d8: f043 0380 orr.w r3, r3, #128 @ 0x80 - 80039dc: 6093 str r3, [r2, #8] + 80043c6: 4b5f ldr r3, [pc, #380] @ (8004544 ) + 80043c8: 689b ldr r3, [r3, #8] + 80043ca: f023 03f0 bic.w r3, r3, #240 @ 0xf0 + 80043ce: 4a5d ldr r2, [pc, #372] @ (8004544 ) + 80043d0: f043 0380 orr.w r3, r3, #128 @ 0x80 + 80043d4: 6093 str r3, [r2, #8] hpre = RCC_SYSCLK_DIV2; - 80039de: 2380 movs r3, #128 @ 0x80 - 80039e0: 617b str r3, [r7, #20] + 80043d6: 2380 movs r3, #128 @ 0x80 + 80043d8: 617b str r3, [r7, #20] } } MODIFY_REG(RCC->CFGR, RCC_CFGR_SW, RCC_ClkInitStruct->SYSCLKSource); - 80039e2: 4b5a ldr r3, [pc, #360] @ (8003b4c ) - 80039e4: 689b ldr r3, [r3, #8] - 80039e6: f023 0203 bic.w r2, r3, #3 - 80039ea: 687b ldr r3, [r7, #4] - 80039ec: 685b ldr r3, [r3, #4] - 80039ee: 4957 ldr r1, [pc, #348] @ (8003b4c ) - 80039f0: 4313 orrs r3, r2 - 80039f2: 608b str r3, [r1, #8] + 80043da: 4b5a ldr r3, [pc, #360] @ (8004544 ) + 80043dc: 689b ldr r3, [r3, #8] + 80043de: f023 0203 bic.w r2, r3, #3 + 80043e2: 687b ldr r3, [r7, #4] + 80043e4: 685b ldr r3, [r3, #4] + 80043e6: 4957 ldr r1, [pc, #348] @ (8004544 ) + 80043e8: 4313 orrs r3, r2 + 80043ea: 608b str r3, [r1, #8] /* Get Start Tick*/ tickstart = HAL_GetTick(); - 80039f4: f7fd fc0c bl 8001210 - 80039f8: 60f8 str r0, [r7, #12] + 80043ec: f7fd fb7e bl 8001aec + 80043f0: 60f8 str r0, [r7, #12] while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos)) - 80039fa: e00a b.n 8003a12 + 80043f2: e00a b.n 800440a { if ((HAL_GetTick() - tickstart) > CLOCKSWITCH_TIMEOUT_VALUE) - 80039fc: f7fd fc08 bl 8001210 - 8003a00: 4602 mov r2, r0 - 8003a02: 68fb ldr r3, [r7, #12] - 8003a04: 1ad3 subs r3, r2, r3 - 8003a06: f241 3288 movw r2, #5000 @ 0x1388 - 8003a0a: 4293 cmp r3, r2 - 8003a0c: d901 bls.n 8003a12 + 80043f4: f7fd fb7a bl 8001aec + 80043f8: 4602 mov r2, r0 + 80043fa: 68fb ldr r3, [r7, #12] + 80043fc: 1ad3 subs r3, r2, r3 + 80043fe: f241 3288 movw r2, #5000 @ 0x1388 + 8004402: 4293 cmp r3, r2 + 8004404: d901 bls.n 800440a { return HAL_TIMEOUT; - 8003a0e: 2303 movs r3, #3 - 8003a10: e095 b.n 8003b3e + 8004406: 2303 movs r3, #3 + 8004408: e095 b.n 8004536 while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos)) - 8003a12: 4b4e ldr r3, [pc, #312] @ (8003b4c ) - 8003a14: 689b ldr r3, [r3, #8] - 8003a16: f003 020c and.w r2, r3, #12 - 8003a1a: 687b ldr r3, [r7, #4] - 8003a1c: 685b ldr r3, [r3, #4] - 8003a1e: 009b lsls r3, r3, #2 - 8003a20: 429a cmp r2, r3 - 8003a22: d1eb bne.n 80039fc + 800440a: 4b4e ldr r3, [pc, #312] @ (8004544 ) + 800440c: 689b ldr r3, [r3, #8] + 800440e: f003 020c and.w r2, r3, #12 + 8004412: 687b ldr r3, [r7, #4] + 8004414: 685b ldr r3, [r3, #4] + 8004416: 009b lsls r3, r3, #2 + 8004418: 429a cmp r2, r3 + 800441a: d1eb bne.n 80043f4 } } } /*-------------------------- HCLK Configuration --------------------------*/ if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK) - 8003a24: 687b ldr r3, [r7, #4] - 8003a26: 681b ldr r3, [r3, #0] - 8003a28: f003 0302 and.w r3, r3, #2 - 8003a2c: 2b00 cmp r3, #0 - 8003a2e: d023 beq.n 8003a78 + 800441c: 687b ldr r3, [r7, #4] + 800441e: 681b ldr r3, [r3, #0] + 8004420: f003 0302 and.w r3, r3, #2 + 8004424: 2b00 cmp r3, #0 + 8004426: d023 beq.n 8004470 { /* Set the highest APB divider in order to ensure that we do not go through a non-spec phase whatever we decrease or increase HCLK. */ if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1) - 8003a30: 687b ldr r3, [r7, #4] - 8003a32: 681b ldr r3, [r3, #0] - 8003a34: f003 0304 and.w r3, r3, #4 - 8003a38: 2b00 cmp r3, #0 - 8003a3a: d005 beq.n 8003a48 + 8004428: 687b ldr r3, [r7, #4] + 800442a: 681b ldr r3, [r3, #0] + 800442c: f003 0304 and.w r3, r3, #4 + 8004430: 2b00 cmp r3, #0 + 8004432: d005 beq.n 8004440 { MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_HCLK_DIV16); - 8003a3c: 4b43 ldr r3, [pc, #268] @ (8003b4c ) - 8003a3e: 689b ldr r3, [r3, #8] - 8003a40: 4a42 ldr r2, [pc, #264] @ (8003b4c ) - 8003a42: f443 63e0 orr.w r3, r3, #1792 @ 0x700 - 8003a46: 6093 str r3, [r2, #8] + 8004434: 4b43 ldr r3, [pc, #268] @ (8004544 ) + 8004436: 689b ldr r3, [r3, #8] + 8004438: 4a42 ldr r2, [pc, #264] @ (8004544 ) + 800443a: f443 63e0 orr.w r3, r3, #1792 @ 0x700 + 800443e: 6093 str r3, [r2, #8] } if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2) - 8003a48: 687b ldr r3, [r7, #4] - 8003a4a: 681b ldr r3, [r3, #0] - 8003a4c: f003 0308 and.w r3, r3, #8 - 8003a50: 2b00 cmp r3, #0 - 8003a52: d007 beq.n 8003a64 + 8004440: 687b ldr r3, [r7, #4] + 8004442: 681b ldr r3, [r3, #0] + 8004444: f003 0308 and.w r3, r3, #8 + 8004448: 2b00 cmp r3, #0 + 800444a: d007 beq.n 800445c { MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, RCC_HCLK_DIV16); - 8003a54: 4b3d ldr r3, [pc, #244] @ (8003b4c ) - 8003a56: 689b ldr r3, [r3, #8] - 8003a58: f423 537c bic.w r3, r3, #16128 @ 0x3f00 - 8003a5c: 4a3b ldr r2, [pc, #236] @ (8003b4c ) - 8003a5e: f443 63e0 orr.w r3, r3, #1792 @ 0x700 - 8003a62: 6093 str r3, [r2, #8] + 800444c: 4b3d ldr r3, [pc, #244] @ (8004544 ) + 800444e: 689b ldr r3, [r3, #8] + 8004450: f423 537c bic.w r3, r3, #16128 @ 0x3f00 + 8004454: 4a3b ldr r2, [pc, #236] @ (8004544 ) + 8004456: f443 63e0 orr.w r3, r3, #1792 @ 0x700 + 800445a: 6093 str r3, [r2, #8] } /* Set the new HCLK clock divider */ assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider)); MODIFY_REG(RCC->CFGR, RCC_CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider); - 8003a64: 4b39 ldr r3, [pc, #228] @ (8003b4c ) - 8003a66: 689b ldr r3, [r3, #8] - 8003a68: f023 02f0 bic.w r2, r3, #240 @ 0xf0 - 8003a6c: 687b ldr r3, [r7, #4] - 8003a6e: 689b ldr r3, [r3, #8] - 8003a70: 4936 ldr r1, [pc, #216] @ (8003b4c ) - 8003a72: 4313 orrs r3, r2 - 8003a74: 608b str r3, [r1, #8] - 8003a76: e008 b.n 8003a8a + 800445c: 4b39 ldr r3, [pc, #228] @ (8004544 ) + 800445e: 689b ldr r3, [r3, #8] + 8004460: f023 02f0 bic.w r2, r3, #240 @ 0xf0 + 8004464: 687b ldr r3, [r7, #4] + 8004466: 689b ldr r3, [r3, #8] + 8004468: 4936 ldr r1, [pc, #216] @ (8004544 ) + 800446a: 4313 orrs r3, r2 + 800446c: 608b str r3, [r1, #8] + 800446e: e008 b.n 8004482 } else { /* Is intermediate HCLK prescaler 2 applied internally, complete with HCLK prescaler 1 */ if(hpre == RCC_SYSCLK_DIV2) - 8003a78: 697b ldr r3, [r7, #20] - 8003a7a: 2b80 cmp r3, #128 @ 0x80 - 8003a7c: d105 bne.n 8003a8a + 8004470: 697b ldr r3, [r7, #20] + 8004472: 2b80 cmp r3, #128 @ 0x80 + 8004474: d105 bne.n 8004482 { MODIFY_REG(RCC->CFGR, RCC_CFGR_HPRE, RCC_SYSCLK_DIV1); - 8003a7e: 4b33 ldr r3, [pc, #204] @ (8003b4c ) - 8003a80: 689b ldr r3, [r3, #8] - 8003a82: 4a32 ldr r2, [pc, #200] @ (8003b4c ) - 8003a84: f023 03f0 bic.w r3, r3, #240 @ 0xf0 - 8003a88: 6093 str r3, [r2, #8] + 8004476: 4b33 ldr r3, [pc, #204] @ (8004544 ) + 8004478: 689b ldr r3, [r3, #8] + 800447a: 4a32 ldr r2, [pc, #200] @ (8004544 ) + 800447c: f023 03f0 bic.w r3, r3, #240 @ 0xf0 + 8004480: 6093 str r3, [r2, #8] } } /* Decreasing the number of wait states because of lower CPU frequency */ if (FLatency < __HAL_FLASH_GET_LATENCY()) - 8003a8a: 4b2f ldr r3, [pc, #188] @ (8003b48 ) - 8003a8c: 681b ldr r3, [r3, #0] - 8003a8e: f003 030f and.w r3, r3, #15 - 8003a92: 683a ldr r2, [r7, #0] - 8003a94: 429a cmp r2, r3 - 8003a96: d21d bcs.n 8003ad4 + 8004482: 4b2f ldr r3, [pc, #188] @ (8004540 ) + 8004484: 681b ldr r3, [r3, #0] + 8004486: f003 030f and.w r3, r3, #15 + 800448a: 683a ldr r2, [r7, #0] + 800448c: 429a cmp r2, r3 + 800448e: d21d bcs.n 80044cc { /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */ __HAL_FLASH_SET_LATENCY(FLatency); - 8003a98: 4b2b ldr r3, [pc, #172] @ (8003b48 ) - 8003a9a: 681b ldr r3, [r3, #0] - 8003a9c: f023 020f bic.w r2, r3, #15 - 8003aa0: 4929 ldr r1, [pc, #164] @ (8003b48 ) - 8003aa2: 683b ldr r3, [r7, #0] - 8003aa4: 4313 orrs r3, r2 - 8003aa6: 600b str r3, [r1, #0] + 8004490: 4b2b ldr r3, [pc, #172] @ (8004540 ) + 8004492: 681b ldr r3, [r3, #0] + 8004494: f023 020f bic.w r2, r3, #15 + 8004498: 4929 ldr r1, [pc, #164] @ (8004540 ) + 800449a: 683b ldr r3, [r7, #0] + 800449c: 4313 orrs r3, r2 + 800449e: 600b str r3, [r1, #0] /* Check that the new number of wait states is taken into account to access the Flash memory by polling the FLASH_ACR register */ tickstart = HAL_GetTick(); - 8003aa8: f7fd fbb2 bl 8001210 - 8003aac: 60f8 str r0, [r7, #12] + 80044a0: f7fd fb24 bl 8001aec + 80044a4: 60f8 str r0, [r7, #12] while (__HAL_FLASH_GET_LATENCY() != FLatency) - 8003aae: e00a b.n 8003ac6 + 80044a6: e00a b.n 80044be { if ((HAL_GetTick() - tickstart) > CLOCKSWITCH_TIMEOUT_VALUE) - 8003ab0: f7fd fbae bl 8001210 - 8003ab4: 4602 mov r2, r0 - 8003ab6: 68fb ldr r3, [r7, #12] - 8003ab8: 1ad3 subs r3, r2, r3 - 8003aba: f241 3288 movw r2, #5000 @ 0x1388 - 8003abe: 4293 cmp r3, r2 - 8003ac0: d901 bls.n 8003ac6 + 80044a8: f7fd fb20 bl 8001aec + 80044ac: 4602 mov r2, r0 + 80044ae: 68fb ldr r3, [r7, #12] + 80044b0: 1ad3 subs r3, r2, r3 + 80044b2: f241 3288 movw r2, #5000 @ 0x1388 + 80044b6: 4293 cmp r3, r2 + 80044b8: d901 bls.n 80044be { return HAL_TIMEOUT; - 8003ac2: 2303 movs r3, #3 - 8003ac4: e03b b.n 8003b3e + 80044ba: 2303 movs r3, #3 + 80044bc: e03b b.n 8004536 while (__HAL_FLASH_GET_LATENCY() != FLatency) - 8003ac6: 4b20 ldr r3, [pc, #128] @ (8003b48 ) - 8003ac8: 681b ldr r3, [r3, #0] - 8003aca: f003 030f and.w r3, r3, #15 - 8003ace: 683a ldr r2, [r7, #0] - 8003ad0: 429a cmp r2, r3 - 8003ad2: d1ed bne.n 8003ab0 + 80044be: 4b20 ldr r3, [pc, #128] @ (8004540 ) + 80044c0: 681b ldr r3, [r3, #0] + 80044c2: f003 030f and.w r3, r3, #15 + 80044c6: 683a ldr r2, [r7, #0] + 80044c8: 429a cmp r2, r3 + 80044ca: d1ed bne.n 80044a8 } } } /*-------------------------- PCLK1 Configuration ---------------------------*/ if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1) - 8003ad4: 687b ldr r3, [r7, #4] - 8003ad6: 681b ldr r3, [r3, #0] - 8003ad8: f003 0304 and.w r3, r3, #4 - 8003adc: 2b00 cmp r3, #0 - 8003ade: d008 beq.n 8003af2 + 80044cc: 687b ldr r3, [r7, #4] + 80044ce: 681b ldr r3, [r3, #0] + 80044d0: f003 0304 and.w r3, r3, #4 + 80044d4: 2b00 cmp r3, #0 + 80044d6: d008 beq.n 80044ea { assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB1CLKDivider)); MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_ClkInitStruct->APB1CLKDivider); - 8003ae0: 4b1a ldr r3, [pc, #104] @ (8003b4c ) - 8003ae2: 689b ldr r3, [r3, #8] - 8003ae4: f423 62e0 bic.w r2, r3, #1792 @ 0x700 - 8003ae8: 687b ldr r3, [r7, #4] - 8003aea: 68db ldr r3, [r3, #12] - 8003aec: 4917 ldr r1, [pc, #92] @ (8003b4c ) - 8003aee: 4313 orrs r3, r2 - 8003af0: 608b str r3, [r1, #8] + 80044d8: 4b1a ldr r3, [pc, #104] @ (8004544 ) + 80044da: 689b ldr r3, [r3, #8] + 80044dc: f423 62e0 bic.w r2, r3, #1792 @ 0x700 + 80044e0: 687b ldr r3, [r7, #4] + 80044e2: 68db ldr r3, [r3, #12] + 80044e4: 4917 ldr r1, [pc, #92] @ (8004544 ) + 80044e6: 4313 orrs r3, r2 + 80044e8: 608b str r3, [r1, #8] } /*-------------------------- PCLK2 Configuration ---------------------------*/ if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2) - 8003af2: 687b ldr r3, [r7, #4] - 8003af4: 681b ldr r3, [r3, #0] - 8003af6: f003 0308 and.w r3, r3, #8 - 8003afa: 2b00 cmp r3, #0 - 8003afc: d009 beq.n 8003b12 + 80044ea: 687b ldr r3, [r7, #4] + 80044ec: 681b ldr r3, [r3, #0] + 80044ee: f003 0308 and.w r3, r3, #8 + 80044f2: 2b00 cmp r3, #0 + 80044f4: d009 beq.n 800450a { assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB2CLKDivider)); MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, ((RCC_ClkInitStruct->APB2CLKDivider) << 3U)); - 8003afe: 4b13 ldr r3, [pc, #76] @ (8003b4c ) - 8003b00: 689b ldr r3, [r3, #8] - 8003b02: f423 5260 bic.w r2, r3, #14336 @ 0x3800 - 8003b06: 687b ldr r3, [r7, #4] - 8003b08: 691b ldr r3, [r3, #16] - 8003b0a: 00db lsls r3, r3, #3 - 8003b0c: 490f ldr r1, [pc, #60] @ (8003b4c ) - 8003b0e: 4313 orrs r3, r2 - 8003b10: 608b str r3, [r1, #8] + 80044f6: 4b13 ldr r3, [pc, #76] @ (8004544 ) + 80044f8: 689b ldr r3, [r3, #8] + 80044fa: f423 5260 bic.w r2, r3, #14336 @ 0x3800 + 80044fe: 687b ldr r3, [r7, #4] + 8004500: 691b ldr r3, [r3, #16] + 8004502: 00db lsls r3, r3, #3 + 8004504: 490f ldr r1, [pc, #60] @ (8004544 ) + 8004506: 4313 orrs r3, r2 + 8004508: 608b str r3, [r1, #8] } /* Update the SystemCoreClock global variable */ SystemCoreClock = HAL_RCC_GetSysClockFreq() >> (AHBPrescTable[READ_BIT(RCC->CFGR, RCC_CFGR_HPRE) >> RCC_CFGR_HPRE_Pos] & 0x1FU); - 8003b12: f000 f825 bl 8003b60 - 8003b16: 4602 mov r2, r0 - 8003b18: 4b0c ldr r3, [pc, #48] @ (8003b4c ) - 8003b1a: 689b ldr r3, [r3, #8] - 8003b1c: 091b lsrs r3, r3, #4 - 8003b1e: f003 030f and.w r3, r3, #15 - 8003b22: 490c ldr r1, [pc, #48] @ (8003b54 ) - 8003b24: 5ccb ldrb r3, [r1, r3] - 8003b26: f003 031f and.w r3, r3, #31 - 8003b2a: fa22 f303 lsr.w r3, r2, r3 - 8003b2e: 4a0a ldr r2, [pc, #40] @ (8003b58 ) - 8003b30: 6013 str r3, [r2, #0] + 800450a: f000 f825 bl 8004558 + 800450e: 4602 mov r2, r0 + 8004510: 4b0c ldr r3, [pc, #48] @ (8004544 ) + 8004512: 689b ldr r3, [r3, #8] + 8004514: 091b lsrs r3, r3, #4 + 8004516: f003 030f and.w r3, r3, #15 + 800451a: 490c ldr r1, [pc, #48] @ (800454c ) + 800451c: 5ccb ldrb r3, [r1, r3] + 800451e: f003 031f and.w r3, r3, #31 + 8004522: fa22 f303 lsr.w r3, r2, r3 + 8004526: 4a0a ldr r2, [pc, #40] @ (8004550 ) + 8004528: 6013 str r3, [r2, #0] /* Configure the source of time base considering new system clocks settings*/ return HAL_InitTick(uwTickPrio); - 8003b32: 4b0a ldr r3, [pc, #40] @ (8003b5c ) - 8003b34: 681b ldr r3, [r3, #0] - 8003b36: 4618 mov r0, r3 - 8003b38: f7fd fb1e bl 8001178 - 8003b3c: 4603 mov r3, r0 + 800452a: 4b0a ldr r3, [pc, #40] @ (8004554 ) + 800452c: 681b ldr r3, [r3, #0] + 800452e: 4618 mov r0, r3 + 8004530: f7fd fa90 bl 8001a54 + 8004534: 4603 mov r3, r0 } - 8003b3e: 4618 mov r0, r3 - 8003b40: 3718 adds r7, #24 - 8003b42: 46bd mov sp, r7 - 8003b44: bd80 pop {r7, pc} - 8003b46: bf00 nop - 8003b48: 40022000 .word 0x40022000 - 8003b4c: 40021000 .word 0x40021000 - 8003b50: 04c4b400 .word 0x04c4b400 - 8003b54: 08006d34 .word 0x08006d34 - 8003b58: 20000000 .word 0x20000000 - 8003b5c: 20000004 .word 0x20000004 + 8004536: 4618 mov r0, r3 + 8004538: 3718 adds r7, #24 + 800453a: 46bd mov sp, r7 + 800453c: bd80 pop {r7, pc} + 800453e: bf00 nop + 8004540: 40022000 .word 0x40022000 + 8004544: 40021000 .word 0x40021000 + 8004548: 04c4b400 .word 0x04c4b400 + 800454c: 0800772c .word 0x0800772c + 8004550: 20000014 .word 0x20000014 + 8004554: 20000018 .word 0x20000018 -08003b60 : +08004558 : * * * @retval SYSCLK frequency */ uint32_t HAL_RCC_GetSysClockFreq(void) { - 8003b60: b480 push {r7} - 8003b62: b087 sub sp, #28 - 8003b64: af00 add r7, sp, #0 + 8004558: b480 push {r7} + 800455a: b087 sub sp, #28 + 800455c: af00 add r7, sp, #0 uint32_t pllvco, pllsource, pllr, pllm; uint32_t sysclockfreq; if (__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_HSI) - 8003b66: 4b2c ldr r3, [pc, #176] @ (8003c18 ) - 8003b68: 689b ldr r3, [r3, #8] - 8003b6a: f003 030c and.w r3, r3, #12 - 8003b6e: 2b04 cmp r3, #4 - 8003b70: d102 bne.n 8003b78 + 800455e: 4b2c ldr r3, [pc, #176] @ (8004610 ) + 8004560: 689b ldr r3, [r3, #8] + 8004562: f003 030c and.w r3, r3, #12 + 8004566: 2b04 cmp r3, #4 + 8004568: d102 bne.n 8004570 { /* HSI used as system clock source */ sysclockfreq = HSI_VALUE; - 8003b72: 4b2a ldr r3, [pc, #168] @ (8003c1c ) - 8003b74: 613b str r3, [r7, #16] - 8003b76: e047 b.n 8003c08 + 800456a: 4b2a ldr r3, [pc, #168] @ (8004614 ) + 800456c: 613b str r3, [r7, #16] + 800456e: e047 b.n 8004600 } else if (__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_HSE) - 8003b78: 4b27 ldr r3, [pc, #156] @ (8003c18 ) - 8003b7a: 689b ldr r3, [r3, #8] - 8003b7c: f003 030c and.w r3, r3, #12 - 8003b80: 2b08 cmp r3, #8 - 8003b82: d102 bne.n 8003b8a + 8004570: 4b27 ldr r3, [pc, #156] @ (8004610 ) + 8004572: 689b ldr r3, [r3, #8] + 8004574: f003 030c and.w r3, r3, #12 + 8004578: 2b08 cmp r3, #8 + 800457a: d102 bne.n 8004582 { /* HSE used as system clock source */ sysclockfreq = HSE_VALUE; - 8003b84: 4b26 ldr r3, [pc, #152] @ (8003c20 ) - 8003b86: 613b str r3, [r7, #16] - 8003b88: e03e b.n 8003c08 + 800457c: 4b26 ldr r3, [pc, #152] @ (8004618 ) + 800457e: 613b str r3, [r7, #16] + 8004580: e03e b.n 8004600 } else if (__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLL) - 8003b8a: 4b23 ldr r3, [pc, #140] @ (8003c18 ) - 8003b8c: 689b ldr r3, [r3, #8] - 8003b8e: f003 030c and.w r3, r3, #12 - 8003b92: 2b0c cmp r3, #12 - 8003b94: d136 bne.n 8003c04 + 8004582: 4b23 ldr r3, [pc, #140] @ (8004610 ) + 8004584: 689b ldr r3, [r3, #8] + 8004586: f003 030c and.w r3, r3, #12 + 800458a: 2b0c cmp r3, #12 + 800458c: d136 bne.n 80045fc /* PLL used as system clock source */ /* PLL_VCO = ((HSE_VALUE or HSI_VALUE)/ PLLM) * PLLN SYSCLK = PLL_VCO / PLLR */ pllsource = READ_BIT(RCC->PLLCFGR, RCC_PLLCFGR_PLLSRC); - 8003b96: 4b20 ldr r3, [pc, #128] @ (8003c18 ) - 8003b98: 68db ldr r3, [r3, #12] - 8003b9a: f003 0303 and.w r3, r3, #3 - 8003b9e: 60fb str r3, [r7, #12] + 800458e: 4b20 ldr r3, [pc, #128] @ (8004610 ) + 8004590: 68db ldr r3, [r3, #12] + 8004592: f003 0303 and.w r3, r3, #3 + 8004596: 60fb str r3, [r7, #12] pllm = (READ_BIT(RCC->PLLCFGR, RCC_PLLCFGR_PLLM) >> RCC_PLLCFGR_PLLM_Pos) + 1U ; - 8003ba0: 4b1d ldr r3, [pc, #116] @ (8003c18 ) - 8003ba2: 68db ldr r3, [r3, #12] - 8003ba4: 091b lsrs r3, r3, #4 - 8003ba6: f003 030f and.w r3, r3, #15 - 8003baa: 3301 adds r3, #1 - 8003bac: 60bb str r3, [r7, #8] + 8004598: 4b1d ldr r3, [pc, #116] @ (8004610 ) + 800459a: 68db ldr r3, [r3, #12] + 800459c: 091b lsrs r3, r3, #4 + 800459e: f003 030f and.w r3, r3, #15 + 80045a2: 3301 adds r3, #1 + 80045a4: 60bb str r3, [r7, #8] switch (pllsource) - 8003bae: 68fb ldr r3, [r7, #12] - 8003bb0: 2b03 cmp r3, #3 - 8003bb2: d10c bne.n 8003bce + 80045a6: 68fb ldr r3, [r7, #12] + 80045a8: 2b03 cmp r3, #3 + 80045aa: d10c bne.n 80045c6 { case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */ pllvco = (HSE_VALUE / pllm) * (READ_BIT(RCC->PLLCFGR, RCC_PLLCFGR_PLLN) >> RCC_PLLCFGR_PLLN_Pos); - 8003bb4: 4a1a ldr r2, [pc, #104] @ (8003c20 ) - 8003bb6: 68bb ldr r3, [r7, #8] - 8003bb8: fbb2 f3f3 udiv r3, r2, r3 - 8003bbc: 4a16 ldr r2, [pc, #88] @ (8003c18 ) - 8003bbe: 68d2 ldr r2, [r2, #12] - 8003bc0: 0a12 lsrs r2, r2, #8 - 8003bc2: f002 027f and.w r2, r2, #127 @ 0x7f - 8003bc6: fb02 f303 mul.w r3, r2, r3 - 8003bca: 617b str r3, [r7, #20] + 80045ac: 4a1a ldr r2, [pc, #104] @ (8004618 ) + 80045ae: 68bb ldr r3, [r7, #8] + 80045b0: fbb2 f3f3 udiv r3, r2, r3 + 80045b4: 4a16 ldr r2, [pc, #88] @ (8004610 ) + 80045b6: 68d2 ldr r2, [r2, #12] + 80045b8: 0a12 lsrs r2, r2, #8 + 80045ba: f002 027f and.w r2, r2, #127 @ 0x7f + 80045be: fb02 f303 mul.w r3, r2, r3 + 80045c2: 617b str r3, [r7, #20] break; - 8003bcc: e00c b.n 8003be8 + 80045c4: e00c b.n 80045e0 case RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */ default: pllvco = (HSI_VALUE / pllm) * (READ_BIT(RCC->PLLCFGR, RCC_PLLCFGR_PLLN) >> RCC_PLLCFGR_PLLN_Pos); - 8003bce: 4a13 ldr r2, [pc, #76] @ (8003c1c ) - 8003bd0: 68bb ldr r3, [r7, #8] - 8003bd2: fbb2 f3f3 udiv r3, r2, r3 - 8003bd6: 4a10 ldr r2, [pc, #64] @ (8003c18 ) - 8003bd8: 68d2 ldr r2, [r2, #12] - 8003bda: 0a12 lsrs r2, r2, #8 - 8003bdc: f002 027f and.w r2, r2, #127 @ 0x7f - 8003be0: fb02 f303 mul.w r3, r2, r3 - 8003be4: 617b str r3, [r7, #20] + 80045c6: 4a13 ldr r2, [pc, #76] @ (8004614 ) + 80045c8: 68bb ldr r3, [r7, #8] + 80045ca: fbb2 f3f3 udiv r3, r2, r3 + 80045ce: 4a10 ldr r2, [pc, #64] @ (8004610 ) + 80045d0: 68d2 ldr r2, [r2, #12] + 80045d2: 0a12 lsrs r2, r2, #8 + 80045d4: f002 027f and.w r2, r2, #127 @ 0x7f + 80045d8: fb02 f303 mul.w r3, r2, r3 + 80045dc: 617b str r3, [r7, #20] break; - 8003be6: bf00 nop + 80045de: bf00 nop } pllr = ((READ_BIT(RCC->PLLCFGR, RCC_PLLCFGR_PLLR) >> RCC_PLLCFGR_PLLR_Pos) + 1U ) * 2U; - 8003be8: 4b0b ldr r3, [pc, #44] @ (8003c18 ) - 8003bea: 68db ldr r3, [r3, #12] - 8003bec: 0e5b lsrs r3, r3, #25 - 8003bee: f003 0303 and.w r3, r3, #3 - 8003bf2: 3301 adds r3, #1 - 8003bf4: 005b lsls r3, r3, #1 - 8003bf6: 607b str r3, [r7, #4] + 80045e0: 4b0b ldr r3, [pc, #44] @ (8004610 ) + 80045e2: 68db ldr r3, [r3, #12] + 80045e4: 0e5b lsrs r3, r3, #25 + 80045e6: f003 0303 and.w r3, r3, #3 + 80045ea: 3301 adds r3, #1 + 80045ec: 005b lsls r3, r3, #1 + 80045ee: 607b str r3, [r7, #4] sysclockfreq = pllvco/pllr; - 8003bf8: 697a ldr r2, [r7, #20] - 8003bfa: 687b ldr r3, [r7, #4] - 8003bfc: fbb2 f3f3 udiv r3, r2, r3 - 8003c00: 613b str r3, [r7, #16] - 8003c02: e001 b.n 8003c08 + 80045f0: 697a ldr r2, [r7, #20] + 80045f2: 687b ldr r3, [r7, #4] + 80045f4: fbb2 f3f3 udiv r3, r2, r3 + 80045f8: 613b str r3, [r7, #16] + 80045fa: e001 b.n 8004600 } else { sysclockfreq = 0U; - 8003c04: 2300 movs r3, #0 - 8003c06: 613b str r3, [r7, #16] + 80045fc: 2300 movs r3, #0 + 80045fe: 613b str r3, [r7, #16] } return sysclockfreq; - 8003c08: 693b ldr r3, [r7, #16] + 8004600: 693b ldr r3, [r7, #16] } - 8003c0a: 4618 mov r0, r3 - 8003c0c: 371c adds r7, #28 - 8003c0e: 46bd mov sp, r7 - 8003c10: f85d 7b04 ldr.w r7, [sp], #4 - 8003c14: 4770 bx lr - 8003c16: bf00 nop - 8003c18: 40021000 .word 0x40021000 - 8003c1c: 00f42400 .word 0x00f42400 - 8003c20: 007a1200 .word 0x007a1200 + 8004602: 4618 mov r0, r3 + 8004604: 371c adds r7, #28 + 8004606: 46bd mov sp, r7 + 8004608: f85d 7b04 ldr.w r7, [sp], #4 + 800460c: 4770 bx lr + 800460e: bf00 nop + 8004610: 40021000 .word 0x40021000 + 8004614: 00f42400 .word 0x00f42400 + 8004618: 007a1200 .word 0x007a1200 -08003c24 : +0800461c : * * @note The SystemCoreClock CMSIS variable is used to store System Clock Frequency. * @retval HCLK frequency in Hz */ uint32_t HAL_RCC_GetHCLKFreq(void) { - 8003c24: b480 push {r7} - 8003c26: af00 add r7, sp, #0 + 800461c: b480 push {r7} + 800461e: af00 add r7, sp, #0 return SystemCoreClock; - 8003c28: 4b03 ldr r3, [pc, #12] @ (8003c38 ) - 8003c2a: 681b ldr r3, [r3, #0] + 8004620: 4b03 ldr r3, [pc, #12] @ (8004630 ) + 8004622: 681b ldr r3, [r3, #0] } - 8003c2c: 4618 mov r0, r3 - 8003c2e: 46bd mov sp, r7 - 8003c30: f85d 7b04 ldr.w r7, [sp], #4 - 8003c34: 4770 bx lr - 8003c36: bf00 nop - 8003c38: 20000000 .word 0x20000000 + 8004624: 4618 mov r0, r3 + 8004626: 46bd mov sp, r7 + 8004628: f85d 7b04 ldr.w r7, [sp], #4 + 800462c: 4770 bx lr + 800462e: bf00 nop + 8004630: 20000014 .word 0x20000014 -08003c3c : +08004634 : * @note Each time PCLK1 changes, this function must be called to update the * right PCLK1 value. Otherwise, any configuration based on this function will be incorrect. * @retval PCLK1 frequency in Hz */ uint32_t HAL_RCC_GetPCLK1Freq(void) { - 8003c3c: b580 push {r7, lr} - 8003c3e: af00 add r7, sp, #0 + 8004634: b580 push {r7, lr} + 8004636: af00 add r7, sp, #0 /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/ return (HAL_RCC_GetHCLKFreq() >> (APBPrescTable[READ_BIT(RCC->CFGR, RCC_CFGR_PPRE1) >> RCC_CFGR_PPRE1_Pos] & 0x1FU)); - 8003c40: f7ff fff0 bl 8003c24 - 8003c44: 4602 mov r2, r0 - 8003c46: 4b06 ldr r3, [pc, #24] @ (8003c60 ) - 8003c48: 689b ldr r3, [r3, #8] - 8003c4a: 0a1b lsrs r3, r3, #8 - 8003c4c: f003 0307 and.w r3, r3, #7 - 8003c50: 4904 ldr r1, [pc, #16] @ (8003c64 ) - 8003c52: 5ccb ldrb r3, [r1, r3] - 8003c54: f003 031f and.w r3, r3, #31 - 8003c58: fa22 f303 lsr.w r3, r2, r3 + 8004638: f7ff fff0 bl 800461c + 800463c: 4602 mov r2, r0 + 800463e: 4b06 ldr r3, [pc, #24] @ (8004658 ) + 8004640: 689b ldr r3, [r3, #8] + 8004642: 0a1b lsrs r3, r3, #8 + 8004644: f003 0307 and.w r3, r3, #7 + 8004648: 4904 ldr r1, [pc, #16] @ (800465c ) + 800464a: 5ccb ldrb r3, [r1, r3] + 800464c: f003 031f and.w r3, r3, #31 + 8004650: fa22 f303 lsr.w r3, r2, r3 } - 8003c5c: 4618 mov r0, r3 - 8003c5e: bd80 pop {r7, pc} - 8003c60: 40021000 .word 0x40021000 - 8003c64: 08006d44 .word 0x08006d44 + 8004654: 4618 mov r0, r3 + 8004656: bd80 pop {r7, pc} + 8004658: 40021000 .word 0x40021000 + 800465c: 0800773c .word 0x0800773c -08003c68 : +08004660 : * @note Each time PCLK2 changes, this function must be called to update the * right PCLK2 value. Otherwise, any configuration based on this function will be incorrect. * @retval PCLK2 frequency in Hz */ uint32_t HAL_RCC_GetPCLK2Freq(void) { - 8003c68: b580 push {r7, lr} - 8003c6a: af00 add r7, sp, #0 + 8004660: b580 push {r7, lr} + 8004662: af00 add r7, sp, #0 /* Get HCLK source and Compute PCLK2 frequency ---------------------------*/ return (HAL_RCC_GetHCLKFreq()>> (APBPrescTable[READ_BIT(RCC->CFGR, RCC_CFGR_PPRE2) >> RCC_CFGR_PPRE2_Pos] & 0x1FU)); - 8003c6c: f7ff ffda bl 8003c24 - 8003c70: 4602 mov r2, r0 - 8003c72: 4b06 ldr r3, [pc, #24] @ (8003c8c ) - 8003c74: 689b ldr r3, [r3, #8] - 8003c76: 0adb lsrs r3, r3, #11 - 8003c78: f003 0307 and.w r3, r3, #7 - 8003c7c: 4904 ldr r1, [pc, #16] @ (8003c90 ) - 8003c7e: 5ccb ldrb r3, [r1, r3] - 8003c80: f003 031f and.w r3, r3, #31 - 8003c84: fa22 f303 lsr.w r3, r2, r3 + 8004664: f7ff ffda bl 800461c + 8004668: 4602 mov r2, r0 + 800466a: 4b06 ldr r3, [pc, #24] @ (8004684 ) + 800466c: 689b ldr r3, [r3, #8] + 800466e: 0adb lsrs r3, r3, #11 + 8004670: f003 0307 and.w r3, r3, #7 + 8004674: 4904 ldr r1, [pc, #16] @ (8004688 ) + 8004676: 5ccb ldrb r3, [r1, r3] + 8004678: f003 031f and.w r3, r3, #31 + 800467c: fa22 f303 lsr.w r3, r2, r3 } - 8003c88: 4618 mov r0, r3 - 8003c8a: bd80 pop {r7, pc} - 8003c8c: 40021000 .word 0x40021000 - 8003c90: 08006d44 .word 0x08006d44 + 8004680: 4618 mov r0, r3 + 8004682: bd80 pop {r7, pc} + 8004684: 40021000 .word 0x40021000 + 8004688: 0800773c .word 0x0800773c -08003c94 : +0800468c : /** * @brief Compute SYSCLK frequency based on PLL SYSCLK source. * @retval SYSCLK frequency */ static uint32_t RCC_GetSysClockFreqFromPLLSource(void) { - 8003c94: b480 push {r7} - 8003c96: b087 sub sp, #28 - 8003c98: af00 add r7, sp, #0 + 800468c: b480 push {r7} + 800468e: b087 sub sp, #28 + 8004690: af00 add r7, sp, #0 uint32_t sysclockfreq; /* PLL_VCO = (HSE_VALUE or HSI_VALUE/ PLLM) * PLLN SYSCLK = PLL_VCO / PLLR */ pllsource = READ_BIT(RCC->PLLCFGR, RCC_PLLCFGR_PLLSRC); - 8003c9a: 4b1e ldr r3, [pc, #120] @ (8003d14 ) - 8003c9c: 68db ldr r3, [r3, #12] - 8003c9e: f003 0303 and.w r3, r3, #3 - 8003ca2: 613b str r3, [r7, #16] + 8004692: 4b1e ldr r3, [pc, #120] @ (800470c ) + 8004694: 68db ldr r3, [r3, #12] + 8004696: f003 0303 and.w r3, r3, #3 + 800469a: 613b str r3, [r7, #16] pllm = (READ_BIT(RCC->PLLCFGR, RCC_PLLCFGR_PLLM) >> RCC_PLLCFGR_PLLM_Pos) + 1U ; - 8003ca4: 4b1b ldr r3, [pc, #108] @ (8003d14 ) - 8003ca6: 68db ldr r3, [r3, #12] - 8003ca8: 091b lsrs r3, r3, #4 - 8003caa: f003 030f and.w r3, r3, #15 - 8003cae: 3301 adds r3, #1 - 8003cb0: 60fb str r3, [r7, #12] + 800469c: 4b1b ldr r3, [pc, #108] @ (800470c ) + 800469e: 68db ldr r3, [r3, #12] + 80046a0: 091b lsrs r3, r3, #4 + 80046a2: f003 030f and.w r3, r3, #15 + 80046a6: 3301 adds r3, #1 + 80046a8: 60fb str r3, [r7, #12] switch (pllsource) - 8003cb2: 693b ldr r3, [r7, #16] - 8003cb4: 2b03 cmp r3, #3 - 8003cb6: d10c bne.n 8003cd2 + 80046aa: 693b ldr r3, [r7, #16] + 80046ac: 2b03 cmp r3, #3 + 80046ae: d10c bne.n 80046ca { case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */ pllvco = (HSE_VALUE / pllm) * (READ_BIT(RCC->PLLCFGR, RCC_PLLCFGR_PLLN) >> RCC_PLLCFGR_PLLN_Pos); - 8003cb8: 4a17 ldr r2, [pc, #92] @ (8003d18 ) - 8003cba: 68fb ldr r3, [r7, #12] - 8003cbc: fbb2 f3f3 udiv r3, r2, r3 - 8003cc0: 4a14 ldr r2, [pc, #80] @ (8003d14 ) - 8003cc2: 68d2 ldr r2, [r2, #12] - 8003cc4: 0a12 lsrs r2, r2, #8 - 8003cc6: f002 027f and.w r2, r2, #127 @ 0x7f - 8003cca: fb02 f303 mul.w r3, r2, r3 - 8003cce: 617b str r3, [r7, #20] + 80046b0: 4a17 ldr r2, [pc, #92] @ (8004710 ) + 80046b2: 68fb ldr r3, [r7, #12] + 80046b4: fbb2 f3f3 udiv r3, r2, r3 + 80046b8: 4a14 ldr r2, [pc, #80] @ (800470c ) + 80046ba: 68d2 ldr r2, [r2, #12] + 80046bc: 0a12 lsrs r2, r2, #8 + 80046be: f002 027f and.w r2, r2, #127 @ 0x7f + 80046c2: fb02 f303 mul.w r3, r2, r3 + 80046c6: 617b str r3, [r7, #20] break; - 8003cd0: e00c b.n 8003cec + 80046c8: e00c b.n 80046e4 case RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */ default: pllvco = (HSI_VALUE / pllm) * (READ_BIT(RCC->PLLCFGR, RCC_PLLCFGR_PLLN) >> RCC_PLLCFGR_PLLN_Pos); - 8003cd2: 4a12 ldr r2, [pc, #72] @ (8003d1c ) - 8003cd4: 68fb ldr r3, [r7, #12] - 8003cd6: fbb2 f3f3 udiv r3, r2, r3 - 8003cda: 4a0e ldr r2, [pc, #56] @ (8003d14 ) - 8003cdc: 68d2 ldr r2, [r2, #12] - 8003cde: 0a12 lsrs r2, r2, #8 - 8003ce0: f002 027f and.w r2, r2, #127 @ 0x7f - 8003ce4: fb02 f303 mul.w r3, r2, r3 - 8003ce8: 617b str r3, [r7, #20] + 80046ca: 4a12 ldr r2, [pc, #72] @ (8004714 ) + 80046cc: 68fb ldr r3, [r7, #12] + 80046ce: fbb2 f3f3 udiv r3, r2, r3 + 80046d2: 4a0e ldr r2, [pc, #56] @ (800470c ) + 80046d4: 68d2 ldr r2, [r2, #12] + 80046d6: 0a12 lsrs r2, r2, #8 + 80046d8: f002 027f and.w r2, r2, #127 @ 0x7f + 80046dc: fb02 f303 mul.w r3, r2, r3 + 80046e0: 617b str r3, [r7, #20] break; - 8003cea: bf00 nop + 80046e2: bf00 nop } pllr = ((READ_BIT(RCC->PLLCFGR, RCC_PLLCFGR_PLLR) >> RCC_PLLCFGR_PLLR_Pos) + 1U ) * 2U; - 8003cec: 4b09 ldr r3, [pc, #36] @ (8003d14 ) - 8003cee: 68db ldr r3, [r3, #12] - 8003cf0: 0e5b lsrs r3, r3, #25 - 8003cf2: f003 0303 and.w r3, r3, #3 - 8003cf6: 3301 adds r3, #1 - 8003cf8: 005b lsls r3, r3, #1 - 8003cfa: 60bb str r3, [r7, #8] + 80046e4: 4b09 ldr r3, [pc, #36] @ (800470c ) + 80046e6: 68db ldr r3, [r3, #12] + 80046e8: 0e5b lsrs r3, r3, #25 + 80046ea: f003 0303 and.w r3, r3, #3 + 80046ee: 3301 adds r3, #1 + 80046f0: 005b lsls r3, r3, #1 + 80046f2: 60bb str r3, [r7, #8] sysclockfreq = pllvco/pllr; - 8003cfc: 697a ldr r2, [r7, #20] - 8003cfe: 68bb ldr r3, [r7, #8] - 8003d00: fbb2 f3f3 udiv r3, r2, r3 - 8003d04: 607b str r3, [r7, #4] + 80046f4: 697a ldr r2, [r7, #20] + 80046f6: 68bb ldr r3, [r7, #8] + 80046f8: fbb2 f3f3 udiv r3, r2, r3 + 80046fc: 607b str r3, [r7, #4] return sysclockfreq; - 8003d06: 687b ldr r3, [r7, #4] + 80046fe: 687b ldr r3, [r7, #4] } - 8003d08: 4618 mov r0, r3 - 8003d0a: 371c adds r7, #28 - 8003d0c: 46bd mov sp, r7 - 8003d0e: f85d 7b04 ldr.w r7, [sp], #4 - 8003d12: 4770 bx lr - 8003d14: 40021000 .word 0x40021000 - 8003d18: 007a1200 .word 0x007a1200 - 8003d1c: 00f42400 .word 0x00f42400 + 8004700: 4618 mov r0, r3 + 8004702: 371c adds r7, #28 + 8004704: 46bd mov sp, r7 + 8004706: f85d 7b04 ldr.w r7, [sp], #4 + 800470a: 4770 bx lr + 800470c: 40021000 .word 0x40021000 + 8004710: 007a1200 .word 0x007a1200 + 8004714: 00f42400 .word 0x00f42400 -08003d20 : +08004718 : * the RTC clock source: in this case the access to Backup domain is enabled. * * @retval HAL status */ HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit) { - 8003d20: b580 push {r7, lr} - 8003d22: b086 sub sp, #24 - 8003d24: af00 add r7, sp, #0 - 8003d26: 6078 str r0, [r7, #4] + 8004718: b580 push {r7, lr} + 800471a: b086 sub sp, #24 + 800471c: af00 add r7, sp, #0 + 800471e: 6078 str r0, [r7, #4] uint32_t tmpregister; uint32_t tickstart; HAL_StatusTypeDef ret = HAL_OK; /* Intermediate status */ - 8003d28: 2300 movs r3, #0 - 8003d2a: 74fb strb r3, [r7, #19] + 8004720: 2300 movs r3, #0 + 8004722: 74fb strb r3, [r7, #19] HAL_StatusTypeDef status = HAL_OK; /* Final status */ - 8003d2c: 2300 movs r3, #0 - 8003d2e: 74bb strb r3, [r7, #18] + 8004724: 2300 movs r3, #0 + 8004726: 74bb strb r3, [r7, #18] /* Check the parameters */ assert_param(IS_RCC_PERIPHCLOCK(PeriphClkInit->PeriphClockSelection)); /*-------------------------- RTC clock source configuration ----------------------*/ if((PeriphClkInit->PeriphClockSelection & RCC_PERIPHCLK_RTC) == RCC_PERIPHCLK_RTC) - 8003d30: 687b ldr r3, [r7, #4] - 8003d32: 681b ldr r3, [r3, #0] - 8003d34: f403 2300 and.w r3, r3, #524288 @ 0x80000 - 8003d38: 2b00 cmp r3, #0 - 8003d3a: f000 8098 beq.w 8003e6e + 8004728: 687b ldr r3, [r7, #4] + 800472a: 681b ldr r3, [r3, #0] + 800472c: f403 2300 and.w r3, r3, #524288 @ 0x80000 + 8004730: 2b00 cmp r3, #0 + 8004732: f000 8098 beq.w 8004866 { FlagStatus pwrclkchanged = RESET; - 8003d3e: 2300 movs r3, #0 - 8003d40: 747b strb r3, [r7, #17] + 8004736: 2300 movs r3, #0 + 8004738: 747b strb r3, [r7, #17] /* Check for RTC Parameters used to output RTCCLK */ assert_param(IS_RCC_RTCCLKSOURCE(PeriphClkInit->RTCClockSelection)); /* Enable Power Clock */ if(__HAL_RCC_PWR_IS_CLK_DISABLED()) - 8003d42: 4b43 ldr r3, [pc, #268] @ (8003e50 ) - 8003d44: 6d9b ldr r3, [r3, #88] @ 0x58 - 8003d46: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 - 8003d4a: 2b00 cmp r3, #0 - 8003d4c: d10d bne.n 8003d6a + 800473a: 4b43 ldr r3, [pc, #268] @ (8004848 ) + 800473c: 6d9b ldr r3, [r3, #88] @ 0x58 + 800473e: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 + 8004742: 2b00 cmp r3, #0 + 8004744: d10d bne.n 8004762 { __HAL_RCC_PWR_CLK_ENABLE(); - 8003d4e: 4b40 ldr r3, [pc, #256] @ (8003e50 ) - 8003d50: 6d9b ldr r3, [r3, #88] @ 0x58 - 8003d52: 4a3f ldr r2, [pc, #252] @ (8003e50 ) - 8003d54: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 - 8003d58: 6593 str r3, [r2, #88] @ 0x58 - 8003d5a: 4b3d ldr r3, [pc, #244] @ (8003e50 ) - 8003d5c: 6d9b ldr r3, [r3, #88] @ 0x58 - 8003d5e: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 - 8003d62: 60bb str r3, [r7, #8] - 8003d64: 68bb ldr r3, [r7, #8] + 8004746: 4b40 ldr r3, [pc, #256] @ (8004848 ) + 8004748: 6d9b ldr r3, [r3, #88] @ 0x58 + 800474a: 4a3f ldr r2, [pc, #252] @ (8004848 ) + 800474c: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 + 8004750: 6593 str r3, [r2, #88] @ 0x58 + 8004752: 4b3d ldr r3, [pc, #244] @ (8004848 ) + 8004754: 6d9b ldr r3, [r3, #88] @ 0x58 + 8004756: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 + 800475a: 60bb str r3, [r7, #8] + 800475c: 68bb ldr r3, [r7, #8] pwrclkchanged = SET; - 8003d66: 2301 movs r3, #1 - 8003d68: 747b strb r3, [r7, #17] + 800475e: 2301 movs r3, #1 + 8004760: 747b strb r3, [r7, #17] } /* Enable write access to Backup domain */ SET_BIT(PWR->CR1, PWR_CR1_DBP); - 8003d6a: 4b3a ldr r3, [pc, #232] @ (8003e54 ) - 8003d6c: 681b ldr r3, [r3, #0] - 8003d6e: 4a39 ldr r2, [pc, #228] @ (8003e54 ) - 8003d70: f443 7380 orr.w r3, r3, #256 @ 0x100 - 8003d74: 6013 str r3, [r2, #0] + 8004762: 4b3a ldr r3, [pc, #232] @ (800484c ) + 8004764: 681b ldr r3, [r3, #0] + 8004766: 4a39 ldr r2, [pc, #228] @ (800484c ) + 8004768: f443 7380 orr.w r3, r3, #256 @ 0x100 + 800476c: 6013 str r3, [r2, #0] /* Wait for Backup domain Write protection disable */ tickstart = HAL_GetTick(); - 8003d76: f7fd fa4b bl 8001210 - 8003d7a: 60f8 str r0, [r7, #12] + 800476e: f7fd f9bd bl 8001aec + 8004772: 60f8 str r0, [r7, #12] while((PWR->CR1 & PWR_CR1_DBP) == 0U) - 8003d7c: e009 b.n 8003d92 + 8004774: e009 b.n 800478a { if((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE) - 8003d7e: f7fd fa47 bl 8001210 - 8003d82: 4602 mov r2, r0 - 8003d84: 68fb ldr r3, [r7, #12] - 8003d86: 1ad3 subs r3, r2, r3 - 8003d88: 2b02 cmp r3, #2 - 8003d8a: d902 bls.n 8003d92 + 8004776: f7fd f9b9 bl 8001aec + 800477a: 4602 mov r2, r0 + 800477c: 68fb ldr r3, [r7, #12] + 800477e: 1ad3 subs r3, r2, r3 + 8004780: 2b02 cmp r3, #2 + 8004782: d902 bls.n 800478a { ret = HAL_TIMEOUT; - 8003d8c: 2303 movs r3, #3 - 8003d8e: 74fb strb r3, [r7, #19] + 8004784: 2303 movs r3, #3 + 8004786: 74fb strb r3, [r7, #19] break; - 8003d90: e005 b.n 8003d9e + 8004788: e005 b.n 8004796 while((PWR->CR1 & PWR_CR1_DBP) == 0U) - 8003d92: 4b30 ldr r3, [pc, #192] @ (8003e54 ) - 8003d94: 681b ldr r3, [r3, #0] - 8003d96: f403 7380 and.w r3, r3, #256 @ 0x100 - 8003d9a: 2b00 cmp r3, #0 - 8003d9c: d0ef beq.n 8003d7e + 800478a: 4b30 ldr r3, [pc, #192] @ (800484c ) + 800478c: 681b ldr r3, [r3, #0] + 800478e: f403 7380 and.w r3, r3, #256 @ 0x100 + 8004792: 2b00 cmp r3, #0 + 8004794: d0ef beq.n 8004776 } } if(ret == HAL_OK) - 8003d9e: 7cfb ldrb r3, [r7, #19] - 8003da0: 2b00 cmp r3, #0 - 8003da2: d159 bne.n 8003e58 + 8004796: 7cfb ldrb r3, [r7, #19] + 8004798: 2b00 cmp r3, #0 + 800479a: d159 bne.n 8004850 { /* Reset the Backup domain only if the RTC Clock source selection is modified from default */ tmpregister = READ_BIT(RCC->BDCR, RCC_BDCR_RTCSEL); - 8003da4: 4b2a ldr r3, [pc, #168] @ (8003e50 ) - 8003da6: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 - 8003daa: f403 7340 and.w r3, r3, #768 @ 0x300 - 8003dae: 617b str r3, [r7, #20] + 800479c: 4b2a ldr r3, [pc, #168] @ (8004848 ) + 800479e: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 + 80047a2: f403 7340 and.w r3, r3, #768 @ 0x300 + 80047a6: 617b str r3, [r7, #20] if((tmpregister != RCC_RTCCLKSOURCE_NONE) && (tmpregister != PeriphClkInit->RTCClockSelection)) - 8003db0: 697b ldr r3, [r7, #20] - 8003db2: 2b00 cmp r3, #0 - 8003db4: d01e beq.n 8003df4 - 8003db6: 687b ldr r3, [r7, #4] - 8003db8: 6c1b ldr r3, [r3, #64] @ 0x40 - 8003dba: 697a ldr r2, [r7, #20] - 8003dbc: 429a cmp r2, r3 - 8003dbe: d019 beq.n 8003df4 + 80047a8: 697b ldr r3, [r7, #20] + 80047aa: 2b00 cmp r3, #0 + 80047ac: d01e beq.n 80047ec + 80047ae: 687b ldr r3, [r7, #4] + 80047b0: 6c1b ldr r3, [r3, #64] @ 0x40 + 80047b2: 697a ldr r2, [r7, #20] + 80047b4: 429a cmp r2, r3 + 80047b6: d019 beq.n 80047ec { /* Store the content of BDCR register before the reset of Backup Domain */ tmpregister = READ_BIT(RCC->BDCR, ~(RCC_BDCR_RTCSEL)); - 8003dc0: 4b23 ldr r3, [pc, #140] @ (8003e50 ) - 8003dc2: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 - 8003dc6: f423 7340 bic.w r3, r3, #768 @ 0x300 - 8003dca: 617b str r3, [r7, #20] + 80047b8: 4b23 ldr r3, [pc, #140] @ (8004848 ) + 80047ba: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 + 80047be: f423 7340 bic.w r3, r3, #768 @ 0x300 + 80047c2: 617b str r3, [r7, #20] /* RTC Clock selection can be changed only if the Backup Domain is reset */ __HAL_RCC_BACKUPRESET_FORCE(); - 8003dcc: 4b20 ldr r3, [pc, #128] @ (8003e50 ) - 8003dce: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 - 8003dd2: 4a1f ldr r2, [pc, #124] @ (8003e50 ) - 8003dd4: f443 3380 orr.w r3, r3, #65536 @ 0x10000 - 8003dd8: f8c2 3090 str.w r3, [r2, #144] @ 0x90 + 80047c4: 4b20 ldr r3, [pc, #128] @ (8004848 ) + 80047c6: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 + 80047ca: 4a1f ldr r2, [pc, #124] @ (8004848 ) + 80047cc: f443 3380 orr.w r3, r3, #65536 @ 0x10000 + 80047d0: f8c2 3090 str.w r3, [r2, #144] @ 0x90 __HAL_RCC_BACKUPRESET_RELEASE(); - 8003ddc: 4b1c ldr r3, [pc, #112] @ (8003e50 ) - 8003dde: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 - 8003de2: 4a1b ldr r2, [pc, #108] @ (8003e50 ) - 8003de4: f423 3380 bic.w r3, r3, #65536 @ 0x10000 - 8003de8: f8c2 3090 str.w r3, [r2, #144] @ 0x90 + 80047d4: 4b1c ldr r3, [pc, #112] @ (8004848 ) + 80047d6: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 + 80047da: 4a1b ldr r2, [pc, #108] @ (8004848 ) + 80047dc: f423 3380 bic.w r3, r3, #65536 @ 0x10000 + 80047e0: f8c2 3090 str.w r3, [r2, #144] @ 0x90 /* Restore the Content of BDCR register */ RCC->BDCR = tmpregister; - 8003dec: 4a18 ldr r2, [pc, #96] @ (8003e50 ) - 8003dee: 697b ldr r3, [r7, #20] - 8003df0: f8c2 3090 str.w r3, [r2, #144] @ 0x90 + 80047e4: 4a18 ldr r2, [pc, #96] @ (8004848 ) + 80047e6: 697b ldr r3, [r7, #20] + 80047e8: f8c2 3090 str.w r3, [r2, #144] @ 0x90 } /* Wait for LSE reactivation if LSE was enable prior to Backup Domain reset */ if (HAL_IS_BIT_SET(tmpregister, RCC_BDCR_LSEON)) - 8003df4: 697b ldr r3, [r7, #20] - 8003df6: f003 0301 and.w r3, r3, #1 - 8003dfa: 2b00 cmp r3, #0 - 8003dfc: d016 beq.n 8003e2c + 80047ec: 697b ldr r3, [r7, #20] + 80047ee: f003 0301 and.w r3, r3, #1 + 80047f2: 2b00 cmp r3, #0 + 80047f4: d016 beq.n 8004824 { /* Get Start Tick*/ tickstart = HAL_GetTick(); - 8003dfe: f7fd fa07 bl 8001210 - 8003e02: 60f8 str r0, [r7, #12] + 80047f6: f7fd f979 bl 8001aec + 80047fa: 60f8 str r0, [r7, #12] /* Wait till LSE is ready */ while(READ_BIT(RCC->BDCR, RCC_BDCR_LSERDY) == 0U) - 8003e04: e00b b.n 8003e1e + 80047fc: e00b b.n 8004816 { if((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE) - 8003e06: f7fd fa03 bl 8001210 - 8003e0a: 4602 mov r2, r0 - 8003e0c: 68fb ldr r3, [r7, #12] - 8003e0e: 1ad3 subs r3, r2, r3 - 8003e10: f241 3288 movw r2, #5000 @ 0x1388 - 8003e14: 4293 cmp r3, r2 - 8003e16: d902 bls.n 8003e1e + 80047fe: f7fd f975 bl 8001aec + 8004802: 4602 mov r2, r0 + 8004804: 68fb ldr r3, [r7, #12] + 8004806: 1ad3 subs r3, r2, r3 + 8004808: f241 3288 movw r2, #5000 @ 0x1388 + 800480c: 4293 cmp r3, r2 + 800480e: d902 bls.n 8004816 { ret = HAL_TIMEOUT; - 8003e18: 2303 movs r3, #3 - 8003e1a: 74fb strb r3, [r7, #19] + 8004810: 2303 movs r3, #3 + 8004812: 74fb strb r3, [r7, #19] break; - 8003e1c: e006 b.n 8003e2c + 8004814: e006 b.n 8004824 while(READ_BIT(RCC->BDCR, RCC_BDCR_LSERDY) == 0U) - 8003e1e: 4b0c ldr r3, [pc, #48] @ (8003e50 ) - 8003e20: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 - 8003e24: f003 0302 and.w r3, r3, #2 - 8003e28: 2b00 cmp r3, #0 - 8003e2a: d0ec beq.n 8003e06 + 8004816: 4b0c ldr r3, [pc, #48] @ (8004848 ) + 8004818: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 + 800481c: f003 0302 and.w r3, r3, #2 + 8004820: 2b00 cmp r3, #0 + 8004822: d0ec beq.n 80047fe } } } if(ret == HAL_OK) - 8003e2c: 7cfb ldrb r3, [r7, #19] - 8003e2e: 2b00 cmp r3, #0 - 8003e30: d10b bne.n 8003e4a + 8004824: 7cfb ldrb r3, [r7, #19] + 8004826: 2b00 cmp r3, #0 + 8004828: d10b bne.n 8004842 { /* Apply new RTC clock source selection */ __HAL_RCC_RTC_CONFIG(PeriphClkInit->RTCClockSelection); - 8003e32: 4b07 ldr r3, [pc, #28] @ (8003e50 ) - 8003e34: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 - 8003e38: f423 7240 bic.w r2, r3, #768 @ 0x300 - 8003e3c: 687b ldr r3, [r7, #4] - 8003e3e: 6c1b ldr r3, [r3, #64] @ 0x40 - 8003e40: 4903 ldr r1, [pc, #12] @ (8003e50 ) - 8003e42: 4313 orrs r3, r2 - 8003e44: f8c1 3090 str.w r3, [r1, #144] @ 0x90 - 8003e48: e008 b.n 8003e5c + 800482a: 4b07 ldr r3, [pc, #28] @ (8004848 ) + 800482c: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 + 8004830: f423 7240 bic.w r2, r3, #768 @ 0x300 + 8004834: 687b ldr r3, [r7, #4] + 8004836: 6c1b ldr r3, [r3, #64] @ 0x40 + 8004838: 4903 ldr r1, [pc, #12] @ (8004848 ) + 800483a: 4313 orrs r3, r2 + 800483c: f8c1 3090 str.w r3, [r1, #144] @ 0x90 + 8004840: e008 b.n 8004854 } else { /* set overall return value */ status = ret; - 8003e4a: 7cfb ldrb r3, [r7, #19] - 8003e4c: 74bb strb r3, [r7, #18] - 8003e4e: e005 b.n 8003e5c - 8003e50: 40021000 .word 0x40021000 - 8003e54: 40007000 .word 0x40007000 + 8004842: 7cfb ldrb r3, [r7, #19] + 8004844: 74bb strb r3, [r7, #18] + 8004846: e005 b.n 8004854 + 8004848: 40021000 .word 0x40021000 + 800484c: 40007000 .word 0x40007000 } } else { /* set overall return value */ status = ret; - 8003e58: 7cfb ldrb r3, [r7, #19] - 8003e5a: 74bb strb r3, [r7, #18] + 8004850: 7cfb ldrb r3, [r7, #19] + 8004852: 74bb strb r3, [r7, #18] } /* Restore clock configuration if changed */ if(pwrclkchanged == SET) - 8003e5c: 7c7b ldrb r3, [r7, #17] - 8003e5e: 2b01 cmp r3, #1 - 8003e60: d105 bne.n 8003e6e + 8004854: 7c7b ldrb r3, [r7, #17] + 8004856: 2b01 cmp r3, #1 + 8004858: d105 bne.n 8004866 { __HAL_RCC_PWR_CLK_DISABLE(); - 8003e62: 4ba6 ldr r3, [pc, #664] @ (80040fc ) - 8003e64: 6d9b ldr r3, [r3, #88] @ 0x58 - 8003e66: 4aa5 ldr r2, [pc, #660] @ (80040fc ) - 8003e68: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000 - 8003e6c: 6593 str r3, [r2, #88] @ 0x58 + 800485a: 4ba6 ldr r3, [pc, #664] @ (8004af4 ) + 800485c: 6d9b ldr r3, [r3, #88] @ 0x58 + 800485e: 4aa5 ldr r2, [pc, #660] @ (8004af4 ) + 8004860: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000 + 8004864: 6593 str r3, [r2, #88] @ 0x58 } } /*-------------------------- USART1 clock source configuration -------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART1) == RCC_PERIPHCLK_USART1) - 8003e6e: 687b ldr r3, [r7, #4] - 8003e70: 681b ldr r3, [r3, #0] - 8003e72: f003 0301 and.w r3, r3, #1 - 8003e76: 2b00 cmp r3, #0 - 8003e78: d00a beq.n 8003e90 + 8004866: 687b ldr r3, [r7, #4] + 8004868: 681b ldr r3, [r3, #0] + 800486a: f003 0301 and.w r3, r3, #1 + 800486e: 2b00 cmp r3, #0 + 8004870: d00a beq.n 8004888 { /* Check the parameters */ assert_param(IS_RCC_USART1CLKSOURCE(PeriphClkInit->Usart1ClockSelection)); /* Configure the USART1 clock source */ __HAL_RCC_USART1_CONFIG(PeriphClkInit->Usart1ClockSelection); - 8003e7a: 4ba0 ldr r3, [pc, #640] @ (80040fc ) - 8003e7c: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 - 8003e80: f023 0203 bic.w r2, r3, #3 - 8003e84: 687b ldr r3, [r7, #4] - 8003e86: 685b ldr r3, [r3, #4] - 8003e88: 499c ldr r1, [pc, #624] @ (80040fc ) - 8003e8a: 4313 orrs r3, r2 - 8003e8c: f8c1 3088 str.w r3, [r1, #136] @ 0x88 + 8004872: 4ba0 ldr r3, [pc, #640] @ (8004af4 ) + 8004874: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 + 8004878: f023 0203 bic.w r2, r3, #3 + 800487c: 687b ldr r3, [r7, #4] + 800487e: 685b ldr r3, [r3, #4] + 8004880: 499c ldr r1, [pc, #624] @ (8004af4 ) + 8004882: 4313 orrs r3, r2 + 8004884: f8c1 3088 str.w r3, [r1, #136] @ 0x88 } /*-------------------------- USART2 clock source configuration -------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART2) == RCC_PERIPHCLK_USART2) - 8003e90: 687b ldr r3, [r7, #4] - 8003e92: 681b ldr r3, [r3, #0] - 8003e94: f003 0302 and.w r3, r3, #2 - 8003e98: 2b00 cmp r3, #0 - 8003e9a: d00a beq.n 8003eb2 + 8004888: 687b ldr r3, [r7, #4] + 800488a: 681b ldr r3, [r3, #0] + 800488c: f003 0302 and.w r3, r3, #2 + 8004890: 2b00 cmp r3, #0 + 8004892: d00a beq.n 80048aa { /* Check the parameters */ assert_param(IS_RCC_USART2CLKSOURCE(PeriphClkInit->Usart2ClockSelection)); /* Configure the USART2 clock source */ __HAL_RCC_USART2_CONFIG(PeriphClkInit->Usart2ClockSelection); - 8003e9c: 4b97 ldr r3, [pc, #604] @ (80040fc ) - 8003e9e: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 - 8003ea2: f023 020c bic.w r2, r3, #12 - 8003ea6: 687b ldr r3, [r7, #4] - 8003ea8: 689b ldr r3, [r3, #8] - 8003eaa: 4994 ldr r1, [pc, #592] @ (80040fc ) - 8003eac: 4313 orrs r3, r2 - 8003eae: f8c1 3088 str.w r3, [r1, #136] @ 0x88 + 8004894: 4b97 ldr r3, [pc, #604] @ (8004af4 ) + 8004896: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 + 800489a: f023 020c bic.w r2, r3, #12 + 800489e: 687b ldr r3, [r7, #4] + 80048a0: 689b ldr r3, [r3, #8] + 80048a2: 4994 ldr r1, [pc, #592] @ (8004af4 ) + 80048a4: 4313 orrs r3, r2 + 80048a6: f8c1 3088 str.w r3, [r1, #136] @ 0x88 } #if defined(USART3) /*-------------------------- USART3 clock source configuration -------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART3) == RCC_PERIPHCLK_USART3) - 8003eb2: 687b ldr r3, [r7, #4] - 8003eb4: 681b ldr r3, [r3, #0] - 8003eb6: f003 0304 and.w r3, r3, #4 - 8003eba: 2b00 cmp r3, #0 - 8003ebc: d00a beq.n 8003ed4 + 80048aa: 687b ldr r3, [r7, #4] + 80048ac: 681b ldr r3, [r3, #0] + 80048ae: f003 0304 and.w r3, r3, #4 + 80048b2: 2b00 cmp r3, #0 + 80048b4: d00a beq.n 80048cc { /* Check the parameters */ assert_param(IS_RCC_USART3CLKSOURCE(PeriphClkInit->Usart3ClockSelection)); /* Configure the USART3 clock source */ __HAL_RCC_USART3_CONFIG(PeriphClkInit->Usart3ClockSelection); - 8003ebe: 4b8f ldr r3, [pc, #572] @ (80040fc ) - 8003ec0: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 - 8003ec4: f023 0230 bic.w r2, r3, #48 @ 0x30 - 8003ec8: 687b ldr r3, [r7, #4] - 8003eca: 68db ldr r3, [r3, #12] - 8003ecc: 498b ldr r1, [pc, #556] @ (80040fc ) - 8003ece: 4313 orrs r3, r2 - 8003ed0: f8c1 3088 str.w r3, [r1, #136] @ 0x88 + 80048b6: 4b8f ldr r3, [pc, #572] @ (8004af4 ) + 80048b8: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 + 80048bc: f023 0230 bic.w r2, r3, #48 @ 0x30 + 80048c0: 687b ldr r3, [r7, #4] + 80048c2: 68db ldr r3, [r3, #12] + 80048c4: 498b ldr r1, [pc, #556] @ (8004af4 ) + 80048c6: 4313 orrs r3, r2 + 80048c8: f8c1 3088 str.w r3, [r1, #136] @ 0x88 #endif /* USART3 */ #if defined(UART4) /*-------------------------- UART4 clock source configuration --------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_UART4) == RCC_PERIPHCLK_UART4) - 8003ed4: 687b ldr r3, [r7, #4] - 8003ed6: 681b ldr r3, [r3, #0] - 8003ed8: f003 0308 and.w r3, r3, #8 - 8003edc: 2b00 cmp r3, #0 - 8003ede: d00a beq.n 8003ef6 + 80048cc: 687b ldr r3, [r7, #4] + 80048ce: 681b ldr r3, [r3, #0] + 80048d0: f003 0308 and.w r3, r3, #8 + 80048d4: 2b00 cmp r3, #0 + 80048d6: d00a beq.n 80048ee { /* Check the parameters */ assert_param(IS_RCC_UART4CLKSOURCE(PeriphClkInit->Uart4ClockSelection)); /* Configure the UART4 clock source */ __HAL_RCC_UART4_CONFIG(PeriphClkInit->Uart4ClockSelection); - 8003ee0: 4b86 ldr r3, [pc, #536] @ (80040fc ) - 8003ee2: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 - 8003ee6: f023 02c0 bic.w r2, r3, #192 @ 0xc0 - 8003eea: 687b ldr r3, [r7, #4] - 8003eec: 691b ldr r3, [r3, #16] - 8003eee: 4983 ldr r1, [pc, #524] @ (80040fc ) - 8003ef0: 4313 orrs r3, r2 - 8003ef2: f8c1 3088 str.w r3, [r1, #136] @ 0x88 + 80048d8: 4b86 ldr r3, [pc, #536] @ (8004af4 ) + 80048da: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 + 80048de: f023 02c0 bic.w r2, r3, #192 @ 0xc0 + 80048e2: 687b ldr r3, [r7, #4] + 80048e4: 691b ldr r3, [r3, #16] + 80048e6: 4983 ldr r1, [pc, #524] @ (8004af4 ) + 80048e8: 4313 orrs r3, r2 + 80048ea: f8c1 3088 str.w r3, [r1, #136] @ 0x88 } #endif /* UART5 */ /*-------------------------- LPUART1 clock source configuration ------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPUART1) == RCC_PERIPHCLK_LPUART1) - 8003ef6: 687b ldr r3, [r7, #4] - 8003ef8: 681b ldr r3, [r3, #0] - 8003efa: f003 0320 and.w r3, r3, #32 - 8003efe: 2b00 cmp r3, #0 - 8003f00: d00a beq.n 8003f18 + 80048ee: 687b ldr r3, [r7, #4] + 80048f0: 681b ldr r3, [r3, #0] + 80048f2: f003 0320 and.w r3, r3, #32 + 80048f6: 2b00 cmp r3, #0 + 80048f8: d00a beq.n 8004910 { /* Check the parameters */ assert_param(IS_RCC_LPUART1CLKSOURCE(PeriphClkInit->Lpuart1ClockSelection)); /* Configure the LPUAR1 clock source */ __HAL_RCC_LPUART1_CONFIG(PeriphClkInit->Lpuart1ClockSelection); - 8003f02: 4b7e ldr r3, [pc, #504] @ (80040fc ) - 8003f04: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 - 8003f08: f423 6240 bic.w r2, r3, #3072 @ 0xc00 - 8003f0c: 687b ldr r3, [r7, #4] - 8003f0e: 695b ldr r3, [r3, #20] - 8003f10: 497a ldr r1, [pc, #488] @ (80040fc ) - 8003f12: 4313 orrs r3, r2 - 8003f14: f8c1 3088 str.w r3, [r1, #136] @ 0x88 + 80048fa: 4b7e ldr r3, [pc, #504] @ (8004af4 ) + 80048fc: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 + 8004900: f423 6240 bic.w r2, r3, #3072 @ 0xc00 + 8004904: 687b ldr r3, [r7, #4] + 8004906: 695b ldr r3, [r3, #20] + 8004908: 497a ldr r1, [pc, #488] @ (8004af4 ) + 800490a: 4313 orrs r3, r2 + 800490c: f8c1 3088 str.w r3, [r1, #136] @ 0x88 } /*-------------------------- I2C1 clock source configuration ---------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2C1) == RCC_PERIPHCLK_I2C1) - 8003f18: 687b ldr r3, [r7, #4] - 8003f1a: 681b ldr r3, [r3, #0] - 8003f1c: f003 0340 and.w r3, r3, #64 @ 0x40 - 8003f20: 2b00 cmp r3, #0 - 8003f22: d00a beq.n 8003f3a + 8004910: 687b ldr r3, [r7, #4] + 8004912: 681b ldr r3, [r3, #0] + 8004914: f003 0340 and.w r3, r3, #64 @ 0x40 + 8004918: 2b00 cmp r3, #0 + 800491a: d00a beq.n 8004932 { /* Check the parameters */ assert_param(IS_RCC_I2C1CLKSOURCE(PeriphClkInit->I2c1ClockSelection)); /* Configure the I2C1 clock source */ __HAL_RCC_I2C1_CONFIG(PeriphClkInit->I2c1ClockSelection); - 8003f24: 4b75 ldr r3, [pc, #468] @ (80040fc ) - 8003f26: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 - 8003f2a: f423 5240 bic.w r2, r3, #12288 @ 0x3000 - 8003f2e: 687b ldr r3, [r7, #4] - 8003f30: 699b ldr r3, [r3, #24] - 8003f32: 4972 ldr r1, [pc, #456] @ (80040fc ) - 8003f34: 4313 orrs r3, r2 - 8003f36: f8c1 3088 str.w r3, [r1, #136] @ 0x88 + 800491c: 4b75 ldr r3, [pc, #468] @ (8004af4 ) + 800491e: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 + 8004922: f423 5240 bic.w r2, r3, #12288 @ 0x3000 + 8004926: 687b ldr r3, [r7, #4] + 8004928: 699b ldr r3, [r3, #24] + 800492a: 4972 ldr r1, [pc, #456] @ (8004af4 ) + 800492c: 4313 orrs r3, r2 + 800492e: f8c1 3088 str.w r3, [r1, #136] @ 0x88 } /*-------------------------- I2C2 clock source configuration ---------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2C2) == RCC_PERIPHCLK_I2C2) - 8003f3a: 687b ldr r3, [r7, #4] - 8003f3c: 681b ldr r3, [r3, #0] - 8003f3e: f003 0380 and.w r3, r3, #128 @ 0x80 - 8003f42: 2b00 cmp r3, #0 - 8003f44: d00a beq.n 8003f5c + 8004932: 687b ldr r3, [r7, #4] + 8004934: 681b ldr r3, [r3, #0] + 8004936: f003 0380 and.w r3, r3, #128 @ 0x80 + 800493a: 2b00 cmp r3, #0 + 800493c: d00a beq.n 8004954 { /* Check the parameters */ assert_param(IS_RCC_I2C2CLKSOURCE(PeriphClkInit->I2c2ClockSelection)); /* Configure the I2C2 clock source */ __HAL_RCC_I2C2_CONFIG(PeriphClkInit->I2c2ClockSelection); - 8003f46: 4b6d ldr r3, [pc, #436] @ (80040fc ) - 8003f48: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 - 8003f4c: f423 4240 bic.w r2, r3, #49152 @ 0xc000 - 8003f50: 687b ldr r3, [r7, #4] - 8003f52: 69db ldr r3, [r3, #28] - 8003f54: 4969 ldr r1, [pc, #420] @ (80040fc ) - 8003f56: 4313 orrs r3, r2 - 8003f58: f8c1 3088 str.w r3, [r1, #136] @ 0x88 + 800493e: 4b6d ldr r3, [pc, #436] @ (8004af4 ) + 8004940: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 + 8004944: f423 4240 bic.w r2, r3, #49152 @ 0xc000 + 8004948: 687b ldr r3, [r7, #4] + 800494a: 69db ldr r3, [r3, #28] + 800494c: 4969 ldr r1, [pc, #420] @ (8004af4 ) + 800494e: 4313 orrs r3, r2 + 8004950: f8c1 3088 str.w r3, [r1, #136] @ 0x88 } #if defined(I2C3) /*-------------------------- I2C3 clock source configuration ---------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2C3) == RCC_PERIPHCLK_I2C3) - 8003f5c: 687b ldr r3, [r7, #4] - 8003f5e: 681b ldr r3, [r3, #0] - 8003f60: f403 7380 and.w r3, r3, #256 @ 0x100 - 8003f64: 2b00 cmp r3, #0 - 8003f66: d00a beq.n 8003f7e + 8004954: 687b ldr r3, [r7, #4] + 8004956: 681b ldr r3, [r3, #0] + 8004958: f403 7380 and.w r3, r3, #256 @ 0x100 + 800495c: 2b00 cmp r3, #0 + 800495e: d00a beq.n 8004976 { /* Check the parameters */ assert_param(IS_RCC_I2C3CLKSOURCE(PeriphClkInit->I2c3ClockSelection)); /* Configure the I2C3 clock source */ __HAL_RCC_I2C3_CONFIG(PeriphClkInit->I2c3ClockSelection); - 8003f68: 4b64 ldr r3, [pc, #400] @ (80040fc ) - 8003f6a: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 - 8003f6e: f423 3240 bic.w r2, r3, #196608 @ 0x30000 - 8003f72: 687b ldr r3, [r7, #4] - 8003f74: 6a1b ldr r3, [r3, #32] - 8003f76: 4961 ldr r1, [pc, #388] @ (80040fc ) - 8003f78: 4313 orrs r3, r2 - 8003f7a: f8c1 3088 str.w r3, [r1, #136] @ 0x88 + 8004960: 4b64 ldr r3, [pc, #400] @ (8004af4 ) + 8004962: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 + 8004966: f423 3240 bic.w r2, r3, #196608 @ 0x30000 + 800496a: 687b ldr r3, [r7, #4] + 800496c: 6a1b ldr r3, [r3, #32] + 800496e: 4961 ldr r1, [pc, #388] @ (8004af4 ) + 8004970: 4313 orrs r3, r2 + 8004972: f8c1 3088 str.w r3, [r1, #136] @ 0x88 } #endif /* I2C4 */ /*-------------------------- LPTIM1 clock source configuration ---------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPTIM1) == RCC_PERIPHCLK_LPTIM1) - 8003f7e: 687b ldr r3, [r7, #4] - 8003f80: 681b ldr r3, [r3, #0] - 8003f82: f403 7300 and.w r3, r3, #512 @ 0x200 - 8003f86: 2b00 cmp r3, #0 - 8003f88: d00a beq.n 8003fa0 + 8004976: 687b ldr r3, [r7, #4] + 8004978: 681b ldr r3, [r3, #0] + 800497a: f403 7300 and.w r3, r3, #512 @ 0x200 + 800497e: 2b00 cmp r3, #0 + 8004980: d00a beq.n 8004998 { /* Check the parameters */ assert_param(IS_RCC_LPTIM1CLKSOURCE(PeriphClkInit->Lptim1ClockSelection)); /* Configure the LPTIM1 clock source */ __HAL_RCC_LPTIM1_CONFIG(PeriphClkInit->Lptim1ClockSelection); - 8003f8a: 4b5c ldr r3, [pc, #368] @ (80040fc ) - 8003f8c: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 - 8003f90: f423 2240 bic.w r2, r3, #786432 @ 0xc0000 - 8003f94: 687b ldr r3, [r7, #4] - 8003f96: 6a5b ldr r3, [r3, #36] @ 0x24 - 8003f98: 4958 ldr r1, [pc, #352] @ (80040fc ) - 8003f9a: 4313 orrs r3, r2 - 8003f9c: f8c1 3088 str.w r3, [r1, #136] @ 0x88 + 8004982: 4b5c ldr r3, [pc, #368] @ (8004af4 ) + 8004984: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 + 8004988: f423 2240 bic.w r2, r3, #786432 @ 0xc0000 + 800498c: 687b ldr r3, [r7, #4] + 800498e: 6a5b ldr r3, [r3, #36] @ 0x24 + 8004990: 4958 ldr r1, [pc, #352] @ (8004af4 ) + 8004992: 4313 orrs r3, r2 + 8004994: f8c1 3088 str.w r3, [r1, #136] @ 0x88 } #if defined(SAI1) /*-------------------------- SAI1 clock source configuration ---------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI1) == RCC_PERIPHCLK_SAI1) - 8003fa0: 687b ldr r3, [r7, #4] - 8003fa2: 681b ldr r3, [r3, #0] - 8003fa4: f403 6380 and.w r3, r3, #1024 @ 0x400 - 8003fa8: 2b00 cmp r3, #0 - 8003faa: d015 beq.n 8003fd8 + 8004998: 687b ldr r3, [r7, #4] + 800499a: 681b ldr r3, [r3, #0] + 800499c: f403 6380 and.w r3, r3, #1024 @ 0x400 + 80049a0: 2b00 cmp r3, #0 + 80049a2: d015 beq.n 80049d0 { /* Check the parameters */ assert_param(IS_RCC_SAI1CLKSOURCE(PeriphClkInit->Sai1ClockSelection)); /* Configure the SAI1 interface clock source */ __HAL_RCC_SAI1_CONFIG(PeriphClkInit->Sai1ClockSelection); - 8003fac: 4b53 ldr r3, [pc, #332] @ (80040fc ) - 8003fae: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 - 8003fb2: f423 1240 bic.w r2, r3, #3145728 @ 0x300000 - 8003fb6: 687b ldr r3, [r7, #4] - 8003fb8: 6a9b ldr r3, [r3, #40] @ 0x28 - 8003fba: 4950 ldr r1, [pc, #320] @ (80040fc ) - 8003fbc: 4313 orrs r3, r2 - 8003fbe: f8c1 3088 str.w r3, [r1, #136] @ 0x88 + 80049a4: 4b53 ldr r3, [pc, #332] @ (8004af4 ) + 80049a6: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 + 80049aa: f423 1240 bic.w r2, r3, #3145728 @ 0x300000 + 80049ae: 687b ldr r3, [r7, #4] + 80049b0: 6a9b ldr r3, [r3, #40] @ 0x28 + 80049b2: 4950 ldr r1, [pc, #320] @ (8004af4 ) + 80049b4: 4313 orrs r3, r2 + 80049b6: f8c1 3088 str.w r3, [r1, #136] @ 0x88 if(PeriphClkInit->Sai1ClockSelection == RCC_SAI1CLKSOURCE_PLL) - 8003fc2: 687b ldr r3, [r7, #4] - 8003fc4: 6a9b ldr r3, [r3, #40] @ 0x28 - 8003fc6: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000 - 8003fca: d105 bne.n 8003fd8 + 80049ba: 687b ldr r3, [r7, #4] + 80049bc: 6a9b ldr r3, [r3, #40] @ 0x28 + 80049be: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000 + 80049c2: d105 bne.n 80049d0 { /* Enable PLL48M1CLK output */ __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL_48M1CLK); - 8003fcc: 4b4b ldr r3, [pc, #300] @ (80040fc ) - 8003fce: 68db ldr r3, [r3, #12] - 8003fd0: 4a4a ldr r2, [pc, #296] @ (80040fc ) - 8003fd2: f443 1380 orr.w r3, r3, #1048576 @ 0x100000 - 8003fd6: 60d3 str r3, [r2, #12] + 80049c4: 4b4b ldr r3, [pc, #300] @ (8004af4 ) + 80049c6: 68db ldr r3, [r3, #12] + 80049c8: 4a4a ldr r2, [pc, #296] @ (8004af4 ) + 80049ca: f443 1380 orr.w r3, r3, #1048576 @ 0x100000 + 80049ce: 60d3 str r3, [r2, #12] #endif /* SAI1 */ #if defined(SPI_I2S_SUPPORT) /*-------------------------- I2S clock source configuration ---------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2S) == RCC_PERIPHCLK_I2S) - 8003fd8: 687b ldr r3, [r7, #4] - 8003fda: 681b ldr r3, [r3, #0] - 8003fdc: f403 6300 and.w r3, r3, #2048 @ 0x800 - 8003fe0: 2b00 cmp r3, #0 - 8003fe2: d015 beq.n 8004010 + 80049d0: 687b ldr r3, [r7, #4] + 80049d2: 681b ldr r3, [r3, #0] + 80049d4: f403 6300 and.w r3, r3, #2048 @ 0x800 + 80049d8: 2b00 cmp r3, #0 + 80049da: d015 beq.n 8004a08 { /* Check the parameters */ assert_param(IS_RCC_I2SCLKSOURCE(PeriphClkInit->I2sClockSelection)); /* Configure the I2S interface clock source */ __HAL_RCC_I2S_CONFIG(PeriphClkInit->I2sClockSelection); - 8003fe4: 4b45 ldr r3, [pc, #276] @ (80040fc ) - 8003fe6: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 - 8003fea: f423 0240 bic.w r2, r3, #12582912 @ 0xc00000 - 8003fee: 687b ldr r3, [r7, #4] - 8003ff0: 6adb ldr r3, [r3, #44] @ 0x2c - 8003ff2: 4942 ldr r1, [pc, #264] @ (80040fc ) - 8003ff4: 4313 orrs r3, r2 - 8003ff6: f8c1 3088 str.w r3, [r1, #136] @ 0x88 + 80049dc: 4b45 ldr r3, [pc, #276] @ (8004af4 ) + 80049de: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 + 80049e2: f423 0240 bic.w r2, r3, #12582912 @ 0xc00000 + 80049e6: 687b ldr r3, [r7, #4] + 80049e8: 6adb ldr r3, [r3, #44] @ 0x2c + 80049ea: 4942 ldr r1, [pc, #264] @ (8004af4 ) + 80049ec: 4313 orrs r3, r2 + 80049ee: f8c1 3088 str.w r3, [r1, #136] @ 0x88 if(PeriphClkInit->I2sClockSelection == RCC_I2SCLKSOURCE_PLL) - 8003ffa: 687b ldr r3, [r7, #4] - 8003ffc: 6adb ldr r3, [r3, #44] @ 0x2c - 8003ffe: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000 - 8004002: d105 bne.n 8004010 + 80049f2: 687b ldr r3, [r7, #4] + 80049f4: 6adb ldr r3, [r3, #44] @ 0x2c + 80049f6: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000 + 80049fa: d105 bne.n 8004a08 { /* Enable PLL48M1CLK output */ __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL_48M1CLK); - 8004004: 4b3d ldr r3, [pc, #244] @ (80040fc ) - 8004006: 68db ldr r3, [r3, #12] - 8004008: 4a3c ldr r2, [pc, #240] @ (80040fc ) - 800400a: f443 1380 orr.w r3, r3, #1048576 @ 0x100000 - 800400e: 60d3 str r3, [r2, #12] + 80049fc: 4b3d ldr r3, [pc, #244] @ (8004af4 ) + 80049fe: 68db ldr r3, [r3, #12] + 8004a00: 4a3c ldr r2, [pc, #240] @ (8004af4 ) + 8004a02: f443 1380 orr.w r3, r3, #1048576 @ 0x100000 + 8004a06: 60d3 str r3, [r2, #12] #endif /* SPI_I2S_SUPPORT */ #if defined(FDCAN1) /*-------------------------- FDCAN clock source configuration ---------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_FDCAN) == RCC_PERIPHCLK_FDCAN) - 8004010: 687b ldr r3, [r7, #4] - 8004012: 681b ldr r3, [r3, #0] - 8004014: f403 5380 and.w r3, r3, #4096 @ 0x1000 - 8004018: 2b00 cmp r3, #0 - 800401a: d015 beq.n 8004048 + 8004a08: 687b ldr r3, [r7, #4] + 8004a0a: 681b ldr r3, [r3, #0] + 8004a0c: f403 5380 and.w r3, r3, #4096 @ 0x1000 + 8004a10: 2b00 cmp r3, #0 + 8004a12: d015 beq.n 8004a40 { /* Check the parameters */ assert_param(IS_RCC_FDCANCLKSOURCE(PeriphClkInit->FdcanClockSelection)); /* Configure the FDCAN interface clock source */ __HAL_RCC_FDCAN_CONFIG(PeriphClkInit->FdcanClockSelection); - 800401c: 4b37 ldr r3, [pc, #220] @ (80040fc ) - 800401e: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 - 8004022: f023 7240 bic.w r2, r3, #50331648 @ 0x3000000 - 8004026: 687b ldr r3, [r7, #4] - 8004028: 6b1b ldr r3, [r3, #48] @ 0x30 - 800402a: 4934 ldr r1, [pc, #208] @ (80040fc ) - 800402c: 4313 orrs r3, r2 - 800402e: f8c1 3088 str.w r3, [r1, #136] @ 0x88 + 8004a14: 4b37 ldr r3, [pc, #220] @ (8004af4 ) + 8004a16: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 + 8004a1a: f023 7240 bic.w r2, r3, #50331648 @ 0x3000000 + 8004a1e: 687b ldr r3, [r7, #4] + 8004a20: 6b1b ldr r3, [r3, #48] @ 0x30 + 8004a22: 4934 ldr r1, [pc, #208] @ (8004af4 ) + 8004a24: 4313 orrs r3, r2 + 8004a26: f8c1 3088 str.w r3, [r1, #136] @ 0x88 if(PeriphClkInit->FdcanClockSelection == RCC_FDCANCLKSOURCE_PLL) - 8004032: 687b ldr r3, [r7, #4] - 8004034: 6b1b ldr r3, [r3, #48] @ 0x30 - 8004036: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000 - 800403a: d105 bne.n 8004048 + 8004a2a: 687b ldr r3, [r7, #4] + 8004a2c: 6b1b ldr r3, [r3, #48] @ 0x30 + 8004a2e: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000 + 8004a32: d105 bne.n 8004a40 { /* Enable PLL48M1CLK output */ __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL_48M1CLK); - 800403c: 4b2f ldr r3, [pc, #188] @ (80040fc ) - 800403e: 68db ldr r3, [r3, #12] - 8004040: 4a2e ldr r2, [pc, #184] @ (80040fc ) - 8004042: f443 1380 orr.w r3, r3, #1048576 @ 0x100000 - 8004046: 60d3 str r3, [r2, #12] + 8004a34: 4b2f ldr r3, [pc, #188] @ (8004af4 ) + 8004a36: 68db ldr r3, [r3, #12] + 8004a38: 4a2e ldr r2, [pc, #184] @ (8004af4 ) + 8004a3a: f443 1380 orr.w r3, r3, #1048576 @ 0x100000 + 8004a3e: 60d3 str r3, [r2, #12] #endif /* FDCAN1 */ #if defined(USB) /*-------------------------- USB clock source configuration ----------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USB) == (RCC_PERIPHCLK_USB)) - 8004048: 687b ldr r3, [r7, #4] - 800404a: 681b ldr r3, [r3, #0] - 800404c: f403 5300 and.w r3, r3, #8192 @ 0x2000 - 8004050: 2b00 cmp r3, #0 - 8004052: d015 beq.n 8004080 + 8004a40: 687b ldr r3, [r7, #4] + 8004a42: 681b ldr r3, [r3, #0] + 8004a44: f403 5300 and.w r3, r3, #8192 @ 0x2000 + 8004a48: 2b00 cmp r3, #0 + 8004a4a: d015 beq.n 8004a78 { assert_param(IS_RCC_USBCLKSOURCE(PeriphClkInit->UsbClockSelection)); __HAL_RCC_USB_CONFIG(PeriphClkInit->UsbClockSelection); - 8004054: 4b29 ldr r3, [pc, #164] @ (80040fc ) - 8004056: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 - 800405a: f023 6240 bic.w r2, r3, #201326592 @ 0xc000000 - 800405e: 687b ldr r3, [r7, #4] - 8004060: 6b5b ldr r3, [r3, #52] @ 0x34 - 8004062: 4926 ldr r1, [pc, #152] @ (80040fc ) - 8004064: 4313 orrs r3, r2 - 8004066: f8c1 3088 str.w r3, [r1, #136] @ 0x88 + 8004a4c: 4b29 ldr r3, [pc, #164] @ (8004af4 ) + 8004a4e: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 + 8004a52: f023 6240 bic.w r2, r3, #201326592 @ 0xc000000 + 8004a56: 687b ldr r3, [r7, #4] + 8004a58: 6b5b ldr r3, [r3, #52] @ 0x34 + 8004a5a: 4926 ldr r1, [pc, #152] @ (8004af4 ) + 8004a5c: 4313 orrs r3, r2 + 8004a5e: f8c1 3088 str.w r3, [r1, #136] @ 0x88 if(PeriphClkInit->UsbClockSelection == RCC_USBCLKSOURCE_PLL) - 800406a: 687b ldr r3, [r7, #4] - 800406c: 6b5b ldr r3, [r3, #52] @ 0x34 - 800406e: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000 - 8004072: d105 bne.n 8004080 + 8004a62: 687b ldr r3, [r7, #4] + 8004a64: 6b5b ldr r3, [r3, #52] @ 0x34 + 8004a66: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000 + 8004a6a: d105 bne.n 8004a78 { /* Enable PLL48M1CLK output */ __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL_48M1CLK); - 8004074: 4b21 ldr r3, [pc, #132] @ (80040fc ) - 8004076: 68db ldr r3, [r3, #12] - 8004078: 4a20 ldr r2, [pc, #128] @ (80040fc ) - 800407a: f443 1380 orr.w r3, r3, #1048576 @ 0x100000 - 800407e: 60d3 str r3, [r2, #12] + 8004a6c: 4b21 ldr r3, [pc, #132] @ (8004af4 ) + 8004a6e: 68db ldr r3, [r3, #12] + 8004a70: 4a20 ldr r2, [pc, #128] @ (8004af4 ) + 8004a72: f443 1380 orr.w r3, r3, #1048576 @ 0x100000 + 8004a76: 60d3 str r3, [r2, #12] } #endif /* USB */ /*-------------------------- RNG clock source configuration ----------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RNG) == (RCC_PERIPHCLK_RNG)) - 8004080: 687b ldr r3, [r7, #4] - 8004082: 681b ldr r3, [r3, #0] - 8004084: f403 4380 and.w r3, r3, #16384 @ 0x4000 - 8004088: 2b00 cmp r3, #0 - 800408a: d015 beq.n 80040b8 + 8004a78: 687b ldr r3, [r7, #4] + 8004a7a: 681b ldr r3, [r3, #0] + 8004a7c: f403 4380 and.w r3, r3, #16384 @ 0x4000 + 8004a80: 2b00 cmp r3, #0 + 8004a82: d015 beq.n 8004ab0 { assert_param(IS_RCC_RNGCLKSOURCE(PeriphClkInit->RngClockSelection)); __HAL_RCC_RNG_CONFIG(PeriphClkInit->RngClockSelection); - 800408c: 4b1b ldr r3, [pc, #108] @ (80040fc ) - 800408e: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 - 8004092: f023 6240 bic.w r2, r3, #201326592 @ 0xc000000 - 8004096: 687b ldr r3, [r7, #4] - 8004098: 6b9b ldr r3, [r3, #56] @ 0x38 - 800409a: 4918 ldr r1, [pc, #96] @ (80040fc ) - 800409c: 4313 orrs r3, r2 - 800409e: f8c1 3088 str.w r3, [r1, #136] @ 0x88 + 8004a84: 4b1b ldr r3, [pc, #108] @ (8004af4 ) + 8004a86: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 + 8004a8a: f023 6240 bic.w r2, r3, #201326592 @ 0xc000000 + 8004a8e: 687b ldr r3, [r7, #4] + 8004a90: 6b9b ldr r3, [r3, #56] @ 0x38 + 8004a92: 4918 ldr r1, [pc, #96] @ (8004af4 ) + 8004a94: 4313 orrs r3, r2 + 8004a96: f8c1 3088 str.w r3, [r1, #136] @ 0x88 if(PeriphClkInit->RngClockSelection == RCC_RNGCLKSOURCE_PLL) - 80040a2: 687b ldr r3, [r7, #4] - 80040a4: 6b9b ldr r3, [r3, #56] @ 0x38 - 80040a6: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000 - 80040aa: d105 bne.n 80040b8 + 8004a9a: 687b ldr r3, [r7, #4] + 8004a9c: 6b9b ldr r3, [r3, #56] @ 0x38 + 8004a9e: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000 + 8004aa2: d105 bne.n 8004ab0 { /* Enable PLL48M1CLK output */ __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL_48M1CLK); - 80040ac: 4b13 ldr r3, [pc, #76] @ (80040fc ) - 80040ae: 68db ldr r3, [r3, #12] - 80040b0: 4a12 ldr r2, [pc, #72] @ (80040fc ) - 80040b2: f443 1380 orr.w r3, r3, #1048576 @ 0x100000 - 80040b6: 60d3 str r3, [r2, #12] + 8004aa4: 4b13 ldr r3, [pc, #76] @ (8004af4 ) + 8004aa6: 68db ldr r3, [r3, #12] + 8004aa8: 4a12 ldr r2, [pc, #72] @ (8004af4 ) + 8004aaa: f443 1380 orr.w r3, r3, #1048576 @ 0x100000 + 8004aae: 60d3 str r3, [r2, #12] } } /*-------------------------- ADC12 clock source configuration ----------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_ADC12) == RCC_PERIPHCLK_ADC12) - 80040b8: 687b ldr r3, [r7, #4] - 80040ba: 681b ldr r3, [r3, #0] - 80040bc: f403 4300 and.w r3, r3, #32768 @ 0x8000 - 80040c0: 2b00 cmp r3, #0 - 80040c2: d015 beq.n 80040f0 + 8004ab0: 687b ldr r3, [r7, #4] + 8004ab2: 681b ldr r3, [r3, #0] + 8004ab4: f403 4300 and.w r3, r3, #32768 @ 0x8000 + 8004ab8: 2b00 cmp r3, #0 + 8004aba: d015 beq.n 8004ae8 { /* Check the parameters */ assert_param(IS_RCC_ADC12CLKSOURCE(PeriphClkInit->Adc12ClockSelection)); /* Configure the ADC12 interface clock source */ __HAL_RCC_ADC12_CONFIG(PeriphClkInit->Adc12ClockSelection); - 80040c4: 4b0d ldr r3, [pc, #52] @ (80040fc ) - 80040c6: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 - 80040ca: f023 5240 bic.w r2, r3, #805306368 @ 0x30000000 - 80040ce: 687b ldr r3, [r7, #4] - 80040d0: 6bdb ldr r3, [r3, #60] @ 0x3c - 80040d2: 490a ldr r1, [pc, #40] @ (80040fc ) - 80040d4: 4313 orrs r3, r2 - 80040d6: f8c1 3088 str.w r3, [r1, #136] @ 0x88 + 8004abc: 4b0d ldr r3, [pc, #52] @ (8004af4 ) + 8004abe: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 + 8004ac2: f023 5240 bic.w r2, r3, #805306368 @ 0x30000000 + 8004ac6: 687b ldr r3, [r7, #4] + 8004ac8: 6bdb ldr r3, [r3, #60] @ 0x3c + 8004aca: 490a ldr r1, [pc, #40] @ (8004af4 ) + 8004acc: 4313 orrs r3, r2 + 8004ace: f8c1 3088 str.w r3, [r1, #136] @ 0x88 if(PeriphClkInit->Adc12ClockSelection == RCC_ADC12CLKSOURCE_PLL) - 80040da: 687b ldr r3, [r7, #4] - 80040dc: 6bdb ldr r3, [r3, #60] @ 0x3c - 80040de: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000 - 80040e2: d105 bne.n 80040f0 + 8004ad2: 687b ldr r3, [r7, #4] + 8004ad4: 6bdb ldr r3, [r3, #60] @ 0x3c + 8004ad6: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000 + 8004ada: d105 bne.n 8004ae8 { /* Enable PLLADCCLK output */ __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL_ADCCLK); - 80040e4: 4b05 ldr r3, [pc, #20] @ (80040fc ) - 80040e6: 68db ldr r3, [r3, #12] - 80040e8: 4a04 ldr r2, [pc, #16] @ (80040fc ) - 80040ea: f443 3380 orr.w r3, r3, #65536 @ 0x10000 - 80040ee: 60d3 str r3, [r2, #12] + 8004adc: 4b05 ldr r3, [pc, #20] @ (8004af4 ) + 8004ade: 68db ldr r3, [r3, #12] + 8004ae0: 4a04 ldr r2, [pc, #16] @ (8004af4 ) + 8004ae2: f443 3380 orr.w r3, r3, #65536 @ 0x10000 + 8004ae6: 60d3 str r3, [r2, #12] } } #endif /* QUADSPI */ return status; - 80040f0: 7cbb ldrb r3, [r7, #18] + 8004ae8: 7cbb ldrb r3, [r7, #18] } - 80040f2: 4618 mov r0, r3 - 80040f4: 3718 adds r7, #24 - 80040f6: 46bd mov sp, r7 - 80040f8: bd80 pop {r7, pc} - 80040fa: bf00 nop - 80040fc: 40021000 .word 0x40021000 + 8004aea: 4618 mov r0, r3 + 8004aec: 3718 adds r7, #24 + 8004aee: 46bd mov sp, r7 + 8004af0: bd80 pop {r7, pc} + 8004af2: bf00 nop + 8004af4: 40021000 .word 0x40021000 -08004100 : +08004af8 : * Ex: call @ref HAL_TIM_Base_DeInit() before HAL_TIM_Base_Init() * @param htim TIM Base handle * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_Base_Init(TIM_HandleTypeDef *htim) { - 8004100: b580 push {r7, lr} - 8004102: b082 sub sp, #8 - 8004104: af00 add r7, sp, #0 - 8004106: 6078 str r0, [r7, #4] + 8004af8: b580 push {r7, lr} + 8004afa: b082 sub sp, #8 + 8004afc: af00 add r7, sp, #0 + 8004afe: 6078 str r0, [r7, #4] /* Check the TIM handle allocation */ if (htim == NULL) - 8004108: 687b ldr r3, [r7, #4] - 800410a: 2b00 cmp r3, #0 - 800410c: d101 bne.n 8004112 + 8004b00: 687b ldr r3, [r7, #4] + 8004b02: 2b00 cmp r3, #0 + 8004b04: d101 bne.n 8004b0a { return HAL_ERROR; - 800410e: 2301 movs r3, #1 - 8004110: e049 b.n 80041a6 + 8004b06: 2301 movs r3, #1 + 8004b08: e049 b.n 8004b9e assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode)); assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision)); assert_param(IS_TIM_PERIOD(htim, htim->Init.Period)); assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload)); if (htim->State == HAL_TIM_STATE_RESET) - 8004112: 687b ldr r3, [r7, #4] - 8004114: f893 303d ldrb.w r3, [r3, #61] @ 0x3d - 8004118: b2db uxtb r3, r3 - 800411a: 2b00 cmp r3, #0 - 800411c: d106 bne.n 800412c + 8004b0a: 687b ldr r3, [r7, #4] + 8004b0c: f893 303d ldrb.w r3, [r3, #61] @ 0x3d + 8004b10: b2db uxtb r3, r3 + 8004b12: 2b00 cmp r3, #0 + 8004b14: d106 bne.n 8004b24 { /* Allocate lock resource and initialize it */ htim->Lock = HAL_UNLOCKED; - 800411e: 687b ldr r3, [r7, #4] - 8004120: 2200 movs r2, #0 - 8004122: f883 203c strb.w r2, [r3, #60] @ 0x3c + 8004b16: 687b ldr r3, [r7, #4] + 8004b18: 2200 movs r2, #0 + 8004b1a: f883 203c strb.w r2, [r3, #60] @ 0x3c } /* Init the low level hardware : GPIO, CLOCK, NVIC */ htim->Base_MspInitCallback(htim); #else /* Init the low level hardware : GPIO, CLOCK, NVIC */ HAL_TIM_Base_MspInit(htim); - 8004126: 6878 ldr r0, [r7, #4] - 8004128: f7fc ff0a bl 8000f40 + 8004b1e: 6878 ldr r0, [r7, #4] + 8004b20: f7fc fe7c bl 800181c #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } /* Set the TIM state */ htim->State = HAL_TIM_STATE_BUSY; - 800412c: 687b ldr r3, [r7, #4] - 800412e: 2202 movs r2, #2 - 8004130: f883 203d strb.w r2, [r3, #61] @ 0x3d + 8004b24: 687b ldr r3, [r7, #4] + 8004b26: 2202 movs r2, #2 + 8004b28: f883 203d strb.w r2, [r3, #61] @ 0x3d /* Set the Time Base configuration */ TIM_Base_SetConfig(htim->Instance, &htim->Init); - 8004134: 687b ldr r3, [r7, #4] - 8004136: 681a ldr r2, [r3, #0] - 8004138: 687b ldr r3, [r7, #4] - 800413a: 3304 adds r3, #4 - 800413c: 4619 mov r1, r3 - 800413e: 4610 mov r0, r2 - 8004140: f000 fab0 bl 80046a4 + 8004b2c: 687b ldr r3, [r7, #4] + 8004b2e: 681a ldr r2, [r3, #0] + 8004b30: 687b ldr r3, [r7, #4] + 8004b32: 3304 adds r3, #4 + 8004b34: 4619 mov r1, r3 + 8004b36: 4610 mov r0, r2 + 8004b38: f000 fab0 bl 800509c /* Initialize the DMA burst operation state */ htim->DMABurstState = HAL_DMA_BURST_STATE_READY; - 8004144: 687b ldr r3, [r7, #4] - 8004146: 2201 movs r2, #1 - 8004148: f883 2048 strb.w r2, [r3, #72] @ 0x48 + 8004b3c: 687b ldr r3, [r7, #4] + 8004b3e: 2201 movs r2, #1 + 8004b40: f883 2048 strb.w r2, [r3, #72] @ 0x48 /* Initialize the TIM channels state */ TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); - 800414c: 687b ldr r3, [r7, #4] - 800414e: 2201 movs r2, #1 - 8004150: f883 203e strb.w r2, [r3, #62] @ 0x3e - 8004154: 687b ldr r3, [r7, #4] - 8004156: 2201 movs r2, #1 - 8004158: f883 203f strb.w r2, [r3, #63] @ 0x3f - 800415c: 687b ldr r3, [r7, #4] - 800415e: 2201 movs r2, #1 - 8004160: f883 2040 strb.w r2, [r3, #64] @ 0x40 - 8004164: 687b ldr r3, [r7, #4] - 8004166: 2201 movs r2, #1 - 8004168: f883 2041 strb.w r2, [r3, #65] @ 0x41 - 800416c: 687b ldr r3, [r7, #4] - 800416e: 2201 movs r2, #1 - 8004170: f883 2042 strb.w r2, [r3, #66] @ 0x42 - 8004174: 687b ldr r3, [r7, #4] - 8004176: 2201 movs r2, #1 - 8004178: f883 2043 strb.w r2, [r3, #67] @ 0x43 + 8004b44: 687b ldr r3, [r7, #4] + 8004b46: 2201 movs r2, #1 + 8004b48: f883 203e strb.w r2, [r3, #62] @ 0x3e + 8004b4c: 687b ldr r3, [r7, #4] + 8004b4e: 2201 movs r2, #1 + 8004b50: f883 203f strb.w r2, [r3, #63] @ 0x3f + 8004b54: 687b ldr r3, [r7, #4] + 8004b56: 2201 movs r2, #1 + 8004b58: f883 2040 strb.w r2, [r3, #64] @ 0x40 + 8004b5c: 687b ldr r3, [r7, #4] + 8004b5e: 2201 movs r2, #1 + 8004b60: f883 2041 strb.w r2, [r3, #65] @ 0x41 + 8004b64: 687b ldr r3, [r7, #4] + 8004b66: 2201 movs r2, #1 + 8004b68: f883 2042 strb.w r2, [r3, #66] @ 0x42 + 8004b6c: 687b ldr r3, [r7, #4] + 8004b6e: 2201 movs r2, #1 + 8004b70: f883 2043 strb.w r2, [r3, #67] @ 0x43 TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); - 800417c: 687b ldr r3, [r7, #4] - 800417e: 2201 movs r2, #1 - 8004180: f883 2044 strb.w r2, [r3, #68] @ 0x44 - 8004184: 687b ldr r3, [r7, #4] - 8004186: 2201 movs r2, #1 - 8004188: f883 2045 strb.w r2, [r3, #69] @ 0x45 - 800418c: 687b ldr r3, [r7, #4] - 800418e: 2201 movs r2, #1 - 8004190: f883 2046 strb.w r2, [r3, #70] @ 0x46 - 8004194: 687b ldr r3, [r7, #4] - 8004196: 2201 movs r2, #1 - 8004198: f883 2047 strb.w r2, [r3, #71] @ 0x47 + 8004b74: 687b ldr r3, [r7, #4] + 8004b76: 2201 movs r2, #1 + 8004b78: f883 2044 strb.w r2, [r3, #68] @ 0x44 + 8004b7c: 687b ldr r3, [r7, #4] + 8004b7e: 2201 movs r2, #1 + 8004b80: f883 2045 strb.w r2, [r3, #69] @ 0x45 + 8004b84: 687b ldr r3, [r7, #4] + 8004b86: 2201 movs r2, #1 + 8004b88: f883 2046 strb.w r2, [r3, #70] @ 0x46 + 8004b8c: 687b ldr r3, [r7, #4] + 8004b8e: 2201 movs r2, #1 + 8004b90: f883 2047 strb.w r2, [r3, #71] @ 0x47 /* Initialize the TIM state*/ htim->State = HAL_TIM_STATE_READY; - 800419c: 687b ldr r3, [r7, #4] - 800419e: 2201 movs r2, #1 - 80041a0: f883 203d strb.w r2, [r3, #61] @ 0x3d + 8004b94: 687b ldr r3, [r7, #4] + 8004b96: 2201 movs r2, #1 + 8004b98: f883 203d strb.w r2, [r3, #61] @ 0x3d return HAL_OK; - 80041a4: 2300 movs r3, #0 + 8004b9c: 2300 movs r3, #0 } - 80041a6: 4618 mov r0, r3 - 80041a8: 3708 adds r7, #8 - 80041aa: 46bd mov sp, r7 - 80041ac: bd80 pop {r7, pc} + 8004b9e: 4618 mov r0, r3 + 8004ba0: 3708 adds r7, #8 + 8004ba2: 46bd mov sp, r7 + 8004ba4: bd80 pop {r7, pc} -080041ae : +08004ba6 : * @brief This function handles TIM interrupts requests. * @param htim TIM handle * @retval None */ void HAL_TIM_IRQHandler(TIM_HandleTypeDef *htim) { - 80041ae: b580 push {r7, lr} - 80041b0: b084 sub sp, #16 - 80041b2: af00 add r7, sp, #0 - 80041b4: 6078 str r0, [r7, #4] + 8004ba6: b580 push {r7, lr} + 8004ba8: b084 sub sp, #16 + 8004baa: af00 add r7, sp, #0 + 8004bac: 6078 str r0, [r7, #4] uint32_t itsource = htim->Instance->DIER; - 80041b6: 687b ldr r3, [r7, #4] - 80041b8: 681b ldr r3, [r3, #0] - 80041ba: 68db ldr r3, [r3, #12] - 80041bc: 60fb str r3, [r7, #12] + 8004bae: 687b ldr r3, [r7, #4] + 8004bb0: 681b ldr r3, [r3, #0] + 8004bb2: 68db ldr r3, [r3, #12] + 8004bb4: 60fb str r3, [r7, #12] uint32_t itflag = htim->Instance->SR; - 80041be: 687b ldr r3, [r7, #4] - 80041c0: 681b ldr r3, [r3, #0] - 80041c2: 691b ldr r3, [r3, #16] - 80041c4: 60bb str r3, [r7, #8] + 8004bb6: 687b ldr r3, [r7, #4] + 8004bb8: 681b ldr r3, [r3, #0] + 8004bba: 691b ldr r3, [r3, #16] + 8004bbc: 60bb str r3, [r7, #8] /* Capture compare 1 event */ if ((itflag & (TIM_FLAG_CC1)) == (TIM_FLAG_CC1)) - 80041c6: 68bb ldr r3, [r7, #8] - 80041c8: f003 0302 and.w r3, r3, #2 - 80041cc: 2b00 cmp r3, #0 - 80041ce: d020 beq.n 8004212 + 8004bbe: 68bb ldr r3, [r7, #8] + 8004bc0: f003 0302 and.w r3, r3, #2 + 8004bc4: 2b00 cmp r3, #0 + 8004bc6: d020 beq.n 8004c0a { if ((itsource & (TIM_IT_CC1)) == (TIM_IT_CC1)) - 80041d0: 68fb ldr r3, [r7, #12] - 80041d2: f003 0302 and.w r3, r3, #2 - 80041d6: 2b00 cmp r3, #0 - 80041d8: d01b beq.n 8004212 + 8004bc8: 68fb ldr r3, [r7, #12] + 8004bca: f003 0302 and.w r3, r3, #2 + 8004bce: 2b00 cmp r3, #0 + 8004bd0: d01b beq.n 8004c0a { { __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC1); - 80041da: 687b ldr r3, [r7, #4] - 80041dc: 681b ldr r3, [r3, #0] - 80041de: f06f 0202 mvn.w r2, #2 - 80041e2: 611a str r2, [r3, #16] + 8004bd2: 687b ldr r3, [r7, #4] + 8004bd4: 681b ldr r3, [r3, #0] + 8004bd6: f06f 0202 mvn.w r2, #2 + 8004bda: 611a str r2, [r3, #16] htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1; - 80041e4: 687b ldr r3, [r7, #4] - 80041e6: 2201 movs r2, #1 - 80041e8: 771a strb r2, [r3, #28] + 8004bdc: 687b ldr r3, [r7, #4] + 8004bde: 2201 movs r2, #1 + 8004be0: 771a strb r2, [r3, #28] /* Input capture event */ if ((htim->Instance->CCMR1 & TIM_CCMR1_CC1S) != 0x00U) - 80041ea: 687b ldr r3, [r7, #4] - 80041ec: 681b ldr r3, [r3, #0] - 80041ee: 699b ldr r3, [r3, #24] - 80041f0: f003 0303 and.w r3, r3, #3 - 80041f4: 2b00 cmp r3, #0 - 80041f6: d003 beq.n 8004200 + 8004be2: 687b ldr r3, [r7, #4] + 8004be4: 681b ldr r3, [r3, #0] + 8004be6: 699b ldr r3, [r3, #24] + 8004be8: f003 0303 and.w r3, r3, #3 + 8004bec: 2b00 cmp r3, #0 + 8004bee: d003 beq.n 8004bf8 { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->IC_CaptureCallback(htim); #else HAL_TIM_IC_CaptureCallback(htim); - 80041f8: 6878 ldr r0, [r7, #4] - 80041fa: f000 fa35 bl 8004668 - 80041fe: e005 b.n 800420c + 8004bf0: 6878 ldr r0, [r7, #4] + 8004bf2: f000 fa35 bl 8005060 + 8004bf6: e005 b.n 8004c04 { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->OC_DelayElapsedCallback(htim); htim->PWM_PulseFinishedCallback(htim); #else HAL_TIM_OC_DelayElapsedCallback(htim); - 8004200: 6878 ldr r0, [r7, #4] - 8004202: f000 fa27 bl 8004654 + 8004bf8: 6878 ldr r0, [r7, #4] + 8004bfa: f000 fa27 bl 800504c HAL_TIM_PWM_PulseFinishedCallback(htim); - 8004206: 6878 ldr r0, [r7, #4] - 8004208: f000 fa38 bl 800467c + 8004bfe: 6878 ldr r0, [r7, #4] + 8004c00: f000 fa38 bl 8005074 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; - 800420c: 687b ldr r3, [r7, #4] - 800420e: 2200 movs r2, #0 - 8004210: 771a strb r2, [r3, #28] + 8004c04: 687b ldr r3, [r7, #4] + 8004c06: 2200 movs r2, #0 + 8004c08: 771a strb r2, [r3, #28] } } } /* Capture compare 2 event */ if ((itflag & (TIM_FLAG_CC2)) == (TIM_FLAG_CC2)) - 8004212: 68bb ldr r3, [r7, #8] - 8004214: f003 0304 and.w r3, r3, #4 - 8004218: 2b00 cmp r3, #0 - 800421a: d020 beq.n 800425e + 8004c0a: 68bb ldr r3, [r7, #8] + 8004c0c: f003 0304 and.w r3, r3, #4 + 8004c10: 2b00 cmp r3, #0 + 8004c12: d020 beq.n 8004c56 { if ((itsource & (TIM_IT_CC2)) == (TIM_IT_CC2)) - 800421c: 68fb ldr r3, [r7, #12] - 800421e: f003 0304 and.w r3, r3, #4 - 8004222: 2b00 cmp r3, #0 - 8004224: d01b beq.n 800425e + 8004c14: 68fb ldr r3, [r7, #12] + 8004c16: f003 0304 and.w r3, r3, #4 + 8004c1a: 2b00 cmp r3, #0 + 8004c1c: d01b beq.n 8004c56 { __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC2); - 8004226: 687b ldr r3, [r7, #4] - 8004228: 681b ldr r3, [r3, #0] - 800422a: f06f 0204 mvn.w r2, #4 - 800422e: 611a str r2, [r3, #16] + 8004c1e: 687b ldr r3, [r7, #4] + 8004c20: 681b ldr r3, [r3, #0] + 8004c22: f06f 0204 mvn.w r2, #4 + 8004c26: 611a str r2, [r3, #16] htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2; - 8004230: 687b ldr r3, [r7, #4] - 8004232: 2202 movs r2, #2 - 8004234: 771a strb r2, [r3, #28] + 8004c28: 687b ldr r3, [r7, #4] + 8004c2a: 2202 movs r2, #2 + 8004c2c: 771a strb r2, [r3, #28] /* Input capture event */ if ((htim->Instance->CCMR1 & TIM_CCMR1_CC2S) != 0x00U) - 8004236: 687b ldr r3, [r7, #4] - 8004238: 681b ldr r3, [r3, #0] - 800423a: 699b ldr r3, [r3, #24] - 800423c: f403 7340 and.w r3, r3, #768 @ 0x300 - 8004240: 2b00 cmp r3, #0 - 8004242: d003 beq.n 800424c + 8004c2e: 687b ldr r3, [r7, #4] + 8004c30: 681b ldr r3, [r3, #0] + 8004c32: 699b ldr r3, [r3, #24] + 8004c34: f403 7340 and.w r3, r3, #768 @ 0x300 + 8004c38: 2b00 cmp r3, #0 + 8004c3a: d003 beq.n 8004c44 { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->IC_CaptureCallback(htim); #else HAL_TIM_IC_CaptureCallback(htim); - 8004244: 6878 ldr r0, [r7, #4] - 8004246: f000 fa0f bl 8004668 - 800424a: e005 b.n 8004258 + 8004c3c: 6878 ldr r0, [r7, #4] + 8004c3e: f000 fa0f bl 8005060 + 8004c42: e005 b.n 8004c50 { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->OC_DelayElapsedCallback(htim); htim->PWM_PulseFinishedCallback(htim); #else HAL_TIM_OC_DelayElapsedCallback(htim); - 800424c: 6878 ldr r0, [r7, #4] - 800424e: f000 fa01 bl 8004654 + 8004c44: 6878 ldr r0, [r7, #4] + 8004c46: f000 fa01 bl 800504c HAL_TIM_PWM_PulseFinishedCallback(htim); - 8004252: 6878 ldr r0, [r7, #4] - 8004254: f000 fa12 bl 800467c + 8004c4a: 6878 ldr r0, [r7, #4] + 8004c4c: f000 fa12 bl 8005074 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; - 8004258: 687b ldr r3, [r7, #4] - 800425a: 2200 movs r2, #0 - 800425c: 771a strb r2, [r3, #28] + 8004c50: 687b ldr r3, [r7, #4] + 8004c52: 2200 movs r2, #0 + 8004c54: 771a strb r2, [r3, #28] } } /* Capture compare 3 event */ if ((itflag & (TIM_FLAG_CC3)) == (TIM_FLAG_CC3)) - 800425e: 68bb ldr r3, [r7, #8] - 8004260: f003 0308 and.w r3, r3, #8 - 8004264: 2b00 cmp r3, #0 - 8004266: d020 beq.n 80042aa + 8004c56: 68bb ldr r3, [r7, #8] + 8004c58: f003 0308 and.w r3, r3, #8 + 8004c5c: 2b00 cmp r3, #0 + 8004c5e: d020 beq.n 8004ca2 { if ((itsource & (TIM_IT_CC3)) == (TIM_IT_CC3)) - 8004268: 68fb ldr r3, [r7, #12] - 800426a: f003 0308 and.w r3, r3, #8 - 800426e: 2b00 cmp r3, #0 - 8004270: d01b beq.n 80042aa + 8004c60: 68fb ldr r3, [r7, #12] + 8004c62: f003 0308 and.w r3, r3, #8 + 8004c66: 2b00 cmp r3, #0 + 8004c68: d01b beq.n 8004ca2 { __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC3); - 8004272: 687b ldr r3, [r7, #4] - 8004274: 681b ldr r3, [r3, #0] - 8004276: f06f 0208 mvn.w r2, #8 - 800427a: 611a str r2, [r3, #16] + 8004c6a: 687b ldr r3, [r7, #4] + 8004c6c: 681b ldr r3, [r3, #0] + 8004c6e: f06f 0208 mvn.w r2, #8 + 8004c72: 611a str r2, [r3, #16] htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3; - 800427c: 687b ldr r3, [r7, #4] - 800427e: 2204 movs r2, #4 - 8004280: 771a strb r2, [r3, #28] + 8004c74: 687b ldr r3, [r7, #4] + 8004c76: 2204 movs r2, #4 + 8004c78: 771a strb r2, [r3, #28] /* Input capture event */ if ((htim->Instance->CCMR2 & TIM_CCMR2_CC3S) != 0x00U) - 8004282: 687b ldr r3, [r7, #4] - 8004284: 681b ldr r3, [r3, #0] - 8004286: 69db ldr r3, [r3, #28] - 8004288: f003 0303 and.w r3, r3, #3 - 800428c: 2b00 cmp r3, #0 - 800428e: d003 beq.n 8004298 + 8004c7a: 687b ldr r3, [r7, #4] + 8004c7c: 681b ldr r3, [r3, #0] + 8004c7e: 69db ldr r3, [r3, #28] + 8004c80: f003 0303 and.w r3, r3, #3 + 8004c84: 2b00 cmp r3, #0 + 8004c86: d003 beq.n 8004c90 { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->IC_CaptureCallback(htim); #else HAL_TIM_IC_CaptureCallback(htim); - 8004290: 6878 ldr r0, [r7, #4] - 8004292: f000 f9e9 bl 8004668 - 8004296: e005 b.n 80042a4 + 8004c88: 6878 ldr r0, [r7, #4] + 8004c8a: f000 f9e9 bl 8005060 + 8004c8e: e005 b.n 8004c9c { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->OC_DelayElapsedCallback(htim); htim->PWM_PulseFinishedCallback(htim); #else HAL_TIM_OC_DelayElapsedCallback(htim); - 8004298: 6878 ldr r0, [r7, #4] - 800429a: f000 f9db bl 8004654 + 8004c90: 6878 ldr r0, [r7, #4] + 8004c92: f000 f9db bl 800504c HAL_TIM_PWM_PulseFinishedCallback(htim); - 800429e: 6878 ldr r0, [r7, #4] - 80042a0: f000 f9ec bl 800467c + 8004c96: 6878 ldr r0, [r7, #4] + 8004c98: f000 f9ec bl 8005074 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; - 80042a4: 687b ldr r3, [r7, #4] - 80042a6: 2200 movs r2, #0 - 80042a8: 771a strb r2, [r3, #28] + 8004c9c: 687b ldr r3, [r7, #4] + 8004c9e: 2200 movs r2, #0 + 8004ca0: 771a strb r2, [r3, #28] } } /* Capture compare 4 event */ if ((itflag & (TIM_FLAG_CC4)) == (TIM_FLAG_CC4)) - 80042aa: 68bb ldr r3, [r7, #8] - 80042ac: f003 0310 and.w r3, r3, #16 - 80042b0: 2b00 cmp r3, #0 - 80042b2: d020 beq.n 80042f6 + 8004ca2: 68bb ldr r3, [r7, #8] + 8004ca4: f003 0310 and.w r3, r3, #16 + 8004ca8: 2b00 cmp r3, #0 + 8004caa: d020 beq.n 8004cee { if ((itsource & (TIM_IT_CC4)) == (TIM_IT_CC4)) - 80042b4: 68fb ldr r3, [r7, #12] - 80042b6: f003 0310 and.w r3, r3, #16 - 80042ba: 2b00 cmp r3, #0 - 80042bc: d01b beq.n 80042f6 + 8004cac: 68fb ldr r3, [r7, #12] + 8004cae: f003 0310 and.w r3, r3, #16 + 8004cb2: 2b00 cmp r3, #0 + 8004cb4: d01b beq.n 8004cee { __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC4); - 80042be: 687b ldr r3, [r7, #4] - 80042c0: 681b ldr r3, [r3, #0] - 80042c2: f06f 0210 mvn.w r2, #16 - 80042c6: 611a str r2, [r3, #16] + 8004cb6: 687b ldr r3, [r7, #4] + 8004cb8: 681b ldr r3, [r3, #0] + 8004cba: f06f 0210 mvn.w r2, #16 + 8004cbe: 611a str r2, [r3, #16] htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4; - 80042c8: 687b ldr r3, [r7, #4] - 80042ca: 2208 movs r2, #8 - 80042cc: 771a strb r2, [r3, #28] + 8004cc0: 687b ldr r3, [r7, #4] + 8004cc2: 2208 movs r2, #8 + 8004cc4: 771a strb r2, [r3, #28] /* Input capture event */ if ((htim->Instance->CCMR2 & TIM_CCMR2_CC4S) != 0x00U) - 80042ce: 687b ldr r3, [r7, #4] - 80042d0: 681b ldr r3, [r3, #0] - 80042d2: 69db ldr r3, [r3, #28] - 80042d4: f403 7340 and.w r3, r3, #768 @ 0x300 - 80042d8: 2b00 cmp r3, #0 - 80042da: d003 beq.n 80042e4 + 8004cc6: 687b ldr r3, [r7, #4] + 8004cc8: 681b ldr r3, [r3, #0] + 8004cca: 69db ldr r3, [r3, #28] + 8004ccc: f403 7340 and.w r3, r3, #768 @ 0x300 + 8004cd0: 2b00 cmp r3, #0 + 8004cd2: d003 beq.n 8004cdc { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->IC_CaptureCallback(htim); #else HAL_TIM_IC_CaptureCallback(htim); - 80042dc: 6878 ldr r0, [r7, #4] - 80042de: f000 f9c3 bl 8004668 - 80042e2: e005 b.n 80042f0 + 8004cd4: 6878 ldr r0, [r7, #4] + 8004cd6: f000 f9c3 bl 8005060 + 8004cda: e005 b.n 8004ce8 { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->OC_DelayElapsedCallback(htim); htim->PWM_PulseFinishedCallback(htim); #else HAL_TIM_OC_DelayElapsedCallback(htim); - 80042e4: 6878 ldr r0, [r7, #4] - 80042e6: f000 f9b5 bl 8004654 + 8004cdc: 6878 ldr r0, [r7, #4] + 8004cde: f000 f9b5 bl 800504c HAL_TIM_PWM_PulseFinishedCallback(htim); - 80042ea: 6878 ldr r0, [r7, #4] - 80042ec: f000 f9c6 bl 800467c + 8004ce2: 6878 ldr r0, [r7, #4] + 8004ce4: f000 f9c6 bl 8005074 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; - 80042f0: 687b ldr r3, [r7, #4] - 80042f2: 2200 movs r2, #0 - 80042f4: 771a strb r2, [r3, #28] + 8004ce8: 687b ldr r3, [r7, #4] + 8004cea: 2200 movs r2, #0 + 8004cec: 771a strb r2, [r3, #28] } } /* TIM Update event */ if ((itflag & (TIM_FLAG_UPDATE)) == (TIM_FLAG_UPDATE)) - 80042f6: 68bb ldr r3, [r7, #8] - 80042f8: f003 0301 and.w r3, r3, #1 - 80042fc: 2b00 cmp r3, #0 - 80042fe: d00c beq.n 800431a + 8004cee: 68bb ldr r3, [r7, #8] + 8004cf0: f003 0301 and.w r3, r3, #1 + 8004cf4: 2b00 cmp r3, #0 + 8004cf6: d00c beq.n 8004d12 { if ((itsource & (TIM_IT_UPDATE)) == (TIM_IT_UPDATE)) - 8004300: 68fb ldr r3, [r7, #12] - 8004302: f003 0301 and.w r3, r3, #1 - 8004306: 2b00 cmp r3, #0 - 8004308: d007 beq.n 800431a + 8004cf8: 68fb ldr r3, [r7, #12] + 8004cfa: f003 0301 and.w r3, r3, #1 + 8004cfe: 2b00 cmp r3, #0 + 8004d00: d007 beq.n 8004d12 { __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_UPDATE); - 800430a: 687b ldr r3, [r7, #4] - 800430c: 681b ldr r3, [r3, #0] - 800430e: f06f 0201 mvn.w r2, #1 - 8004312: 611a str r2, [r3, #16] + 8004d02: 687b ldr r3, [r7, #4] + 8004d04: 681b ldr r3, [r3, #0] + 8004d06: f06f 0201 mvn.w r2, #1 + 8004d0a: 611a str r2, [r3, #16] #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->PeriodElapsedCallback(htim); #else HAL_TIM_PeriodElapsedCallback(htim); - 8004314: 6878 ldr r0, [r7, #4] - 8004316: f000 f993 bl 8004640 + 8004d0c: 6878 ldr r0, [r7, #4] + 8004d0e: f000 f993 bl 8005038 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } } /* TIM Break input event */ if (((itflag & (TIM_FLAG_BREAK)) == (TIM_FLAG_BREAK)) || \ - 800431a: 68bb ldr r3, [r7, #8] - 800431c: f003 0380 and.w r3, r3, #128 @ 0x80 - 8004320: 2b00 cmp r3, #0 - 8004322: d104 bne.n 800432e + 8004d12: 68bb ldr r3, [r7, #8] + 8004d14: f003 0380 and.w r3, r3, #128 @ 0x80 + 8004d18: 2b00 cmp r3, #0 + 8004d1a: d104 bne.n 8004d26 ((itflag & (TIM_FLAG_SYSTEM_BREAK)) == (TIM_FLAG_SYSTEM_BREAK))) - 8004324: 68bb ldr r3, [r7, #8] - 8004326: f403 5300 and.w r3, r3, #8192 @ 0x2000 + 8004d1c: 68bb ldr r3, [r7, #8] + 8004d1e: f403 5300 and.w r3, r3, #8192 @ 0x2000 if (((itflag & (TIM_FLAG_BREAK)) == (TIM_FLAG_BREAK)) || \ - 800432a: 2b00 cmp r3, #0 - 800432c: d00c beq.n 8004348 + 8004d22: 2b00 cmp r3, #0 + 8004d24: d00c beq.n 8004d40 { if ((itsource & (TIM_IT_BREAK)) == (TIM_IT_BREAK)) - 800432e: 68fb ldr r3, [r7, #12] - 8004330: f003 0380 and.w r3, r3, #128 @ 0x80 - 8004334: 2b00 cmp r3, #0 - 8004336: d007 beq.n 8004348 + 8004d26: 68fb ldr r3, [r7, #12] + 8004d28: f003 0380 and.w r3, r3, #128 @ 0x80 + 8004d2c: 2b00 cmp r3, #0 + 8004d2e: d007 beq.n 8004d40 { __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_BREAK | TIM_FLAG_SYSTEM_BREAK); - 8004338: 687b ldr r3, [r7, #4] - 800433a: 681b ldr r3, [r3, #0] - 800433c: f46f 5202 mvn.w r2, #8320 @ 0x2080 - 8004340: 611a str r2, [r3, #16] + 8004d30: 687b ldr r3, [r7, #4] + 8004d32: 681b ldr r3, [r3, #0] + 8004d34: f46f 5202 mvn.w r2, #8320 @ 0x2080 + 8004d38: 611a str r2, [r3, #16] #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->BreakCallback(htim); #else HAL_TIMEx_BreakCallback(htim); - 8004342: 6878 ldr r0, [r7, #4] - 8004344: f000 fb72 bl 8004a2c + 8004d3a: 6878 ldr r0, [r7, #4] + 8004d3c: f000 fb72 bl 8005424 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } } /* TIM Break2 input event */ if ((itflag & (TIM_FLAG_BREAK2)) == (TIM_FLAG_BREAK2)) - 8004348: 68bb ldr r3, [r7, #8] - 800434a: f403 7380 and.w r3, r3, #256 @ 0x100 - 800434e: 2b00 cmp r3, #0 - 8004350: d00c beq.n 800436c + 8004d40: 68bb ldr r3, [r7, #8] + 8004d42: f403 7380 and.w r3, r3, #256 @ 0x100 + 8004d46: 2b00 cmp r3, #0 + 8004d48: d00c beq.n 8004d64 { if ((itsource & (TIM_IT_BREAK)) == (TIM_IT_BREAK)) - 8004352: 68fb ldr r3, [r7, #12] - 8004354: f003 0380 and.w r3, r3, #128 @ 0x80 - 8004358: 2b00 cmp r3, #0 - 800435a: d007 beq.n 800436c + 8004d4a: 68fb ldr r3, [r7, #12] + 8004d4c: f003 0380 and.w r3, r3, #128 @ 0x80 + 8004d50: 2b00 cmp r3, #0 + 8004d52: d007 beq.n 8004d64 { __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_BREAK2); - 800435c: 687b ldr r3, [r7, #4] - 800435e: 681b ldr r3, [r3, #0] - 8004360: f46f 7280 mvn.w r2, #256 @ 0x100 - 8004364: 611a str r2, [r3, #16] + 8004d54: 687b ldr r3, [r7, #4] + 8004d56: 681b ldr r3, [r3, #0] + 8004d58: f46f 7280 mvn.w r2, #256 @ 0x100 + 8004d5c: 611a str r2, [r3, #16] #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->Break2Callback(htim); #else HAL_TIMEx_Break2Callback(htim); - 8004366: 6878 ldr r0, [r7, #4] - 8004368: f000 fb6a bl 8004a40 + 8004d5e: 6878 ldr r0, [r7, #4] + 8004d60: f000 fb6a bl 8005438 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } } /* TIM Trigger detection event */ if ((itflag & (TIM_FLAG_TRIGGER)) == (TIM_FLAG_TRIGGER)) - 800436c: 68bb ldr r3, [r7, #8] - 800436e: f003 0340 and.w r3, r3, #64 @ 0x40 - 8004372: 2b00 cmp r3, #0 - 8004374: d00c beq.n 8004390 + 8004d64: 68bb ldr r3, [r7, #8] + 8004d66: f003 0340 and.w r3, r3, #64 @ 0x40 + 8004d6a: 2b00 cmp r3, #0 + 8004d6c: d00c beq.n 8004d88 { if ((itsource & (TIM_IT_TRIGGER)) == (TIM_IT_TRIGGER)) - 8004376: 68fb ldr r3, [r7, #12] - 8004378: f003 0340 and.w r3, r3, #64 @ 0x40 - 800437c: 2b00 cmp r3, #0 - 800437e: d007 beq.n 8004390 + 8004d6e: 68fb ldr r3, [r7, #12] + 8004d70: f003 0340 and.w r3, r3, #64 @ 0x40 + 8004d74: 2b00 cmp r3, #0 + 8004d76: d007 beq.n 8004d88 { __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_TRIGGER); - 8004380: 687b ldr r3, [r7, #4] - 8004382: 681b ldr r3, [r3, #0] - 8004384: f06f 0240 mvn.w r2, #64 @ 0x40 - 8004388: 611a str r2, [r3, #16] + 8004d78: 687b ldr r3, [r7, #4] + 8004d7a: 681b ldr r3, [r3, #0] + 8004d7c: f06f 0240 mvn.w r2, #64 @ 0x40 + 8004d80: 611a str r2, [r3, #16] #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->TriggerCallback(htim); #else HAL_TIM_TriggerCallback(htim); - 800438a: 6878 ldr r0, [r7, #4] - 800438c: f000 f980 bl 8004690 + 8004d82: 6878 ldr r0, [r7, #4] + 8004d84: f000 f980 bl 8005088 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } } /* TIM commutation event */ if ((itflag & (TIM_FLAG_COM)) == (TIM_FLAG_COM)) - 8004390: 68bb ldr r3, [r7, #8] - 8004392: f003 0320 and.w r3, r3, #32 - 8004396: 2b00 cmp r3, #0 - 8004398: d00c beq.n 80043b4 + 8004d88: 68bb ldr r3, [r7, #8] + 8004d8a: f003 0320 and.w r3, r3, #32 + 8004d8e: 2b00 cmp r3, #0 + 8004d90: d00c beq.n 8004dac { if ((itsource & (TIM_IT_COM)) == (TIM_IT_COM)) - 800439a: 68fb ldr r3, [r7, #12] - 800439c: f003 0320 and.w r3, r3, #32 - 80043a0: 2b00 cmp r3, #0 - 80043a2: d007 beq.n 80043b4 + 8004d92: 68fb ldr r3, [r7, #12] + 8004d94: f003 0320 and.w r3, r3, #32 + 8004d98: 2b00 cmp r3, #0 + 8004d9a: d007 beq.n 8004dac { __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_COM); - 80043a4: 687b ldr r3, [r7, #4] - 80043a6: 681b ldr r3, [r3, #0] - 80043a8: f06f 0220 mvn.w r2, #32 - 80043ac: 611a str r2, [r3, #16] + 8004d9c: 687b ldr r3, [r7, #4] + 8004d9e: 681b ldr r3, [r3, #0] + 8004da0: f06f 0220 mvn.w r2, #32 + 8004da4: 611a str r2, [r3, #16] #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->CommutationCallback(htim); #else HAL_TIMEx_CommutCallback(htim); - 80043ae: 6878 ldr r0, [r7, #4] - 80043b0: f000 fb32 bl 8004a18 + 8004da6: 6878 ldr r0, [r7, #4] + 8004da8: f000 fb32 bl 8005410 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } } /* TIM Encoder index event */ if ((itflag & (TIM_FLAG_IDX)) == (TIM_FLAG_IDX)) - 80043b4: 68bb ldr r3, [r7, #8] - 80043b6: f403 1380 and.w r3, r3, #1048576 @ 0x100000 - 80043ba: 2b00 cmp r3, #0 - 80043bc: d00c beq.n 80043d8 + 8004dac: 68bb ldr r3, [r7, #8] + 8004dae: f403 1380 and.w r3, r3, #1048576 @ 0x100000 + 8004db2: 2b00 cmp r3, #0 + 8004db4: d00c beq.n 8004dd0 { if ((itsource & (TIM_IT_IDX)) == (TIM_IT_IDX)) - 80043be: 68fb ldr r3, [r7, #12] - 80043c0: f403 1380 and.w r3, r3, #1048576 @ 0x100000 - 80043c4: 2b00 cmp r3, #0 - 80043c6: d007 beq.n 80043d8 + 8004db6: 68fb ldr r3, [r7, #12] + 8004db8: f403 1380 and.w r3, r3, #1048576 @ 0x100000 + 8004dbc: 2b00 cmp r3, #0 + 8004dbe: d007 beq.n 8004dd0 { __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_IDX); - 80043c8: 687b ldr r3, [r7, #4] - 80043ca: 681b ldr r3, [r3, #0] - 80043cc: f46f 1280 mvn.w r2, #1048576 @ 0x100000 - 80043d0: 611a str r2, [r3, #16] + 8004dc0: 687b ldr r3, [r7, #4] + 8004dc2: 681b ldr r3, [r3, #0] + 8004dc4: f46f 1280 mvn.w r2, #1048576 @ 0x100000 + 8004dc8: 611a str r2, [r3, #16] #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->EncoderIndexCallback(htim); #else HAL_TIMEx_EncoderIndexCallback(htim); - 80043d2: 6878 ldr r0, [r7, #4] - 80043d4: f000 fb3e bl 8004a54 + 8004dca: 6878 ldr r0, [r7, #4] + 8004dcc: f000 fb3e bl 800544c #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } } /* TIM Direction change event */ if ((itflag & (TIM_FLAG_DIR)) == (TIM_FLAG_DIR)) - 80043d8: 68bb ldr r3, [r7, #8] - 80043da: f403 1300 and.w r3, r3, #2097152 @ 0x200000 - 80043de: 2b00 cmp r3, #0 - 80043e0: d00c beq.n 80043fc + 8004dd0: 68bb ldr r3, [r7, #8] + 8004dd2: f403 1300 and.w r3, r3, #2097152 @ 0x200000 + 8004dd6: 2b00 cmp r3, #0 + 8004dd8: d00c beq.n 8004df4 { if ((itsource & (TIM_IT_DIR)) == (TIM_IT_DIR)) - 80043e2: 68fb ldr r3, [r7, #12] - 80043e4: f403 1300 and.w r3, r3, #2097152 @ 0x200000 - 80043e8: 2b00 cmp r3, #0 - 80043ea: d007 beq.n 80043fc + 8004dda: 68fb ldr r3, [r7, #12] + 8004ddc: f403 1300 and.w r3, r3, #2097152 @ 0x200000 + 8004de0: 2b00 cmp r3, #0 + 8004de2: d007 beq.n 8004df4 { __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_DIR); - 80043ec: 687b ldr r3, [r7, #4] - 80043ee: 681b ldr r3, [r3, #0] - 80043f0: f46f 1200 mvn.w r2, #2097152 @ 0x200000 - 80043f4: 611a str r2, [r3, #16] + 8004de4: 687b ldr r3, [r7, #4] + 8004de6: 681b ldr r3, [r3, #0] + 8004de8: f46f 1200 mvn.w r2, #2097152 @ 0x200000 + 8004dec: 611a str r2, [r3, #16] #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->DirectionChangeCallback(htim); #else HAL_TIMEx_DirectionChangeCallback(htim); - 80043f6: 6878 ldr r0, [r7, #4] - 80043f8: f000 fb36 bl 8004a68 + 8004dee: 6878 ldr r0, [r7, #4] + 8004df0: f000 fb36 bl 8005460 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } } /* TIM Index error event */ if ((itflag & (TIM_FLAG_IERR)) == (TIM_FLAG_IERR)) - 80043fc: 68bb ldr r3, [r7, #8] - 80043fe: f403 0380 and.w r3, r3, #4194304 @ 0x400000 - 8004402: 2b00 cmp r3, #0 - 8004404: d00c beq.n 8004420 + 8004df4: 68bb ldr r3, [r7, #8] + 8004df6: f403 0380 and.w r3, r3, #4194304 @ 0x400000 + 8004dfa: 2b00 cmp r3, #0 + 8004dfc: d00c beq.n 8004e18 { if ((itsource & (TIM_IT_IERR)) == (TIM_IT_IERR)) - 8004406: 68fb ldr r3, [r7, #12] - 8004408: f403 0380 and.w r3, r3, #4194304 @ 0x400000 - 800440c: 2b00 cmp r3, #0 - 800440e: d007 beq.n 8004420 + 8004dfe: 68fb ldr r3, [r7, #12] + 8004e00: f403 0380 and.w r3, r3, #4194304 @ 0x400000 + 8004e04: 2b00 cmp r3, #0 + 8004e06: d007 beq.n 8004e18 { __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_IERR); - 8004410: 687b ldr r3, [r7, #4] - 8004412: 681b ldr r3, [r3, #0] - 8004414: f46f 0280 mvn.w r2, #4194304 @ 0x400000 - 8004418: 611a str r2, [r3, #16] + 8004e08: 687b ldr r3, [r7, #4] + 8004e0a: 681b ldr r3, [r3, #0] + 8004e0c: f46f 0280 mvn.w r2, #4194304 @ 0x400000 + 8004e10: 611a str r2, [r3, #16] #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->IndexErrorCallback(htim); #else HAL_TIMEx_IndexErrorCallback(htim); - 800441a: 6878 ldr r0, [r7, #4] - 800441c: f000 fb2e bl 8004a7c + 8004e12: 6878 ldr r0, [r7, #4] + 8004e14: f000 fb2e bl 8005474 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } } /* TIM Transition error event */ if ((itflag & (TIM_FLAG_TERR)) == (TIM_FLAG_TERR)) - 8004420: 68bb ldr r3, [r7, #8] - 8004422: f403 0300 and.w r3, r3, #8388608 @ 0x800000 - 8004426: 2b00 cmp r3, #0 - 8004428: d00c beq.n 8004444 + 8004e18: 68bb ldr r3, [r7, #8] + 8004e1a: f403 0300 and.w r3, r3, #8388608 @ 0x800000 + 8004e1e: 2b00 cmp r3, #0 + 8004e20: d00c beq.n 8004e3c { if ((itsource & (TIM_IT_TERR)) == (TIM_IT_TERR)) - 800442a: 68fb ldr r3, [r7, #12] - 800442c: f403 0300 and.w r3, r3, #8388608 @ 0x800000 - 8004430: 2b00 cmp r3, #0 - 8004432: d007 beq.n 8004444 + 8004e22: 68fb ldr r3, [r7, #12] + 8004e24: f403 0300 and.w r3, r3, #8388608 @ 0x800000 + 8004e28: 2b00 cmp r3, #0 + 8004e2a: d007 beq.n 8004e3c { __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_TERR); - 8004434: 687b ldr r3, [r7, #4] - 8004436: 681b ldr r3, [r3, #0] - 8004438: f46f 0200 mvn.w r2, #8388608 @ 0x800000 - 800443c: 611a str r2, [r3, #16] + 8004e2c: 687b ldr r3, [r7, #4] + 8004e2e: 681b ldr r3, [r3, #0] + 8004e30: f46f 0200 mvn.w r2, #8388608 @ 0x800000 + 8004e34: 611a str r2, [r3, #16] #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->TransitionErrorCallback(htim); #else HAL_TIMEx_TransitionErrorCallback(htim); - 800443e: 6878 ldr r0, [r7, #4] - 8004440: f000 fb26 bl 8004a90 + 8004e36: 6878 ldr r0, [r7, #4] + 8004e38: f000 fb26 bl 8005488 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } } } - 8004444: bf00 nop - 8004446: 3710 adds r7, #16 - 8004448: 46bd mov sp, r7 - 800444a: bd80 pop {r7, pc} + 8004e3c: bf00 nop + 8004e3e: 3710 adds r7, #16 + 8004e40: 46bd mov sp, r7 + 8004e42: bd80 pop {r7, pc} -0800444c : +08004e44 : * @param sClockSourceConfig pointer to a TIM_ClockConfigTypeDef structure that * contains the clock source information for the TIM peripheral. * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_ConfigClockSource(TIM_HandleTypeDef *htim, const TIM_ClockConfigTypeDef *sClockSourceConfig) { - 800444c: b580 push {r7, lr} - 800444e: b084 sub sp, #16 - 8004450: af00 add r7, sp, #0 - 8004452: 6078 str r0, [r7, #4] - 8004454: 6039 str r1, [r7, #0] + 8004e44: b580 push {r7, lr} + 8004e46: b084 sub sp, #16 + 8004e48: af00 add r7, sp, #0 + 8004e4a: 6078 str r0, [r7, #4] + 8004e4c: 6039 str r1, [r7, #0] HAL_StatusTypeDef status = HAL_OK; - 8004456: 2300 movs r3, #0 - 8004458: 73fb strb r3, [r7, #15] + 8004e4e: 2300 movs r3, #0 + 8004e50: 73fb strb r3, [r7, #15] uint32_t tmpsmcr; /* Process Locked */ __HAL_LOCK(htim); - 800445a: 687b ldr r3, [r7, #4] - 800445c: f893 303c ldrb.w r3, [r3, #60] @ 0x3c - 8004460: 2b01 cmp r3, #1 - 8004462: d101 bne.n 8004468 - 8004464: 2302 movs r3, #2 - 8004466: e0de b.n 8004626 - 8004468: 687b ldr r3, [r7, #4] - 800446a: 2201 movs r2, #1 - 800446c: f883 203c strb.w r2, [r3, #60] @ 0x3c + 8004e52: 687b ldr r3, [r7, #4] + 8004e54: f893 303c ldrb.w r3, [r3, #60] @ 0x3c + 8004e58: 2b01 cmp r3, #1 + 8004e5a: d101 bne.n 8004e60 + 8004e5c: 2302 movs r3, #2 + 8004e5e: e0de b.n 800501e + 8004e60: 687b ldr r3, [r7, #4] + 8004e62: 2201 movs r2, #1 + 8004e64: f883 203c strb.w r2, [r3, #60] @ 0x3c htim->State = HAL_TIM_STATE_BUSY; - 8004470: 687b ldr r3, [r7, #4] - 8004472: 2202 movs r2, #2 - 8004474: f883 203d strb.w r2, [r3, #61] @ 0x3d + 8004e68: 687b ldr r3, [r7, #4] + 8004e6a: 2202 movs r2, #2 + 8004e6c: f883 203d strb.w r2, [r3, #61] @ 0x3d /* Check the parameters */ assert_param(IS_TIM_CLOCKSOURCE(sClockSourceConfig->ClockSource)); /* Reset the SMS, TS, ECE, ETPS and ETRF bits */ tmpsmcr = htim->Instance->SMCR; - 8004478: 687b ldr r3, [r7, #4] - 800447a: 681b ldr r3, [r3, #0] - 800447c: 689b ldr r3, [r3, #8] - 800447e: 60bb str r3, [r7, #8] + 8004e70: 687b ldr r3, [r7, #4] + 8004e72: 681b ldr r3, [r3, #0] + 8004e74: 689b ldr r3, [r3, #8] + 8004e76: 60bb str r3, [r7, #8] tmpsmcr &= ~(TIM_SMCR_SMS | TIM_SMCR_TS); - 8004480: 68bb ldr r3, [r7, #8] - 8004482: f423 1344 bic.w r3, r3, #3211264 @ 0x310000 - 8004486: f023 0377 bic.w r3, r3, #119 @ 0x77 - 800448a: 60bb str r3, [r7, #8] + 8004e78: 68bb ldr r3, [r7, #8] + 8004e7a: f423 1344 bic.w r3, r3, #3211264 @ 0x310000 + 8004e7e: f023 0377 bic.w r3, r3, #119 @ 0x77 + 8004e82: 60bb str r3, [r7, #8] tmpsmcr &= ~(TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP); - 800448c: 68bb ldr r3, [r7, #8] - 800448e: f423 437f bic.w r3, r3, #65280 @ 0xff00 - 8004492: 60bb str r3, [r7, #8] + 8004e84: 68bb ldr r3, [r7, #8] + 8004e86: f423 437f bic.w r3, r3, #65280 @ 0xff00 + 8004e8a: 60bb str r3, [r7, #8] htim->Instance->SMCR = tmpsmcr; - 8004494: 687b ldr r3, [r7, #4] - 8004496: 681b ldr r3, [r3, #0] - 8004498: 68ba ldr r2, [r7, #8] - 800449a: 609a str r2, [r3, #8] + 8004e8c: 687b ldr r3, [r7, #4] + 8004e8e: 681b ldr r3, [r3, #0] + 8004e90: 68ba ldr r2, [r7, #8] + 8004e92: 609a str r2, [r3, #8] switch (sClockSourceConfig->ClockSource) - 800449c: 683b ldr r3, [r7, #0] - 800449e: 681b ldr r3, [r3, #0] - 80044a0: 4a63 ldr r2, [pc, #396] @ (8004630 ) - 80044a2: 4293 cmp r3, r2 - 80044a4: f000 80a9 beq.w 80045fa - 80044a8: 4a61 ldr r2, [pc, #388] @ (8004630 ) - 80044aa: 4293 cmp r3, r2 - 80044ac: f200 80ae bhi.w 800460c - 80044b0: 4a60 ldr r2, [pc, #384] @ (8004634 ) - 80044b2: 4293 cmp r3, r2 - 80044b4: f000 80a1 beq.w 80045fa - 80044b8: 4a5e ldr r2, [pc, #376] @ (8004634 ) - 80044ba: 4293 cmp r3, r2 - 80044bc: f200 80a6 bhi.w 800460c - 80044c0: 4a5d ldr r2, [pc, #372] @ (8004638 ) - 80044c2: 4293 cmp r3, r2 - 80044c4: f000 8099 beq.w 80045fa - 80044c8: 4a5b ldr r2, [pc, #364] @ (8004638 ) - 80044ca: 4293 cmp r3, r2 - 80044cc: f200 809e bhi.w 800460c - 80044d0: 4a5a ldr r2, [pc, #360] @ (800463c ) - 80044d2: 4293 cmp r3, r2 - 80044d4: f000 8091 beq.w 80045fa - 80044d8: 4a58 ldr r2, [pc, #352] @ (800463c ) - 80044da: 4293 cmp r3, r2 - 80044dc: f200 8096 bhi.w 800460c - 80044e0: f1b3 1f10 cmp.w r3, #1048592 @ 0x100010 - 80044e4: f000 8089 beq.w 80045fa - 80044e8: f1b3 1f10 cmp.w r3, #1048592 @ 0x100010 - 80044ec: f200 808e bhi.w 800460c - 80044f0: f5b3 5f00 cmp.w r3, #8192 @ 0x2000 - 80044f4: d03e beq.n 8004574 - 80044f6: f5b3 5f00 cmp.w r3, #8192 @ 0x2000 - 80044fa: f200 8087 bhi.w 800460c - 80044fe: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 - 8004502: f000 8086 beq.w 8004612 - 8004506: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 - 800450a: d87f bhi.n 800460c - 800450c: 2b70 cmp r3, #112 @ 0x70 - 800450e: d01a beq.n 8004546 - 8004510: 2b70 cmp r3, #112 @ 0x70 - 8004512: d87b bhi.n 800460c - 8004514: 2b60 cmp r3, #96 @ 0x60 - 8004516: d050 beq.n 80045ba - 8004518: 2b60 cmp r3, #96 @ 0x60 - 800451a: d877 bhi.n 800460c - 800451c: 2b50 cmp r3, #80 @ 0x50 - 800451e: d03c beq.n 800459a - 8004520: 2b50 cmp r3, #80 @ 0x50 - 8004522: d873 bhi.n 800460c - 8004524: 2b40 cmp r3, #64 @ 0x40 - 8004526: d058 beq.n 80045da - 8004528: 2b40 cmp r3, #64 @ 0x40 - 800452a: d86f bhi.n 800460c - 800452c: 2b30 cmp r3, #48 @ 0x30 - 800452e: d064 beq.n 80045fa - 8004530: 2b30 cmp r3, #48 @ 0x30 - 8004532: d86b bhi.n 800460c - 8004534: 2b20 cmp r3, #32 - 8004536: d060 beq.n 80045fa - 8004538: 2b20 cmp r3, #32 - 800453a: d867 bhi.n 800460c - 800453c: 2b00 cmp r3, #0 - 800453e: d05c beq.n 80045fa - 8004540: 2b10 cmp r3, #16 - 8004542: d05a beq.n 80045fa - 8004544: e062 b.n 800460c + 8004e94: 683b ldr r3, [r7, #0] + 8004e96: 681b ldr r3, [r3, #0] + 8004e98: 4a63 ldr r2, [pc, #396] @ (8005028 ) + 8004e9a: 4293 cmp r3, r2 + 8004e9c: f000 80a9 beq.w 8004ff2 + 8004ea0: 4a61 ldr r2, [pc, #388] @ (8005028 ) + 8004ea2: 4293 cmp r3, r2 + 8004ea4: f200 80ae bhi.w 8005004 + 8004ea8: 4a60 ldr r2, [pc, #384] @ (800502c ) + 8004eaa: 4293 cmp r3, r2 + 8004eac: f000 80a1 beq.w 8004ff2 + 8004eb0: 4a5e ldr r2, [pc, #376] @ (800502c ) + 8004eb2: 4293 cmp r3, r2 + 8004eb4: f200 80a6 bhi.w 8005004 + 8004eb8: 4a5d ldr r2, [pc, #372] @ (8005030 ) + 8004eba: 4293 cmp r3, r2 + 8004ebc: f000 8099 beq.w 8004ff2 + 8004ec0: 4a5b ldr r2, [pc, #364] @ (8005030 ) + 8004ec2: 4293 cmp r3, r2 + 8004ec4: f200 809e bhi.w 8005004 + 8004ec8: 4a5a ldr r2, [pc, #360] @ (8005034 ) + 8004eca: 4293 cmp r3, r2 + 8004ecc: f000 8091 beq.w 8004ff2 + 8004ed0: 4a58 ldr r2, [pc, #352] @ (8005034 ) + 8004ed2: 4293 cmp r3, r2 + 8004ed4: f200 8096 bhi.w 8005004 + 8004ed8: f1b3 1f10 cmp.w r3, #1048592 @ 0x100010 + 8004edc: f000 8089 beq.w 8004ff2 + 8004ee0: f1b3 1f10 cmp.w r3, #1048592 @ 0x100010 + 8004ee4: f200 808e bhi.w 8005004 + 8004ee8: f5b3 5f00 cmp.w r3, #8192 @ 0x2000 + 8004eec: d03e beq.n 8004f6c + 8004eee: f5b3 5f00 cmp.w r3, #8192 @ 0x2000 + 8004ef2: f200 8087 bhi.w 8005004 + 8004ef6: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 + 8004efa: f000 8086 beq.w 800500a + 8004efe: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 + 8004f02: d87f bhi.n 8005004 + 8004f04: 2b70 cmp r3, #112 @ 0x70 + 8004f06: d01a beq.n 8004f3e + 8004f08: 2b70 cmp r3, #112 @ 0x70 + 8004f0a: d87b bhi.n 8005004 + 8004f0c: 2b60 cmp r3, #96 @ 0x60 + 8004f0e: d050 beq.n 8004fb2 + 8004f10: 2b60 cmp r3, #96 @ 0x60 + 8004f12: d877 bhi.n 8005004 + 8004f14: 2b50 cmp r3, #80 @ 0x50 + 8004f16: d03c beq.n 8004f92 + 8004f18: 2b50 cmp r3, #80 @ 0x50 + 8004f1a: d873 bhi.n 8005004 + 8004f1c: 2b40 cmp r3, #64 @ 0x40 + 8004f1e: d058 beq.n 8004fd2 + 8004f20: 2b40 cmp r3, #64 @ 0x40 + 8004f22: d86f bhi.n 8005004 + 8004f24: 2b30 cmp r3, #48 @ 0x30 + 8004f26: d064 beq.n 8004ff2 + 8004f28: 2b30 cmp r3, #48 @ 0x30 + 8004f2a: d86b bhi.n 8005004 + 8004f2c: 2b20 cmp r3, #32 + 8004f2e: d060 beq.n 8004ff2 + 8004f30: 2b20 cmp r3, #32 + 8004f32: d867 bhi.n 8005004 + 8004f34: 2b00 cmp r3, #0 + 8004f36: d05c beq.n 8004ff2 + 8004f38: 2b10 cmp r3, #16 + 8004f3a: d05a beq.n 8004ff2 + 8004f3c: e062 b.n 8005004 assert_param(IS_TIM_CLOCKPRESCALER(sClockSourceConfig->ClockPrescaler)); assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity)); assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter)); /* Configure the ETR Clock source */ TIM_ETR_SetConfig(htim->Instance, - 8004546: 687b ldr r3, [r7, #4] - 8004548: 6818 ldr r0, [r3, #0] + 8004f3e: 687b ldr r3, [r7, #4] + 8004f40: 6818 ldr r0, [r3, #0] sClockSourceConfig->ClockPrescaler, - 800454a: 683b ldr r3, [r7, #0] - 800454c: 6899 ldr r1, [r3, #8] + 8004f42: 683b ldr r3, [r7, #0] + 8004f44: 6899 ldr r1, [r3, #8] sClockSourceConfig->ClockPolarity, - 800454e: 683b ldr r3, [r7, #0] - 8004550: 685a ldr r2, [r3, #4] + 8004f46: 683b ldr r3, [r7, #0] + 8004f48: 685a ldr r2, [r3, #4] sClockSourceConfig->ClockFilter); - 8004552: 683b ldr r3, [r7, #0] - 8004554: 68db ldr r3, [r3, #12] + 8004f4a: 683b ldr r3, [r7, #0] + 8004f4c: 68db ldr r3, [r3, #12] TIM_ETR_SetConfig(htim->Instance, - 8004556: f000 f9bd bl 80048d4 + 8004f4e: f000 f9bd bl 80052cc /* Select the External clock mode1 and the ETRF trigger */ tmpsmcr = htim->Instance->SMCR; - 800455a: 687b ldr r3, [r7, #4] - 800455c: 681b ldr r3, [r3, #0] - 800455e: 689b ldr r3, [r3, #8] - 8004560: 60bb str r3, [r7, #8] + 8004f52: 687b ldr r3, [r7, #4] + 8004f54: 681b ldr r3, [r3, #0] + 8004f56: 689b ldr r3, [r3, #8] + 8004f58: 60bb str r3, [r7, #8] tmpsmcr |= (TIM_SLAVEMODE_EXTERNAL1 | TIM_CLOCKSOURCE_ETRMODE1); - 8004562: 68bb ldr r3, [r7, #8] - 8004564: f043 0377 orr.w r3, r3, #119 @ 0x77 - 8004568: 60bb str r3, [r7, #8] + 8004f5a: 68bb ldr r3, [r7, #8] + 8004f5c: f043 0377 orr.w r3, r3, #119 @ 0x77 + 8004f60: 60bb str r3, [r7, #8] /* Write to TIMx SMCR */ htim->Instance->SMCR = tmpsmcr; - 800456a: 687b ldr r3, [r7, #4] - 800456c: 681b ldr r3, [r3, #0] - 800456e: 68ba ldr r2, [r7, #8] - 8004570: 609a str r2, [r3, #8] + 8004f62: 687b ldr r3, [r7, #4] + 8004f64: 681b ldr r3, [r3, #0] + 8004f66: 68ba ldr r2, [r7, #8] + 8004f68: 609a str r2, [r3, #8] break; - 8004572: e04f b.n 8004614 + 8004f6a: e04f b.n 800500c assert_param(IS_TIM_CLOCKPRESCALER(sClockSourceConfig->ClockPrescaler)); assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity)); assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter)); /* Configure the ETR Clock source */ TIM_ETR_SetConfig(htim->Instance, - 8004574: 687b ldr r3, [r7, #4] - 8004576: 6818 ldr r0, [r3, #0] + 8004f6c: 687b ldr r3, [r7, #4] + 8004f6e: 6818 ldr r0, [r3, #0] sClockSourceConfig->ClockPrescaler, - 8004578: 683b ldr r3, [r7, #0] - 800457a: 6899 ldr r1, [r3, #8] + 8004f70: 683b ldr r3, [r7, #0] + 8004f72: 6899 ldr r1, [r3, #8] sClockSourceConfig->ClockPolarity, - 800457c: 683b ldr r3, [r7, #0] - 800457e: 685a ldr r2, [r3, #4] + 8004f74: 683b ldr r3, [r7, #0] + 8004f76: 685a ldr r2, [r3, #4] sClockSourceConfig->ClockFilter); - 8004580: 683b ldr r3, [r7, #0] - 8004582: 68db ldr r3, [r3, #12] + 8004f78: 683b ldr r3, [r7, #0] + 8004f7a: 68db ldr r3, [r3, #12] TIM_ETR_SetConfig(htim->Instance, - 8004584: f000 f9a6 bl 80048d4 + 8004f7c: f000 f9a6 bl 80052cc /* Enable the External clock mode2 */ htim->Instance->SMCR |= TIM_SMCR_ECE; - 8004588: 687b ldr r3, [r7, #4] - 800458a: 681b ldr r3, [r3, #0] - 800458c: 689a ldr r2, [r3, #8] - 800458e: 687b ldr r3, [r7, #4] - 8004590: 681b ldr r3, [r3, #0] - 8004592: f442 4280 orr.w r2, r2, #16384 @ 0x4000 - 8004596: 609a str r2, [r3, #8] + 8004f80: 687b ldr r3, [r7, #4] + 8004f82: 681b ldr r3, [r3, #0] + 8004f84: 689a ldr r2, [r3, #8] + 8004f86: 687b ldr r3, [r7, #4] + 8004f88: 681b ldr r3, [r3, #0] + 8004f8a: f442 4280 orr.w r2, r2, #16384 @ 0x4000 + 8004f8e: 609a str r2, [r3, #8] break; - 8004598: e03c b.n 8004614 + 8004f90: e03c b.n 800500c /* Check TI1 input conditioning related parameters */ assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity)); assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter)); TIM_TI1_ConfigInputStage(htim->Instance, - 800459a: 687b ldr r3, [r7, #4] - 800459c: 6818 ldr r0, [r3, #0] + 8004f92: 687b ldr r3, [r7, #4] + 8004f94: 6818 ldr r0, [r3, #0] sClockSourceConfig->ClockPolarity, - 800459e: 683b ldr r3, [r7, #0] - 80045a0: 6859 ldr r1, [r3, #4] + 8004f96: 683b ldr r3, [r7, #0] + 8004f98: 6859 ldr r1, [r3, #4] sClockSourceConfig->ClockFilter); - 80045a2: 683b ldr r3, [r7, #0] - 80045a4: 68db ldr r3, [r3, #12] + 8004f9a: 683b ldr r3, [r7, #0] + 8004f9c: 68db ldr r3, [r3, #12] TIM_TI1_ConfigInputStage(htim->Instance, - 80045a6: 461a mov r2, r3 - 80045a8: f000 f918 bl 80047dc + 8004f9e: 461a mov r2, r3 + 8004fa0: f000 f918 bl 80051d4 TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI1); - 80045ac: 687b ldr r3, [r7, #4] - 80045ae: 681b ldr r3, [r3, #0] - 80045b0: 2150 movs r1, #80 @ 0x50 - 80045b2: 4618 mov r0, r3 - 80045b4: f000 f971 bl 800489a + 8004fa4: 687b ldr r3, [r7, #4] + 8004fa6: 681b ldr r3, [r3, #0] + 8004fa8: 2150 movs r1, #80 @ 0x50 + 8004faa: 4618 mov r0, r3 + 8004fac: f000 f971 bl 8005292 break; - 80045b8: e02c b.n 8004614 + 8004fb0: e02c b.n 800500c /* Check TI2 input conditioning related parameters */ assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity)); assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter)); TIM_TI2_ConfigInputStage(htim->Instance, - 80045ba: 687b ldr r3, [r7, #4] - 80045bc: 6818 ldr r0, [r3, #0] + 8004fb2: 687b ldr r3, [r7, #4] + 8004fb4: 6818 ldr r0, [r3, #0] sClockSourceConfig->ClockPolarity, - 80045be: 683b ldr r3, [r7, #0] - 80045c0: 6859 ldr r1, [r3, #4] + 8004fb6: 683b ldr r3, [r7, #0] + 8004fb8: 6859 ldr r1, [r3, #4] sClockSourceConfig->ClockFilter); - 80045c2: 683b ldr r3, [r7, #0] - 80045c4: 68db ldr r3, [r3, #12] + 8004fba: 683b ldr r3, [r7, #0] + 8004fbc: 68db ldr r3, [r3, #12] TIM_TI2_ConfigInputStage(htim->Instance, - 80045c6: 461a mov r2, r3 - 80045c8: f000 f937 bl 800483a + 8004fbe: 461a mov r2, r3 + 8004fc0: f000 f937 bl 8005232 TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI2); - 80045cc: 687b ldr r3, [r7, #4] - 80045ce: 681b ldr r3, [r3, #0] - 80045d0: 2160 movs r1, #96 @ 0x60 - 80045d2: 4618 mov r0, r3 - 80045d4: f000 f961 bl 800489a + 8004fc4: 687b ldr r3, [r7, #4] + 8004fc6: 681b ldr r3, [r3, #0] + 8004fc8: 2160 movs r1, #96 @ 0x60 + 8004fca: 4618 mov r0, r3 + 8004fcc: f000 f961 bl 8005292 break; - 80045d8: e01c b.n 8004614 + 8004fd0: e01c b.n 800500c /* Check TI1 input conditioning related parameters */ assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity)); assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter)); TIM_TI1_ConfigInputStage(htim->Instance, - 80045da: 687b ldr r3, [r7, #4] - 80045dc: 6818 ldr r0, [r3, #0] + 8004fd2: 687b ldr r3, [r7, #4] + 8004fd4: 6818 ldr r0, [r3, #0] sClockSourceConfig->ClockPolarity, - 80045de: 683b ldr r3, [r7, #0] - 80045e0: 6859 ldr r1, [r3, #4] + 8004fd6: 683b ldr r3, [r7, #0] + 8004fd8: 6859 ldr r1, [r3, #4] sClockSourceConfig->ClockFilter); - 80045e2: 683b ldr r3, [r7, #0] - 80045e4: 68db ldr r3, [r3, #12] + 8004fda: 683b ldr r3, [r7, #0] + 8004fdc: 68db ldr r3, [r3, #12] TIM_TI1_ConfigInputStage(htim->Instance, - 80045e6: 461a mov r2, r3 - 80045e8: f000 f8f8 bl 80047dc + 8004fde: 461a mov r2, r3 + 8004fe0: f000 f8f8 bl 80051d4 TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI1ED); - 80045ec: 687b ldr r3, [r7, #4] - 80045ee: 681b ldr r3, [r3, #0] - 80045f0: 2140 movs r1, #64 @ 0x40 - 80045f2: 4618 mov r0, r3 - 80045f4: f000 f951 bl 800489a + 8004fe4: 687b ldr r3, [r7, #4] + 8004fe6: 681b ldr r3, [r3, #0] + 8004fe8: 2140 movs r1, #64 @ 0x40 + 8004fea: 4618 mov r0, r3 + 8004fec: f000 f951 bl 8005292 break; - 80045f8: e00c b.n 8004614 + 8004ff0: e00c b.n 800500c case TIM_CLOCKSOURCE_ITR11: { /* Check whether or not the timer instance supports internal trigger input */ assert_param(IS_TIM_CLOCKSOURCE_INSTANCE((htim->Instance), sClockSourceConfig->ClockSource)); TIM_ITRx_SetConfig(htim->Instance, sClockSourceConfig->ClockSource); - 80045fa: 687b ldr r3, [r7, #4] - 80045fc: 681a ldr r2, [r3, #0] - 80045fe: 683b ldr r3, [r7, #0] - 8004600: 681b ldr r3, [r3, #0] - 8004602: 4619 mov r1, r3 - 8004604: 4610 mov r0, r2 - 8004606: f000 f948 bl 800489a + 8004ff2: 687b ldr r3, [r7, #4] + 8004ff4: 681a ldr r2, [r3, #0] + 8004ff6: 683b ldr r3, [r7, #0] + 8004ff8: 681b ldr r3, [r3, #0] + 8004ffa: 4619 mov r1, r3 + 8004ffc: 4610 mov r0, r2 + 8004ffe: f000 f948 bl 8005292 break; - 800460a: e003 b.n 8004614 + 8005002: e003 b.n 800500c } default: status = HAL_ERROR; - 800460c: 2301 movs r3, #1 - 800460e: 73fb strb r3, [r7, #15] + 8005004: 2301 movs r3, #1 + 8005006: 73fb strb r3, [r7, #15] break; - 8004610: e000 b.n 8004614 + 8005008: e000 b.n 800500c break; - 8004612: bf00 nop + 800500a: bf00 nop } htim->State = HAL_TIM_STATE_READY; - 8004614: 687b ldr r3, [r7, #4] - 8004616: 2201 movs r2, #1 - 8004618: f883 203d strb.w r2, [r3, #61] @ 0x3d + 800500c: 687b ldr r3, [r7, #4] + 800500e: 2201 movs r2, #1 + 8005010: f883 203d strb.w r2, [r3, #61] @ 0x3d __HAL_UNLOCK(htim); - 800461c: 687b ldr r3, [r7, #4] - 800461e: 2200 movs r2, #0 - 8004620: f883 203c strb.w r2, [r3, #60] @ 0x3c + 8005014: 687b ldr r3, [r7, #4] + 8005016: 2200 movs r2, #0 + 8005018: f883 203c strb.w r2, [r3, #60] @ 0x3c return status; - 8004624: 7bfb ldrb r3, [r7, #15] + 800501c: 7bfb ldrb r3, [r7, #15] } - 8004626: 4618 mov r0, r3 - 8004628: 3710 adds r7, #16 - 800462a: 46bd mov sp, r7 - 800462c: bd80 pop {r7, pc} - 800462e: bf00 nop - 8004630: 00100070 .word 0x00100070 - 8004634: 00100040 .word 0x00100040 - 8004638: 00100030 .word 0x00100030 - 800463c: 00100020 .word 0x00100020 + 800501e: 4618 mov r0, r3 + 8005020: 3710 adds r7, #16 + 8005022: 46bd mov sp, r7 + 8005024: bd80 pop {r7, pc} + 8005026: bf00 nop + 8005028: 00100070 .word 0x00100070 + 800502c: 00100040 .word 0x00100040 + 8005030: 00100030 .word 0x00100030 + 8005034: 00100020 .word 0x00100020 -08004640 : +08005038 : * @brief Period elapsed callback in non-blocking mode * @param htim TIM handle * @retval None */ __weak void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim) { - 8004640: b480 push {r7} - 8004642: b083 sub sp, #12 - 8004644: af00 add r7, sp, #0 - 8004646: 6078 str r0, [r7, #4] + 8005038: b480 push {r7} + 800503a: b083 sub sp, #12 + 800503c: af00 add r7, sp, #0 + 800503e: 6078 str r0, [r7, #4] UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIM_PeriodElapsedCallback could be implemented in the user file */ } - 8004648: bf00 nop - 800464a: 370c adds r7, #12 - 800464c: 46bd mov sp, r7 - 800464e: f85d 7b04 ldr.w r7, [sp], #4 - 8004652: 4770 bx lr + 8005040: bf00 nop + 8005042: 370c adds r7, #12 + 8005044: 46bd mov sp, r7 + 8005046: f85d 7b04 ldr.w r7, [sp], #4 + 800504a: 4770 bx lr -08004654 : +0800504c : * @brief Output Compare callback in non-blocking mode * @param htim TIM OC handle * @retval None */ __weak void HAL_TIM_OC_DelayElapsedCallback(TIM_HandleTypeDef *htim) { - 8004654: b480 push {r7} - 8004656: b083 sub sp, #12 - 8004658: af00 add r7, sp, #0 - 800465a: 6078 str r0, [r7, #4] + 800504c: b480 push {r7} + 800504e: b083 sub sp, #12 + 8005050: af00 add r7, sp, #0 + 8005052: 6078 str r0, [r7, #4] UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIM_OC_DelayElapsedCallback could be implemented in the user file */ } - 800465c: bf00 nop - 800465e: 370c adds r7, #12 - 8004660: 46bd mov sp, r7 - 8004662: f85d 7b04 ldr.w r7, [sp], #4 - 8004666: 4770 bx lr + 8005054: bf00 nop + 8005056: 370c adds r7, #12 + 8005058: 46bd mov sp, r7 + 800505a: f85d 7b04 ldr.w r7, [sp], #4 + 800505e: 4770 bx lr -08004668 : +08005060 : * @brief Input Capture callback in non-blocking mode * @param htim TIM IC handle * @retval None */ __weak void HAL_TIM_IC_CaptureCallback(TIM_HandleTypeDef *htim) { - 8004668: b480 push {r7} - 800466a: b083 sub sp, #12 - 800466c: af00 add r7, sp, #0 - 800466e: 6078 str r0, [r7, #4] + 8005060: b480 push {r7} + 8005062: b083 sub sp, #12 + 8005064: af00 add r7, sp, #0 + 8005066: 6078 str r0, [r7, #4] UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIM_IC_CaptureCallback could be implemented in the user file */ } - 8004670: bf00 nop - 8004672: 370c adds r7, #12 - 8004674: 46bd mov sp, r7 - 8004676: f85d 7b04 ldr.w r7, [sp], #4 - 800467a: 4770 bx lr + 8005068: bf00 nop + 800506a: 370c adds r7, #12 + 800506c: 46bd mov sp, r7 + 800506e: f85d 7b04 ldr.w r7, [sp], #4 + 8005072: 4770 bx lr -0800467c : +08005074 : * @brief PWM Pulse finished callback in non-blocking mode * @param htim TIM handle * @retval None */ __weak void HAL_TIM_PWM_PulseFinishedCallback(TIM_HandleTypeDef *htim) { - 800467c: b480 push {r7} - 800467e: b083 sub sp, #12 - 8004680: af00 add r7, sp, #0 - 8004682: 6078 str r0, [r7, #4] + 8005074: b480 push {r7} + 8005076: b083 sub sp, #12 + 8005078: af00 add r7, sp, #0 + 800507a: 6078 str r0, [r7, #4] UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIM_PWM_PulseFinishedCallback could be implemented in the user file */ } - 8004684: bf00 nop - 8004686: 370c adds r7, #12 - 8004688: 46bd mov sp, r7 - 800468a: f85d 7b04 ldr.w r7, [sp], #4 - 800468e: 4770 bx lr + 800507c: bf00 nop + 800507e: 370c adds r7, #12 + 8005080: 46bd mov sp, r7 + 8005082: f85d 7b04 ldr.w r7, [sp], #4 + 8005086: 4770 bx lr -08004690 : +08005088 : * @brief Hall Trigger detection callback in non-blocking mode * @param htim TIM handle * @retval None */ __weak void HAL_TIM_TriggerCallback(TIM_HandleTypeDef *htim) { - 8004690: b480 push {r7} - 8004692: b083 sub sp, #12 - 8004694: af00 add r7, sp, #0 - 8004696: 6078 str r0, [r7, #4] + 8005088: b480 push {r7} + 800508a: b083 sub sp, #12 + 800508c: af00 add r7, sp, #0 + 800508e: 6078 str r0, [r7, #4] UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIM_TriggerCallback could be implemented in the user file */ } - 8004698: bf00 nop - 800469a: 370c adds r7, #12 - 800469c: 46bd mov sp, r7 - 800469e: f85d 7b04 ldr.w r7, [sp], #4 - 80046a2: 4770 bx lr + 8005090: bf00 nop + 8005092: 370c adds r7, #12 + 8005094: 46bd mov sp, r7 + 8005096: f85d 7b04 ldr.w r7, [sp], #4 + 800509a: 4770 bx lr -080046a4 : +0800509c : * @param TIMx TIM peripheral * @param Structure TIM Base configuration structure * @retval None */ void TIM_Base_SetConfig(TIM_TypeDef *TIMx, const TIM_Base_InitTypeDef *Structure) { - 80046a4: b480 push {r7} - 80046a6: b085 sub sp, #20 - 80046a8: af00 add r7, sp, #0 - 80046aa: 6078 str r0, [r7, #4] - 80046ac: 6039 str r1, [r7, #0] + 800509c: b480 push {r7} + 800509e: b085 sub sp, #20 + 80050a0: af00 add r7, sp, #0 + 80050a2: 6078 str r0, [r7, #4] + 80050a4: 6039 str r1, [r7, #0] uint32_t tmpcr1; tmpcr1 = TIMx->CR1; - 80046ae: 687b ldr r3, [r7, #4] - 80046b0: 681b ldr r3, [r3, #0] - 80046b2: 60fb str r3, [r7, #12] + 80050a6: 687b ldr r3, [r7, #4] + 80050a8: 681b ldr r3, [r3, #0] + 80050aa: 60fb str r3, [r7, #12] /* Set TIM Time Base Unit parameters ---------------------------------------*/ if (IS_TIM_COUNTER_MODE_SELECT_INSTANCE(TIMx)) - 80046b4: 687b ldr r3, [r7, #4] - 80046b6: 4a42 ldr r2, [pc, #264] @ (80047c0 ) - 80046b8: 4293 cmp r3, r2 - 80046ba: d00f beq.n 80046dc - 80046bc: 687b ldr r3, [r7, #4] - 80046be: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 - 80046c2: d00b beq.n 80046dc - 80046c4: 687b ldr r3, [r7, #4] - 80046c6: 4a3f ldr r2, [pc, #252] @ (80047c4 ) - 80046c8: 4293 cmp r3, r2 - 80046ca: d007 beq.n 80046dc - 80046cc: 687b ldr r3, [r7, #4] - 80046ce: 4a3e ldr r2, [pc, #248] @ (80047c8 ) - 80046d0: 4293 cmp r3, r2 - 80046d2: d003 beq.n 80046dc - 80046d4: 687b ldr r3, [r7, #4] - 80046d6: 4a3d ldr r2, [pc, #244] @ (80047cc ) - 80046d8: 4293 cmp r3, r2 - 80046da: d108 bne.n 80046ee + 80050ac: 687b ldr r3, [r7, #4] + 80050ae: 4a42 ldr r2, [pc, #264] @ (80051b8 ) + 80050b0: 4293 cmp r3, r2 + 80050b2: d00f beq.n 80050d4 + 80050b4: 687b ldr r3, [r7, #4] + 80050b6: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 + 80050ba: d00b beq.n 80050d4 + 80050bc: 687b ldr r3, [r7, #4] + 80050be: 4a3f ldr r2, [pc, #252] @ (80051bc ) + 80050c0: 4293 cmp r3, r2 + 80050c2: d007 beq.n 80050d4 + 80050c4: 687b ldr r3, [r7, #4] + 80050c6: 4a3e ldr r2, [pc, #248] @ (80051c0 ) + 80050c8: 4293 cmp r3, r2 + 80050ca: d003 beq.n 80050d4 + 80050cc: 687b ldr r3, [r7, #4] + 80050ce: 4a3d ldr r2, [pc, #244] @ (80051c4 ) + 80050d0: 4293 cmp r3, r2 + 80050d2: d108 bne.n 80050e6 { /* Select the Counter Mode */ tmpcr1 &= ~(TIM_CR1_DIR | TIM_CR1_CMS); - 80046dc: 68fb ldr r3, [r7, #12] - 80046de: f023 0370 bic.w r3, r3, #112 @ 0x70 - 80046e2: 60fb str r3, [r7, #12] + 80050d4: 68fb ldr r3, [r7, #12] + 80050d6: f023 0370 bic.w r3, r3, #112 @ 0x70 + 80050da: 60fb str r3, [r7, #12] tmpcr1 |= Structure->CounterMode; - 80046e4: 683b ldr r3, [r7, #0] - 80046e6: 685b ldr r3, [r3, #4] - 80046e8: 68fa ldr r2, [r7, #12] - 80046ea: 4313 orrs r3, r2 - 80046ec: 60fb str r3, [r7, #12] + 80050dc: 683b ldr r3, [r7, #0] + 80050de: 685b ldr r3, [r3, #4] + 80050e0: 68fa ldr r2, [r7, #12] + 80050e2: 4313 orrs r3, r2 + 80050e4: 60fb str r3, [r7, #12] } if (IS_TIM_CLOCK_DIVISION_INSTANCE(TIMx)) - 80046ee: 687b ldr r3, [r7, #4] - 80046f0: 4a33 ldr r2, [pc, #204] @ (80047c0 ) - 80046f2: 4293 cmp r3, r2 - 80046f4: d01b beq.n 800472e - 80046f6: 687b ldr r3, [r7, #4] - 80046f8: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 - 80046fc: d017 beq.n 800472e - 80046fe: 687b ldr r3, [r7, #4] - 8004700: 4a30 ldr r2, [pc, #192] @ (80047c4 ) - 8004702: 4293 cmp r3, r2 - 8004704: d013 beq.n 800472e - 8004706: 687b ldr r3, [r7, #4] - 8004708: 4a2f ldr r2, [pc, #188] @ (80047c8 ) - 800470a: 4293 cmp r3, r2 - 800470c: d00f beq.n 800472e - 800470e: 687b ldr r3, [r7, #4] - 8004710: 4a2e ldr r2, [pc, #184] @ (80047cc ) - 8004712: 4293 cmp r3, r2 - 8004714: d00b beq.n 800472e - 8004716: 687b ldr r3, [r7, #4] - 8004718: 4a2d ldr r2, [pc, #180] @ (80047d0 ) - 800471a: 4293 cmp r3, r2 - 800471c: d007 beq.n 800472e - 800471e: 687b ldr r3, [r7, #4] - 8004720: 4a2c ldr r2, [pc, #176] @ (80047d4 ) - 8004722: 4293 cmp r3, r2 - 8004724: d003 beq.n 800472e - 8004726: 687b ldr r3, [r7, #4] - 8004728: 4a2b ldr r2, [pc, #172] @ (80047d8 ) - 800472a: 4293 cmp r3, r2 - 800472c: d108 bne.n 8004740 + 80050e6: 687b ldr r3, [r7, #4] + 80050e8: 4a33 ldr r2, [pc, #204] @ (80051b8 ) + 80050ea: 4293 cmp r3, r2 + 80050ec: d01b beq.n 8005126 + 80050ee: 687b ldr r3, [r7, #4] + 80050f0: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 + 80050f4: d017 beq.n 8005126 + 80050f6: 687b ldr r3, [r7, #4] + 80050f8: 4a30 ldr r2, [pc, #192] @ (80051bc ) + 80050fa: 4293 cmp r3, r2 + 80050fc: d013 beq.n 8005126 + 80050fe: 687b ldr r3, [r7, #4] + 8005100: 4a2f ldr r2, [pc, #188] @ (80051c0 ) + 8005102: 4293 cmp r3, r2 + 8005104: d00f beq.n 8005126 + 8005106: 687b ldr r3, [r7, #4] + 8005108: 4a2e ldr r2, [pc, #184] @ (80051c4 ) + 800510a: 4293 cmp r3, r2 + 800510c: d00b beq.n 8005126 + 800510e: 687b ldr r3, [r7, #4] + 8005110: 4a2d ldr r2, [pc, #180] @ (80051c8 ) + 8005112: 4293 cmp r3, r2 + 8005114: d007 beq.n 8005126 + 8005116: 687b ldr r3, [r7, #4] + 8005118: 4a2c ldr r2, [pc, #176] @ (80051cc ) + 800511a: 4293 cmp r3, r2 + 800511c: d003 beq.n 8005126 + 800511e: 687b ldr r3, [r7, #4] + 8005120: 4a2b ldr r2, [pc, #172] @ (80051d0 ) + 8005122: 4293 cmp r3, r2 + 8005124: d108 bne.n 8005138 { /* Set the clock division */ tmpcr1 &= ~TIM_CR1_CKD; - 800472e: 68fb ldr r3, [r7, #12] - 8004730: f423 7340 bic.w r3, r3, #768 @ 0x300 - 8004734: 60fb str r3, [r7, #12] + 8005126: 68fb ldr r3, [r7, #12] + 8005128: f423 7340 bic.w r3, r3, #768 @ 0x300 + 800512c: 60fb str r3, [r7, #12] tmpcr1 |= (uint32_t)Structure->ClockDivision; - 8004736: 683b ldr r3, [r7, #0] - 8004738: 68db ldr r3, [r3, #12] - 800473a: 68fa ldr r2, [r7, #12] - 800473c: 4313 orrs r3, r2 - 800473e: 60fb str r3, [r7, #12] + 800512e: 683b ldr r3, [r7, #0] + 8005130: 68db ldr r3, [r3, #12] + 8005132: 68fa ldr r2, [r7, #12] + 8005134: 4313 orrs r3, r2 + 8005136: 60fb str r3, [r7, #12] } /* Set the auto-reload preload */ MODIFY_REG(tmpcr1, TIM_CR1_ARPE, Structure->AutoReloadPreload); - 8004740: 68fb ldr r3, [r7, #12] - 8004742: f023 0280 bic.w r2, r3, #128 @ 0x80 - 8004746: 683b ldr r3, [r7, #0] - 8004748: 695b ldr r3, [r3, #20] - 800474a: 4313 orrs r3, r2 - 800474c: 60fb str r3, [r7, #12] + 8005138: 68fb ldr r3, [r7, #12] + 800513a: f023 0280 bic.w r2, r3, #128 @ 0x80 + 800513e: 683b ldr r3, [r7, #0] + 8005140: 695b ldr r3, [r3, #20] + 8005142: 4313 orrs r3, r2 + 8005144: 60fb str r3, [r7, #12] TIMx->CR1 = tmpcr1; - 800474e: 687b ldr r3, [r7, #4] - 8004750: 68fa ldr r2, [r7, #12] - 8004752: 601a str r2, [r3, #0] + 8005146: 687b ldr r3, [r7, #4] + 8005148: 68fa ldr r2, [r7, #12] + 800514a: 601a str r2, [r3, #0] /* Set the Autoreload value */ TIMx->ARR = (uint32_t)Structure->Period ; - 8004754: 683b ldr r3, [r7, #0] - 8004756: 689a ldr r2, [r3, #8] - 8004758: 687b ldr r3, [r7, #4] - 800475a: 62da str r2, [r3, #44] @ 0x2c + 800514c: 683b ldr r3, [r7, #0] + 800514e: 689a ldr r2, [r3, #8] + 8005150: 687b ldr r3, [r7, #4] + 8005152: 62da str r2, [r3, #44] @ 0x2c /* Set the Prescaler value */ TIMx->PSC = Structure->Prescaler; - 800475c: 683b ldr r3, [r7, #0] - 800475e: 681a ldr r2, [r3, #0] - 8004760: 687b ldr r3, [r7, #4] - 8004762: 629a str r2, [r3, #40] @ 0x28 + 8005154: 683b ldr r3, [r7, #0] + 8005156: 681a ldr r2, [r3, #0] + 8005158: 687b ldr r3, [r7, #4] + 800515a: 629a str r2, [r3, #40] @ 0x28 if (IS_TIM_REPETITION_COUNTER_INSTANCE(TIMx)) - 8004764: 687b ldr r3, [r7, #4] - 8004766: 4a16 ldr r2, [pc, #88] @ (80047c0 ) - 8004768: 4293 cmp r3, r2 - 800476a: d00f beq.n 800478c - 800476c: 687b ldr r3, [r7, #4] - 800476e: 4a17 ldr r2, [pc, #92] @ (80047cc ) - 8004770: 4293 cmp r3, r2 - 8004772: d00b beq.n 800478c - 8004774: 687b ldr r3, [r7, #4] - 8004776: 4a16 ldr r2, [pc, #88] @ (80047d0 ) - 8004778: 4293 cmp r3, r2 - 800477a: d007 beq.n 800478c - 800477c: 687b ldr r3, [r7, #4] - 800477e: 4a15 ldr r2, [pc, #84] @ (80047d4 ) - 8004780: 4293 cmp r3, r2 - 8004782: d003 beq.n 800478c - 8004784: 687b ldr r3, [r7, #4] - 8004786: 4a14 ldr r2, [pc, #80] @ (80047d8 ) - 8004788: 4293 cmp r3, r2 - 800478a: d103 bne.n 8004794 + 800515c: 687b ldr r3, [r7, #4] + 800515e: 4a16 ldr r2, [pc, #88] @ (80051b8 ) + 8005160: 4293 cmp r3, r2 + 8005162: d00f beq.n 8005184 + 8005164: 687b ldr r3, [r7, #4] + 8005166: 4a17 ldr r2, [pc, #92] @ (80051c4 ) + 8005168: 4293 cmp r3, r2 + 800516a: d00b beq.n 8005184 + 800516c: 687b ldr r3, [r7, #4] + 800516e: 4a16 ldr r2, [pc, #88] @ (80051c8 ) + 8005170: 4293 cmp r3, r2 + 8005172: d007 beq.n 8005184 + 8005174: 687b ldr r3, [r7, #4] + 8005176: 4a15 ldr r2, [pc, #84] @ (80051cc ) + 8005178: 4293 cmp r3, r2 + 800517a: d003 beq.n 8005184 + 800517c: 687b ldr r3, [r7, #4] + 800517e: 4a14 ldr r2, [pc, #80] @ (80051d0 ) + 8005180: 4293 cmp r3, r2 + 8005182: d103 bne.n 800518c { /* Set the Repetition Counter value */ TIMx->RCR = Structure->RepetitionCounter; - 800478c: 683b ldr r3, [r7, #0] - 800478e: 691a ldr r2, [r3, #16] - 8004790: 687b ldr r3, [r7, #4] - 8004792: 631a str r2, [r3, #48] @ 0x30 + 8005184: 683b ldr r3, [r7, #0] + 8005186: 691a ldr r2, [r3, #16] + 8005188: 687b ldr r3, [r7, #4] + 800518a: 631a str r2, [r3, #48] @ 0x30 } /* Generate an update event to reload the Prescaler and the repetition counter (only for advanced timer) value immediately */ TIMx->EGR = TIM_EGR_UG; - 8004794: 687b ldr r3, [r7, #4] - 8004796: 2201 movs r2, #1 - 8004798: 615a str r2, [r3, #20] + 800518c: 687b ldr r3, [r7, #4] + 800518e: 2201 movs r2, #1 + 8005190: 615a str r2, [r3, #20] /* Check if the update flag is set after the Update Generation, if so clear the UIF flag */ if (HAL_IS_BIT_SET(TIMx->SR, TIM_FLAG_UPDATE)) - 800479a: 687b ldr r3, [r7, #4] - 800479c: 691b ldr r3, [r3, #16] - 800479e: f003 0301 and.w r3, r3, #1 - 80047a2: 2b01 cmp r3, #1 - 80047a4: d105 bne.n 80047b2 + 8005192: 687b ldr r3, [r7, #4] + 8005194: 691b ldr r3, [r3, #16] + 8005196: f003 0301 and.w r3, r3, #1 + 800519a: 2b01 cmp r3, #1 + 800519c: d105 bne.n 80051aa { /* Clear the update flag */ CLEAR_BIT(TIMx->SR, TIM_FLAG_UPDATE); - 80047a6: 687b ldr r3, [r7, #4] - 80047a8: 691b ldr r3, [r3, #16] - 80047aa: f023 0201 bic.w r2, r3, #1 - 80047ae: 687b ldr r3, [r7, #4] - 80047b0: 611a str r2, [r3, #16] + 800519e: 687b ldr r3, [r7, #4] + 80051a0: 691b ldr r3, [r3, #16] + 80051a2: f023 0201 bic.w r2, r3, #1 + 80051a6: 687b ldr r3, [r7, #4] + 80051a8: 611a str r2, [r3, #16] } } - 80047b2: bf00 nop - 80047b4: 3714 adds r7, #20 - 80047b6: 46bd mov sp, r7 - 80047b8: f85d 7b04 ldr.w r7, [sp], #4 - 80047bc: 4770 bx lr - 80047be: bf00 nop - 80047c0: 40012c00 .word 0x40012c00 - 80047c4: 40000400 .word 0x40000400 - 80047c8: 40000800 .word 0x40000800 - 80047cc: 40013400 .word 0x40013400 - 80047d0: 40014000 .word 0x40014000 - 80047d4: 40014400 .word 0x40014400 - 80047d8: 40014800 .word 0x40014800 + 80051aa: bf00 nop + 80051ac: 3714 adds r7, #20 + 80051ae: 46bd mov sp, r7 + 80051b0: f85d 7b04 ldr.w r7, [sp], #4 + 80051b4: 4770 bx lr + 80051b6: bf00 nop + 80051b8: 40012c00 .word 0x40012c00 + 80051bc: 40000400 .word 0x40000400 + 80051c0: 40000800 .word 0x40000800 + 80051c4: 40013400 .word 0x40013400 + 80051c8: 40014000 .word 0x40014000 + 80051cc: 40014400 .word 0x40014400 + 80051d0: 40014800 .word 0x40014800 -080047dc : +080051d4 : * @param TIM_ICFilter Specifies the Input Capture Filter. * This parameter must be a value between 0x00 and 0x0F. * @retval None */ static void TIM_TI1_ConfigInputStage(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICFilter) { - 80047dc: b480 push {r7} - 80047de: b087 sub sp, #28 - 80047e0: af00 add r7, sp, #0 - 80047e2: 60f8 str r0, [r7, #12] - 80047e4: 60b9 str r1, [r7, #8] - 80047e6: 607a str r2, [r7, #4] + 80051d4: b480 push {r7} + 80051d6: b087 sub sp, #28 + 80051d8: af00 add r7, sp, #0 + 80051da: 60f8 str r0, [r7, #12] + 80051dc: 60b9 str r1, [r7, #8] + 80051de: 607a str r2, [r7, #4] uint32_t tmpccmr1; uint32_t tmpccer; /* Disable the Channel 1: Reset the CC1E Bit */ tmpccer = TIMx->CCER; - 80047e8: 68fb ldr r3, [r7, #12] - 80047ea: 6a1b ldr r3, [r3, #32] - 80047ec: 617b str r3, [r7, #20] + 80051e0: 68fb ldr r3, [r7, #12] + 80051e2: 6a1b ldr r3, [r3, #32] + 80051e4: 617b str r3, [r7, #20] TIMx->CCER &= ~TIM_CCER_CC1E; - 80047ee: 68fb ldr r3, [r7, #12] - 80047f0: 6a1b ldr r3, [r3, #32] - 80047f2: f023 0201 bic.w r2, r3, #1 - 80047f6: 68fb ldr r3, [r7, #12] - 80047f8: 621a str r2, [r3, #32] + 80051e6: 68fb ldr r3, [r7, #12] + 80051e8: 6a1b ldr r3, [r3, #32] + 80051ea: f023 0201 bic.w r2, r3, #1 + 80051ee: 68fb ldr r3, [r7, #12] + 80051f0: 621a str r2, [r3, #32] tmpccmr1 = TIMx->CCMR1; - 80047fa: 68fb ldr r3, [r7, #12] - 80047fc: 699b ldr r3, [r3, #24] - 80047fe: 613b str r3, [r7, #16] + 80051f2: 68fb ldr r3, [r7, #12] + 80051f4: 699b ldr r3, [r3, #24] + 80051f6: 613b str r3, [r7, #16] /* Set the filter */ tmpccmr1 &= ~TIM_CCMR1_IC1F; - 8004800: 693b ldr r3, [r7, #16] - 8004802: f023 03f0 bic.w r3, r3, #240 @ 0xf0 - 8004806: 613b str r3, [r7, #16] + 80051f8: 693b ldr r3, [r7, #16] + 80051fa: f023 03f0 bic.w r3, r3, #240 @ 0xf0 + 80051fe: 613b str r3, [r7, #16] tmpccmr1 |= (TIM_ICFilter << 4U); - 8004808: 687b ldr r3, [r7, #4] - 800480a: 011b lsls r3, r3, #4 - 800480c: 693a ldr r2, [r7, #16] - 800480e: 4313 orrs r3, r2 - 8004810: 613b str r3, [r7, #16] + 8005200: 687b ldr r3, [r7, #4] + 8005202: 011b lsls r3, r3, #4 + 8005204: 693a ldr r2, [r7, #16] + 8005206: 4313 orrs r3, r2 + 8005208: 613b str r3, [r7, #16] /* Select the Polarity and set the CC1E Bit */ tmpccer &= ~(TIM_CCER_CC1P | TIM_CCER_CC1NP); - 8004812: 697b ldr r3, [r7, #20] - 8004814: f023 030a bic.w r3, r3, #10 - 8004818: 617b str r3, [r7, #20] + 800520a: 697b ldr r3, [r7, #20] + 800520c: f023 030a bic.w r3, r3, #10 + 8005210: 617b str r3, [r7, #20] tmpccer |= TIM_ICPolarity; - 800481a: 697a ldr r2, [r7, #20] - 800481c: 68bb ldr r3, [r7, #8] - 800481e: 4313 orrs r3, r2 - 8004820: 617b str r3, [r7, #20] + 8005212: 697a ldr r2, [r7, #20] + 8005214: 68bb ldr r3, [r7, #8] + 8005216: 4313 orrs r3, r2 + 8005218: 617b str r3, [r7, #20] /* Write to TIMx CCMR1 and CCER registers */ TIMx->CCMR1 = tmpccmr1; - 8004822: 68fb ldr r3, [r7, #12] - 8004824: 693a ldr r2, [r7, #16] - 8004826: 619a str r2, [r3, #24] + 800521a: 68fb ldr r3, [r7, #12] + 800521c: 693a ldr r2, [r7, #16] + 800521e: 619a str r2, [r3, #24] TIMx->CCER = tmpccer; - 8004828: 68fb ldr r3, [r7, #12] - 800482a: 697a ldr r2, [r7, #20] - 800482c: 621a str r2, [r3, #32] + 8005220: 68fb ldr r3, [r7, #12] + 8005222: 697a ldr r2, [r7, #20] + 8005224: 621a str r2, [r3, #32] } - 800482e: bf00 nop - 8004830: 371c adds r7, #28 - 8004832: 46bd mov sp, r7 - 8004834: f85d 7b04 ldr.w r7, [sp], #4 - 8004838: 4770 bx lr + 8005226: bf00 nop + 8005228: 371c adds r7, #28 + 800522a: 46bd mov sp, r7 + 800522c: f85d 7b04 ldr.w r7, [sp], #4 + 8005230: 4770 bx lr -0800483a : +08005232 : * @param TIM_ICFilter Specifies the Input Capture Filter. * This parameter must be a value between 0x00 and 0x0F. * @retval None */ static void TIM_TI2_ConfigInputStage(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICFilter) { - 800483a: b480 push {r7} - 800483c: b087 sub sp, #28 - 800483e: af00 add r7, sp, #0 - 8004840: 60f8 str r0, [r7, #12] - 8004842: 60b9 str r1, [r7, #8] - 8004844: 607a str r2, [r7, #4] + 8005232: b480 push {r7} + 8005234: b087 sub sp, #28 + 8005236: af00 add r7, sp, #0 + 8005238: 60f8 str r0, [r7, #12] + 800523a: 60b9 str r1, [r7, #8] + 800523c: 607a str r2, [r7, #4] uint32_t tmpccmr1; uint32_t tmpccer; /* Disable the Channel 2: Reset the CC2E Bit */ tmpccer = TIMx->CCER; - 8004846: 68fb ldr r3, [r7, #12] - 8004848: 6a1b ldr r3, [r3, #32] - 800484a: 617b str r3, [r7, #20] + 800523e: 68fb ldr r3, [r7, #12] + 8005240: 6a1b ldr r3, [r3, #32] + 8005242: 617b str r3, [r7, #20] TIMx->CCER &= ~TIM_CCER_CC2E; - 800484c: 68fb ldr r3, [r7, #12] - 800484e: 6a1b ldr r3, [r3, #32] - 8004850: f023 0210 bic.w r2, r3, #16 - 8004854: 68fb ldr r3, [r7, #12] - 8004856: 621a str r2, [r3, #32] + 8005244: 68fb ldr r3, [r7, #12] + 8005246: 6a1b ldr r3, [r3, #32] + 8005248: f023 0210 bic.w r2, r3, #16 + 800524c: 68fb ldr r3, [r7, #12] + 800524e: 621a str r2, [r3, #32] tmpccmr1 = TIMx->CCMR1; - 8004858: 68fb ldr r3, [r7, #12] - 800485a: 699b ldr r3, [r3, #24] - 800485c: 613b str r3, [r7, #16] + 8005250: 68fb ldr r3, [r7, #12] + 8005252: 699b ldr r3, [r3, #24] + 8005254: 613b str r3, [r7, #16] /* Set the filter */ tmpccmr1 &= ~TIM_CCMR1_IC2F; - 800485e: 693b ldr r3, [r7, #16] - 8004860: f423 4370 bic.w r3, r3, #61440 @ 0xf000 - 8004864: 613b str r3, [r7, #16] + 8005256: 693b ldr r3, [r7, #16] + 8005258: f423 4370 bic.w r3, r3, #61440 @ 0xf000 + 800525c: 613b str r3, [r7, #16] tmpccmr1 |= (TIM_ICFilter << 12U); - 8004866: 687b ldr r3, [r7, #4] - 8004868: 031b lsls r3, r3, #12 - 800486a: 693a ldr r2, [r7, #16] - 800486c: 4313 orrs r3, r2 - 800486e: 613b str r3, [r7, #16] + 800525e: 687b ldr r3, [r7, #4] + 8005260: 031b lsls r3, r3, #12 + 8005262: 693a ldr r2, [r7, #16] + 8005264: 4313 orrs r3, r2 + 8005266: 613b str r3, [r7, #16] /* Select the Polarity and set the CC2E Bit */ tmpccer &= ~(TIM_CCER_CC2P | TIM_CCER_CC2NP); - 8004870: 697b ldr r3, [r7, #20] - 8004872: f023 03a0 bic.w r3, r3, #160 @ 0xa0 - 8004876: 617b str r3, [r7, #20] + 8005268: 697b ldr r3, [r7, #20] + 800526a: f023 03a0 bic.w r3, r3, #160 @ 0xa0 + 800526e: 617b str r3, [r7, #20] tmpccer |= (TIM_ICPolarity << 4U); - 8004878: 68bb ldr r3, [r7, #8] - 800487a: 011b lsls r3, r3, #4 - 800487c: 697a ldr r2, [r7, #20] - 800487e: 4313 orrs r3, r2 - 8004880: 617b str r3, [r7, #20] + 8005270: 68bb ldr r3, [r7, #8] + 8005272: 011b lsls r3, r3, #4 + 8005274: 697a ldr r2, [r7, #20] + 8005276: 4313 orrs r3, r2 + 8005278: 617b str r3, [r7, #20] /* Write to TIMx CCMR1 and CCER registers */ TIMx->CCMR1 = tmpccmr1 ; - 8004882: 68fb ldr r3, [r7, #12] - 8004884: 693a ldr r2, [r7, #16] - 8004886: 619a str r2, [r3, #24] + 800527a: 68fb ldr r3, [r7, #12] + 800527c: 693a ldr r2, [r7, #16] + 800527e: 619a str r2, [r3, #24] TIMx->CCER = tmpccer; - 8004888: 68fb ldr r3, [r7, #12] - 800488a: 697a ldr r2, [r7, #20] - 800488c: 621a str r2, [r3, #32] + 8005280: 68fb ldr r3, [r7, #12] + 8005282: 697a ldr r2, [r7, #20] + 8005284: 621a str r2, [r3, #32] } - 800488e: bf00 nop - 8004890: 371c adds r7, #28 - 8004892: 46bd mov sp, r7 - 8004894: f85d 7b04 ldr.w r7, [sp], #4 - 8004898: 4770 bx lr + 8005286: bf00 nop + 8005288: 371c adds r7, #28 + 800528a: 46bd mov sp, r7 + 800528c: f85d 7b04 ldr.w r7, [sp], #4 + 8005290: 4770 bx lr -0800489a : +08005292 : * (*) Value not defined in all devices. * * @retval None */ static void TIM_ITRx_SetConfig(TIM_TypeDef *TIMx, uint32_t InputTriggerSource) { - 800489a: b480 push {r7} - 800489c: b085 sub sp, #20 - 800489e: af00 add r7, sp, #0 - 80048a0: 6078 str r0, [r7, #4] - 80048a2: 6039 str r1, [r7, #0] + 8005292: b480 push {r7} + 8005294: b085 sub sp, #20 + 8005296: af00 add r7, sp, #0 + 8005298: 6078 str r0, [r7, #4] + 800529a: 6039 str r1, [r7, #0] uint32_t tmpsmcr; /* Get the TIMx SMCR register value */ tmpsmcr = TIMx->SMCR; - 80048a4: 687b ldr r3, [r7, #4] - 80048a6: 689b ldr r3, [r3, #8] - 80048a8: 60fb str r3, [r7, #12] + 800529c: 687b ldr r3, [r7, #4] + 800529e: 689b ldr r3, [r3, #8] + 80052a0: 60fb str r3, [r7, #12] /* Reset the TS Bits */ tmpsmcr &= ~TIM_SMCR_TS; - 80048aa: 68fb ldr r3, [r7, #12] - 80048ac: f423 1340 bic.w r3, r3, #3145728 @ 0x300000 - 80048b0: f023 0370 bic.w r3, r3, #112 @ 0x70 - 80048b4: 60fb str r3, [r7, #12] + 80052a2: 68fb ldr r3, [r7, #12] + 80052a4: f423 1340 bic.w r3, r3, #3145728 @ 0x300000 + 80052a8: f023 0370 bic.w r3, r3, #112 @ 0x70 + 80052ac: 60fb str r3, [r7, #12] /* Set the Input Trigger source and the slave mode*/ tmpsmcr |= (InputTriggerSource | TIM_SLAVEMODE_EXTERNAL1); - 80048b6: 683a ldr r2, [r7, #0] - 80048b8: 68fb ldr r3, [r7, #12] - 80048ba: 4313 orrs r3, r2 - 80048bc: f043 0307 orr.w r3, r3, #7 - 80048c0: 60fb str r3, [r7, #12] + 80052ae: 683a ldr r2, [r7, #0] + 80052b0: 68fb ldr r3, [r7, #12] + 80052b2: 4313 orrs r3, r2 + 80052b4: f043 0307 orr.w r3, r3, #7 + 80052b8: 60fb str r3, [r7, #12] /* Write to TIMx SMCR */ TIMx->SMCR = tmpsmcr; - 80048c2: 687b ldr r3, [r7, #4] - 80048c4: 68fa ldr r2, [r7, #12] - 80048c6: 609a str r2, [r3, #8] + 80052ba: 687b ldr r3, [r7, #4] + 80052bc: 68fa ldr r2, [r7, #12] + 80052be: 609a str r2, [r3, #8] } - 80048c8: bf00 nop - 80048ca: 3714 adds r7, #20 - 80048cc: 46bd mov sp, r7 - 80048ce: f85d 7b04 ldr.w r7, [sp], #4 - 80048d2: 4770 bx lr + 80052c0: bf00 nop + 80052c2: 3714 adds r7, #20 + 80052c4: 46bd mov sp, r7 + 80052c6: f85d 7b04 ldr.w r7, [sp], #4 + 80052ca: 4770 bx lr -080048d4 : +080052cc : * This parameter must be a value between 0x00 and 0x0F * @retval None */ void TIM_ETR_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ExtTRGPrescaler, uint32_t TIM_ExtTRGPolarity, uint32_t ExtTRGFilter) { - 80048d4: b480 push {r7} - 80048d6: b087 sub sp, #28 - 80048d8: af00 add r7, sp, #0 - 80048da: 60f8 str r0, [r7, #12] - 80048dc: 60b9 str r1, [r7, #8] - 80048de: 607a str r2, [r7, #4] - 80048e0: 603b str r3, [r7, #0] + 80052cc: b480 push {r7} + 80052ce: b087 sub sp, #28 + 80052d0: af00 add r7, sp, #0 + 80052d2: 60f8 str r0, [r7, #12] + 80052d4: 60b9 str r1, [r7, #8] + 80052d6: 607a str r2, [r7, #4] + 80052d8: 603b str r3, [r7, #0] uint32_t tmpsmcr; tmpsmcr = TIMx->SMCR; - 80048e2: 68fb ldr r3, [r7, #12] - 80048e4: 689b ldr r3, [r3, #8] - 80048e6: 617b str r3, [r7, #20] + 80052da: 68fb ldr r3, [r7, #12] + 80052dc: 689b ldr r3, [r3, #8] + 80052de: 617b str r3, [r7, #20] /* Reset the ETR Bits */ tmpsmcr &= ~(TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP); - 80048e8: 697b ldr r3, [r7, #20] - 80048ea: f423 437f bic.w r3, r3, #65280 @ 0xff00 - 80048ee: 617b str r3, [r7, #20] + 80052e0: 697b ldr r3, [r7, #20] + 80052e2: f423 437f bic.w r3, r3, #65280 @ 0xff00 + 80052e6: 617b str r3, [r7, #20] /* Set the Prescaler, the Filter value and the Polarity */ tmpsmcr |= (uint32_t)(TIM_ExtTRGPrescaler | (TIM_ExtTRGPolarity | (ExtTRGFilter << 8U))); - 80048f0: 683b ldr r3, [r7, #0] - 80048f2: 021a lsls r2, r3, #8 - 80048f4: 687b ldr r3, [r7, #4] - 80048f6: 431a orrs r2, r3 - 80048f8: 68bb ldr r3, [r7, #8] - 80048fa: 4313 orrs r3, r2 - 80048fc: 697a ldr r2, [r7, #20] - 80048fe: 4313 orrs r3, r2 - 8004900: 617b str r3, [r7, #20] + 80052e8: 683b ldr r3, [r7, #0] + 80052ea: 021a lsls r2, r3, #8 + 80052ec: 687b ldr r3, [r7, #4] + 80052ee: 431a orrs r2, r3 + 80052f0: 68bb ldr r3, [r7, #8] + 80052f2: 4313 orrs r3, r2 + 80052f4: 697a ldr r2, [r7, #20] + 80052f6: 4313 orrs r3, r2 + 80052f8: 617b str r3, [r7, #20] /* Write to TIMx SMCR */ TIMx->SMCR = tmpsmcr; - 8004902: 68fb ldr r3, [r7, #12] - 8004904: 697a ldr r2, [r7, #20] - 8004906: 609a str r2, [r3, #8] + 80052fa: 68fb ldr r3, [r7, #12] + 80052fc: 697a ldr r2, [r7, #20] + 80052fe: 609a str r2, [r3, #8] } - 8004908: bf00 nop - 800490a: 371c adds r7, #28 - 800490c: 46bd mov sp, r7 - 800490e: f85d 7b04 ldr.w r7, [sp], #4 - 8004912: 4770 bx lr + 8005300: bf00 nop + 8005302: 371c adds r7, #28 + 8005304: 46bd mov sp, r7 + 8005306: f85d 7b04 ldr.w r7, [sp], #4 + 800530a: 4770 bx lr -08004914 : +0800530c : * mode. * @retval HAL status */ HAL_StatusTypeDef HAL_TIMEx_MasterConfigSynchronization(TIM_HandleTypeDef *htim, const TIM_MasterConfigTypeDef *sMasterConfig) { - 8004914: b480 push {r7} - 8004916: b085 sub sp, #20 - 8004918: af00 add r7, sp, #0 - 800491a: 6078 str r0, [r7, #4] - 800491c: 6039 str r1, [r7, #0] + 800530c: b480 push {r7} + 800530e: b085 sub sp, #20 + 8005310: af00 add r7, sp, #0 + 8005312: 6078 str r0, [r7, #4] + 8005314: 6039 str r1, [r7, #0] assert_param(IS_TIM_MASTER_INSTANCE(htim->Instance)); assert_param(IS_TIM_TRGO_SOURCE(sMasterConfig->MasterOutputTrigger)); assert_param(IS_TIM_MSM_STATE(sMasterConfig->MasterSlaveMode)); /* Check input state */ __HAL_LOCK(htim); - 800491e: 687b ldr r3, [r7, #4] - 8004920: f893 303c ldrb.w r3, [r3, #60] @ 0x3c - 8004924: 2b01 cmp r3, #1 - 8004926: d101 bne.n 800492c - 8004928: 2302 movs r3, #2 - 800492a: e065 b.n 80049f8 - 800492c: 687b ldr r3, [r7, #4] - 800492e: 2201 movs r2, #1 - 8004930: f883 203c strb.w r2, [r3, #60] @ 0x3c + 8005316: 687b ldr r3, [r7, #4] + 8005318: f893 303c ldrb.w r3, [r3, #60] @ 0x3c + 800531c: 2b01 cmp r3, #1 + 800531e: d101 bne.n 8005324 + 8005320: 2302 movs r3, #2 + 8005322: e065 b.n 80053f0 + 8005324: 687b ldr r3, [r7, #4] + 8005326: 2201 movs r2, #1 + 8005328: f883 203c strb.w r2, [r3, #60] @ 0x3c /* Change the handler state */ htim->State = HAL_TIM_STATE_BUSY; - 8004934: 687b ldr r3, [r7, #4] - 8004936: 2202 movs r2, #2 - 8004938: f883 203d strb.w r2, [r3, #61] @ 0x3d + 800532c: 687b ldr r3, [r7, #4] + 800532e: 2202 movs r2, #2 + 8005330: f883 203d strb.w r2, [r3, #61] @ 0x3d /* Get the TIMx CR2 register value */ tmpcr2 = htim->Instance->CR2; - 800493c: 687b ldr r3, [r7, #4] - 800493e: 681b ldr r3, [r3, #0] - 8004940: 685b ldr r3, [r3, #4] - 8004942: 60fb str r3, [r7, #12] + 8005334: 687b ldr r3, [r7, #4] + 8005336: 681b ldr r3, [r3, #0] + 8005338: 685b ldr r3, [r3, #4] + 800533a: 60fb str r3, [r7, #12] /* Get the TIMx SMCR register value */ tmpsmcr = htim->Instance->SMCR; - 8004944: 687b ldr r3, [r7, #4] - 8004946: 681b ldr r3, [r3, #0] - 8004948: 689b ldr r3, [r3, #8] - 800494a: 60bb str r3, [r7, #8] + 800533c: 687b ldr r3, [r7, #4] + 800533e: 681b ldr r3, [r3, #0] + 8005340: 689b ldr r3, [r3, #8] + 8005342: 60bb str r3, [r7, #8] /* If the timer supports ADC synchronization through TRGO2, set the master mode selection 2 */ if (IS_TIM_TRGO2_INSTANCE(htim->Instance)) - 800494c: 687b ldr r3, [r7, #4] - 800494e: 681b ldr r3, [r3, #0] - 8004950: 4a2c ldr r2, [pc, #176] @ (8004a04 ) - 8004952: 4293 cmp r3, r2 - 8004954: d004 beq.n 8004960 - 8004956: 687b ldr r3, [r7, #4] - 8004958: 681b ldr r3, [r3, #0] - 800495a: 4a2b ldr r2, [pc, #172] @ (8004a08 ) - 800495c: 4293 cmp r3, r2 - 800495e: d108 bne.n 8004972 + 8005344: 687b ldr r3, [r7, #4] + 8005346: 681b ldr r3, [r3, #0] + 8005348: 4a2c ldr r2, [pc, #176] @ (80053fc ) + 800534a: 4293 cmp r3, r2 + 800534c: d004 beq.n 8005358 + 800534e: 687b ldr r3, [r7, #4] + 8005350: 681b ldr r3, [r3, #0] + 8005352: 4a2b ldr r2, [pc, #172] @ (8005400 ) + 8005354: 4293 cmp r3, r2 + 8005356: d108 bne.n 800536a { /* Check the parameters */ assert_param(IS_TIM_TRGO2_SOURCE(sMasterConfig->MasterOutputTrigger2)); /* Clear the MMS2 bits */ tmpcr2 &= ~TIM_CR2_MMS2; - 8004960: 68fb ldr r3, [r7, #12] - 8004962: f423 0370 bic.w r3, r3, #15728640 @ 0xf00000 - 8004966: 60fb str r3, [r7, #12] + 8005358: 68fb ldr r3, [r7, #12] + 800535a: f423 0370 bic.w r3, r3, #15728640 @ 0xf00000 + 800535e: 60fb str r3, [r7, #12] /* Select the TRGO2 source*/ tmpcr2 |= sMasterConfig->MasterOutputTrigger2; - 8004968: 683b ldr r3, [r7, #0] - 800496a: 685b ldr r3, [r3, #4] - 800496c: 68fa ldr r2, [r7, #12] - 800496e: 4313 orrs r3, r2 - 8004970: 60fb str r3, [r7, #12] + 8005360: 683b ldr r3, [r7, #0] + 8005362: 685b ldr r3, [r3, #4] + 8005364: 68fa ldr r2, [r7, #12] + 8005366: 4313 orrs r3, r2 + 8005368: 60fb str r3, [r7, #12] } /* Reset the MMS Bits */ tmpcr2 &= ~TIM_CR2_MMS; - 8004972: 68fb ldr r3, [r7, #12] - 8004974: f023 7300 bic.w r3, r3, #33554432 @ 0x2000000 - 8004978: f023 0370 bic.w r3, r3, #112 @ 0x70 - 800497c: 60fb str r3, [r7, #12] + 800536a: 68fb ldr r3, [r7, #12] + 800536c: f023 7300 bic.w r3, r3, #33554432 @ 0x2000000 + 8005370: f023 0370 bic.w r3, r3, #112 @ 0x70 + 8005374: 60fb str r3, [r7, #12] /* Select the TRGO source */ tmpcr2 |= sMasterConfig->MasterOutputTrigger; - 800497e: 683b ldr r3, [r7, #0] - 8004980: 681b ldr r3, [r3, #0] - 8004982: 68fa ldr r2, [r7, #12] - 8004984: 4313 orrs r3, r2 - 8004986: 60fb str r3, [r7, #12] + 8005376: 683b ldr r3, [r7, #0] + 8005378: 681b ldr r3, [r3, #0] + 800537a: 68fa ldr r2, [r7, #12] + 800537c: 4313 orrs r3, r2 + 800537e: 60fb str r3, [r7, #12] /* Update TIMx CR2 */ htim->Instance->CR2 = tmpcr2; - 8004988: 687b ldr r3, [r7, #4] - 800498a: 681b ldr r3, [r3, #0] - 800498c: 68fa ldr r2, [r7, #12] - 800498e: 605a str r2, [r3, #4] + 8005380: 687b ldr r3, [r7, #4] + 8005382: 681b ldr r3, [r3, #0] + 8005384: 68fa ldr r2, [r7, #12] + 8005386: 605a str r2, [r3, #4] if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) - 8004990: 687b ldr r3, [r7, #4] - 8004992: 681b ldr r3, [r3, #0] - 8004994: 4a1b ldr r2, [pc, #108] @ (8004a04 ) - 8004996: 4293 cmp r3, r2 - 8004998: d018 beq.n 80049cc - 800499a: 687b ldr r3, [r7, #4] - 800499c: 681b ldr r3, [r3, #0] - 800499e: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 - 80049a2: d013 beq.n 80049cc - 80049a4: 687b ldr r3, [r7, #4] - 80049a6: 681b ldr r3, [r3, #0] - 80049a8: 4a18 ldr r2, [pc, #96] @ (8004a0c ) - 80049aa: 4293 cmp r3, r2 - 80049ac: d00e beq.n 80049cc - 80049ae: 687b ldr r3, [r7, #4] - 80049b0: 681b ldr r3, [r3, #0] - 80049b2: 4a17 ldr r2, [pc, #92] @ (8004a10 ) - 80049b4: 4293 cmp r3, r2 - 80049b6: d009 beq.n 80049cc - 80049b8: 687b ldr r3, [r7, #4] - 80049ba: 681b ldr r3, [r3, #0] - 80049bc: 4a12 ldr r2, [pc, #72] @ (8004a08 ) - 80049be: 4293 cmp r3, r2 - 80049c0: d004 beq.n 80049cc - 80049c2: 687b ldr r3, [r7, #4] - 80049c4: 681b ldr r3, [r3, #0] - 80049c6: 4a13 ldr r2, [pc, #76] @ (8004a14 ) - 80049c8: 4293 cmp r3, r2 - 80049ca: d10c bne.n 80049e6 + 8005388: 687b ldr r3, [r7, #4] + 800538a: 681b ldr r3, [r3, #0] + 800538c: 4a1b ldr r2, [pc, #108] @ (80053fc ) + 800538e: 4293 cmp r3, r2 + 8005390: d018 beq.n 80053c4 + 8005392: 687b ldr r3, [r7, #4] + 8005394: 681b ldr r3, [r3, #0] + 8005396: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 + 800539a: d013 beq.n 80053c4 + 800539c: 687b ldr r3, [r7, #4] + 800539e: 681b ldr r3, [r3, #0] + 80053a0: 4a18 ldr r2, [pc, #96] @ (8005404 ) + 80053a2: 4293 cmp r3, r2 + 80053a4: d00e beq.n 80053c4 + 80053a6: 687b ldr r3, [r7, #4] + 80053a8: 681b ldr r3, [r3, #0] + 80053aa: 4a17 ldr r2, [pc, #92] @ (8005408 ) + 80053ac: 4293 cmp r3, r2 + 80053ae: d009 beq.n 80053c4 + 80053b0: 687b ldr r3, [r7, #4] + 80053b2: 681b ldr r3, [r3, #0] + 80053b4: 4a12 ldr r2, [pc, #72] @ (8005400 ) + 80053b6: 4293 cmp r3, r2 + 80053b8: d004 beq.n 80053c4 + 80053ba: 687b ldr r3, [r7, #4] + 80053bc: 681b ldr r3, [r3, #0] + 80053be: 4a13 ldr r2, [pc, #76] @ (800540c ) + 80053c0: 4293 cmp r3, r2 + 80053c2: d10c bne.n 80053de { /* Reset the MSM Bit */ tmpsmcr &= ~TIM_SMCR_MSM; - 80049cc: 68bb ldr r3, [r7, #8] - 80049ce: f023 0380 bic.w r3, r3, #128 @ 0x80 - 80049d2: 60bb str r3, [r7, #8] + 80053c4: 68bb ldr r3, [r7, #8] + 80053c6: f023 0380 bic.w r3, r3, #128 @ 0x80 + 80053ca: 60bb str r3, [r7, #8] /* Set master mode */ tmpsmcr |= sMasterConfig->MasterSlaveMode; - 80049d4: 683b ldr r3, [r7, #0] - 80049d6: 689b ldr r3, [r3, #8] - 80049d8: 68ba ldr r2, [r7, #8] - 80049da: 4313 orrs r3, r2 - 80049dc: 60bb str r3, [r7, #8] + 80053cc: 683b ldr r3, [r7, #0] + 80053ce: 689b ldr r3, [r3, #8] + 80053d0: 68ba ldr r2, [r7, #8] + 80053d2: 4313 orrs r3, r2 + 80053d4: 60bb str r3, [r7, #8] /* Update TIMx SMCR */ htim->Instance->SMCR = tmpsmcr; - 80049de: 687b ldr r3, [r7, #4] - 80049e0: 681b ldr r3, [r3, #0] - 80049e2: 68ba ldr r2, [r7, #8] - 80049e4: 609a str r2, [r3, #8] + 80053d6: 687b ldr r3, [r7, #4] + 80053d8: 681b ldr r3, [r3, #0] + 80053da: 68ba ldr r2, [r7, #8] + 80053dc: 609a str r2, [r3, #8] } /* Change the htim state */ htim->State = HAL_TIM_STATE_READY; - 80049e6: 687b ldr r3, [r7, #4] - 80049e8: 2201 movs r2, #1 - 80049ea: f883 203d strb.w r2, [r3, #61] @ 0x3d + 80053de: 687b ldr r3, [r7, #4] + 80053e0: 2201 movs r2, #1 + 80053e2: f883 203d strb.w r2, [r3, #61] @ 0x3d __HAL_UNLOCK(htim); - 80049ee: 687b ldr r3, [r7, #4] - 80049f0: 2200 movs r2, #0 - 80049f2: f883 203c strb.w r2, [r3, #60] @ 0x3c + 80053e6: 687b ldr r3, [r7, #4] + 80053e8: 2200 movs r2, #0 + 80053ea: f883 203c strb.w r2, [r3, #60] @ 0x3c return HAL_OK; - 80049f6: 2300 movs r3, #0 + 80053ee: 2300 movs r3, #0 } - 80049f8: 4618 mov r0, r3 - 80049fa: 3714 adds r7, #20 - 80049fc: 46bd mov sp, r7 - 80049fe: f85d 7b04 ldr.w r7, [sp], #4 - 8004a02: 4770 bx lr - 8004a04: 40012c00 .word 0x40012c00 - 8004a08: 40013400 .word 0x40013400 - 8004a0c: 40000400 .word 0x40000400 - 8004a10: 40000800 .word 0x40000800 - 8004a14: 40014000 .word 0x40014000 + 80053f0: 4618 mov r0, r3 + 80053f2: 3714 adds r7, #20 + 80053f4: 46bd mov sp, r7 + 80053f6: f85d 7b04 ldr.w r7, [sp], #4 + 80053fa: 4770 bx lr + 80053fc: 40012c00 .word 0x40012c00 + 8005400: 40013400 .word 0x40013400 + 8005404: 40000400 .word 0x40000400 + 8005408: 40000800 .word 0x40000800 + 800540c: 40014000 .word 0x40014000 -08004a18 : +08005410 : * @brief Commutation callback in non-blocking mode * @param htim TIM handle * @retval None */ __weak void HAL_TIMEx_CommutCallback(TIM_HandleTypeDef *htim) { - 8004a18: b480 push {r7} - 8004a1a: b083 sub sp, #12 - 8004a1c: af00 add r7, sp, #0 - 8004a1e: 6078 str r0, [r7, #4] + 8005410: b480 push {r7} + 8005412: b083 sub sp, #12 + 8005414: af00 add r7, sp, #0 + 8005416: 6078 str r0, [r7, #4] UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIMEx_CommutCallback could be implemented in the user file */ } - 8004a20: bf00 nop - 8004a22: 370c adds r7, #12 - 8004a24: 46bd mov sp, r7 - 8004a26: f85d 7b04 ldr.w r7, [sp], #4 - 8004a2a: 4770 bx lr + 8005418: bf00 nop + 800541a: 370c adds r7, #12 + 800541c: 46bd mov sp, r7 + 800541e: f85d 7b04 ldr.w r7, [sp], #4 + 8005422: 4770 bx lr -08004a2c : +08005424 : * @brief Break detection callback in non-blocking mode * @param htim TIM handle * @retval None */ __weak void HAL_TIMEx_BreakCallback(TIM_HandleTypeDef *htim) { - 8004a2c: b480 push {r7} - 8004a2e: b083 sub sp, #12 - 8004a30: af00 add r7, sp, #0 - 8004a32: 6078 str r0, [r7, #4] + 8005424: b480 push {r7} + 8005426: b083 sub sp, #12 + 8005428: af00 add r7, sp, #0 + 800542a: 6078 str r0, [r7, #4] UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIMEx_BreakCallback could be implemented in the user file */ } - 8004a34: bf00 nop - 8004a36: 370c adds r7, #12 - 8004a38: 46bd mov sp, r7 - 8004a3a: f85d 7b04 ldr.w r7, [sp], #4 - 8004a3e: 4770 bx lr + 800542c: bf00 nop + 800542e: 370c adds r7, #12 + 8005430: 46bd mov sp, r7 + 8005432: f85d 7b04 ldr.w r7, [sp], #4 + 8005436: 4770 bx lr -08004a40 : +08005438 : * @brief Break2 detection callback in non blocking mode * @param htim: TIM handle * @retval None */ __weak void HAL_TIMEx_Break2Callback(TIM_HandleTypeDef *htim) { - 8004a40: b480 push {r7} - 8004a42: b083 sub sp, #12 - 8004a44: af00 add r7, sp, #0 - 8004a46: 6078 str r0, [r7, #4] + 8005438: b480 push {r7} + 800543a: b083 sub sp, #12 + 800543c: af00 add r7, sp, #0 + 800543e: 6078 str r0, [r7, #4] UNUSED(htim); /* NOTE : This function Should not be modified, when the callback is needed, the HAL_TIMEx_Break2Callback could be implemented in the user file */ } - 8004a48: bf00 nop - 8004a4a: 370c adds r7, #12 - 8004a4c: 46bd mov sp, r7 - 8004a4e: f85d 7b04 ldr.w r7, [sp], #4 - 8004a52: 4770 bx lr + 8005440: bf00 nop + 8005442: 370c adds r7, #12 + 8005444: 46bd mov sp, r7 + 8005446: f85d 7b04 ldr.w r7, [sp], #4 + 800544a: 4770 bx lr -08004a54 : +0800544c : * @brief Encoder index callback in non-blocking mode * @param htim TIM handle * @retval None */ __weak void HAL_TIMEx_EncoderIndexCallback(TIM_HandleTypeDef *htim) { - 8004a54: b480 push {r7} - 8004a56: b083 sub sp, #12 - 8004a58: af00 add r7, sp, #0 - 8004a5a: 6078 str r0, [r7, #4] + 800544c: b480 push {r7} + 800544e: b083 sub sp, #12 + 8005450: af00 add r7, sp, #0 + 8005452: 6078 str r0, [r7, #4] UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIMEx_EncoderIndexCallback could be implemented in the user file */ } - 8004a5c: bf00 nop - 8004a5e: 370c adds r7, #12 - 8004a60: 46bd mov sp, r7 - 8004a62: f85d 7b04 ldr.w r7, [sp], #4 - 8004a66: 4770 bx lr + 8005454: bf00 nop + 8005456: 370c adds r7, #12 + 8005458: 46bd mov sp, r7 + 800545a: f85d 7b04 ldr.w r7, [sp], #4 + 800545e: 4770 bx lr -08004a68 : +08005460 : * @brief Direction change callback in non-blocking mode * @param htim TIM handle * @retval None */ __weak void HAL_TIMEx_DirectionChangeCallback(TIM_HandleTypeDef *htim) { - 8004a68: b480 push {r7} - 8004a6a: b083 sub sp, #12 - 8004a6c: af00 add r7, sp, #0 - 8004a6e: 6078 str r0, [r7, #4] + 8005460: b480 push {r7} + 8005462: b083 sub sp, #12 + 8005464: af00 add r7, sp, #0 + 8005466: 6078 str r0, [r7, #4] UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIMEx_DirectionChangeCallback could be implemented in the user file */ } - 8004a70: bf00 nop - 8004a72: 370c adds r7, #12 - 8004a74: 46bd mov sp, r7 - 8004a76: f85d 7b04 ldr.w r7, [sp], #4 - 8004a7a: 4770 bx lr + 8005468: bf00 nop + 800546a: 370c adds r7, #12 + 800546c: 46bd mov sp, r7 + 800546e: f85d 7b04 ldr.w r7, [sp], #4 + 8005472: 4770 bx lr -08004a7c : +08005474 : * @brief Index error callback in non-blocking mode * @param htim TIM handle * @retval None */ __weak void HAL_TIMEx_IndexErrorCallback(TIM_HandleTypeDef *htim) { - 8004a7c: b480 push {r7} - 8004a7e: b083 sub sp, #12 - 8004a80: af00 add r7, sp, #0 - 8004a82: 6078 str r0, [r7, #4] + 8005474: b480 push {r7} + 8005476: b083 sub sp, #12 + 8005478: af00 add r7, sp, #0 + 800547a: 6078 str r0, [r7, #4] UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIMEx_IndexErrorCallback could be implemented in the user file */ } - 8004a84: bf00 nop - 8004a86: 370c adds r7, #12 - 8004a88: 46bd mov sp, r7 - 8004a8a: f85d 7b04 ldr.w r7, [sp], #4 - 8004a8e: 4770 bx lr + 800547c: bf00 nop + 800547e: 370c adds r7, #12 + 8005480: 46bd mov sp, r7 + 8005482: f85d 7b04 ldr.w r7, [sp], #4 + 8005486: 4770 bx lr -08004a90 : +08005488 : * @brief Transition error callback in non-blocking mode * @param htim TIM handle * @retval None */ __weak void HAL_TIMEx_TransitionErrorCallback(TIM_HandleTypeDef *htim) { - 8004a90: b480 push {r7} - 8004a92: b083 sub sp, #12 - 8004a94: af00 add r7, sp, #0 - 8004a96: 6078 str r0, [r7, #4] + 8005488: b480 push {r7} + 800548a: b083 sub sp, #12 + 800548c: af00 add r7, sp, #0 + 800548e: 6078 str r0, [r7, #4] UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIMEx_TransitionErrorCallback could be implemented in the user file */ } - 8004a98: bf00 nop - 8004a9a: 370c adds r7, #12 - 8004a9c: 46bd mov sp, r7 - 8004a9e: f85d 7b04 ldr.w r7, [sp], #4 - 8004aa2: 4770 bx lr + 8005490: bf00 nop + 8005492: 370c adds r7, #12 + 8005494: 46bd mov sp, r7 + 8005496: f85d 7b04 ldr.w r7, [sp], #4 + 800549a: 4770 bx lr -08004aa4 : +0800549c : * parameters in the UART_InitTypeDef and initialize the associated handle. * @param huart UART handle. * @retval HAL status */ HAL_StatusTypeDef HAL_UART_Init(UART_HandleTypeDef *huart) { - 8004aa4: b580 push {r7, lr} - 8004aa6: b082 sub sp, #8 - 8004aa8: af00 add r7, sp, #0 - 8004aaa: 6078 str r0, [r7, #4] + 800549c: b580 push {r7, lr} + 800549e: b082 sub sp, #8 + 80054a0: af00 add r7, sp, #0 + 80054a2: 6078 str r0, [r7, #4] /* Check the UART handle allocation */ if (huart == NULL) - 8004aac: 687b ldr r3, [r7, #4] - 8004aae: 2b00 cmp r3, #0 - 8004ab0: d101 bne.n 8004ab6 + 80054a4: 687b ldr r3, [r7, #4] + 80054a6: 2b00 cmp r3, #0 + 80054a8: d101 bne.n 80054ae { return HAL_ERROR; - 8004ab2: 2301 movs r3, #1 - 8004ab4: e042 b.n 8004b3c + 80054aa: 2301 movs r3, #1 + 80054ac: e042 b.n 8005534 { /* Check the parameters */ assert_param((IS_UART_INSTANCE(huart->Instance)) || (IS_LPUART_INSTANCE(huart->Instance))); } if (huart->gState == HAL_UART_STATE_RESET) - 8004ab6: 687b ldr r3, [r7, #4] - 8004ab8: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 - 8004abc: 2b00 cmp r3, #0 - 8004abe: d106 bne.n 8004ace + 80054ae: 687b ldr r3, [r7, #4] + 80054b0: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 + 80054b4: 2b00 cmp r3, #0 + 80054b6: d106 bne.n 80054c6 { /* Allocate lock resource and initialize it */ huart->Lock = HAL_UNLOCKED; - 8004ac0: 687b ldr r3, [r7, #4] - 8004ac2: 2200 movs r2, #0 - 8004ac4: f883 2084 strb.w r2, [r3, #132] @ 0x84 + 80054b8: 687b ldr r3, [r7, #4] + 80054ba: 2200 movs r2, #0 + 80054bc: f883 2084 strb.w r2, [r3, #132] @ 0x84 /* Init the low level hardware */ huart->MspInitCallback(huart); #else /* Init the low level hardware : GPIO, CLOCK */ HAL_UART_MspInit(huart); - 8004ac8: 6878 ldr r0, [r7, #4] - 8004aca: f7fc fa5d bl 8000f88 + 80054c0: 6878 ldr r0, [r7, #4] + 80054c2: f7fc f9cf bl 8001864 #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */ } huart->gState = HAL_UART_STATE_BUSY; - 8004ace: 687b ldr r3, [r7, #4] - 8004ad0: 2224 movs r2, #36 @ 0x24 - 8004ad2: f8c3 2088 str.w r2, [r3, #136] @ 0x88 + 80054c6: 687b ldr r3, [r7, #4] + 80054c8: 2224 movs r2, #36 @ 0x24 + 80054ca: f8c3 2088 str.w r2, [r3, #136] @ 0x88 __HAL_UART_DISABLE(huart); - 8004ad6: 687b ldr r3, [r7, #4] - 8004ad8: 681b ldr r3, [r3, #0] - 8004ada: 681a ldr r2, [r3, #0] - 8004adc: 687b ldr r3, [r7, #4] - 8004ade: 681b ldr r3, [r3, #0] - 8004ae0: f022 0201 bic.w r2, r2, #1 - 8004ae4: 601a str r2, [r3, #0] + 80054ce: 687b ldr r3, [r7, #4] + 80054d0: 681b ldr r3, [r3, #0] + 80054d2: 681a ldr r2, [r3, #0] + 80054d4: 687b ldr r3, [r7, #4] + 80054d6: 681b ldr r3, [r3, #0] + 80054d8: f022 0201 bic.w r2, r2, #1 + 80054dc: 601a str r2, [r3, #0] /* Perform advanced settings configuration */ /* For some items, configuration requires to be done prior TE and RE bits are set */ if (huart->AdvancedInit.AdvFeatureInit != UART_ADVFEATURE_NO_INIT) - 8004ae6: 687b ldr r3, [r7, #4] - 8004ae8: 6a9b ldr r3, [r3, #40] @ 0x28 - 8004aea: 2b00 cmp r3, #0 - 8004aec: d002 beq.n 8004af4 + 80054de: 687b ldr r3, [r7, #4] + 80054e0: 6a9b ldr r3, [r3, #40] @ 0x28 + 80054e2: 2b00 cmp r3, #0 + 80054e4: d002 beq.n 80054ec { UART_AdvFeatureConfig(huart); - 8004aee: 6878 ldr r0, [r7, #4] - 8004af0: f000 ff26 bl 8005940 + 80054e6: 6878 ldr r0, [r7, #4] + 80054e8: f000 ff26 bl 8006338 } /* Set the UART Communication parameters */ if (UART_SetConfig(huart) == HAL_ERROR) - 8004af4: 6878 ldr r0, [r7, #4] - 8004af6: f000 fc57 bl 80053a8 - 8004afa: 4603 mov r3, r0 - 8004afc: 2b01 cmp r3, #1 - 8004afe: d101 bne.n 8004b04 + 80054ec: 6878 ldr r0, [r7, #4] + 80054ee: f000 fc57 bl 8005da0 + 80054f2: 4603 mov r3, r0 + 80054f4: 2b01 cmp r3, #1 + 80054f6: d101 bne.n 80054fc { return HAL_ERROR; - 8004b00: 2301 movs r3, #1 - 8004b02: e01b b.n 8004b3c + 80054f8: 2301 movs r3, #1 + 80054fa: e01b b.n 8005534 } /* In asynchronous mode, the following bits must be kept cleared: - LINEN and CLKEN bits in the USART_CR2 register, - SCEN, HDSEL and IREN bits in the USART_CR3 register.*/ CLEAR_BIT(huart->Instance->CR2, (USART_CR2_LINEN | USART_CR2_CLKEN)); - 8004b04: 687b ldr r3, [r7, #4] - 8004b06: 681b ldr r3, [r3, #0] - 8004b08: 685a ldr r2, [r3, #4] - 8004b0a: 687b ldr r3, [r7, #4] - 8004b0c: 681b ldr r3, [r3, #0] - 8004b0e: f422 4290 bic.w r2, r2, #18432 @ 0x4800 - 8004b12: 605a str r2, [r3, #4] + 80054fc: 687b ldr r3, [r7, #4] + 80054fe: 681b ldr r3, [r3, #0] + 8005500: 685a ldr r2, [r3, #4] + 8005502: 687b ldr r3, [r7, #4] + 8005504: 681b ldr r3, [r3, #0] + 8005506: f422 4290 bic.w r2, r2, #18432 @ 0x4800 + 800550a: 605a str r2, [r3, #4] CLEAR_BIT(huart->Instance->CR3, (USART_CR3_SCEN | USART_CR3_HDSEL | USART_CR3_IREN)); - 8004b14: 687b ldr r3, [r7, #4] - 8004b16: 681b ldr r3, [r3, #0] - 8004b18: 689a ldr r2, [r3, #8] - 8004b1a: 687b ldr r3, [r7, #4] - 8004b1c: 681b ldr r3, [r3, #0] - 8004b1e: f022 022a bic.w r2, r2, #42 @ 0x2a - 8004b22: 609a str r2, [r3, #8] + 800550c: 687b ldr r3, [r7, #4] + 800550e: 681b ldr r3, [r3, #0] + 8005510: 689a ldr r2, [r3, #8] + 8005512: 687b ldr r3, [r7, #4] + 8005514: 681b ldr r3, [r3, #0] + 8005516: f022 022a bic.w r2, r2, #42 @ 0x2a + 800551a: 609a str r2, [r3, #8] __HAL_UART_ENABLE(huart); - 8004b24: 687b ldr r3, [r7, #4] - 8004b26: 681b ldr r3, [r3, #0] - 8004b28: 681a ldr r2, [r3, #0] - 8004b2a: 687b ldr r3, [r7, #4] - 8004b2c: 681b ldr r3, [r3, #0] - 8004b2e: f042 0201 orr.w r2, r2, #1 - 8004b32: 601a str r2, [r3, #0] + 800551c: 687b ldr r3, [r7, #4] + 800551e: 681b ldr r3, [r3, #0] + 8005520: 681a ldr r2, [r3, #0] + 8005522: 687b ldr r3, [r7, #4] + 8005524: 681b ldr r3, [r3, #0] + 8005526: f042 0201 orr.w r2, r2, #1 + 800552a: 601a str r2, [r3, #0] /* TEACK and/or REACK to check before moving huart->gState and huart->RxState to Ready */ return (UART_CheckIdleState(huart)); - 8004b34: 6878 ldr r0, [r7, #4] - 8004b36: f000 ffa5 bl 8005a84 - 8004b3a: 4603 mov r3, r0 + 800552c: 6878 ldr r0, [r7, #4] + 800552e: f000 ffa5 bl 800647c + 8005532: 4603 mov r3, r0 } - 8004b3c: 4618 mov r0, r3 - 8004b3e: 3708 adds r7, #8 - 8004b40: 46bd mov sp, r7 - 8004b42: bd80 pop {r7, pc} + 8005534: 4618 mov r0, r3 + 8005536: 3708 adds r7, #8 + 8005538: 46bd mov sp, r7 + 800553a: bd80 pop {r7, pc} -08004b44 : +0800553c : * @param Size Amount of data elements (u8 or u16) to be sent. * @param Timeout Timeout duration. * @retval HAL status */ HAL_StatusTypeDef HAL_UART_Transmit(UART_HandleTypeDef *huart, const uint8_t *pData, uint16_t Size, uint32_t Timeout) { - 8004b44: b580 push {r7, lr} - 8004b46: b08a sub sp, #40 @ 0x28 - 8004b48: af02 add r7, sp, #8 - 8004b4a: 60f8 str r0, [r7, #12] - 8004b4c: 60b9 str r1, [r7, #8] - 8004b4e: 603b str r3, [r7, #0] - 8004b50: 4613 mov r3, r2 - 8004b52: 80fb strh r3, [r7, #6] + 800553c: b580 push {r7, lr} + 800553e: b08a sub sp, #40 @ 0x28 + 8005540: af02 add r7, sp, #8 + 8005542: 60f8 str r0, [r7, #12] + 8005544: 60b9 str r1, [r7, #8] + 8005546: 603b str r3, [r7, #0] + 8005548: 4613 mov r3, r2 + 800554a: 80fb strh r3, [r7, #6] const uint8_t *pdata8bits; const uint16_t *pdata16bits; uint32_t tickstart; /* Check that a Tx process is not already ongoing */ if (huart->gState == HAL_UART_STATE_READY) - 8004b54: 68fb ldr r3, [r7, #12] - 8004b56: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 - 8004b5a: 2b20 cmp r3, #32 - 8004b5c: d17b bne.n 8004c56 + 800554c: 68fb ldr r3, [r7, #12] + 800554e: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 + 8005552: 2b20 cmp r3, #32 + 8005554: d17b bne.n 800564e { if ((pData == NULL) || (Size == 0U)) - 8004b5e: 68bb ldr r3, [r7, #8] - 8004b60: 2b00 cmp r3, #0 - 8004b62: d002 beq.n 8004b6a - 8004b64: 88fb ldrh r3, [r7, #6] - 8004b66: 2b00 cmp r3, #0 - 8004b68: d101 bne.n 8004b6e + 8005556: 68bb ldr r3, [r7, #8] + 8005558: 2b00 cmp r3, #0 + 800555a: d002 beq.n 8005562 + 800555c: 88fb ldrh r3, [r7, #6] + 800555e: 2b00 cmp r3, #0 + 8005560: d101 bne.n 8005566 { return HAL_ERROR; - 8004b6a: 2301 movs r3, #1 - 8004b6c: e074 b.n 8004c58 + 8005562: 2301 movs r3, #1 + 8005564: e074 b.n 8005650 } huart->ErrorCode = HAL_UART_ERROR_NONE; - 8004b6e: 68fb ldr r3, [r7, #12] - 8004b70: 2200 movs r2, #0 - 8004b72: f8c3 2090 str.w r2, [r3, #144] @ 0x90 + 8005566: 68fb ldr r3, [r7, #12] + 8005568: 2200 movs r2, #0 + 800556a: f8c3 2090 str.w r2, [r3, #144] @ 0x90 huart->gState = HAL_UART_STATE_BUSY_TX; - 8004b76: 68fb ldr r3, [r7, #12] - 8004b78: 2221 movs r2, #33 @ 0x21 - 8004b7a: f8c3 2088 str.w r2, [r3, #136] @ 0x88 + 800556e: 68fb ldr r3, [r7, #12] + 8005570: 2221 movs r2, #33 @ 0x21 + 8005572: f8c3 2088 str.w r2, [r3, #136] @ 0x88 /* Init tickstart for timeout management */ tickstart = HAL_GetTick(); - 8004b7e: f7fc fb47 bl 8001210 - 8004b82: 6178 str r0, [r7, #20] + 8005576: f7fc fab9 bl 8001aec + 800557a: 6178 str r0, [r7, #20] huart->TxXferSize = Size; - 8004b84: 68fb ldr r3, [r7, #12] - 8004b86: 88fa ldrh r2, [r7, #6] - 8004b88: f8a3 2054 strh.w r2, [r3, #84] @ 0x54 + 800557c: 68fb ldr r3, [r7, #12] + 800557e: 88fa ldrh r2, [r7, #6] + 8005580: f8a3 2054 strh.w r2, [r3, #84] @ 0x54 huart->TxXferCount = Size; - 8004b8c: 68fb ldr r3, [r7, #12] - 8004b8e: 88fa ldrh r2, [r7, #6] - 8004b90: f8a3 2056 strh.w r2, [r3, #86] @ 0x56 + 8005584: 68fb ldr r3, [r7, #12] + 8005586: 88fa ldrh r2, [r7, #6] + 8005588: f8a3 2056 strh.w r2, [r3, #86] @ 0x56 /* In case of 9bits/No Parity transfer, pData needs to be handled as a uint16_t pointer */ if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE)) - 8004b94: 68fb ldr r3, [r7, #12] - 8004b96: 689b ldr r3, [r3, #8] - 8004b98: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 - 8004b9c: d108 bne.n 8004bb0 - 8004b9e: 68fb ldr r3, [r7, #12] - 8004ba0: 691b ldr r3, [r3, #16] - 8004ba2: 2b00 cmp r3, #0 - 8004ba4: d104 bne.n 8004bb0 + 800558c: 68fb ldr r3, [r7, #12] + 800558e: 689b ldr r3, [r3, #8] + 8005590: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 + 8005594: d108 bne.n 80055a8 + 8005596: 68fb ldr r3, [r7, #12] + 8005598: 691b ldr r3, [r3, #16] + 800559a: 2b00 cmp r3, #0 + 800559c: d104 bne.n 80055a8 { pdata8bits = NULL; - 8004ba6: 2300 movs r3, #0 - 8004ba8: 61fb str r3, [r7, #28] + 800559e: 2300 movs r3, #0 + 80055a0: 61fb str r3, [r7, #28] pdata16bits = (const uint16_t *) pData; - 8004baa: 68bb ldr r3, [r7, #8] - 8004bac: 61bb str r3, [r7, #24] - 8004bae: e003 b.n 8004bb8 + 80055a2: 68bb ldr r3, [r7, #8] + 80055a4: 61bb str r3, [r7, #24] + 80055a6: e003 b.n 80055b0 } else { pdata8bits = pData; - 8004bb0: 68bb ldr r3, [r7, #8] - 8004bb2: 61fb str r3, [r7, #28] + 80055a8: 68bb ldr r3, [r7, #8] + 80055aa: 61fb str r3, [r7, #28] pdata16bits = NULL; - 8004bb4: 2300 movs r3, #0 - 8004bb6: 61bb str r3, [r7, #24] + 80055ac: 2300 movs r3, #0 + 80055ae: 61bb str r3, [r7, #24] } while (huart->TxXferCount > 0U) - 8004bb8: e030 b.n 8004c1c + 80055b0: e030 b.n 8005614 { if (UART_WaitOnFlagUntilTimeout(huart, UART_FLAG_TXE, RESET, tickstart, Timeout) != HAL_OK) - 8004bba: 683b ldr r3, [r7, #0] - 8004bbc: 9300 str r3, [sp, #0] - 8004bbe: 697b ldr r3, [r7, #20] - 8004bc0: 2200 movs r2, #0 - 8004bc2: 2180 movs r1, #128 @ 0x80 - 8004bc4: 68f8 ldr r0, [r7, #12] - 8004bc6: f001 f807 bl 8005bd8 - 8004bca: 4603 mov r3, r0 - 8004bcc: 2b00 cmp r3, #0 - 8004bce: d005 beq.n 8004bdc + 80055b2: 683b ldr r3, [r7, #0] + 80055b4: 9300 str r3, [sp, #0] + 80055b6: 697b ldr r3, [r7, #20] + 80055b8: 2200 movs r2, #0 + 80055ba: 2180 movs r1, #128 @ 0x80 + 80055bc: 68f8 ldr r0, [r7, #12] + 80055be: f001 f807 bl 80065d0 + 80055c2: 4603 mov r3, r0 + 80055c4: 2b00 cmp r3, #0 + 80055c6: d005 beq.n 80055d4 { huart->gState = HAL_UART_STATE_READY; - 8004bd0: 68fb ldr r3, [r7, #12] - 8004bd2: 2220 movs r2, #32 - 8004bd4: f8c3 2088 str.w r2, [r3, #136] @ 0x88 + 80055c8: 68fb ldr r3, [r7, #12] + 80055ca: 2220 movs r2, #32 + 80055cc: f8c3 2088 str.w r2, [r3, #136] @ 0x88 return HAL_TIMEOUT; - 8004bd8: 2303 movs r3, #3 - 8004bda: e03d b.n 8004c58 + 80055d0: 2303 movs r3, #3 + 80055d2: e03d b.n 8005650 } if (pdata8bits == NULL) - 8004bdc: 69fb ldr r3, [r7, #28] - 8004bde: 2b00 cmp r3, #0 - 8004be0: d10b bne.n 8004bfa + 80055d4: 69fb ldr r3, [r7, #28] + 80055d6: 2b00 cmp r3, #0 + 80055d8: d10b bne.n 80055f2 { huart->Instance->TDR = (uint16_t)(*pdata16bits & 0x01FFU); - 8004be2: 69bb ldr r3, [r7, #24] - 8004be4: 881b ldrh r3, [r3, #0] - 8004be6: 461a mov r2, r3 - 8004be8: 68fb ldr r3, [r7, #12] - 8004bea: 681b ldr r3, [r3, #0] - 8004bec: f3c2 0208 ubfx r2, r2, #0, #9 - 8004bf0: 629a str r2, [r3, #40] @ 0x28 + 80055da: 69bb ldr r3, [r7, #24] + 80055dc: 881b ldrh r3, [r3, #0] + 80055de: 461a mov r2, r3 + 80055e0: 68fb ldr r3, [r7, #12] + 80055e2: 681b ldr r3, [r3, #0] + 80055e4: f3c2 0208 ubfx r2, r2, #0, #9 + 80055e8: 629a str r2, [r3, #40] @ 0x28 pdata16bits++; - 8004bf2: 69bb ldr r3, [r7, #24] - 8004bf4: 3302 adds r3, #2 - 8004bf6: 61bb str r3, [r7, #24] - 8004bf8: e007 b.n 8004c0a + 80055ea: 69bb ldr r3, [r7, #24] + 80055ec: 3302 adds r3, #2 + 80055ee: 61bb str r3, [r7, #24] + 80055f0: e007 b.n 8005602 } else { huart->Instance->TDR = (uint8_t)(*pdata8bits & 0xFFU); - 8004bfa: 69fb ldr r3, [r7, #28] - 8004bfc: 781a ldrb r2, [r3, #0] - 8004bfe: 68fb ldr r3, [r7, #12] - 8004c00: 681b ldr r3, [r3, #0] - 8004c02: 629a str r2, [r3, #40] @ 0x28 + 80055f2: 69fb ldr r3, [r7, #28] + 80055f4: 781a ldrb r2, [r3, #0] + 80055f6: 68fb ldr r3, [r7, #12] + 80055f8: 681b ldr r3, [r3, #0] + 80055fa: 629a str r2, [r3, #40] @ 0x28 pdata8bits++; - 8004c04: 69fb ldr r3, [r7, #28] - 8004c06: 3301 adds r3, #1 - 8004c08: 61fb str r3, [r7, #28] + 80055fc: 69fb ldr r3, [r7, #28] + 80055fe: 3301 adds r3, #1 + 8005600: 61fb str r3, [r7, #28] } huart->TxXferCount--; - 8004c0a: 68fb ldr r3, [r7, #12] - 8004c0c: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56 - 8004c10: b29b uxth r3, r3 - 8004c12: 3b01 subs r3, #1 - 8004c14: b29a uxth r2, r3 - 8004c16: 68fb ldr r3, [r7, #12] - 8004c18: f8a3 2056 strh.w r2, [r3, #86] @ 0x56 + 8005602: 68fb ldr r3, [r7, #12] + 8005604: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56 + 8005608: b29b uxth r3, r3 + 800560a: 3b01 subs r3, #1 + 800560c: b29a uxth r2, r3 + 800560e: 68fb ldr r3, [r7, #12] + 8005610: f8a3 2056 strh.w r2, [r3, #86] @ 0x56 while (huart->TxXferCount > 0U) - 8004c1c: 68fb ldr r3, [r7, #12] - 8004c1e: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56 - 8004c22: b29b uxth r3, r3 - 8004c24: 2b00 cmp r3, #0 - 8004c26: d1c8 bne.n 8004bba + 8005614: 68fb ldr r3, [r7, #12] + 8005616: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56 + 800561a: b29b uxth r3, r3 + 800561c: 2b00 cmp r3, #0 + 800561e: d1c8 bne.n 80055b2 } if (UART_WaitOnFlagUntilTimeout(huart, UART_FLAG_TC, RESET, tickstart, Timeout) != HAL_OK) - 8004c28: 683b ldr r3, [r7, #0] - 8004c2a: 9300 str r3, [sp, #0] - 8004c2c: 697b ldr r3, [r7, #20] - 8004c2e: 2200 movs r2, #0 - 8004c30: 2140 movs r1, #64 @ 0x40 - 8004c32: 68f8 ldr r0, [r7, #12] - 8004c34: f000 ffd0 bl 8005bd8 - 8004c38: 4603 mov r3, r0 - 8004c3a: 2b00 cmp r3, #0 - 8004c3c: d005 beq.n 8004c4a + 8005620: 683b ldr r3, [r7, #0] + 8005622: 9300 str r3, [sp, #0] + 8005624: 697b ldr r3, [r7, #20] + 8005626: 2200 movs r2, #0 + 8005628: 2140 movs r1, #64 @ 0x40 + 800562a: 68f8 ldr r0, [r7, #12] + 800562c: f000 ffd0 bl 80065d0 + 8005630: 4603 mov r3, r0 + 8005632: 2b00 cmp r3, #0 + 8005634: d005 beq.n 8005642 { huart->gState = HAL_UART_STATE_READY; - 8004c3e: 68fb ldr r3, [r7, #12] - 8004c40: 2220 movs r2, #32 - 8004c42: f8c3 2088 str.w r2, [r3, #136] @ 0x88 + 8005636: 68fb ldr r3, [r7, #12] + 8005638: 2220 movs r2, #32 + 800563a: f8c3 2088 str.w r2, [r3, #136] @ 0x88 return HAL_TIMEOUT; - 8004c46: 2303 movs r3, #3 - 8004c48: e006 b.n 8004c58 + 800563e: 2303 movs r3, #3 + 8005640: e006 b.n 8005650 } /* At end of Tx process, restore huart->gState to Ready */ huart->gState = HAL_UART_STATE_READY; - 8004c4a: 68fb ldr r3, [r7, #12] - 8004c4c: 2220 movs r2, #32 - 8004c4e: f8c3 2088 str.w r2, [r3, #136] @ 0x88 + 8005642: 68fb ldr r3, [r7, #12] + 8005644: 2220 movs r2, #32 + 8005646: f8c3 2088 str.w r2, [r3, #136] @ 0x88 return HAL_OK; - 8004c52: 2300 movs r3, #0 - 8004c54: e000 b.n 8004c58 + 800564a: 2300 movs r3, #0 + 800564c: e000 b.n 8005650 } else { return HAL_BUSY; - 8004c56: 2302 movs r3, #2 + 800564e: 2302 movs r3, #2 } } - 8004c58: 4618 mov r0, r3 - 8004c5a: 3720 adds r7, #32 - 8004c5c: 46bd mov sp, r7 - 8004c5e: bd80 pop {r7, pc} + 8005650: 4618 mov r0, r3 + 8005652: 3720 adds r7, #32 + 8005654: 46bd mov sp, r7 + 8005656: bd80 pop {r7, pc} -08004c60 : +08005658 : * @param pData Pointer to data buffer (u8 or u16 data elements). * @param Size Amount of data elements (u8 or u16) to be received. * @retval HAL status */ HAL_StatusTypeDef HAL_UART_Receive_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size) { - 8004c60: b580 push {r7, lr} - 8004c62: b08a sub sp, #40 @ 0x28 - 8004c64: af00 add r7, sp, #0 - 8004c66: 60f8 str r0, [r7, #12] - 8004c68: 60b9 str r1, [r7, #8] - 8004c6a: 4613 mov r3, r2 - 8004c6c: 80fb strh r3, [r7, #6] + 8005658: b580 push {r7, lr} + 800565a: b08a sub sp, #40 @ 0x28 + 800565c: af00 add r7, sp, #0 + 800565e: 60f8 str r0, [r7, #12] + 8005660: 60b9 str r1, [r7, #8] + 8005662: 4613 mov r3, r2 + 8005664: 80fb strh r3, [r7, #6] /* Check that a Rx process is not already ongoing */ if (huart->RxState == HAL_UART_STATE_READY) - 8004c6e: 68fb ldr r3, [r7, #12] - 8004c70: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c - 8004c74: 2b20 cmp r3, #32 - 8004c76: d137 bne.n 8004ce8 + 8005666: 68fb ldr r3, [r7, #12] + 8005668: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c + 800566c: 2b20 cmp r3, #32 + 800566e: d137 bne.n 80056e0 { if ((pData == NULL) || (Size == 0U)) - 8004c78: 68bb ldr r3, [r7, #8] - 8004c7a: 2b00 cmp r3, #0 - 8004c7c: d002 beq.n 8004c84 - 8004c7e: 88fb ldrh r3, [r7, #6] - 8004c80: 2b00 cmp r3, #0 - 8004c82: d101 bne.n 8004c88 + 8005670: 68bb ldr r3, [r7, #8] + 8005672: 2b00 cmp r3, #0 + 8005674: d002 beq.n 800567c + 8005676: 88fb ldrh r3, [r7, #6] + 8005678: 2b00 cmp r3, #0 + 800567a: d101 bne.n 8005680 { return HAL_ERROR; - 8004c84: 2301 movs r3, #1 - 8004c86: e030 b.n 8004cea + 800567c: 2301 movs r3, #1 + 800567e: e030 b.n 80056e2 } /* Set Reception type to Standard reception */ huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; - 8004c88: 68fb ldr r3, [r7, #12] - 8004c8a: 2200 movs r2, #0 - 8004c8c: 66da str r2, [r3, #108] @ 0x6c + 8005680: 68fb ldr r3, [r7, #12] + 8005682: 2200 movs r2, #0 + 8005684: 66da str r2, [r3, #108] @ 0x6c if (!(IS_LPUART_INSTANCE(huart->Instance))) - 8004c8e: 68fb ldr r3, [r7, #12] - 8004c90: 681b ldr r3, [r3, #0] - 8004c92: 4a18 ldr r2, [pc, #96] @ (8004cf4 ) - 8004c94: 4293 cmp r3, r2 - 8004c96: d01f beq.n 8004cd8 + 8005686: 68fb ldr r3, [r7, #12] + 8005688: 681b ldr r3, [r3, #0] + 800568a: 4a18 ldr r2, [pc, #96] @ (80056ec ) + 800568c: 4293 cmp r3, r2 + 800568e: d01f beq.n 80056d0 { /* Check that USART RTOEN bit is set */ if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U) - 8004c98: 68fb ldr r3, [r7, #12] - 8004c9a: 681b ldr r3, [r3, #0] - 8004c9c: 685b ldr r3, [r3, #4] - 8004c9e: f403 0300 and.w r3, r3, #8388608 @ 0x800000 - 8004ca2: 2b00 cmp r3, #0 - 8004ca4: d018 beq.n 8004cd8 + 8005690: 68fb ldr r3, [r7, #12] + 8005692: 681b ldr r3, [r3, #0] + 8005694: 685b ldr r3, [r3, #4] + 8005696: f403 0300 and.w r3, r3, #8388608 @ 0x800000 + 800569a: 2b00 cmp r3, #0 + 800569c: d018 beq.n 80056d0 { /* Enable the UART Receiver Timeout Interrupt */ ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_RTOIE); - 8004ca6: 68fb ldr r3, [r7, #12] - 8004ca8: 681b ldr r3, [r3, #0] - 8004caa: 617b str r3, [r7, #20] + 800569e: 68fb ldr r3, [r7, #12] + 80056a0: 681b ldr r3, [r3, #0] + 80056a2: 617b str r3, [r7, #20] */ __STATIC_FORCEINLINE uint32_t __LDREXW(volatile uint32_t *addr) { uint32_t result; __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8004cac: 697b ldr r3, [r7, #20] - 8004cae: e853 3f00 ldrex r3, [r3] - 8004cb2: 613b str r3, [r7, #16] + 80056a4: 697b ldr r3, [r7, #20] + 80056a6: e853 3f00 ldrex r3, [r3] + 80056aa: 613b str r3, [r7, #16] return(result); - 8004cb4: 693b ldr r3, [r7, #16] - 8004cb6: f043 6380 orr.w r3, r3, #67108864 @ 0x4000000 - 8004cba: 627b str r3, [r7, #36] @ 0x24 - 8004cbc: 68fb ldr r3, [r7, #12] - 8004cbe: 681b ldr r3, [r3, #0] - 8004cc0: 461a mov r2, r3 - 8004cc2: 6a7b ldr r3, [r7, #36] @ 0x24 - 8004cc4: 623b str r3, [r7, #32] - 8004cc6: 61fa str r2, [r7, #28] + 80056ac: 693b ldr r3, [r7, #16] + 80056ae: f043 6380 orr.w r3, r3, #67108864 @ 0x4000000 + 80056b2: 627b str r3, [r7, #36] @ 0x24 + 80056b4: 68fb ldr r3, [r7, #12] + 80056b6: 681b ldr r3, [r3, #0] + 80056b8: 461a mov r2, r3 + 80056ba: 6a7b ldr r3, [r7, #36] @ 0x24 + 80056bc: 623b str r3, [r7, #32] + 80056be: 61fa str r2, [r7, #28] */ __STATIC_FORCEINLINE uint32_t __STREXW(uint32_t value, volatile uint32_t *addr) { uint32_t result; __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8004cc8: 69f9 ldr r1, [r7, #28] - 8004cca: 6a3a ldr r2, [r7, #32] - 8004ccc: e841 2300 strex r3, r2, [r1] - 8004cd0: 61bb str r3, [r7, #24] + 80056c0: 69f9 ldr r1, [r7, #28] + 80056c2: 6a3a ldr r2, [r7, #32] + 80056c4: e841 2300 strex r3, r2, [r1] + 80056c8: 61bb str r3, [r7, #24] return(result); - 8004cd2: 69bb ldr r3, [r7, #24] - 8004cd4: 2b00 cmp r3, #0 - 8004cd6: d1e6 bne.n 8004ca6 + 80056ca: 69bb ldr r3, [r7, #24] + 80056cc: 2b00 cmp r3, #0 + 80056ce: d1e6 bne.n 800569e } } return (UART_Start_Receive_IT(huart, pData, Size)); - 8004cd8: 88fb ldrh r3, [r7, #6] - 8004cda: 461a mov r2, r3 - 8004cdc: 68b9 ldr r1, [r7, #8] - 8004cde: 68f8 ldr r0, [r7, #12] - 8004ce0: f000 ffe8 bl 8005cb4 - 8004ce4: 4603 mov r3, r0 - 8004ce6: e000 b.n 8004cea + 80056d0: 88fb ldrh r3, [r7, #6] + 80056d2: 461a mov r2, r3 + 80056d4: 68b9 ldr r1, [r7, #8] + 80056d6: 68f8 ldr r0, [r7, #12] + 80056d8: f000 ffe8 bl 80066ac + 80056dc: 4603 mov r3, r0 + 80056de: e000 b.n 80056e2 } else { return HAL_BUSY; - 8004ce8: 2302 movs r3, #2 + 80056e0: 2302 movs r3, #2 } } - 8004cea: 4618 mov r0, r3 - 8004cec: 3728 adds r7, #40 @ 0x28 - 8004cee: 46bd mov sp, r7 - 8004cf0: bd80 pop {r7, pc} - 8004cf2: bf00 nop - 8004cf4: 40008000 .word 0x40008000 + 80056e2: 4618 mov r0, r3 + 80056e4: 3728 adds r7, #40 @ 0x28 + 80056e6: 46bd mov sp, r7 + 80056e8: bd80 pop {r7, pc} + 80056ea: bf00 nop + 80056ec: 40008000 .word 0x40008000 -08004cf8 : +080056f0 : * @brief Handle UART interrupt request. * @param huart UART handle. * @retval None */ void HAL_UART_IRQHandler(UART_HandleTypeDef *huart) { - 8004cf8: b580 push {r7, lr} - 8004cfa: b0ba sub sp, #232 @ 0xe8 - 8004cfc: af00 add r7, sp, #0 - 8004cfe: 6078 str r0, [r7, #4] + 80056f0: b580 push {r7, lr} + 80056f2: b0ba sub sp, #232 @ 0xe8 + 80056f4: af00 add r7, sp, #0 + 80056f6: 6078 str r0, [r7, #4] uint32_t isrflags = READ_REG(huart->Instance->ISR); - 8004d00: 687b ldr r3, [r7, #4] - 8004d02: 681b ldr r3, [r3, #0] - 8004d04: 69db ldr r3, [r3, #28] - 8004d06: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4 + 80056f8: 687b ldr r3, [r7, #4] + 80056fa: 681b ldr r3, [r3, #0] + 80056fc: 69db ldr r3, [r3, #28] + 80056fe: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4 uint32_t cr1its = READ_REG(huart->Instance->CR1); - 8004d0a: 687b ldr r3, [r7, #4] - 8004d0c: 681b ldr r3, [r3, #0] - 8004d0e: 681b ldr r3, [r3, #0] - 8004d10: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0 + 8005702: 687b ldr r3, [r7, #4] + 8005704: 681b ldr r3, [r3, #0] + 8005706: 681b ldr r3, [r3, #0] + 8005708: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0 uint32_t cr3its = READ_REG(huart->Instance->CR3); - 8004d14: 687b ldr r3, [r7, #4] - 8004d16: 681b ldr r3, [r3, #0] - 8004d18: 689b ldr r3, [r3, #8] - 8004d1a: f8c7 30dc str.w r3, [r7, #220] @ 0xdc + 800570c: 687b ldr r3, [r7, #4] + 800570e: 681b ldr r3, [r3, #0] + 8005710: 689b ldr r3, [r3, #8] + 8005712: f8c7 30dc str.w r3, [r7, #220] @ 0xdc uint32_t errorflags; uint32_t errorcode; /* If no error occurs */ errorflags = (isrflags & (uint32_t)(USART_ISR_PE | USART_ISR_FE | USART_ISR_ORE | USART_ISR_NE | USART_ISR_RTOF)); - 8004d1e: f8d7 20e4 ldr.w r2, [r7, #228] @ 0xe4 - 8004d22: f640 030f movw r3, #2063 @ 0x80f - 8004d26: 4013 ands r3, r2 - 8004d28: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8 + 8005716: f8d7 20e4 ldr.w r2, [r7, #228] @ 0xe4 + 800571a: f640 030f movw r3, #2063 @ 0x80f + 800571e: 4013 ands r3, r2 + 8005720: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8 if (errorflags == 0U) - 8004d2c: f8d7 30d8 ldr.w r3, [r7, #216] @ 0xd8 - 8004d30: 2b00 cmp r3, #0 - 8004d32: d11b bne.n 8004d6c + 8005724: f8d7 30d8 ldr.w r3, [r7, #216] @ 0xd8 + 8005728: 2b00 cmp r3, #0 + 800572a: d11b bne.n 8005764 { /* UART in mode Receiver ---------------------------------------------------*/ if (((isrflags & USART_ISR_RXNE_RXFNE) != 0U) - 8004d34: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 - 8004d38: f003 0320 and.w r3, r3, #32 - 8004d3c: 2b00 cmp r3, #0 - 8004d3e: d015 beq.n 8004d6c + 800572c: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 + 8005730: f003 0320 and.w r3, r3, #32 + 8005734: 2b00 cmp r3, #0 + 8005736: d015 beq.n 8005764 && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U) - 8004d40: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 - 8004d44: f003 0320 and.w r3, r3, #32 - 8004d48: 2b00 cmp r3, #0 - 8004d4a: d105 bne.n 8004d58 + 8005738: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 + 800573c: f003 0320 and.w r3, r3, #32 + 8005740: 2b00 cmp r3, #0 + 8005742: d105 bne.n 8005750 || ((cr3its & USART_CR3_RXFTIE) != 0U))) - 8004d4c: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc - 8004d50: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 - 8004d54: 2b00 cmp r3, #0 - 8004d56: d009 beq.n 8004d6c + 8005744: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc + 8005748: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 + 800574c: 2b00 cmp r3, #0 + 800574e: d009 beq.n 8005764 { if (huart->RxISR != NULL) - 8004d58: 687b ldr r3, [r7, #4] - 8004d5a: 6f5b ldr r3, [r3, #116] @ 0x74 - 8004d5c: 2b00 cmp r3, #0 - 8004d5e: f000 8300 beq.w 8005362 + 8005750: 687b ldr r3, [r7, #4] + 8005752: 6f5b ldr r3, [r3, #116] @ 0x74 + 8005754: 2b00 cmp r3, #0 + 8005756: f000 8300 beq.w 8005d5a { huart->RxISR(huart); - 8004d62: 687b ldr r3, [r7, #4] - 8004d64: 6f5b ldr r3, [r3, #116] @ 0x74 - 8004d66: 6878 ldr r0, [r7, #4] - 8004d68: 4798 blx r3 + 800575a: 687b ldr r3, [r7, #4] + 800575c: 6f5b ldr r3, [r3, #116] @ 0x74 + 800575e: 6878 ldr r0, [r7, #4] + 8005760: 4798 blx r3 } return; - 8004d6a: e2fa b.n 8005362 + 8005762: e2fa b.n 8005d5a } } /* If some errors occur */ if ((errorflags != 0U) - 8004d6c: f8d7 30d8 ldr.w r3, [r7, #216] @ 0xd8 - 8004d70: 2b00 cmp r3, #0 - 8004d72: f000 8123 beq.w 8004fbc + 8005764: f8d7 30d8 ldr.w r3, [r7, #216] @ 0xd8 + 8005768: 2b00 cmp r3, #0 + 800576a: f000 8123 beq.w 80059b4 && ((((cr3its & (USART_CR3_RXFTIE | USART_CR3_EIE)) != 0U) - 8004d76: f8d7 20dc ldr.w r2, [r7, #220] @ 0xdc - 8004d7a: 4b8d ldr r3, [pc, #564] @ (8004fb0 ) - 8004d7c: 4013 ands r3, r2 - 8004d7e: 2b00 cmp r3, #0 - 8004d80: d106 bne.n 8004d90 + 800576e: f8d7 20dc ldr.w r2, [r7, #220] @ 0xdc + 8005772: 4b8d ldr r3, [pc, #564] @ (80059a8 ) + 8005774: 4013 ands r3, r2 + 8005776: 2b00 cmp r3, #0 + 8005778: d106 bne.n 8005788 || ((cr1its & (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE | USART_CR1_RTOIE)) != 0U)))) - 8004d82: f8d7 20e0 ldr.w r2, [r7, #224] @ 0xe0 - 8004d86: 4b8b ldr r3, [pc, #556] @ (8004fb4 ) - 8004d88: 4013 ands r3, r2 - 8004d8a: 2b00 cmp r3, #0 - 8004d8c: f000 8116 beq.w 8004fbc + 800577a: f8d7 20e0 ldr.w r2, [r7, #224] @ 0xe0 + 800577e: 4b8b ldr r3, [pc, #556] @ (80059ac ) + 8005780: 4013 ands r3, r2 + 8005782: 2b00 cmp r3, #0 + 8005784: f000 8116 beq.w 80059b4 { /* UART parity error interrupt occurred -------------------------------------*/ if (((isrflags & USART_ISR_PE) != 0U) && ((cr1its & USART_CR1_PEIE) != 0U)) - 8004d90: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 - 8004d94: f003 0301 and.w r3, r3, #1 - 8004d98: 2b00 cmp r3, #0 - 8004d9a: d011 beq.n 8004dc0 - 8004d9c: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 - 8004da0: f403 7380 and.w r3, r3, #256 @ 0x100 - 8004da4: 2b00 cmp r3, #0 - 8004da6: d00b beq.n 8004dc0 + 8005788: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 + 800578c: f003 0301 and.w r3, r3, #1 + 8005790: 2b00 cmp r3, #0 + 8005792: d011 beq.n 80057b8 + 8005794: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 + 8005798: f403 7380 and.w r3, r3, #256 @ 0x100 + 800579c: 2b00 cmp r3, #0 + 800579e: d00b beq.n 80057b8 { __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_PEF); - 8004da8: 687b ldr r3, [r7, #4] - 8004daa: 681b ldr r3, [r3, #0] - 8004dac: 2201 movs r2, #1 - 8004dae: 621a str r2, [r3, #32] + 80057a0: 687b ldr r3, [r7, #4] + 80057a2: 681b ldr r3, [r3, #0] + 80057a4: 2201 movs r2, #1 + 80057a6: 621a str r2, [r3, #32] huart->ErrorCode |= HAL_UART_ERROR_PE; - 8004db0: 687b ldr r3, [r7, #4] - 8004db2: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 - 8004db6: f043 0201 orr.w r2, r3, #1 - 8004dba: 687b ldr r3, [r7, #4] - 8004dbc: f8c3 2090 str.w r2, [r3, #144] @ 0x90 + 80057a8: 687b ldr r3, [r7, #4] + 80057aa: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 + 80057ae: f043 0201 orr.w r2, r3, #1 + 80057b2: 687b ldr r3, [r7, #4] + 80057b4: f8c3 2090 str.w r2, [r3, #144] @ 0x90 } /* UART frame error interrupt occurred --------------------------------------*/ if (((isrflags & USART_ISR_FE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U)) - 8004dc0: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 - 8004dc4: f003 0302 and.w r3, r3, #2 - 8004dc8: 2b00 cmp r3, #0 - 8004dca: d011 beq.n 8004df0 - 8004dcc: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc - 8004dd0: f003 0301 and.w r3, r3, #1 - 8004dd4: 2b00 cmp r3, #0 - 8004dd6: d00b beq.n 8004df0 + 80057b8: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 + 80057bc: f003 0302 and.w r3, r3, #2 + 80057c0: 2b00 cmp r3, #0 + 80057c2: d011 beq.n 80057e8 + 80057c4: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc + 80057c8: f003 0301 and.w r3, r3, #1 + 80057cc: 2b00 cmp r3, #0 + 80057ce: d00b beq.n 80057e8 { __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_FEF); - 8004dd8: 687b ldr r3, [r7, #4] - 8004dda: 681b ldr r3, [r3, #0] - 8004ddc: 2202 movs r2, #2 - 8004dde: 621a str r2, [r3, #32] + 80057d0: 687b ldr r3, [r7, #4] + 80057d2: 681b ldr r3, [r3, #0] + 80057d4: 2202 movs r2, #2 + 80057d6: 621a str r2, [r3, #32] huart->ErrorCode |= HAL_UART_ERROR_FE; - 8004de0: 687b ldr r3, [r7, #4] - 8004de2: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 - 8004de6: f043 0204 orr.w r2, r3, #4 - 8004dea: 687b ldr r3, [r7, #4] - 8004dec: f8c3 2090 str.w r2, [r3, #144] @ 0x90 + 80057d8: 687b ldr r3, [r7, #4] + 80057da: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 + 80057de: f043 0204 orr.w r2, r3, #4 + 80057e2: 687b ldr r3, [r7, #4] + 80057e4: f8c3 2090 str.w r2, [r3, #144] @ 0x90 } /* UART noise error interrupt occurred --------------------------------------*/ if (((isrflags & USART_ISR_NE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U)) - 8004df0: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 - 8004df4: f003 0304 and.w r3, r3, #4 - 8004df8: 2b00 cmp r3, #0 - 8004dfa: d011 beq.n 8004e20 - 8004dfc: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc - 8004e00: f003 0301 and.w r3, r3, #1 - 8004e04: 2b00 cmp r3, #0 - 8004e06: d00b beq.n 8004e20 + 80057e8: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 + 80057ec: f003 0304 and.w r3, r3, #4 + 80057f0: 2b00 cmp r3, #0 + 80057f2: d011 beq.n 8005818 + 80057f4: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc + 80057f8: f003 0301 and.w r3, r3, #1 + 80057fc: 2b00 cmp r3, #0 + 80057fe: d00b beq.n 8005818 { __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_NEF); - 8004e08: 687b ldr r3, [r7, #4] - 8004e0a: 681b ldr r3, [r3, #0] - 8004e0c: 2204 movs r2, #4 - 8004e0e: 621a str r2, [r3, #32] + 8005800: 687b ldr r3, [r7, #4] + 8005802: 681b ldr r3, [r3, #0] + 8005804: 2204 movs r2, #4 + 8005806: 621a str r2, [r3, #32] huart->ErrorCode |= HAL_UART_ERROR_NE; - 8004e10: 687b ldr r3, [r7, #4] - 8004e12: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 - 8004e16: f043 0202 orr.w r2, r3, #2 - 8004e1a: 687b ldr r3, [r7, #4] - 8004e1c: f8c3 2090 str.w r2, [r3, #144] @ 0x90 + 8005808: 687b ldr r3, [r7, #4] + 800580a: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 + 800580e: f043 0202 orr.w r2, r3, #2 + 8005812: 687b ldr r3, [r7, #4] + 8005814: f8c3 2090 str.w r2, [r3, #144] @ 0x90 } /* UART Over-Run interrupt occurred -----------------------------------------*/ if (((isrflags & USART_ISR_ORE) != 0U) - 8004e20: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 - 8004e24: f003 0308 and.w r3, r3, #8 - 8004e28: 2b00 cmp r3, #0 - 8004e2a: d017 beq.n 8004e5c + 8005818: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 + 800581c: f003 0308 and.w r3, r3, #8 + 8005820: 2b00 cmp r3, #0 + 8005822: d017 beq.n 8005854 && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U) || - 8004e2c: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 - 8004e30: f003 0320 and.w r3, r3, #32 - 8004e34: 2b00 cmp r3, #0 - 8004e36: d105 bne.n 8004e44 + 8005824: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 + 8005828: f003 0320 and.w r3, r3, #32 + 800582c: 2b00 cmp r3, #0 + 800582e: d105 bne.n 800583c ((cr3its & (USART_CR3_RXFTIE | USART_CR3_EIE)) != 0U))) - 8004e38: f8d7 20dc ldr.w r2, [r7, #220] @ 0xdc - 8004e3c: 4b5c ldr r3, [pc, #368] @ (8004fb0 ) - 8004e3e: 4013 ands r3, r2 + 8005830: f8d7 20dc ldr.w r2, [r7, #220] @ 0xdc + 8005834: 4b5c ldr r3, [pc, #368] @ (80059a8 ) + 8005836: 4013 ands r3, r2 && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U) || - 8004e40: 2b00 cmp r3, #0 - 8004e42: d00b beq.n 8004e5c + 8005838: 2b00 cmp r3, #0 + 800583a: d00b beq.n 8005854 { __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_OREF); - 8004e44: 687b ldr r3, [r7, #4] - 8004e46: 681b ldr r3, [r3, #0] - 8004e48: 2208 movs r2, #8 - 8004e4a: 621a str r2, [r3, #32] + 800583c: 687b ldr r3, [r7, #4] + 800583e: 681b ldr r3, [r3, #0] + 8005840: 2208 movs r2, #8 + 8005842: 621a str r2, [r3, #32] huart->ErrorCode |= HAL_UART_ERROR_ORE; - 8004e4c: 687b ldr r3, [r7, #4] - 8004e4e: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 - 8004e52: f043 0208 orr.w r2, r3, #8 - 8004e56: 687b ldr r3, [r7, #4] - 8004e58: f8c3 2090 str.w r2, [r3, #144] @ 0x90 + 8005844: 687b ldr r3, [r7, #4] + 8005846: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 + 800584a: f043 0208 orr.w r2, r3, #8 + 800584e: 687b ldr r3, [r7, #4] + 8005850: f8c3 2090 str.w r2, [r3, #144] @ 0x90 } /* UART Receiver Timeout interrupt occurred ---------------------------------*/ if (((isrflags & USART_ISR_RTOF) != 0U) && ((cr1its & USART_CR1_RTOIE) != 0U)) - 8004e5c: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 - 8004e60: f403 6300 and.w r3, r3, #2048 @ 0x800 - 8004e64: 2b00 cmp r3, #0 - 8004e66: d012 beq.n 8004e8e - 8004e68: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 - 8004e6c: f003 6380 and.w r3, r3, #67108864 @ 0x4000000 - 8004e70: 2b00 cmp r3, #0 - 8004e72: d00c beq.n 8004e8e + 8005854: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 + 8005858: f403 6300 and.w r3, r3, #2048 @ 0x800 + 800585c: 2b00 cmp r3, #0 + 800585e: d012 beq.n 8005886 + 8005860: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 + 8005864: f003 6380 and.w r3, r3, #67108864 @ 0x4000000 + 8005868: 2b00 cmp r3, #0 + 800586a: d00c beq.n 8005886 { __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_RTOF); - 8004e74: 687b ldr r3, [r7, #4] - 8004e76: 681b ldr r3, [r3, #0] - 8004e78: f44f 6200 mov.w r2, #2048 @ 0x800 - 8004e7c: 621a str r2, [r3, #32] + 800586c: 687b ldr r3, [r7, #4] + 800586e: 681b ldr r3, [r3, #0] + 8005870: f44f 6200 mov.w r2, #2048 @ 0x800 + 8005874: 621a str r2, [r3, #32] huart->ErrorCode |= HAL_UART_ERROR_RTO; - 8004e7e: 687b ldr r3, [r7, #4] - 8004e80: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 - 8004e84: f043 0220 orr.w r2, r3, #32 - 8004e88: 687b ldr r3, [r7, #4] - 8004e8a: f8c3 2090 str.w r2, [r3, #144] @ 0x90 + 8005876: 687b ldr r3, [r7, #4] + 8005878: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 + 800587c: f043 0220 orr.w r2, r3, #32 + 8005880: 687b ldr r3, [r7, #4] + 8005882: f8c3 2090 str.w r2, [r3, #144] @ 0x90 } /* Call UART Error Call back function if need be ----------------------------*/ if (huart->ErrorCode != HAL_UART_ERROR_NONE) - 8004e8e: 687b ldr r3, [r7, #4] - 8004e90: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 - 8004e94: 2b00 cmp r3, #0 - 8004e96: f000 8266 beq.w 8005366 + 8005886: 687b ldr r3, [r7, #4] + 8005888: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 + 800588c: 2b00 cmp r3, #0 + 800588e: f000 8266 beq.w 8005d5e { /* UART in mode Receiver --------------------------------------------------*/ if (((isrflags & USART_ISR_RXNE_RXFNE) != 0U) - 8004e9a: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 - 8004e9e: f003 0320 and.w r3, r3, #32 - 8004ea2: 2b00 cmp r3, #0 - 8004ea4: d013 beq.n 8004ece + 8005892: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 + 8005896: f003 0320 and.w r3, r3, #32 + 800589a: 2b00 cmp r3, #0 + 800589c: d013 beq.n 80058c6 && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U) - 8004ea6: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 - 8004eaa: f003 0320 and.w r3, r3, #32 - 8004eae: 2b00 cmp r3, #0 - 8004eb0: d105 bne.n 8004ebe + 800589e: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 + 80058a2: f003 0320 and.w r3, r3, #32 + 80058a6: 2b00 cmp r3, #0 + 80058a8: d105 bne.n 80058b6 || ((cr3its & USART_CR3_RXFTIE) != 0U))) - 8004eb2: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc - 8004eb6: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 - 8004eba: 2b00 cmp r3, #0 - 8004ebc: d007 beq.n 8004ece + 80058aa: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc + 80058ae: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 + 80058b2: 2b00 cmp r3, #0 + 80058b4: d007 beq.n 80058c6 { if (huart->RxISR != NULL) - 8004ebe: 687b ldr r3, [r7, #4] - 8004ec0: 6f5b ldr r3, [r3, #116] @ 0x74 - 8004ec2: 2b00 cmp r3, #0 - 8004ec4: d003 beq.n 8004ece + 80058b6: 687b ldr r3, [r7, #4] + 80058b8: 6f5b ldr r3, [r3, #116] @ 0x74 + 80058ba: 2b00 cmp r3, #0 + 80058bc: d003 beq.n 80058c6 { huart->RxISR(huart); - 8004ec6: 687b ldr r3, [r7, #4] - 8004ec8: 6f5b ldr r3, [r3, #116] @ 0x74 - 8004eca: 6878 ldr r0, [r7, #4] - 8004ecc: 4798 blx r3 + 80058be: 687b ldr r3, [r7, #4] + 80058c0: 6f5b ldr r3, [r3, #116] @ 0x74 + 80058c2: 6878 ldr r0, [r7, #4] + 80058c4: 4798 blx r3 /* If Error is to be considered as blocking : - Receiver Timeout error in Reception - Overrun error in Reception - any error occurs in DMA mode reception */ errorcode = huart->ErrorCode; - 8004ece: 687b ldr r3, [r7, #4] - 8004ed0: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 - 8004ed4: f8c7 30d4 str.w r3, [r7, #212] @ 0xd4 + 80058c6: 687b ldr r3, [r7, #4] + 80058c8: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 + 80058cc: f8c7 30d4 str.w r3, [r7, #212] @ 0xd4 if ((HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) || - 8004ed8: 687b ldr r3, [r7, #4] - 8004eda: 681b ldr r3, [r3, #0] - 8004edc: 689b ldr r3, [r3, #8] - 8004ede: f003 0340 and.w r3, r3, #64 @ 0x40 - 8004ee2: 2b40 cmp r3, #64 @ 0x40 - 8004ee4: d005 beq.n 8004ef2 + 80058d0: 687b ldr r3, [r7, #4] + 80058d2: 681b ldr r3, [r3, #0] + 80058d4: 689b ldr r3, [r3, #8] + 80058d6: f003 0340 and.w r3, r3, #64 @ 0x40 + 80058da: 2b40 cmp r3, #64 @ 0x40 + 80058dc: d005 beq.n 80058ea ((errorcode & (HAL_UART_ERROR_RTO | HAL_UART_ERROR_ORE)) != 0U)) - 8004ee6: f8d7 30d4 ldr.w r3, [r7, #212] @ 0xd4 - 8004eea: f003 0328 and.w r3, r3, #40 @ 0x28 + 80058de: f8d7 30d4 ldr.w r3, [r7, #212] @ 0xd4 + 80058e2: f003 0328 and.w r3, r3, #40 @ 0x28 if ((HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) || - 8004eee: 2b00 cmp r3, #0 - 8004ef0: d054 beq.n 8004f9c + 80058e6: 2b00 cmp r3, #0 + 80058e8: d054 beq.n 8005994 { /* Blocking error : transfer is aborted Set the UART state ready to be able to start again the process, Disable Rx Interrupts, and disable Rx DMA request, if ongoing */ UART_EndRxTransfer(huart); - 8004ef2: 6878 ldr r0, [r7, #4] - 8004ef4: f001 f800 bl 8005ef8 + 80058ea: 6878 ldr r0, [r7, #4] + 80058ec: f001 f800 bl 80068f0 /* Abort the UART DMA Rx channel if enabled */ if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) - 8004ef8: 687b ldr r3, [r7, #4] - 8004efa: 681b ldr r3, [r3, #0] - 8004efc: 689b ldr r3, [r3, #8] - 8004efe: f003 0340 and.w r3, r3, #64 @ 0x40 - 8004f02: 2b40 cmp r3, #64 @ 0x40 - 8004f04: d146 bne.n 8004f94 + 80058f0: 687b ldr r3, [r7, #4] + 80058f2: 681b ldr r3, [r3, #0] + 80058f4: 689b ldr r3, [r3, #8] + 80058f6: f003 0340 and.w r3, r3, #64 @ 0x40 + 80058fa: 2b40 cmp r3, #64 @ 0x40 + 80058fc: d146 bne.n 800598c { /* Disable the UART DMA Rx request if enabled */ ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR); - 8004f06: 687b ldr r3, [r7, #4] - 8004f08: 681b ldr r3, [r3, #0] - 8004f0a: 3308 adds r3, #8 - 8004f0c: f8c7 309c str.w r3, [r7, #156] @ 0x9c + 80058fe: 687b ldr r3, [r7, #4] + 8005900: 681b ldr r3, [r3, #0] + 8005902: 3308 adds r3, #8 + 8005904: f8c7 309c str.w r3, [r7, #156] @ 0x9c __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8004f10: f8d7 309c ldr.w r3, [r7, #156] @ 0x9c - 8004f14: e853 3f00 ldrex r3, [r3] - 8004f18: f8c7 3098 str.w r3, [r7, #152] @ 0x98 + 8005908: f8d7 309c ldr.w r3, [r7, #156] @ 0x9c + 800590c: e853 3f00 ldrex r3, [r3] + 8005910: f8c7 3098 str.w r3, [r7, #152] @ 0x98 return(result); - 8004f1c: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98 - 8004f20: f023 0340 bic.w r3, r3, #64 @ 0x40 - 8004f24: f8c7 30d0 str.w r3, [r7, #208] @ 0xd0 - 8004f28: 687b ldr r3, [r7, #4] - 8004f2a: 681b ldr r3, [r3, #0] - 8004f2c: 3308 adds r3, #8 - 8004f2e: f8d7 20d0 ldr.w r2, [r7, #208] @ 0xd0 - 8004f32: f8c7 20a8 str.w r2, [r7, #168] @ 0xa8 - 8004f36: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4 + 8005914: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98 + 8005918: f023 0340 bic.w r3, r3, #64 @ 0x40 + 800591c: f8c7 30d0 str.w r3, [r7, #208] @ 0xd0 + 8005920: 687b ldr r3, [r7, #4] + 8005922: 681b ldr r3, [r3, #0] + 8005924: 3308 adds r3, #8 + 8005926: f8d7 20d0 ldr.w r2, [r7, #208] @ 0xd0 + 800592a: f8c7 20a8 str.w r2, [r7, #168] @ 0xa8 + 800592e: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8004f3a: f8d7 10a4 ldr.w r1, [r7, #164] @ 0xa4 - 8004f3e: f8d7 20a8 ldr.w r2, [r7, #168] @ 0xa8 - 8004f42: e841 2300 strex r3, r2, [r1] - 8004f46: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0 + 8005932: f8d7 10a4 ldr.w r1, [r7, #164] @ 0xa4 + 8005936: f8d7 20a8 ldr.w r2, [r7, #168] @ 0xa8 + 800593a: e841 2300 strex r3, r2, [r1] + 800593e: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0 return(result); - 8004f4a: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0 - 8004f4e: 2b00 cmp r3, #0 - 8004f50: d1d9 bne.n 8004f06 + 8005942: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0 + 8005946: 2b00 cmp r3, #0 + 8005948: d1d9 bne.n 80058fe /* Abort the UART DMA Rx channel */ if (huart->hdmarx != NULL) - 8004f52: 687b ldr r3, [r7, #4] - 8004f54: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80 - 8004f58: 2b00 cmp r3, #0 - 8004f5a: d017 beq.n 8004f8c + 800594a: 687b ldr r3, [r7, #4] + 800594c: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80 + 8005950: 2b00 cmp r3, #0 + 8005952: d017 beq.n 8005984 { /* Set the UART DMA Abort callback : will lead to call HAL_UART_ErrorCallback() at end of DMA abort procedure */ huart->hdmarx->XferAbortCallback = UART_DMAAbortOnError; - 8004f5c: 687b ldr r3, [r7, #4] - 8004f5e: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80 - 8004f62: 4a15 ldr r2, [pc, #84] @ (8004fb8 ) - 8004f64: 639a str r2, [r3, #56] @ 0x38 + 8005954: 687b ldr r3, [r7, #4] + 8005956: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80 + 800595a: 4a15 ldr r2, [pc, #84] @ (80059b0 ) + 800595c: 639a str r2, [r3, #56] @ 0x38 /* Abort DMA RX */ if (HAL_DMA_Abort_IT(huart->hdmarx) != HAL_OK) - 8004f66: 687b ldr r3, [r7, #4] - 8004f68: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80 - 8004f6c: 4618 mov r0, r3 - 8004f6e: f7fd fef3 bl 8002d58 - 8004f72: 4603 mov r3, r0 - 8004f74: 2b00 cmp r3, #0 - 8004f76: d019 beq.n 8004fac + 800595e: 687b ldr r3, [r7, #4] + 8005960: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80 + 8005964: 4618 mov r0, r3 + 8005966: f7fd fef3 bl 8003750 + 800596a: 4603 mov r3, r0 + 800596c: 2b00 cmp r3, #0 + 800596e: d019 beq.n 80059a4 { /* Call Directly huart->hdmarx->XferAbortCallback function in case of error */ huart->hdmarx->XferAbortCallback(huart->hdmarx); - 8004f78: 687b ldr r3, [r7, #4] - 8004f7a: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80 - 8004f7e: 6b9b ldr r3, [r3, #56] @ 0x38 - 8004f80: 687a ldr r2, [r7, #4] - 8004f82: f8d2 2080 ldr.w r2, [r2, #128] @ 0x80 - 8004f86: 4610 mov r0, r2 - 8004f88: 4798 blx r3 + 8005970: 687b ldr r3, [r7, #4] + 8005972: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80 + 8005976: 6b9b ldr r3, [r3, #56] @ 0x38 + 8005978: 687a ldr r2, [r7, #4] + 800597a: f8d2 2080 ldr.w r2, [r2, #128] @ 0x80 + 800597e: 4610 mov r0, r2 + 8005980: 4798 blx r3 if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) - 8004f8a: e00f b.n 8004fac + 8005982: e00f b.n 80059a4 #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered error callback*/ huart->ErrorCallback(huart); #else /*Call legacy weak error callback*/ HAL_UART_ErrorCallback(huart); - 8004f8c: 6878 ldr r0, [r7, #4] - 8004f8e: f000 f9f5 bl 800537c + 8005984: 6878 ldr r0, [r7, #4] + 8005986: f000 f9f5 bl 8005d74 if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) - 8004f92: e00b b.n 8004fac + 800598a: e00b b.n 80059a4 #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered error callback*/ huart->ErrorCallback(huart); #else /*Call legacy weak error callback*/ HAL_UART_ErrorCallback(huart); - 8004f94: 6878 ldr r0, [r7, #4] - 8004f96: f000 f9f1 bl 800537c + 800598c: 6878 ldr r0, [r7, #4] + 800598e: f000 f9f1 bl 8005d74 if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) - 8004f9a: e007 b.n 8004fac + 8005992: e007 b.n 80059a4 #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered error callback*/ huart->ErrorCallback(huart); #else /*Call legacy weak error callback*/ HAL_UART_ErrorCallback(huart); - 8004f9c: 6878 ldr r0, [r7, #4] - 8004f9e: f000 f9ed bl 800537c + 8005994: 6878 ldr r0, [r7, #4] + 8005996: f000 f9ed bl 8005d74 #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ huart->ErrorCode = HAL_UART_ERROR_NONE; - 8004fa2: 687b ldr r3, [r7, #4] - 8004fa4: 2200 movs r2, #0 - 8004fa6: f8c3 2090 str.w r2, [r3, #144] @ 0x90 + 800599a: 687b ldr r3, [r7, #4] + 800599c: 2200 movs r2, #0 + 800599e: f8c3 2090 str.w r2, [r3, #144] @ 0x90 } } return; - 8004faa: e1dc b.n 8005366 + 80059a2: e1dc b.n 8005d5e if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) - 8004fac: bf00 nop + 80059a4: bf00 nop return; - 8004fae: e1da b.n 8005366 - 8004fb0: 10000001 .word 0x10000001 - 8004fb4: 04000120 .word 0x04000120 - 8004fb8: 08005fc5 .word 0x08005fc5 + 80059a6: e1da b.n 8005d5e + 80059a8: 10000001 .word 0x10000001 + 80059ac: 04000120 .word 0x04000120 + 80059b0: 080069bd .word 0x080069bd } /* End if some error occurs */ /* Check current reception Mode : If Reception till IDLE event has been selected : */ if ((huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) - 8004fbc: 687b ldr r3, [r7, #4] - 8004fbe: 6edb ldr r3, [r3, #108] @ 0x6c - 8004fc0: 2b01 cmp r3, #1 - 8004fc2: f040 8170 bne.w 80052a6 + 80059b4: 687b ldr r3, [r7, #4] + 80059b6: 6edb ldr r3, [r3, #108] @ 0x6c + 80059b8: 2b01 cmp r3, #1 + 80059ba: f040 8170 bne.w 8005c9e && ((isrflags & USART_ISR_IDLE) != 0U) - 8004fc6: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 - 8004fca: f003 0310 and.w r3, r3, #16 - 8004fce: 2b00 cmp r3, #0 - 8004fd0: f000 8169 beq.w 80052a6 + 80059be: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 + 80059c2: f003 0310 and.w r3, r3, #16 + 80059c6: 2b00 cmp r3, #0 + 80059c8: f000 8169 beq.w 8005c9e && ((cr1its & USART_ISR_IDLE) != 0U)) - 8004fd4: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 - 8004fd8: f003 0310 and.w r3, r3, #16 - 8004fdc: 2b00 cmp r3, #0 - 8004fde: f000 8162 beq.w 80052a6 + 80059cc: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 + 80059d0: f003 0310 and.w r3, r3, #16 + 80059d4: 2b00 cmp r3, #0 + 80059d6: f000 8162 beq.w 8005c9e { __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF); - 8004fe2: 687b ldr r3, [r7, #4] - 8004fe4: 681b ldr r3, [r3, #0] - 8004fe6: 2210 movs r2, #16 - 8004fe8: 621a str r2, [r3, #32] + 80059da: 687b ldr r3, [r7, #4] + 80059dc: 681b ldr r3, [r3, #0] + 80059de: 2210 movs r2, #16 + 80059e0: 621a str r2, [r3, #32] /* Check if DMA mode is enabled in UART */ if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) - 8004fea: 687b ldr r3, [r7, #4] - 8004fec: 681b ldr r3, [r3, #0] - 8004fee: 689b ldr r3, [r3, #8] - 8004ff0: f003 0340 and.w r3, r3, #64 @ 0x40 - 8004ff4: 2b40 cmp r3, #64 @ 0x40 - 8004ff6: f040 80d8 bne.w 80051aa + 80059e2: 687b ldr r3, [r7, #4] + 80059e4: 681b ldr r3, [r3, #0] + 80059e6: 689b ldr r3, [r3, #8] + 80059e8: f003 0340 and.w r3, r3, #64 @ 0x40 + 80059ec: 2b40 cmp r3, #64 @ 0x40 + 80059ee: f040 80d8 bne.w 8005ba2 { /* DMA mode enabled */ /* Check received length : If all expected data are received, do nothing, (DMA cplt callback will be called). Otherwise, if at least one data has already been received, IDLE event is to be notified to user */ uint16_t nb_remaining_rx_data = (uint16_t) __HAL_DMA_GET_COUNTER(huart->hdmarx); - 8004ffa: 687b ldr r3, [r7, #4] - 8004ffc: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80 - 8005000: 681b ldr r3, [r3, #0] - 8005002: 685b ldr r3, [r3, #4] - 8005004: f8a7 30be strh.w r3, [r7, #190] @ 0xbe + 80059f2: 687b ldr r3, [r7, #4] + 80059f4: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80 + 80059f8: 681b ldr r3, [r3, #0] + 80059fa: 685b ldr r3, [r3, #4] + 80059fc: f8a7 30be strh.w r3, [r7, #190] @ 0xbe if ((nb_remaining_rx_data > 0U) - 8005008: f8b7 30be ldrh.w r3, [r7, #190] @ 0xbe - 800500c: 2b00 cmp r3, #0 - 800500e: f000 80af beq.w 8005170 + 8005a00: f8b7 30be ldrh.w r3, [r7, #190] @ 0xbe + 8005a04: 2b00 cmp r3, #0 + 8005a06: f000 80af beq.w 8005b68 && (nb_remaining_rx_data < huart->RxXferSize)) - 8005012: 687b ldr r3, [r7, #4] - 8005014: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c - 8005018: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe - 800501c: 429a cmp r2, r3 - 800501e: f080 80a7 bcs.w 8005170 + 8005a0a: 687b ldr r3, [r7, #4] + 8005a0c: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c + 8005a10: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe + 8005a14: 429a cmp r2, r3 + 8005a16: f080 80a7 bcs.w 8005b68 { /* Reception is not complete */ huart->RxXferCount = nb_remaining_rx_data; - 8005022: 687b ldr r3, [r7, #4] - 8005024: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe - 8005028: f8a3 205e strh.w r2, [r3, #94] @ 0x5e + 8005a1a: 687b ldr r3, [r7, #4] + 8005a1c: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe + 8005a20: f8a3 205e strh.w r2, [r3, #94] @ 0x5e /* In Normal mode, end DMA xfer and HAL UART Rx process*/ if (HAL_IS_BIT_CLR(huart->hdmarx->Instance->CCR, DMA_CCR_CIRC)) - 800502c: 687b ldr r3, [r7, #4] - 800502e: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80 - 8005032: 681b ldr r3, [r3, #0] - 8005034: 681b ldr r3, [r3, #0] - 8005036: f003 0320 and.w r3, r3, #32 - 800503a: 2b00 cmp r3, #0 - 800503c: f040 8087 bne.w 800514e + 8005a24: 687b ldr r3, [r7, #4] + 8005a26: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80 + 8005a2a: 681b ldr r3, [r3, #0] + 8005a2c: 681b ldr r3, [r3, #0] + 8005a2e: f003 0320 and.w r3, r3, #32 + 8005a32: 2b00 cmp r3, #0 + 8005a34: f040 8087 bne.w 8005b46 { /* Disable PE and ERR (Frame error, noise error, overrun error) interrupts */ ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE); - 8005040: 687b ldr r3, [r7, #4] - 8005042: 681b ldr r3, [r3, #0] - 8005044: f8c7 3088 str.w r3, [r7, #136] @ 0x88 + 8005a38: 687b ldr r3, [r7, #4] + 8005a3a: 681b ldr r3, [r3, #0] + 8005a3c: f8c7 3088 str.w r3, [r7, #136] @ 0x88 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8005048: f8d7 3088 ldr.w r3, [r7, #136] @ 0x88 - 800504c: e853 3f00 ldrex r3, [r3] - 8005050: f8c7 3084 str.w r3, [r7, #132] @ 0x84 + 8005a40: f8d7 3088 ldr.w r3, [r7, #136] @ 0x88 + 8005a44: e853 3f00 ldrex r3, [r3] + 8005a48: f8c7 3084 str.w r3, [r7, #132] @ 0x84 return(result); - 8005054: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84 - 8005058: f423 7380 bic.w r3, r3, #256 @ 0x100 - 800505c: f8c7 30b8 str.w r3, [r7, #184] @ 0xb8 - 8005060: 687b ldr r3, [r7, #4] - 8005062: 681b ldr r3, [r3, #0] - 8005064: 461a mov r2, r3 - 8005066: f8d7 30b8 ldr.w r3, [r7, #184] @ 0xb8 - 800506a: f8c7 3094 str.w r3, [r7, #148] @ 0x94 - 800506e: f8c7 2090 str.w r2, [r7, #144] @ 0x90 + 8005a4c: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84 + 8005a50: f423 7380 bic.w r3, r3, #256 @ 0x100 + 8005a54: f8c7 30b8 str.w r3, [r7, #184] @ 0xb8 + 8005a58: 687b ldr r3, [r7, #4] + 8005a5a: 681b ldr r3, [r3, #0] + 8005a5c: 461a mov r2, r3 + 8005a5e: f8d7 30b8 ldr.w r3, [r7, #184] @ 0xb8 + 8005a62: f8c7 3094 str.w r3, [r7, #148] @ 0x94 + 8005a66: f8c7 2090 str.w r2, [r7, #144] @ 0x90 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8005072: f8d7 1090 ldr.w r1, [r7, #144] @ 0x90 - 8005076: f8d7 2094 ldr.w r2, [r7, #148] @ 0x94 - 800507a: e841 2300 strex r3, r2, [r1] - 800507e: f8c7 308c str.w r3, [r7, #140] @ 0x8c + 8005a6a: f8d7 1090 ldr.w r1, [r7, #144] @ 0x90 + 8005a6e: f8d7 2094 ldr.w r2, [r7, #148] @ 0x94 + 8005a72: e841 2300 strex r3, r2, [r1] + 8005a76: f8c7 308c str.w r3, [r7, #140] @ 0x8c return(result); - 8005082: f8d7 308c ldr.w r3, [r7, #140] @ 0x8c - 8005086: 2b00 cmp r3, #0 - 8005088: d1da bne.n 8005040 + 8005a7a: f8d7 308c ldr.w r3, [r7, #140] @ 0x8c + 8005a7e: 2b00 cmp r3, #0 + 8005a80: d1da bne.n 8005a38 ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); - 800508a: 687b ldr r3, [r7, #4] - 800508c: 681b ldr r3, [r3, #0] - 800508e: 3308 adds r3, #8 - 8005090: 677b str r3, [r7, #116] @ 0x74 + 8005a82: 687b ldr r3, [r7, #4] + 8005a84: 681b ldr r3, [r3, #0] + 8005a86: 3308 adds r3, #8 + 8005a88: 677b str r3, [r7, #116] @ 0x74 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8005092: 6f7b ldr r3, [r7, #116] @ 0x74 - 8005094: e853 3f00 ldrex r3, [r3] - 8005098: 673b str r3, [r7, #112] @ 0x70 + 8005a8a: 6f7b ldr r3, [r7, #116] @ 0x74 + 8005a8c: e853 3f00 ldrex r3, [r3] + 8005a90: 673b str r3, [r7, #112] @ 0x70 return(result); - 800509a: 6f3b ldr r3, [r7, #112] @ 0x70 - 800509c: f023 0301 bic.w r3, r3, #1 - 80050a0: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 - 80050a4: 687b ldr r3, [r7, #4] - 80050a6: 681b ldr r3, [r3, #0] - 80050a8: 3308 adds r3, #8 - 80050aa: f8d7 20b4 ldr.w r2, [r7, #180] @ 0xb4 - 80050ae: f8c7 2080 str.w r2, [r7, #128] @ 0x80 - 80050b2: 67fb str r3, [r7, #124] @ 0x7c + 8005a92: 6f3b ldr r3, [r7, #112] @ 0x70 + 8005a94: f023 0301 bic.w r3, r3, #1 + 8005a98: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 + 8005a9c: 687b ldr r3, [r7, #4] + 8005a9e: 681b ldr r3, [r3, #0] + 8005aa0: 3308 adds r3, #8 + 8005aa2: f8d7 20b4 ldr.w r2, [r7, #180] @ 0xb4 + 8005aa6: f8c7 2080 str.w r2, [r7, #128] @ 0x80 + 8005aaa: 67fb str r3, [r7, #124] @ 0x7c __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 80050b4: 6ff9 ldr r1, [r7, #124] @ 0x7c - 80050b6: f8d7 2080 ldr.w r2, [r7, #128] @ 0x80 - 80050ba: e841 2300 strex r3, r2, [r1] - 80050be: 67bb str r3, [r7, #120] @ 0x78 + 8005aac: 6ff9 ldr r1, [r7, #124] @ 0x7c + 8005aae: f8d7 2080 ldr.w r2, [r7, #128] @ 0x80 + 8005ab2: e841 2300 strex r3, r2, [r1] + 8005ab6: 67bb str r3, [r7, #120] @ 0x78 return(result); - 80050c0: 6fbb ldr r3, [r7, #120] @ 0x78 - 80050c2: 2b00 cmp r3, #0 - 80050c4: d1e1 bne.n 800508a + 8005ab8: 6fbb ldr r3, [r7, #120] @ 0x78 + 8005aba: 2b00 cmp r3, #0 + 8005abc: d1e1 bne.n 8005a82 /* Disable the DMA transfer for the receiver request by resetting the DMAR bit in the UART CR3 register */ ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR); - 80050c6: 687b ldr r3, [r7, #4] - 80050c8: 681b ldr r3, [r3, #0] - 80050ca: 3308 adds r3, #8 - 80050cc: 663b str r3, [r7, #96] @ 0x60 + 8005abe: 687b ldr r3, [r7, #4] + 8005ac0: 681b ldr r3, [r3, #0] + 8005ac2: 3308 adds r3, #8 + 8005ac4: 663b str r3, [r7, #96] @ 0x60 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 80050ce: 6e3b ldr r3, [r7, #96] @ 0x60 - 80050d0: e853 3f00 ldrex r3, [r3] - 80050d4: 65fb str r3, [r7, #92] @ 0x5c + 8005ac6: 6e3b ldr r3, [r7, #96] @ 0x60 + 8005ac8: e853 3f00 ldrex r3, [r3] + 8005acc: 65fb str r3, [r7, #92] @ 0x5c return(result); - 80050d6: 6dfb ldr r3, [r7, #92] @ 0x5c - 80050d8: f023 0340 bic.w r3, r3, #64 @ 0x40 - 80050dc: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 - 80050e0: 687b ldr r3, [r7, #4] - 80050e2: 681b ldr r3, [r3, #0] - 80050e4: 3308 adds r3, #8 - 80050e6: f8d7 20b0 ldr.w r2, [r7, #176] @ 0xb0 - 80050ea: 66fa str r2, [r7, #108] @ 0x6c - 80050ec: 66bb str r3, [r7, #104] @ 0x68 + 8005ace: 6dfb ldr r3, [r7, #92] @ 0x5c + 8005ad0: f023 0340 bic.w r3, r3, #64 @ 0x40 + 8005ad4: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 + 8005ad8: 687b ldr r3, [r7, #4] + 8005ada: 681b ldr r3, [r3, #0] + 8005adc: 3308 adds r3, #8 + 8005ade: f8d7 20b0 ldr.w r2, [r7, #176] @ 0xb0 + 8005ae2: 66fa str r2, [r7, #108] @ 0x6c + 8005ae4: 66bb str r3, [r7, #104] @ 0x68 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 80050ee: 6eb9 ldr r1, [r7, #104] @ 0x68 - 80050f0: 6efa ldr r2, [r7, #108] @ 0x6c - 80050f2: e841 2300 strex r3, r2, [r1] - 80050f6: 667b str r3, [r7, #100] @ 0x64 + 8005ae6: 6eb9 ldr r1, [r7, #104] @ 0x68 + 8005ae8: 6efa ldr r2, [r7, #108] @ 0x6c + 8005aea: e841 2300 strex r3, r2, [r1] + 8005aee: 667b str r3, [r7, #100] @ 0x64 return(result); - 80050f8: 6e7b ldr r3, [r7, #100] @ 0x64 - 80050fa: 2b00 cmp r3, #0 - 80050fc: d1e3 bne.n 80050c6 + 8005af0: 6e7b ldr r3, [r7, #100] @ 0x64 + 8005af2: 2b00 cmp r3, #0 + 8005af4: d1e3 bne.n 8005abe /* At end of Rx process, restore huart->RxState to Ready */ huart->RxState = HAL_UART_STATE_READY; - 80050fe: 687b ldr r3, [r7, #4] - 8005100: 2220 movs r2, #32 - 8005102: f8c3 208c str.w r2, [r3, #140] @ 0x8c + 8005af6: 687b ldr r3, [r7, #4] + 8005af8: 2220 movs r2, #32 + 8005afa: f8c3 208c str.w r2, [r3, #140] @ 0x8c huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; - 8005106: 687b ldr r3, [r7, #4] - 8005108: 2200 movs r2, #0 - 800510a: 66da str r2, [r3, #108] @ 0x6c + 8005afe: 687b ldr r3, [r7, #4] + 8005b00: 2200 movs r2, #0 + 8005b02: 66da str r2, [r3, #108] @ 0x6c ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); - 800510c: 687b ldr r3, [r7, #4] - 800510e: 681b ldr r3, [r3, #0] - 8005110: 64fb str r3, [r7, #76] @ 0x4c + 8005b04: 687b ldr r3, [r7, #4] + 8005b06: 681b ldr r3, [r3, #0] + 8005b08: 64fb str r3, [r7, #76] @ 0x4c __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8005112: 6cfb ldr r3, [r7, #76] @ 0x4c - 8005114: e853 3f00 ldrex r3, [r3] - 8005118: 64bb str r3, [r7, #72] @ 0x48 + 8005b0a: 6cfb ldr r3, [r7, #76] @ 0x4c + 8005b0c: e853 3f00 ldrex r3, [r3] + 8005b10: 64bb str r3, [r7, #72] @ 0x48 return(result); - 800511a: 6cbb ldr r3, [r7, #72] @ 0x48 - 800511c: f023 0310 bic.w r3, r3, #16 - 8005120: f8c7 30ac str.w r3, [r7, #172] @ 0xac - 8005124: 687b ldr r3, [r7, #4] - 8005126: 681b ldr r3, [r3, #0] - 8005128: 461a mov r2, r3 - 800512a: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac - 800512e: 65bb str r3, [r7, #88] @ 0x58 - 8005130: 657a str r2, [r7, #84] @ 0x54 + 8005b12: 6cbb ldr r3, [r7, #72] @ 0x48 + 8005b14: f023 0310 bic.w r3, r3, #16 + 8005b18: f8c7 30ac str.w r3, [r7, #172] @ 0xac + 8005b1c: 687b ldr r3, [r7, #4] + 8005b1e: 681b ldr r3, [r3, #0] + 8005b20: 461a mov r2, r3 + 8005b22: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac + 8005b26: 65bb str r3, [r7, #88] @ 0x58 + 8005b28: 657a str r2, [r7, #84] @ 0x54 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8005132: 6d79 ldr r1, [r7, #84] @ 0x54 - 8005134: 6dba ldr r2, [r7, #88] @ 0x58 - 8005136: e841 2300 strex r3, r2, [r1] - 800513a: 653b str r3, [r7, #80] @ 0x50 + 8005b2a: 6d79 ldr r1, [r7, #84] @ 0x54 + 8005b2c: 6dba ldr r2, [r7, #88] @ 0x58 + 8005b2e: e841 2300 strex r3, r2, [r1] + 8005b32: 653b str r3, [r7, #80] @ 0x50 return(result); - 800513c: 6d3b ldr r3, [r7, #80] @ 0x50 - 800513e: 2b00 cmp r3, #0 - 8005140: d1e4 bne.n 800510c + 8005b34: 6d3b ldr r3, [r7, #80] @ 0x50 + 8005b36: 2b00 cmp r3, #0 + 8005b38: d1e4 bne.n 8005b04 /* Last bytes received, so no need as the abort is immediate */ (void)HAL_DMA_Abort(huart->hdmarx); - 8005142: 687b ldr r3, [r7, #4] - 8005144: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80 - 8005148: 4618 mov r0, r3 - 800514a: f7fd fdac bl 8002ca6 + 8005b3a: 687b ldr r3, [r7, #4] + 8005b3c: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80 + 8005b40: 4618 mov r0, r3 + 8005b42: f7fd fdac bl 800369e } /* Initialize type of RxEvent that correspond to RxEvent callback execution; In this case, Rx Event type is Idle Event */ huart->RxEventType = HAL_UART_RXEVENT_IDLE; - 800514e: 687b ldr r3, [r7, #4] - 8005150: 2202 movs r2, #2 - 8005152: 671a str r2, [r3, #112] @ 0x70 + 8005b46: 687b ldr r3, [r7, #4] + 8005b48: 2202 movs r2, #2 + 8005b4a: 671a str r2, [r3, #112] @ 0x70 #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered Rx Event callback*/ huart->RxEventCallback(huart, (huart->RxXferSize - huart->RxXferCount)); #else /*Call legacy weak Rx Event callback*/ HAL_UARTEx_RxEventCallback(huart, (huart->RxXferSize - huart->RxXferCount)); - 8005154: 687b ldr r3, [r7, #4] - 8005156: f8b3 205c ldrh.w r2, [r3, #92] @ 0x5c - 800515a: 687b ldr r3, [r7, #4] - 800515c: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e - 8005160: b29b uxth r3, r3 - 8005162: 1ad3 subs r3, r2, r3 - 8005164: b29b uxth r3, r3 - 8005166: 4619 mov r1, r3 - 8005168: 6878 ldr r0, [r7, #4] - 800516a: f000 f911 bl 8005390 + 8005b4c: 687b ldr r3, [r7, #4] + 8005b4e: f8b3 205c ldrh.w r2, [r3, #92] @ 0x5c + 8005b52: 687b ldr r3, [r7, #4] + 8005b54: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e + 8005b58: b29b uxth r3, r3 + 8005b5a: 1ad3 subs r3, r2, r3 + 8005b5c: b29b uxth r3, r3 + 8005b5e: 4619 mov r1, r3 + 8005b60: 6878 ldr r0, [r7, #4] + 8005b62: f000 f911 bl 8005d88 HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize); #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */ } } } return; - 800516e: e0fc b.n 800536a + 8005b66: e0fc b.n 8005d62 if (nb_remaining_rx_data == huart->RxXferSize) - 8005170: 687b ldr r3, [r7, #4] - 8005172: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c - 8005176: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe - 800517a: 429a cmp r2, r3 - 800517c: f040 80f5 bne.w 800536a + 8005b68: 687b ldr r3, [r7, #4] + 8005b6a: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c + 8005b6e: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe + 8005b72: 429a cmp r2, r3 + 8005b74: f040 80f5 bne.w 8005d62 if (HAL_IS_BIT_SET(huart->hdmarx->Instance->CCR, DMA_CCR_CIRC)) - 8005180: 687b ldr r3, [r7, #4] - 8005182: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80 - 8005186: 681b ldr r3, [r3, #0] - 8005188: 681b ldr r3, [r3, #0] - 800518a: f003 0320 and.w r3, r3, #32 - 800518e: 2b20 cmp r3, #32 - 8005190: f040 80eb bne.w 800536a + 8005b78: 687b ldr r3, [r7, #4] + 8005b7a: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80 + 8005b7e: 681b ldr r3, [r3, #0] + 8005b80: 681b ldr r3, [r3, #0] + 8005b82: f003 0320 and.w r3, r3, #32 + 8005b86: 2b20 cmp r3, #32 + 8005b88: f040 80eb bne.w 8005d62 huart->RxEventType = HAL_UART_RXEVENT_IDLE; - 8005194: 687b ldr r3, [r7, #4] - 8005196: 2202 movs r2, #2 - 8005198: 671a str r2, [r3, #112] @ 0x70 + 8005b8c: 687b ldr r3, [r7, #4] + 8005b8e: 2202 movs r2, #2 + 8005b90: 671a str r2, [r3, #112] @ 0x70 HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize); - 800519a: 687b ldr r3, [r7, #4] - 800519c: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c - 80051a0: 4619 mov r1, r3 - 80051a2: 6878 ldr r0, [r7, #4] - 80051a4: f000 f8f4 bl 8005390 + 8005b92: 687b ldr r3, [r7, #4] + 8005b94: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c + 8005b98: 4619 mov r1, r3 + 8005b9a: 6878 ldr r0, [r7, #4] + 8005b9c: f000 f8f4 bl 8005d88 return; - 80051a8: e0df b.n 800536a + 8005ba0: e0df b.n 8005d62 else { /* DMA mode not enabled */ /* Check received length : If all expected data are received, do nothing. Otherwise, if at least one data has already been received, IDLE event is to be notified to user */ uint16_t nb_rx_data = huart->RxXferSize - huart->RxXferCount; - 80051aa: 687b ldr r3, [r7, #4] - 80051ac: f8b3 205c ldrh.w r2, [r3, #92] @ 0x5c - 80051b0: 687b ldr r3, [r7, #4] - 80051b2: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e - 80051b6: b29b uxth r3, r3 - 80051b8: 1ad3 subs r3, r2, r3 - 80051ba: f8a7 30ce strh.w r3, [r7, #206] @ 0xce + 8005ba2: 687b ldr r3, [r7, #4] + 8005ba4: f8b3 205c ldrh.w r2, [r3, #92] @ 0x5c + 8005ba8: 687b ldr r3, [r7, #4] + 8005baa: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e + 8005bae: b29b uxth r3, r3 + 8005bb0: 1ad3 subs r3, r2, r3 + 8005bb2: f8a7 30ce strh.w r3, [r7, #206] @ 0xce if ((huart->RxXferCount > 0U) - 80051be: 687b ldr r3, [r7, #4] - 80051c0: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e - 80051c4: b29b uxth r3, r3 - 80051c6: 2b00 cmp r3, #0 - 80051c8: f000 80d1 beq.w 800536e + 8005bb6: 687b ldr r3, [r7, #4] + 8005bb8: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e + 8005bbc: b29b uxth r3, r3 + 8005bbe: 2b00 cmp r3, #0 + 8005bc0: f000 80d1 beq.w 8005d66 && (nb_rx_data > 0U)) - 80051cc: f8b7 30ce ldrh.w r3, [r7, #206] @ 0xce - 80051d0: 2b00 cmp r3, #0 - 80051d2: f000 80cc beq.w 800536e + 8005bc4: f8b7 30ce ldrh.w r3, [r7, #206] @ 0xce + 8005bc8: 2b00 cmp r3, #0 + 8005bca: f000 80cc beq.w 8005d66 { /* Disable the UART Parity Error Interrupt and RXNE interrupts */ ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE)); - 80051d6: 687b ldr r3, [r7, #4] - 80051d8: 681b ldr r3, [r3, #0] - 80051da: 63bb str r3, [r7, #56] @ 0x38 + 8005bce: 687b ldr r3, [r7, #4] + 8005bd0: 681b ldr r3, [r3, #0] + 8005bd2: 63bb str r3, [r7, #56] @ 0x38 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 80051dc: 6bbb ldr r3, [r7, #56] @ 0x38 - 80051de: e853 3f00 ldrex r3, [r3] - 80051e2: 637b str r3, [r7, #52] @ 0x34 + 8005bd4: 6bbb ldr r3, [r7, #56] @ 0x38 + 8005bd6: e853 3f00 ldrex r3, [r3] + 8005bda: 637b str r3, [r7, #52] @ 0x34 return(result); - 80051e4: 6b7b ldr r3, [r7, #52] @ 0x34 - 80051e6: f423 7390 bic.w r3, r3, #288 @ 0x120 - 80051ea: f8c7 30c8 str.w r3, [r7, #200] @ 0xc8 - 80051ee: 687b ldr r3, [r7, #4] - 80051f0: 681b ldr r3, [r3, #0] - 80051f2: 461a mov r2, r3 - 80051f4: f8d7 30c8 ldr.w r3, [r7, #200] @ 0xc8 - 80051f8: 647b str r3, [r7, #68] @ 0x44 - 80051fa: 643a str r2, [r7, #64] @ 0x40 + 8005bdc: 6b7b ldr r3, [r7, #52] @ 0x34 + 8005bde: f423 7390 bic.w r3, r3, #288 @ 0x120 + 8005be2: f8c7 30c8 str.w r3, [r7, #200] @ 0xc8 + 8005be6: 687b ldr r3, [r7, #4] + 8005be8: 681b ldr r3, [r3, #0] + 8005bea: 461a mov r2, r3 + 8005bec: f8d7 30c8 ldr.w r3, [r7, #200] @ 0xc8 + 8005bf0: 647b str r3, [r7, #68] @ 0x44 + 8005bf2: 643a str r2, [r7, #64] @ 0x40 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 80051fc: 6c39 ldr r1, [r7, #64] @ 0x40 - 80051fe: 6c7a ldr r2, [r7, #68] @ 0x44 - 8005200: e841 2300 strex r3, r2, [r1] - 8005204: 63fb str r3, [r7, #60] @ 0x3c + 8005bf4: 6c39 ldr r1, [r7, #64] @ 0x40 + 8005bf6: 6c7a ldr r2, [r7, #68] @ 0x44 + 8005bf8: e841 2300 strex r3, r2, [r1] + 8005bfc: 63fb str r3, [r7, #60] @ 0x3c return(result); - 8005206: 6bfb ldr r3, [r7, #60] @ 0x3c - 8005208: 2b00 cmp r3, #0 - 800520a: d1e4 bne.n 80051d6 + 8005bfe: 6bfb ldr r3, [r7, #60] @ 0x3c + 8005c00: 2b00 cmp r3, #0 + 8005c02: d1e4 bne.n 8005bce /* Disable the UART Error Interrupt:(Frame error, noise error, overrun error) and RX FIFO Threshold interrupt */ ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE)); - 800520c: 687b ldr r3, [r7, #4] - 800520e: 681b ldr r3, [r3, #0] - 8005210: 3308 adds r3, #8 - 8005212: 627b str r3, [r7, #36] @ 0x24 + 8005c04: 687b ldr r3, [r7, #4] + 8005c06: 681b ldr r3, [r3, #0] + 8005c08: 3308 adds r3, #8 + 8005c0a: 627b str r3, [r7, #36] @ 0x24 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8005214: 6a7b ldr r3, [r7, #36] @ 0x24 - 8005216: e853 3f00 ldrex r3, [r3] - 800521a: 623b str r3, [r7, #32] + 8005c0c: 6a7b ldr r3, [r7, #36] @ 0x24 + 8005c0e: e853 3f00 ldrex r3, [r3] + 8005c12: 623b str r3, [r7, #32] return(result); - 800521c: 6a3b ldr r3, [r7, #32] - 800521e: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000 - 8005222: f023 0301 bic.w r3, r3, #1 - 8005226: f8c7 30c4 str.w r3, [r7, #196] @ 0xc4 - 800522a: 687b ldr r3, [r7, #4] - 800522c: 681b ldr r3, [r3, #0] - 800522e: 3308 adds r3, #8 - 8005230: f8d7 20c4 ldr.w r2, [r7, #196] @ 0xc4 - 8005234: 633a str r2, [r7, #48] @ 0x30 - 8005236: 62fb str r3, [r7, #44] @ 0x2c + 8005c14: 6a3b ldr r3, [r7, #32] + 8005c16: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000 + 8005c1a: f023 0301 bic.w r3, r3, #1 + 8005c1e: f8c7 30c4 str.w r3, [r7, #196] @ 0xc4 + 8005c22: 687b ldr r3, [r7, #4] + 8005c24: 681b ldr r3, [r3, #0] + 8005c26: 3308 adds r3, #8 + 8005c28: f8d7 20c4 ldr.w r2, [r7, #196] @ 0xc4 + 8005c2c: 633a str r2, [r7, #48] @ 0x30 + 8005c2e: 62fb str r3, [r7, #44] @ 0x2c __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8005238: 6af9 ldr r1, [r7, #44] @ 0x2c - 800523a: 6b3a ldr r2, [r7, #48] @ 0x30 - 800523c: e841 2300 strex r3, r2, [r1] - 8005240: 62bb str r3, [r7, #40] @ 0x28 + 8005c30: 6af9 ldr r1, [r7, #44] @ 0x2c + 8005c32: 6b3a ldr r2, [r7, #48] @ 0x30 + 8005c34: e841 2300 strex r3, r2, [r1] + 8005c38: 62bb str r3, [r7, #40] @ 0x28 return(result); - 8005242: 6abb ldr r3, [r7, #40] @ 0x28 - 8005244: 2b00 cmp r3, #0 - 8005246: d1e1 bne.n 800520c + 8005c3a: 6abb ldr r3, [r7, #40] @ 0x28 + 8005c3c: 2b00 cmp r3, #0 + 8005c3e: d1e1 bne.n 8005c04 /* Rx process is completed, restore huart->RxState to Ready */ huart->RxState = HAL_UART_STATE_READY; - 8005248: 687b ldr r3, [r7, #4] - 800524a: 2220 movs r2, #32 - 800524c: f8c3 208c str.w r2, [r3, #140] @ 0x8c + 8005c40: 687b ldr r3, [r7, #4] + 8005c42: 2220 movs r2, #32 + 8005c44: f8c3 208c str.w r2, [r3, #140] @ 0x8c huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; - 8005250: 687b ldr r3, [r7, #4] - 8005252: 2200 movs r2, #0 - 8005254: 66da str r2, [r3, #108] @ 0x6c + 8005c48: 687b ldr r3, [r7, #4] + 8005c4a: 2200 movs r2, #0 + 8005c4c: 66da str r2, [r3, #108] @ 0x6c /* Clear RxISR function pointer */ huart->RxISR = NULL; - 8005256: 687b ldr r3, [r7, #4] - 8005258: 2200 movs r2, #0 - 800525a: 675a str r2, [r3, #116] @ 0x74 + 8005c4e: 687b ldr r3, [r7, #4] + 8005c50: 2200 movs r2, #0 + 8005c52: 675a str r2, [r3, #116] @ 0x74 ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); - 800525c: 687b ldr r3, [r7, #4] - 800525e: 681b ldr r3, [r3, #0] - 8005260: 613b str r3, [r7, #16] + 8005c54: 687b ldr r3, [r7, #4] + 8005c56: 681b ldr r3, [r3, #0] + 8005c58: 613b str r3, [r7, #16] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8005262: 693b ldr r3, [r7, #16] - 8005264: e853 3f00 ldrex r3, [r3] - 8005268: 60fb str r3, [r7, #12] + 8005c5a: 693b ldr r3, [r7, #16] + 8005c5c: e853 3f00 ldrex r3, [r3] + 8005c60: 60fb str r3, [r7, #12] return(result); - 800526a: 68fb ldr r3, [r7, #12] - 800526c: f023 0310 bic.w r3, r3, #16 - 8005270: f8c7 30c0 str.w r3, [r7, #192] @ 0xc0 - 8005274: 687b ldr r3, [r7, #4] - 8005276: 681b ldr r3, [r3, #0] - 8005278: 461a mov r2, r3 - 800527a: f8d7 30c0 ldr.w r3, [r7, #192] @ 0xc0 - 800527e: 61fb str r3, [r7, #28] - 8005280: 61ba str r2, [r7, #24] + 8005c62: 68fb ldr r3, [r7, #12] + 8005c64: f023 0310 bic.w r3, r3, #16 + 8005c68: f8c7 30c0 str.w r3, [r7, #192] @ 0xc0 + 8005c6c: 687b ldr r3, [r7, #4] + 8005c6e: 681b ldr r3, [r3, #0] + 8005c70: 461a mov r2, r3 + 8005c72: f8d7 30c0 ldr.w r3, [r7, #192] @ 0xc0 + 8005c76: 61fb str r3, [r7, #28] + 8005c78: 61ba str r2, [r7, #24] __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8005282: 69b9 ldr r1, [r7, #24] - 8005284: 69fa ldr r2, [r7, #28] - 8005286: e841 2300 strex r3, r2, [r1] - 800528a: 617b str r3, [r7, #20] + 8005c7a: 69b9 ldr r1, [r7, #24] + 8005c7c: 69fa ldr r2, [r7, #28] + 8005c7e: e841 2300 strex r3, r2, [r1] + 8005c82: 617b str r3, [r7, #20] return(result); - 800528c: 697b ldr r3, [r7, #20] - 800528e: 2b00 cmp r3, #0 - 8005290: d1e4 bne.n 800525c + 8005c84: 697b ldr r3, [r7, #20] + 8005c86: 2b00 cmp r3, #0 + 8005c88: d1e4 bne.n 8005c54 /* Initialize type of RxEvent that correspond to RxEvent callback execution; In this case, Rx Event type is Idle Event */ huart->RxEventType = HAL_UART_RXEVENT_IDLE; - 8005292: 687b ldr r3, [r7, #4] - 8005294: 2202 movs r2, #2 - 8005296: 671a str r2, [r3, #112] @ 0x70 + 8005c8a: 687b ldr r3, [r7, #4] + 8005c8c: 2202 movs r2, #2 + 8005c8e: 671a str r2, [r3, #112] @ 0x70 #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered Rx complete callback*/ huart->RxEventCallback(huart, nb_rx_data); #else /*Call legacy weak Rx Event callback*/ HAL_UARTEx_RxEventCallback(huart, nb_rx_data); - 8005298: f8b7 30ce ldrh.w r3, [r7, #206] @ 0xce - 800529c: 4619 mov r1, r3 - 800529e: 6878 ldr r0, [r7, #4] - 80052a0: f000 f876 bl 8005390 + 8005c90: f8b7 30ce ldrh.w r3, [r7, #206] @ 0xce + 8005c94: 4619 mov r1, r3 + 8005c96: 6878 ldr r0, [r7, #4] + 8005c98: f000 f876 bl 8005d88 #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */ } return; - 80052a4: e063 b.n 800536e + 8005c9c: e063 b.n 8005d66 } } /* UART wakeup from Stop mode interrupt occurred ---------------------------*/ if (((isrflags & USART_ISR_WUF) != 0U) && ((cr3its & USART_CR3_WUFIE) != 0U)) - 80052a6: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 - 80052aa: f403 1380 and.w r3, r3, #1048576 @ 0x100000 - 80052ae: 2b00 cmp r3, #0 - 80052b0: d00e beq.n 80052d0 - 80052b2: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc - 80052b6: f403 0380 and.w r3, r3, #4194304 @ 0x400000 - 80052ba: 2b00 cmp r3, #0 - 80052bc: d008 beq.n 80052d0 + 8005c9e: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 + 8005ca2: f403 1380 and.w r3, r3, #1048576 @ 0x100000 + 8005ca6: 2b00 cmp r3, #0 + 8005ca8: d00e beq.n 8005cc8 + 8005caa: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc + 8005cae: f403 0380 and.w r3, r3, #4194304 @ 0x400000 + 8005cb2: 2b00 cmp r3, #0 + 8005cb4: d008 beq.n 8005cc8 { __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_WUF); - 80052be: 687b ldr r3, [r7, #4] - 80052c0: 681b ldr r3, [r3, #0] - 80052c2: f44f 1280 mov.w r2, #1048576 @ 0x100000 - 80052c6: 621a str r2, [r3, #32] + 8005cb6: 687b ldr r3, [r7, #4] + 8005cb8: 681b ldr r3, [r3, #0] + 8005cba: f44f 1280 mov.w r2, #1048576 @ 0x100000 + 8005cbe: 621a str r2, [r3, #32] #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /* Call registered Wakeup Callback */ huart->WakeupCallback(huart); #else /* Call legacy weak Wakeup Callback */ HAL_UARTEx_WakeupCallback(huart); - 80052c8: 6878 ldr r0, [r7, #4] - 80052ca: f001 fbd9 bl 8006a80 + 8005cc0: 6878 ldr r0, [r7, #4] + 8005cc2: f001 fbd9 bl 8007478 #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ return; - 80052ce: e051 b.n 8005374 + 8005cc6: e051 b.n 8005d6c } /* UART in mode Transmitter ------------------------------------------------*/ if (((isrflags & USART_ISR_TXE_TXFNF) != 0U) - 80052d0: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 - 80052d4: f003 0380 and.w r3, r3, #128 @ 0x80 - 80052d8: 2b00 cmp r3, #0 - 80052da: d014 beq.n 8005306 + 8005cc8: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 + 8005ccc: f003 0380 and.w r3, r3, #128 @ 0x80 + 8005cd0: 2b00 cmp r3, #0 + 8005cd2: d014 beq.n 8005cfe && (((cr1its & USART_CR1_TXEIE_TXFNFIE) != 0U) - 80052dc: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 - 80052e0: f003 0380 and.w r3, r3, #128 @ 0x80 - 80052e4: 2b00 cmp r3, #0 - 80052e6: d105 bne.n 80052f4 + 8005cd4: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 + 8005cd8: f003 0380 and.w r3, r3, #128 @ 0x80 + 8005cdc: 2b00 cmp r3, #0 + 8005cde: d105 bne.n 8005cec || ((cr3its & USART_CR3_TXFTIE) != 0U))) - 80052e8: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc - 80052ec: f403 0300 and.w r3, r3, #8388608 @ 0x800000 - 80052f0: 2b00 cmp r3, #0 - 80052f2: d008 beq.n 8005306 + 8005ce0: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc + 8005ce4: f403 0300 and.w r3, r3, #8388608 @ 0x800000 + 8005ce8: 2b00 cmp r3, #0 + 8005cea: d008 beq.n 8005cfe { if (huart->TxISR != NULL) - 80052f4: 687b ldr r3, [r7, #4] - 80052f6: 6f9b ldr r3, [r3, #120] @ 0x78 - 80052f8: 2b00 cmp r3, #0 - 80052fa: d03a beq.n 8005372 + 8005cec: 687b ldr r3, [r7, #4] + 8005cee: 6f9b ldr r3, [r3, #120] @ 0x78 + 8005cf0: 2b00 cmp r3, #0 + 8005cf2: d03a beq.n 8005d6a { huart->TxISR(huart); - 80052fc: 687b ldr r3, [r7, #4] - 80052fe: 6f9b ldr r3, [r3, #120] @ 0x78 - 8005300: 6878 ldr r0, [r7, #4] - 8005302: 4798 blx r3 + 8005cf4: 687b ldr r3, [r7, #4] + 8005cf6: 6f9b ldr r3, [r3, #120] @ 0x78 + 8005cf8: 6878 ldr r0, [r7, #4] + 8005cfa: 4798 blx r3 } return; - 8005304: e035 b.n 8005372 + 8005cfc: e035 b.n 8005d6a } /* UART in mode Transmitter (transmission end) -----------------------------*/ if (((isrflags & USART_ISR_TC) != 0U) && ((cr1its & USART_CR1_TCIE) != 0U)) - 8005306: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 - 800530a: f003 0340 and.w r3, r3, #64 @ 0x40 - 800530e: 2b00 cmp r3, #0 - 8005310: d009 beq.n 8005326 - 8005312: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 - 8005316: f003 0340 and.w r3, r3, #64 @ 0x40 - 800531a: 2b00 cmp r3, #0 - 800531c: d003 beq.n 8005326 + 8005cfe: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 + 8005d02: f003 0340 and.w r3, r3, #64 @ 0x40 + 8005d06: 2b00 cmp r3, #0 + 8005d08: d009 beq.n 8005d1e + 8005d0a: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 + 8005d0e: f003 0340 and.w r3, r3, #64 @ 0x40 + 8005d12: 2b00 cmp r3, #0 + 8005d14: d003 beq.n 8005d1e { UART_EndTransmit_IT(huart); - 800531e: 6878 ldr r0, [r7, #4] - 8005320: f000 fe62 bl 8005fe8 + 8005d16: 6878 ldr r0, [r7, #4] + 8005d18: f000 fe62 bl 80069e0 return; - 8005324: e026 b.n 8005374 + 8005d1c: e026 b.n 8005d6c } /* UART TX Fifo Empty occurred ----------------------------------------------*/ if (((isrflags & USART_ISR_TXFE) != 0U) && ((cr1its & USART_CR1_TXFEIE) != 0U)) - 8005326: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 - 800532a: f403 0300 and.w r3, r3, #8388608 @ 0x800000 - 800532e: 2b00 cmp r3, #0 - 8005330: d009 beq.n 8005346 - 8005332: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 - 8005336: f003 4380 and.w r3, r3, #1073741824 @ 0x40000000 - 800533a: 2b00 cmp r3, #0 - 800533c: d003 beq.n 8005346 + 8005d1e: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 + 8005d22: f403 0300 and.w r3, r3, #8388608 @ 0x800000 + 8005d26: 2b00 cmp r3, #0 + 8005d28: d009 beq.n 8005d3e + 8005d2a: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 + 8005d2e: f003 4380 and.w r3, r3, #1073741824 @ 0x40000000 + 8005d32: 2b00 cmp r3, #0 + 8005d34: d003 beq.n 8005d3e #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /* Call registered Tx Fifo Empty Callback */ huart->TxFifoEmptyCallback(huart); #else /* Call legacy weak Tx Fifo Empty Callback */ HAL_UARTEx_TxFifoEmptyCallback(huart); - 800533e: 6878 ldr r0, [r7, #4] - 8005340: f001 fbb2 bl 8006aa8 + 8005d36: 6878 ldr r0, [r7, #4] + 8005d38: f001 fbb2 bl 80074a0 #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ return; - 8005344: e016 b.n 8005374 + 8005d3c: e016 b.n 8005d6c } /* UART RX Fifo Full occurred ----------------------------------------------*/ if (((isrflags & USART_ISR_RXFF) != 0U) && ((cr1its & USART_CR1_RXFFIE) != 0U)) - 8005346: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 - 800534a: f003 7380 and.w r3, r3, #16777216 @ 0x1000000 - 800534e: 2b00 cmp r3, #0 - 8005350: d010 beq.n 8005374 - 8005352: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 - 8005356: 2b00 cmp r3, #0 - 8005358: da0c bge.n 8005374 + 8005d3e: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 + 8005d42: f003 7380 and.w r3, r3, #16777216 @ 0x1000000 + 8005d46: 2b00 cmp r3, #0 + 8005d48: d010 beq.n 8005d6c + 8005d4a: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 + 8005d4e: 2b00 cmp r3, #0 + 8005d50: da0c bge.n 8005d6c #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /* Call registered Rx Fifo Full Callback */ huart->RxFifoFullCallback(huart); #else /* Call legacy weak Rx Fifo Full Callback */ HAL_UARTEx_RxFifoFullCallback(huart); - 800535a: 6878 ldr r0, [r7, #4] - 800535c: f001 fb9a bl 8006a94 + 8005d52: 6878 ldr r0, [r7, #4] + 8005d54: f001 fb9a bl 800748c #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ return; - 8005360: e008 b.n 8005374 + 8005d58: e008 b.n 8005d6c return; - 8005362: bf00 nop - 8005364: e006 b.n 8005374 + 8005d5a: bf00 nop + 8005d5c: e006 b.n 8005d6c return; - 8005366: bf00 nop - 8005368: e004 b.n 8005374 + 8005d5e: bf00 nop + 8005d60: e004 b.n 8005d6c return; - 800536a: bf00 nop - 800536c: e002 b.n 8005374 + 8005d62: bf00 nop + 8005d64: e002 b.n 8005d6c return; - 800536e: bf00 nop - 8005370: e000 b.n 8005374 + 8005d66: bf00 nop + 8005d68: e000 b.n 8005d6c return; - 8005372: bf00 nop + 8005d6a: bf00 nop } } - 8005374: 37e8 adds r7, #232 @ 0xe8 - 8005376: 46bd mov sp, r7 - 8005378: bd80 pop {r7, pc} - 800537a: bf00 nop + 8005d6c: 37e8 adds r7, #232 @ 0xe8 + 8005d6e: 46bd mov sp, r7 + 8005d70: bd80 pop {r7, pc} + 8005d72: bf00 nop -0800537c : +08005d74 : * @brief UART error callback. * @param huart UART handle. * @retval None */ __weak void HAL_UART_ErrorCallback(UART_HandleTypeDef *huart) { - 800537c: b480 push {r7} - 800537e: b083 sub sp, #12 - 8005380: af00 add r7, sp, #0 - 8005382: 6078 str r0, [r7, #4] + 8005d74: b480 push {r7} + 8005d76: b083 sub sp, #12 + 8005d78: af00 add r7, sp, #0 + 8005d7a: 6078 str r0, [r7, #4] UNUSED(huart); /* NOTE : This function should not be modified, when the callback is needed, the HAL_UART_ErrorCallback can be implemented in the user file. */ } - 8005384: bf00 nop - 8005386: 370c adds r7, #12 - 8005388: 46bd mov sp, r7 - 800538a: f85d 7b04 ldr.w r7, [sp], #4 - 800538e: 4770 bx lr + 8005d7c: bf00 nop + 8005d7e: 370c adds r7, #12 + 8005d80: 46bd mov sp, r7 + 8005d82: f85d 7b04 ldr.w r7, [sp], #4 + 8005d86: 4770 bx lr -08005390 : +08005d88 : * @param Size Number of data available in application reception buffer (indicates a position in * reception buffer until which, data are available) * @retval None */ __weak void HAL_UARTEx_RxEventCallback(UART_HandleTypeDef *huart, uint16_t Size) { - 8005390: b480 push {r7} - 8005392: b083 sub sp, #12 - 8005394: af00 add r7, sp, #0 - 8005396: 6078 str r0, [r7, #4] - 8005398: 460b mov r3, r1 - 800539a: 807b strh r3, [r7, #2] + 8005d88: b480 push {r7} + 8005d8a: b083 sub sp, #12 + 8005d8c: af00 add r7, sp, #0 + 8005d8e: 6078 str r0, [r7, #4] + 8005d90: 460b mov r3, r1 + 8005d92: 807b strh r3, [r7, #2] UNUSED(Size); /* NOTE : This function should not be modified, when the callback is needed, the HAL_UARTEx_RxEventCallback can be implemented in the user file. */ } - 800539c: bf00 nop - 800539e: 370c adds r7, #12 - 80053a0: 46bd mov sp, r7 - 80053a2: f85d 7b04 ldr.w r7, [sp], #4 - 80053a6: 4770 bx lr + 8005d94: bf00 nop + 8005d96: 370c adds r7, #12 + 8005d98: 46bd mov sp, r7 + 8005d9a: f85d 7b04 ldr.w r7, [sp], #4 + 8005d9e: 4770 bx lr -080053a8 : +08005da0 : * @brief Configure the UART peripheral. * @param huart UART handle. * @retval HAL status */ HAL_StatusTypeDef UART_SetConfig(UART_HandleTypeDef *huart) { - 80053a8: e92d 4fb0 stmdb sp!, {r4, r5, r7, r8, r9, sl, fp, lr} - 80053ac: b08c sub sp, #48 @ 0x30 - 80053ae: af00 add r7, sp, #0 - 80053b0: 6178 str r0, [r7, #20] + 8005da0: e92d 4fb0 stmdb sp!, {r4, r5, r7, r8, r9, sl, fp, lr} + 8005da4: b08c sub sp, #48 @ 0x30 + 8005da6: af00 add r7, sp, #0 + 8005da8: 6178 str r0, [r7, #20] uint32_t tmpreg; uint16_t brrtemp; UART_ClockSourceTypeDef clocksource; uint32_t usartdiv; HAL_StatusTypeDef ret = HAL_OK; - 80053b2: 2300 movs r3, #0 - 80053b4: f887 302a strb.w r3, [r7, #42] @ 0x2a + 8005daa: 2300 movs r3, #0 + 8005dac: f887 302a strb.w r3, [r7, #42] @ 0x2a * the UART Word Length, Parity, Mode and oversampling: * set the M bits according to huart->Init.WordLength value * set PCE and PS bits according to huart->Init.Parity value * set TE and RE bits according to huart->Init.Mode value * set OVER8 bit according to huart->Init.OverSampling value */ tmpreg = (uint32_t)huart->Init.WordLength | huart->Init.Parity | huart->Init.Mode | huart->Init.OverSampling ; - 80053b8: 697b ldr r3, [r7, #20] - 80053ba: 689a ldr r2, [r3, #8] - 80053bc: 697b ldr r3, [r7, #20] - 80053be: 691b ldr r3, [r3, #16] - 80053c0: 431a orrs r2, r3 - 80053c2: 697b ldr r3, [r7, #20] - 80053c4: 695b ldr r3, [r3, #20] - 80053c6: 431a orrs r2, r3 - 80053c8: 697b ldr r3, [r7, #20] - 80053ca: 69db ldr r3, [r3, #28] - 80053cc: 4313 orrs r3, r2 - 80053ce: 62fb str r3, [r7, #44] @ 0x2c + 8005db0: 697b ldr r3, [r7, #20] + 8005db2: 689a ldr r2, [r3, #8] + 8005db4: 697b ldr r3, [r7, #20] + 8005db6: 691b ldr r3, [r3, #16] + 8005db8: 431a orrs r2, r3 + 8005dba: 697b ldr r3, [r7, #20] + 8005dbc: 695b ldr r3, [r3, #20] + 8005dbe: 431a orrs r2, r3 + 8005dc0: 697b ldr r3, [r7, #20] + 8005dc2: 69db ldr r3, [r3, #28] + 8005dc4: 4313 orrs r3, r2 + 8005dc6: 62fb str r3, [r7, #44] @ 0x2c MODIFY_REG(huart->Instance->CR1, USART_CR1_FIELDS, tmpreg); - 80053d0: 697b ldr r3, [r7, #20] - 80053d2: 681b ldr r3, [r3, #0] - 80053d4: 681a ldr r2, [r3, #0] - 80053d6: 4bab ldr r3, [pc, #684] @ (8005684 ) - 80053d8: 4013 ands r3, r2 - 80053da: 697a ldr r2, [r7, #20] - 80053dc: 6812 ldr r2, [r2, #0] - 80053de: 6af9 ldr r1, [r7, #44] @ 0x2c - 80053e0: 430b orrs r3, r1 - 80053e2: 6013 str r3, [r2, #0] + 8005dc8: 697b ldr r3, [r7, #20] + 8005dca: 681b ldr r3, [r3, #0] + 8005dcc: 681a ldr r2, [r3, #0] + 8005dce: 4bab ldr r3, [pc, #684] @ (800607c ) + 8005dd0: 4013 ands r3, r2 + 8005dd2: 697a ldr r2, [r7, #20] + 8005dd4: 6812 ldr r2, [r2, #0] + 8005dd6: 6af9 ldr r1, [r7, #44] @ 0x2c + 8005dd8: 430b orrs r3, r1 + 8005dda: 6013 str r3, [r2, #0] /*-------------------------- USART CR2 Configuration -----------------------*/ /* Configure the UART Stop Bits: Set STOP[13:12] bits according * to huart->Init.StopBits value */ MODIFY_REG(huart->Instance->CR2, USART_CR2_STOP, huart->Init.StopBits); - 80053e4: 697b ldr r3, [r7, #20] - 80053e6: 681b ldr r3, [r3, #0] - 80053e8: 685b ldr r3, [r3, #4] - 80053ea: f423 5140 bic.w r1, r3, #12288 @ 0x3000 - 80053ee: 697b ldr r3, [r7, #20] - 80053f0: 68da ldr r2, [r3, #12] - 80053f2: 697b ldr r3, [r7, #20] - 80053f4: 681b ldr r3, [r3, #0] - 80053f6: 430a orrs r2, r1 - 80053f8: 605a str r2, [r3, #4] + 8005ddc: 697b ldr r3, [r7, #20] + 8005dde: 681b ldr r3, [r3, #0] + 8005de0: 685b ldr r3, [r3, #4] + 8005de2: f423 5140 bic.w r1, r3, #12288 @ 0x3000 + 8005de6: 697b ldr r3, [r7, #20] + 8005de8: 68da ldr r2, [r3, #12] + 8005dea: 697b ldr r3, [r7, #20] + 8005dec: 681b ldr r3, [r3, #0] + 8005dee: 430a orrs r2, r1 + 8005df0: 605a str r2, [r3, #4] /* Configure * - UART HardWare Flow Control: set CTSE and RTSE bits according * to huart->Init.HwFlowCtl value * - one-bit sampling method versus three samples' majority rule according * to huart->Init.OneBitSampling (not applicable to LPUART) */ tmpreg = (uint32_t)huart->Init.HwFlowCtl; - 80053fa: 697b ldr r3, [r7, #20] - 80053fc: 699b ldr r3, [r3, #24] - 80053fe: 62fb str r3, [r7, #44] @ 0x2c + 8005df2: 697b ldr r3, [r7, #20] + 8005df4: 699b ldr r3, [r3, #24] + 8005df6: 62fb str r3, [r7, #44] @ 0x2c if (!(UART_INSTANCE_LOWPOWER(huart))) - 8005400: 697b ldr r3, [r7, #20] - 8005402: 681b ldr r3, [r3, #0] - 8005404: 4aa0 ldr r2, [pc, #640] @ (8005688 ) - 8005406: 4293 cmp r3, r2 - 8005408: d004 beq.n 8005414 + 8005df8: 697b ldr r3, [r7, #20] + 8005dfa: 681b ldr r3, [r3, #0] + 8005dfc: 4aa0 ldr r2, [pc, #640] @ (8006080 ) + 8005dfe: 4293 cmp r3, r2 + 8005e00: d004 beq.n 8005e0c { tmpreg |= huart->Init.OneBitSampling; - 800540a: 697b ldr r3, [r7, #20] - 800540c: 6a1b ldr r3, [r3, #32] - 800540e: 6afa ldr r2, [r7, #44] @ 0x2c - 8005410: 4313 orrs r3, r2 - 8005412: 62fb str r3, [r7, #44] @ 0x2c + 8005e02: 697b ldr r3, [r7, #20] + 8005e04: 6a1b ldr r3, [r3, #32] + 8005e06: 6afa ldr r2, [r7, #44] @ 0x2c + 8005e08: 4313 orrs r3, r2 + 8005e0a: 62fb str r3, [r7, #44] @ 0x2c } MODIFY_REG(huart->Instance->CR3, USART_CR3_FIELDS, tmpreg); - 8005414: 697b ldr r3, [r7, #20] - 8005416: 681b ldr r3, [r3, #0] - 8005418: 689b ldr r3, [r3, #8] - 800541a: f023 436e bic.w r3, r3, #3992977408 @ 0xee000000 - 800541e: f423 6330 bic.w r3, r3, #2816 @ 0xb00 - 8005422: 697a ldr r2, [r7, #20] - 8005424: 6812 ldr r2, [r2, #0] - 8005426: 6af9 ldr r1, [r7, #44] @ 0x2c - 8005428: 430b orrs r3, r1 - 800542a: 6093 str r3, [r2, #8] + 8005e0c: 697b ldr r3, [r7, #20] + 8005e0e: 681b ldr r3, [r3, #0] + 8005e10: 689b ldr r3, [r3, #8] + 8005e12: f023 436e bic.w r3, r3, #3992977408 @ 0xee000000 + 8005e16: f423 6330 bic.w r3, r3, #2816 @ 0xb00 + 8005e1a: 697a ldr r2, [r7, #20] + 8005e1c: 6812 ldr r2, [r2, #0] + 8005e1e: 6af9 ldr r1, [r7, #44] @ 0x2c + 8005e20: 430b orrs r3, r1 + 8005e22: 6093 str r3, [r2, #8] /*-------------------------- USART PRESC Configuration -----------------------*/ /* Configure * - UART Clock Prescaler : set PRESCALER according to huart->Init.ClockPrescaler value */ MODIFY_REG(huart->Instance->PRESC, USART_PRESC_PRESCALER, huart->Init.ClockPrescaler); - 800542c: 697b ldr r3, [r7, #20] - 800542e: 681b ldr r3, [r3, #0] - 8005430: 6adb ldr r3, [r3, #44] @ 0x2c - 8005432: f023 010f bic.w r1, r3, #15 - 8005436: 697b ldr r3, [r7, #20] - 8005438: 6a5a ldr r2, [r3, #36] @ 0x24 - 800543a: 697b ldr r3, [r7, #20] - 800543c: 681b ldr r3, [r3, #0] - 800543e: 430a orrs r2, r1 - 8005440: 62da str r2, [r3, #44] @ 0x2c + 8005e24: 697b ldr r3, [r7, #20] + 8005e26: 681b ldr r3, [r3, #0] + 8005e28: 6adb ldr r3, [r3, #44] @ 0x2c + 8005e2a: f023 010f bic.w r1, r3, #15 + 8005e2e: 697b ldr r3, [r7, #20] + 8005e30: 6a5a ldr r2, [r3, #36] @ 0x24 + 8005e32: 697b ldr r3, [r7, #20] + 8005e34: 681b ldr r3, [r3, #0] + 8005e36: 430a orrs r2, r1 + 8005e38: 62da str r2, [r3, #44] @ 0x2c /*-------------------------- USART BRR Configuration -----------------------*/ UART_GETCLOCKSOURCE(huart, clocksource); - 8005442: 697b ldr r3, [r7, #20] - 8005444: 681b ldr r3, [r3, #0] - 8005446: 4a91 ldr r2, [pc, #580] @ (800568c ) - 8005448: 4293 cmp r3, r2 - 800544a: d125 bne.n 8005498 - 800544c: 4b90 ldr r3, [pc, #576] @ (8005690 ) - 800544e: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 - 8005452: f003 0303 and.w r3, r3, #3 - 8005456: 2b03 cmp r3, #3 - 8005458: d81a bhi.n 8005490 - 800545a: a201 add r2, pc, #4 @ (adr r2, 8005460 ) - 800545c: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 8005460: 08005471 .word 0x08005471 - 8005464: 08005481 .word 0x08005481 - 8005468: 08005479 .word 0x08005479 - 800546c: 08005489 .word 0x08005489 - 8005470: 2301 movs r3, #1 - 8005472: f887 302b strb.w r3, [r7, #43] @ 0x2b - 8005476: e0d6 b.n 8005626 - 8005478: 2302 movs r3, #2 - 800547a: f887 302b strb.w r3, [r7, #43] @ 0x2b - 800547e: e0d2 b.n 8005626 - 8005480: 2304 movs r3, #4 - 8005482: f887 302b strb.w r3, [r7, #43] @ 0x2b - 8005486: e0ce b.n 8005626 - 8005488: 2308 movs r3, #8 - 800548a: f887 302b strb.w r3, [r7, #43] @ 0x2b - 800548e: e0ca b.n 8005626 - 8005490: 2310 movs r3, #16 - 8005492: f887 302b strb.w r3, [r7, #43] @ 0x2b - 8005496: e0c6 b.n 8005626 - 8005498: 697b ldr r3, [r7, #20] - 800549a: 681b ldr r3, [r3, #0] - 800549c: 4a7d ldr r2, [pc, #500] @ (8005694 ) - 800549e: 4293 cmp r3, r2 - 80054a0: d138 bne.n 8005514 - 80054a2: 4b7b ldr r3, [pc, #492] @ (8005690 ) - 80054a4: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 - 80054a8: f003 030c and.w r3, r3, #12 - 80054ac: 2b0c cmp r3, #12 - 80054ae: d82d bhi.n 800550c - 80054b0: a201 add r2, pc, #4 @ (adr r2, 80054b8 ) - 80054b2: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 80054b6: bf00 nop - 80054b8: 080054ed .word 0x080054ed - 80054bc: 0800550d .word 0x0800550d - 80054c0: 0800550d .word 0x0800550d - 80054c4: 0800550d .word 0x0800550d - 80054c8: 080054fd .word 0x080054fd - 80054cc: 0800550d .word 0x0800550d - 80054d0: 0800550d .word 0x0800550d - 80054d4: 0800550d .word 0x0800550d - 80054d8: 080054f5 .word 0x080054f5 - 80054dc: 0800550d .word 0x0800550d - 80054e0: 0800550d .word 0x0800550d - 80054e4: 0800550d .word 0x0800550d - 80054e8: 08005505 .word 0x08005505 - 80054ec: 2300 movs r3, #0 - 80054ee: f887 302b strb.w r3, [r7, #43] @ 0x2b - 80054f2: e098 b.n 8005626 - 80054f4: 2302 movs r3, #2 - 80054f6: f887 302b strb.w r3, [r7, #43] @ 0x2b - 80054fa: e094 b.n 8005626 - 80054fc: 2304 movs r3, #4 - 80054fe: f887 302b strb.w r3, [r7, #43] @ 0x2b - 8005502: e090 b.n 8005626 - 8005504: 2308 movs r3, #8 - 8005506: f887 302b strb.w r3, [r7, #43] @ 0x2b - 800550a: e08c b.n 8005626 - 800550c: 2310 movs r3, #16 - 800550e: f887 302b strb.w r3, [r7, #43] @ 0x2b - 8005512: e088 b.n 8005626 - 8005514: 697b ldr r3, [r7, #20] - 8005516: 681b ldr r3, [r3, #0] - 8005518: 4a5f ldr r2, [pc, #380] @ (8005698 ) - 800551a: 4293 cmp r3, r2 - 800551c: d125 bne.n 800556a - 800551e: 4b5c ldr r3, [pc, #368] @ (8005690 ) - 8005520: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 - 8005524: f003 0330 and.w r3, r3, #48 @ 0x30 - 8005528: 2b30 cmp r3, #48 @ 0x30 - 800552a: d016 beq.n 800555a - 800552c: 2b30 cmp r3, #48 @ 0x30 - 800552e: d818 bhi.n 8005562 - 8005530: 2b20 cmp r3, #32 - 8005532: d00a beq.n 800554a - 8005534: 2b20 cmp r3, #32 - 8005536: d814 bhi.n 8005562 - 8005538: 2b00 cmp r3, #0 - 800553a: d002 beq.n 8005542 - 800553c: 2b10 cmp r3, #16 - 800553e: d008 beq.n 8005552 - 8005540: e00f b.n 8005562 - 8005542: 2300 movs r3, #0 - 8005544: f887 302b strb.w r3, [r7, #43] @ 0x2b - 8005548: e06d b.n 8005626 - 800554a: 2302 movs r3, #2 - 800554c: f887 302b strb.w r3, [r7, #43] @ 0x2b - 8005550: e069 b.n 8005626 - 8005552: 2304 movs r3, #4 - 8005554: f887 302b strb.w r3, [r7, #43] @ 0x2b - 8005558: e065 b.n 8005626 - 800555a: 2308 movs r3, #8 - 800555c: f887 302b strb.w r3, [r7, #43] @ 0x2b - 8005560: e061 b.n 8005626 - 8005562: 2310 movs r3, #16 - 8005564: f887 302b strb.w r3, [r7, #43] @ 0x2b - 8005568: e05d b.n 8005626 - 800556a: 697b ldr r3, [r7, #20] - 800556c: 681b ldr r3, [r3, #0] - 800556e: 4a4b ldr r2, [pc, #300] @ (800569c ) - 8005570: 4293 cmp r3, r2 - 8005572: d125 bne.n 80055c0 - 8005574: 4b46 ldr r3, [pc, #280] @ (8005690 ) - 8005576: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 - 800557a: f003 03c0 and.w r3, r3, #192 @ 0xc0 - 800557e: 2bc0 cmp r3, #192 @ 0xc0 - 8005580: d016 beq.n 80055b0 - 8005582: 2bc0 cmp r3, #192 @ 0xc0 - 8005584: d818 bhi.n 80055b8 - 8005586: 2b80 cmp r3, #128 @ 0x80 - 8005588: d00a beq.n 80055a0 - 800558a: 2b80 cmp r3, #128 @ 0x80 - 800558c: d814 bhi.n 80055b8 - 800558e: 2b00 cmp r3, #0 - 8005590: d002 beq.n 8005598 - 8005592: 2b40 cmp r3, #64 @ 0x40 - 8005594: d008 beq.n 80055a8 - 8005596: e00f b.n 80055b8 - 8005598: 2300 movs r3, #0 - 800559a: f887 302b strb.w r3, [r7, #43] @ 0x2b - 800559e: e042 b.n 8005626 - 80055a0: 2302 movs r3, #2 - 80055a2: f887 302b strb.w r3, [r7, #43] @ 0x2b - 80055a6: e03e b.n 8005626 - 80055a8: 2304 movs r3, #4 - 80055aa: f887 302b strb.w r3, [r7, #43] @ 0x2b - 80055ae: e03a b.n 8005626 - 80055b0: 2308 movs r3, #8 - 80055b2: f887 302b strb.w r3, [r7, #43] @ 0x2b - 80055b6: e036 b.n 8005626 - 80055b8: 2310 movs r3, #16 - 80055ba: f887 302b strb.w r3, [r7, #43] @ 0x2b - 80055be: e032 b.n 8005626 - 80055c0: 697b ldr r3, [r7, #20] - 80055c2: 681b ldr r3, [r3, #0] - 80055c4: 4a30 ldr r2, [pc, #192] @ (8005688 ) - 80055c6: 4293 cmp r3, r2 - 80055c8: d12a bne.n 8005620 - 80055ca: 4b31 ldr r3, [pc, #196] @ (8005690 ) - 80055cc: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 - 80055d0: f403 6340 and.w r3, r3, #3072 @ 0xc00 - 80055d4: f5b3 6f40 cmp.w r3, #3072 @ 0xc00 - 80055d8: d01a beq.n 8005610 - 80055da: f5b3 6f40 cmp.w r3, #3072 @ 0xc00 - 80055de: d81b bhi.n 8005618 - 80055e0: f5b3 6f00 cmp.w r3, #2048 @ 0x800 - 80055e4: d00c beq.n 8005600 - 80055e6: f5b3 6f00 cmp.w r3, #2048 @ 0x800 - 80055ea: d815 bhi.n 8005618 - 80055ec: 2b00 cmp r3, #0 - 80055ee: d003 beq.n 80055f8 - 80055f0: f5b3 6f80 cmp.w r3, #1024 @ 0x400 - 80055f4: d008 beq.n 8005608 - 80055f6: e00f b.n 8005618 - 80055f8: 2300 movs r3, #0 - 80055fa: f887 302b strb.w r3, [r7, #43] @ 0x2b - 80055fe: e012 b.n 8005626 - 8005600: 2302 movs r3, #2 - 8005602: f887 302b strb.w r3, [r7, #43] @ 0x2b - 8005606: e00e b.n 8005626 - 8005608: 2304 movs r3, #4 - 800560a: f887 302b strb.w r3, [r7, #43] @ 0x2b - 800560e: e00a b.n 8005626 - 8005610: 2308 movs r3, #8 - 8005612: f887 302b strb.w r3, [r7, #43] @ 0x2b - 8005616: e006 b.n 8005626 - 8005618: 2310 movs r3, #16 - 800561a: f887 302b strb.w r3, [r7, #43] @ 0x2b - 800561e: e002 b.n 8005626 - 8005620: 2310 movs r3, #16 - 8005622: f887 302b strb.w r3, [r7, #43] @ 0x2b + 8005e3a: 697b ldr r3, [r7, #20] + 8005e3c: 681b ldr r3, [r3, #0] + 8005e3e: 4a91 ldr r2, [pc, #580] @ (8006084 ) + 8005e40: 4293 cmp r3, r2 + 8005e42: d125 bne.n 8005e90 + 8005e44: 4b90 ldr r3, [pc, #576] @ (8006088 ) + 8005e46: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 + 8005e4a: f003 0303 and.w r3, r3, #3 + 8005e4e: 2b03 cmp r3, #3 + 8005e50: d81a bhi.n 8005e88 + 8005e52: a201 add r2, pc, #4 @ (adr r2, 8005e58 ) + 8005e54: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 8005e58: 08005e69 .word 0x08005e69 + 8005e5c: 08005e79 .word 0x08005e79 + 8005e60: 08005e71 .word 0x08005e71 + 8005e64: 08005e81 .word 0x08005e81 + 8005e68: 2301 movs r3, #1 + 8005e6a: f887 302b strb.w r3, [r7, #43] @ 0x2b + 8005e6e: e0d6 b.n 800601e + 8005e70: 2302 movs r3, #2 + 8005e72: f887 302b strb.w r3, [r7, #43] @ 0x2b + 8005e76: e0d2 b.n 800601e + 8005e78: 2304 movs r3, #4 + 8005e7a: f887 302b strb.w r3, [r7, #43] @ 0x2b + 8005e7e: e0ce b.n 800601e + 8005e80: 2308 movs r3, #8 + 8005e82: f887 302b strb.w r3, [r7, #43] @ 0x2b + 8005e86: e0ca b.n 800601e + 8005e88: 2310 movs r3, #16 + 8005e8a: f887 302b strb.w r3, [r7, #43] @ 0x2b + 8005e8e: e0c6 b.n 800601e + 8005e90: 697b ldr r3, [r7, #20] + 8005e92: 681b ldr r3, [r3, #0] + 8005e94: 4a7d ldr r2, [pc, #500] @ (800608c ) + 8005e96: 4293 cmp r3, r2 + 8005e98: d138 bne.n 8005f0c + 8005e9a: 4b7b ldr r3, [pc, #492] @ (8006088 ) + 8005e9c: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 + 8005ea0: f003 030c and.w r3, r3, #12 + 8005ea4: 2b0c cmp r3, #12 + 8005ea6: d82d bhi.n 8005f04 + 8005ea8: a201 add r2, pc, #4 @ (adr r2, 8005eb0 ) + 8005eaa: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 8005eae: bf00 nop + 8005eb0: 08005ee5 .word 0x08005ee5 + 8005eb4: 08005f05 .word 0x08005f05 + 8005eb8: 08005f05 .word 0x08005f05 + 8005ebc: 08005f05 .word 0x08005f05 + 8005ec0: 08005ef5 .word 0x08005ef5 + 8005ec4: 08005f05 .word 0x08005f05 + 8005ec8: 08005f05 .word 0x08005f05 + 8005ecc: 08005f05 .word 0x08005f05 + 8005ed0: 08005eed .word 0x08005eed + 8005ed4: 08005f05 .word 0x08005f05 + 8005ed8: 08005f05 .word 0x08005f05 + 8005edc: 08005f05 .word 0x08005f05 + 8005ee0: 08005efd .word 0x08005efd + 8005ee4: 2300 movs r3, #0 + 8005ee6: f887 302b strb.w r3, [r7, #43] @ 0x2b + 8005eea: e098 b.n 800601e + 8005eec: 2302 movs r3, #2 + 8005eee: f887 302b strb.w r3, [r7, #43] @ 0x2b + 8005ef2: e094 b.n 800601e + 8005ef4: 2304 movs r3, #4 + 8005ef6: f887 302b strb.w r3, [r7, #43] @ 0x2b + 8005efa: e090 b.n 800601e + 8005efc: 2308 movs r3, #8 + 8005efe: f887 302b strb.w r3, [r7, #43] @ 0x2b + 8005f02: e08c b.n 800601e + 8005f04: 2310 movs r3, #16 + 8005f06: f887 302b strb.w r3, [r7, #43] @ 0x2b + 8005f0a: e088 b.n 800601e + 8005f0c: 697b ldr r3, [r7, #20] + 8005f0e: 681b ldr r3, [r3, #0] + 8005f10: 4a5f ldr r2, [pc, #380] @ (8006090 ) + 8005f12: 4293 cmp r3, r2 + 8005f14: d125 bne.n 8005f62 + 8005f16: 4b5c ldr r3, [pc, #368] @ (8006088 ) + 8005f18: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 + 8005f1c: f003 0330 and.w r3, r3, #48 @ 0x30 + 8005f20: 2b30 cmp r3, #48 @ 0x30 + 8005f22: d016 beq.n 8005f52 + 8005f24: 2b30 cmp r3, #48 @ 0x30 + 8005f26: d818 bhi.n 8005f5a + 8005f28: 2b20 cmp r3, #32 + 8005f2a: d00a beq.n 8005f42 + 8005f2c: 2b20 cmp r3, #32 + 8005f2e: d814 bhi.n 8005f5a + 8005f30: 2b00 cmp r3, #0 + 8005f32: d002 beq.n 8005f3a + 8005f34: 2b10 cmp r3, #16 + 8005f36: d008 beq.n 8005f4a + 8005f38: e00f b.n 8005f5a + 8005f3a: 2300 movs r3, #0 + 8005f3c: f887 302b strb.w r3, [r7, #43] @ 0x2b + 8005f40: e06d b.n 800601e + 8005f42: 2302 movs r3, #2 + 8005f44: f887 302b strb.w r3, [r7, #43] @ 0x2b + 8005f48: e069 b.n 800601e + 8005f4a: 2304 movs r3, #4 + 8005f4c: f887 302b strb.w r3, [r7, #43] @ 0x2b + 8005f50: e065 b.n 800601e + 8005f52: 2308 movs r3, #8 + 8005f54: f887 302b strb.w r3, [r7, #43] @ 0x2b + 8005f58: e061 b.n 800601e + 8005f5a: 2310 movs r3, #16 + 8005f5c: f887 302b strb.w r3, [r7, #43] @ 0x2b + 8005f60: e05d b.n 800601e + 8005f62: 697b ldr r3, [r7, #20] + 8005f64: 681b ldr r3, [r3, #0] + 8005f66: 4a4b ldr r2, [pc, #300] @ (8006094 ) + 8005f68: 4293 cmp r3, r2 + 8005f6a: d125 bne.n 8005fb8 + 8005f6c: 4b46 ldr r3, [pc, #280] @ (8006088 ) + 8005f6e: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 + 8005f72: f003 03c0 and.w r3, r3, #192 @ 0xc0 + 8005f76: 2bc0 cmp r3, #192 @ 0xc0 + 8005f78: d016 beq.n 8005fa8 + 8005f7a: 2bc0 cmp r3, #192 @ 0xc0 + 8005f7c: d818 bhi.n 8005fb0 + 8005f7e: 2b80 cmp r3, #128 @ 0x80 + 8005f80: d00a beq.n 8005f98 + 8005f82: 2b80 cmp r3, #128 @ 0x80 + 8005f84: d814 bhi.n 8005fb0 + 8005f86: 2b00 cmp r3, #0 + 8005f88: d002 beq.n 8005f90 + 8005f8a: 2b40 cmp r3, #64 @ 0x40 + 8005f8c: d008 beq.n 8005fa0 + 8005f8e: e00f b.n 8005fb0 + 8005f90: 2300 movs r3, #0 + 8005f92: f887 302b strb.w r3, [r7, #43] @ 0x2b + 8005f96: e042 b.n 800601e + 8005f98: 2302 movs r3, #2 + 8005f9a: f887 302b strb.w r3, [r7, #43] @ 0x2b + 8005f9e: e03e b.n 800601e + 8005fa0: 2304 movs r3, #4 + 8005fa2: f887 302b strb.w r3, [r7, #43] @ 0x2b + 8005fa6: e03a b.n 800601e + 8005fa8: 2308 movs r3, #8 + 8005faa: f887 302b strb.w r3, [r7, #43] @ 0x2b + 8005fae: e036 b.n 800601e + 8005fb0: 2310 movs r3, #16 + 8005fb2: f887 302b strb.w r3, [r7, #43] @ 0x2b + 8005fb6: e032 b.n 800601e + 8005fb8: 697b ldr r3, [r7, #20] + 8005fba: 681b ldr r3, [r3, #0] + 8005fbc: 4a30 ldr r2, [pc, #192] @ (8006080 ) + 8005fbe: 4293 cmp r3, r2 + 8005fc0: d12a bne.n 8006018 + 8005fc2: 4b31 ldr r3, [pc, #196] @ (8006088 ) + 8005fc4: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 + 8005fc8: f403 6340 and.w r3, r3, #3072 @ 0xc00 + 8005fcc: f5b3 6f40 cmp.w r3, #3072 @ 0xc00 + 8005fd0: d01a beq.n 8006008 + 8005fd2: f5b3 6f40 cmp.w r3, #3072 @ 0xc00 + 8005fd6: d81b bhi.n 8006010 + 8005fd8: f5b3 6f00 cmp.w r3, #2048 @ 0x800 + 8005fdc: d00c beq.n 8005ff8 + 8005fde: f5b3 6f00 cmp.w r3, #2048 @ 0x800 + 8005fe2: d815 bhi.n 8006010 + 8005fe4: 2b00 cmp r3, #0 + 8005fe6: d003 beq.n 8005ff0 + 8005fe8: f5b3 6f80 cmp.w r3, #1024 @ 0x400 + 8005fec: d008 beq.n 8006000 + 8005fee: e00f b.n 8006010 + 8005ff0: 2300 movs r3, #0 + 8005ff2: f887 302b strb.w r3, [r7, #43] @ 0x2b + 8005ff6: e012 b.n 800601e + 8005ff8: 2302 movs r3, #2 + 8005ffa: f887 302b strb.w r3, [r7, #43] @ 0x2b + 8005ffe: e00e b.n 800601e + 8006000: 2304 movs r3, #4 + 8006002: f887 302b strb.w r3, [r7, #43] @ 0x2b + 8006006: e00a b.n 800601e + 8006008: 2308 movs r3, #8 + 800600a: f887 302b strb.w r3, [r7, #43] @ 0x2b + 800600e: e006 b.n 800601e + 8006010: 2310 movs r3, #16 + 8006012: f887 302b strb.w r3, [r7, #43] @ 0x2b + 8006016: e002 b.n 800601e + 8006018: 2310 movs r3, #16 + 800601a: f887 302b strb.w r3, [r7, #43] @ 0x2b /* Check LPUART instance */ if (UART_INSTANCE_LOWPOWER(huart)) - 8005626: 697b ldr r3, [r7, #20] - 8005628: 681b ldr r3, [r3, #0] - 800562a: 4a17 ldr r2, [pc, #92] @ (8005688 ) - 800562c: 4293 cmp r3, r2 - 800562e: f040 80a8 bne.w 8005782 + 800601e: 697b ldr r3, [r7, #20] + 8006020: 681b ldr r3, [r3, #0] + 8006022: 4a17 ldr r2, [pc, #92] @ (8006080 ) + 8006024: 4293 cmp r3, r2 + 8006026: f040 80a8 bne.w 800617a { /* Retrieve frequency clock */ switch (clocksource) - 8005632: f897 302b ldrb.w r3, [r7, #43] @ 0x2b - 8005636: 2b08 cmp r3, #8 - 8005638: d834 bhi.n 80056a4 - 800563a: a201 add r2, pc, #4 @ (adr r2, 8005640 ) - 800563c: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 8005640: 08005665 .word 0x08005665 - 8005644: 080056a5 .word 0x080056a5 - 8005648: 0800566d .word 0x0800566d - 800564c: 080056a5 .word 0x080056a5 - 8005650: 08005673 .word 0x08005673 - 8005654: 080056a5 .word 0x080056a5 - 8005658: 080056a5 .word 0x080056a5 - 800565c: 080056a5 .word 0x080056a5 - 8005660: 0800567b .word 0x0800567b + 800602a: f897 302b ldrb.w r3, [r7, #43] @ 0x2b + 800602e: 2b08 cmp r3, #8 + 8006030: d834 bhi.n 800609c + 8006032: a201 add r2, pc, #4 @ (adr r2, 8006038 ) + 8006034: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 8006038: 0800605d .word 0x0800605d + 800603c: 0800609d .word 0x0800609d + 8006040: 08006065 .word 0x08006065 + 8006044: 0800609d .word 0x0800609d + 8006048: 0800606b .word 0x0800606b + 800604c: 0800609d .word 0x0800609d + 8006050: 0800609d .word 0x0800609d + 8006054: 0800609d .word 0x0800609d + 8006058: 08006073 .word 0x08006073 { case UART_CLOCKSOURCE_PCLK1: pclk = HAL_RCC_GetPCLK1Freq(); - 8005664: f7fe faea bl 8003c3c - 8005668: 6278 str r0, [r7, #36] @ 0x24 + 800605c: f7fe faea bl 8004634 + 8006060: 6278 str r0, [r7, #36] @ 0x24 break; - 800566a: e021 b.n 80056b0 + 8006062: e021 b.n 80060a8 case UART_CLOCKSOURCE_HSI: pclk = (uint32_t) HSI_VALUE; - 800566c: 4b0c ldr r3, [pc, #48] @ (80056a0 ) - 800566e: 627b str r3, [r7, #36] @ 0x24 + 8006064: 4b0c ldr r3, [pc, #48] @ (8006098 ) + 8006066: 627b str r3, [r7, #36] @ 0x24 break; - 8005670: e01e b.n 80056b0 + 8006068: e01e b.n 80060a8 case UART_CLOCKSOURCE_SYSCLK: pclk = HAL_RCC_GetSysClockFreq(); - 8005672: f7fe fa75 bl 8003b60 - 8005676: 6278 str r0, [r7, #36] @ 0x24 + 800606a: f7fe fa75 bl 8004558 + 800606e: 6278 str r0, [r7, #36] @ 0x24 break; - 8005678: e01a b.n 80056b0 + 8006070: e01a b.n 80060a8 case UART_CLOCKSOURCE_LSE: pclk = (uint32_t) LSE_VALUE; - 800567a: f44f 4300 mov.w r3, #32768 @ 0x8000 - 800567e: 627b str r3, [r7, #36] @ 0x24 + 8006072: f44f 4300 mov.w r3, #32768 @ 0x8000 + 8006076: 627b str r3, [r7, #36] @ 0x24 break; - 8005680: e016 b.n 80056b0 - 8005682: bf00 nop - 8005684: cfff69f3 .word 0xcfff69f3 - 8005688: 40008000 .word 0x40008000 - 800568c: 40013800 .word 0x40013800 - 8005690: 40021000 .word 0x40021000 - 8005694: 40004400 .word 0x40004400 - 8005698: 40004800 .word 0x40004800 - 800569c: 40004c00 .word 0x40004c00 - 80056a0: 00f42400 .word 0x00f42400 + 8006078: e016 b.n 80060a8 + 800607a: bf00 nop + 800607c: cfff69f3 .word 0xcfff69f3 + 8006080: 40008000 .word 0x40008000 + 8006084: 40013800 .word 0x40013800 + 8006088: 40021000 .word 0x40021000 + 800608c: 40004400 .word 0x40004400 + 8006090: 40004800 .word 0x40004800 + 8006094: 40004c00 .word 0x40004c00 + 8006098: 00f42400 .word 0x00f42400 default: pclk = 0U; - 80056a4: 2300 movs r3, #0 - 80056a6: 627b str r3, [r7, #36] @ 0x24 + 800609c: 2300 movs r3, #0 + 800609e: 627b str r3, [r7, #36] @ 0x24 ret = HAL_ERROR; - 80056a8: 2301 movs r3, #1 - 80056aa: f887 302a strb.w r3, [r7, #42] @ 0x2a + 80060a0: 2301 movs r3, #1 + 80060a2: f887 302a strb.w r3, [r7, #42] @ 0x2a break; - 80056ae: bf00 nop + 80060a6: bf00 nop } /* If proper clock source reported */ if (pclk != 0U) - 80056b0: 6a7b ldr r3, [r7, #36] @ 0x24 - 80056b2: 2b00 cmp r3, #0 - 80056b4: f000 812a beq.w 800590c + 80060a8: 6a7b ldr r3, [r7, #36] @ 0x24 + 80060aa: 2b00 cmp r3, #0 + 80060ac: f000 812a beq.w 8006304 { /* Compute clock after Prescaler */ lpuart_ker_ck_pres = (pclk / UARTPrescTable[huart->Init.ClockPrescaler]); - 80056b8: 697b ldr r3, [r7, #20] - 80056ba: 6a5b ldr r3, [r3, #36] @ 0x24 - 80056bc: 4a9e ldr r2, [pc, #632] @ (8005938 ) - 80056be: f832 3013 ldrh.w r3, [r2, r3, lsl #1] - 80056c2: 461a mov r2, r3 - 80056c4: 6a7b ldr r3, [r7, #36] @ 0x24 - 80056c6: fbb3 f3f2 udiv r3, r3, r2 - 80056ca: 61bb str r3, [r7, #24] + 80060b0: 697b ldr r3, [r7, #20] + 80060b2: 6a5b ldr r3, [r3, #36] @ 0x24 + 80060b4: 4a9e ldr r2, [pc, #632] @ (8006330 ) + 80060b6: f832 3013 ldrh.w r3, [r2, r3, lsl #1] + 80060ba: 461a mov r2, r3 + 80060bc: 6a7b ldr r3, [r7, #36] @ 0x24 + 80060be: fbb3 f3f2 udiv r3, r3, r2 + 80060c2: 61bb str r3, [r7, #24] /* Ensure that Frequency clock is in the range [3 * baudrate, 4096 * baudrate] */ if ((lpuart_ker_ck_pres < (3U * huart->Init.BaudRate)) || - 80056cc: 697b ldr r3, [r7, #20] - 80056ce: 685a ldr r2, [r3, #4] - 80056d0: 4613 mov r3, r2 - 80056d2: 005b lsls r3, r3, #1 - 80056d4: 4413 add r3, r2 - 80056d6: 69ba ldr r2, [r7, #24] - 80056d8: 429a cmp r2, r3 - 80056da: d305 bcc.n 80056e8 + 80060c4: 697b ldr r3, [r7, #20] + 80060c6: 685a ldr r2, [r3, #4] + 80060c8: 4613 mov r3, r2 + 80060ca: 005b lsls r3, r3, #1 + 80060cc: 4413 add r3, r2 + 80060ce: 69ba ldr r2, [r7, #24] + 80060d0: 429a cmp r2, r3 + 80060d2: d305 bcc.n 80060e0 (lpuart_ker_ck_pres > (4096U * huart->Init.BaudRate))) - 80056dc: 697b ldr r3, [r7, #20] - 80056de: 685b ldr r3, [r3, #4] - 80056e0: 031b lsls r3, r3, #12 + 80060d4: 697b ldr r3, [r7, #20] + 80060d6: 685b ldr r3, [r3, #4] + 80060d8: 031b lsls r3, r3, #12 if ((lpuart_ker_ck_pres < (3U * huart->Init.BaudRate)) || - 80056e2: 69ba ldr r2, [r7, #24] - 80056e4: 429a cmp r2, r3 - 80056e6: d903 bls.n 80056f0 + 80060da: 69ba ldr r2, [r7, #24] + 80060dc: 429a cmp r2, r3 + 80060de: d903 bls.n 80060e8 { ret = HAL_ERROR; - 80056e8: 2301 movs r3, #1 - 80056ea: f887 302a strb.w r3, [r7, #42] @ 0x2a - 80056ee: e10d b.n 800590c + 80060e0: 2301 movs r3, #1 + 80060e2: f887 302a strb.w r3, [r7, #42] @ 0x2a + 80060e6: e10d b.n 8006304 } else { /* Check computed UsartDiv value is in allocated range (it is forbidden to write values lower than 0x300 in the LPUART_BRR register) */ usartdiv = (uint32_t)(UART_DIV_LPUART(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler)); - 80056f0: 6a7b ldr r3, [r7, #36] @ 0x24 - 80056f2: 2200 movs r2, #0 - 80056f4: 60bb str r3, [r7, #8] - 80056f6: 60fa str r2, [r7, #12] - 80056f8: 697b ldr r3, [r7, #20] - 80056fa: 6a5b ldr r3, [r3, #36] @ 0x24 - 80056fc: 4a8e ldr r2, [pc, #568] @ (8005938 ) - 80056fe: f832 3013 ldrh.w r3, [r2, r3, lsl #1] - 8005702: b29b uxth r3, r3 - 8005704: 2200 movs r2, #0 - 8005706: 603b str r3, [r7, #0] - 8005708: 607a str r2, [r7, #4] - 800570a: e9d7 2300 ldrd r2, r3, [r7] - 800570e: e9d7 0102 ldrd r0, r1, [r7, #8] - 8005712: f7fa fd81 bl 8000218 <__aeabi_uldivmod> - 8005716: 4602 mov r2, r0 - 8005718: 460b mov r3, r1 - 800571a: 4610 mov r0, r2 - 800571c: 4619 mov r1, r3 - 800571e: f04f 0200 mov.w r2, #0 - 8005722: f04f 0300 mov.w r3, #0 - 8005726: 020b lsls r3, r1, #8 - 8005728: ea43 6310 orr.w r3, r3, r0, lsr #24 - 800572c: 0202 lsls r2, r0, #8 - 800572e: 6979 ldr r1, [r7, #20] - 8005730: 6849 ldr r1, [r1, #4] - 8005732: 0849 lsrs r1, r1, #1 - 8005734: 2000 movs r0, #0 - 8005736: 460c mov r4, r1 - 8005738: 4605 mov r5, r0 - 800573a: eb12 0804 adds.w r8, r2, r4 - 800573e: eb43 0905 adc.w r9, r3, r5 - 8005742: 697b ldr r3, [r7, #20] - 8005744: 685b ldr r3, [r3, #4] - 8005746: 2200 movs r2, #0 - 8005748: 469a mov sl, r3 - 800574a: 4693 mov fp, r2 - 800574c: 4652 mov r2, sl - 800574e: 465b mov r3, fp - 8005750: 4640 mov r0, r8 - 8005752: 4649 mov r1, r9 - 8005754: f7fa fd60 bl 8000218 <__aeabi_uldivmod> - 8005758: 4602 mov r2, r0 - 800575a: 460b mov r3, r1 - 800575c: 4613 mov r3, r2 - 800575e: 623b str r3, [r7, #32] + 80060e8: 6a7b ldr r3, [r7, #36] @ 0x24 + 80060ea: 2200 movs r2, #0 + 80060ec: 60bb str r3, [r7, #8] + 80060ee: 60fa str r2, [r7, #12] + 80060f0: 697b ldr r3, [r7, #20] + 80060f2: 6a5b ldr r3, [r3, #36] @ 0x24 + 80060f4: 4a8e ldr r2, [pc, #568] @ (8006330 ) + 80060f6: f832 3013 ldrh.w r3, [r2, r3, lsl #1] + 80060fa: b29b uxth r3, r3 + 80060fc: 2200 movs r2, #0 + 80060fe: 603b str r3, [r7, #0] + 8006100: 607a str r2, [r7, #4] + 8006102: e9d7 2300 ldrd r2, r3, [r7] + 8006106: e9d7 0102 ldrd r0, r1, [r7, #8] + 800610a: f7fa fb8b bl 8000824 <__aeabi_uldivmod> + 800610e: 4602 mov r2, r0 + 8006110: 460b mov r3, r1 + 8006112: 4610 mov r0, r2 + 8006114: 4619 mov r1, r3 + 8006116: f04f 0200 mov.w r2, #0 + 800611a: f04f 0300 mov.w r3, #0 + 800611e: 020b lsls r3, r1, #8 + 8006120: ea43 6310 orr.w r3, r3, r0, lsr #24 + 8006124: 0202 lsls r2, r0, #8 + 8006126: 6979 ldr r1, [r7, #20] + 8006128: 6849 ldr r1, [r1, #4] + 800612a: 0849 lsrs r1, r1, #1 + 800612c: 2000 movs r0, #0 + 800612e: 460c mov r4, r1 + 8006130: 4605 mov r5, r0 + 8006132: eb12 0804 adds.w r8, r2, r4 + 8006136: eb43 0905 adc.w r9, r3, r5 + 800613a: 697b ldr r3, [r7, #20] + 800613c: 685b ldr r3, [r3, #4] + 800613e: 2200 movs r2, #0 + 8006140: 469a mov sl, r3 + 8006142: 4693 mov fp, r2 + 8006144: 4652 mov r2, sl + 8006146: 465b mov r3, fp + 8006148: 4640 mov r0, r8 + 800614a: 4649 mov r1, r9 + 800614c: f7fa fb6a bl 8000824 <__aeabi_uldivmod> + 8006150: 4602 mov r2, r0 + 8006152: 460b mov r3, r1 + 8006154: 4613 mov r3, r2 + 8006156: 623b str r3, [r7, #32] if ((usartdiv >= LPUART_BRR_MIN) && (usartdiv <= LPUART_BRR_MAX)) - 8005760: 6a3b ldr r3, [r7, #32] - 8005762: f5b3 7f40 cmp.w r3, #768 @ 0x300 - 8005766: d308 bcc.n 800577a - 8005768: 6a3b ldr r3, [r7, #32] - 800576a: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000 - 800576e: d204 bcs.n 800577a + 8006158: 6a3b ldr r3, [r7, #32] + 800615a: f5b3 7f40 cmp.w r3, #768 @ 0x300 + 800615e: d308 bcc.n 8006172 + 8006160: 6a3b ldr r3, [r7, #32] + 8006162: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000 + 8006166: d204 bcs.n 8006172 { huart->Instance->BRR = usartdiv; - 8005770: 697b ldr r3, [r7, #20] - 8005772: 681b ldr r3, [r3, #0] - 8005774: 6a3a ldr r2, [r7, #32] - 8005776: 60da str r2, [r3, #12] - 8005778: e0c8 b.n 800590c + 8006168: 697b ldr r3, [r7, #20] + 800616a: 681b ldr r3, [r3, #0] + 800616c: 6a3a ldr r2, [r7, #32] + 800616e: 60da str r2, [r3, #12] + 8006170: e0c8 b.n 8006304 } else { ret = HAL_ERROR; - 800577a: 2301 movs r3, #1 - 800577c: f887 302a strb.w r3, [r7, #42] @ 0x2a - 8005780: e0c4 b.n 800590c + 8006172: 2301 movs r3, #1 + 8006174: f887 302a strb.w r3, [r7, #42] @ 0x2a + 8006178: e0c4 b.n 8006304 } /* if ( (lpuart_ker_ck_pres < (3 * huart->Init.BaudRate) ) || (lpuart_ker_ck_pres > (4096 * huart->Init.BaudRate) )) */ } /* if (pclk != 0) */ } /* Check UART Over Sampling to set Baud Rate Register */ else if (huart->Init.OverSampling == UART_OVERSAMPLING_8) - 8005782: 697b ldr r3, [r7, #20] - 8005784: 69db ldr r3, [r3, #28] - 8005786: f5b3 4f00 cmp.w r3, #32768 @ 0x8000 - 800578a: d167 bne.n 800585c + 800617a: 697b ldr r3, [r7, #20] + 800617c: 69db ldr r3, [r3, #28] + 800617e: f5b3 4f00 cmp.w r3, #32768 @ 0x8000 + 8006182: d167 bne.n 8006254 { switch (clocksource) - 800578c: f897 302b ldrb.w r3, [r7, #43] @ 0x2b - 8005790: 2b08 cmp r3, #8 - 8005792: d828 bhi.n 80057e6 - 8005794: a201 add r2, pc, #4 @ (adr r2, 800579c ) - 8005796: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 800579a: bf00 nop - 800579c: 080057c1 .word 0x080057c1 - 80057a0: 080057c9 .word 0x080057c9 - 80057a4: 080057d1 .word 0x080057d1 - 80057a8: 080057e7 .word 0x080057e7 - 80057ac: 080057d7 .word 0x080057d7 - 80057b0: 080057e7 .word 0x080057e7 - 80057b4: 080057e7 .word 0x080057e7 - 80057b8: 080057e7 .word 0x080057e7 - 80057bc: 080057df .word 0x080057df + 8006184: f897 302b ldrb.w r3, [r7, #43] @ 0x2b + 8006188: 2b08 cmp r3, #8 + 800618a: d828 bhi.n 80061de + 800618c: a201 add r2, pc, #4 @ (adr r2, 8006194 ) + 800618e: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 8006192: bf00 nop + 8006194: 080061b9 .word 0x080061b9 + 8006198: 080061c1 .word 0x080061c1 + 800619c: 080061c9 .word 0x080061c9 + 80061a0: 080061df .word 0x080061df + 80061a4: 080061cf .word 0x080061cf + 80061a8: 080061df .word 0x080061df + 80061ac: 080061df .word 0x080061df + 80061b0: 080061df .word 0x080061df + 80061b4: 080061d7 .word 0x080061d7 { case UART_CLOCKSOURCE_PCLK1: pclk = HAL_RCC_GetPCLK1Freq(); - 80057c0: f7fe fa3c bl 8003c3c - 80057c4: 6278 str r0, [r7, #36] @ 0x24 + 80061b8: f7fe fa3c bl 8004634 + 80061bc: 6278 str r0, [r7, #36] @ 0x24 break; - 80057c6: e014 b.n 80057f2 + 80061be: e014 b.n 80061ea case UART_CLOCKSOURCE_PCLK2: pclk = HAL_RCC_GetPCLK2Freq(); - 80057c8: f7fe fa4e bl 8003c68 - 80057cc: 6278 str r0, [r7, #36] @ 0x24 + 80061c0: f7fe fa4e bl 8004660 + 80061c4: 6278 str r0, [r7, #36] @ 0x24 break; - 80057ce: e010 b.n 80057f2 + 80061c6: e010 b.n 80061ea case UART_CLOCKSOURCE_HSI: pclk = (uint32_t) HSI_VALUE; - 80057d0: 4b5a ldr r3, [pc, #360] @ (800593c ) - 80057d2: 627b str r3, [r7, #36] @ 0x24 + 80061c8: 4b5a ldr r3, [pc, #360] @ (8006334 ) + 80061ca: 627b str r3, [r7, #36] @ 0x24 break; - 80057d4: e00d b.n 80057f2 + 80061cc: e00d b.n 80061ea case UART_CLOCKSOURCE_SYSCLK: pclk = HAL_RCC_GetSysClockFreq(); - 80057d6: f7fe f9c3 bl 8003b60 - 80057da: 6278 str r0, [r7, #36] @ 0x24 + 80061ce: f7fe f9c3 bl 8004558 + 80061d2: 6278 str r0, [r7, #36] @ 0x24 break; - 80057dc: e009 b.n 80057f2 + 80061d4: e009 b.n 80061ea case UART_CLOCKSOURCE_LSE: pclk = (uint32_t) LSE_VALUE; - 80057de: f44f 4300 mov.w r3, #32768 @ 0x8000 - 80057e2: 627b str r3, [r7, #36] @ 0x24 + 80061d6: f44f 4300 mov.w r3, #32768 @ 0x8000 + 80061da: 627b str r3, [r7, #36] @ 0x24 break; - 80057e4: e005 b.n 80057f2 + 80061dc: e005 b.n 80061ea default: pclk = 0U; - 80057e6: 2300 movs r3, #0 - 80057e8: 627b str r3, [r7, #36] @ 0x24 + 80061de: 2300 movs r3, #0 + 80061e0: 627b str r3, [r7, #36] @ 0x24 ret = HAL_ERROR; - 80057ea: 2301 movs r3, #1 - 80057ec: f887 302a strb.w r3, [r7, #42] @ 0x2a + 80061e2: 2301 movs r3, #1 + 80061e4: f887 302a strb.w r3, [r7, #42] @ 0x2a break; - 80057f0: bf00 nop + 80061e8: bf00 nop } /* USARTDIV must be greater than or equal to 0d16 */ if (pclk != 0U) - 80057f2: 6a7b ldr r3, [r7, #36] @ 0x24 - 80057f4: 2b00 cmp r3, #0 - 80057f6: f000 8089 beq.w 800590c + 80061ea: 6a7b ldr r3, [r7, #36] @ 0x24 + 80061ec: 2b00 cmp r3, #0 + 80061ee: f000 8089 beq.w 8006304 { usartdiv = (uint32_t)(UART_DIV_SAMPLING8(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler)); - 80057fa: 697b ldr r3, [r7, #20] - 80057fc: 6a5b ldr r3, [r3, #36] @ 0x24 - 80057fe: 4a4e ldr r2, [pc, #312] @ (8005938 ) - 8005800: f832 3013 ldrh.w r3, [r2, r3, lsl #1] - 8005804: 461a mov r2, r3 - 8005806: 6a7b ldr r3, [r7, #36] @ 0x24 - 8005808: fbb3 f3f2 udiv r3, r3, r2 - 800580c: 005a lsls r2, r3, #1 - 800580e: 697b ldr r3, [r7, #20] - 8005810: 685b ldr r3, [r3, #4] - 8005812: 085b lsrs r3, r3, #1 - 8005814: 441a add r2, r3 - 8005816: 697b ldr r3, [r7, #20] - 8005818: 685b ldr r3, [r3, #4] - 800581a: fbb2 f3f3 udiv r3, r2, r3 - 800581e: 623b str r3, [r7, #32] + 80061f2: 697b ldr r3, [r7, #20] + 80061f4: 6a5b ldr r3, [r3, #36] @ 0x24 + 80061f6: 4a4e ldr r2, [pc, #312] @ (8006330 ) + 80061f8: f832 3013 ldrh.w r3, [r2, r3, lsl #1] + 80061fc: 461a mov r2, r3 + 80061fe: 6a7b ldr r3, [r7, #36] @ 0x24 + 8006200: fbb3 f3f2 udiv r3, r3, r2 + 8006204: 005a lsls r2, r3, #1 + 8006206: 697b ldr r3, [r7, #20] + 8006208: 685b ldr r3, [r3, #4] + 800620a: 085b lsrs r3, r3, #1 + 800620c: 441a add r2, r3 + 800620e: 697b ldr r3, [r7, #20] + 8006210: 685b ldr r3, [r3, #4] + 8006212: fbb2 f3f3 udiv r3, r2, r3 + 8006216: 623b str r3, [r7, #32] if ((usartdiv >= UART_BRR_MIN) && (usartdiv <= UART_BRR_MAX)) - 8005820: 6a3b ldr r3, [r7, #32] - 8005822: 2b0f cmp r3, #15 - 8005824: d916 bls.n 8005854 - 8005826: 6a3b ldr r3, [r7, #32] - 8005828: f5b3 3f80 cmp.w r3, #65536 @ 0x10000 - 800582c: d212 bcs.n 8005854 + 8006218: 6a3b ldr r3, [r7, #32] + 800621a: 2b0f cmp r3, #15 + 800621c: d916 bls.n 800624c + 800621e: 6a3b ldr r3, [r7, #32] + 8006220: f5b3 3f80 cmp.w r3, #65536 @ 0x10000 + 8006224: d212 bcs.n 800624c { brrtemp = (uint16_t)(usartdiv & 0xFFF0U); - 800582e: 6a3b ldr r3, [r7, #32] - 8005830: b29b uxth r3, r3 - 8005832: f023 030f bic.w r3, r3, #15 - 8005836: 83fb strh r3, [r7, #30] + 8006226: 6a3b ldr r3, [r7, #32] + 8006228: b29b uxth r3, r3 + 800622a: f023 030f bic.w r3, r3, #15 + 800622e: 83fb strh r3, [r7, #30] brrtemp |= (uint16_t)((usartdiv & (uint16_t)0x000FU) >> 1U); - 8005838: 6a3b ldr r3, [r7, #32] - 800583a: 085b lsrs r3, r3, #1 - 800583c: b29b uxth r3, r3 - 800583e: f003 0307 and.w r3, r3, #7 - 8005842: b29a uxth r2, r3 - 8005844: 8bfb ldrh r3, [r7, #30] - 8005846: 4313 orrs r3, r2 - 8005848: 83fb strh r3, [r7, #30] + 8006230: 6a3b ldr r3, [r7, #32] + 8006232: 085b lsrs r3, r3, #1 + 8006234: b29b uxth r3, r3 + 8006236: f003 0307 and.w r3, r3, #7 + 800623a: b29a uxth r2, r3 + 800623c: 8bfb ldrh r3, [r7, #30] + 800623e: 4313 orrs r3, r2 + 8006240: 83fb strh r3, [r7, #30] huart->Instance->BRR = brrtemp; - 800584a: 697b ldr r3, [r7, #20] - 800584c: 681b ldr r3, [r3, #0] - 800584e: 8bfa ldrh r2, [r7, #30] - 8005850: 60da str r2, [r3, #12] - 8005852: e05b b.n 800590c + 8006242: 697b ldr r3, [r7, #20] + 8006244: 681b ldr r3, [r3, #0] + 8006246: 8bfa ldrh r2, [r7, #30] + 8006248: 60da str r2, [r3, #12] + 800624a: e05b b.n 8006304 } else { ret = HAL_ERROR; - 8005854: 2301 movs r3, #1 - 8005856: f887 302a strb.w r3, [r7, #42] @ 0x2a - 800585a: e057 b.n 800590c + 800624c: 2301 movs r3, #1 + 800624e: f887 302a strb.w r3, [r7, #42] @ 0x2a + 8006252: e057 b.n 8006304 } } } else { switch (clocksource) - 800585c: f897 302b ldrb.w r3, [r7, #43] @ 0x2b - 8005860: 2b08 cmp r3, #8 - 8005862: d828 bhi.n 80058b6 - 8005864: a201 add r2, pc, #4 @ (adr r2, 800586c ) - 8005866: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 800586a: bf00 nop - 800586c: 08005891 .word 0x08005891 - 8005870: 08005899 .word 0x08005899 - 8005874: 080058a1 .word 0x080058a1 - 8005878: 080058b7 .word 0x080058b7 - 800587c: 080058a7 .word 0x080058a7 - 8005880: 080058b7 .word 0x080058b7 - 8005884: 080058b7 .word 0x080058b7 - 8005888: 080058b7 .word 0x080058b7 - 800588c: 080058af .word 0x080058af + 8006254: f897 302b ldrb.w r3, [r7, #43] @ 0x2b + 8006258: 2b08 cmp r3, #8 + 800625a: d828 bhi.n 80062ae + 800625c: a201 add r2, pc, #4 @ (adr r2, 8006264 ) + 800625e: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 8006262: bf00 nop + 8006264: 08006289 .word 0x08006289 + 8006268: 08006291 .word 0x08006291 + 800626c: 08006299 .word 0x08006299 + 8006270: 080062af .word 0x080062af + 8006274: 0800629f .word 0x0800629f + 8006278: 080062af .word 0x080062af + 800627c: 080062af .word 0x080062af + 8006280: 080062af .word 0x080062af + 8006284: 080062a7 .word 0x080062a7 { case UART_CLOCKSOURCE_PCLK1: pclk = HAL_RCC_GetPCLK1Freq(); - 8005890: f7fe f9d4 bl 8003c3c - 8005894: 6278 str r0, [r7, #36] @ 0x24 + 8006288: f7fe f9d4 bl 8004634 + 800628c: 6278 str r0, [r7, #36] @ 0x24 break; - 8005896: e014 b.n 80058c2 + 800628e: e014 b.n 80062ba case UART_CLOCKSOURCE_PCLK2: pclk = HAL_RCC_GetPCLK2Freq(); - 8005898: f7fe f9e6 bl 8003c68 - 800589c: 6278 str r0, [r7, #36] @ 0x24 + 8006290: f7fe f9e6 bl 8004660 + 8006294: 6278 str r0, [r7, #36] @ 0x24 break; - 800589e: e010 b.n 80058c2 + 8006296: e010 b.n 80062ba case UART_CLOCKSOURCE_HSI: pclk = (uint32_t) HSI_VALUE; - 80058a0: 4b26 ldr r3, [pc, #152] @ (800593c ) - 80058a2: 627b str r3, [r7, #36] @ 0x24 + 8006298: 4b26 ldr r3, [pc, #152] @ (8006334 ) + 800629a: 627b str r3, [r7, #36] @ 0x24 break; - 80058a4: e00d b.n 80058c2 + 800629c: e00d b.n 80062ba case UART_CLOCKSOURCE_SYSCLK: pclk = HAL_RCC_GetSysClockFreq(); - 80058a6: f7fe f95b bl 8003b60 - 80058aa: 6278 str r0, [r7, #36] @ 0x24 + 800629e: f7fe f95b bl 8004558 + 80062a2: 6278 str r0, [r7, #36] @ 0x24 break; - 80058ac: e009 b.n 80058c2 + 80062a4: e009 b.n 80062ba case UART_CLOCKSOURCE_LSE: pclk = (uint32_t) LSE_VALUE; - 80058ae: f44f 4300 mov.w r3, #32768 @ 0x8000 - 80058b2: 627b str r3, [r7, #36] @ 0x24 + 80062a6: f44f 4300 mov.w r3, #32768 @ 0x8000 + 80062aa: 627b str r3, [r7, #36] @ 0x24 break; - 80058b4: e005 b.n 80058c2 + 80062ac: e005 b.n 80062ba default: pclk = 0U; - 80058b6: 2300 movs r3, #0 - 80058b8: 627b str r3, [r7, #36] @ 0x24 + 80062ae: 2300 movs r3, #0 + 80062b0: 627b str r3, [r7, #36] @ 0x24 ret = HAL_ERROR; - 80058ba: 2301 movs r3, #1 - 80058bc: f887 302a strb.w r3, [r7, #42] @ 0x2a + 80062b2: 2301 movs r3, #1 + 80062b4: f887 302a strb.w r3, [r7, #42] @ 0x2a break; - 80058c0: bf00 nop + 80062b8: bf00 nop } if (pclk != 0U) - 80058c2: 6a7b ldr r3, [r7, #36] @ 0x24 - 80058c4: 2b00 cmp r3, #0 - 80058c6: d021 beq.n 800590c + 80062ba: 6a7b ldr r3, [r7, #36] @ 0x24 + 80062bc: 2b00 cmp r3, #0 + 80062be: d021 beq.n 8006304 { /* USARTDIV must be greater than or equal to 0d16 */ usartdiv = (uint32_t)(UART_DIV_SAMPLING16(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler)); - 80058c8: 697b ldr r3, [r7, #20] - 80058ca: 6a5b ldr r3, [r3, #36] @ 0x24 - 80058cc: 4a1a ldr r2, [pc, #104] @ (8005938 ) - 80058ce: f832 3013 ldrh.w r3, [r2, r3, lsl #1] - 80058d2: 461a mov r2, r3 - 80058d4: 6a7b ldr r3, [r7, #36] @ 0x24 - 80058d6: fbb3 f2f2 udiv r2, r3, r2 - 80058da: 697b ldr r3, [r7, #20] - 80058dc: 685b ldr r3, [r3, #4] - 80058de: 085b lsrs r3, r3, #1 - 80058e0: 441a add r2, r3 - 80058e2: 697b ldr r3, [r7, #20] - 80058e4: 685b ldr r3, [r3, #4] - 80058e6: fbb2 f3f3 udiv r3, r2, r3 - 80058ea: 623b str r3, [r7, #32] + 80062c0: 697b ldr r3, [r7, #20] + 80062c2: 6a5b ldr r3, [r3, #36] @ 0x24 + 80062c4: 4a1a ldr r2, [pc, #104] @ (8006330 ) + 80062c6: f832 3013 ldrh.w r3, [r2, r3, lsl #1] + 80062ca: 461a mov r2, r3 + 80062cc: 6a7b ldr r3, [r7, #36] @ 0x24 + 80062ce: fbb3 f2f2 udiv r2, r3, r2 + 80062d2: 697b ldr r3, [r7, #20] + 80062d4: 685b ldr r3, [r3, #4] + 80062d6: 085b lsrs r3, r3, #1 + 80062d8: 441a add r2, r3 + 80062da: 697b ldr r3, [r7, #20] + 80062dc: 685b ldr r3, [r3, #4] + 80062de: fbb2 f3f3 udiv r3, r2, r3 + 80062e2: 623b str r3, [r7, #32] if ((usartdiv >= UART_BRR_MIN) && (usartdiv <= UART_BRR_MAX)) - 80058ec: 6a3b ldr r3, [r7, #32] - 80058ee: 2b0f cmp r3, #15 - 80058f0: d909 bls.n 8005906 - 80058f2: 6a3b ldr r3, [r7, #32] - 80058f4: f5b3 3f80 cmp.w r3, #65536 @ 0x10000 - 80058f8: d205 bcs.n 8005906 + 80062e4: 6a3b ldr r3, [r7, #32] + 80062e6: 2b0f cmp r3, #15 + 80062e8: d909 bls.n 80062fe + 80062ea: 6a3b ldr r3, [r7, #32] + 80062ec: f5b3 3f80 cmp.w r3, #65536 @ 0x10000 + 80062f0: d205 bcs.n 80062fe { huart->Instance->BRR = (uint16_t)usartdiv; - 80058fa: 6a3b ldr r3, [r7, #32] - 80058fc: b29a uxth r2, r3 - 80058fe: 697b ldr r3, [r7, #20] - 8005900: 681b ldr r3, [r3, #0] - 8005902: 60da str r2, [r3, #12] - 8005904: e002 b.n 800590c + 80062f2: 6a3b ldr r3, [r7, #32] + 80062f4: b29a uxth r2, r3 + 80062f6: 697b ldr r3, [r7, #20] + 80062f8: 681b ldr r3, [r3, #0] + 80062fa: 60da str r2, [r3, #12] + 80062fc: e002 b.n 8006304 } else { ret = HAL_ERROR; - 8005906: 2301 movs r3, #1 - 8005908: f887 302a strb.w r3, [r7, #42] @ 0x2a + 80062fe: 2301 movs r3, #1 + 8006300: f887 302a strb.w r3, [r7, #42] @ 0x2a } } } /* Initialize the number of data to process during RX/TX ISR execution */ huart->NbTxDataToProcess = 1; - 800590c: 697b ldr r3, [r7, #20] - 800590e: 2201 movs r2, #1 - 8005910: f8a3 206a strh.w r2, [r3, #106] @ 0x6a + 8006304: 697b ldr r3, [r7, #20] + 8006306: 2201 movs r2, #1 + 8006308: f8a3 206a strh.w r2, [r3, #106] @ 0x6a huart->NbRxDataToProcess = 1; - 8005914: 697b ldr r3, [r7, #20] - 8005916: 2201 movs r2, #1 - 8005918: f8a3 2068 strh.w r2, [r3, #104] @ 0x68 + 800630c: 697b ldr r3, [r7, #20] + 800630e: 2201 movs r2, #1 + 8006310: f8a3 2068 strh.w r2, [r3, #104] @ 0x68 /* Clear ISR function pointers */ huart->RxISR = NULL; - 800591c: 697b ldr r3, [r7, #20] - 800591e: 2200 movs r2, #0 - 8005920: 675a str r2, [r3, #116] @ 0x74 + 8006314: 697b ldr r3, [r7, #20] + 8006316: 2200 movs r2, #0 + 8006318: 675a str r2, [r3, #116] @ 0x74 huart->TxISR = NULL; - 8005922: 697b ldr r3, [r7, #20] - 8005924: 2200 movs r2, #0 - 8005926: 679a str r2, [r3, #120] @ 0x78 + 800631a: 697b ldr r3, [r7, #20] + 800631c: 2200 movs r2, #0 + 800631e: 679a str r2, [r3, #120] @ 0x78 return ret; - 8005928: f897 302a ldrb.w r3, [r7, #42] @ 0x2a + 8006320: f897 302a ldrb.w r3, [r7, #42] @ 0x2a } - 800592c: 4618 mov r0, r3 - 800592e: 3730 adds r7, #48 @ 0x30 - 8005930: 46bd mov sp, r7 - 8005932: e8bd 8fb0 ldmia.w sp!, {r4, r5, r7, r8, r9, sl, fp, pc} - 8005936: bf00 nop - 8005938: 08006d4c .word 0x08006d4c - 800593c: 00f42400 .word 0x00f42400 + 8006324: 4618 mov r0, r3 + 8006326: 3730 adds r7, #48 @ 0x30 + 8006328: 46bd mov sp, r7 + 800632a: e8bd 8fb0 ldmia.w sp!, {r4, r5, r7, r8, r9, sl, fp, pc} + 800632e: bf00 nop + 8006330: 08007744 .word 0x08007744 + 8006334: 00f42400 .word 0x00f42400 -08005940 : +08006338 : * @brief Configure the UART peripheral advanced features. * @param huart UART handle. * @retval None */ void UART_AdvFeatureConfig(UART_HandleTypeDef *huart) { - 8005940: b480 push {r7} - 8005942: b083 sub sp, #12 - 8005944: af00 add r7, sp, #0 - 8005946: 6078 str r0, [r7, #4] + 8006338: b480 push {r7} + 800633a: b083 sub sp, #12 + 800633c: af00 add r7, sp, #0 + 800633e: 6078 str r0, [r7, #4] /* Check whether the set of advanced features to configure is properly set */ assert_param(IS_UART_ADVFEATURE_INIT(huart->AdvancedInit.AdvFeatureInit)); /* if required, configure RX/TX pins swap */ if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_SWAP_INIT)) - 8005948: 687b ldr r3, [r7, #4] - 800594a: 6a9b ldr r3, [r3, #40] @ 0x28 - 800594c: f003 0308 and.w r3, r3, #8 - 8005950: 2b00 cmp r3, #0 - 8005952: d00a beq.n 800596a + 8006340: 687b ldr r3, [r7, #4] + 8006342: 6a9b ldr r3, [r3, #40] @ 0x28 + 8006344: f003 0308 and.w r3, r3, #8 + 8006348: 2b00 cmp r3, #0 + 800634a: d00a beq.n 8006362 { assert_param(IS_UART_ADVFEATURE_SWAP(huart->AdvancedInit.Swap)); MODIFY_REG(huart->Instance->CR2, USART_CR2_SWAP, huart->AdvancedInit.Swap); - 8005954: 687b ldr r3, [r7, #4] - 8005956: 681b ldr r3, [r3, #0] - 8005958: 685b ldr r3, [r3, #4] - 800595a: f423 4100 bic.w r1, r3, #32768 @ 0x8000 - 800595e: 687b ldr r3, [r7, #4] - 8005960: 6b9a ldr r2, [r3, #56] @ 0x38 - 8005962: 687b ldr r3, [r7, #4] - 8005964: 681b ldr r3, [r3, #0] - 8005966: 430a orrs r2, r1 - 8005968: 605a str r2, [r3, #4] + 800634c: 687b ldr r3, [r7, #4] + 800634e: 681b ldr r3, [r3, #0] + 8006350: 685b ldr r3, [r3, #4] + 8006352: f423 4100 bic.w r1, r3, #32768 @ 0x8000 + 8006356: 687b ldr r3, [r7, #4] + 8006358: 6b9a ldr r2, [r3, #56] @ 0x38 + 800635a: 687b ldr r3, [r7, #4] + 800635c: 681b ldr r3, [r3, #0] + 800635e: 430a orrs r2, r1 + 8006360: 605a str r2, [r3, #4] } /* if required, configure TX pin active level inversion */ if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_TXINVERT_INIT)) - 800596a: 687b ldr r3, [r7, #4] - 800596c: 6a9b ldr r3, [r3, #40] @ 0x28 - 800596e: f003 0301 and.w r3, r3, #1 - 8005972: 2b00 cmp r3, #0 - 8005974: d00a beq.n 800598c + 8006362: 687b ldr r3, [r7, #4] + 8006364: 6a9b ldr r3, [r3, #40] @ 0x28 + 8006366: f003 0301 and.w r3, r3, #1 + 800636a: 2b00 cmp r3, #0 + 800636c: d00a beq.n 8006384 { assert_param(IS_UART_ADVFEATURE_TXINV(huart->AdvancedInit.TxPinLevelInvert)); MODIFY_REG(huart->Instance->CR2, USART_CR2_TXINV, huart->AdvancedInit.TxPinLevelInvert); - 8005976: 687b ldr r3, [r7, #4] - 8005978: 681b ldr r3, [r3, #0] - 800597a: 685b ldr r3, [r3, #4] - 800597c: f423 3100 bic.w r1, r3, #131072 @ 0x20000 - 8005980: 687b ldr r3, [r7, #4] - 8005982: 6ada ldr r2, [r3, #44] @ 0x2c - 8005984: 687b ldr r3, [r7, #4] - 8005986: 681b ldr r3, [r3, #0] - 8005988: 430a orrs r2, r1 - 800598a: 605a str r2, [r3, #4] + 800636e: 687b ldr r3, [r7, #4] + 8006370: 681b ldr r3, [r3, #0] + 8006372: 685b ldr r3, [r3, #4] + 8006374: f423 3100 bic.w r1, r3, #131072 @ 0x20000 + 8006378: 687b ldr r3, [r7, #4] + 800637a: 6ada ldr r2, [r3, #44] @ 0x2c + 800637c: 687b ldr r3, [r7, #4] + 800637e: 681b ldr r3, [r3, #0] + 8006380: 430a orrs r2, r1 + 8006382: 605a str r2, [r3, #4] } /* if required, configure RX pin active level inversion */ if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_RXINVERT_INIT)) - 800598c: 687b ldr r3, [r7, #4] - 800598e: 6a9b ldr r3, [r3, #40] @ 0x28 - 8005990: f003 0302 and.w r3, r3, #2 - 8005994: 2b00 cmp r3, #0 - 8005996: d00a beq.n 80059ae + 8006384: 687b ldr r3, [r7, #4] + 8006386: 6a9b ldr r3, [r3, #40] @ 0x28 + 8006388: f003 0302 and.w r3, r3, #2 + 800638c: 2b00 cmp r3, #0 + 800638e: d00a beq.n 80063a6 { assert_param(IS_UART_ADVFEATURE_RXINV(huart->AdvancedInit.RxPinLevelInvert)); MODIFY_REG(huart->Instance->CR2, USART_CR2_RXINV, huart->AdvancedInit.RxPinLevelInvert); - 8005998: 687b ldr r3, [r7, #4] - 800599a: 681b ldr r3, [r3, #0] - 800599c: 685b ldr r3, [r3, #4] - 800599e: f423 3180 bic.w r1, r3, #65536 @ 0x10000 - 80059a2: 687b ldr r3, [r7, #4] - 80059a4: 6b1a ldr r2, [r3, #48] @ 0x30 - 80059a6: 687b ldr r3, [r7, #4] - 80059a8: 681b ldr r3, [r3, #0] - 80059aa: 430a orrs r2, r1 - 80059ac: 605a str r2, [r3, #4] + 8006390: 687b ldr r3, [r7, #4] + 8006392: 681b ldr r3, [r3, #0] + 8006394: 685b ldr r3, [r3, #4] + 8006396: f423 3180 bic.w r1, r3, #65536 @ 0x10000 + 800639a: 687b ldr r3, [r7, #4] + 800639c: 6b1a ldr r2, [r3, #48] @ 0x30 + 800639e: 687b ldr r3, [r7, #4] + 80063a0: 681b ldr r3, [r3, #0] + 80063a2: 430a orrs r2, r1 + 80063a4: 605a str r2, [r3, #4] } /* if required, configure data inversion */ if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_DATAINVERT_INIT)) - 80059ae: 687b ldr r3, [r7, #4] - 80059b0: 6a9b ldr r3, [r3, #40] @ 0x28 - 80059b2: f003 0304 and.w r3, r3, #4 - 80059b6: 2b00 cmp r3, #0 - 80059b8: d00a beq.n 80059d0 + 80063a6: 687b ldr r3, [r7, #4] + 80063a8: 6a9b ldr r3, [r3, #40] @ 0x28 + 80063aa: f003 0304 and.w r3, r3, #4 + 80063ae: 2b00 cmp r3, #0 + 80063b0: d00a beq.n 80063c8 { assert_param(IS_UART_ADVFEATURE_DATAINV(huart->AdvancedInit.DataInvert)); MODIFY_REG(huart->Instance->CR2, USART_CR2_DATAINV, huart->AdvancedInit.DataInvert); - 80059ba: 687b ldr r3, [r7, #4] - 80059bc: 681b ldr r3, [r3, #0] - 80059be: 685b ldr r3, [r3, #4] - 80059c0: f423 2180 bic.w r1, r3, #262144 @ 0x40000 - 80059c4: 687b ldr r3, [r7, #4] - 80059c6: 6b5a ldr r2, [r3, #52] @ 0x34 - 80059c8: 687b ldr r3, [r7, #4] - 80059ca: 681b ldr r3, [r3, #0] - 80059cc: 430a orrs r2, r1 - 80059ce: 605a str r2, [r3, #4] + 80063b2: 687b ldr r3, [r7, #4] + 80063b4: 681b ldr r3, [r3, #0] + 80063b6: 685b ldr r3, [r3, #4] + 80063b8: f423 2180 bic.w r1, r3, #262144 @ 0x40000 + 80063bc: 687b ldr r3, [r7, #4] + 80063be: 6b5a ldr r2, [r3, #52] @ 0x34 + 80063c0: 687b ldr r3, [r7, #4] + 80063c2: 681b ldr r3, [r3, #0] + 80063c4: 430a orrs r2, r1 + 80063c6: 605a str r2, [r3, #4] } /* if required, configure RX overrun detection disabling */ if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_RXOVERRUNDISABLE_INIT)) - 80059d0: 687b ldr r3, [r7, #4] - 80059d2: 6a9b ldr r3, [r3, #40] @ 0x28 - 80059d4: f003 0310 and.w r3, r3, #16 - 80059d8: 2b00 cmp r3, #0 - 80059da: d00a beq.n 80059f2 + 80063c8: 687b ldr r3, [r7, #4] + 80063ca: 6a9b ldr r3, [r3, #40] @ 0x28 + 80063cc: f003 0310 and.w r3, r3, #16 + 80063d0: 2b00 cmp r3, #0 + 80063d2: d00a beq.n 80063ea { assert_param(IS_UART_OVERRUN(huart->AdvancedInit.OverrunDisable)); MODIFY_REG(huart->Instance->CR3, USART_CR3_OVRDIS, huart->AdvancedInit.OverrunDisable); - 80059dc: 687b ldr r3, [r7, #4] - 80059de: 681b ldr r3, [r3, #0] - 80059e0: 689b ldr r3, [r3, #8] - 80059e2: f423 5180 bic.w r1, r3, #4096 @ 0x1000 - 80059e6: 687b ldr r3, [r7, #4] - 80059e8: 6bda ldr r2, [r3, #60] @ 0x3c - 80059ea: 687b ldr r3, [r7, #4] - 80059ec: 681b ldr r3, [r3, #0] - 80059ee: 430a orrs r2, r1 - 80059f0: 609a str r2, [r3, #8] + 80063d4: 687b ldr r3, [r7, #4] + 80063d6: 681b ldr r3, [r3, #0] + 80063d8: 689b ldr r3, [r3, #8] + 80063da: f423 5180 bic.w r1, r3, #4096 @ 0x1000 + 80063de: 687b ldr r3, [r7, #4] + 80063e0: 6bda ldr r2, [r3, #60] @ 0x3c + 80063e2: 687b ldr r3, [r7, #4] + 80063e4: 681b ldr r3, [r3, #0] + 80063e6: 430a orrs r2, r1 + 80063e8: 609a str r2, [r3, #8] } /* if required, configure DMA disabling on reception error */ if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_DMADISABLEONERROR_INIT)) - 80059f2: 687b ldr r3, [r7, #4] - 80059f4: 6a9b ldr r3, [r3, #40] @ 0x28 - 80059f6: f003 0320 and.w r3, r3, #32 - 80059fa: 2b00 cmp r3, #0 - 80059fc: d00a beq.n 8005a14 + 80063ea: 687b ldr r3, [r7, #4] + 80063ec: 6a9b ldr r3, [r3, #40] @ 0x28 + 80063ee: f003 0320 and.w r3, r3, #32 + 80063f2: 2b00 cmp r3, #0 + 80063f4: d00a beq.n 800640c { assert_param(IS_UART_ADVFEATURE_DMAONRXERROR(huart->AdvancedInit.DMADisableonRxError)); MODIFY_REG(huart->Instance->CR3, USART_CR3_DDRE, huart->AdvancedInit.DMADisableonRxError); - 80059fe: 687b ldr r3, [r7, #4] - 8005a00: 681b ldr r3, [r3, #0] - 8005a02: 689b ldr r3, [r3, #8] - 8005a04: f423 5100 bic.w r1, r3, #8192 @ 0x2000 - 8005a08: 687b ldr r3, [r7, #4] - 8005a0a: 6c1a ldr r2, [r3, #64] @ 0x40 - 8005a0c: 687b ldr r3, [r7, #4] - 8005a0e: 681b ldr r3, [r3, #0] - 8005a10: 430a orrs r2, r1 - 8005a12: 609a str r2, [r3, #8] + 80063f6: 687b ldr r3, [r7, #4] + 80063f8: 681b ldr r3, [r3, #0] + 80063fa: 689b ldr r3, [r3, #8] + 80063fc: f423 5100 bic.w r1, r3, #8192 @ 0x2000 + 8006400: 687b ldr r3, [r7, #4] + 8006402: 6c1a ldr r2, [r3, #64] @ 0x40 + 8006404: 687b ldr r3, [r7, #4] + 8006406: 681b ldr r3, [r3, #0] + 8006408: 430a orrs r2, r1 + 800640a: 609a str r2, [r3, #8] } /* if required, configure auto Baud rate detection scheme */ if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_AUTOBAUDRATE_INIT)) - 8005a14: 687b ldr r3, [r7, #4] - 8005a16: 6a9b ldr r3, [r3, #40] @ 0x28 - 8005a18: f003 0340 and.w r3, r3, #64 @ 0x40 - 8005a1c: 2b00 cmp r3, #0 - 8005a1e: d01a beq.n 8005a56 + 800640c: 687b ldr r3, [r7, #4] + 800640e: 6a9b ldr r3, [r3, #40] @ 0x28 + 8006410: f003 0340 and.w r3, r3, #64 @ 0x40 + 8006414: 2b00 cmp r3, #0 + 8006416: d01a beq.n 800644e { assert_param(IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(huart->Instance)); assert_param(IS_UART_ADVFEATURE_AUTOBAUDRATE(huart->AdvancedInit.AutoBaudRateEnable)); MODIFY_REG(huart->Instance->CR2, USART_CR2_ABREN, huart->AdvancedInit.AutoBaudRateEnable); - 8005a20: 687b ldr r3, [r7, #4] - 8005a22: 681b ldr r3, [r3, #0] - 8005a24: 685b ldr r3, [r3, #4] - 8005a26: f423 1180 bic.w r1, r3, #1048576 @ 0x100000 - 8005a2a: 687b ldr r3, [r7, #4] - 8005a2c: 6c5a ldr r2, [r3, #68] @ 0x44 - 8005a2e: 687b ldr r3, [r7, #4] - 8005a30: 681b ldr r3, [r3, #0] - 8005a32: 430a orrs r2, r1 - 8005a34: 605a str r2, [r3, #4] + 8006418: 687b ldr r3, [r7, #4] + 800641a: 681b ldr r3, [r3, #0] + 800641c: 685b ldr r3, [r3, #4] + 800641e: f423 1180 bic.w r1, r3, #1048576 @ 0x100000 + 8006422: 687b ldr r3, [r7, #4] + 8006424: 6c5a ldr r2, [r3, #68] @ 0x44 + 8006426: 687b ldr r3, [r7, #4] + 8006428: 681b ldr r3, [r3, #0] + 800642a: 430a orrs r2, r1 + 800642c: 605a str r2, [r3, #4] /* set auto Baudrate detection parameters if detection is enabled */ if (huart->AdvancedInit.AutoBaudRateEnable == UART_ADVFEATURE_AUTOBAUDRATE_ENABLE) - 8005a36: 687b ldr r3, [r7, #4] - 8005a38: 6c5b ldr r3, [r3, #68] @ 0x44 - 8005a3a: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000 - 8005a3e: d10a bne.n 8005a56 + 800642e: 687b ldr r3, [r7, #4] + 8006430: 6c5b ldr r3, [r3, #68] @ 0x44 + 8006432: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000 + 8006436: d10a bne.n 800644e { assert_param(IS_UART_ADVFEATURE_AUTOBAUDRATEMODE(huart->AdvancedInit.AutoBaudRateMode)); MODIFY_REG(huart->Instance->CR2, USART_CR2_ABRMODE, huart->AdvancedInit.AutoBaudRateMode); - 8005a40: 687b ldr r3, [r7, #4] - 8005a42: 681b ldr r3, [r3, #0] - 8005a44: 685b ldr r3, [r3, #4] - 8005a46: f423 01c0 bic.w r1, r3, #6291456 @ 0x600000 - 8005a4a: 687b ldr r3, [r7, #4] - 8005a4c: 6c9a ldr r2, [r3, #72] @ 0x48 - 8005a4e: 687b ldr r3, [r7, #4] - 8005a50: 681b ldr r3, [r3, #0] - 8005a52: 430a orrs r2, r1 - 8005a54: 605a str r2, [r3, #4] + 8006438: 687b ldr r3, [r7, #4] + 800643a: 681b ldr r3, [r3, #0] + 800643c: 685b ldr r3, [r3, #4] + 800643e: f423 01c0 bic.w r1, r3, #6291456 @ 0x600000 + 8006442: 687b ldr r3, [r7, #4] + 8006444: 6c9a ldr r2, [r3, #72] @ 0x48 + 8006446: 687b ldr r3, [r7, #4] + 8006448: 681b ldr r3, [r3, #0] + 800644a: 430a orrs r2, r1 + 800644c: 605a str r2, [r3, #4] } } /* if required, configure MSB first on communication line */ if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_MSBFIRST_INIT)) - 8005a56: 687b ldr r3, [r7, #4] - 8005a58: 6a9b ldr r3, [r3, #40] @ 0x28 - 8005a5a: f003 0380 and.w r3, r3, #128 @ 0x80 - 8005a5e: 2b00 cmp r3, #0 - 8005a60: d00a beq.n 8005a78 + 800644e: 687b ldr r3, [r7, #4] + 8006450: 6a9b ldr r3, [r3, #40] @ 0x28 + 8006452: f003 0380 and.w r3, r3, #128 @ 0x80 + 8006456: 2b00 cmp r3, #0 + 8006458: d00a beq.n 8006470 { assert_param(IS_UART_ADVFEATURE_MSBFIRST(huart->AdvancedInit.MSBFirst)); MODIFY_REG(huart->Instance->CR2, USART_CR2_MSBFIRST, huart->AdvancedInit.MSBFirst); - 8005a62: 687b ldr r3, [r7, #4] - 8005a64: 681b ldr r3, [r3, #0] - 8005a66: 685b ldr r3, [r3, #4] - 8005a68: f423 2100 bic.w r1, r3, #524288 @ 0x80000 - 8005a6c: 687b ldr r3, [r7, #4] - 8005a6e: 6cda ldr r2, [r3, #76] @ 0x4c - 8005a70: 687b ldr r3, [r7, #4] - 8005a72: 681b ldr r3, [r3, #0] - 8005a74: 430a orrs r2, r1 - 8005a76: 605a str r2, [r3, #4] + 800645a: 687b ldr r3, [r7, #4] + 800645c: 681b ldr r3, [r3, #0] + 800645e: 685b ldr r3, [r3, #4] + 8006460: f423 2100 bic.w r1, r3, #524288 @ 0x80000 + 8006464: 687b ldr r3, [r7, #4] + 8006466: 6cda ldr r2, [r3, #76] @ 0x4c + 8006468: 687b ldr r3, [r7, #4] + 800646a: 681b ldr r3, [r3, #0] + 800646c: 430a orrs r2, r1 + 800646e: 605a str r2, [r3, #4] } } - 8005a78: bf00 nop - 8005a7a: 370c adds r7, #12 - 8005a7c: 46bd mov sp, r7 - 8005a7e: f85d 7b04 ldr.w r7, [sp], #4 - 8005a82: 4770 bx lr + 8006470: bf00 nop + 8006472: 370c adds r7, #12 + 8006474: 46bd mov sp, r7 + 8006476: f85d 7b04 ldr.w r7, [sp], #4 + 800647a: 4770 bx lr -08005a84 : +0800647c : * @brief Check the UART Idle State. * @param huart UART handle. * @retval HAL status */ HAL_StatusTypeDef UART_CheckIdleState(UART_HandleTypeDef *huart) { - 8005a84: b580 push {r7, lr} - 8005a86: b098 sub sp, #96 @ 0x60 - 8005a88: af02 add r7, sp, #8 - 8005a8a: 6078 str r0, [r7, #4] + 800647c: b580 push {r7, lr} + 800647e: b098 sub sp, #96 @ 0x60 + 8006480: af02 add r7, sp, #8 + 8006482: 6078 str r0, [r7, #4] uint32_t tickstart; /* Initialize the UART ErrorCode */ huart->ErrorCode = HAL_UART_ERROR_NONE; - 8005a8c: 687b ldr r3, [r7, #4] - 8005a8e: 2200 movs r2, #0 - 8005a90: f8c3 2090 str.w r2, [r3, #144] @ 0x90 + 8006484: 687b ldr r3, [r7, #4] + 8006486: 2200 movs r2, #0 + 8006488: f8c3 2090 str.w r2, [r3, #144] @ 0x90 /* Init tickstart for timeout management */ tickstart = HAL_GetTick(); - 8005a94: f7fb fbbc bl 8001210 - 8005a98: 6578 str r0, [r7, #84] @ 0x54 + 800648c: f7fb fb2e bl 8001aec + 8006490: 6578 str r0, [r7, #84] @ 0x54 /* Check if the Transmitter is enabled */ if ((huart->Instance->CR1 & USART_CR1_TE) == USART_CR1_TE) - 8005a9a: 687b ldr r3, [r7, #4] - 8005a9c: 681b ldr r3, [r3, #0] - 8005a9e: 681b ldr r3, [r3, #0] - 8005aa0: f003 0308 and.w r3, r3, #8 - 8005aa4: 2b08 cmp r3, #8 - 8005aa6: d12f bne.n 8005b08 + 8006492: 687b ldr r3, [r7, #4] + 8006494: 681b ldr r3, [r3, #0] + 8006496: 681b ldr r3, [r3, #0] + 8006498: f003 0308 and.w r3, r3, #8 + 800649c: 2b08 cmp r3, #8 + 800649e: d12f bne.n 8006500 { /* Wait until TEACK flag is set */ if (UART_WaitOnFlagUntilTimeout(huart, USART_ISR_TEACK, RESET, tickstart, HAL_UART_TIMEOUT_VALUE) != HAL_OK) - 8005aa8: f06f 437e mvn.w r3, #4261412864 @ 0xfe000000 - 8005aac: 9300 str r3, [sp, #0] - 8005aae: 6d7b ldr r3, [r7, #84] @ 0x54 - 8005ab0: 2200 movs r2, #0 - 8005ab2: f44f 1100 mov.w r1, #2097152 @ 0x200000 - 8005ab6: 6878 ldr r0, [r7, #4] - 8005ab8: f000 f88e bl 8005bd8 - 8005abc: 4603 mov r3, r0 - 8005abe: 2b00 cmp r3, #0 - 8005ac0: d022 beq.n 8005b08 + 80064a0: f06f 437e mvn.w r3, #4261412864 @ 0xfe000000 + 80064a4: 9300 str r3, [sp, #0] + 80064a6: 6d7b ldr r3, [r7, #84] @ 0x54 + 80064a8: 2200 movs r2, #0 + 80064aa: f44f 1100 mov.w r1, #2097152 @ 0x200000 + 80064ae: 6878 ldr r0, [r7, #4] + 80064b0: f000 f88e bl 80065d0 + 80064b4: 4603 mov r3, r0 + 80064b6: 2b00 cmp r3, #0 + 80064b8: d022 beq.n 8006500 { /* Disable TXE interrupt for the interrupt process */ ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_TXEIE_TXFNFIE)); - 8005ac2: 687b ldr r3, [r7, #4] - 8005ac4: 681b ldr r3, [r3, #0] - 8005ac6: 63bb str r3, [r7, #56] @ 0x38 + 80064ba: 687b ldr r3, [r7, #4] + 80064bc: 681b ldr r3, [r3, #0] + 80064be: 63bb str r3, [r7, #56] @ 0x38 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8005ac8: 6bbb ldr r3, [r7, #56] @ 0x38 - 8005aca: e853 3f00 ldrex r3, [r3] - 8005ace: 637b str r3, [r7, #52] @ 0x34 + 80064c0: 6bbb ldr r3, [r7, #56] @ 0x38 + 80064c2: e853 3f00 ldrex r3, [r3] + 80064c6: 637b str r3, [r7, #52] @ 0x34 return(result); - 8005ad0: 6b7b ldr r3, [r7, #52] @ 0x34 - 8005ad2: f023 0380 bic.w r3, r3, #128 @ 0x80 - 8005ad6: 653b str r3, [r7, #80] @ 0x50 - 8005ad8: 687b ldr r3, [r7, #4] - 8005ada: 681b ldr r3, [r3, #0] - 8005adc: 461a mov r2, r3 - 8005ade: 6d3b ldr r3, [r7, #80] @ 0x50 - 8005ae0: 647b str r3, [r7, #68] @ 0x44 - 8005ae2: 643a str r2, [r7, #64] @ 0x40 + 80064c8: 6b7b ldr r3, [r7, #52] @ 0x34 + 80064ca: f023 0380 bic.w r3, r3, #128 @ 0x80 + 80064ce: 653b str r3, [r7, #80] @ 0x50 + 80064d0: 687b ldr r3, [r7, #4] + 80064d2: 681b ldr r3, [r3, #0] + 80064d4: 461a mov r2, r3 + 80064d6: 6d3b ldr r3, [r7, #80] @ 0x50 + 80064d8: 647b str r3, [r7, #68] @ 0x44 + 80064da: 643a str r2, [r7, #64] @ 0x40 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8005ae4: 6c39 ldr r1, [r7, #64] @ 0x40 - 8005ae6: 6c7a ldr r2, [r7, #68] @ 0x44 - 8005ae8: e841 2300 strex r3, r2, [r1] - 8005aec: 63fb str r3, [r7, #60] @ 0x3c + 80064dc: 6c39 ldr r1, [r7, #64] @ 0x40 + 80064de: 6c7a ldr r2, [r7, #68] @ 0x44 + 80064e0: e841 2300 strex r3, r2, [r1] + 80064e4: 63fb str r3, [r7, #60] @ 0x3c return(result); - 8005aee: 6bfb ldr r3, [r7, #60] @ 0x3c - 8005af0: 2b00 cmp r3, #0 - 8005af2: d1e6 bne.n 8005ac2 + 80064e6: 6bfb ldr r3, [r7, #60] @ 0x3c + 80064e8: 2b00 cmp r3, #0 + 80064ea: d1e6 bne.n 80064ba huart->gState = HAL_UART_STATE_READY; - 8005af4: 687b ldr r3, [r7, #4] - 8005af6: 2220 movs r2, #32 - 8005af8: f8c3 2088 str.w r2, [r3, #136] @ 0x88 + 80064ec: 687b ldr r3, [r7, #4] + 80064ee: 2220 movs r2, #32 + 80064f0: f8c3 2088 str.w r2, [r3, #136] @ 0x88 __HAL_UNLOCK(huart); - 8005afc: 687b ldr r3, [r7, #4] - 8005afe: 2200 movs r2, #0 - 8005b00: f883 2084 strb.w r2, [r3, #132] @ 0x84 + 80064f4: 687b ldr r3, [r7, #4] + 80064f6: 2200 movs r2, #0 + 80064f8: f883 2084 strb.w r2, [r3, #132] @ 0x84 /* Timeout occurred */ return HAL_TIMEOUT; - 8005b04: 2303 movs r3, #3 - 8005b06: e063 b.n 8005bd0 + 80064fc: 2303 movs r3, #3 + 80064fe: e063 b.n 80065c8 } } /* Check if the Receiver is enabled */ if ((huart->Instance->CR1 & USART_CR1_RE) == USART_CR1_RE) - 8005b08: 687b ldr r3, [r7, #4] - 8005b0a: 681b ldr r3, [r3, #0] - 8005b0c: 681b ldr r3, [r3, #0] - 8005b0e: f003 0304 and.w r3, r3, #4 - 8005b12: 2b04 cmp r3, #4 - 8005b14: d149 bne.n 8005baa + 8006500: 687b ldr r3, [r7, #4] + 8006502: 681b ldr r3, [r3, #0] + 8006504: 681b ldr r3, [r3, #0] + 8006506: f003 0304 and.w r3, r3, #4 + 800650a: 2b04 cmp r3, #4 + 800650c: d149 bne.n 80065a2 { /* Wait until REACK flag is set */ if (UART_WaitOnFlagUntilTimeout(huart, USART_ISR_REACK, RESET, tickstart, HAL_UART_TIMEOUT_VALUE) != HAL_OK) - 8005b16: f06f 437e mvn.w r3, #4261412864 @ 0xfe000000 - 8005b1a: 9300 str r3, [sp, #0] - 8005b1c: 6d7b ldr r3, [r7, #84] @ 0x54 - 8005b1e: 2200 movs r2, #0 - 8005b20: f44f 0180 mov.w r1, #4194304 @ 0x400000 - 8005b24: 6878 ldr r0, [r7, #4] - 8005b26: f000 f857 bl 8005bd8 - 8005b2a: 4603 mov r3, r0 - 8005b2c: 2b00 cmp r3, #0 - 8005b2e: d03c beq.n 8005baa + 800650e: f06f 437e mvn.w r3, #4261412864 @ 0xfe000000 + 8006512: 9300 str r3, [sp, #0] + 8006514: 6d7b ldr r3, [r7, #84] @ 0x54 + 8006516: 2200 movs r2, #0 + 8006518: f44f 0180 mov.w r1, #4194304 @ 0x400000 + 800651c: 6878 ldr r0, [r7, #4] + 800651e: f000 f857 bl 80065d0 + 8006522: 4603 mov r3, r0 + 8006524: 2b00 cmp r3, #0 + 8006526: d03c beq.n 80065a2 { /* Disable RXNE, PE and ERR (Frame error, noise error, overrun error) interrupts for the interrupt process */ ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE)); - 8005b30: 687b ldr r3, [r7, #4] - 8005b32: 681b ldr r3, [r3, #0] - 8005b34: 627b str r3, [r7, #36] @ 0x24 + 8006528: 687b ldr r3, [r7, #4] + 800652a: 681b ldr r3, [r3, #0] + 800652c: 627b str r3, [r7, #36] @ 0x24 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8005b36: 6a7b ldr r3, [r7, #36] @ 0x24 - 8005b38: e853 3f00 ldrex r3, [r3] - 8005b3c: 623b str r3, [r7, #32] + 800652e: 6a7b ldr r3, [r7, #36] @ 0x24 + 8006530: e853 3f00 ldrex r3, [r3] + 8006534: 623b str r3, [r7, #32] return(result); - 8005b3e: 6a3b ldr r3, [r7, #32] - 8005b40: f423 7390 bic.w r3, r3, #288 @ 0x120 - 8005b44: 64fb str r3, [r7, #76] @ 0x4c - 8005b46: 687b ldr r3, [r7, #4] - 8005b48: 681b ldr r3, [r3, #0] - 8005b4a: 461a mov r2, r3 - 8005b4c: 6cfb ldr r3, [r7, #76] @ 0x4c - 8005b4e: 633b str r3, [r7, #48] @ 0x30 - 8005b50: 62fa str r2, [r7, #44] @ 0x2c + 8006536: 6a3b ldr r3, [r7, #32] + 8006538: f423 7390 bic.w r3, r3, #288 @ 0x120 + 800653c: 64fb str r3, [r7, #76] @ 0x4c + 800653e: 687b ldr r3, [r7, #4] + 8006540: 681b ldr r3, [r3, #0] + 8006542: 461a mov r2, r3 + 8006544: 6cfb ldr r3, [r7, #76] @ 0x4c + 8006546: 633b str r3, [r7, #48] @ 0x30 + 8006548: 62fa str r2, [r7, #44] @ 0x2c __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8005b52: 6af9 ldr r1, [r7, #44] @ 0x2c - 8005b54: 6b3a ldr r2, [r7, #48] @ 0x30 - 8005b56: e841 2300 strex r3, r2, [r1] - 8005b5a: 62bb str r3, [r7, #40] @ 0x28 + 800654a: 6af9 ldr r1, [r7, #44] @ 0x2c + 800654c: 6b3a ldr r2, [r7, #48] @ 0x30 + 800654e: e841 2300 strex r3, r2, [r1] + 8006552: 62bb str r3, [r7, #40] @ 0x28 return(result); - 8005b5c: 6abb ldr r3, [r7, #40] @ 0x28 - 8005b5e: 2b00 cmp r3, #0 - 8005b60: d1e6 bne.n 8005b30 + 8006554: 6abb ldr r3, [r7, #40] @ 0x28 + 8006556: 2b00 cmp r3, #0 + 8006558: d1e6 bne.n 8006528 ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); - 8005b62: 687b ldr r3, [r7, #4] - 8005b64: 681b ldr r3, [r3, #0] - 8005b66: 3308 adds r3, #8 - 8005b68: 613b str r3, [r7, #16] + 800655a: 687b ldr r3, [r7, #4] + 800655c: 681b ldr r3, [r3, #0] + 800655e: 3308 adds r3, #8 + 8006560: 613b str r3, [r7, #16] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8005b6a: 693b ldr r3, [r7, #16] - 8005b6c: e853 3f00 ldrex r3, [r3] - 8005b70: 60fb str r3, [r7, #12] + 8006562: 693b ldr r3, [r7, #16] + 8006564: e853 3f00 ldrex r3, [r3] + 8006568: 60fb str r3, [r7, #12] return(result); - 8005b72: 68fb ldr r3, [r7, #12] - 8005b74: f023 0301 bic.w r3, r3, #1 - 8005b78: 64bb str r3, [r7, #72] @ 0x48 - 8005b7a: 687b ldr r3, [r7, #4] - 8005b7c: 681b ldr r3, [r3, #0] - 8005b7e: 3308 adds r3, #8 - 8005b80: 6cba ldr r2, [r7, #72] @ 0x48 - 8005b82: 61fa str r2, [r7, #28] - 8005b84: 61bb str r3, [r7, #24] + 800656a: 68fb ldr r3, [r7, #12] + 800656c: f023 0301 bic.w r3, r3, #1 + 8006570: 64bb str r3, [r7, #72] @ 0x48 + 8006572: 687b ldr r3, [r7, #4] + 8006574: 681b ldr r3, [r3, #0] + 8006576: 3308 adds r3, #8 + 8006578: 6cba ldr r2, [r7, #72] @ 0x48 + 800657a: 61fa str r2, [r7, #28] + 800657c: 61bb str r3, [r7, #24] __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8005b86: 69b9 ldr r1, [r7, #24] - 8005b88: 69fa ldr r2, [r7, #28] - 8005b8a: e841 2300 strex r3, r2, [r1] - 8005b8e: 617b str r3, [r7, #20] + 800657e: 69b9 ldr r1, [r7, #24] + 8006580: 69fa ldr r2, [r7, #28] + 8006582: e841 2300 strex r3, r2, [r1] + 8006586: 617b str r3, [r7, #20] return(result); - 8005b90: 697b ldr r3, [r7, #20] - 8005b92: 2b00 cmp r3, #0 - 8005b94: d1e5 bne.n 8005b62 + 8006588: 697b ldr r3, [r7, #20] + 800658a: 2b00 cmp r3, #0 + 800658c: d1e5 bne.n 800655a huart->RxState = HAL_UART_STATE_READY; - 8005b96: 687b ldr r3, [r7, #4] - 8005b98: 2220 movs r2, #32 - 8005b9a: f8c3 208c str.w r2, [r3, #140] @ 0x8c + 800658e: 687b ldr r3, [r7, #4] + 8006590: 2220 movs r2, #32 + 8006592: f8c3 208c str.w r2, [r3, #140] @ 0x8c __HAL_UNLOCK(huart); - 8005b9e: 687b ldr r3, [r7, #4] - 8005ba0: 2200 movs r2, #0 - 8005ba2: f883 2084 strb.w r2, [r3, #132] @ 0x84 + 8006596: 687b ldr r3, [r7, #4] + 8006598: 2200 movs r2, #0 + 800659a: f883 2084 strb.w r2, [r3, #132] @ 0x84 /* Timeout occurred */ return HAL_TIMEOUT; - 8005ba6: 2303 movs r3, #3 - 8005ba8: e012 b.n 8005bd0 + 800659e: 2303 movs r3, #3 + 80065a0: e012 b.n 80065c8 } } /* Initialize the UART State */ huart->gState = HAL_UART_STATE_READY; - 8005baa: 687b ldr r3, [r7, #4] - 8005bac: 2220 movs r2, #32 - 8005bae: f8c3 2088 str.w r2, [r3, #136] @ 0x88 + 80065a2: 687b ldr r3, [r7, #4] + 80065a4: 2220 movs r2, #32 + 80065a6: f8c3 2088 str.w r2, [r3, #136] @ 0x88 huart->RxState = HAL_UART_STATE_READY; - 8005bb2: 687b ldr r3, [r7, #4] - 8005bb4: 2220 movs r2, #32 - 8005bb6: f8c3 208c str.w r2, [r3, #140] @ 0x8c + 80065aa: 687b ldr r3, [r7, #4] + 80065ac: 2220 movs r2, #32 + 80065ae: f8c3 208c str.w r2, [r3, #140] @ 0x8c huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; - 8005bba: 687b ldr r3, [r7, #4] - 8005bbc: 2200 movs r2, #0 - 8005bbe: 66da str r2, [r3, #108] @ 0x6c + 80065b2: 687b ldr r3, [r7, #4] + 80065b4: 2200 movs r2, #0 + 80065b6: 66da str r2, [r3, #108] @ 0x6c huart->RxEventType = HAL_UART_RXEVENT_TC; - 8005bc0: 687b ldr r3, [r7, #4] - 8005bc2: 2200 movs r2, #0 - 8005bc4: 671a str r2, [r3, #112] @ 0x70 + 80065b8: 687b ldr r3, [r7, #4] + 80065ba: 2200 movs r2, #0 + 80065bc: 671a str r2, [r3, #112] @ 0x70 __HAL_UNLOCK(huart); - 8005bc6: 687b ldr r3, [r7, #4] - 8005bc8: 2200 movs r2, #0 - 8005bca: f883 2084 strb.w r2, [r3, #132] @ 0x84 + 80065be: 687b ldr r3, [r7, #4] + 80065c0: 2200 movs r2, #0 + 80065c2: f883 2084 strb.w r2, [r3, #132] @ 0x84 return HAL_OK; - 8005bce: 2300 movs r3, #0 + 80065c6: 2300 movs r3, #0 } - 8005bd0: 4618 mov r0, r3 - 8005bd2: 3758 adds r7, #88 @ 0x58 - 8005bd4: 46bd mov sp, r7 - 8005bd6: bd80 pop {r7, pc} + 80065c8: 4618 mov r0, r3 + 80065ca: 3758 adds r7, #88 @ 0x58 + 80065cc: 46bd mov sp, r7 + 80065ce: bd80 pop {r7, pc} -08005bd8 : +080065d0 : * @param Timeout Timeout duration * @retval HAL status */ HAL_StatusTypeDef UART_WaitOnFlagUntilTimeout(UART_HandleTypeDef *huart, uint32_t Flag, FlagStatus Status, uint32_t Tickstart, uint32_t Timeout) { - 8005bd8: b580 push {r7, lr} - 8005bda: b084 sub sp, #16 - 8005bdc: af00 add r7, sp, #0 - 8005bde: 60f8 str r0, [r7, #12] - 8005be0: 60b9 str r1, [r7, #8] - 8005be2: 603b str r3, [r7, #0] - 8005be4: 4613 mov r3, r2 - 8005be6: 71fb strb r3, [r7, #7] + 80065d0: b580 push {r7, lr} + 80065d2: b084 sub sp, #16 + 80065d4: af00 add r7, sp, #0 + 80065d6: 60f8 str r0, [r7, #12] + 80065d8: 60b9 str r1, [r7, #8] + 80065da: 603b str r3, [r7, #0] + 80065dc: 4613 mov r3, r2 + 80065de: 71fb strb r3, [r7, #7] /* Wait until flag is set */ while ((__HAL_UART_GET_FLAG(huart, Flag) ? SET : RESET) == Status) - 8005be8: e04f b.n 8005c8a + 80065e0: e04f b.n 8006682 { /* Check for the Timeout */ if (Timeout != HAL_MAX_DELAY) - 8005bea: 69bb ldr r3, [r7, #24] - 8005bec: f1b3 3fff cmp.w r3, #4294967295 - 8005bf0: d04b beq.n 8005c8a + 80065e2: 69bb ldr r3, [r7, #24] + 80065e4: f1b3 3fff cmp.w r3, #4294967295 + 80065e8: d04b beq.n 8006682 { if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U)) - 8005bf2: f7fb fb0d bl 8001210 - 8005bf6: 4602 mov r2, r0 - 8005bf8: 683b ldr r3, [r7, #0] - 8005bfa: 1ad3 subs r3, r2, r3 - 8005bfc: 69ba ldr r2, [r7, #24] - 8005bfe: 429a cmp r2, r3 - 8005c00: d302 bcc.n 8005c08 - 8005c02: 69bb ldr r3, [r7, #24] - 8005c04: 2b00 cmp r3, #0 - 8005c06: d101 bne.n 8005c0c + 80065ea: f7fb fa7f bl 8001aec + 80065ee: 4602 mov r2, r0 + 80065f0: 683b ldr r3, [r7, #0] + 80065f2: 1ad3 subs r3, r2, r3 + 80065f4: 69ba ldr r2, [r7, #24] + 80065f6: 429a cmp r2, r3 + 80065f8: d302 bcc.n 8006600 + 80065fa: 69bb ldr r3, [r7, #24] + 80065fc: 2b00 cmp r3, #0 + 80065fe: d101 bne.n 8006604 { return HAL_TIMEOUT; - 8005c08: 2303 movs r3, #3 - 8005c0a: e04e b.n 8005caa + 8006600: 2303 movs r3, #3 + 8006602: e04e b.n 80066a2 } if ((READ_BIT(huart->Instance->CR1, USART_CR1_RE) != 0U) && (Flag != UART_FLAG_TXE) && (Flag != UART_FLAG_TC)) - 8005c0c: 68fb ldr r3, [r7, #12] - 8005c0e: 681b ldr r3, [r3, #0] - 8005c10: 681b ldr r3, [r3, #0] - 8005c12: f003 0304 and.w r3, r3, #4 - 8005c16: 2b00 cmp r3, #0 - 8005c18: d037 beq.n 8005c8a - 8005c1a: 68bb ldr r3, [r7, #8] - 8005c1c: 2b80 cmp r3, #128 @ 0x80 - 8005c1e: d034 beq.n 8005c8a - 8005c20: 68bb ldr r3, [r7, #8] - 8005c22: 2b40 cmp r3, #64 @ 0x40 - 8005c24: d031 beq.n 8005c8a + 8006604: 68fb ldr r3, [r7, #12] + 8006606: 681b ldr r3, [r3, #0] + 8006608: 681b ldr r3, [r3, #0] + 800660a: f003 0304 and.w r3, r3, #4 + 800660e: 2b00 cmp r3, #0 + 8006610: d037 beq.n 8006682 + 8006612: 68bb ldr r3, [r7, #8] + 8006614: 2b80 cmp r3, #128 @ 0x80 + 8006616: d034 beq.n 8006682 + 8006618: 68bb ldr r3, [r7, #8] + 800661a: 2b40 cmp r3, #64 @ 0x40 + 800661c: d031 beq.n 8006682 { if (__HAL_UART_GET_FLAG(huart, UART_FLAG_ORE) == SET) - 8005c26: 68fb ldr r3, [r7, #12] - 8005c28: 681b ldr r3, [r3, #0] - 8005c2a: 69db ldr r3, [r3, #28] - 8005c2c: f003 0308 and.w r3, r3, #8 - 8005c30: 2b08 cmp r3, #8 - 8005c32: d110 bne.n 8005c56 + 800661e: 68fb ldr r3, [r7, #12] + 8006620: 681b ldr r3, [r3, #0] + 8006622: 69db ldr r3, [r3, #28] + 8006624: f003 0308 and.w r3, r3, #8 + 8006628: 2b08 cmp r3, #8 + 800662a: d110 bne.n 800664e { /* Clear Overrun Error flag*/ __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_OREF); - 8005c34: 68fb ldr r3, [r7, #12] - 8005c36: 681b ldr r3, [r3, #0] - 8005c38: 2208 movs r2, #8 - 8005c3a: 621a str r2, [r3, #32] + 800662c: 68fb ldr r3, [r7, #12] + 800662e: 681b ldr r3, [r3, #0] + 8006630: 2208 movs r2, #8 + 8006632: 621a str r2, [r3, #32] /* Blocking error : transfer is aborted Set the UART state ready to be able to start again the process, Disable Rx Interrupts if ongoing */ UART_EndRxTransfer(huart); - 8005c3c: 68f8 ldr r0, [r7, #12] - 8005c3e: f000 f95b bl 8005ef8 + 8006634: 68f8 ldr r0, [r7, #12] + 8006636: f000 f95b bl 80068f0 huart->ErrorCode = HAL_UART_ERROR_ORE; - 8005c42: 68fb ldr r3, [r7, #12] - 8005c44: 2208 movs r2, #8 - 8005c46: f8c3 2090 str.w r2, [r3, #144] @ 0x90 + 800663a: 68fb ldr r3, [r7, #12] + 800663c: 2208 movs r2, #8 + 800663e: f8c3 2090 str.w r2, [r3, #144] @ 0x90 /* Process Unlocked */ __HAL_UNLOCK(huart); - 8005c4a: 68fb ldr r3, [r7, #12] - 8005c4c: 2200 movs r2, #0 - 8005c4e: f883 2084 strb.w r2, [r3, #132] @ 0x84 + 8006642: 68fb ldr r3, [r7, #12] + 8006644: 2200 movs r2, #0 + 8006646: f883 2084 strb.w r2, [r3, #132] @ 0x84 return HAL_ERROR; - 8005c52: 2301 movs r3, #1 - 8005c54: e029 b.n 8005caa + 800664a: 2301 movs r3, #1 + 800664c: e029 b.n 80066a2 } if (__HAL_UART_GET_FLAG(huart, UART_FLAG_RTOF) == SET) - 8005c56: 68fb ldr r3, [r7, #12] - 8005c58: 681b ldr r3, [r3, #0] - 8005c5a: 69db ldr r3, [r3, #28] - 8005c5c: f403 6300 and.w r3, r3, #2048 @ 0x800 - 8005c60: f5b3 6f00 cmp.w r3, #2048 @ 0x800 - 8005c64: d111 bne.n 8005c8a + 800664e: 68fb ldr r3, [r7, #12] + 8006650: 681b ldr r3, [r3, #0] + 8006652: 69db ldr r3, [r3, #28] + 8006654: f403 6300 and.w r3, r3, #2048 @ 0x800 + 8006658: f5b3 6f00 cmp.w r3, #2048 @ 0x800 + 800665c: d111 bne.n 8006682 { /* Clear Receiver Timeout flag*/ __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_RTOF); - 8005c66: 68fb ldr r3, [r7, #12] - 8005c68: 681b ldr r3, [r3, #0] - 8005c6a: f44f 6200 mov.w r2, #2048 @ 0x800 - 8005c6e: 621a str r2, [r3, #32] + 800665e: 68fb ldr r3, [r7, #12] + 8006660: 681b ldr r3, [r3, #0] + 8006662: f44f 6200 mov.w r2, #2048 @ 0x800 + 8006666: 621a str r2, [r3, #32] /* Blocking error : transfer is aborted Set the UART state ready to be able to start again the process, Disable Rx Interrupts if ongoing */ UART_EndRxTransfer(huart); - 8005c70: 68f8 ldr r0, [r7, #12] - 8005c72: f000 f941 bl 8005ef8 + 8006668: 68f8 ldr r0, [r7, #12] + 800666a: f000 f941 bl 80068f0 huart->ErrorCode = HAL_UART_ERROR_RTO; - 8005c76: 68fb ldr r3, [r7, #12] - 8005c78: 2220 movs r2, #32 - 8005c7a: f8c3 2090 str.w r2, [r3, #144] @ 0x90 + 800666e: 68fb ldr r3, [r7, #12] + 8006670: 2220 movs r2, #32 + 8006672: f8c3 2090 str.w r2, [r3, #144] @ 0x90 /* Process Unlocked */ __HAL_UNLOCK(huart); - 8005c7e: 68fb ldr r3, [r7, #12] - 8005c80: 2200 movs r2, #0 - 8005c82: f883 2084 strb.w r2, [r3, #132] @ 0x84 + 8006676: 68fb ldr r3, [r7, #12] + 8006678: 2200 movs r2, #0 + 800667a: f883 2084 strb.w r2, [r3, #132] @ 0x84 return HAL_TIMEOUT; - 8005c86: 2303 movs r3, #3 - 8005c88: e00f b.n 8005caa + 800667e: 2303 movs r3, #3 + 8006680: e00f b.n 80066a2 while ((__HAL_UART_GET_FLAG(huart, Flag) ? SET : RESET) == Status) - 8005c8a: 68fb ldr r3, [r7, #12] - 8005c8c: 681b ldr r3, [r3, #0] - 8005c8e: 69da ldr r2, [r3, #28] - 8005c90: 68bb ldr r3, [r7, #8] - 8005c92: 4013 ands r3, r2 - 8005c94: 68ba ldr r2, [r7, #8] - 8005c96: 429a cmp r2, r3 - 8005c98: bf0c ite eq - 8005c9a: 2301 moveq r3, #1 - 8005c9c: 2300 movne r3, #0 - 8005c9e: b2db uxtb r3, r3 - 8005ca0: 461a mov r2, r3 - 8005ca2: 79fb ldrb r3, [r7, #7] - 8005ca4: 429a cmp r2, r3 - 8005ca6: d0a0 beq.n 8005bea + 8006682: 68fb ldr r3, [r7, #12] + 8006684: 681b ldr r3, [r3, #0] + 8006686: 69da ldr r2, [r3, #28] + 8006688: 68bb ldr r3, [r7, #8] + 800668a: 4013 ands r3, r2 + 800668c: 68ba ldr r2, [r7, #8] + 800668e: 429a cmp r2, r3 + 8006690: bf0c ite eq + 8006692: 2301 moveq r3, #1 + 8006694: 2300 movne r3, #0 + 8006696: b2db uxtb r3, r3 + 8006698: 461a mov r2, r3 + 800669a: 79fb ldrb r3, [r7, #7] + 800669c: 429a cmp r2, r3 + 800669e: d0a0 beq.n 80065e2 } } } } return HAL_OK; - 8005ca8: 2300 movs r3, #0 + 80066a0: 2300 movs r3, #0 } - 8005caa: 4618 mov r0, r3 - 8005cac: 3710 adds r7, #16 - 8005cae: 46bd mov sp, r7 - 8005cb0: bd80 pop {r7, pc} + 80066a2: 4618 mov r0, r3 + 80066a4: 3710 adds r7, #16 + 80066a6: 46bd mov sp, r7 + 80066a8: bd80 pop {r7, pc} ... -08005cb4 : +080066ac : * @param pData Pointer to data buffer (u8 or u16 data elements). * @param Size Amount of data elements (u8 or u16) to be received. * @retval HAL status */ HAL_StatusTypeDef UART_Start_Receive_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size) { - 8005cb4: b480 push {r7} - 8005cb6: b0a3 sub sp, #140 @ 0x8c - 8005cb8: af00 add r7, sp, #0 - 8005cba: 60f8 str r0, [r7, #12] - 8005cbc: 60b9 str r1, [r7, #8] - 8005cbe: 4613 mov r3, r2 - 8005cc0: 80fb strh r3, [r7, #6] + 80066ac: b480 push {r7} + 80066ae: b0a3 sub sp, #140 @ 0x8c + 80066b0: af00 add r7, sp, #0 + 80066b2: 60f8 str r0, [r7, #12] + 80066b4: 60b9 str r1, [r7, #8] + 80066b6: 4613 mov r3, r2 + 80066b8: 80fb strh r3, [r7, #6] huart->pRxBuffPtr = pData; - 8005cc2: 68fb ldr r3, [r7, #12] - 8005cc4: 68ba ldr r2, [r7, #8] - 8005cc6: 659a str r2, [r3, #88] @ 0x58 + 80066ba: 68fb ldr r3, [r7, #12] + 80066bc: 68ba ldr r2, [r7, #8] + 80066be: 659a str r2, [r3, #88] @ 0x58 huart->RxXferSize = Size; - 8005cc8: 68fb ldr r3, [r7, #12] - 8005cca: 88fa ldrh r2, [r7, #6] - 8005ccc: f8a3 205c strh.w r2, [r3, #92] @ 0x5c + 80066c0: 68fb ldr r3, [r7, #12] + 80066c2: 88fa ldrh r2, [r7, #6] + 80066c4: f8a3 205c strh.w r2, [r3, #92] @ 0x5c huart->RxXferCount = Size; - 8005cd0: 68fb ldr r3, [r7, #12] - 8005cd2: 88fa ldrh r2, [r7, #6] - 8005cd4: f8a3 205e strh.w r2, [r3, #94] @ 0x5e + 80066c8: 68fb ldr r3, [r7, #12] + 80066ca: 88fa ldrh r2, [r7, #6] + 80066cc: f8a3 205e strh.w r2, [r3, #94] @ 0x5e huart->RxISR = NULL; - 8005cd8: 68fb ldr r3, [r7, #12] - 8005cda: 2200 movs r2, #0 - 8005cdc: 675a str r2, [r3, #116] @ 0x74 + 80066d0: 68fb ldr r3, [r7, #12] + 80066d2: 2200 movs r2, #0 + 80066d4: 675a str r2, [r3, #116] @ 0x74 /* Computation of UART mask to apply to RDR register */ UART_MASK_COMPUTATION(huart); - 8005cde: 68fb ldr r3, [r7, #12] - 8005ce0: 689b ldr r3, [r3, #8] - 8005ce2: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 - 8005ce6: d10e bne.n 8005d06 - 8005ce8: 68fb ldr r3, [r7, #12] - 8005cea: 691b ldr r3, [r3, #16] - 8005cec: 2b00 cmp r3, #0 - 8005cee: d105 bne.n 8005cfc - 8005cf0: 68fb ldr r3, [r7, #12] - 8005cf2: f240 12ff movw r2, #511 @ 0x1ff - 8005cf6: f8a3 2060 strh.w r2, [r3, #96] @ 0x60 - 8005cfa: e02d b.n 8005d58 - 8005cfc: 68fb ldr r3, [r7, #12] - 8005cfe: 22ff movs r2, #255 @ 0xff - 8005d00: f8a3 2060 strh.w r2, [r3, #96] @ 0x60 - 8005d04: e028 b.n 8005d58 - 8005d06: 68fb ldr r3, [r7, #12] - 8005d08: 689b ldr r3, [r3, #8] - 8005d0a: 2b00 cmp r3, #0 - 8005d0c: d10d bne.n 8005d2a - 8005d0e: 68fb ldr r3, [r7, #12] - 8005d10: 691b ldr r3, [r3, #16] - 8005d12: 2b00 cmp r3, #0 - 8005d14: d104 bne.n 8005d20 - 8005d16: 68fb ldr r3, [r7, #12] - 8005d18: 22ff movs r2, #255 @ 0xff - 8005d1a: f8a3 2060 strh.w r2, [r3, #96] @ 0x60 - 8005d1e: e01b b.n 8005d58 - 8005d20: 68fb ldr r3, [r7, #12] - 8005d22: 227f movs r2, #127 @ 0x7f - 8005d24: f8a3 2060 strh.w r2, [r3, #96] @ 0x60 - 8005d28: e016 b.n 8005d58 - 8005d2a: 68fb ldr r3, [r7, #12] - 8005d2c: 689b ldr r3, [r3, #8] - 8005d2e: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000 - 8005d32: d10d bne.n 8005d50 - 8005d34: 68fb ldr r3, [r7, #12] - 8005d36: 691b ldr r3, [r3, #16] - 8005d38: 2b00 cmp r3, #0 - 8005d3a: d104 bne.n 8005d46 - 8005d3c: 68fb ldr r3, [r7, #12] - 8005d3e: 227f movs r2, #127 @ 0x7f - 8005d40: f8a3 2060 strh.w r2, [r3, #96] @ 0x60 - 8005d44: e008 b.n 8005d58 - 8005d46: 68fb ldr r3, [r7, #12] - 8005d48: 223f movs r2, #63 @ 0x3f - 8005d4a: f8a3 2060 strh.w r2, [r3, #96] @ 0x60 - 8005d4e: e003 b.n 8005d58 - 8005d50: 68fb ldr r3, [r7, #12] - 8005d52: 2200 movs r2, #0 - 8005d54: f8a3 2060 strh.w r2, [r3, #96] @ 0x60 + 80066d6: 68fb ldr r3, [r7, #12] + 80066d8: 689b ldr r3, [r3, #8] + 80066da: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 + 80066de: d10e bne.n 80066fe + 80066e0: 68fb ldr r3, [r7, #12] + 80066e2: 691b ldr r3, [r3, #16] + 80066e4: 2b00 cmp r3, #0 + 80066e6: d105 bne.n 80066f4 + 80066e8: 68fb ldr r3, [r7, #12] + 80066ea: f240 12ff movw r2, #511 @ 0x1ff + 80066ee: f8a3 2060 strh.w r2, [r3, #96] @ 0x60 + 80066f2: e02d b.n 8006750 + 80066f4: 68fb ldr r3, [r7, #12] + 80066f6: 22ff movs r2, #255 @ 0xff + 80066f8: f8a3 2060 strh.w r2, [r3, #96] @ 0x60 + 80066fc: e028 b.n 8006750 + 80066fe: 68fb ldr r3, [r7, #12] + 8006700: 689b ldr r3, [r3, #8] + 8006702: 2b00 cmp r3, #0 + 8006704: d10d bne.n 8006722 + 8006706: 68fb ldr r3, [r7, #12] + 8006708: 691b ldr r3, [r3, #16] + 800670a: 2b00 cmp r3, #0 + 800670c: d104 bne.n 8006718 + 800670e: 68fb ldr r3, [r7, #12] + 8006710: 22ff movs r2, #255 @ 0xff + 8006712: f8a3 2060 strh.w r2, [r3, #96] @ 0x60 + 8006716: e01b b.n 8006750 + 8006718: 68fb ldr r3, [r7, #12] + 800671a: 227f movs r2, #127 @ 0x7f + 800671c: f8a3 2060 strh.w r2, [r3, #96] @ 0x60 + 8006720: e016 b.n 8006750 + 8006722: 68fb ldr r3, [r7, #12] + 8006724: 689b ldr r3, [r3, #8] + 8006726: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000 + 800672a: d10d bne.n 8006748 + 800672c: 68fb ldr r3, [r7, #12] + 800672e: 691b ldr r3, [r3, #16] + 8006730: 2b00 cmp r3, #0 + 8006732: d104 bne.n 800673e + 8006734: 68fb ldr r3, [r7, #12] + 8006736: 227f movs r2, #127 @ 0x7f + 8006738: f8a3 2060 strh.w r2, [r3, #96] @ 0x60 + 800673c: e008 b.n 8006750 + 800673e: 68fb ldr r3, [r7, #12] + 8006740: 223f movs r2, #63 @ 0x3f + 8006742: f8a3 2060 strh.w r2, [r3, #96] @ 0x60 + 8006746: e003 b.n 8006750 + 8006748: 68fb ldr r3, [r7, #12] + 800674a: 2200 movs r2, #0 + 800674c: f8a3 2060 strh.w r2, [r3, #96] @ 0x60 huart->ErrorCode = HAL_UART_ERROR_NONE; - 8005d58: 68fb ldr r3, [r7, #12] - 8005d5a: 2200 movs r2, #0 - 8005d5c: f8c3 2090 str.w r2, [r3, #144] @ 0x90 + 8006750: 68fb ldr r3, [r7, #12] + 8006752: 2200 movs r2, #0 + 8006754: f8c3 2090 str.w r2, [r3, #144] @ 0x90 huart->RxState = HAL_UART_STATE_BUSY_RX; - 8005d60: 68fb ldr r3, [r7, #12] - 8005d62: 2222 movs r2, #34 @ 0x22 - 8005d64: f8c3 208c str.w r2, [r3, #140] @ 0x8c + 8006758: 68fb ldr r3, [r7, #12] + 800675a: 2222 movs r2, #34 @ 0x22 + 800675c: f8c3 208c str.w r2, [r3, #140] @ 0x8c /* Enable the UART Error Interrupt: (Frame error, noise error, overrun error) */ ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_EIE); - 8005d68: 68fb ldr r3, [r7, #12] - 8005d6a: 681b ldr r3, [r3, #0] - 8005d6c: 3308 adds r3, #8 - 8005d6e: 667b str r3, [r7, #100] @ 0x64 + 8006760: 68fb ldr r3, [r7, #12] + 8006762: 681b ldr r3, [r3, #0] + 8006764: 3308 adds r3, #8 + 8006766: 667b str r3, [r7, #100] @ 0x64 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8005d70: 6e7b ldr r3, [r7, #100] @ 0x64 - 8005d72: e853 3f00 ldrex r3, [r3] - 8005d76: 663b str r3, [r7, #96] @ 0x60 + 8006768: 6e7b ldr r3, [r7, #100] @ 0x64 + 800676a: e853 3f00 ldrex r3, [r3] + 800676e: 663b str r3, [r7, #96] @ 0x60 return(result); - 8005d78: 6e3b ldr r3, [r7, #96] @ 0x60 - 8005d7a: f043 0301 orr.w r3, r3, #1 - 8005d7e: f8c7 3084 str.w r3, [r7, #132] @ 0x84 - 8005d82: 68fb ldr r3, [r7, #12] - 8005d84: 681b ldr r3, [r3, #0] - 8005d86: 3308 adds r3, #8 - 8005d88: f8d7 2084 ldr.w r2, [r7, #132] @ 0x84 - 8005d8c: 673a str r2, [r7, #112] @ 0x70 - 8005d8e: 66fb str r3, [r7, #108] @ 0x6c + 8006770: 6e3b ldr r3, [r7, #96] @ 0x60 + 8006772: f043 0301 orr.w r3, r3, #1 + 8006776: f8c7 3084 str.w r3, [r7, #132] @ 0x84 + 800677a: 68fb ldr r3, [r7, #12] + 800677c: 681b ldr r3, [r3, #0] + 800677e: 3308 adds r3, #8 + 8006780: f8d7 2084 ldr.w r2, [r7, #132] @ 0x84 + 8006784: 673a str r2, [r7, #112] @ 0x70 + 8006786: 66fb str r3, [r7, #108] @ 0x6c __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8005d90: 6ef9 ldr r1, [r7, #108] @ 0x6c - 8005d92: 6f3a ldr r2, [r7, #112] @ 0x70 - 8005d94: e841 2300 strex r3, r2, [r1] - 8005d98: 66bb str r3, [r7, #104] @ 0x68 + 8006788: 6ef9 ldr r1, [r7, #108] @ 0x6c + 800678a: 6f3a ldr r2, [r7, #112] @ 0x70 + 800678c: e841 2300 strex r3, r2, [r1] + 8006790: 66bb str r3, [r7, #104] @ 0x68 return(result); - 8005d9a: 6ebb ldr r3, [r7, #104] @ 0x68 - 8005d9c: 2b00 cmp r3, #0 - 8005d9e: d1e3 bne.n 8005d68 + 8006792: 6ebb ldr r3, [r7, #104] @ 0x68 + 8006794: 2b00 cmp r3, #0 + 8006796: d1e3 bne.n 8006760 /* Configure Rx interrupt processing */ if ((huart->FifoMode == UART_FIFOMODE_ENABLE) && (Size >= huart->NbRxDataToProcess)) - 8005da0: 68fb ldr r3, [r7, #12] - 8005da2: 6e5b ldr r3, [r3, #100] @ 0x64 - 8005da4: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000 - 8005da8: d14f bne.n 8005e4a - 8005daa: 68fb ldr r3, [r7, #12] - 8005dac: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68 - 8005db0: 88fa ldrh r2, [r7, #6] - 8005db2: 429a cmp r2, r3 - 8005db4: d349 bcc.n 8005e4a + 8006798: 68fb ldr r3, [r7, #12] + 800679a: 6e5b ldr r3, [r3, #100] @ 0x64 + 800679c: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000 + 80067a0: d14f bne.n 8006842 + 80067a2: 68fb ldr r3, [r7, #12] + 80067a4: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68 + 80067a8: 88fa ldrh r2, [r7, #6] + 80067aa: 429a cmp r2, r3 + 80067ac: d349 bcc.n 8006842 { /* Set the Rx ISR function pointer according to the data word length */ if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE)) - 8005db6: 68fb ldr r3, [r7, #12] - 8005db8: 689b ldr r3, [r3, #8] - 8005dba: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 - 8005dbe: d107 bne.n 8005dd0 - 8005dc0: 68fb ldr r3, [r7, #12] - 8005dc2: 691b ldr r3, [r3, #16] - 8005dc4: 2b00 cmp r3, #0 - 8005dc6: d103 bne.n 8005dd0 + 80067ae: 68fb ldr r3, [r7, #12] + 80067b0: 689b ldr r3, [r3, #8] + 80067b2: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 + 80067b6: d107 bne.n 80067c8 + 80067b8: 68fb ldr r3, [r7, #12] + 80067ba: 691b ldr r3, [r3, #16] + 80067bc: 2b00 cmp r3, #0 + 80067be: d103 bne.n 80067c8 { huart->RxISR = UART_RxISR_16BIT_FIFOEN; - 8005dc8: 68fb ldr r3, [r7, #12] - 8005dca: 4a47 ldr r2, [pc, #284] @ (8005ee8 ) - 8005dcc: 675a str r2, [r3, #116] @ 0x74 - 8005dce: e002 b.n 8005dd6 + 80067c0: 68fb ldr r3, [r7, #12] + 80067c2: 4a47 ldr r2, [pc, #284] @ (80068e0 ) + 80067c4: 675a str r2, [r3, #116] @ 0x74 + 80067c6: e002 b.n 80067ce } else { huart->RxISR = UART_RxISR_8BIT_FIFOEN; - 8005dd0: 68fb ldr r3, [r7, #12] - 8005dd2: 4a46 ldr r2, [pc, #280] @ (8005eec ) - 8005dd4: 675a str r2, [r3, #116] @ 0x74 + 80067c8: 68fb ldr r3, [r7, #12] + 80067ca: 4a46 ldr r2, [pc, #280] @ (80068e4 ) + 80067cc: 675a str r2, [r3, #116] @ 0x74 } /* Enable the UART Parity Error interrupt and RX FIFO Threshold interrupt */ if (huart->Init.Parity != UART_PARITY_NONE) - 8005dd6: 68fb ldr r3, [r7, #12] - 8005dd8: 691b ldr r3, [r3, #16] - 8005dda: 2b00 cmp r3, #0 - 8005ddc: d01a beq.n 8005e14 + 80067ce: 68fb ldr r3, [r7, #12] + 80067d0: 691b ldr r3, [r3, #16] + 80067d2: 2b00 cmp r3, #0 + 80067d4: d01a beq.n 800680c { ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_PEIE); - 8005dde: 68fb ldr r3, [r7, #12] - 8005de0: 681b ldr r3, [r3, #0] - 8005de2: 653b str r3, [r7, #80] @ 0x50 + 80067d6: 68fb ldr r3, [r7, #12] + 80067d8: 681b ldr r3, [r3, #0] + 80067da: 653b str r3, [r7, #80] @ 0x50 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8005de4: 6d3b ldr r3, [r7, #80] @ 0x50 - 8005de6: e853 3f00 ldrex r3, [r3] - 8005dea: 64fb str r3, [r7, #76] @ 0x4c + 80067dc: 6d3b ldr r3, [r7, #80] @ 0x50 + 80067de: e853 3f00 ldrex r3, [r3] + 80067e2: 64fb str r3, [r7, #76] @ 0x4c return(result); - 8005dec: 6cfb ldr r3, [r7, #76] @ 0x4c - 8005dee: f443 7380 orr.w r3, r3, #256 @ 0x100 - 8005df2: f8c7 3080 str.w r3, [r7, #128] @ 0x80 - 8005df6: 68fb ldr r3, [r7, #12] - 8005df8: 681b ldr r3, [r3, #0] - 8005dfa: 461a mov r2, r3 - 8005dfc: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80 - 8005e00: 65fb str r3, [r7, #92] @ 0x5c - 8005e02: 65ba str r2, [r7, #88] @ 0x58 + 80067e4: 6cfb ldr r3, [r7, #76] @ 0x4c + 80067e6: f443 7380 orr.w r3, r3, #256 @ 0x100 + 80067ea: f8c7 3080 str.w r3, [r7, #128] @ 0x80 + 80067ee: 68fb ldr r3, [r7, #12] + 80067f0: 681b ldr r3, [r3, #0] + 80067f2: 461a mov r2, r3 + 80067f4: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80 + 80067f8: 65fb str r3, [r7, #92] @ 0x5c + 80067fa: 65ba str r2, [r7, #88] @ 0x58 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8005e04: 6db9 ldr r1, [r7, #88] @ 0x58 - 8005e06: 6dfa ldr r2, [r7, #92] @ 0x5c - 8005e08: e841 2300 strex r3, r2, [r1] - 8005e0c: 657b str r3, [r7, #84] @ 0x54 + 80067fc: 6db9 ldr r1, [r7, #88] @ 0x58 + 80067fe: 6dfa ldr r2, [r7, #92] @ 0x5c + 8006800: e841 2300 strex r3, r2, [r1] + 8006804: 657b str r3, [r7, #84] @ 0x54 return(result); - 8005e0e: 6d7b ldr r3, [r7, #84] @ 0x54 - 8005e10: 2b00 cmp r3, #0 - 8005e12: d1e4 bne.n 8005dde + 8006806: 6d7b ldr r3, [r7, #84] @ 0x54 + 8006808: 2b00 cmp r3, #0 + 800680a: d1e4 bne.n 80067d6 } ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_RXFTIE); - 8005e14: 68fb ldr r3, [r7, #12] - 8005e16: 681b ldr r3, [r3, #0] - 8005e18: 3308 adds r3, #8 - 8005e1a: 63fb str r3, [r7, #60] @ 0x3c + 800680c: 68fb ldr r3, [r7, #12] + 800680e: 681b ldr r3, [r3, #0] + 8006810: 3308 adds r3, #8 + 8006812: 63fb str r3, [r7, #60] @ 0x3c __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8005e1c: 6bfb ldr r3, [r7, #60] @ 0x3c - 8005e1e: e853 3f00 ldrex r3, [r3] - 8005e22: 63bb str r3, [r7, #56] @ 0x38 + 8006814: 6bfb ldr r3, [r7, #60] @ 0x3c + 8006816: e853 3f00 ldrex r3, [r3] + 800681a: 63bb str r3, [r7, #56] @ 0x38 return(result); - 8005e24: 6bbb ldr r3, [r7, #56] @ 0x38 - 8005e26: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 - 8005e2a: 67fb str r3, [r7, #124] @ 0x7c - 8005e2c: 68fb ldr r3, [r7, #12] - 8005e2e: 681b ldr r3, [r3, #0] - 8005e30: 3308 adds r3, #8 - 8005e32: 6ffa ldr r2, [r7, #124] @ 0x7c - 8005e34: 64ba str r2, [r7, #72] @ 0x48 - 8005e36: 647b str r3, [r7, #68] @ 0x44 + 800681c: 6bbb ldr r3, [r7, #56] @ 0x38 + 800681e: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 + 8006822: 67fb str r3, [r7, #124] @ 0x7c + 8006824: 68fb ldr r3, [r7, #12] + 8006826: 681b ldr r3, [r3, #0] + 8006828: 3308 adds r3, #8 + 800682a: 6ffa ldr r2, [r7, #124] @ 0x7c + 800682c: 64ba str r2, [r7, #72] @ 0x48 + 800682e: 647b str r3, [r7, #68] @ 0x44 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8005e38: 6c79 ldr r1, [r7, #68] @ 0x44 - 8005e3a: 6cba ldr r2, [r7, #72] @ 0x48 - 8005e3c: e841 2300 strex r3, r2, [r1] - 8005e40: 643b str r3, [r7, #64] @ 0x40 + 8006830: 6c79 ldr r1, [r7, #68] @ 0x44 + 8006832: 6cba ldr r2, [r7, #72] @ 0x48 + 8006834: e841 2300 strex r3, r2, [r1] + 8006838: 643b str r3, [r7, #64] @ 0x40 return(result); - 8005e42: 6c3b ldr r3, [r7, #64] @ 0x40 - 8005e44: 2b00 cmp r3, #0 - 8005e46: d1e5 bne.n 8005e14 - 8005e48: e046 b.n 8005ed8 + 800683a: 6c3b ldr r3, [r7, #64] @ 0x40 + 800683c: 2b00 cmp r3, #0 + 800683e: d1e5 bne.n 800680c + 8006840: e046 b.n 80068d0 } else { /* Set the Rx ISR function pointer according to the data word length */ if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE)) - 8005e4a: 68fb ldr r3, [r7, #12] - 8005e4c: 689b ldr r3, [r3, #8] - 8005e4e: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 - 8005e52: d107 bne.n 8005e64 - 8005e54: 68fb ldr r3, [r7, #12] - 8005e56: 691b ldr r3, [r3, #16] - 8005e58: 2b00 cmp r3, #0 - 8005e5a: d103 bne.n 8005e64 + 8006842: 68fb ldr r3, [r7, #12] + 8006844: 689b ldr r3, [r3, #8] + 8006846: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 + 800684a: d107 bne.n 800685c + 800684c: 68fb ldr r3, [r7, #12] + 800684e: 691b ldr r3, [r3, #16] + 8006850: 2b00 cmp r3, #0 + 8006852: d103 bne.n 800685c { huart->RxISR = UART_RxISR_16BIT; - 8005e5c: 68fb ldr r3, [r7, #12] - 8005e5e: 4a24 ldr r2, [pc, #144] @ (8005ef0 ) - 8005e60: 675a str r2, [r3, #116] @ 0x74 - 8005e62: e002 b.n 8005e6a + 8006854: 68fb ldr r3, [r7, #12] + 8006856: 4a24 ldr r2, [pc, #144] @ (80068e8 ) + 8006858: 675a str r2, [r3, #116] @ 0x74 + 800685a: e002 b.n 8006862 } else { huart->RxISR = UART_RxISR_8BIT; - 8005e64: 68fb ldr r3, [r7, #12] - 8005e66: 4a23 ldr r2, [pc, #140] @ (8005ef4 ) - 8005e68: 675a str r2, [r3, #116] @ 0x74 + 800685c: 68fb ldr r3, [r7, #12] + 800685e: 4a23 ldr r2, [pc, #140] @ (80068ec ) + 8006860: 675a str r2, [r3, #116] @ 0x74 } /* Enable the UART Parity Error interrupt and Data Register Not Empty interrupt */ if (huart->Init.Parity != UART_PARITY_NONE) - 8005e6a: 68fb ldr r3, [r7, #12] - 8005e6c: 691b ldr r3, [r3, #16] - 8005e6e: 2b00 cmp r3, #0 - 8005e70: d019 beq.n 8005ea6 + 8006862: 68fb ldr r3, [r7, #12] + 8006864: 691b ldr r3, [r3, #16] + 8006866: 2b00 cmp r3, #0 + 8006868: d019 beq.n 800689e { ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_PEIE | USART_CR1_RXNEIE_RXFNEIE); - 8005e72: 68fb ldr r3, [r7, #12] - 8005e74: 681b ldr r3, [r3, #0] - 8005e76: 62bb str r3, [r7, #40] @ 0x28 + 800686a: 68fb ldr r3, [r7, #12] + 800686c: 681b ldr r3, [r3, #0] + 800686e: 62bb str r3, [r7, #40] @ 0x28 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8005e78: 6abb ldr r3, [r7, #40] @ 0x28 - 8005e7a: e853 3f00 ldrex r3, [r3] - 8005e7e: 627b str r3, [r7, #36] @ 0x24 + 8006870: 6abb ldr r3, [r7, #40] @ 0x28 + 8006872: e853 3f00 ldrex r3, [r3] + 8006876: 627b str r3, [r7, #36] @ 0x24 return(result); - 8005e80: 6a7b ldr r3, [r7, #36] @ 0x24 - 8005e82: f443 7390 orr.w r3, r3, #288 @ 0x120 - 8005e86: 677b str r3, [r7, #116] @ 0x74 - 8005e88: 68fb ldr r3, [r7, #12] - 8005e8a: 681b ldr r3, [r3, #0] - 8005e8c: 461a mov r2, r3 - 8005e8e: 6f7b ldr r3, [r7, #116] @ 0x74 - 8005e90: 637b str r3, [r7, #52] @ 0x34 - 8005e92: 633a str r2, [r7, #48] @ 0x30 + 8006878: 6a7b ldr r3, [r7, #36] @ 0x24 + 800687a: f443 7390 orr.w r3, r3, #288 @ 0x120 + 800687e: 677b str r3, [r7, #116] @ 0x74 + 8006880: 68fb ldr r3, [r7, #12] + 8006882: 681b ldr r3, [r3, #0] + 8006884: 461a mov r2, r3 + 8006886: 6f7b ldr r3, [r7, #116] @ 0x74 + 8006888: 637b str r3, [r7, #52] @ 0x34 + 800688a: 633a str r2, [r7, #48] @ 0x30 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8005e94: 6b39 ldr r1, [r7, #48] @ 0x30 - 8005e96: 6b7a ldr r2, [r7, #52] @ 0x34 - 8005e98: e841 2300 strex r3, r2, [r1] - 8005e9c: 62fb str r3, [r7, #44] @ 0x2c + 800688c: 6b39 ldr r1, [r7, #48] @ 0x30 + 800688e: 6b7a ldr r2, [r7, #52] @ 0x34 + 8006890: e841 2300 strex r3, r2, [r1] + 8006894: 62fb str r3, [r7, #44] @ 0x2c return(result); - 8005e9e: 6afb ldr r3, [r7, #44] @ 0x2c - 8005ea0: 2b00 cmp r3, #0 - 8005ea2: d1e6 bne.n 8005e72 - 8005ea4: e018 b.n 8005ed8 + 8006896: 6afb ldr r3, [r7, #44] @ 0x2c + 8006898: 2b00 cmp r3, #0 + 800689a: d1e6 bne.n 800686a + 800689c: e018 b.n 80068d0 } else { ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_RXNEIE_RXFNEIE); - 8005ea6: 68fb ldr r3, [r7, #12] - 8005ea8: 681b ldr r3, [r3, #0] - 8005eaa: 617b str r3, [r7, #20] + 800689e: 68fb ldr r3, [r7, #12] + 80068a0: 681b ldr r3, [r3, #0] + 80068a2: 617b str r3, [r7, #20] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8005eac: 697b ldr r3, [r7, #20] - 8005eae: e853 3f00 ldrex r3, [r3] - 8005eb2: 613b str r3, [r7, #16] + 80068a4: 697b ldr r3, [r7, #20] + 80068a6: e853 3f00 ldrex r3, [r3] + 80068aa: 613b str r3, [r7, #16] return(result); - 8005eb4: 693b ldr r3, [r7, #16] - 8005eb6: f043 0320 orr.w r3, r3, #32 - 8005eba: 67bb str r3, [r7, #120] @ 0x78 - 8005ebc: 68fb ldr r3, [r7, #12] - 8005ebe: 681b ldr r3, [r3, #0] - 8005ec0: 461a mov r2, r3 - 8005ec2: 6fbb ldr r3, [r7, #120] @ 0x78 - 8005ec4: 623b str r3, [r7, #32] - 8005ec6: 61fa str r2, [r7, #28] + 80068ac: 693b ldr r3, [r7, #16] + 80068ae: f043 0320 orr.w r3, r3, #32 + 80068b2: 67bb str r3, [r7, #120] @ 0x78 + 80068b4: 68fb ldr r3, [r7, #12] + 80068b6: 681b ldr r3, [r3, #0] + 80068b8: 461a mov r2, r3 + 80068ba: 6fbb ldr r3, [r7, #120] @ 0x78 + 80068bc: 623b str r3, [r7, #32] + 80068be: 61fa str r2, [r7, #28] __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8005ec8: 69f9 ldr r1, [r7, #28] - 8005eca: 6a3a ldr r2, [r7, #32] - 8005ecc: e841 2300 strex r3, r2, [r1] - 8005ed0: 61bb str r3, [r7, #24] + 80068c0: 69f9 ldr r1, [r7, #28] + 80068c2: 6a3a ldr r2, [r7, #32] + 80068c4: e841 2300 strex r3, r2, [r1] + 80068c8: 61bb str r3, [r7, #24] return(result); - 8005ed2: 69bb ldr r3, [r7, #24] - 8005ed4: 2b00 cmp r3, #0 - 8005ed6: d1e6 bne.n 8005ea6 + 80068ca: 69bb ldr r3, [r7, #24] + 80068cc: 2b00 cmp r3, #0 + 80068ce: d1e6 bne.n 800689e } } return HAL_OK; - 8005ed8: 2300 movs r3, #0 + 80068d0: 2300 movs r3, #0 } - 8005eda: 4618 mov r0, r3 - 8005edc: 378c adds r7, #140 @ 0x8c - 8005ede: 46bd mov sp, r7 - 8005ee0: f85d 7b04 ldr.w r7, [sp], #4 - 8005ee4: 4770 bx lr - 8005ee6: bf00 nop - 8005ee8: 08006715 .word 0x08006715 - 8005eec: 080063b1 .word 0x080063b1 - 8005ef0: 080061f9 .word 0x080061f9 - 8005ef4: 08006041 .word 0x08006041 + 80068d2: 4618 mov r0, r3 + 80068d4: 378c adds r7, #140 @ 0x8c + 80068d6: 46bd mov sp, r7 + 80068d8: f85d 7b04 ldr.w r7, [sp], #4 + 80068dc: 4770 bx lr + 80068de: bf00 nop + 80068e0: 0800710d .word 0x0800710d + 80068e4: 08006da9 .word 0x08006da9 + 80068e8: 08006bf1 .word 0x08006bf1 + 80068ec: 08006a39 .word 0x08006a39 -08005ef8 : +080068f0 : * @brief End ongoing Rx transfer on UART peripheral (following error detection or Reception completion). * @param huart UART handle. * @retval None */ static void UART_EndRxTransfer(UART_HandleTypeDef *huart) { - 8005ef8: b480 push {r7} - 8005efa: b095 sub sp, #84 @ 0x54 - 8005efc: af00 add r7, sp, #0 - 8005efe: 6078 str r0, [r7, #4] + 80068f0: b480 push {r7} + 80068f2: b095 sub sp, #84 @ 0x54 + 80068f4: af00 add r7, sp, #0 + 80068f6: 6078 str r0, [r7, #4] /* Disable RXNE, PE and ERR (Frame error, noise error, overrun error) interrupts */ ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE)); - 8005f00: 687b ldr r3, [r7, #4] - 8005f02: 681b ldr r3, [r3, #0] - 8005f04: 637b str r3, [r7, #52] @ 0x34 + 80068f8: 687b ldr r3, [r7, #4] + 80068fa: 681b ldr r3, [r3, #0] + 80068fc: 637b str r3, [r7, #52] @ 0x34 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8005f06: 6b7b ldr r3, [r7, #52] @ 0x34 - 8005f08: e853 3f00 ldrex r3, [r3] - 8005f0c: 633b str r3, [r7, #48] @ 0x30 + 80068fe: 6b7b ldr r3, [r7, #52] @ 0x34 + 8006900: e853 3f00 ldrex r3, [r3] + 8006904: 633b str r3, [r7, #48] @ 0x30 return(result); - 8005f0e: 6b3b ldr r3, [r7, #48] @ 0x30 - 8005f10: f423 7390 bic.w r3, r3, #288 @ 0x120 - 8005f14: 64fb str r3, [r7, #76] @ 0x4c - 8005f16: 687b ldr r3, [r7, #4] - 8005f18: 681b ldr r3, [r3, #0] - 8005f1a: 461a mov r2, r3 - 8005f1c: 6cfb ldr r3, [r7, #76] @ 0x4c - 8005f1e: 643b str r3, [r7, #64] @ 0x40 - 8005f20: 63fa str r2, [r7, #60] @ 0x3c + 8006906: 6b3b ldr r3, [r7, #48] @ 0x30 + 8006908: f423 7390 bic.w r3, r3, #288 @ 0x120 + 800690c: 64fb str r3, [r7, #76] @ 0x4c + 800690e: 687b ldr r3, [r7, #4] + 8006910: 681b ldr r3, [r3, #0] + 8006912: 461a mov r2, r3 + 8006914: 6cfb ldr r3, [r7, #76] @ 0x4c + 8006916: 643b str r3, [r7, #64] @ 0x40 + 8006918: 63fa str r2, [r7, #60] @ 0x3c __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8005f22: 6bf9 ldr r1, [r7, #60] @ 0x3c - 8005f24: 6c3a ldr r2, [r7, #64] @ 0x40 - 8005f26: e841 2300 strex r3, r2, [r1] - 8005f2a: 63bb str r3, [r7, #56] @ 0x38 + 800691a: 6bf9 ldr r1, [r7, #60] @ 0x3c + 800691c: 6c3a ldr r2, [r7, #64] @ 0x40 + 800691e: e841 2300 strex r3, r2, [r1] + 8006922: 63bb str r3, [r7, #56] @ 0x38 return(result); - 8005f2c: 6bbb ldr r3, [r7, #56] @ 0x38 - 8005f2e: 2b00 cmp r3, #0 - 8005f30: d1e6 bne.n 8005f00 + 8006924: 6bbb ldr r3, [r7, #56] @ 0x38 + 8006926: 2b00 cmp r3, #0 + 8006928: d1e6 bne.n 80068f8 ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE)); - 8005f32: 687b ldr r3, [r7, #4] - 8005f34: 681b ldr r3, [r3, #0] - 8005f36: 3308 adds r3, #8 - 8005f38: 623b str r3, [r7, #32] + 800692a: 687b ldr r3, [r7, #4] + 800692c: 681b ldr r3, [r3, #0] + 800692e: 3308 adds r3, #8 + 8006930: 623b str r3, [r7, #32] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8005f3a: 6a3b ldr r3, [r7, #32] - 8005f3c: e853 3f00 ldrex r3, [r3] - 8005f40: 61fb str r3, [r7, #28] + 8006932: 6a3b ldr r3, [r7, #32] + 8006934: e853 3f00 ldrex r3, [r3] + 8006938: 61fb str r3, [r7, #28] return(result); - 8005f42: 69fb ldr r3, [r7, #28] - 8005f44: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000 - 8005f48: f023 0301 bic.w r3, r3, #1 - 8005f4c: 64bb str r3, [r7, #72] @ 0x48 - 8005f4e: 687b ldr r3, [r7, #4] - 8005f50: 681b ldr r3, [r3, #0] - 8005f52: 3308 adds r3, #8 - 8005f54: 6cba ldr r2, [r7, #72] @ 0x48 - 8005f56: 62fa str r2, [r7, #44] @ 0x2c - 8005f58: 62bb str r3, [r7, #40] @ 0x28 + 800693a: 69fb ldr r3, [r7, #28] + 800693c: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000 + 8006940: f023 0301 bic.w r3, r3, #1 + 8006944: 64bb str r3, [r7, #72] @ 0x48 + 8006946: 687b ldr r3, [r7, #4] + 8006948: 681b ldr r3, [r3, #0] + 800694a: 3308 adds r3, #8 + 800694c: 6cba ldr r2, [r7, #72] @ 0x48 + 800694e: 62fa str r2, [r7, #44] @ 0x2c + 8006950: 62bb str r3, [r7, #40] @ 0x28 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8005f5a: 6ab9 ldr r1, [r7, #40] @ 0x28 - 8005f5c: 6afa ldr r2, [r7, #44] @ 0x2c - 8005f5e: e841 2300 strex r3, r2, [r1] - 8005f62: 627b str r3, [r7, #36] @ 0x24 + 8006952: 6ab9 ldr r1, [r7, #40] @ 0x28 + 8006954: 6afa ldr r2, [r7, #44] @ 0x2c + 8006956: e841 2300 strex r3, r2, [r1] + 800695a: 627b str r3, [r7, #36] @ 0x24 return(result); - 8005f64: 6a7b ldr r3, [r7, #36] @ 0x24 - 8005f66: 2b00 cmp r3, #0 - 8005f68: d1e3 bne.n 8005f32 + 800695c: 6a7b ldr r3, [r7, #36] @ 0x24 + 800695e: 2b00 cmp r3, #0 + 8006960: d1e3 bne.n 800692a /* In case of reception waiting for IDLE event, disable also the IDLE IE interrupt source */ if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) - 8005f6a: 687b ldr r3, [r7, #4] - 8005f6c: 6edb ldr r3, [r3, #108] @ 0x6c - 8005f6e: 2b01 cmp r3, #1 - 8005f70: d118 bne.n 8005fa4 + 8006962: 687b ldr r3, [r7, #4] + 8006964: 6edb ldr r3, [r3, #108] @ 0x6c + 8006966: 2b01 cmp r3, #1 + 8006968: d118 bne.n 800699c { ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); - 8005f72: 687b ldr r3, [r7, #4] - 8005f74: 681b ldr r3, [r3, #0] - 8005f76: 60fb str r3, [r7, #12] + 800696a: 687b ldr r3, [r7, #4] + 800696c: 681b ldr r3, [r3, #0] + 800696e: 60fb str r3, [r7, #12] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8005f78: 68fb ldr r3, [r7, #12] - 8005f7a: e853 3f00 ldrex r3, [r3] - 8005f7e: 60bb str r3, [r7, #8] + 8006970: 68fb ldr r3, [r7, #12] + 8006972: e853 3f00 ldrex r3, [r3] + 8006976: 60bb str r3, [r7, #8] return(result); - 8005f80: 68bb ldr r3, [r7, #8] - 8005f82: f023 0310 bic.w r3, r3, #16 - 8005f86: 647b str r3, [r7, #68] @ 0x44 - 8005f88: 687b ldr r3, [r7, #4] - 8005f8a: 681b ldr r3, [r3, #0] - 8005f8c: 461a mov r2, r3 - 8005f8e: 6c7b ldr r3, [r7, #68] @ 0x44 - 8005f90: 61bb str r3, [r7, #24] - 8005f92: 617a str r2, [r7, #20] + 8006978: 68bb ldr r3, [r7, #8] + 800697a: f023 0310 bic.w r3, r3, #16 + 800697e: 647b str r3, [r7, #68] @ 0x44 + 8006980: 687b ldr r3, [r7, #4] + 8006982: 681b ldr r3, [r3, #0] + 8006984: 461a mov r2, r3 + 8006986: 6c7b ldr r3, [r7, #68] @ 0x44 + 8006988: 61bb str r3, [r7, #24] + 800698a: 617a str r2, [r7, #20] __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8005f94: 6979 ldr r1, [r7, #20] - 8005f96: 69ba ldr r2, [r7, #24] - 8005f98: e841 2300 strex r3, r2, [r1] - 8005f9c: 613b str r3, [r7, #16] + 800698c: 6979 ldr r1, [r7, #20] + 800698e: 69ba ldr r2, [r7, #24] + 8006990: e841 2300 strex r3, r2, [r1] + 8006994: 613b str r3, [r7, #16] return(result); - 8005f9e: 693b ldr r3, [r7, #16] - 8005fa0: 2b00 cmp r3, #0 - 8005fa2: d1e6 bne.n 8005f72 + 8006996: 693b ldr r3, [r7, #16] + 8006998: 2b00 cmp r3, #0 + 800699a: d1e6 bne.n 800696a } /* At end of Rx process, restore huart->RxState to Ready */ huart->RxState = HAL_UART_STATE_READY; - 8005fa4: 687b ldr r3, [r7, #4] - 8005fa6: 2220 movs r2, #32 - 8005fa8: f8c3 208c str.w r2, [r3, #140] @ 0x8c + 800699c: 687b ldr r3, [r7, #4] + 800699e: 2220 movs r2, #32 + 80069a0: f8c3 208c str.w r2, [r3, #140] @ 0x8c huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; - 8005fac: 687b ldr r3, [r7, #4] - 8005fae: 2200 movs r2, #0 - 8005fb0: 66da str r2, [r3, #108] @ 0x6c + 80069a4: 687b ldr r3, [r7, #4] + 80069a6: 2200 movs r2, #0 + 80069a8: 66da str r2, [r3, #108] @ 0x6c /* Reset RxIsr function pointer */ huart->RxISR = NULL; - 8005fb2: 687b ldr r3, [r7, #4] - 8005fb4: 2200 movs r2, #0 - 8005fb6: 675a str r2, [r3, #116] @ 0x74 + 80069aa: 687b ldr r3, [r7, #4] + 80069ac: 2200 movs r2, #0 + 80069ae: 675a str r2, [r3, #116] @ 0x74 } - 8005fb8: bf00 nop - 8005fba: 3754 adds r7, #84 @ 0x54 - 8005fbc: 46bd mov sp, r7 - 8005fbe: f85d 7b04 ldr.w r7, [sp], #4 - 8005fc2: 4770 bx lr + 80069b0: bf00 nop + 80069b2: 3754 adds r7, #84 @ 0x54 + 80069b4: 46bd mov sp, r7 + 80069b6: f85d 7b04 ldr.w r7, [sp], #4 + 80069ba: 4770 bx lr -08005fc4 : +080069bc : * (To be called at end of DMA Abort procedure following error occurrence). * @param hdma DMA handle. * @retval None */ static void UART_DMAAbortOnError(DMA_HandleTypeDef *hdma) { - 8005fc4: b580 push {r7, lr} - 8005fc6: b084 sub sp, #16 - 8005fc8: af00 add r7, sp, #0 - 8005fca: 6078 str r0, [r7, #4] + 80069bc: b580 push {r7, lr} + 80069be: b084 sub sp, #16 + 80069c0: af00 add r7, sp, #0 + 80069c2: 6078 str r0, [r7, #4] UART_HandleTypeDef *huart = (UART_HandleTypeDef *)(hdma->Parent); - 8005fcc: 687b ldr r3, [r7, #4] - 8005fce: 6a9b ldr r3, [r3, #40] @ 0x28 - 8005fd0: 60fb str r3, [r7, #12] + 80069c4: 687b ldr r3, [r7, #4] + 80069c6: 6a9b ldr r3, [r3, #40] @ 0x28 + 80069c8: 60fb str r3, [r7, #12] huart->RxXferCount = 0U; - 8005fd2: 68fb ldr r3, [r7, #12] - 8005fd4: 2200 movs r2, #0 - 8005fd6: f8a3 205e strh.w r2, [r3, #94] @ 0x5e + 80069ca: 68fb ldr r3, [r7, #12] + 80069cc: 2200 movs r2, #0 + 80069ce: f8a3 205e strh.w r2, [r3, #94] @ 0x5e #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered error callback*/ huart->ErrorCallback(huart); #else /*Call legacy weak error callback*/ HAL_UART_ErrorCallback(huart); - 8005fda: 68f8 ldr r0, [r7, #12] - 8005fdc: f7ff f9ce bl 800537c + 80069d2: 68f8 ldr r0, [r7, #12] + 80069d4: f7ff f9ce bl 8005d74 #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } - 8005fe0: bf00 nop - 8005fe2: 3710 adds r7, #16 - 8005fe4: 46bd mov sp, r7 - 8005fe6: bd80 pop {r7, pc} + 80069d8: bf00 nop + 80069da: 3710 adds r7, #16 + 80069dc: 46bd mov sp, r7 + 80069de: bd80 pop {r7, pc} -08005fe8 : +080069e0 : * @param huart pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval None */ static void UART_EndTransmit_IT(UART_HandleTypeDef *huart) { - 8005fe8: b580 push {r7, lr} - 8005fea: b088 sub sp, #32 - 8005fec: af00 add r7, sp, #0 - 8005fee: 6078 str r0, [r7, #4] + 80069e0: b580 push {r7, lr} + 80069e2: b088 sub sp, #32 + 80069e4: af00 add r7, sp, #0 + 80069e6: 6078 str r0, [r7, #4] /* Disable the UART Transmit Complete Interrupt */ ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_TCIE); - 8005ff0: 687b ldr r3, [r7, #4] - 8005ff2: 681b ldr r3, [r3, #0] - 8005ff4: 60fb str r3, [r7, #12] + 80069e8: 687b ldr r3, [r7, #4] + 80069ea: 681b ldr r3, [r3, #0] + 80069ec: 60fb str r3, [r7, #12] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8005ff6: 68fb ldr r3, [r7, #12] - 8005ff8: e853 3f00 ldrex r3, [r3] - 8005ffc: 60bb str r3, [r7, #8] + 80069ee: 68fb ldr r3, [r7, #12] + 80069f0: e853 3f00 ldrex r3, [r3] + 80069f4: 60bb str r3, [r7, #8] return(result); - 8005ffe: 68bb ldr r3, [r7, #8] - 8006000: f023 0340 bic.w r3, r3, #64 @ 0x40 - 8006004: 61fb str r3, [r7, #28] - 8006006: 687b ldr r3, [r7, #4] - 8006008: 681b ldr r3, [r3, #0] - 800600a: 461a mov r2, r3 - 800600c: 69fb ldr r3, [r7, #28] - 800600e: 61bb str r3, [r7, #24] - 8006010: 617a str r2, [r7, #20] + 80069f6: 68bb ldr r3, [r7, #8] + 80069f8: f023 0340 bic.w r3, r3, #64 @ 0x40 + 80069fc: 61fb str r3, [r7, #28] + 80069fe: 687b ldr r3, [r7, #4] + 8006a00: 681b ldr r3, [r3, #0] + 8006a02: 461a mov r2, r3 + 8006a04: 69fb ldr r3, [r7, #28] + 8006a06: 61bb str r3, [r7, #24] + 8006a08: 617a str r2, [r7, #20] __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8006012: 6979 ldr r1, [r7, #20] - 8006014: 69ba ldr r2, [r7, #24] - 8006016: e841 2300 strex r3, r2, [r1] - 800601a: 613b str r3, [r7, #16] + 8006a0a: 6979 ldr r1, [r7, #20] + 8006a0c: 69ba ldr r2, [r7, #24] + 8006a0e: e841 2300 strex r3, r2, [r1] + 8006a12: 613b str r3, [r7, #16] return(result); - 800601c: 693b ldr r3, [r7, #16] - 800601e: 2b00 cmp r3, #0 - 8006020: d1e6 bne.n 8005ff0 + 8006a14: 693b ldr r3, [r7, #16] + 8006a16: 2b00 cmp r3, #0 + 8006a18: d1e6 bne.n 80069e8 /* Tx process is ended, restore huart->gState to Ready */ huart->gState = HAL_UART_STATE_READY; - 8006022: 687b ldr r3, [r7, #4] - 8006024: 2220 movs r2, #32 - 8006026: f8c3 2088 str.w r2, [r3, #136] @ 0x88 + 8006a1a: 687b ldr r3, [r7, #4] + 8006a1c: 2220 movs r2, #32 + 8006a1e: f8c3 2088 str.w r2, [r3, #136] @ 0x88 /* Cleat TxISR function pointer */ huart->TxISR = NULL; - 800602a: 687b ldr r3, [r7, #4] - 800602c: 2200 movs r2, #0 - 800602e: 679a str r2, [r3, #120] @ 0x78 + 8006a22: 687b ldr r3, [r7, #4] + 8006a24: 2200 movs r2, #0 + 8006a26: 679a str r2, [r3, #120] @ 0x78 #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered Tx complete callback*/ huart->TxCpltCallback(huart); #else /*Call legacy weak Tx complete callback*/ HAL_UART_TxCpltCallback(huart); - 8006030: 6878 ldr r0, [r7, #4] - 8006032: f7fa fdc1 bl 8000bb8 + 8006a28: 6878 ldr r0, [r7, #4] + 8006a2a: f7fa fd27 bl 800147c #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } - 8006036: bf00 nop - 8006038: 3720 adds r7, #32 - 800603a: 46bd mov sp, r7 - 800603c: bd80 pop {r7, pc} + 8006a2e: bf00 nop + 8006a30: 3720 adds r7, #32 + 8006a32: 46bd mov sp, r7 + 8006a34: bd80 pop {r7, pc} ... -08006040 : +08006a38 : * @brief RX interrupt handler for 7 or 8 bits data word length . * @param huart UART handle. * @retval None */ static void UART_RxISR_8BIT(UART_HandleTypeDef *huart) { - 8006040: b580 push {r7, lr} - 8006042: b09c sub sp, #112 @ 0x70 - 8006044: af00 add r7, sp, #0 - 8006046: 6078 str r0, [r7, #4] + 8006a38: b580 push {r7, lr} + 8006a3a: b09c sub sp, #112 @ 0x70 + 8006a3c: af00 add r7, sp, #0 + 8006a3e: 6078 str r0, [r7, #4] uint16_t uhMask = huart->Mask; - 8006048: 687b ldr r3, [r7, #4] - 800604a: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60 - 800604e: f8a7 306e strh.w r3, [r7, #110] @ 0x6e + 8006a40: 687b ldr r3, [r7, #4] + 8006a42: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60 + 8006a46: f8a7 306e strh.w r3, [r7, #110] @ 0x6e uint16_t uhdata; /* Check that a Rx process is ongoing */ if (huart->RxState == HAL_UART_STATE_BUSY_RX) - 8006052: 687b ldr r3, [r7, #4] - 8006054: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c - 8006058: 2b22 cmp r3, #34 @ 0x22 - 800605a: f040 80be bne.w 80061da + 8006a4a: 687b ldr r3, [r7, #4] + 8006a4c: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c + 8006a50: 2b22 cmp r3, #34 @ 0x22 + 8006a52: f040 80be bne.w 8006bd2 { uhdata = (uint16_t) READ_REG(huart->Instance->RDR); - 800605e: 687b ldr r3, [r7, #4] - 8006060: 681b ldr r3, [r3, #0] - 8006062: 6a5b ldr r3, [r3, #36] @ 0x24 - 8006064: f8a7 306c strh.w r3, [r7, #108] @ 0x6c + 8006a56: 687b ldr r3, [r7, #4] + 8006a58: 681b ldr r3, [r3, #0] + 8006a5a: 6a5b ldr r3, [r3, #36] @ 0x24 + 8006a5c: f8a7 306c strh.w r3, [r7, #108] @ 0x6c *huart->pRxBuffPtr = (uint8_t)(uhdata & (uint8_t)uhMask); - 8006068: f8b7 306c ldrh.w r3, [r7, #108] @ 0x6c - 800606c: b2d9 uxtb r1, r3 - 800606e: f8b7 306e ldrh.w r3, [r7, #110] @ 0x6e - 8006072: b2da uxtb r2, r3 - 8006074: 687b ldr r3, [r7, #4] - 8006076: 6d9b ldr r3, [r3, #88] @ 0x58 - 8006078: 400a ands r2, r1 - 800607a: b2d2 uxtb r2, r2 - 800607c: 701a strb r2, [r3, #0] + 8006a60: f8b7 306c ldrh.w r3, [r7, #108] @ 0x6c + 8006a64: b2d9 uxtb r1, r3 + 8006a66: f8b7 306e ldrh.w r3, [r7, #110] @ 0x6e + 8006a6a: b2da uxtb r2, r3 + 8006a6c: 687b ldr r3, [r7, #4] + 8006a6e: 6d9b ldr r3, [r3, #88] @ 0x58 + 8006a70: 400a ands r2, r1 + 8006a72: b2d2 uxtb r2, r2 + 8006a74: 701a strb r2, [r3, #0] huart->pRxBuffPtr++; - 800607e: 687b ldr r3, [r7, #4] - 8006080: 6d9b ldr r3, [r3, #88] @ 0x58 - 8006082: 1c5a adds r2, r3, #1 - 8006084: 687b ldr r3, [r7, #4] - 8006086: 659a str r2, [r3, #88] @ 0x58 + 8006a76: 687b ldr r3, [r7, #4] + 8006a78: 6d9b ldr r3, [r3, #88] @ 0x58 + 8006a7a: 1c5a adds r2, r3, #1 + 8006a7c: 687b ldr r3, [r7, #4] + 8006a7e: 659a str r2, [r3, #88] @ 0x58 huart->RxXferCount--; - 8006088: 687b ldr r3, [r7, #4] - 800608a: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e - 800608e: b29b uxth r3, r3 - 8006090: 3b01 subs r3, #1 - 8006092: b29a uxth r2, r3 - 8006094: 687b ldr r3, [r7, #4] - 8006096: f8a3 205e strh.w r2, [r3, #94] @ 0x5e + 8006a80: 687b ldr r3, [r7, #4] + 8006a82: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e + 8006a86: b29b uxth r3, r3 + 8006a88: 3b01 subs r3, #1 + 8006a8a: b29a uxth r2, r3 + 8006a8c: 687b ldr r3, [r7, #4] + 8006a8e: f8a3 205e strh.w r2, [r3, #94] @ 0x5e if (huart->RxXferCount == 0U) - 800609a: 687b ldr r3, [r7, #4] - 800609c: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e - 80060a0: b29b uxth r3, r3 - 80060a2: 2b00 cmp r3, #0 - 80060a4: f040 80a1 bne.w 80061ea + 8006a92: 687b ldr r3, [r7, #4] + 8006a94: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e + 8006a98: b29b uxth r3, r3 + 8006a9a: 2b00 cmp r3, #0 + 8006a9c: f040 80a1 bne.w 8006be2 { /* Disable the UART Parity Error Interrupt and RXNE interrupts */ ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE)); - 80060a8: 687b ldr r3, [r7, #4] - 80060aa: 681b ldr r3, [r3, #0] - 80060ac: 64fb str r3, [r7, #76] @ 0x4c + 8006aa0: 687b ldr r3, [r7, #4] + 8006aa2: 681b ldr r3, [r3, #0] + 8006aa4: 64fb str r3, [r7, #76] @ 0x4c __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 80060ae: 6cfb ldr r3, [r7, #76] @ 0x4c - 80060b0: e853 3f00 ldrex r3, [r3] - 80060b4: 64bb str r3, [r7, #72] @ 0x48 + 8006aa6: 6cfb ldr r3, [r7, #76] @ 0x4c + 8006aa8: e853 3f00 ldrex r3, [r3] + 8006aac: 64bb str r3, [r7, #72] @ 0x48 return(result); - 80060b6: 6cbb ldr r3, [r7, #72] @ 0x48 - 80060b8: f423 7390 bic.w r3, r3, #288 @ 0x120 - 80060bc: 66bb str r3, [r7, #104] @ 0x68 - 80060be: 687b ldr r3, [r7, #4] - 80060c0: 681b ldr r3, [r3, #0] - 80060c2: 461a mov r2, r3 - 80060c4: 6ebb ldr r3, [r7, #104] @ 0x68 - 80060c6: 65bb str r3, [r7, #88] @ 0x58 - 80060c8: 657a str r2, [r7, #84] @ 0x54 + 8006aae: 6cbb ldr r3, [r7, #72] @ 0x48 + 8006ab0: f423 7390 bic.w r3, r3, #288 @ 0x120 + 8006ab4: 66bb str r3, [r7, #104] @ 0x68 + 8006ab6: 687b ldr r3, [r7, #4] + 8006ab8: 681b ldr r3, [r3, #0] + 8006aba: 461a mov r2, r3 + 8006abc: 6ebb ldr r3, [r7, #104] @ 0x68 + 8006abe: 65bb str r3, [r7, #88] @ 0x58 + 8006ac0: 657a str r2, [r7, #84] @ 0x54 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 80060ca: 6d79 ldr r1, [r7, #84] @ 0x54 - 80060cc: 6dba ldr r2, [r7, #88] @ 0x58 - 80060ce: e841 2300 strex r3, r2, [r1] - 80060d2: 653b str r3, [r7, #80] @ 0x50 + 8006ac2: 6d79 ldr r1, [r7, #84] @ 0x54 + 8006ac4: 6dba ldr r2, [r7, #88] @ 0x58 + 8006ac6: e841 2300 strex r3, r2, [r1] + 8006aca: 653b str r3, [r7, #80] @ 0x50 return(result); - 80060d4: 6d3b ldr r3, [r7, #80] @ 0x50 - 80060d6: 2b00 cmp r3, #0 - 80060d8: d1e6 bne.n 80060a8 + 8006acc: 6d3b ldr r3, [r7, #80] @ 0x50 + 8006ace: 2b00 cmp r3, #0 + 8006ad0: d1e6 bne.n 8006aa0 /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) */ ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); - 80060da: 687b ldr r3, [r7, #4] - 80060dc: 681b ldr r3, [r3, #0] - 80060de: 3308 adds r3, #8 - 80060e0: 63bb str r3, [r7, #56] @ 0x38 + 8006ad2: 687b ldr r3, [r7, #4] + 8006ad4: 681b ldr r3, [r3, #0] + 8006ad6: 3308 adds r3, #8 + 8006ad8: 63bb str r3, [r7, #56] @ 0x38 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 80060e2: 6bbb ldr r3, [r7, #56] @ 0x38 - 80060e4: e853 3f00 ldrex r3, [r3] - 80060e8: 637b str r3, [r7, #52] @ 0x34 + 8006ada: 6bbb ldr r3, [r7, #56] @ 0x38 + 8006adc: e853 3f00 ldrex r3, [r3] + 8006ae0: 637b str r3, [r7, #52] @ 0x34 return(result); - 80060ea: 6b7b ldr r3, [r7, #52] @ 0x34 - 80060ec: f023 0301 bic.w r3, r3, #1 - 80060f0: 667b str r3, [r7, #100] @ 0x64 - 80060f2: 687b ldr r3, [r7, #4] - 80060f4: 681b ldr r3, [r3, #0] - 80060f6: 3308 adds r3, #8 - 80060f8: 6e7a ldr r2, [r7, #100] @ 0x64 - 80060fa: 647a str r2, [r7, #68] @ 0x44 - 80060fc: 643b str r3, [r7, #64] @ 0x40 + 8006ae2: 6b7b ldr r3, [r7, #52] @ 0x34 + 8006ae4: f023 0301 bic.w r3, r3, #1 + 8006ae8: 667b str r3, [r7, #100] @ 0x64 + 8006aea: 687b ldr r3, [r7, #4] + 8006aec: 681b ldr r3, [r3, #0] + 8006aee: 3308 adds r3, #8 + 8006af0: 6e7a ldr r2, [r7, #100] @ 0x64 + 8006af2: 647a str r2, [r7, #68] @ 0x44 + 8006af4: 643b str r3, [r7, #64] @ 0x40 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 80060fe: 6c39 ldr r1, [r7, #64] @ 0x40 - 8006100: 6c7a ldr r2, [r7, #68] @ 0x44 - 8006102: e841 2300 strex r3, r2, [r1] - 8006106: 63fb str r3, [r7, #60] @ 0x3c + 8006af6: 6c39 ldr r1, [r7, #64] @ 0x40 + 8006af8: 6c7a ldr r2, [r7, #68] @ 0x44 + 8006afa: e841 2300 strex r3, r2, [r1] + 8006afe: 63fb str r3, [r7, #60] @ 0x3c return(result); - 8006108: 6bfb ldr r3, [r7, #60] @ 0x3c - 800610a: 2b00 cmp r3, #0 - 800610c: d1e5 bne.n 80060da + 8006b00: 6bfb ldr r3, [r7, #60] @ 0x3c + 8006b02: 2b00 cmp r3, #0 + 8006b04: d1e5 bne.n 8006ad2 /* Rx process is completed, restore huart->RxState to Ready */ huart->RxState = HAL_UART_STATE_READY; - 800610e: 687b ldr r3, [r7, #4] - 8006110: 2220 movs r2, #32 - 8006112: f8c3 208c str.w r2, [r3, #140] @ 0x8c + 8006b06: 687b ldr r3, [r7, #4] + 8006b08: 2220 movs r2, #32 + 8006b0a: f8c3 208c str.w r2, [r3, #140] @ 0x8c /* Clear RxISR function pointer */ huart->RxISR = NULL; - 8006116: 687b ldr r3, [r7, #4] - 8006118: 2200 movs r2, #0 - 800611a: 675a str r2, [r3, #116] @ 0x74 + 8006b0e: 687b ldr r3, [r7, #4] + 8006b10: 2200 movs r2, #0 + 8006b12: 675a str r2, [r3, #116] @ 0x74 /* Initialize type of RxEvent to Transfer Complete */ huart->RxEventType = HAL_UART_RXEVENT_TC; - 800611c: 687b ldr r3, [r7, #4] - 800611e: 2200 movs r2, #0 - 8006120: 671a str r2, [r3, #112] @ 0x70 + 8006b14: 687b ldr r3, [r7, #4] + 8006b16: 2200 movs r2, #0 + 8006b18: 671a str r2, [r3, #112] @ 0x70 if (!(IS_LPUART_INSTANCE(huart->Instance))) - 8006122: 687b ldr r3, [r7, #4] - 8006124: 681b ldr r3, [r3, #0] - 8006126: 4a33 ldr r2, [pc, #204] @ (80061f4 ) - 8006128: 4293 cmp r3, r2 - 800612a: d01f beq.n 800616c + 8006b1a: 687b ldr r3, [r7, #4] + 8006b1c: 681b ldr r3, [r3, #0] + 8006b1e: 4a33 ldr r2, [pc, #204] @ (8006bec ) + 8006b20: 4293 cmp r3, r2 + 8006b22: d01f beq.n 8006b64 { /* Check that USART RTOEN bit is set */ if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U) - 800612c: 687b ldr r3, [r7, #4] - 800612e: 681b ldr r3, [r3, #0] - 8006130: 685b ldr r3, [r3, #4] - 8006132: f403 0300 and.w r3, r3, #8388608 @ 0x800000 - 8006136: 2b00 cmp r3, #0 - 8006138: d018 beq.n 800616c + 8006b24: 687b ldr r3, [r7, #4] + 8006b26: 681b ldr r3, [r3, #0] + 8006b28: 685b ldr r3, [r3, #4] + 8006b2a: f403 0300 and.w r3, r3, #8388608 @ 0x800000 + 8006b2e: 2b00 cmp r3, #0 + 8006b30: d018 beq.n 8006b64 { /* Enable the UART Receiver Timeout Interrupt */ ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE); - 800613a: 687b ldr r3, [r7, #4] - 800613c: 681b ldr r3, [r3, #0] - 800613e: 627b str r3, [r7, #36] @ 0x24 + 8006b32: 687b ldr r3, [r7, #4] + 8006b34: 681b ldr r3, [r3, #0] + 8006b36: 627b str r3, [r7, #36] @ 0x24 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8006140: 6a7b ldr r3, [r7, #36] @ 0x24 - 8006142: e853 3f00 ldrex r3, [r3] - 8006146: 623b str r3, [r7, #32] + 8006b38: 6a7b ldr r3, [r7, #36] @ 0x24 + 8006b3a: e853 3f00 ldrex r3, [r3] + 8006b3e: 623b str r3, [r7, #32] return(result); - 8006148: 6a3b ldr r3, [r7, #32] - 800614a: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000 - 800614e: 663b str r3, [r7, #96] @ 0x60 - 8006150: 687b ldr r3, [r7, #4] - 8006152: 681b ldr r3, [r3, #0] - 8006154: 461a mov r2, r3 - 8006156: 6e3b ldr r3, [r7, #96] @ 0x60 - 8006158: 633b str r3, [r7, #48] @ 0x30 - 800615a: 62fa str r2, [r7, #44] @ 0x2c + 8006b40: 6a3b ldr r3, [r7, #32] + 8006b42: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000 + 8006b46: 663b str r3, [r7, #96] @ 0x60 + 8006b48: 687b ldr r3, [r7, #4] + 8006b4a: 681b ldr r3, [r3, #0] + 8006b4c: 461a mov r2, r3 + 8006b4e: 6e3b ldr r3, [r7, #96] @ 0x60 + 8006b50: 633b str r3, [r7, #48] @ 0x30 + 8006b52: 62fa str r2, [r7, #44] @ 0x2c __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 800615c: 6af9 ldr r1, [r7, #44] @ 0x2c - 800615e: 6b3a ldr r2, [r7, #48] @ 0x30 - 8006160: e841 2300 strex r3, r2, [r1] - 8006164: 62bb str r3, [r7, #40] @ 0x28 + 8006b54: 6af9 ldr r1, [r7, #44] @ 0x2c + 8006b56: 6b3a ldr r2, [r7, #48] @ 0x30 + 8006b58: e841 2300 strex r3, r2, [r1] + 8006b5c: 62bb str r3, [r7, #40] @ 0x28 return(result); - 8006166: 6abb ldr r3, [r7, #40] @ 0x28 - 8006168: 2b00 cmp r3, #0 - 800616a: d1e6 bne.n 800613a + 8006b5e: 6abb ldr r3, [r7, #40] @ 0x28 + 8006b60: 2b00 cmp r3, #0 + 8006b62: d1e6 bne.n 8006b32 } } /* Check current reception Mode : If Reception till IDLE event has been selected : */ if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) - 800616c: 687b ldr r3, [r7, #4] - 800616e: 6edb ldr r3, [r3, #108] @ 0x6c - 8006170: 2b01 cmp r3, #1 - 8006172: d12e bne.n 80061d2 + 8006b64: 687b ldr r3, [r7, #4] + 8006b66: 6edb ldr r3, [r3, #108] @ 0x6c + 8006b68: 2b01 cmp r3, #1 + 8006b6a: d12e bne.n 8006bca { /* Set reception type to Standard */ huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; - 8006174: 687b ldr r3, [r7, #4] - 8006176: 2200 movs r2, #0 - 8006178: 66da str r2, [r3, #108] @ 0x6c + 8006b6c: 687b ldr r3, [r7, #4] + 8006b6e: 2200 movs r2, #0 + 8006b70: 66da str r2, [r3, #108] @ 0x6c /* Disable IDLE interrupt */ ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); - 800617a: 687b ldr r3, [r7, #4] - 800617c: 681b ldr r3, [r3, #0] - 800617e: 613b str r3, [r7, #16] + 8006b72: 687b ldr r3, [r7, #4] + 8006b74: 681b ldr r3, [r3, #0] + 8006b76: 613b str r3, [r7, #16] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8006180: 693b ldr r3, [r7, #16] - 8006182: e853 3f00 ldrex r3, [r3] - 8006186: 60fb str r3, [r7, #12] + 8006b78: 693b ldr r3, [r7, #16] + 8006b7a: e853 3f00 ldrex r3, [r3] + 8006b7e: 60fb str r3, [r7, #12] return(result); - 8006188: 68fb ldr r3, [r7, #12] - 800618a: f023 0310 bic.w r3, r3, #16 - 800618e: 65fb str r3, [r7, #92] @ 0x5c - 8006190: 687b ldr r3, [r7, #4] - 8006192: 681b ldr r3, [r3, #0] - 8006194: 461a mov r2, r3 - 8006196: 6dfb ldr r3, [r7, #92] @ 0x5c - 8006198: 61fb str r3, [r7, #28] - 800619a: 61ba str r2, [r7, #24] + 8006b80: 68fb ldr r3, [r7, #12] + 8006b82: f023 0310 bic.w r3, r3, #16 + 8006b86: 65fb str r3, [r7, #92] @ 0x5c + 8006b88: 687b ldr r3, [r7, #4] + 8006b8a: 681b ldr r3, [r3, #0] + 8006b8c: 461a mov r2, r3 + 8006b8e: 6dfb ldr r3, [r7, #92] @ 0x5c + 8006b90: 61fb str r3, [r7, #28] + 8006b92: 61ba str r2, [r7, #24] __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 800619c: 69b9 ldr r1, [r7, #24] - 800619e: 69fa ldr r2, [r7, #28] - 80061a0: e841 2300 strex r3, r2, [r1] - 80061a4: 617b str r3, [r7, #20] + 8006b94: 69b9 ldr r1, [r7, #24] + 8006b96: 69fa ldr r2, [r7, #28] + 8006b98: e841 2300 strex r3, r2, [r1] + 8006b9c: 617b str r3, [r7, #20] return(result); - 80061a6: 697b ldr r3, [r7, #20] - 80061a8: 2b00 cmp r3, #0 - 80061aa: d1e6 bne.n 800617a + 8006b9e: 697b ldr r3, [r7, #20] + 8006ba0: 2b00 cmp r3, #0 + 8006ba2: d1e6 bne.n 8006b72 if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET) - 80061ac: 687b ldr r3, [r7, #4] - 80061ae: 681b ldr r3, [r3, #0] - 80061b0: 69db ldr r3, [r3, #28] - 80061b2: f003 0310 and.w r3, r3, #16 - 80061b6: 2b10 cmp r3, #16 - 80061b8: d103 bne.n 80061c2 + 8006ba4: 687b ldr r3, [r7, #4] + 8006ba6: 681b ldr r3, [r3, #0] + 8006ba8: 69db ldr r3, [r3, #28] + 8006baa: f003 0310 and.w r3, r3, #16 + 8006bae: 2b10 cmp r3, #16 + 8006bb0: d103 bne.n 8006bba { /* Clear IDLE Flag */ __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF); - 80061ba: 687b ldr r3, [r7, #4] - 80061bc: 681b ldr r3, [r3, #0] - 80061be: 2210 movs r2, #16 - 80061c0: 621a str r2, [r3, #32] + 8006bb2: 687b ldr r3, [r7, #4] + 8006bb4: 681b ldr r3, [r3, #0] + 8006bb6: 2210 movs r2, #16 + 8006bb8: 621a str r2, [r3, #32] #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered Rx Event callback*/ huart->RxEventCallback(huart, huart->RxXferSize); #else /*Call legacy weak Rx Event callback*/ HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize); - 80061c2: 687b ldr r3, [r7, #4] - 80061c4: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c - 80061c8: 4619 mov r1, r3 - 80061ca: 6878 ldr r0, [r7, #4] - 80061cc: f7ff f8e0 bl 8005390 + 8006bba: 687b ldr r3, [r7, #4] + 8006bbc: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c + 8006bc0: 4619 mov r1, r3 + 8006bc2: 6878 ldr r0, [r7, #4] + 8006bc4: f7ff f8e0 bl 8005d88 else { /* Clear RXNE interrupt flag */ __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST); } } - 80061d0: e00b b.n 80061ea + 8006bc8: e00b b.n 8006be2 HAL_UART_RxCpltCallback(huart); - 80061d2: 6878 ldr r0, [r7, #4] - 80061d4: f7fa fcfa bl 8000bcc + 8006bca: 6878 ldr r0, [r7, #4] + 8006bcc: f7fa fc60 bl 8001490 } - 80061d8: e007 b.n 80061ea + 8006bd0: e007 b.n 8006be2 __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST); - 80061da: 687b ldr r3, [r7, #4] - 80061dc: 681b ldr r3, [r3, #0] - 80061de: 699a ldr r2, [r3, #24] - 80061e0: 687b ldr r3, [r7, #4] - 80061e2: 681b ldr r3, [r3, #0] - 80061e4: f042 0208 orr.w r2, r2, #8 - 80061e8: 619a str r2, [r3, #24] + 8006bd2: 687b ldr r3, [r7, #4] + 8006bd4: 681b ldr r3, [r3, #0] + 8006bd6: 699a ldr r2, [r3, #24] + 8006bd8: 687b ldr r3, [r7, #4] + 8006bda: 681b ldr r3, [r3, #0] + 8006bdc: f042 0208 orr.w r2, r2, #8 + 8006be0: 619a str r2, [r3, #24] } - 80061ea: bf00 nop - 80061ec: 3770 adds r7, #112 @ 0x70 - 80061ee: 46bd mov sp, r7 - 80061f0: bd80 pop {r7, pc} - 80061f2: bf00 nop - 80061f4: 40008000 .word 0x40008000 + 8006be2: bf00 nop + 8006be4: 3770 adds r7, #112 @ 0x70 + 8006be6: 46bd mov sp, r7 + 8006be8: bd80 pop {r7, pc} + 8006bea: bf00 nop + 8006bec: 40008000 .word 0x40008000 -080061f8 : +08006bf0 : * interruptions have been enabled by HAL_UART_Receive_IT() * @param huart UART handle. * @retval None */ static void UART_RxISR_16BIT(UART_HandleTypeDef *huart) { - 80061f8: b580 push {r7, lr} - 80061fa: b09c sub sp, #112 @ 0x70 - 80061fc: af00 add r7, sp, #0 - 80061fe: 6078 str r0, [r7, #4] + 8006bf0: b580 push {r7, lr} + 8006bf2: b09c sub sp, #112 @ 0x70 + 8006bf4: af00 add r7, sp, #0 + 8006bf6: 6078 str r0, [r7, #4] uint16_t *tmp; uint16_t uhMask = huart->Mask; - 8006200: 687b ldr r3, [r7, #4] - 8006202: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60 - 8006206: f8a7 306e strh.w r3, [r7, #110] @ 0x6e + 8006bf8: 687b ldr r3, [r7, #4] + 8006bfa: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60 + 8006bfe: f8a7 306e strh.w r3, [r7, #110] @ 0x6e uint16_t uhdata; /* Check that a Rx process is ongoing */ if (huart->RxState == HAL_UART_STATE_BUSY_RX) - 800620a: 687b ldr r3, [r7, #4] - 800620c: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c - 8006210: 2b22 cmp r3, #34 @ 0x22 - 8006212: f040 80be bne.w 8006392 + 8006c02: 687b ldr r3, [r7, #4] + 8006c04: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c + 8006c08: 2b22 cmp r3, #34 @ 0x22 + 8006c0a: f040 80be bne.w 8006d8a { uhdata = (uint16_t) READ_REG(huart->Instance->RDR); - 8006216: 687b ldr r3, [r7, #4] - 8006218: 681b ldr r3, [r3, #0] - 800621a: 6a5b ldr r3, [r3, #36] @ 0x24 - 800621c: f8a7 306c strh.w r3, [r7, #108] @ 0x6c + 8006c0e: 687b ldr r3, [r7, #4] + 8006c10: 681b ldr r3, [r3, #0] + 8006c12: 6a5b ldr r3, [r3, #36] @ 0x24 + 8006c14: f8a7 306c strh.w r3, [r7, #108] @ 0x6c tmp = (uint16_t *) huart->pRxBuffPtr ; - 8006220: 687b ldr r3, [r7, #4] - 8006222: 6d9b ldr r3, [r3, #88] @ 0x58 - 8006224: 66bb str r3, [r7, #104] @ 0x68 + 8006c18: 687b ldr r3, [r7, #4] + 8006c1a: 6d9b ldr r3, [r3, #88] @ 0x58 + 8006c1c: 66bb str r3, [r7, #104] @ 0x68 *tmp = (uint16_t)(uhdata & uhMask); - 8006226: f8b7 206c ldrh.w r2, [r7, #108] @ 0x6c - 800622a: f8b7 306e ldrh.w r3, [r7, #110] @ 0x6e - 800622e: 4013 ands r3, r2 - 8006230: b29a uxth r2, r3 - 8006232: 6ebb ldr r3, [r7, #104] @ 0x68 - 8006234: 801a strh r2, [r3, #0] + 8006c1e: f8b7 206c ldrh.w r2, [r7, #108] @ 0x6c + 8006c22: f8b7 306e ldrh.w r3, [r7, #110] @ 0x6e + 8006c26: 4013 ands r3, r2 + 8006c28: b29a uxth r2, r3 + 8006c2a: 6ebb ldr r3, [r7, #104] @ 0x68 + 8006c2c: 801a strh r2, [r3, #0] huart->pRxBuffPtr += 2U; - 8006236: 687b ldr r3, [r7, #4] - 8006238: 6d9b ldr r3, [r3, #88] @ 0x58 - 800623a: 1c9a adds r2, r3, #2 - 800623c: 687b ldr r3, [r7, #4] - 800623e: 659a str r2, [r3, #88] @ 0x58 + 8006c2e: 687b ldr r3, [r7, #4] + 8006c30: 6d9b ldr r3, [r3, #88] @ 0x58 + 8006c32: 1c9a adds r2, r3, #2 + 8006c34: 687b ldr r3, [r7, #4] + 8006c36: 659a str r2, [r3, #88] @ 0x58 huart->RxXferCount--; - 8006240: 687b ldr r3, [r7, #4] - 8006242: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e - 8006246: b29b uxth r3, r3 - 8006248: 3b01 subs r3, #1 - 800624a: b29a uxth r2, r3 - 800624c: 687b ldr r3, [r7, #4] - 800624e: f8a3 205e strh.w r2, [r3, #94] @ 0x5e + 8006c38: 687b ldr r3, [r7, #4] + 8006c3a: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e + 8006c3e: b29b uxth r3, r3 + 8006c40: 3b01 subs r3, #1 + 8006c42: b29a uxth r2, r3 + 8006c44: 687b ldr r3, [r7, #4] + 8006c46: f8a3 205e strh.w r2, [r3, #94] @ 0x5e if (huart->RxXferCount == 0U) - 8006252: 687b ldr r3, [r7, #4] - 8006254: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e - 8006258: b29b uxth r3, r3 - 800625a: 2b00 cmp r3, #0 - 800625c: f040 80a1 bne.w 80063a2 + 8006c4a: 687b ldr r3, [r7, #4] + 8006c4c: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e + 8006c50: b29b uxth r3, r3 + 8006c52: 2b00 cmp r3, #0 + 8006c54: f040 80a1 bne.w 8006d9a { /* Disable the UART Parity Error Interrupt and RXNE interrupt*/ ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE)); - 8006260: 687b ldr r3, [r7, #4] - 8006262: 681b ldr r3, [r3, #0] - 8006264: 64bb str r3, [r7, #72] @ 0x48 + 8006c58: 687b ldr r3, [r7, #4] + 8006c5a: 681b ldr r3, [r3, #0] + 8006c5c: 64bb str r3, [r7, #72] @ 0x48 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8006266: 6cbb ldr r3, [r7, #72] @ 0x48 - 8006268: e853 3f00 ldrex r3, [r3] - 800626c: 647b str r3, [r7, #68] @ 0x44 + 8006c5e: 6cbb ldr r3, [r7, #72] @ 0x48 + 8006c60: e853 3f00 ldrex r3, [r3] + 8006c64: 647b str r3, [r7, #68] @ 0x44 return(result); - 800626e: 6c7b ldr r3, [r7, #68] @ 0x44 - 8006270: f423 7390 bic.w r3, r3, #288 @ 0x120 - 8006274: 667b str r3, [r7, #100] @ 0x64 - 8006276: 687b ldr r3, [r7, #4] - 8006278: 681b ldr r3, [r3, #0] - 800627a: 461a mov r2, r3 - 800627c: 6e7b ldr r3, [r7, #100] @ 0x64 - 800627e: 657b str r3, [r7, #84] @ 0x54 - 8006280: 653a str r2, [r7, #80] @ 0x50 + 8006c66: 6c7b ldr r3, [r7, #68] @ 0x44 + 8006c68: f423 7390 bic.w r3, r3, #288 @ 0x120 + 8006c6c: 667b str r3, [r7, #100] @ 0x64 + 8006c6e: 687b ldr r3, [r7, #4] + 8006c70: 681b ldr r3, [r3, #0] + 8006c72: 461a mov r2, r3 + 8006c74: 6e7b ldr r3, [r7, #100] @ 0x64 + 8006c76: 657b str r3, [r7, #84] @ 0x54 + 8006c78: 653a str r2, [r7, #80] @ 0x50 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8006282: 6d39 ldr r1, [r7, #80] @ 0x50 - 8006284: 6d7a ldr r2, [r7, #84] @ 0x54 - 8006286: e841 2300 strex r3, r2, [r1] - 800628a: 64fb str r3, [r7, #76] @ 0x4c + 8006c7a: 6d39 ldr r1, [r7, #80] @ 0x50 + 8006c7c: 6d7a ldr r2, [r7, #84] @ 0x54 + 8006c7e: e841 2300 strex r3, r2, [r1] + 8006c82: 64fb str r3, [r7, #76] @ 0x4c return(result); - 800628c: 6cfb ldr r3, [r7, #76] @ 0x4c - 800628e: 2b00 cmp r3, #0 - 8006290: d1e6 bne.n 8006260 + 8006c84: 6cfb ldr r3, [r7, #76] @ 0x4c + 8006c86: 2b00 cmp r3, #0 + 8006c88: d1e6 bne.n 8006c58 /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) */ ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); - 8006292: 687b ldr r3, [r7, #4] - 8006294: 681b ldr r3, [r3, #0] - 8006296: 3308 adds r3, #8 - 8006298: 637b str r3, [r7, #52] @ 0x34 + 8006c8a: 687b ldr r3, [r7, #4] + 8006c8c: 681b ldr r3, [r3, #0] + 8006c8e: 3308 adds r3, #8 + 8006c90: 637b str r3, [r7, #52] @ 0x34 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 800629a: 6b7b ldr r3, [r7, #52] @ 0x34 - 800629c: e853 3f00 ldrex r3, [r3] - 80062a0: 633b str r3, [r7, #48] @ 0x30 + 8006c92: 6b7b ldr r3, [r7, #52] @ 0x34 + 8006c94: e853 3f00 ldrex r3, [r3] + 8006c98: 633b str r3, [r7, #48] @ 0x30 return(result); - 80062a2: 6b3b ldr r3, [r7, #48] @ 0x30 - 80062a4: f023 0301 bic.w r3, r3, #1 - 80062a8: 663b str r3, [r7, #96] @ 0x60 - 80062aa: 687b ldr r3, [r7, #4] - 80062ac: 681b ldr r3, [r3, #0] - 80062ae: 3308 adds r3, #8 - 80062b0: 6e3a ldr r2, [r7, #96] @ 0x60 - 80062b2: 643a str r2, [r7, #64] @ 0x40 - 80062b4: 63fb str r3, [r7, #60] @ 0x3c + 8006c9a: 6b3b ldr r3, [r7, #48] @ 0x30 + 8006c9c: f023 0301 bic.w r3, r3, #1 + 8006ca0: 663b str r3, [r7, #96] @ 0x60 + 8006ca2: 687b ldr r3, [r7, #4] + 8006ca4: 681b ldr r3, [r3, #0] + 8006ca6: 3308 adds r3, #8 + 8006ca8: 6e3a ldr r2, [r7, #96] @ 0x60 + 8006caa: 643a str r2, [r7, #64] @ 0x40 + 8006cac: 63fb str r3, [r7, #60] @ 0x3c __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 80062b6: 6bf9 ldr r1, [r7, #60] @ 0x3c - 80062b8: 6c3a ldr r2, [r7, #64] @ 0x40 - 80062ba: e841 2300 strex r3, r2, [r1] - 80062be: 63bb str r3, [r7, #56] @ 0x38 + 8006cae: 6bf9 ldr r1, [r7, #60] @ 0x3c + 8006cb0: 6c3a ldr r2, [r7, #64] @ 0x40 + 8006cb2: e841 2300 strex r3, r2, [r1] + 8006cb6: 63bb str r3, [r7, #56] @ 0x38 return(result); - 80062c0: 6bbb ldr r3, [r7, #56] @ 0x38 - 80062c2: 2b00 cmp r3, #0 - 80062c4: d1e5 bne.n 8006292 + 8006cb8: 6bbb ldr r3, [r7, #56] @ 0x38 + 8006cba: 2b00 cmp r3, #0 + 8006cbc: d1e5 bne.n 8006c8a /* Rx process is completed, restore huart->RxState to Ready */ huart->RxState = HAL_UART_STATE_READY; - 80062c6: 687b ldr r3, [r7, #4] - 80062c8: 2220 movs r2, #32 - 80062ca: f8c3 208c str.w r2, [r3, #140] @ 0x8c + 8006cbe: 687b ldr r3, [r7, #4] + 8006cc0: 2220 movs r2, #32 + 8006cc2: f8c3 208c str.w r2, [r3, #140] @ 0x8c /* Clear RxISR function pointer */ huart->RxISR = NULL; - 80062ce: 687b ldr r3, [r7, #4] - 80062d0: 2200 movs r2, #0 - 80062d2: 675a str r2, [r3, #116] @ 0x74 + 8006cc6: 687b ldr r3, [r7, #4] + 8006cc8: 2200 movs r2, #0 + 8006cca: 675a str r2, [r3, #116] @ 0x74 /* Initialize type of RxEvent to Transfer Complete */ huart->RxEventType = HAL_UART_RXEVENT_TC; - 80062d4: 687b ldr r3, [r7, #4] - 80062d6: 2200 movs r2, #0 - 80062d8: 671a str r2, [r3, #112] @ 0x70 + 8006ccc: 687b ldr r3, [r7, #4] + 8006cce: 2200 movs r2, #0 + 8006cd0: 671a str r2, [r3, #112] @ 0x70 if (!(IS_LPUART_INSTANCE(huart->Instance))) - 80062da: 687b ldr r3, [r7, #4] - 80062dc: 681b ldr r3, [r3, #0] - 80062de: 4a33 ldr r2, [pc, #204] @ (80063ac ) - 80062e0: 4293 cmp r3, r2 - 80062e2: d01f beq.n 8006324 + 8006cd2: 687b ldr r3, [r7, #4] + 8006cd4: 681b ldr r3, [r3, #0] + 8006cd6: 4a33 ldr r2, [pc, #204] @ (8006da4 ) + 8006cd8: 4293 cmp r3, r2 + 8006cda: d01f beq.n 8006d1c { /* Check that USART RTOEN bit is set */ if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U) - 80062e4: 687b ldr r3, [r7, #4] - 80062e6: 681b ldr r3, [r3, #0] - 80062e8: 685b ldr r3, [r3, #4] - 80062ea: f403 0300 and.w r3, r3, #8388608 @ 0x800000 - 80062ee: 2b00 cmp r3, #0 - 80062f0: d018 beq.n 8006324 + 8006cdc: 687b ldr r3, [r7, #4] + 8006cde: 681b ldr r3, [r3, #0] + 8006ce0: 685b ldr r3, [r3, #4] + 8006ce2: f403 0300 and.w r3, r3, #8388608 @ 0x800000 + 8006ce6: 2b00 cmp r3, #0 + 8006ce8: d018 beq.n 8006d1c { /* Enable the UART Receiver Timeout Interrupt */ ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE); - 80062f2: 687b ldr r3, [r7, #4] - 80062f4: 681b ldr r3, [r3, #0] - 80062f6: 623b str r3, [r7, #32] + 8006cea: 687b ldr r3, [r7, #4] + 8006cec: 681b ldr r3, [r3, #0] + 8006cee: 623b str r3, [r7, #32] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 80062f8: 6a3b ldr r3, [r7, #32] - 80062fa: e853 3f00 ldrex r3, [r3] - 80062fe: 61fb str r3, [r7, #28] + 8006cf0: 6a3b ldr r3, [r7, #32] + 8006cf2: e853 3f00 ldrex r3, [r3] + 8006cf6: 61fb str r3, [r7, #28] return(result); - 8006300: 69fb ldr r3, [r7, #28] - 8006302: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000 - 8006306: 65fb str r3, [r7, #92] @ 0x5c - 8006308: 687b ldr r3, [r7, #4] - 800630a: 681b ldr r3, [r3, #0] - 800630c: 461a mov r2, r3 - 800630e: 6dfb ldr r3, [r7, #92] @ 0x5c - 8006310: 62fb str r3, [r7, #44] @ 0x2c - 8006312: 62ba str r2, [r7, #40] @ 0x28 + 8006cf8: 69fb ldr r3, [r7, #28] + 8006cfa: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000 + 8006cfe: 65fb str r3, [r7, #92] @ 0x5c + 8006d00: 687b ldr r3, [r7, #4] + 8006d02: 681b ldr r3, [r3, #0] + 8006d04: 461a mov r2, r3 + 8006d06: 6dfb ldr r3, [r7, #92] @ 0x5c + 8006d08: 62fb str r3, [r7, #44] @ 0x2c + 8006d0a: 62ba str r2, [r7, #40] @ 0x28 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8006314: 6ab9 ldr r1, [r7, #40] @ 0x28 - 8006316: 6afa ldr r2, [r7, #44] @ 0x2c - 8006318: e841 2300 strex r3, r2, [r1] - 800631c: 627b str r3, [r7, #36] @ 0x24 + 8006d0c: 6ab9 ldr r1, [r7, #40] @ 0x28 + 8006d0e: 6afa ldr r2, [r7, #44] @ 0x2c + 8006d10: e841 2300 strex r3, r2, [r1] + 8006d14: 627b str r3, [r7, #36] @ 0x24 return(result); - 800631e: 6a7b ldr r3, [r7, #36] @ 0x24 - 8006320: 2b00 cmp r3, #0 - 8006322: d1e6 bne.n 80062f2 + 8006d16: 6a7b ldr r3, [r7, #36] @ 0x24 + 8006d18: 2b00 cmp r3, #0 + 8006d1a: d1e6 bne.n 8006cea } } /* Check current reception Mode : If Reception till IDLE event has been selected : */ if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) - 8006324: 687b ldr r3, [r7, #4] - 8006326: 6edb ldr r3, [r3, #108] @ 0x6c - 8006328: 2b01 cmp r3, #1 - 800632a: d12e bne.n 800638a + 8006d1c: 687b ldr r3, [r7, #4] + 8006d1e: 6edb ldr r3, [r3, #108] @ 0x6c + 8006d20: 2b01 cmp r3, #1 + 8006d22: d12e bne.n 8006d82 { /* Set reception type to Standard */ huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; - 800632c: 687b ldr r3, [r7, #4] - 800632e: 2200 movs r2, #0 - 8006330: 66da str r2, [r3, #108] @ 0x6c + 8006d24: 687b ldr r3, [r7, #4] + 8006d26: 2200 movs r2, #0 + 8006d28: 66da str r2, [r3, #108] @ 0x6c /* Disable IDLE interrupt */ ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); - 8006332: 687b ldr r3, [r7, #4] - 8006334: 681b ldr r3, [r3, #0] - 8006336: 60fb str r3, [r7, #12] + 8006d2a: 687b ldr r3, [r7, #4] + 8006d2c: 681b ldr r3, [r3, #0] + 8006d2e: 60fb str r3, [r7, #12] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8006338: 68fb ldr r3, [r7, #12] - 800633a: e853 3f00 ldrex r3, [r3] - 800633e: 60bb str r3, [r7, #8] + 8006d30: 68fb ldr r3, [r7, #12] + 8006d32: e853 3f00 ldrex r3, [r3] + 8006d36: 60bb str r3, [r7, #8] return(result); - 8006340: 68bb ldr r3, [r7, #8] - 8006342: f023 0310 bic.w r3, r3, #16 - 8006346: 65bb str r3, [r7, #88] @ 0x58 - 8006348: 687b ldr r3, [r7, #4] - 800634a: 681b ldr r3, [r3, #0] - 800634c: 461a mov r2, r3 - 800634e: 6dbb ldr r3, [r7, #88] @ 0x58 - 8006350: 61bb str r3, [r7, #24] - 8006352: 617a str r2, [r7, #20] + 8006d38: 68bb ldr r3, [r7, #8] + 8006d3a: f023 0310 bic.w r3, r3, #16 + 8006d3e: 65bb str r3, [r7, #88] @ 0x58 + 8006d40: 687b ldr r3, [r7, #4] + 8006d42: 681b ldr r3, [r3, #0] + 8006d44: 461a mov r2, r3 + 8006d46: 6dbb ldr r3, [r7, #88] @ 0x58 + 8006d48: 61bb str r3, [r7, #24] + 8006d4a: 617a str r2, [r7, #20] __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8006354: 6979 ldr r1, [r7, #20] - 8006356: 69ba ldr r2, [r7, #24] - 8006358: e841 2300 strex r3, r2, [r1] - 800635c: 613b str r3, [r7, #16] + 8006d4c: 6979 ldr r1, [r7, #20] + 8006d4e: 69ba ldr r2, [r7, #24] + 8006d50: e841 2300 strex r3, r2, [r1] + 8006d54: 613b str r3, [r7, #16] return(result); - 800635e: 693b ldr r3, [r7, #16] - 8006360: 2b00 cmp r3, #0 - 8006362: d1e6 bne.n 8006332 + 8006d56: 693b ldr r3, [r7, #16] + 8006d58: 2b00 cmp r3, #0 + 8006d5a: d1e6 bne.n 8006d2a if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET) - 8006364: 687b ldr r3, [r7, #4] - 8006366: 681b ldr r3, [r3, #0] - 8006368: 69db ldr r3, [r3, #28] - 800636a: f003 0310 and.w r3, r3, #16 - 800636e: 2b10 cmp r3, #16 - 8006370: d103 bne.n 800637a + 8006d5c: 687b ldr r3, [r7, #4] + 8006d5e: 681b ldr r3, [r3, #0] + 8006d60: 69db ldr r3, [r3, #28] + 8006d62: f003 0310 and.w r3, r3, #16 + 8006d66: 2b10 cmp r3, #16 + 8006d68: d103 bne.n 8006d72 { /* Clear IDLE Flag */ __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF); - 8006372: 687b ldr r3, [r7, #4] - 8006374: 681b ldr r3, [r3, #0] - 8006376: 2210 movs r2, #16 - 8006378: 621a str r2, [r3, #32] + 8006d6a: 687b ldr r3, [r7, #4] + 8006d6c: 681b ldr r3, [r3, #0] + 8006d6e: 2210 movs r2, #16 + 8006d70: 621a str r2, [r3, #32] #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered Rx Event callback*/ huart->RxEventCallback(huart, huart->RxXferSize); #else /*Call legacy weak Rx Event callback*/ HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize); - 800637a: 687b ldr r3, [r7, #4] - 800637c: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c - 8006380: 4619 mov r1, r3 - 8006382: 6878 ldr r0, [r7, #4] - 8006384: f7ff f804 bl 8005390 + 8006d72: 687b ldr r3, [r7, #4] + 8006d74: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c + 8006d78: 4619 mov r1, r3 + 8006d7a: 6878 ldr r0, [r7, #4] + 8006d7c: f7ff f804 bl 8005d88 else { /* Clear RXNE interrupt flag */ __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST); } } - 8006388: e00b b.n 80063a2 + 8006d80: e00b b.n 8006d9a HAL_UART_RxCpltCallback(huart); - 800638a: 6878 ldr r0, [r7, #4] - 800638c: f7fa fc1e bl 8000bcc + 8006d82: 6878 ldr r0, [r7, #4] + 8006d84: f7fa fb84 bl 8001490 } - 8006390: e007 b.n 80063a2 + 8006d88: e007 b.n 8006d9a __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST); - 8006392: 687b ldr r3, [r7, #4] - 8006394: 681b ldr r3, [r3, #0] - 8006396: 699a ldr r2, [r3, #24] - 8006398: 687b ldr r3, [r7, #4] - 800639a: 681b ldr r3, [r3, #0] - 800639c: f042 0208 orr.w r2, r2, #8 - 80063a0: 619a str r2, [r3, #24] + 8006d8a: 687b ldr r3, [r7, #4] + 8006d8c: 681b ldr r3, [r3, #0] + 8006d8e: 699a ldr r2, [r3, #24] + 8006d90: 687b ldr r3, [r7, #4] + 8006d92: 681b ldr r3, [r3, #0] + 8006d94: f042 0208 orr.w r2, r2, #8 + 8006d98: 619a str r2, [r3, #24] } - 80063a2: bf00 nop - 80063a4: 3770 adds r7, #112 @ 0x70 - 80063a6: 46bd mov sp, r7 - 80063a8: bd80 pop {r7, pc} - 80063aa: bf00 nop - 80063ac: 40008000 .word 0x40008000 + 8006d9a: bf00 nop + 8006d9c: 3770 adds r7, #112 @ 0x70 + 8006d9e: 46bd mov sp, r7 + 8006da0: bd80 pop {r7, pc} + 8006da2: bf00 nop + 8006da4: 40008000 .word 0x40008000 -080063b0 : +08006da8 : * interruptions have been enabled by HAL_UART_Receive_IT() * @param huart UART handle. * @retval None */ static void UART_RxISR_8BIT_FIFOEN(UART_HandleTypeDef *huart) { - 80063b0: b580 push {r7, lr} - 80063b2: b0ac sub sp, #176 @ 0xb0 - 80063b4: af00 add r7, sp, #0 - 80063b6: 6078 str r0, [r7, #4] + 8006da8: b580 push {r7, lr} + 8006daa: b0ac sub sp, #176 @ 0xb0 + 8006dac: af00 add r7, sp, #0 + 8006dae: 6078 str r0, [r7, #4] uint16_t uhMask = huart->Mask; - 80063b8: 687b ldr r3, [r7, #4] - 80063ba: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60 - 80063be: f8a7 30aa strh.w r3, [r7, #170] @ 0xaa + 8006db0: 687b ldr r3, [r7, #4] + 8006db2: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60 + 8006db6: f8a7 30aa strh.w r3, [r7, #170] @ 0xaa uint16_t uhdata; uint16_t nb_rx_data; uint16_t rxdatacount; uint32_t isrflags = READ_REG(huart->Instance->ISR); - 80063c2: 687b ldr r3, [r7, #4] - 80063c4: 681b ldr r3, [r3, #0] - 80063c6: 69db ldr r3, [r3, #28] - 80063c8: f8c7 30ac str.w r3, [r7, #172] @ 0xac + 8006dba: 687b ldr r3, [r7, #4] + 8006dbc: 681b ldr r3, [r3, #0] + 8006dbe: 69db ldr r3, [r3, #28] + 8006dc0: f8c7 30ac str.w r3, [r7, #172] @ 0xac uint32_t cr1its = READ_REG(huart->Instance->CR1); - 80063cc: 687b ldr r3, [r7, #4] - 80063ce: 681b ldr r3, [r3, #0] - 80063d0: 681b ldr r3, [r3, #0] - 80063d2: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4 + 8006dc4: 687b ldr r3, [r7, #4] + 8006dc6: 681b ldr r3, [r3, #0] + 8006dc8: 681b ldr r3, [r3, #0] + 8006dca: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4 uint32_t cr3its = READ_REG(huart->Instance->CR3); - 80063d6: 687b ldr r3, [r7, #4] - 80063d8: 681b ldr r3, [r3, #0] - 80063da: 689b ldr r3, [r3, #8] - 80063dc: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0 + 8006dce: 687b ldr r3, [r7, #4] + 8006dd0: 681b ldr r3, [r3, #0] + 8006dd2: 689b ldr r3, [r3, #8] + 8006dd4: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0 /* Check that a Rx process is ongoing */ if (huart->RxState == HAL_UART_STATE_BUSY_RX) - 80063e0: 687b ldr r3, [r7, #4] - 80063e2: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c - 80063e6: 2b22 cmp r3, #34 @ 0x22 - 80063e8: f040 8183 bne.w 80066f2 + 8006dd8: 687b ldr r3, [r7, #4] + 8006dda: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c + 8006dde: 2b22 cmp r3, #34 @ 0x22 + 8006de0: f040 8183 bne.w 80070ea { nb_rx_data = huart->NbRxDataToProcess; - 80063ec: 687b ldr r3, [r7, #4] - 80063ee: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68 - 80063f2: f8a7 309e strh.w r3, [r7, #158] @ 0x9e + 8006de4: 687b ldr r3, [r7, #4] + 8006de6: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68 + 8006dea: f8a7 309e strh.w r3, [r7, #158] @ 0x9e while ((nb_rx_data > 0U) && ((isrflags & USART_ISR_RXNE_RXFNE) != 0U)) - 80063f6: e126 b.n 8006646 + 8006dee: e126 b.n 800703e { uhdata = (uint16_t) READ_REG(huart->Instance->RDR); - 80063f8: 687b ldr r3, [r7, #4] - 80063fa: 681b ldr r3, [r3, #0] - 80063fc: 6a5b ldr r3, [r3, #36] @ 0x24 - 80063fe: f8a7 309c strh.w r3, [r7, #156] @ 0x9c + 8006df0: 687b ldr r3, [r7, #4] + 8006df2: 681b ldr r3, [r3, #0] + 8006df4: 6a5b ldr r3, [r3, #36] @ 0x24 + 8006df6: f8a7 309c strh.w r3, [r7, #156] @ 0x9c *huart->pRxBuffPtr = (uint8_t)(uhdata & (uint8_t)uhMask); - 8006402: f8b7 309c ldrh.w r3, [r7, #156] @ 0x9c - 8006406: b2d9 uxtb r1, r3 - 8006408: f8b7 30aa ldrh.w r3, [r7, #170] @ 0xaa - 800640c: b2da uxtb r2, r3 - 800640e: 687b ldr r3, [r7, #4] - 8006410: 6d9b ldr r3, [r3, #88] @ 0x58 - 8006412: 400a ands r2, r1 - 8006414: b2d2 uxtb r2, r2 - 8006416: 701a strb r2, [r3, #0] + 8006dfa: f8b7 309c ldrh.w r3, [r7, #156] @ 0x9c + 8006dfe: b2d9 uxtb r1, r3 + 8006e00: f8b7 30aa ldrh.w r3, [r7, #170] @ 0xaa + 8006e04: b2da uxtb r2, r3 + 8006e06: 687b ldr r3, [r7, #4] + 8006e08: 6d9b ldr r3, [r3, #88] @ 0x58 + 8006e0a: 400a ands r2, r1 + 8006e0c: b2d2 uxtb r2, r2 + 8006e0e: 701a strb r2, [r3, #0] huart->pRxBuffPtr++; - 8006418: 687b ldr r3, [r7, #4] - 800641a: 6d9b ldr r3, [r3, #88] @ 0x58 - 800641c: 1c5a adds r2, r3, #1 - 800641e: 687b ldr r3, [r7, #4] - 8006420: 659a str r2, [r3, #88] @ 0x58 + 8006e10: 687b ldr r3, [r7, #4] + 8006e12: 6d9b ldr r3, [r3, #88] @ 0x58 + 8006e14: 1c5a adds r2, r3, #1 + 8006e16: 687b ldr r3, [r7, #4] + 8006e18: 659a str r2, [r3, #88] @ 0x58 huart->RxXferCount--; - 8006422: 687b ldr r3, [r7, #4] - 8006424: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e - 8006428: b29b uxth r3, r3 - 800642a: 3b01 subs r3, #1 - 800642c: b29a uxth r2, r3 - 800642e: 687b ldr r3, [r7, #4] - 8006430: f8a3 205e strh.w r2, [r3, #94] @ 0x5e + 8006e1a: 687b ldr r3, [r7, #4] + 8006e1c: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e + 8006e20: b29b uxth r3, r3 + 8006e22: 3b01 subs r3, #1 + 8006e24: b29a uxth r2, r3 + 8006e26: 687b ldr r3, [r7, #4] + 8006e28: f8a3 205e strh.w r2, [r3, #94] @ 0x5e isrflags = READ_REG(huart->Instance->ISR); - 8006434: 687b ldr r3, [r7, #4] - 8006436: 681b ldr r3, [r3, #0] - 8006438: 69db ldr r3, [r3, #28] - 800643a: f8c7 30ac str.w r3, [r7, #172] @ 0xac + 8006e2c: 687b ldr r3, [r7, #4] + 8006e2e: 681b ldr r3, [r3, #0] + 8006e30: 69db ldr r3, [r3, #28] + 8006e32: f8c7 30ac str.w r3, [r7, #172] @ 0xac /* If some non blocking errors occurred */ if ((isrflags & (USART_ISR_PE | USART_ISR_FE | USART_ISR_NE)) != 0U) - 800643e: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac - 8006442: f003 0307 and.w r3, r3, #7 - 8006446: 2b00 cmp r3, #0 - 8006448: d053 beq.n 80064f2 + 8006e36: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac + 8006e3a: f003 0307 and.w r3, r3, #7 + 8006e3e: 2b00 cmp r3, #0 + 8006e40: d053 beq.n 8006eea { /* UART parity error interrupt occurred -------------------------------------*/ if (((isrflags & USART_ISR_PE) != 0U) && ((cr1its & USART_CR1_PEIE) != 0U)) - 800644a: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac - 800644e: f003 0301 and.w r3, r3, #1 - 8006452: 2b00 cmp r3, #0 - 8006454: d011 beq.n 800647a - 8006456: f8d7 30a4 ldr.w r3, [r7, #164] @ 0xa4 - 800645a: f403 7380 and.w r3, r3, #256 @ 0x100 - 800645e: 2b00 cmp r3, #0 - 8006460: d00b beq.n 800647a + 8006e42: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac + 8006e46: f003 0301 and.w r3, r3, #1 + 8006e4a: 2b00 cmp r3, #0 + 8006e4c: d011 beq.n 8006e72 + 8006e4e: f8d7 30a4 ldr.w r3, [r7, #164] @ 0xa4 + 8006e52: f403 7380 and.w r3, r3, #256 @ 0x100 + 8006e56: 2b00 cmp r3, #0 + 8006e58: d00b beq.n 8006e72 { __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_PEF); - 8006462: 687b ldr r3, [r7, #4] - 8006464: 681b ldr r3, [r3, #0] - 8006466: 2201 movs r2, #1 - 8006468: 621a str r2, [r3, #32] + 8006e5a: 687b ldr r3, [r7, #4] + 8006e5c: 681b ldr r3, [r3, #0] + 8006e5e: 2201 movs r2, #1 + 8006e60: 621a str r2, [r3, #32] huart->ErrorCode |= HAL_UART_ERROR_PE; - 800646a: 687b ldr r3, [r7, #4] - 800646c: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 - 8006470: f043 0201 orr.w r2, r3, #1 - 8006474: 687b ldr r3, [r7, #4] - 8006476: f8c3 2090 str.w r2, [r3, #144] @ 0x90 + 8006e62: 687b ldr r3, [r7, #4] + 8006e64: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 + 8006e68: f043 0201 orr.w r2, r3, #1 + 8006e6c: 687b ldr r3, [r7, #4] + 8006e6e: f8c3 2090 str.w r2, [r3, #144] @ 0x90 } /* UART frame error interrupt occurred --------------------------------------*/ if (((isrflags & USART_ISR_FE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U)) - 800647a: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac - 800647e: f003 0302 and.w r3, r3, #2 - 8006482: 2b00 cmp r3, #0 - 8006484: d011 beq.n 80064aa - 8006486: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0 - 800648a: f003 0301 and.w r3, r3, #1 - 800648e: 2b00 cmp r3, #0 - 8006490: d00b beq.n 80064aa + 8006e72: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac + 8006e76: f003 0302 and.w r3, r3, #2 + 8006e7a: 2b00 cmp r3, #0 + 8006e7c: d011 beq.n 8006ea2 + 8006e7e: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0 + 8006e82: f003 0301 and.w r3, r3, #1 + 8006e86: 2b00 cmp r3, #0 + 8006e88: d00b beq.n 8006ea2 { __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_FEF); - 8006492: 687b ldr r3, [r7, #4] - 8006494: 681b ldr r3, [r3, #0] - 8006496: 2202 movs r2, #2 - 8006498: 621a str r2, [r3, #32] + 8006e8a: 687b ldr r3, [r7, #4] + 8006e8c: 681b ldr r3, [r3, #0] + 8006e8e: 2202 movs r2, #2 + 8006e90: 621a str r2, [r3, #32] huart->ErrorCode |= HAL_UART_ERROR_FE; - 800649a: 687b ldr r3, [r7, #4] - 800649c: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 - 80064a0: f043 0204 orr.w r2, r3, #4 - 80064a4: 687b ldr r3, [r7, #4] - 80064a6: f8c3 2090 str.w r2, [r3, #144] @ 0x90 + 8006e92: 687b ldr r3, [r7, #4] + 8006e94: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 + 8006e98: f043 0204 orr.w r2, r3, #4 + 8006e9c: 687b ldr r3, [r7, #4] + 8006e9e: f8c3 2090 str.w r2, [r3, #144] @ 0x90 } /* UART noise error interrupt occurred --------------------------------------*/ if (((isrflags & USART_ISR_NE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U)) - 80064aa: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac - 80064ae: f003 0304 and.w r3, r3, #4 - 80064b2: 2b00 cmp r3, #0 - 80064b4: d011 beq.n 80064da - 80064b6: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0 - 80064ba: f003 0301 and.w r3, r3, #1 - 80064be: 2b00 cmp r3, #0 - 80064c0: d00b beq.n 80064da + 8006ea2: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac + 8006ea6: f003 0304 and.w r3, r3, #4 + 8006eaa: 2b00 cmp r3, #0 + 8006eac: d011 beq.n 8006ed2 + 8006eae: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0 + 8006eb2: f003 0301 and.w r3, r3, #1 + 8006eb6: 2b00 cmp r3, #0 + 8006eb8: d00b beq.n 8006ed2 { __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_NEF); - 80064c2: 687b ldr r3, [r7, #4] - 80064c4: 681b ldr r3, [r3, #0] - 80064c6: 2204 movs r2, #4 - 80064c8: 621a str r2, [r3, #32] + 8006eba: 687b ldr r3, [r7, #4] + 8006ebc: 681b ldr r3, [r3, #0] + 8006ebe: 2204 movs r2, #4 + 8006ec0: 621a str r2, [r3, #32] huart->ErrorCode |= HAL_UART_ERROR_NE; - 80064ca: 687b ldr r3, [r7, #4] - 80064cc: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 - 80064d0: f043 0202 orr.w r2, r3, #2 - 80064d4: 687b ldr r3, [r7, #4] - 80064d6: f8c3 2090 str.w r2, [r3, #144] @ 0x90 + 8006ec2: 687b ldr r3, [r7, #4] + 8006ec4: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 + 8006ec8: f043 0202 orr.w r2, r3, #2 + 8006ecc: 687b ldr r3, [r7, #4] + 8006ece: f8c3 2090 str.w r2, [r3, #144] @ 0x90 } /* Call UART Error Call back function if need be ----------------------------*/ if (huart->ErrorCode != HAL_UART_ERROR_NONE) - 80064da: 687b ldr r3, [r7, #4] - 80064dc: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 - 80064e0: 2b00 cmp r3, #0 - 80064e2: d006 beq.n 80064f2 + 8006ed2: 687b ldr r3, [r7, #4] + 8006ed4: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 + 8006ed8: 2b00 cmp r3, #0 + 8006eda: d006 beq.n 8006eea #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered error callback*/ huart->ErrorCallback(huart); #else /*Call legacy weak error callback*/ HAL_UART_ErrorCallback(huart); - 80064e4: 6878 ldr r0, [r7, #4] - 80064e6: f7fe ff49 bl 800537c + 8006edc: 6878 ldr r0, [r7, #4] + 8006ede: f7fe ff49 bl 8005d74 #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ huart->ErrorCode = HAL_UART_ERROR_NONE; - 80064ea: 687b ldr r3, [r7, #4] - 80064ec: 2200 movs r2, #0 - 80064ee: f8c3 2090 str.w r2, [r3, #144] @ 0x90 + 8006ee2: 687b ldr r3, [r7, #4] + 8006ee4: 2200 movs r2, #0 + 8006ee6: f8c3 2090 str.w r2, [r3, #144] @ 0x90 } } if (huart->RxXferCount == 0U) - 80064f2: 687b ldr r3, [r7, #4] - 80064f4: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e - 80064f8: b29b uxth r3, r3 - 80064fa: 2b00 cmp r3, #0 - 80064fc: f040 80a3 bne.w 8006646 + 8006eea: 687b ldr r3, [r7, #4] + 8006eec: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e + 8006ef0: b29b uxth r3, r3 + 8006ef2: 2b00 cmp r3, #0 + 8006ef4: f040 80a3 bne.w 800703e { /* Disable the UART Parity Error Interrupt and RXFT interrupt*/ ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE); - 8006500: 687b ldr r3, [r7, #4] - 8006502: 681b ldr r3, [r3, #0] - 8006504: 673b str r3, [r7, #112] @ 0x70 + 8006ef8: 687b ldr r3, [r7, #4] + 8006efa: 681b ldr r3, [r3, #0] + 8006efc: 673b str r3, [r7, #112] @ 0x70 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8006506: 6f3b ldr r3, [r7, #112] @ 0x70 - 8006508: e853 3f00 ldrex r3, [r3] - 800650c: 66fb str r3, [r7, #108] @ 0x6c + 8006efe: 6f3b ldr r3, [r7, #112] @ 0x70 + 8006f00: e853 3f00 ldrex r3, [r3] + 8006f04: 66fb str r3, [r7, #108] @ 0x6c return(result); - 800650e: 6efb ldr r3, [r7, #108] @ 0x6c - 8006510: f423 7380 bic.w r3, r3, #256 @ 0x100 - 8006514: f8c7 3098 str.w r3, [r7, #152] @ 0x98 - 8006518: 687b ldr r3, [r7, #4] - 800651a: 681b ldr r3, [r3, #0] - 800651c: 461a mov r2, r3 - 800651e: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98 - 8006522: 67fb str r3, [r7, #124] @ 0x7c - 8006524: 67ba str r2, [r7, #120] @ 0x78 + 8006f06: 6efb ldr r3, [r7, #108] @ 0x6c + 8006f08: f423 7380 bic.w r3, r3, #256 @ 0x100 + 8006f0c: f8c7 3098 str.w r3, [r7, #152] @ 0x98 + 8006f10: 687b ldr r3, [r7, #4] + 8006f12: 681b ldr r3, [r3, #0] + 8006f14: 461a mov r2, r3 + 8006f16: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98 + 8006f1a: 67fb str r3, [r7, #124] @ 0x7c + 8006f1c: 67ba str r2, [r7, #120] @ 0x78 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8006526: 6fb9 ldr r1, [r7, #120] @ 0x78 - 8006528: 6ffa ldr r2, [r7, #124] @ 0x7c - 800652a: e841 2300 strex r3, r2, [r1] - 800652e: 677b str r3, [r7, #116] @ 0x74 + 8006f1e: 6fb9 ldr r1, [r7, #120] @ 0x78 + 8006f20: 6ffa ldr r2, [r7, #124] @ 0x7c + 8006f22: e841 2300 strex r3, r2, [r1] + 8006f26: 677b str r3, [r7, #116] @ 0x74 return(result); - 8006530: 6f7b ldr r3, [r7, #116] @ 0x74 - 8006532: 2b00 cmp r3, #0 - 8006534: d1e4 bne.n 8006500 + 8006f28: 6f7b ldr r3, [r7, #116] @ 0x74 + 8006f2a: 2b00 cmp r3, #0 + 8006f2c: d1e4 bne.n 8006ef8 /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) and RX FIFO Threshold interrupt */ ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE)); - 8006536: 687b ldr r3, [r7, #4] - 8006538: 681b ldr r3, [r3, #0] - 800653a: 3308 adds r3, #8 - 800653c: 65fb str r3, [r7, #92] @ 0x5c + 8006f2e: 687b ldr r3, [r7, #4] + 8006f30: 681b ldr r3, [r3, #0] + 8006f32: 3308 adds r3, #8 + 8006f34: 65fb str r3, [r7, #92] @ 0x5c __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 800653e: 6dfb ldr r3, [r7, #92] @ 0x5c - 8006540: e853 3f00 ldrex r3, [r3] - 8006544: 65bb str r3, [r7, #88] @ 0x58 + 8006f36: 6dfb ldr r3, [r7, #92] @ 0x5c + 8006f38: e853 3f00 ldrex r3, [r3] + 8006f3c: 65bb str r3, [r7, #88] @ 0x58 return(result); - 8006546: 6dbb ldr r3, [r7, #88] @ 0x58 - 8006548: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000 - 800654c: f023 0301 bic.w r3, r3, #1 - 8006550: f8c7 3094 str.w r3, [r7, #148] @ 0x94 - 8006554: 687b ldr r3, [r7, #4] - 8006556: 681b ldr r3, [r3, #0] - 8006558: 3308 adds r3, #8 - 800655a: f8d7 2094 ldr.w r2, [r7, #148] @ 0x94 - 800655e: 66ba str r2, [r7, #104] @ 0x68 - 8006560: 667b str r3, [r7, #100] @ 0x64 + 8006f3e: 6dbb ldr r3, [r7, #88] @ 0x58 + 8006f40: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000 + 8006f44: f023 0301 bic.w r3, r3, #1 + 8006f48: f8c7 3094 str.w r3, [r7, #148] @ 0x94 + 8006f4c: 687b ldr r3, [r7, #4] + 8006f4e: 681b ldr r3, [r3, #0] + 8006f50: 3308 adds r3, #8 + 8006f52: f8d7 2094 ldr.w r2, [r7, #148] @ 0x94 + 8006f56: 66ba str r2, [r7, #104] @ 0x68 + 8006f58: 667b str r3, [r7, #100] @ 0x64 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8006562: 6e79 ldr r1, [r7, #100] @ 0x64 - 8006564: 6eba ldr r2, [r7, #104] @ 0x68 - 8006566: e841 2300 strex r3, r2, [r1] - 800656a: 663b str r3, [r7, #96] @ 0x60 + 8006f5a: 6e79 ldr r1, [r7, #100] @ 0x64 + 8006f5c: 6eba ldr r2, [r7, #104] @ 0x68 + 8006f5e: e841 2300 strex r3, r2, [r1] + 8006f62: 663b str r3, [r7, #96] @ 0x60 return(result); - 800656c: 6e3b ldr r3, [r7, #96] @ 0x60 - 800656e: 2b00 cmp r3, #0 - 8006570: d1e1 bne.n 8006536 + 8006f64: 6e3b ldr r3, [r7, #96] @ 0x60 + 8006f66: 2b00 cmp r3, #0 + 8006f68: d1e1 bne.n 8006f2e /* Rx process is completed, restore huart->RxState to Ready */ huart->RxState = HAL_UART_STATE_READY; - 8006572: 687b ldr r3, [r7, #4] - 8006574: 2220 movs r2, #32 - 8006576: f8c3 208c str.w r2, [r3, #140] @ 0x8c + 8006f6a: 687b ldr r3, [r7, #4] + 8006f6c: 2220 movs r2, #32 + 8006f6e: f8c3 208c str.w r2, [r3, #140] @ 0x8c /* Clear RxISR function pointer */ huart->RxISR = NULL; - 800657a: 687b ldr r3, [r7, #4] - 800657c: 2200 movs r2, #0 - 800657e: 675a str r2, [r3, #116] @ 0x74 + 8006f72: 687b ldr r3, [r7, #4] + 8006f74: 2200 movs r2, #0 + 8006f76: 675a str r2, [r3, #116] @ 0x74 /* Initialize type of RxEvent to Transfer Complete */ huart->RxEventType = HAL_UART_RXEVENT_TC; - 8006580: 687b ldr r3, [r7, #4] - 8006582: 2200 movs r2, #0 - 8006584: 671a str r2, [r3, #112] @ 0x70 + 8006f78: 687b ldr r3, [r7, #4] + 8006f7a: 2200 movs r2, #0 + 8006f7c: 671a str r2, [r3, #112] @ 0x70 if (!(IS_LPUART_INSTANCE(huart->Instance))) - 8006586: 687b ldr r3, [r7, #4] - 8006588: 681b ldr r3, [r3, #0] - 800658a: 4a60 ldr r2, [pc, #384] @ (800670c ) - 800658c: 4293 cmp r3, r2 - 800658e: d021 beq.n 80065d4 + 8006f7e: 687b ldr r3, [r7, #4] + 8006f80: 681b ldr r3, [r3, #0] + 8006f82: 4a60 ldr r2, [pc, #384] @ (8007104 ) + 8006f84: 4293 cmp r3, r2 + 8006f86: d021 beq.n 8006fcc { /* Check that USART RTOEN bit is set */ if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U) - 8006590: 687b ldr r3, [r7, #4] - 8006592: 681b ldr r3, [r3, #0] - 8006594: 685b ldr r3, [r3, #4] - 8006596: f403 0300 and.w r3, r3, #8388608 @ 0x800000 - 800659a: 2b00 cmp r3, #0 - 800659c: d01a beq.n 80065d4 + 8006f88: 687b ldr r3, [r7, #4] + 8006f8a: 681b ldr r3, [r3, #0] + 8006f8c: 685b ldr r3, [r3, #4] + 8006f8e: f403 0300 and.w r3, r3, #8388608 @ 0x800000 + 8006f92: 2b00 cmp r3, #0 + 8006f94: d01a beq.n 8006fcc { /* Enable the UART Receiver Timeout Interrupt */ ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE); - 800659e: 687b ldr r3, [r7, #4] - 80065a0: 681b ldr r3, [r3, #0] - 80065a2: 64bb str r3, [r7, #72] @ 0x48 + 8006f96: 687b ldr r3, [r7, #4] + 8006f98: 681b ldr r3, [r3, #0] + 8006f9a: 64bb str r3, [r7, #72] @ 0x48 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 80065a4: 6cbb ldr r3, [r7, #72] @ 0x48 - 80065a6: e853 3f00 ldrex r3, [r3] - 80065aa: 647b str r3, [r7, #68] @ 0x44 + 8006f9c: 6cbb ldr r3, [r7, #72] @ 0x48 + 8006f9e: e853 3f00 ldrex r3, [r3] + 8006fa2: 647b str r3, [r7, #68] @ 0x44 return(result); - 80065ac: 6c7b ldr r3, [r7, #68] @ 0x44 - 80065ae: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000 - 80065b2: f8c7 3090 str.w r3, [r7, #144] @ 0x90 - 80065b6: 687b ldr r3, [r7, #4] - 80065b8: 681b ldr r3, [r3, #0] - 80065ba: 461a mov r2, r3 - 80065bc: f8d7 3090 ldr.w r3, [r7, #144] @ 0x90 - 80065c0: 657b str r3, [r7, #84] @ 0x54 - 80065c2: 653a str r2, [r7, #80] @ 0x50 + 8006fa4: 6c7b ldr r3, [r7, #68] @ 0x44 + 8006fa6: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000 + 8006faa: f8c7 3090 str.w r3, [r7, #144] @ 0x90 + 8006fae: 687b ldr r3, [r7, #4] + 8006fb0: 681b ldr r3, [r3, #0] + 8006fb2: 461a mov r2, r3 + 8006fb4: f8d7 3090 ldr.w r3, [r7, #144] @ 0x90 + 8006fb8: 657b str r3, [r7, #84] @ 0x54 + 8006fba: 653a str r2, [r7, #80] @ 0x50 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 80065c4: 6d39 ldr r1, [r7, #80] @ 0x50 - 80065c6: 6d7a ldr r2, [r7, #84] @ 0x54 - 80065c8: e841 2300 strex r3, r2, [r1] - 80065cc: 64fb str r3, [r7, #76] @ 0x4c + 8006fbc: 6d39 ldr r1, [r7, #80] @ 0x50 + 8006fbe: 6d7a ldr r2, [r7, #84] @ 0x54 + 8006fc0: e841 2300 strex r3, r2, [r1] + 8006fc4: 64fb str r3, [r7, #76] @ 0x4c return(result); - 80065ce: 6cfb ldr r3, [r7, #76] @ 0x4c - 80065d0: 2b00 cmp r3, #0 - 80065d2: d1e4 bne.n 800659e + 8006fc6: 6cfb ldr r3, [r7, #76] @ 0x4c + 8006fc8: 2b00 cmp r3, #0 + 8006fca: d1e4 bne.n 8006f96 } } /* Check current reception Mode : If Reception till IDLE event has been selected : */ if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) - 80065d4: 687b ldr r3, [r7, #4] - 80065d6: 6edb ldr r3, [r3, #108] @ 0x6c - 80065d8: 2b01 cmp r3, #1 - 80065da: d130 bne.n 800663e + 8006fcc: 687b ldr r3, [r7, #4] + 8006fce: 6edb ldr r3, [r3, #108] @ 0x6c + 8006fd0: 2b01 cmp r3, #1 + 8006fd2: d130 bne.n 8007036 { /* Set reception type to Standard */ huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; - 80065dc: 687b ldr r3, [r7, #4] - 80065de: 2200 movs r2, #0 - 80065e0: 66da str r2, [r3, #108] @ 0x6c + 8006fd4: 687b ldr r3, [r7, #4] + 8006fd6: 2200 movs r2, #0 + 8006fd8: 66da str r2, [r3, #108] @ 0x6c /* Disable IDLE interrupt */ ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); - 80065e2: 687b ldr r3, [r7, #4] - 80065e4: 681b ldr r3, [r3, #0] - 80065e6: 637b str r3, [r7, #52] @ 0x34 + 8006fda: 687b ldr r3, [r7, #4] + 8006fdc: 681b ldr r3, [r3, #0] + 8006fde: 637b str r3, [r7, #52] @ 0x34 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 80065e8: 6b7b ldr r3, [r7, #52] @ 0x34 - 80065ea: e853 3f00 ldrex r3, [r3] - 80065ee: 633b str r3, [r7, #48] @ 0x30 + 8006fe0: 6b7b ldr r3, [r7, #52] @ 0x34 + 8006fe2: e853 3f00 ldrex r3, [r3] + 8006fe6: 633b str r3, [r7, #48] @ 0x30 return(result); - 80065f0: 6b3b ldr r3, [r7, #48] @ 0x30 - 80065f2: f023 0310 bic.w r3, r3, #16 - 80065f6: f8c7 308c str.w r3, [r7, #140] @ 0x8c - 80065fa: 687b ldr r3, [r7, #4] - 80065fc: 681b ldr r3, [r3, #0] - 80065fe: 461a mov r2, r3 - 8006600: f8d7 308c ldr.w r3, [r7, #140] @ 0x8c - 8006604: 643b str r3, [r7, #64] @ 0x40 - 8006606: 63fa str r2, [r7, #60] @ 0x3c + 8006fe8: 6b3b ldr r3, [r7, #48] @ 0x30 + 8006fea: f023 0310 bic.w r3, r3, #16 + 8006fee: f8c7 308c str.w r3, [r7, #140] @ 0x8c + 8006ff2: 687b ldr r3, [r7, #4] + 8006ff4: 681b ldr r3, [r3, #0] + 8006ff6: 461a mov r2, r3 + 8006ff8: f8d7 308c ldr.w r3, [r7, #140] @ 0x8c + 8006ffc: 643b str r3, [r7, #64] @ 0x40 + 8006ffe: 63fa str r2, [r7, #60] @ 0x3c __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8006608: 6bf9 ldr r1, [r7, #60] @ 0x3c - 800660a: 6c3a ldr r2, [r7, #64] @ 0x40 - 800660c: e841 2300 strex r3, r2, [r1] - 8006610: 63bb str r3, [r7, #56] @ 0x38 + 8007000: 6bf9 ldr r1, [r7, #60] @ 0x3c + 8007002: 6c3a ldr r2, [r7, #64] @ 0x40 + 8007004: e841 2300 strex r3, r2, [r1] + 8007008: 63bb str r3, [r7, #56] @ 0x38 return(result); - 8006612: 6bbb ldr r3, [r7, #56] @ 0x38 - 8006614: 2b00 cmp r3, #0 - 8006616: d1e4 bne.n 80065e2 + 800700a: 6bbb ldr r3, [r7, #56] @ 0x38 + 800700c: 2b00 cmp r3, #0 + 800700e: d1e4 bne.n 8006fda if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET) - 8006618: 687b ldr r3, [r7, #4] - 800661a: 681b ldr r3, [r3, #0] - 800661c: 69db ldr r3, [r3, #28] - 800661e: f003 0310 and.w r3, r3, #16 - 8006622: 2b10 cmp r3, #16 - 8006624: d103 bne.n 800662e + 8007010: 687b ldr r3, [r7, #4] + 8007012: 681b ldr r3, [r3, #0] + 8007014: 69db ldr r3, [r3, #28] + 8007016: f003 0310 and.w r3, r3, #16 + 800701a: 2b10 cmp r3, #16 + 800701c: d103 bne.n 8007026 { /* Clear IDLE Flag */ __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF); - 8006626: 687b ldr r3, [r7, #4] - 8006628: 681b ldr r3, [r3, #0] - 800662a: 2210 movs r2, #16 - 800662c: 621a str r2, [r3, #32] + 800701e: 687b ldr r3, [r7, #4] + 8007020: 681b ldr r3, [r3, #0] + 8007022: 2210 movs r2, #16 + 8007024: 621a str r2, [r3, #32] #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered Rx Event callback*/ huart->RxEventCallback(huart, huart->RxXferSize); #else /*Call legacy weak Rx Event callback*/ HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize); - 800662e: 687b ldr r3, [r7, #4] - 8006630: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c - 8006634: 4619 mov r1, r3 - 8006636: 6878 ldr r0, [r7, #4] - 8006638: f7fe feaa bl 8005390 + 8007026: 687b ldr r3, [r7, #4] + 8007028: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c + 800702c: 4619 mov r1, r3 + 800702e: 6878 ldr r0, [r7, #4] + 8007030: f7fe feaa bl 8005d88 #else /*Call legacy weak Rx complete callback*/ HAL_UART_RxCpltCallback(huart); #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } break; - 800663c: e00e b.n 800665c + 8007034: e00e b.n 8007054 HAL_UART_RxCpltCallback(huart); - 800663e: 6878 ldr r0, [r7, #4] - 8006640: f7fa fac4 bl 8000bcc + 8007036: 6878 ldr r0, [r7, #4] + 8007038: f7fa fa2a bl 8001490 break; - 8006644: e00a b.n 800665c + 800703c: e00a b.n 8007054 while ((nb_rx_data > 0U) && ((isrflags & USART_ISR_RXNE_RXFNE) != 0U)) - 8006646: f8b7 309e ldrh.w r3, [r7, #158] @ 0x9e - 800664a: 2b00 cmp r3, #0 - 800664c: d006 beq.n 800665c - 800664e: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac - 8006652: f003 0320 and.w r3, r3, #32 - 8006656: 2b00 cmp r3, #0 - 8006658: f47f aece bne.w 80063f8 + 800703e: f8b7 309e ldrh.w r3, [r7, #158] @ 0x9e + 8007042: 2b00 cmp r3, #0 + 8007044: d006 beq.n 8007054 + 8007046: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac + 800704a: f003 0320 and.w r3, r3, #32 + 800704e: 2b00 cmp r3, #0 + 8007050: f47f aece bne.w 8006df0 /* When remaining number of bytes to receive is less than the RX FIFO threshold, next incoming frames are processed as if FIFO mode was disabled (i.e. one interrupt per received frame). */ rxdatacount = huart->RxXferCount; - 800665c: 687b ldr r3, [r7, #4] - 800665e: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e - 8006662: f8a7 308a strh.w r3, [r7, #138] @ 0x8a + 8007054: 687b ldr r3, [r7, #4] + 8007056: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e + 800705a: f8a7 308a strh.w r3, [r7, #138] @ 0x8a if ((rxdatacount != 0U) && (rxdatacount < huart->NbRxDataToProcess)) - 8006666: f8b7 308a ldrh.w r3, [r7, #138] @ 0x8a - 800666a: 2b00 cmp r3, #0 - 800666c: d049 beq.n 8006702 - 800666e: 687b ldr r3, [r7, #4] - 8006670: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68 - 8006674: f8b7 208a ldrh.w r2, [r7, #138] @ 0x8a - 8006678: 429a cmp r2, r3 - 800667a: d242 bcs.n 8006702 + 800705e: f8b7 308a ldrh.w r3, [r7, #138] @ 0x8a + 8007062: 2b00 cmp r3, #0 + 8007064: d049 beq.n 80070fa + 8007066: 687b ldr r3, [r7, #4] + 8007068: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68 + 800706c: f8b7 208a ldrh.w r2, [r7, #138] @ 0x8a + 8007070: 429a cmp r2, r3 + 8007072: d242 bcs.n 80070fa { /* Disable the UART RXFT interrupt*/ ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_RXFTIE); - 800667c: 687b ldr r3, [r7, #4] - 800667e: 681b ldr r3, [r3, #0] - 8006680: 3308 adds r3, #8 - 8006682: 623b str r3, [r7, #32] + 8007074: 687b ldr r3, [r7, #4] + 8007076: 681b ldr r3, [r3, #0] + 8007078: 3308 adds r3, #8 + 800707a: 623b str r3, [r7, #32] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8006684: 6a3b ldr r3, [r7, #32] - 8006686: e853 3f00 ldrex r3, [r3] - 800668a: 61fb str r3, [r7, #28] + 800707c: 6a3b ldr r3, [r7, #32] + 800707e: e853 3f00 ldrex r3, [r3] + 8007082: 61fb str r3, [r7, #28] return(result); - 800668c: 69fb ldr r3, [r7, #28] - 800668e: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000 - 8006692: f8c7 3084 str.w r3, [r7, #132] @ 0x84 - 8006696: 687b ldr r3, [r7, #4] - 8006698: 681b ldr r3, [r3, #0] - 800669a: 3308 adds r3, #8 - 800669c: f8d7 2084 ldr.w r2, [r7, #132] @ 0x84 - 80066a0: 62fa str r2, [r7, #44] @ 0x2c - 80066a2: 62bb str r3, [r7, #40] @ 0x28 + 8007084: 69fb ldr r3, [r7, #28] + 8007086: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000 + 800708a: f8c7 3084 str.w r3, [r7, #132] @ 0x84 + 800708e: 687b ldr r3, [r7, #4] + 8007090: 681b ldr r3, [r3, #0] + 8007092: 3308 adds r3, #8 + 8007094: f8d7 2084 ldr.w r2, [r7, #132] @ 0x84 + 8007098: 62fa str r2, [r7, #44] @ 0x2c + 800709a: 62bb str r3, [r7, #40] @ 0x28 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 80066a4: 6ab9 ldr r1, [r7, #40] @ 0x28 - 80066a6: 6afa ldr r2, [r7, #44] @ 0x2c - 80066a8: e841 2300 strex r3, r2, [r1] - 80066ac: 627b str r3, [r7, #36] @ 0x24 + 800709c: 6ab9 ldr r1, [r7, #40] @ 0x28 + 800709e: 6afa ldr r2, [r7, #44] @ 0x2c + 80070a0: e841 2300 strex r3, r2, [r1] + 80070a4: 627b str r3, [r7, #36] @ 0x24 return(result); - 80066ae: 6a7b ldr r3, [r7, #36] @ 0x24 - 80066b0: 2b00 cmp r3, #0 - 80066b2: d1e3 bne.n 800667c + 80070a6: 6a7b ldr r3, [r7, #36] @ 0x24 + 80070a8: 2b00 cmp r3, #0 + 80070aa: d1e3 bne.n 8007074 /* Update the RxISR function pointer */ huart->RxISR = UART_RxISR_8BIT; - 80066b4: 687b ldr r3, [r7, #4] - 80066b6: 4a16 ldr r2, [pc, #88] @ (8006710 ) - 80066b8: 675a str r2, [r3, #116] @ 0x74 + 80070ac: 687b ldr r3, [r7, #4] + 80070ae: 4a16 ldr r2, [pc, #88] @ (8007108 ) + 80070b0: 675a str r2, [r3, #116] @ 0x74 /* Enable the UART Data Register Not Empty interrupt */ ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_RXNEIE_RXFNEIE); - 80066ba: 687b ldr r3, [r7, #4] - 80066bc: 681b ldr r3, [r3, #0] - 80066be: 60fb str r3, [r7, #12] + 80070b2: 687b ldr r3, [r7, #4] + 80070b4: 681b ldr r3, [r3, #0] + 80070b6: 60fb str r3, [r7, #12] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 80066c0: 68fb ldr r3, [r7, #12] - 80066c2: e853 3f00 ldrex r3, [r3] - 80066c6: 60bb str r3, [r7, #8] + 80070b8: 68fb ldr r3, [r7, #12] + 80070ba: e853 3f00 ldrex r3, [r3] + 80070be: 60bb str r3, [r7, #8] return(result); - 80066c8: 68bb ldr r3, [r7, #8] - 80066ca: f043 0320 orr.w r3, r3, #32 - 80066ce: f8c7 3080 str.w r3, [r7, #128] @ 0x80 - 80066d2: 687b ldr r3, [r7, #4] - 80066d4: 681b ldr r3, [r3, #0] - 80066d6: 461a mov r2, r3 - 80066d8: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80 - 80066dc: 61bb str r3, [r7, #24] - 80066de: 617a str r2, [r7, #20] + 80070c0: 68bb ldr r3, [r7, #8] + 80070c2: f043 0320 orr.w r3, r3, #32 + 80070c6: f8c7 3080 str.w r3, [r7, #128] @ 0x80 + 80070ca: 687b ldr r3, [r7, #4] + 80070cc: 681b ldr r3, [r3, #0] + 80070ce: 461a mov r2, r3 + 80070d0: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80 + 80070d4: 61bb str r3, [r7, #24] + 80070d6: 617a str r2, [r7, #20] __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 80066e0: 6979 ldr r1, [r7, #20] - 80066e2: 69ba ldr r2, [r7, #24] - 80066e4: e841 2300 strex r3, r2, [r1] - 80066e8: 613b str r3, [r7, #16] + 80070d8: 6979 ldr r1, [r7, #20] + 80070da: 69ba ldr r2, [r7, #24] + 80070dc: e841 2300 strex r3, r2, [r1] + 80070e0: 613b str r3, [r7, #16] return(result); - 80066ea: 693b ldr r3, [r7, #16] - 80066ec: 2b00 cmp r3, #0 - 80066ee: d1e4 bne.n 80066ba + 80070e2: 693b ldr r3, [r7, #16] + 80070e4: 2b00 cmp r3, #0 + 80070e6: d1e4 bne.n 80070b2 else { /* Clear RXNE interrupt flag */ __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST); } } - 80066f0: e007 b.n 8006702 + 80070e8: e007 b.n 80070fa __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST); - 80066f2: 687b ldr r3, [r7, #4] - 80066f4: 681b ldr r3, [r3, #0] - 80066f6: 699a ldr r2, [r3, #24] - 80066f8: 687b ldr r3, [r7, #4] - 80066fa: 681b ldr r3, [r3, #0] - 80066fc: f042 0208 orr.w r2, r2, #8 - 8006700: 619a str r2, [r3, #24] + 80070ea: 687b ldr r3, [r7, #4] + 80070ec: 681b ldr r3, [r3, #0] + 80070ee: 699a ldr r2, [r3, #24] + 80070f0: 687b ldr r3, [r7, #4] + 80070f2: 681b ldr r3, [r3, #0] + 80070f4: f042 0208 orr.w r2, r2, #8 + 80070f8: 619a str r2, [r3, #24] } - 8006702: bf00 nop - 8006704: 37b0 adds r7, #176 @ 0xb0 - 8006706: 46bd mov sp, r7 - 8006708: bd80 pop {r7, pc} - 800670a: bf00 nop - 800670c: 40008000 .word 0x40008000 - 8006710: 08006041 .word 0x08006041 + 80070fa: bf00 nop + 80070fc: 37b0 adds r7, #176 @ 0xb0 + 80070fe: 46bd mov sp, r7 + 8007100: bd80 pop {r7, pc} + 8007102: bf00 nop + 8007104: 40008000 .word 0x40008000 + 8007108: 08006a39 .word 0x08006a39 -08006714 : +0800710c : * interruptions have been enabled by HAL_UART_Receive_IT() * @param huart UART handle. * @retval None */ static void UART_RxISR_16BIT_FIFOEN(UART_HandleTypeDef *huart) { - 8006714: b580 push {r7, lr} - 8006716: b0ae sub sp, #184 @ 0xb8 - 8006718: af00 add r7, sp, #0 - 800671a: 6078 str r0, [r7, #4] + 800710c: b580 push {r7, lr} + 800710e: b0ae sub sp, #184 @ 0xb8 + 8007110: af00 add r7, sp, #0 + 8007112: 6078 str r0, [r7, #4] uint16_t *tmp; uint16_t uhMask = huart->Mask; - 800671c: 687b ldr r3, [r7, #4] - 800671e: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60 - 8006722: f8a7 30b2 strh.w r3, [r7, #178] @ 0xb2 + 8007114: 687b ldr r3, [r7, #4] + 8007116: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60 + 800711a: f8a7 30b2 strh.w r3, [r7, #178] @ 0xb2 uint16_t uhdata; uint16_t nb_rx_data; uint16_t rxdatacount; uint32_t isrflags = READ_REG(huart->Instance->ISR); - 8006726: 687b ldr r3, [r7, #4] - 8006728: 681b ldr r3, [r3, #0] - 800672a: 69db ldr r3, [r3, #28] - 800672c: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 + 800711e: 687b ldr r3, [r7, #4] + 8007120: 681b ldr r3, [r3, #0] + 8007122: 69db ldr r3, [r3, #28] + 8007124: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 uint32_t cr1its = READ_REG(huart->Instance->CR1); - 8006730: 687b ldr r3, [r7, #4] - 8006732: 681b ldr r3, [r3, #0] - 8006734: 681b ldr r3, [r3, #0] - 8006736: f8c7 30ac str.w r3, [r7, #172] @ 0xac + 8007128: 687b ldr r3, [r7, #4] + 800712a: 681b ldr r3, [r3, #0] + 800712c: 681b ldr r3, [r3, #0] + 800712e: f8c7 30ac str.w r3, [r7, #172] @ 0xac uint32_t cr3its = READ_REG(huart->Instance->CR3); - 800673a: 687b ldr r3, [r7, #4] - 800673c: 681b ldr r3, [r3, #0] - 800673e: 689b ldr r3, [r3, #8] - 8006740: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8 + 8007132: 687b ldr r3, [r7, #4] + 8007134: 681b ldr r3, [r3, #0] + 8007136: 689b ldr r3, [r3, #8] + 8007138: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8 /* Check that a Rx process is ongoing */ if (huart->RxState == HAL_UART_STATE_BUSY_RX) - 8006744: 687b ldr r3, [r7, #4] - 8006746: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c - 800674a: 2b22 cmp r3, #34 @ 0x22 - 800674c: f040 8187 bne.w 8006a5e + 800713c: 687b ldr r3, [r7, #4] + 800713e: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c + 8007142: 2b22 cmp r3, #34 @ 0x22 + 8007144: f040 8187 bne.w 8007456 { nb_rx_data = huart->NbRxDataToProcess; - 8006750: 687b ldr r3, [r7, #4] - 8006752: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68 - 8006756: f8a7 30a6 strh.w r3, [r7, #166] @ 0xa6 + 8007148: 687b ldr r3, [r7, #4] + 800714a: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68 + 800714e: f8a7 30a6 strh.w r3, [r7, #166] @ 0xa6 while ((nb_rx_data > 0U) && ((isrflags & USART_ISR_RXNE_RXFNE) != 0U)) - 800675a: e12a b.n 80069b2 + 8007152: e12a b.n 80073aa { uhdata = (uint16_t) READ_REG(huart->Instance->RDR); - 800675c: 687b ldr r3, [r7, #4] - 800675e: 681b ldr r3, [r3, #0] - 8006760: 6a5b ldr r3, [r3, #36] @ 0x24 - 8006762: f8a7 30a4 strh.w r3, [r7, #164] @ 0xa4 + 8007154: 687b ldr r3, [r7, #4] + 8007156: 681b ldr r3, [r3, #0] + 8007158: 6a5b ldr r3, [r3, #36] @ 0x24 + 800715a: f8a7 30a4 strh.w r3, [r7, #164] @ 0xa4 tmp = (uint16_t *) huart->pRxBuffPtr ; - 8006766: 687b ldr r3, [r7, #4] - 8006768: 6d9b ldr r3, [r3, #88] @ 0x58 - 800676a: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0 + 800715e: 687b ldr r3, [r7, #4] + 8007160: 6d9b ldr r3, [r3, #88] @ 0x58 + 8007162: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0 *tmp = (uint16_t)(uhdata & uhMask); - 800676e: f8b7 20a4 ldrh.w r2, [r7, #164] @ 0xa4 - 8006772: f8b7 30b2 ldrh.w r3, [r7, #178] @ 0xb2 - 8006776: 4013 ands r3, r2 - 8006778: b29a uxth r2, r3 - 800677a: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0 - 800677e: 801a strh r2, [r3, #0] + 8007166: f8b7 20a4 ldrh.w r2, [r7, #164] @ 0xa4 + 800716a: f8b7 30b2 ldrh.w r3, [r7, #178] @ 0xb2 + 800716e: 4013 ands r3, r2 + 8007170: b29a uxth r2, r3 + 8007172: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0 + 8007176: 801a strh r2, [r3, #0] huart->pRxBuffPtr += 2U; - 8006780: 687b ldr r3, [r7, #4] - 8006782: 6d9b ldr r3, [r3, #88] @ 0x58 - 8006784: 1c9a adds r2, r3, #2 - 8006786: 687b ldr r3, [r7, #4] - 8006788: 659a str r2, [r3, #88] @ 0x58 + 8007178: 687b ldr r3, [r7, #4] + 800717a: 6d9b ldr r3, [r3, #88] @ 0x58 + 800717c: 1c9a adds r2, r3, #2 + 800717e: 687b ldr r3, [r7, #4] + 8007180: 659a str r2, [r3, #88] @ 0x58 huart->RxXferCount--; - 800678a: 687b ldr r3, [r7, #4] - 800678c: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e - 8006790: b29b uxth r3, r3 - 8006792: 3b01 subs r3, #1 - 8006794: b29a uxth r2, r3 - 8006796: 687b ldr r3, [r7, #4] - 8006798: f8a3 205e strh.w r2, [r3, #94] @ 0x5e + 8007182: 687b ldr r3, [r7, #4] + 8007184: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e + 8007188: b29b uxth r3, r3 + 800718a: 3b01 subs r3, #1 + 800718c: b29a uxth r2, r3 + 800718e: 687b ldr r3, [r7, #4] + 8007190: f8a3 205e strh.w r2, [r3, #94] @ 0x5e isrflags = READ_REG(huart->Instance->ISR); - 800679c: 687b ldr r3, [r7, #4] - 800679e: 681b ldr r3, [r3, #0] - 80067a0: 69db ldr r3, [r3, #28] - 80067a2: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 + 8007194: 687b ldr r3, [r7, #4] + 8007196: 681b ldr r3, [r3, #0] + 8007198: 69db ldr r3, [r3, #28] + 800719a: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 /* If some non blocking errors occurred */ if ((isrflags & (USART_ISR_PE | USART_ISR_FE | USART_ISR_NE)) != 0U) - 80067a6: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4 - 80067aa: f003 0307 and.w r3, r3, #7 - 80067ae: 2b00 cmp r3, #0 - 80067b0: d053 beq.n 800685a + 800719e: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4 + 80071a2: f003 0307 and.w r3, r3, #7 + 80071a6: 2b00 cmp r3, #0 + 80071a8: d053 beq.n 8007252 { /* UART parity error interrupt occurred -------------------------------------*/ if (((isrflags & USART_ISR_PE) != 0U) && ((cr1its & USART_CR1_PEIE) != 0U)) - 80067b2: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4 - 80067b6: f003 0301 and.w r3, r3, #1 - 80067ba: 2b00 cmp r3, #0 - 80067bc: d011 beq.n 80067e2 - 80067be: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac - 80067c2: f403 7380 and.w r3, r3, #256 @ 0x100 - 80067c6: 2b00 cmp r3, #0 - 80067c8: d00b beq.n 80067e2 + 80071aa: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4 + 80071ae: f003 0301 and.w r3, r3, #1 + 80071b2: 2b00 cmp r3, #0 + 80071b4: d011 beq.n 80071da + 80071b6: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac + 80071ba: f403 7380 and.w r3, r3, #256 @ 0x100 + 80071be: 2b00 cmp r3, #0 + 80071c0: d00b beq.n 80071da { __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_PEF); - 80067ca: 687b ldr r3, [r7, #4] - 80067cc: 681b ldr r3, [r3, #0] - 80067ce: 2201 movs r2, #1 - 80067d0: 621a str r2, [r3, #32] + 80071c2: 687b ldr r3, [r7, #4] + 80071c4: 681b ldr r3, [r3, #0] + 80071c6: 2201 movs r2, #1 + 80071c8: 621a str r2, [r3, #32] huart->ErrorCode |= HAL_UART_ERROR_PE; - 80067d2: 687b ldr r3, [r7, #4] - 80067d4: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 - 80067d8: f043 0201 orr.w r2, r3, #1 - 80067dc: 687b ldr r3, [r7, #4] - 80067de: f8c3 2090 str.w r2, [r3, #144] @ 0x90 + 80071ca: 687b ldr r3, [r7, #4] + 80071cc: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 + 80071d0: f043 0201 orr.w r2, r3, #1 + 80071d4: 687b ldr r3, [r7, #4] + 80071d6: f8c3 2090 str.w r2, [r3, #144] @ 0x90 } /* UART frame error interrupt occurred --------------------------------------*/ if (((isrflags & USART_ISR_FE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U)) - 80067e2: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4 - 80067e6: f003 0302 and.w r3, r3, #2 - 80067ea: 2b00 cmp r3, #0 - 80067ec: d011 beq.n 8006812 - 80067ee: f8d7 30a8 ldr.w r3, [r7, #168] @ 0xa8 - 80067f2: f003 0301 and.w r3, r3, #1 - 80067f6: 2b00 cmp r3, #0 - 80067f8: d00b beq.n 8006812 + 80071da: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4 + 80071de: f003 0302 and.w r3, r3, #2 + 80071e2: 2b00 cmp r3, #0 + 80071e4: d011 beq.n 800720a + 80071e6: f8d7 30a8 ldr.w r3, [r7, #168] @ 0xa8 + 80071ea: f003 0301 and.w r3, r3, #1 + 80071ee: 2b00 cmp r3, #0 + 80071f0: d00b beq.n 800720a { __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_FEF); - 80067fa: 687b ldr r3, [r7, #4] - 80067fc: 681b ldr r3, [r3, #0] - 80067fe: 2202 movs r2, #2 - 8006800: 621a str r2, [r3, #32] + 80071f2: 687b ldr r3, [r7, #4] + 80071f4: 681b ldr r3, [r3, #0] + 80071f6: 2202 movs r2, #2 + 80071f8: 621a str r2, [r3, #32] huart->ErrorCode |= HAL_UART_ERROR_FE; - 8006802: 687b ldr r3, [r7, #4] - 8006804: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 - 8006808: f043 0204 orr.w r2, r3, #4 - 800680c: 687b ldr r3, [r7, #4] - 800680e: f8c3 2090 str.w r2, [r3, #144] @ 0x90 + 80071fa: 687b ldr r3, [r7, #4] + 80071fc: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 + 8007200: f043 0204 orr.w r2, r3, #4 + 8007204: 687b ldr r3, [r7, #4] + 8007206: f8c3 2090 str.w r2, [r3, #144] @ 0x90 } /* UART noise error interrupt occurred --------------------------------------*/ if (((isrflags & USART_ISR_NE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U)) - 8006812: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4 - 8006816: f003 0304 and.w r3, r3, #4 - 800681a: 2b00 cmp r3, #0 - 800681c: d011 beq.n 8006842 - 800681e: f8d7 30a8 ldr.w r3, [r7, #168] @ 0xa8 - 8006822: f003 0301 and.w r3, r3, #1 - 8006826: 2b00 cmp r3, #0 - 8006828: d00b beq.n 8006842 + 800720a: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4 + 800720e: f003 0304 and.w r3, r3, #4 + 8007212: 2b00 cmp r3, #0 + 8007214: d011 beq.n 800723a + 8007216: f8d7 30a8 ldr.w r3, [r7, #168] @ 0xa8 + 800721a: f003 0301 and.w r3, r3, #1 + 800721e: 2b00 cmp r3, #0 + 8007220: d00b beq.n 800723a { __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_NEF); - 800682a: 687b ldr r3, [r7, #4] - 800682c: 681b ldr r3, [r3, #0] - 800682e: 2204 movs r2, #4 - 8006830: 621a str r2, [r3, #32] + 8007222: 687b ldr r3, [r7, #4] + 8007224: 681b ldr r3, [r3, #0] + 8007226: 2204 movs r2, #4 + 8007228: 621a str r2, [r3, #32] huart->ErrorCode |= HAL_UART_ERROR_NE; - 8006832: 687b ldr r3, [r7, #4] - 8006834: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 - 8006838: f043 0202 orr.w r2, r3, #2 - 800683c: 687b ldr r3, [r7, #4] - 800683e: f8c3 2090 str.w r2, [r3, #144] @ 0x90 + 800722a: 687b ldr r3, [r7, #4] + 800722c: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 + 8007230: f043 0202 orr.w r2, r3, #2 + 8007234: 687b ldr r3, [r7, #4] + 8007236: f8c3 2090 str.w r2, [r3, #144] @ 0x90 } /* Call UART Error Call back function if need be ----------------------------*/ if (huart->ErrorCode != HAL_UART_ERROR_NONE) - 8006842: 687b ldr r3, [r7, #4] - 8006844: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 - 8006848: 2b00 cmp r3, #0 - 800684a: d006 beq.n 800685a + 800723a: 687b ldr r3, [r7, #4] + 800723c: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90 + 8007240: 2b00 cmp r3, #0 + 8007242: d006 beq.n 8007252 #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered error callback*/ huart->ErrorCallback(huart); #else /*Call legacy weak error callback*/ HAL_UART_ErrorCallback(huart); - 800684c: 6878 ldr r0, [r7, #4] - 800684e: f7fe fd95 bl 800537c + 8007244: 6878 ldr r0, [r7, #4] + 8007246: f7fe fd95 bl 8005d74 #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ huart->ErrorCode = HAL_UART_ERROR_NONE; - 8006852: 687b ldr r3, [r7, #4] - 8006854: 2200 movs r2, #0 - 8006856: f8c3 2090 str.w r2, [r3, #144] @ 0x90 + 800724a: 687b ldr r3, [r7, #4] + 800724c: 2200 movs r2, #0 + 800724e: f8c3 2090 str.w r2, [r3, #144] @ 0x90 } } if (huart->RxXferCount == 0U) - 800685a: 687b ldr r3, [r7, #4] - 800685c: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e - 8006860: b29b uxth r3, r3 - 8006862: 2b00 cmp r3, #0 - 8006864: f040 80a5 bne.w 80069b2 + 8007252: 687b ldr r3, [r7, #4] + 8007254: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e + 8007258: b29b uxth r3, r3 + 800725a: 2b00 cmp r3, #0 + 800725c: f040 80a5 bne.w 80073aa { /* Disable the UART Parity Error Interrupt and RXFT interrupt*/ ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE); - 8006868: 687b ldr r3, [r7, #4] - 800686a: 681b ldr r3, [r3, #0] - 800686c: 677b str r3, [r7, #116] @ 0x74 + 8007260: 687b ldr r3, [r7, #4] + 8007262: 681b ldr r3, [r3, #0] + 8007264: 677b str r3, [r7, #116] @ 0x74 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 800686e: 6f7b ldr r3, [r7, #116] @ 0x74 - 8006870: e853 3f00 ldrex r3, [r3] - 8006874: 673b str r3, [r7, #112] @ 0x70 + 8007266: 6f7b ldr r3, [r7, #116] @ 0x74 + 8007268: e853 3f00 ldrex r3, [r3] + 800726c: 673b str r3, [r7, #112] @ 0x70 return(result); - 8006876: 6f3b ldr r3, [r7, #112] @ 0x70 - 8006878: f423 7380 bic.w r3, r3, #256 @ 0x100 - 800687c: f8c7 309c str.w r3, [r7, #156] @ 0x9c - 8006880: 687b ldr r3, [r7, #4] - 8006882: 681b ldr r3, [r3, #0] - 8006884: 461a mov r2, r3 - 8006886: f8d7 309c ldr.w r3, [r7, #156] @ 0x9c - 800688a: f8c7 3080 str.w r3, [r7, #128] @ 0x80 - 800688e: 67fa str r2, [r7, #124] @ 0x7c + 800726e: 6f3b ldr r3, [r7, #112] @ 0x70 + 8007270: f423 7380 bic.w r3, r3, #256 @ 0x100 + 8007274: f8c7 309c str.w r3, [r7, #156] @ 0x9c + 8007278: 687b ldr r3, [r7, #4] + 800727a: 681b ldr r3, [r3, #0] + 800727c: 461a mov r2, r3 + 800727e: f8d7 309c ldr.w r3, [r7, #156] @ 0x9c + 8007282: f8c7 3080 str.w r3, [r7, #128] @ 0x80 + 8007286: 67fa str r2, [r7, #124] @ 0x7c __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8006890: 6ff9 ldr r1, [r7, #124] @ 0x7c - 8006892: f8d7 2080 ldr.w r2, [r7, #128] @ 0x80 - 8006896: e841 2300 strex r3, r2, [r1] - 800689a: 67bb str r3, [r7, #120] @ 0x78 + 8007288: 6ff9 ldr r1, [r7, #124] @ 0x7c + 800728a: f8d7 2080 ldr.w r2, [r7, #128] @ 0x80 + 800728e: e841 2300 strex r3, r2, [r1] + 8007292: 67bb str r3, [r7, #120] @ 0x78 return(result); - 800689c: 6fbb ldr r3, [r7, #120] @ 0x78 - 800689e: 2b00 cmp r3, #0 - 80068a0: d1e2 bne.n 8006868 + 8007294: 6fbb ldr r3, [r7, #120] @ 0x78 + 8007296: 2b00 cmp r3, #0 + 8007298: d1e2 bne.n 8007260 /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) and RX FIFO Threshold interrupt */ ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE)); - 80068a2: 687b ldr r3, [r7, #4] - 80068a4: 681b ldr r3, [r3, #0] - 80068a6: 3308 adds r3, #8 - 80068a8: 663b str r3, [r7, #96] @ 0x60 + 800729a: 687b ldr r3, [r7, #4] + 800729c: 681b ldr r3, [r3, #0] + 800729e: 3308 adds r3, #8 + 80072a0: 663b str r3, [r7, #96] @ 0x60 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 80068aa: 6e3b ldr r3, [r7, #96] @ 0x60 - 80068ac: e853 3f00 ldrex r3, [r3] - 80068b0: 65fb str r3, [r7, #92] @ 0x5c + 80072a2: 6e3b ldr r3, [r7, #96] @ 0x60 + 80072a4: e853 3f00 ldrex r3, [r3] + 80072a8: 65fb str r3, [r7, #92] @ 0x5c return(result); - 80068b2: 6dfb ldr r3, [r7, #92] @ 0x5c - 80068b4: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000 - 80068b8: f023 0301 bic.w r3, r3, #1 - 80068bc: f8c7 3098 str.w r3, [r7, #152] @ 0x98 - 80068c0: 687b ldr r3, [r7, #4] - 80068c2: 681b ldr r3, [r3, #0] - 80068c4: 3308 adds r3, #8 - 80068c6: f8d7 2098 ldr.w r2, [r7, #152] @ 0x98 - 80068ca: 66fa str r2, [r7, #108] @ 0x6c - 80068cc: 66bb str r3, [r7, #104] @ 0x68 + 80072aa: 6dfb ldr r3, [r7, #92] @ 0x5c + 80072ac: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000 + 80072b0: f023 0301 bic.w r3, r3, #1 + 80072b4: f8c7 3098 str.w r3, [r7, #152] @ 0x98 + 80072b8: 687b ldr r3, [r7, #4] + 80072ba: 681b ldr r3, [r3, #0] + 80072bc: 3308 adds r3, #8 + 80072be: f8d7 2098 ldr.w r2, [r7, #152] @ 0x98 + 80072c2: 66fa str r2, [r7, #108] @ 0x6c + 80072c4: 66bb str r3, [r7, #104] @ 0x68 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 80068ce: 6eb9 ldr r1, [r7, #104] @ 0x68 - 80068d0: 6efa ldr r2, [r7, #108] @ 0x6c - 80068d2: e841 2300 strex r3, r2, [r1] - 80068d6: 667b str r3, [r7, #100] @ 0x64 + 80072c6: 6eb9 ldr r1, [r7, #104] @ 0x68 + 80072c8: 6efa ldr r2, [r7, #108] @ 0x6c + 80072ca: e841 2300 strex r3, r2, [r1] + 80072ce: 667b str r3, [r7, #100] @ 0x64 return(result); - 80068d8: 6e7b ldr r3, [r7, #100] @ 0x64 - 80068da: 2b00 cmp r3, #0 - 80068dc: d1e1 bne.n 80068a2 + 80072d0: 6e7b ldr r3, [r7, #100] @ 0x64 + 80072d2: 2b00 cmp r3, #0 + 80072d4: d1e1 bne.n 800729a /* Rx process is completed, restore huart->RxState to Ready */ huart->RxState = HAL_UART_STATE_READY; - 80068de: 687b ldr r3, [r7, #4] - 80068e0: 2220 movs r2, #32 - 80068e2: f8c3 208c str.w r2, [r3, #140] @ 0x8c + 80072d6: 687b ldr r3, [r7, #4] + 80072d8: 2220 movs r2, #32 + 80072da: f8c3 208c str.w r2, [r3, #140] @ 0x8c /* Clear RxISR function pointer */ huart->RxISR = NULL; - 80068e6: 687b ldr r3, [r7, #4] - 80068e8: 2200 movs r2, #0 - 80068ea: 675a str r2, [r3, #116] @ 0x74 + 80072de: 687b ldr r3, [r7, #4] + 80072e0: 2200 movs r2, #0 + 80072e2: 675a str r2, [r3, #116] @ 0x74 /* Initialize type of RxEvent to Transfer Complete */ huart->RxEventType = HAL_UART_RXEVENT_TC; - 80068ec: 687b ldr r3, [r7, #4] - 80068ee: 2200 movs r2, #0 - 80068f0: 671a str r2, [r3, #112] @ 0x70 + 80072e4: 687b ldr r3, [r7, #4] + 80072e6: 2200 movs r2, #0 + 80072e8: 671a str r2, [r3, #112] @ 0x70 if (!(IS_LPUART_INSTANCE(huart->Instance))) - 80068f2: 687b ldr r3, [r7, #4] - 80068f4: 681b ldr r3, [r3, #0] - 80068f6: 4a60 ldr r2, [pc, #384] @ (8006a78 ) - 80068f8: 4293 cmp r3, r2 - 80068fa: d021 beq.n 8006940 + 80072ea: 687b ldr r3, [r7, #4] + 80072ec: 681b ldr r3, [r3, #0] + 80072ee: 4a60 ldr r2, [pc, #384] @ (8007470 ) + 80072f0: 4293 cmp r3, r2 + 80072f2: d021 beq.n 8007338 { /* Check that USART RTOEN bit is set */ if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U) - 80068fc: 687b ldr r3, [r7, #4] - 80068fe: 681b ldr r3, [r3, #0] - 8006900: 685b ldr r3, [r3, #4] - 8006902: f403 0300 and.w r3, r3, #8388608 @ 0x800000 - 8006906: 2b00 cmp r3, #0 - 8006908: d01a beq.n 8006940 + 80072f4: 687b ldr r3, [r7, #4] + 80072f6: 681b ldr r3, [r3, #0] + 80072f8: 685b ldr r3, [r3, #4] + 80072fa: f403 0300 and.w r3, r3, #8388608 @ 0x800000 + 80072fe: 2b00 cmp r3, #0 + 8007300: d01a beq.n 8007338 { /* Enable the UART Receiver Timeout Interrupt */ ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE); - 800690a: 687b ldr r3, [r7, #4] - 800690c: 681b ldr r3, [r3, #0] - 800690e: 64fb str r3, [r7, #76] @ 0x4c + 8007302: 687b ldr r3, [r7, #4] + 8007304: 681b ldr r3, [r3, #0] + 8007306: 64fb str r3, [r7, #76] @ 0x4c __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8006910: 6cfb ldr r3, [r7, #76] @ 0x4c - 8006912: e853 3f00 ldrex r3, [r3] - 8006916: 64bb str r3, [r7, #72] @ 0x48 + 8007308: 6cfb ldr r3, [r7, #76] @ 0x4c + 800730a: e853 3f00 ldrex r3, [r3] + 800730e: 64bb str r3, [r7, #72] @ 0x48 return(result); - 8006918: 6cbb ldr r3, [r7, #72] @ 0x48 - 800691a: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000 - 800691e: f8c7 3094 str.w r3, [r7, #148] @ 0x94 - 8006922: 687b ldr r3, [r7, #4] - 8006924: 681b ldr r3, [r3, #0] - 8006926: 461a mov r2, r3 - 8006928: f8d7 3094 ldr.w r3, [r7, #148] @ 0x94 - 800692c: 65bb str r3, [r7, #88] @ 0x58 - 800692e: 657a str r2, [r7, #84] @ 0x54 + 8007310: 6cbb ldr r3, [r7, #72] @ 0x48 + 8007312: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000 + 8007316: f8c7 3094 str.w r3, [r7, #148] @ 0x94 + 800731a: 687b ldr r3, [r7, #4] + 800731c: 681b ldr r3, [r3, #0] + 800731e: 461a mov r2, r3 + 8007320: f8d7 3094 ldr.w r3, [r7, #148] @ 0x94 + 8007324: 65bb str r3, [r7, #88] @ 0x58 + 8007326: 657a str r2, [r7, #84] @ 0x54 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8006930: 6d79 ldr r1, [r7, #84] @ 0x54 - 8006932: 6dba ldr r2, [r7, #88] @ 0x58 - 8006934: e841 2300 strex r3, r2, [r1] - 8006938: 653b str r3, [r7, #80] @ 0x50 + 8007328: 6d79 ldr r1, [r7, #84] @ 0x54 + 800732a: 6dba ldr r2, [r7, #88] @ 0x58 + 800732c: e841 2300 strex r3, r2, [r1] + 8007330: 653b str r3, [r7, #80] @ 0x50 return(result); - 800693a: 6d3b ldr r3, [r7, #80] @ 0x50 - 800693c: 2b00 cmp r3, #0 - 800693e: d1e4 bne.n 800690a + 8007332: 6d3b ldr r3, [r7, #80] @ 0x50 + 8007334: 2b00 cmp r3, #0 + 8007336: d1e4 bne.n 8007302 } } /* Check current reception Mode : If Reception till IDLE event has been selected : */ if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) - 8006940: 687b ldr r3, [r7, #4] - 8006942: 6edb ldr r3, [r3, #108] @ 0x6c - 8006944: 2b01 cmp r3, #1 - 8006946: d130 bne.n 80069aa + 8007338: 687b ldr r3, [r7, #4] + 800733a: 6edb ldr r3, [r3, #108] @ 0x6c + 800733c: 2b01 cmp r3, #1 + 800733e: d130 bne.n 80073a2 { /* Set reception type to Standard */ huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; - 8006948: 687b ldr r3, [r7, #4] - 800694a: 2200 movs r2, #0 - 800694c: 66da str r2, [r3, #108] @ 0x6c + 8007340: 687b ldr r3, [r7, #4] + 8007342: 2200 movs r2, #0 + 8007344: 66da str r2, [r3, #108] @ 0x6c /* Disable IDLE interrupt */ ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); - 800694e: 687b ldr r3, [r7, #4] - 8006950: 681b ldr r3, [r3, #0] - 8006952: 63bb str r3, [r7, #56] @ 0x38 + 8007346: 687b ldr r3, [r7, #4] + 8007348: 681b ldr r3, [r3, #0] + 800734a: 63bb str r3, [r7, #56] @ 0x38 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8006954: 6bbb ldr r3, [r7, #56] @ 0x38 - 8006956: e853 3f00 ldrex r3, [r3] - 800695a: 637b str r3, [r7, #52] @ 0x34 + 800734c: 6bbb ldr r3, [r7, #56] @ 0x38 + 800734e: e853 3f00 ldrex r3, [r3] + 8007352: 637b str r3, [r7, #52] @ 0x34 return(result); - 800695c: 6b7b ldr r3, [r7, #52] @ 0x34 - 800695e: f023 0310 bic.w r3, r3, #16 - 8006962: f8c7 3090 str.w r3, [r7, #144] @ 0x90 - 8006966: 687b ldr r3, [r7, #4] - 8006968: 681b ldr r3, [r3, #0] - 800696a: 461a mov r2, r3 - 800696c: f8d7 3090 ldr.w r3, [r7, #144] @ 0x90 - 8006970: 647b str r3, [r7, #68] @ 0x44 - 8006972: 643a str r2, [r7, #64] @ 0x40 + 8007354: 6b7b ldr r3, [r7, #52] @ 0x34 + 8007356: f023 0310 bic.w r3, r3, #16 + 800735a: f8c7 3090 str.w r3, [r7, #144] @ 0x90 + 800735e: 687b ldr r3, [r7, #4] + 8007360: 681b ldr r3, [r3, #0] + 8007362: 461a mov r2, r3 + 8007364: f8d7 3090 ldr.w r3, [r7, #144] @ 0x90 + 8007368: 647b str r3, [r7, #68] @ 0x44 + 800736a: 643a str r2, [r7, #64] @ 0x40 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8006974: 6c39 ldr r1, [r7, #64] @ 0x40 - 8006976: 6c7a ldr r2, [r7, #68] @ 0x44 - 8006978: e841 2300 strex r3, r2, [r1] - 800697c: 63fb str r3, [r7, #60] @ 0x3c + 800736c: 6c39 ldr r1, [r7, #64] @ 0x40 + 800736e: 6c7a ldr r2, [r7, #68] @ 0x44 + 8007370: e841 2300 strex r3, r2, [r1] + 8007374: 63fb str r3, [r7, #60] @ 0x3c return(result); - 800697e: 6bfb ldr r3, [r7, #60] @ 0x3c - 8006980: 2b00 cmp r3, #0 - 8006982: d1e4 bne.n 800694e + 8007376: 6bfb ldr r3, [r7, #60] @ 0x3c + 8007378: 2b00 cmp r3, #0 + 800737a: d1e4 bne.n 8007346 if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET) - 8006984: 687b ldr r3, [r7, #4] - 8006986: 681b ldr r3, [r3, #0] - 8006988: 69db ldr r3, [r3, #28] - 800698a: f003 0310 and.w r3, r3, #16 - 800698e: 2b10 cmp r3, #16 - 8006990: d103 bne.n 800699a + 800737c: 687b ldr r3, [r7, #4] + 800737e: 681b ldr r3, [r3, #0] + 8007380: 69db ldr r3, [r3, #28] + 8007382: f003 0310 and.w r3, r3, #16 + 8007386: 2b10 cmp r3, #16 + 8007388: d103 bne.n 8007392 { /* Clear IDLE Flag */ __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF); - 8006992: 687b ldr r3, [r7, #4] - 8006994: 681b ldr r3, [r3, #0] - 8006996: 2210 movs r2, #16 - 8006998: 621a str r2, [r3, #32] + 800738a: 687b ldr r3, [r7, #4] + 800738c: 681b ldr r3, [r3, #0] + 800738e: 2210 movs r2, #16 + 8007390: 621a str r2, [r3, #32] #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered Rx Event callback*/ huart->RxEventCallback(huart, huart->RxXferSize); #else /*Call legacy weak Rx Event callback*/ HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize); - 800699a: 687b ldr r3, [r7, #4] - 800699c: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c - 80069a0: 4619 mov r1, r3 - 80069a2: 6878 ldr r0, [r7, #4] - 80069a4: f7fe fcf4 bl 8005390 + 8007392: 687b ldr r3, [r7, #4] + 8007394: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c + 8007398: 4619 mov r1, r3 + 800739a: 6878 ldr r0, [r7, #4] + 800739c: f7fe fcf4 bl 8005d88 #else /*Call legacy weak Rx complete callback*/ HAL_UART_RxCpltCallback(huart); #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } break; - 80069a8: e00e b.n 80069c8 + 80073a0: e00e b.n 80073c0 HAL_UART_RxCpltCallback(huart); - 80069aa: 6878 ldr r0, [r7, #4] - 80069ac: f7fa f90e bl 8000bcc + 80073a2: 6878 ldr r0, [r7, #4] + 80073a4: f7fa f874 bl 8001490 break; - 80069b0: e00a b.n 80069c8 + 80073a8: e00a b.n 80073c0 while ((nb_rx_data > 0U) && ((isrflags & USART_ISR_RXNE_RXFNE) != 0U)) - 80069b2: f8b7 30a6 ldrh.w r3, [r7, #166] @ 0xa6 - 80069b6: 2b00 cmp r3, #0 - 80069b8: d006 beq.n 80069c8 - 80069ba: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4 - 80069be: f003 0320 and.w r3, r3, #32 - 80069c2: 2b00 cmp r3, #0 - 80069c4: f47f aeca bne.w 800675c + 80073aa: f8b7 30a6 ldrh.w r3, [r7, #166] @ 0xa6 + 80073ae: 2b00 cmp r3, #0 + 80073b0: d006 beq.n 80073c0 + 80073b2: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4 + 80073b6: f003 0320 and.w r3, r3, #32 + 80073ba: 2b00 cmp r3, #0 + 80073bc: f47f aeca bne.w 8007154 /* When remaining number of bytes to receive is less than the RX FIFO threshold, next incoming frames are processed as if FIFO mode was disabled (i.e. one interrupt per received frame). */ rxdatacount = huart->RxXferCount; - 80069c8: 687b ldr r3, [r7, #4] - 80069ca: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e - 80069ce: f8a7 308e strh.w r3, [r7, #142] @ 0x8e + 80073c0: 687b ldr r3, [r7, #4] + 80073c2: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e + 80073c6: f8a7 308e strh.w r3, [r7, #142] @ 0x8e if ((rxdatacount != 0U) && (rxdatacount < huart->NbRxDataToProcess)) - 80069d2: f8b7 308e ldrh.w r3, [r7, #142] @ 0x8e - 80069d6: 2b00 cmp r3, #0 - 80069d8: d049 beq.n 8006a6e - 80069da: 687b ldr r3, [r7, #4] - 80069dc: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68 - 80069e0: f8b7 208e ldrh.w r2, [r7, #142] @ 0x8e - 80069e4: 429a cmp r2, r3 - 80069e6: d242 bcs.n 8006a6e + 80073ca: f8b7 308e ldrh.w r3, [r7, #142] @ 0x8e + 80073ce: 2b00 cmp r3, #0 + 80073d0: d049 beq.n 8007466 + 80073d2: 687b ldr r3, [r7, #4] + 80073d4: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68 + 80073d8: f8b7 208e ldrh.w r2, [r7, #142] @ 0x8e + 80073dc: 429a cmp r2, r3 + 80073de: d242 bcs.n 8007466 { /* Disable the UART RXFT interrupt*/ ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_RXFTIE); - 80069e8: 687b ldr r3, [r7, #4] - 80069ea: 681b ldr r3, [r3, #0] - 80069ec: 3308 adds r3, #8 - 80069ee: 627b str r3, [r7, #36] @ 0x24 + 80073e0: 687b ldr r3, [r7, #4] + 80073e2: 681b ldr r3, [r3, #0] + 80073e4: 3308 adds r3, #8 + 80073e6: 627b str r3, [r7, #36] @ 0x24 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 80069f0: 6a7b ldr r3, [r7, #36] @ 0x24 - 80069f2: e853 3f00 ldrex r3, [r3] - 80069f6: 623b str r3, [r7, #32] + 80073e8: 6a7b ldr r3, [r7, #36] @ 0x24 + 80073ea: e853 3f00 ldrex r3, [r3] + 80073ee: 623b str r3, [r7, #32] return(result); - 80069f8: 6a3b ldr r3, [r7, #32] - 80069fa: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000 - 80069fe: f8c7 3088 str.w r3, [r7, #136] @ 0x88 - 8006a02: 687b ldr r3, [r7, #4] - 8006a04: 681b ldr r3, [r3, #0] - 8006a06: 3308 adds r3, #8 - 8006a08: f8d7 2088 ldr.w r2, [r7, #136] @ 0x88 - 8006a0c: 633a str r2, [r7, #48] @ 0x30 - 8006a0e: 62fb str r3, [r7, #44] @ 0x2c + 80073f0: 6a3b ldr r3, [r7, #32] + 80073f2: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000 + 80073f6: f8c7 3088 str.w r3, [r7, #136] @ 0x88 + 80073fa: 687b ldr r3, [r7, #4] + 80073fc: 681b ldr r3, [r3, #0] + 80073fe: 3308 adds r3, #8 + 8007400: f8d7 2088 ldr.w r2, [r7, #136] @ 0x88 + 8007404: 633a str r2, [r7, #48] @ 0x30 + 8007406: 62fb str r3, [r7, #44] @ 0x2c __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8006a10: 6af9 ldr r1, [r7, #44] @ 0x2c - 8006a12: 6b3a ldr r2, [r7, #48] @ 0x30 - 8006a14: e841 2300 strex r3, r2, [r1] - 8006a18: 62bb str r3, [r7, #40] @ 0x28 + 8007408: 6af9 ldr r1, [r7, #44] @ 0x2c + 800740a: 6b3a ldr r2, [r7, #48] @ 0x30 + 800740c: e841 2300 strex r3, r2, [r1] + 8007410: 62bb str r3, [r7, #40] @ 0x28 return(result); - 8006a1a: 6abb ldr r3, [r7, #40] @ 0x28 - 8006a1c: 2b00 cmp r3, #0 - 8006a1e: d1e3 bne.n 80069e8 + 8007412: 6abb ldr r3, [r7, #40] @ 0x28 + 8007414: 2b00 cmp r3, #0 + 8007416: d1e3 bne.n 80073e0 /* Update the RxISR function pointer */ huart->RxISR = UART_RxISR_16BIT; - 8006a20: 687b ldr r3, [r7, #4] - 8006a22: 4a16 ldr r2, [pc, #88] @ (8006a7c ) - 8006a24: 675a str r2, [r3, #116] @ 0x74 + 8007418: 687b ldr r3, [r7, #4] + 800741a: 4a16 ldr r2, [pc, #88] @ (8007474 ) + 800741c: 675a str r2, [r3, #116] @ 0x74 /* Enable the UART Data Register Not Empty interrupt */ ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_RXNEIE_RXFNEIE); - 8006a26: 687b ldr r3, [r7, #4] - 8006a28: 681b ldr r3, [r3, #0] - 8006a2a: 613b str r3, [r7, #16] + 800741e: 687b ldr r3, [r7, #4] + 8007420: 681b ldr r3, [r3, #0] + 8007422: 613b str r3, [r7, #16] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8006a2c: 693b ldr r3, [r7, #16] - 8006a2e: e853 3f00 ldrex r3, [r3] - 8006a32: 60fb str r3, [r7, #12] + 8007424: 693b ldr r3, [r7, #16] + 8007426: e853 3f00 ldrex r3, [r3] + 800742a: 60fb str r3, [r7, #12] return(result); - 8006a34: 68fb ldr r3, [r7, #12] - 8006a36: f043 0320 orr.w r3, r3, #32 - 8006a3a: f8c7 3084 str.w r3, [r7, #132] @ 0x84 - 8006a3e: 687b ldr r3, [r7, #4] - 8006a40: 681b ldr r3, [r3, #0] - 8006a42: 461a mov r2, r3 - 8006a44: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84 - 8006a48: 61fb str r3, [r7, #28] - 8006a4a: 61ba str r2, [r7, #24] + 800742c: 68fb ldr r3, [r7, #12] + 800742e: f043 0320 orr.w r3, r3, #32 + 8007432: f8c7 3084 str.w r3, [r7, #132] @ 0x84 + 8007436: 687b ldr r3, [r7, #4] + 8007438: 681b ldr r3, [r3, #0] + 800743a: 461a mov r2, r3 + 800743c: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84 + 8007440: 61fb str r3, [r7, #28] + 8007442: 61ba str r2, [r7, #24] __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8006a4c: 69b9 ldr r1, [r7, #24] - 8006a4e: 69fa ldr r2, [r7, #28] - 8006a50: e841 2300 strex r3, r2, [r1] - 8006a54: 617b str r3, [r7, #20] + 8007444: 69b9 ldr r1, [r7, #24] + 8007446: 69fa ldr r2, [r7, #28] + 8007448: e841 2300 strex r3, r2, [r1] + 800744c: 617b str r3, [r7, #20] return(result); - 8006a56: 697b ldr r3, [r7, #20] - 8006a58: 2b00 cmp r3, #0 - 8006a5a: d1e4 bne.n 8006a26 + 800744e: 697b ldr r3, [r7, #20] + 8007450: 2b00 cmp r3, #0 + 8007452: d1e4 bne.n 800741e else { /* Clear RXNE interrupt flag */ __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST); } } - 8006a5c: e007 b.n 8006a6e + 8007454: e007 b.n 8007466 __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST); - 8006a5e: 687b ldr r3, [r7, #4] - 8006a60: 681b ldr r3, [r3, #0] - 8006a62: 699a ldr r2, [r3, #24] - 8006a64: 687b ldr r3, [r7, #4] - 8006a66: 681b ldr r3, [r3, #0] - 8006a68: f042 0208 orr.w r2, r2, #8 - 8006a6c: 619a str r2, [r3, #24] + 8007456: 687b ldr r3, [r7, #4] + 8007458: 681b ldr r3, [r3, #0] + 800745a: 699a ldr r2, [r3, #24] + 800745c: 687b ldr r3, [r7, #4] + 800745e: 681b ldr r3, [r3, #0] + 8007460: f042 0208 orr.w r2, r2, #8 + 8007464: 619a str r2, [r3, #24] } - 8006a6e: bf00 nop - 8006a70: 37b8 adds r7, #184 @ 0xb8 - 8006a72: 46bd mov sp, r7 - 8006a74: bd80 pop {r7, pc} - 8006a76: bf00 nop - 8006a78: 40008000 .word 0x40008000 - 8006a7c: 080061f9 .word 0x080061f9 + 8007466: bf00 nop + 8007468: 37b8 adds r7, #184 @ 0xb8 + 800746a: 46bd mov sp, r7 + 800746c: bd80 pop {r7, pc} + 800746e: bf00 nop + 8007470: 40008000 .word 0x40008000 + 8007474: 08006bf1 .word 0x08006bf1 -08006a80 : +08007478 : * @brief UART wakeup from Stop mode callback. * @param huart UART handle. * @retval None */ __weak void HAL_UARTEx_WakeupCallback(UART_HandleTypeDef *huart) { - 8006a80: b480 push {r7} - 8006a82: b083 sub sp, #12 - 8006a84: af00 add r7, sp, #0 - 8006a86: 6078 str r0, [r7, #4] + 8007478: b480 push {r7} + 800747a: b083 sub sp, #12 + 800747c: af00 add r7, sp, #0 + 800747e: 6078 str r0, [r7, #4] UNUSED(huart); /* NOTE : This function should not be modified, when the callback is needed, the HAL_UARTEx_WakeupCallback can be implemented in the user file. */ } - 8006a88: bf00 nop - 8006a8a: 370c adds r7, #12 - 8006a8c: 46bd mov sp, r7 - 8006a8e: f85d 7b04 ldr.w r7, [sp], #4 - 8006a92: 4770 bx lr + 8007480: bf00 nop + 8007482: 370c adds r7, #12 + 8007484: 46bd mov sp, r7 + 8007486: f85d 7b04 ldr.w r7, [sp], #4 + 800748a: 4770 bx lr -08006a94 : +0800748c : * @brief UART RX Fifo full callback. * @param huart UART handle. * @retval None */ __weak void HAL_UARTEx_RxFifoFullCallback(UART_HandleTypeDef *huart) { - 8006a94: b480 push {r7} - 8006a96: b083 sub sp, #12 - 8006a98: af00 add r7, sp, #0 - 8006a9a: 6078 str r0, [r7, #4] + 800748c: b480 push {r7} + 800748e: b083 sub sp, #12 + 8007490: af00 add r7, sp, #0 + 8007492: 6078 str r0, [r7, #4] UNUSED(huart); /* NOTE : This function should not be modified, when the callback is needed, the HAL_UARTEx_RxFifoFullCallback can be implemented in the user file. */ } - 8006a9c: bf00 nop - 8006a9e: 370c adds r7, #12 - 8006aa0: 46bd mov sp, r7 - 8006aa2: f85d 7b04 ldr.w r7, [sp], #4 - 8006aa6: 4770 bx lr + 8007494: bf00 nop + 8007496: 370c adds r7, #12 + 8007498: 46bd mov sp, r7 + 800749a: f85d 7b04 ldr.w r7, [sp], #4 + 800749e: 4770 bx lr -08006aa8 : +080074a0 : * @brief UART TX Fifo empty callback. * @param huart UART handle. * @retval None */ __weak void HAL_UARTEx_TxFifoEmptyCallback(UART_HandleTypeDef *huart) { - 8006aa8: b480 push {r7} - 8006aaa: b083 sub sp, #12 - 8006aac: af00 add r7, sp, #0 - 8006aae: 6078 str r0, [r7, #4] + 80074a0: b480 push {r7} + 80074a2: b083 sub sp, #12 + 80074a4: af00 add r7, sp, #0 + 80074a6: 6078 str r0, [r7, #4] UNUSED(huart); /* NOTE : This function should not be modified, when the callback is needed, the HAL_UARTEx_TxFifoEmptyCallback can be implemented in the user file. */ } - 8006ab0: bf00 nop - 8006ab2: 370c adds r7, #12 - 8006ab4: 46bd mov sp, r7 - 8006ab6: f85d 7b04 ldr.w r7, [sp], #4 - 8006aba: 4770 bx lr + 80074a8: bf00 nop + 80074aa: 370c adds r7, #12 + 80074ac: 46bd mov sp, r7 + 80074ae: f85d 7b04 ldr.w r7, [sp], #4 + 80074b2: 4770 bx lr -08006abc : +080074b4 : * @brief Disable the FIFO mode. * @param huart UART handle. * @retval HAL status */ HAL_StatusTypeDef HAL_UARTEx_DisableFifoMode(UART_HandleTypeDef *huart) { - 8006abc: b480 push {r7} - 8006abe: b085 sub sp, #20 - 8006ac0: af00 add r7, sp, #0 - 8006ac2: 6078 str r0, [r7, #4] + 80074b4: b480 push {r7} + 80074b6: b085 sub sp, #20 + 80074b8: af00 add r7, sp, #0 + 80074ba: 6078 str r0, [r7, #4] /* Check parameters */ assert_param(IS_UART_FIFO_INSTANCE(huart->Instance)); /* Process Locked */ __HAL_LOCK(huart); - 8006ac4: 687b ldr r3, [r7, #4] - 8006ac6: f893 3084 ldrb.w r3, [r3, #132] @ 0x84 - 8006aca: 2b01 cmp r3, #1 - 8006acc: d101 bne.n 8006ad2 - 8006ace: 2302 movs r3, #2 - 8006ad0: e027 b.n 8006b22 - 8006ad2: 687b ldr r3, [r7, #4] - 8006ad4: 2201 movs r2, #1 - 8006ad6: f883 2084 strb.w r2, [r3, #132] @ 0x84 + 80074bc: 687b ldr r3, [r7, #4] + 80074be: f893 3084 ldrb.w r3, [r3, #132] @ 0x84 + 80074c2: 2b01 cmp r3, #1 + 80074c4: d101 bne.n 80074ca + 80074c6: 2302 movs r3, #2 + 80074c8: e027 b.n 800751a + 80074ca: 687b ldr r3, [r7, #4] + 80074cc: 2201 movs r2, #1 + 80074ce: f883 2084 strb.w r2, [r3, #132] @ 0x84 huart->gState = HAL_UART_STATE_BUSY; - 8006ada: 687b ldr r3, [r7, #4] - 8006adc: 2224 movs r2, #36 @ 0x24 - 8006ade: f8c3 2088 str.w r2, [r3, #136] @ 0x88 + 80074d2: 687b ldr r3, [r7, #4] + 80074d4: 2224 movs r2, #36 @ 0x24 + 80074d6: f8c3 2088 str.w r2, [r3, #136] @ 0x88 /* Save actual UART configuration */ tmpcr1 = READ_REG(huart->Instance->CR1); - 8006ae2: 687b ldr r3, [r7, #4] - 8006ae4: 681b ldr r3, [r3, #0] - 8006ae6: 681b ldr r3, [r3, #0] - 8006ae8: 60fb str r3, [r7, #12] + 80074da: 687b ldr r3, [r7, #4] + 80074dc: 681b ldr r3, [r3, #0] + 80074de: 681b ldr r3, [r3, #0] + 80074e0: 60fb str r3, [r7, #12] /* Disable UART */ __HAL_UART_DISABLE(huart); - 8006aea: 687b ldr r3, [r7, #4] - 8006aec: 681b ldr r3, [r3, #0] - 8006aee: 681a ldr r2, [r3, #0] - 8006af0: 687b ldr r3, [r7, #4] - 8006af2: 681b ldr r3, [r3, #0] - 8006af4: f022 0201 bic.w r2, r2, #1 - 8006af8: 601a str r2, [r3, #0] + 80074e2: 687b ldr r3, [r7, #4] + 80074e4: 681b ldr r3, [r3, #0] + 80074e6: 681a ldr r2, [r3, #0] + 80074e8: 687b ldr r3, [r7, #4] + 80074ea: 681b ldr r3, [r3, #0] + 80074ec: f022 0201 bic.w r2, r2, #1 + 80074f0: 601a str r2, [r3, #0] /* Disable FIFO mode */ CLEAR_BIT(tmpcr1, USART_CR1_FIFOEN); - 8006afa: 68fb ldr r3, [r7, #12] - 8006afc: f023 5300 bic.w r3, r3, #536870912 @ 0x20000000 - 8006b00: 60fb str r3, [r7, #12] + 80074f2: 68fb ldr r3, [r7, #12] + 80074f4: f023 5300 bic.w r3, r3, #536870912 @ 0x20000000 + 80074f8: 60fb str r3, [r7, #12] huart->FifoMode = UART_FIFOMODE_DISABLE; - 8006b02: 687b ldr r3, [r7, #4] - 8006b04: 2200 movs r2, #0 - 8006b06: 665a str r2, [r3, #100] @ 0x64 + 80074fa: 687b ldr r3, [r7, #4] + 80074fc: 2200 movs r2, #0 + 80074fe: 665a str r2, [r3, #100] @ 0x64 /* Restore UART configuration */ WRITE_REG(huart->Instance->CR1, tmpcr1); - 8006b08: 687b ldr r3, [r7, #4] - 8006b0a: 681b ldr r3, [r3, #0] - 8006b0c: 68fa ldr r2, [r7, #12] - 8006b0e: 601a str r2, [r3, #0] + 8007500: 687b ldr r3, [r7, #4] + 8007502: 681b ldr r3, [r3, #0] + 8007504: 68fa ldr r2, [r7, #12] + 8007506: 601a str r2, [r3, #0] huart->gState = HAL_UART_STATE_READY; - 8006b10: 687b ldr r3, [r7, #4] - 8006b12: 2220 movs r2, #32 - 8006b14: f8c3 2088 str.w r2, [r3, #136] @ 0x88 + 8007508: 687b ldr r3, [r7, #4] + 800750a: 2220 movs r2, #32 + 800750c: f8c3 2088 str.w r2, [r3, #136] @ 0x88 /* Process Unlocked */ __HAL_UNLOCK(huart); - 8006b18: 687b ldr r3, [r7, #4] - 8006b1a: 2200 movs r2, #0 - 8006b1c: f883 2084 strb.w r2, [r3, #132] @ 0x84 + 8007510: 687b ldr r3, [r7, #4] + 8007512: 2200 movs r2, #0 + 8007514: f883 2084 strb.w r2, [r3, #132] @ 0x84 return HAL_OK; - 8006b20: 2300 movs r3, #0 + 8007518: 2300 movs r3, #0 } - 8006b22: 4618 mov r0, r3 - 8006b24: 3714 adds r7, #20 - 8006b26: 46bd mov sp, r7 - 8006b28: f85d 7b04 ldr.w r7, [sp], #4 - 8006b2c: 4770 bx lr + 800751a: 4618 mov r0, r3 + 800751c: 3714 adds r7, #20 + 800751e: 46bd mov sp, r7 + 8007520: f85d 7b04 ldr.w r7, [sp], #4 + 8007524: 4770 bx lr -08006b2e : +08007526 : * @arg @ref UART_TXFIFO_THRESHOLD_7_8 * @arg @ref UART_TXFIFO_THRESHOLD_8_8 * @retval HAL status */ HAL_StatusTypeDef HAL_UARTEx_SetTxFifoThreshold(UART_HandleTypeDef *huart, uint32_t Threshold) { - 8006b2e: b580 push {r7, lr} - 8006b30: b084 sub sp, #16 - 8006b32: af00 add r7, sp, #0 - 8006b34: 6078 str r0, [r7, #4] - 8006b36: 6039 str r1, [r7, #0] + 8007526: b580 push {r7, lr} + 8007528: b084 sub sp, #16 + 800752a: af00 add r7, sp, #0 + 800752c: 6078 str r0, [r7, #4] + 800752e: 6039 str r1, [r7, #0] /* Check parameters */ assert_param(IS_UART_FIFO_INSTANCE(huart->Instance)); assert_param(IS_UART_TXFIFO_THRESHOLD(Threshold)); /* Process Locked */ __HAL_LOCK(huart); - 8006b38: 687b ldr r3, [r7, #4] - 8006b3a: f893 3084 ldrb.w r3, [r3, #132] @ 0x84 - 8006b3e: 2b01 cmp r3, #1 - 8006b40: d101 bne.n 8006b46 - 8006b42: 2302 movs r3, #2 - 8006b44: e02d b.n 8006ba2 - 8006b46: 687b ldr r3, [r7, #4] - 8006b48: 2201 movs r2, #1 - 8006b4a: f883 2084 strb.w r2, [r3, #132] @ 0x84 + 8007530: 687b ldr r3, [r7, #4] + 8007532: f893 3084 ldrb.w r3, [r3, #132] @ 0x84 + 8007536: 2b01 cmp r3, #1 + 8007538: d101 bne.n 800753e + 800753a: 2302 movs r3, #2 + 800753c: e02d b.n 800759a + 800753e: 687b ldr r3, [r7, #4] + 8007540: 2201 movs r2, #1 + 8007542: f883 2084 strb.w r2, [r3, #132] @ 0x84 huart->gState = HAL_UART_STATE_BUSY; - 8006b4e: 687b ldr r3, [r7, #4] - 8006b50: 2224 movs r2, #36 @ 0x24 - 8006b52: f8c3 2088 str.w r2, [r3, #136] @ 0x88 + 8007546: 687b ldr r3, [r7, #4] + 8007548: 2224 movs r2, #36 @ 0x24 + 800754a: f8c3 2088 str.w r2, [r3, #136] @ 0x88 /* Save actual UART configuration */ tmpcr1 = READ_REG(huart->Instance->CR1); - 8006b56: 687b ldr r3, [r7, #4] - 8006b58: 681b ldr r3, [r3, #0] - 8006b5a: 681b ldr r3, [r3, #0] - 8006b5c: 60fb str r3, [r7, #12] + 800754e: 687b ldr r3, [r7, #4] + 8007550: 681b ldr r3, [r3, #0] + 8007552: 681b ldr r3, [r3, #0] + 8007554: 60fb str r3, [r7, #12] /* Disable UART */ __HAL_UART_DISABLE(huart); - 8006b5e: 687b ldr r3, [r7, #4] - 8006b60: 681b ldr r3, [r3, #0] - 8006b62: 681a ldr r2, [r3, #0] - 8006b64: 687b ldr r3, [r7, #4] - 8006b66: 681b ldr r3, [r3, #0] - 8006b68: f022 0201 bic.w r2, r2, #1 - 8006b6c: 601a str r2, [r3, #0] + 8007556: 687b ldr r3, [r7, #4] + 8007558: 681b ldr r3, [r3, #0] + 800755a: 681a ldr r2, [r3, #0] + 800755c: 687b ldr r3, [r7, #4] + 800755e: 681b ldr r3, [r3, #0] + 8007560: f022 0201 bic.w r2, r2, #1 + 8007564: 601a str r2, [r3, #0] /* Update TX threshold configuration */ MODIFY_REG(huart->Instance->CR3, USART_CR3_TXFTCFG, Threshold); - 8006b6e: 687b ldr r3, [r7, #4] - 8006b70: 681b ldr r3, [r3, #0] - 8006b72: 689b ldr r3, [r3, #8] - 8006b74: f023 4160 bic.w r1, r3, #3758096384 @ 0xe0000000 - 8006b78: 687b ldr r3, [r7, #4] - 8006b7a: 681b ldr r3, [r3, #0] - 8006b7c: 683a ldr r2, [r7, #0] - 8006b7e: 430a orrs r2, r1 - 8006b80: 609a str r2, [r3, #8] + 8007566: 687b ldr r3, [r7, #4] + 8007568: 681b ldr r3, [r3, #0] + 800756a: 689b ldr r3, [r3, #8] + 800756c: f023 4160 bic.w r1, r3, #3758096384 @ 0xe0000000 + 8007570: 687b ldr r3, [r7, #4] + 8007572: 681b ldr r3, [r3, #0] + 8007574: 683a ldr r2, [r7, #0] + 8007576: 430a orrs r2, r1 + 8007578: 609a str r2, [r3, #8] /* Determine the number of data to process during RX/TX ISR execution */ UARTEx_SetNbDataToProcess(huart); - 8006b82: 6878 ldr r0, [r7, #4] - 8006b84: f000 f850 bl 8006c28 + 800757a: 6878 ldr r0, [r7, #4] + 800757c: f000 f850 bl 8007620 /* Restore UART configuration */ WRITE_REG(huart->Instance->CR1, tmpcr1); - 8006b88: 687b ldr r3, [r7, #4] - 8006b8a: 681b ldr r3, [r3, #0] - 8006b8c: 68fa ldr r2, [r7, #12] - 8006b8e: 601a str r2, [r3, #0] + 8007580: 687b ldr r3, [r7, #4] + 8007582: 681b ldr r3, [r3, #0] + 8007584: 68fa ldr r2, [r7, #12] + 8007586: 601a str r2, [r3, #0] huart->gState = HAL_UART_STATE_READY; - 8006b90: 687b ldr r3, [r7, #4] - 8006b92: 2220 movs r2, #32 - 8006b94: f8c3 2088 str.w r2, [r3, #136] @ 0x88 + 8007588: 687b ldr r3, [r7, #4] + 800758a: 2220 movs r2, #32 + 800758c: f8c3 2088 str.w r2, [r3, #136] @ 0x88 /* Process Unlocked */ __HAL_UNLOCK(huart); - 8006b98: 687b ldr r3, [r7, #4] - 8006b9a: 2200 movs r2, #0 - 8006b9c: f883 2084 strb.w r2, [r3, #132] @ 0x84 + 8007590: 687b ldr r3, [r7, #4] + 8007592: 2200 movs r2, #0 + 8007594: f883 2084 strb.w r2, [r3, #132] @ 0x84 return HAL_OK; - 8006ba0: 2300 movs r3, #0 + 8007598: 2300 movs r3, #0 } - 8006ba2: 4618 mov r0, r3 - 8006ba4: 3710 adds r7, #16 - 8006ba6: 46bd mov sp, r7 - 8006ba8: bd80 pop {r7, pc} + 800759a: 4618 mov r0, r3 + 800759c: 3710 adds r7, #16 + 800759e: 46bd mov sp, r7 + 80075a0: bd80 pop {r7, pc} -08006baa : +080075a2 : * @arg @ref UART_RXFIFO_THRESHOLD_7_8 * @arg @ref UART_RXFIFO_THRESHOLD_8_8 * @retval HAL status */ HAL_StatusTypeDef HAL_UARTEx_SetRxFifoThreshold(UART_HandleTypeDef *huart, uint32_t Threshold) { - 8006baa: b580 push {r7, lr} - 8006bac: b084 sub sp, #16 - 8006bae: af00 add r7, sp, #0 - 8006bb0: 6078 str r0, [r7, #4] - 8006bb2: 6039 str r1, [r7, #0] + 80075a2: b580 push {r7, lr} + 80075a4: b084 sub sp, #16 + 80075a6: af00 add r7, sp, #0 + 80075a8: 6078 str r0, [r7, #4] + 80075aa: 6039 str r1, [r7, #0] /* Check the parameters */ assert_param(IS_UART_FIFO_INSTANCE(huart->Instance)); assert_param(IS_UART_RXFIFO_THRESHOLD(Threshold)); /* Process Locked */ __HAL_LOCK(huart); - 8006bb4: 687b ldr r3, [r7, #4] - 8006bb6: f893 3084 ldrb.w r3, [r3, #132] @ 0x84 - 8006bba: 2b01 cmp r3, #1 - 8006bbc: d101 bne.n 8006bc2 - 8006bbe: 2302 movs r3, #2 - 8006bc0: e02d b.n 8006c1e - 8006bc2: 687b ldr r3, [r7, #4] - 8006bc4: 2201 movs r2, #1 - 8006bc6: f883 2084 strb.w r2, [r3, #132] @ 0x84 + 80075ac: 687b ldr r3, [r7, #4] + 80075ae: f893 3084 ldrb.w r3, [r3, #132] @ 0x84 + 80075b2: 2b01 cmp r3, #1 + 80075b4: d101 bne.n 80075ba + 80075b6: 2302 movs r3, #2 + 80075b8: e02d b.n 8007616 + 80075ba: 687b ldr r3, [r7, #4] + 80075bc: 2201 movs r2, #1 + 80075be: f883 2084 strb.w r2, [r3, #132] @ 0x84 huart->gState = HAL_UART_STATE_BUSY; - 8006bca: 687b ldr r3, [r7, #4] - 8006bcc: 2224 movs r2, #36 @ 0x24 - 8006bce: f8c3 2088 str.w r2, [r3, #136] @ 0x88 + 80075c2: 687b ldr r3, [r7, #4] + 80075c4: 2224 movs r2, #36 @ 0x24 + 80075c6: f8c3 2088 str.w r2, [r3, #136] @ 0x88 /* Save actual UART configuration */ tmpcr1 = READ_REG(huart->Instance->CR1); - 8006bd2: 687b ldr r3, [r7, #4] - 8006bd4: 681b ldr r3, [r3, #0] - 8006bd6: 681b ldr r3, [r3, #0] - 8006bd8: 60fb str r3, [r7, #12] + 80075ca: 687b ldr r3, [r7, #4] + 80075cc: 681b ldr r3, [r3, #0] + 80075ce: 681b ldr r3, [r3, #0] + 80075d0: 60fb str r3, [r7, #12] /* Disable UART */ __HAL_UART_DISABLE(huart); - 8006bda: 687b ldr r3, [r7, #4] - 8006bdc: 681b ldr r3, [r3, #0] - 8006bde: 681a ldr r2, [r3, #0] - 8006be0: 687b ldr r3, [r7, #4] - 8006be2: 681b ldr r3, [r3, #0] - 8006be4: f022 0201 bic.w r2, r2, #1 - 8006be8: 601a str r2, [r3, #0] + 80075d2: 687b ldr r3, [r7, #4] + 80075d4: 681b ldr r3, [r3, #0] + 80075d6: 681a ldr r2, [r3, #0] + 80075d8: 687b ldr r3, [r7, #4] + 80075da: 681b ldr r3, [r3, #0] + 80075dc: f022 0201 bic.w r2, r2, #1 + 80075e0: 601a str r2, [r3, #0] /* Update RX threshold configuration */ MODIFY_REG(huart->Instance->CR3, USART_CR3_RXFTCFG, Threshold); - 8006bea: 687b ldr r3, [r7, #4] - 8006bec: 681b ldr r3, [r3, #0] - 8006bee: 689b ldr r3, [r3, #8] - 8006bf0: f023 6160 bic.w r1, r3, #234881024 @ 0xe000000 - 8006bf4: 687b ldr r3, [r7, #4] - 8006bf6: 681b ldr r3, [r3, #0] - 8006bf8: 683a ldr r2, [r7, #0] - 8006bfa: 430a orrs r2, r1 - 8006bfc: 609a str r2, [r3, #8] + 80075e2: 687b ldr r3, [r7, #4] + 80075e4: 681b ldr r3, [r3, #0] + 80075e6: 689b ldr r3, [r3, #8] + 80075e8: f023 6160 bic.w r1, r3, #234881024 @ 0xe000000 + 80075ec: 687b ldr r3, [r7, #4] + 80075ee: 681b ldr r3, [r3, #0] + 80075f0: 683a ldr r2, [r7, #0] + 80075f2: 430a orrs r2, r1 + 80075f4: 609a str r2, [r3, #8] /* Determine the number of data to process during RX/TX ISR execution */ UARTEx_SetNbDataToProcess(huart); - 8006bfe: 6878 ldr r0, [r7, #4] - 8006c00: f000 f812 bl 8006c28 + 80075f6: 6878 ldr r0, [r7, #4] + 80075f8: f000 f812 bl 8007620 /* Restore UART configuration */ WRITE_REG(huart->Instance->CR1, tmpcr1); - 8006c04: 687b ldr r3, [r7, #4] - 8006c06: 681b ldr r3, [r3, #0] - 8006c08: 68fa ldr r2, [r7, #12] - 8006c0a: 601a str r2, [r3, #0] + 80075fc: 687b ldr r3, [r7, #4] + 80075fe: 681b ldr r3, [r3, #0] + 8007600: 68fa ldr r2, [r7, #12] + 8007602: 601a str r2, [r3, #0] huart->gState = HAL_UART_STATE_READY; - 8006c0c: 687b ldr r3, [r7, #4] - 8006c0e: 2220 movs r2, #32 - 8006c10: f8c3 2088 str.w r2, [r3, #136] @ 0x88 + 8007604: 687b ldr r3, [r7, #4] + 8007606: 2220 movs r2, #32 + 8007608: f8c3 2088 str.w r2, [r3, #136] @ 0x88 /* Process Unlocked */ __HAL_UNLOCK(huart); - 8006c14: 687b ldr r3, [r7, #4] - 8006c16: 2200 movs r2, #0 - 8006c18: f883 2084 strb.w r2, [r3, #132] @ 0x84 + 800760c: 687b ldr r3, [r7, #4] + 800760e: 2200 movs r2, #0 + 8007610: f883 2084 strb.w r2, [r3, #132] @ 0x84 return HAL_OK; - 8006c1c: 2300 movs r3, #0 + 8007614: 2300 movs r3, #0 } - 8006c1e: 4618 mov r0, r3 - 8006c20: 3710 adds r7, #16 - 8006c22: 46bd mov sp, r7 - 8006c24: bd80 pop {r7, pc} + 8007616: 4618 mov r0, r3 + 8007618: 3710 adds r7, #16 + 800761a: 46bd mov sp, r7 + 800761c: bd80 pop {r7, pc} ... -08006c28 : +08007620 : * the UART configuration registers. * @param huart UART handle. * @retval None */ static void UARTEx_SetNbDataToProcess(UART_HandleTypeDef *huart) { - 8006c28: b480 push {r7} - 8006c2a: b085 sub sp, #20 - 8006c2c: af00 add r7, sp, #0 - 8006c2e: 6078 str r0, [r7, #4] + 8007620: b480 push {r7} + 8007622: b085 sub sp, #20 + 8007624: af00 add r7, sp, #0 + 8007626: 6078 str r0, [r7, #4] uint8_t rx_fifo_threshold; uint8_t tx_fifo_threshold; static const uint8_t numerator[] = {1U, 1U, 1U, 3U, 7U, 1U, 0U, 0U}; static const uint8_t denominator[] = {8U, 4U, 2U, 4U, 8U, 1U, 1U, 1U}; if (huart->FifoMode == UART_FIFOMODE_DISABLE) - 8006c30: 687b ldr r3, [r7, #4] - 8006c32: 6e5b ldr r3, [r3, #100] @ 0x64 - 8006c34: 2b00 cmp r3, #0 - 8006c36: d108 bne.n 8006c4a + 8007628: 687b ldr r3, [r7, #4] + 800762a: 6e5b ldr r3, [r3, #100] @ 0x64 + 800762c: 2b00 cmp r3, #0 + 800762e: d108 bne.n 8007642 { huart->NbTxDataToProcess = 1U; - 8006c38: 687b ldr r3, [r7, #4] - 8006c3a: 2201 movs r2, #1 - 8006c3c: f8a3 206a strh.w r2, [r3, #106] @ 0x6a + 8007630: 687b ldr r3, [r7, #4] + 8007632: 2201 movs r2, #1 + 8007634: f8a3 206a strh.w r2, [r3, #106] @ 0x6a huart->NbRxDataToProcess = 1U; - 8006c40: 687b ldr r3, [r7, #4] - 8006c42: 2201 movs r2, #1 - 8006c44: f8a3 2068 strh.w r2, [r3, #104] @ 0x68 + 8007638: 687b ldr r3, [r7, #4] + 800763a: 2201 movs r2, #1 + 800763c: f8a3 2068 strh.w r2, [r3, #104] @ 0x68 huart->NbTxDataToProcess = ((uint16_t)tx_fifo_depth * numerator[tx_fifo_threshold]) / (uint16_t)denominator[tx_fifo_threshold]; huart->NbRxDataToProcess = ((uint16_t)rx_fifo_depth * numerator[rx_fifo_threshold]) / (uint16_t)denominator[rx_fifo_threshold]; } } - 8006c48: e031 b.n 8006cae + 8007640: e031 b.n 80076a6 rx_fifo_depth = RX_FIFO_DEPTH; - 8006c4a: 2308 movs r3, #8 - 8006c4c: 73fb strb r3, [r7, #15] + 8007642: 2308 movs r3, #8 + 8007644: 73fb strb r3, [r7, #15] tx_fifo_depth = TX_FIFO_DEPTH; - 8006c4e: 2308 movs r3, #8 - 8006c50: 73bb strb r3, [r7, #14] + 8007646: 2308 movs r3, #8 + 8007648: 73bb strb r3, [r7, #14] rx_fifo_threshold = (uint8_t)(READ_BIT(huart->Instance->CR3, USART_CR3_RXFTCFG) >> USART_CR3_RXFTCFG_Pos); - 8006c52: 687b ldr r3, [r7, #4] - 8006c54: 681b ldr r3, [r3, #0] - 8006c56: 689b ldr r3, [r3, #8] - 8006c58: 0e5b lsrs r3, r3, #25 - 8006c5a: b2db uxtb r3, r3 - 8006c5c: f003 0307 and.w r3, r3, #7 - 8006c60: 737b strb r3, [r7, #13] + 800764a: 687b ldr r3, [r7, #4] + 800764c: 681b ldr r3, [r3, #0] + 800764e: 689b ldr r3, [r3, #8] + 8007650: 0e5b lsrs r3, r3, #25 + 8007652: b2db uxtb r3, r3 + 8007654: f003 0307 and.w r3, r3, #7 + 8007658: 737b strb r3, [r7, #13] tx_fifo_threshold = (uint8_t)(READ_BIT(huart->Instance->CR3, USART_CR3_TXFTCFG) >> USART_CR3_TXFTCFG_Pos); - 8006c62: 687b ldr r3, [r7, #4] - 8006c64: 681b ldr r3, [r3, #0] - 8006c66: 689b ldr r3, [r3, #8] - 8006c68: 0f5b lsrs r3, r3, #29 - 8006c6a: b2db uxtb r3, r3 - 8006c6c: f003 0307 and.w r3, r3, #7 - 8006c70: 733b strb r3, [r7, #12] + 800765a: 687b ldr r3, [r7, #4] + 800765c: 681b ldr r3, [r3, #0] + 800765e: 689b ldr r3, [r3, #8] + 8007660: 0f5b lsrs r3, r3, #29 + 8007662: b2db uxtb r3, r3 + 8007664: f003 0307 and.w r3, r3, #7 + 8007668: 733b strb r3, [r7, #12] huart->NbTxDataToProcess = ((uint16_t)tx_fifo_depth * numerator[tx_fifo_threshold]) / - 8006c72: 7bbb ldrb r3, [r7, #14] - 8006c74: 7b3a ldrb r2, [r7, #12] - 8006c76: 4911 ldr r1, [pc, #68] @ (8006cbc ) - 8006c78: 5c8a ldrb r2, [r1, r2] - 8006c7a: fb02 f303 mul.w r3, r2, r3 + 800766a: 7bbb ldrb r3, [r7, #14] + 800766c: 7b3a ldrb r2, [r7, #12] + 800766e: 4911 ldr r1, [pc, #68] @ (80076b4 ) + 8007670: 5c8a ldrb r2, [r1, r2] + 8007672: fb02 f303 mul.w r3, r2, r3 (uint16_t)denominator[tx_fifo_threshold]; - 8006c7e: 7b3a ldrb r2, [r7, #12] - 8006c80: 490f ldr r1, [pc, #60] @ (8006cc0 ) - 8006c82: 5c8a ldrb r2, [r1, r2] + 8007676: 7b3a ldrb r2, [r7, #12] + 8007678: 490f ldr r1, [pc, #60] @ (80076b8 ) + 800767a: 5c8a ldrb r2, [r1, r2] huart->NbTxDataToProcess = ((uint16_t)tx_fifo_depth * numerator[tx_fifo_threshold]) / - 8006c84: fb93 f3f2 sdiv r3, r3, r2 - 8006c88: b29a uxth r2, r3 - 8006c8a: 687b ldr r3, [r7, #4] - 8006c8c: f8a3 206a strh.w r2, [r3, #106] @ 0x6a + 800767c: fb93 f3f2 sdiv r3, r3, r2 + 8007680: b29a uxth r2, r3 + 8007682: 687b ldr r3, [r7, #4] + 8007684: f8a3 206a strh.w r2, [r3, #106] @ 0x6a huart->NbRxDataToProcess = ((uint16_t)rx_fifo_depth * numerator[rx_fifo_threshold]) / - 8006c90: 7bfb ldrb r3, [r7, #15] - 8006c92: 7b7a ldrb r2, [r7, #13] - 8006c94: 4909 ldr r1, [pc, #36] @ (8006cbc ) - 8006c96: 5c8a ldrb r2, [r1, r2] - 8006c98: fb02 f303 mul.w r3, r2, r3 + 8007688: 7bfb ldrb r3, [r7, #15] + 800768a: 7b7a ldrb r2, [r7, #13] + 800768c: 4909 ldr r1, [pc, #36] @ (80076b4 ) + 800768e: 5c8a ldrb r2, [r1, r2] + 8007690: fb02 f303 mul.w r3, r2, r3 (uint16_t)denominator[rx_fifo_threshold]; - 8006c9c: 7b7a ldrb r2, [r7, #13] - 8006c9e: 4908 ldr r1, [pc, #32] @ (8006cc0 ) - 8006ca0: 5c8a ldrb r2, [r1, r2] + 8007694: 7b7a ldrb r2, [r7, #13] + 8007696: 4908 ldr r1, [pc, #32] @ (80076b8 ) + 8007698: 5c8a ldrb r2, [r1, r2] huart->NbRxDataToProcess = ((uint16_t)rx_fifo_depth * numerator[rx_fifo_threshold]) / - 8006ca2: fb93 f3f2 sdiv r3, r3, r2 - 8006ca6: b29a uxth r2, r3 - 8006ca8: 687b ldr r3, [r7, #4] - 8006caa: f8a3 2068 strh.w r2, [r3, #104] @ 0x68 + 800769a: fb93 f3f2 sdiv r3, r3, r2 + 800769e: b29a uxth r2, r3 + 80076a0: 687b ldr r3, [r7, #4] + 80076a2: f8a3 2068 strh.w r2, [r3, #104] @ 0x68 } - 8006cae: bf00 nop - 8006cb0: 3714 adds r7, #20 - 8006cb2: 46bd mov sp, r7 - 8006cb4: f85d 7b04 ldr.w r7, [sp], #4 - 8006cb8: 4770 bx lr - 8006cba: bf00 nop - 8006cbc: 08006d64 .word 0x08006d64 - 8006cc0: 08006d6c .word 0x08006d6c + 80076a6: bf00 nop + 80076a8: 3714 adds r7, #20 + 80076aa: 46bd mov sp, r7 + 80076ac: f85d 7b04 ldr.w r7, [sp], #4 + 80076b0: 4770 bx lr + 80076b2: bf00 nop + 80076b4: 0800775c .word 0x0800775c + 80076b8: 08007764 .word 0x08007764 -08006cc4 : - 8006cc4: 4402 add r2, r0 - 8006cc6: 4603 mov r3, r0 - 8006cc8: 4293 cmp r3, r2 - 8006cca: d100 bne.n 8006cce - 8006ccc: 4770 bx lr - 8006cce: f803 1b01 strb.w r1, [r3], #1 - 8006cd2: e7f9 b.n 8006cc8 +080076bc : + 80076bc: 4402 add r2, r0 + 80076be: 4603 mov r3, r0 + 80076c0: 4293 cmp r3, r2 + 80076c2: d100 bne.n 80076c6 + 80076c4: 4770 bx lr + 80076c6: f803 1b01 strb.w r1, [r3], #1 + 80076ca: e7f9 b.n 80076c0 -08006cd4 <__libc_init_array>: - 8006cd4: b570 push {r4, r5, r6, lr} - 8006cd6: 4d0d ldr r5, [pc, #52] @ (8006d0c <__libc_init_array+0x38>) - 8006cd8: 4c0d ldr r4, [pc, #52] @ (8006d10 <__libc_init_array+0x3c>) - 8006cda: 1b64 subs r4, r4, r5 - 8006cdc: 10a4 asrs r4, r4, #2 - 8006cde: 2600 movs r6, #0 - 8006ce0: 42a6 cmp r6, r4 - 8006ce2: d109 bne.n 8006cf8 <__libc_init_array+0x24> - 8006ce4: 4d0b ldr r5, [pc, #44] @ (8006d14 <__libc_init_array+0x40>) - 8006ce6: 4c0c ldr r4, [pc, #48] @ (8006d18 <__libc_init_array+0x44>) - 8006ce8: f000 f818 bl 8006d1c <_init> - 8006cec: 1b64 subs r4, r4, r5 - 8006cee: 10a4 asrs r4, r4, #2 - 8006cf0: 2600 movs r6, #0 - 8006cf2: 42a6 cmp r6, r4 - 8006cf4: d105 bne.n 8006d02 <__libc_init_array+0x2e> - 8006cf6: bd70 pop {r4, r5, r6, pc} - 8006cf8: f855 3b04 ldr.w r3, [r5], #4 - 8006cfc: 4798 blx r3 - 8006cfe: 3601 adds r6, #1 - 8006d00: e7ee b.n 8006ce0 <__libc_init_array+0xc> - 8006d02: f855 3b04 ldr.w r3, [r5], #4 - 8006d06: 4798 blx r3 - 8006d08: 3601 adds r6, #1 - 8006d0a: e7f2 b.n 8006cf2 <__libc_init_array+0x1e> - 8006d0c: 08006d7c .word 0x08006d7c - 8006d10: 08006d7c .word 0x08006d7c - 8006d14: 08006d7c .word 0x08006d7c - 8006d18: 08006d80 .word 0x08006d80 +080076cc <__libc_init_array>: + 80076cc: b570 push {r4, r5, r6, lr} + 80076ce: 4d0d ldr r5, [pc, #52] @ (8007704 <__libc_init_array+0x38>) + 80076d0: 4c0d ldr r4, [pc, #52] @ (8007708 <__libc_init_array+0x3c>) + 80076d2: 1b64 subs r4, r4, r5 + 80076d4: 10a4 asrs r4, r4, #2 + 80076d6: 2600 movs r6, #0 + 80076d8: 42a6 cmp r6, r4 + 80076da: d109 bne.n 80076f0 <__libc_init_array+0x24> + 80076dc: 4d0b ldr r5, [pc, #44] @ (800770c <__libc_init_array+0x40>) + 80076de: 4c0c ldr r4, [pc, #48] @ (8007710 <__libc_init_array+0x44>) + 80076e0: f000 f818 bl 8007714 <_init> + 80076e4: 1b64 subs r4, r4, r5 + 80076e6: 10a4 asrs r4, r4, #2 + 80076e8: 2600 movs r6, #0 + 80076ea: 42a6 cmp r6, r4 + 80076ec: d105 bne.n 80076fa <__libc_init_array+0x2e> + 80076ee: bd70 pop {r4, r5, r6, pc} + 80076f0: f855 3b04 ldr.w r3, [r5], #4 + 80076f4: 4798 blx r3 + 80076f6: 3601 adds r6, #1 + 80076f8: e7ee b.n 80076d8 <__libc_init_array+0xc> + 80076fa: f855 3b04 ldr.w r3, [r5], #4 + 80076fe: 4798 blx r3 + 8007700: 3601 adds r6, #1 + 8007702: e7f2 b.n 80076ea <__libc_init_array+0x1e> + 8007704: 08007774 .word 0x08007774 + 8007708: 08007774 .word 0x08007774 + 800770c: 08007774 .word 0x08007774 + 8007710: 08007778 .word 0x08007778 -08006d1c <_init>: - 8006d1c: b5f8 push {r3, r4, r5, r6, r7, lr} - 8006d1e: bf00 nop - 8006d20: bcf8 pop {r3, r4, r5, r6, r7} - 8006d22: bc08 pop {r3} - 8006d24: 469e mov lr, r3 - 8006d26: 4770 bx lr +08007714 <_init>: + 8007714: b5f8 push {r3, r4, r5, r6, r7, lr} + 8007716: bf00 nop + 8007718: bcf8 pop {r3, r4, r5, r6, r7} + 800771a: bc08 pop {r3} + 800771c: 469e mov lr, r3 + 800771e: 4770 bx lr -08006d28 <_fini>: - 8006d28: b5f8 push {r3, r4, r5, r6, r7, lr} - 8006d2a: bf00 nop - 8006d2c: bcf8 pop {r3, r4, r5, r6, r7} - 8006d2e: bc08 pop {r3} - 8006d30: 469e mov lr, r3 - 8006d32: 4770 bx lr +08007720 <_fini>: + 8007720: b5f8 push {r3, r4, r5, r6, r7, lr} + 8007722: bf00 nop + 8007724: bcf8 pop {r3, r4, r5, r6, r7} + 8007726: bc08 pop {r3} + 8007728: 469e mov lr, r3 + 800772a: 4770 bx lr diff --git a/Debug/POWER_SWITCH.map b/Debug/POWER_SWITCH.map index 1e52519..82013c5 100644 --- a/Debug/POWER_SWITCH.map +++ b/Debug/POWER_SWITCH.map @@ -38,8 +38,14 @@ C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.external C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-findfp.o) (_fflush_r) C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-sbrkr.o) C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-mallocr.o) (_sbrk_r) +C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_arm_muldf3.o) + ./Core/Src/main.o (__aeabi_dmul) +C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_arm_addsubdf3.o) + ./Core/Src/main.o (__aeabi_ul2d) +C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_arm_fixunsdfsi.o) + ./Core/Src/main.o (__aeabi_d2uiz) C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_aeabi_uldivmod.o) - ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o (__aeabi_uldivmod) + ./Core/Src/main.o (__aeabi_uldivmod) C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_udivmoddi4.o) C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_aeabi_uldivmod.o) (__udivmoddi4) C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_dvmd_tls.o) @@ -101,11 +107,28 @@ Discarded input sections .group 0x00000000 0xc ./Core/Src/main.o .group 0x00000000 0xc ./Core/Src/main.o .group 0x00000000 0xc ./Core/Src/main.o + .group 0x00000000 0xc ./Core/Src/main.o + .group 0x00000000 0xc ./Core/Src/main.o + .group 0x00000000 0xc ./Core/Src/main.o + .group 0x00000000 0xc ./Core/Src/main.o + .group 0x00000000 0xc ./Core/Src/main.o + .group 0x00000000 0xc ./Core/Src/main.o + .group 0x00000000 0xc ./Core/Src/main.o + .group 0x00000000 0xc ./Core/Src/main.o + .group 0x00000000 0xc ./Core/Src/main.o + .group 0x00000000 0xc ./Core/Src/main.o + .group 0x00000000 0xc ./Core/Src/main.o + .group 0x00000000 0xc ./Core/Src/main.o + .group 0x00000000 0xc ./Core/Src/main.o + .group 0x00000000 0xc ./Core/Src/main.o + .group 0x00000000 0xc ./Core/Src/main.o + .group 0x00000000 0xc ./Core/Src/main.o + .group 0x00000000 0xc ./Core/Src/main.o + .group 0x00000000 0xc ./Core/Src/main.o + .group 0x00000000 0xc ./Core/Src/main.o .text 0x00000000 0x0 ./Core/Src/main.o .data 0x00000000 0x0 ./Core/Src/main.o .bss 0x00000000 0x0 ./Core/Src/main.o - .text.get_calibrated_value_mv - 0x00000000 0x30 ./Core/Src/main.o .group 0x00000000 0xc ./Core/Src/stm32g4xx_hal_msp.o .group 0x00000000 0xc ./Core/Src/stm32g4xx_hal_msp.o .group 0x00000000 0xc ./Core/Src/stm32g4xx_hal_msp.o @@ -962,18 +985,12 @@ Discarded input sections 0x00000000 0x28 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc_ex.o .text.LL_ADC_DisableInternalRegulator 0x00000000 0x24 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc_ex.o - .text.LL_ADC_StartCalibration - 0x00000000 0x32 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc_ex.o - .text.LL_ADC_IsCalibrationOnGoing - 0x00000000 0x28 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc_ex.o .text.LL_ADC_REG_StartConversion 0x00000000 0x28 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc_ex.o .text.LL_ADC_INJ_StartConversion 0x00000000 0x28 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc_ex.o .text.LL_ADC_INJ_IsConversionOngoing 0x00000000 0x26 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc_ex.o - .text.HAL_ADCEx_Calibration_Start - 0x00000000 0xc4 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc_ex.o .text.HAL_ADCEx_Calibration_GetValue 0x00000000 0x20 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc_ex.o .text.HAL_ADCEx_Calibration_SetValue @@ -3539,6 +3556,12 @@ Discarded input sections .debug_frame 0x00000000 0x2c C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-sbrkr.o) .ARM.attributes 0x00000000 0x34 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-sbrkr.o) + .data 0x00000000 0x0 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_arm_muldf3.o) + .bss 0x00000000 0x0 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_arm_muldf3.o) + .data 0x00000000 0x0 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_arm_addsubdf3.o) + .bss 0x00000000 0x0 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_arm_addsubdf3.o) + .data 0x00000000 0x0 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_arm_fixunsdfsi.o) + .bss 0x00000000 0x0 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_arm_fixunsdfsi.o) .data 0x00000000 0x0 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_aeabi_uldivmod.o) .bss 0x00000000 0x0 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_aeabi_uldivmod.o) .data 0x00000000 0x0 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_udivmoddi4.o) @@ -3627,678 +3650,731 @@ LOAD C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.ext 0x08000000 g_pfnVectors 0x080001d8 . = ALIGN (0x4) -.text 0x080001d8 0x6b5c +.text 0x080001d8 0x7554 0x080001d8 . = ALIGN (0x4) *(.text) .text 0x080001d8 0x40 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtbegin.o - .text 0x08000218 0x30 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_aeabi_uldivmod.o) - 0x08000218 __aeabi_uldivmod - .text 0x08000248 0x2f8 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_udivmoddi4.o) - 0x08000248 __udivmoddi4 - .text 0x08000540 0x4 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_dvmd_tls.o) - 0x08000540 __aeabi_idiv0 - 0x08000540 __aeabi_ldiv0 + .text 0x08000218 0x254 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_arm_muldf3.o) + 0x08000218 __muldf3 + 0x08000218 __aeabi_dmul + .text 0x0800046c 0x378 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_arm_addsubdf3.o) + 0x0800046c __aeabi_drsub + 0x08000474 __aeabi_dsub + 0x08000474 __subdf3 + 0x08000478 __aeabi_dadd + 0x08000478 __adddf3 + 0x080006f0 __floatunsidf + 0x080006f0 __aeabi_ui2d + 0x08000710 __floatsidf + 0x08000710 __aeabi_i2d + 0x08000734 __aeabi_f2d + 0x08000734 __extendsfdf2 + 0x08000778 __floatundidf + 0x08000778 __aeabi_ul2d + 0x08000788 __floatdidf + 0x08000788 __aeabi_l2d + .text 0x080007e4 0x40 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_arm_fixunsdfsi.o) + 0x080007e4 __aeabi_d2uiz + 0x080007e4 __fixunsdfsi + .text 0x08000824 0x30 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_aeabi_uldivmod.o) + 0x08000824 __aeabi_uldivmod + .text 0x08000854 0x2f8 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_udivmoddi4.o) + 0x08000854 __udivmoddi4 + .text 0x08000b4c 0x4 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_dvmd_tls.o) + 0x08000b4c __aeabi_idiv0 + 0x08000b4c __aeabi_ldiv0 *(.text*) - .text.main 0x08000544 0x118 ./Core/Src/main.o - 0x08000544 main + .text.main 0x08000b50 0x11c ./Core/Src/main.o + 0x08000b50 main .text.SystemClock_Config - 0x0800065c 0x98 ./Core/Src/main.o - 0x0800065c SystemClock_Config + 0x08000c6c 0x98 ./Core/Src/main.o + 0x08000c6c SystemClock_Config .text.MX_ADC1_Init - 0x080006f4 0xf0 ./Core/Src/main.o + 0x08000d04 0xf0 ./Core/Src/main.o .text.MX_ADC2_Init - 0x080007e4 0xec ./Core/Src/main.o + 0x08000df4 0xec ./Core/Src/main.o .text.MX_TIM2_Init - 0x080008d0 0x9c ./Core/Src/main.o + 0x08000ee0 0x9c ./Core/Src/main.o .text.MX_USART2_UART_Init - 0x0800096c 0x98 ./Core/Src/main.o + 0x08000f7c 0x98 ./Core/Src/main.o .text.MX_GPIO_Init - 0x08000a04 0xb0 ./Core/Src/main.o + 0x08001014 0xb0 ./Core/Src/main.o .text.get_actual_vdda - 0x08000ab4 0x5c ./Core/Src/main.o - 0x08000ab4 get_actual_vdda + 0x080010c4 0x5c ./Core/Src/main.o + 0x080010c4 get_actual_vdda + .text.get_divider_input_mv + 0x08001120 0x80 ./Core/Src/main.o + 0x08001120 get_divider_input_mv + .text.voltage_conversion_task + 0x080011a0 0x148 ./Core/Src/main.o + 0x080011a0 voltage_conversion_task + .text.serial_number_task + 0x080012e8 0xe8 ./Core/Src/main.o + 0x080012e8 serial_number_task .text.adc_task - 0x08000b10 0x54 ./Core/Src/main.o - 0x08000b10 adc_task + 0x080013d0 0x58 ./Core/Src/main.o + 0x080013d0 adc_task .text.power_switch - 0x08000b64 0x54 ./Core/Src/main.o - 0x08000b64 power_switch + 0x08001428 0x54 ./Core/Src/main.o + 0x08001428 power_switch .text.HAL_UART_TxCpltCallback - 0x08000bb8 0x14 ./Core/Src/main.o - 0x08000bb8 HAL_UART_TxCpltCallback + 0x0800147c 0x14 ./Core/Src/main.o + 0x0800147c HAL_UART_TxCpltCallback .text.HAL_UART_RxCpltCallback - 0x08000bcc 0x208 ./Core/Src/main.o - 0x08000bcc HAL_UART_RxCpltCallback + 0x08001490 0x220 ./Core/Src/main.o + 0x08001490 HAL_UART_RxCpltCallback .text.Error_Handler - 0x08000dd4 0xc ./Core/Src/main.o - 0x08000dd4 Error_Handler + 0x080016b0 0xc ./Core/Src/main.o + 0x080016b0 Error_Handler .text.HAL_MspInit - 0x08000de0 0x48 ./Core/Src/stm32g4xx_hal_msp.o - 0x08000de0 HAL_MspInit + 0x080016bc 0x48 ./Core/Src/stm32g4xx_hal_msp.o + 0x080016bc HAL_MspInit .text.HAL_ADC_MspInit - 0x08000e28 0x118 ./Core/Src/stm32g4xx_hal_msp.o - 0x08000e28 HAL_ADC_MspInit + 0x08001704 0x118 ./Core/Src/stm32g4xx_hal_msp.o + 0x08001704 HAL_ADC_MspInit .text.HAL_TIM_Base_MspInit - 0x08000f40 0x48 ./Core/Src/stm32g4xx_hal_msp.o - 0x08000f40 HAL_TIM_Base_MspInit + 0x0800181c 0x48 ./Core/Src/stm32g4xx_hal_msp.o + 0x0800181c HAL_TIM_Base_MspInit .text.HAL_UART_MspInit - 0x08000f88 0xc0 ./Core/Src/stm32g4xx_hal_msp.o - 0x08000f88 HAL_UART_MspInit + 0x08001864 0xc0 ./Core/Src/stm32g4xx_hal_msp.o + 0x08001864 HAL_UART_MspInit .text.NMI_Handler - 0x08001048 0x8 ./Core/Src/stm32g4xx_it.o - 0x08001048 NMI_Handler + 0x08001924 0x8 ./Core/Src/stm32g4xx_it.o + 0x08001924 NMI_Handler .text.HardFault_Handler - 0x08001050 0x8 ./Core/Src/stm32g4xx_it.o - 0x08001050 HardFault_Handler + 0x0800192c 0x8 ./Core/Src/stm32g4xx_it.o + 0x0800192c HardFault_Handler .text.MemManage_Handler - 0x08001058 0x8 ./Core/Src/stm32g4xx_it.o - 0x08001058 MemManage_Handler + 0x08001934 0x8 ./Core/Src/stm32g4xx_it.o + 0x08001934 MemManage_Handler .text.BusFault_Handler - 0x08001060 0x8 ./Core/Src/stm32g4xx_it.o - 0x08001060 BusFault_Handler + 0x0800193c 0x8 ./Core/Src/stm32g4xx_it.o + 0x0800193c BusFault_Handler .text.UsageFault_Handler - 0x08001068 0x8 ./Core/Src/stm32g4xx_it.o - 0x08001068 UsageFault_Handler + 0x08001944 0x8 ./Core/Src/stm32g4xx_it.o + 0x08001944 UsageFault_Handler .text.SVC_Handler - 0x08001070 0xe ./Core/Src/stm32g4xx_it.o - 0x08001070 SVC_Handler + 0x0800194c 0xe ./Core/Src/stm32g4xx_it.o + 0x0800194c SVC_Handler .text.DebugMon_Handler - 0x0800107e 0xe ./Core/Src/stm32g4xx_it.o - 0x0800107e DebugMon_Handler + 0x0800195a 0xe ./Core/Src/stm32g4xx_it.o + 0x0800195a DebugMon_Handler .text.PendSV_Handler - 0x0800108c 0xe ./Core/Src/stm32g4xx_it.o - 0x0800108c PendSV_Handler + 0x08001968 0xe ./Core/Src/stm32g4xx_it.o + 0x08001968 PendSV_Handler .text.SysTick_Handler - 0x0800109a 0xc ./Core/Src/stm32g4xx_it.o - 0x0800109a SysTick_Handler - *fill* 0x080010a6 0x2 + 0x08001976 0xc ./Core/Src/stm32g4xx_it.o + 0x08001976 SysTick_Handler + *fill* 0x08001982 0x2 .text.TIM2_IRQHandler - 0x080010a8 0x14 ./Core/Src/stm32g4xx_it.o - 0x080010a8 TIM2_IRQHandler + 0x08001984 0x14 ./Core/Src/stm32g4xx_it.o + 0x08001984 TIM2_IRQHandler .text.USART2_IRQHandler - 0x080010bc 0x14 ./Core/Src/stm32g4xx_it.o - 0x080010bc USART2_IRQHandler + 0x08001998 0x14 ./Core/Src/stm32g4xx_it.o + 0x08001998 USART2_IRQHandler .text.SystemInit - 0x080010d0 0x24 ./Core/Src/system_stm32g4xx.o - 0x080010d0 SystemInit + 0x080019ac 0x24 ./Core/Src/system_stm32g4xx.o + 0x080019ac SystemInit .text.Reset_Handler - 0x080010f4 0x50 ./Core/Startup/startup_stm32g431kbtx.o - 0x080010f4 Reset_Handler + 0x080019d0 0x50 ./Core/Startup/startup_stm32g431kbtx.o + 0x080019d0 Reset_Handler .text.Default_Handler - 0x08001144 0x2 ./Core/Startup/startup_stm32g431kbtx.o - 0x08001144 RTC_Alarm_IRQHandler - 0x08001144 EXTI2_IRQHandler - 0x08001144 TIM8_TRG_COM_IRQHandler - 0x08001144 TIM8_CC_IRQHandler - 0x08001144 TIM1_CC_IRQHandler - 0x08001144 USB_HP_IRQHandler - 0x08001144 CORDIC_IRQHandler - 0x08001144 EXTI3_IRQHandler - 0x08001144 I2C3_ER_IRQHandler - 0x08001144 EXTI0_IRQHandler - 0x08001144 I2C2_EV_IRQHandler - 0x08001144 FPU_IRQHandler - 0x08001144 FDCAN1_IT1_IRQHandler - 0x08001144 TIM1_UP_TIM16_IRQHandler - 0x08001144 ADC1_2_IRQHandler - 0x08001144 SPI1_IRQHandler - 0x08001144 TIM6_DAC_IRQHandler - 0x08001144 TIM8_UP_IRQHandler - 0x08001144 DMA2_Channel2_IRQHandler - 0x08001144 DMA1_Channel4_IRQHandler - 0x08001144 USART3_IRQHandler - 0x08001144 TIM4_IRQHandler - 0x08001144 DMA2_Channel1_IRQHandler - 0x08001144 I2C1_EV_IRQHandler - 0x08001144 DMA1_Channel6_IRQHandler - 0x08001144 UART4_IRQHandler - 0x08001144 DMA2_Channel4_IRQHandler - 0x08001144 TIM3_IRQHandler - 0x08001144 RCC_IRQHandler - 0x08001144 DMA1_Channel1_IRQHandler - 0x08001144 Default_Handler - 0x08001144 RTC_TAMP_LSECSS_IRQHandler - 0x08001144 FMAC_IRQHandler - 0x08001144 EXTI15_10_IRQHandler - 0x08001144 TIM7_IRQHandler - 0x08001144 UCPD1_IRQHandler - 0x08001144 I2C3_EV_IRQHandler - 0x08001144 EXTI9_5_IRQHandler - 0x08001144 RTC_WKUP_IRQHandler - 0x08001144 PVD_PVM_IRQHandler - 0x08001144 SPI2_IRQHandler - 0x08001144 DMA2_Channel5_IRQHandler - 0x08001144 CRS_IRQHandler - 0x08001144 DMA1_Channel5_IRQHandler - 0x08001144 USB_LP_IRQHandler - 0x08001144 EXTI4_IRQHandler - 0x08001144 RNG_IRQHandler - 0x08001144 TIM1_TRG_COM_TIM17_IRQHandler - 0x08001144 DMA1_Channel3_IRQHandler - 0x08001144 WWDG_IRQHandler - 0x08001144 LPUART1_IRQHandler - 0x08001144 DMA2_Channel6_IRQHandler - 0x08001144 FDCAN1_IT0_IRQHandler - 0x08001144 COMP1_2_3_IRQHandler - 0x08001144 EXTI1_IRQHandler - 0x08001144 I2C2_ER_IRQHandler - 0x08001144 DMA1_Channel2_IRQHandler - 0x08001144 TIM8_BRK_IRQHandler - 0x08001144 FLASH_IRQHandler - 0x08001144 USART1_IRQHandler - 0x08001144 SPI3_IRQHandler - 0x08001144 I2C1_ER_IRQHandler - 0x08001144 LPTIM1_IRQHandler - 0x08001144 DMAMUX_OVR_IRQHandler - 0x08001144 USBWakeUp_IRQHandler - 0x08001144 SAI1_IRQHandler - 0x08001144 DMA2_Channel3_IRQHandler - 0x08001144 COMP4_IRQHandler - 0x08001144 TIM1_BRK_TIM15_IRQHandler + 0x08001a20 0x2 ./Core/Startup/startup_stm32g431kbtx.o + 0x08001a20 RTC_Alarm_IRQHandler + 0x08001a20 EXTI2_IRQHandler + 0x08001a20 TIM8_TRG_COM_IRQHandler + 0x08001a20 TIM8_CC_IRQHandler + 0x08001a20 TIM1_CC_IRQHandler + 0x08001a20 USB_HP_IRQHandler + 0x08001a20 CORDIC_IRQHandler + 0x08001a20 EXTI3_IRQHandler + 0x08001a20 I2C3_ER_IRQHandler + 0x08001a20 EXTI0_IRQHandler + 0x08001a20 I2C2_EV_IRQHandler + 0x08001a20 FPU_IRQHandler + 0x08001a20 FDCAN1_IT1_IRQHandler + 0x08001a20 TIM1_UP_TIM16_IRQHandler + 0x08001a20 ADC1_2_IRQHandler + 0x08001a20 SPI1_IRQHandler + 0x08001a20 TIM6_DAC_IRQHandler + 0x08001a20 TIM8_UP_IRQHandler + 0x08001a20 DMA2_Channel2_IRQHandler + 0x08001a20 DMA1_Channel4_IRQHandler + 0x08001a20 USART3_IRQHandler + 0x08001a20 TIM4_IRQHandler + 0x08001a20 DMA2_Channel1_IRQHandler + 0x08001a20 I2C1_EV_IRQHandler + 0x08001a20 DMA1_Channel6_IRQHandler + 0x08001a20 UART4_IRQHandler + 0x08001a20 DMA2_Channel4_IRQHandler + 0x08001a20 TIM3_IRQHandler + 0x08001a20 RCC_IRQHandler + 0x08001a20 DMA1_Channel1_IRQHandler + 0x08001a20 Default_Handler + 0x08001a20 RTC_TAMP_LSECSS_IRQHandler + 0x08001a20 FMAC_IRQHandler + 0x08001a20 EXTI15_10_IRQHandler + 0x08001a20 TIM7_IRQHandler + 0x08001a20 UCPD1_IRQHandler + 0x08001a20 I2C3_EV_IRQHandler + 0x08001a20 EXTI9_5_IRQHandler + 0x08001a20 RTC_WKUP_IRQHandler + 0x08001a20 PVD_PVM_IRQHandler + 0x08001a20 SPI2_IRQHandler + 0x08001a20 DMA2_Channel5_IRQHandler + 0x08001a20 CRS_IRQHandler + 0x08001a20 DMA1_Channel5_IRQHandler + 0x08001a20 USB_LP_IRQHandler + 0x08001a20 EXTI4_IRQHandler + 0x08001a20 RNG_IRQHandler + 0x08001a20 TIM1_TRG_COM_TIM17_IRQHandler + 0x08001a20 DMA1_Channel3_IRQHandler + 0x08001a20 WWDG_IRQHandler + 0x08001a20 LPUART1_IRQHandler + 0x08001a20 DMA2_Channel6_IRQHandler + 0x08001a20 FDCAN1_IT0_IRQHandler + 0x08001a20 COMP1_2_3_IRQHandler + 0x08001a20 EXTI1_IRQHandler + 0x08001a20 I2C2_ER_IRQHandler + 0x08001a20 DMA1_Channel2_IRQHandler + 0x08001a20 TIM8_BRK_IRQHandler + 0x08001a20 FLASH_IRQHandler + 0x08001a20 USART1_IRQHandler + 0x08001a20 SPI3_IRQHandler + 0x08001a20 I2C1_ER_IRQHandler + 0x08001a20 LPTIM1_IRQHandler + 0x08001a20 DMAMUX_OVR_IRQHandler + 0x08001a20 USBWakeUp_IRQHandler + 0x08001a20 SAI1_IRQHandler + 0x08001a20 DMA2_Channel3_IRQHandler + 0x08001a20 COMP4_IRQHandler + 0x08001a20 TIM1_BRK_TIM15_IRQHandler .text.HAL_Init - 0x08001146 0x30 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal.o - 0x08001146 HAL_Init - *fill* 0x08001176 0x2 + 0x08001a22 0x30 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal.o + 0x08001a22 HAL_Init + *fill* 0x08001a52 0x2 .text.HAL_InitTick - 0x08001178 0x74 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal.o - 0x08001178 HAL_InitTick + 0x08001a54 0x74 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal.o + 0x08001a54 HAL_InitTick .text.HAL_IncTick - 0x080011ec 0x24 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal.o - 0x080011ec HAL_IncTick + 0x08001ac8 0x24 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal.o + 0x08001ac8 HAL_IncTick .text.HAL_GetTick - 0x08001210 0x18 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal.o - 0x08001210 HAL_GetTick + 0x08001aec 0x18 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal.o + 0x08001aec HAL_GetTick .text.LL_ADC_SetCommonClock - 0x08001228 0x26 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o + 0x08001b04 0x26 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o .text.LL_ADC_SetCommonPathInternalCh - 0x0800124e 0x26 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o + 0x08001b2a 0x26 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o .text.LL_ADC_GetCommonPathInternalCh - 0x08001274 0x1c ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o + 0x08001b50 0x1c ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o .text.LL_ADC_SetOffset - 0x08001290 0x48 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o + 0x08001b6c 0x48 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o .text.LL_ADC_GetOffsetChannel - 0x080012d8 0x2c ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o + 0x08001bb4 0x2c ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o .text.LL_ADC_SetOffsetState - 0x08001304 0x36 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o + 0x08001be0 0x36 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o .text.LL_ADC_SetOffsetSign - 0x0800133a 0x36 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o + 0x08001c16 0x36 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o .text.LL_ADC_SetOffsetSaturation - 0x08001370 0x36 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o + 0x08001c4c 0x36 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o .text.LL_ADC_SetSamplingTimeCommonConfig - 0x080013a6 0x26 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o + 0x08001c82 0x26 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o .text.LL_ADC_REG_IsTriggerSourceSWStart - 0x080013cc 0x26 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o + 0x08001ca8 0x26 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o .text.LL_ADC_REG_SetSequencerRanks - 0x080013f2 0x58 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o + 0x08001cce 0x58 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o .text.LL_ADC_SetChannelSamplingTime - 0x0800144a 0x56 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o + 0x08001d26 0x56 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o .text.LL_ADC_SetChannelSingleDiff - 0x080014a0 0x48 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o + 0x08001d7c 0x48 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o .text.LL_ADC_GetMultimode - 0x080014e8 0x1c ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o + 0x08001dc4 0x1c ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o .text.LL_ADC_GetMultiDMATransfer - 0x08001504 0x1c ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o + 0x08001de0 0x1c ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o .text.LL_ADC_DisableDeepPowerDown - 0x08001520 0x24 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o + 0x08001dfc 0x24 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o .text.LL_ADC_IsDeepPowerDownEnabled - 0x08001544 0x28 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o + 0x08001e20 0x28 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o .text.LL_ADC_EnableInternalRegulator - 0x0800156c 0x28 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o + 0x08001e48 0x28 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o .text.LL_ADC_IsInternalRegulatorEnabled - 0x08001594 0x28 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o + 0x08001e70 0x28 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o .text.LL_ADC_Enable - 0x080015bc 0x28 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o + 0x08001e98 0x28 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o .text.LL_ADC_Disable - 0x080015e4 0x28 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o + 0x08001ec0 0x28 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o .text.LL_ADC_IsEnabled - 0x0800160c 0x26 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o + 0x08001ee8 0x26 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o .text.LL_ADC_IsDisableOngoing - 0x08001632 0x26 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o + 0x08001f0e 0x26 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o .text.LL_ADC_REG_StartConversion - 0x08001658 0x28 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o + 0x08001f34 0x28 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o .text.LL_ADC_REG_StopConversion - 0x08001680 0x28 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o + 0x08001f5c 0x28 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o .text.LL_ADC_REG_IsConversionOngoing - 0x080016a8 0x26 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o + 0x08001f84 0x26 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o .text.LL_ADC_INJ_StopConversion - 0x080016ce 0x28 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o + 0x08001faa 0x28 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o .text.LL_ADC_INJ_IsConversionOngoing - 0x080016f6 0x26 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o + 0x08001fd2 0x26 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o .text.HAL_ADC_Init - 0x0800171c 0x308 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o - 0x0800171c HAL_ADC_Init + 0x08001ff8 0x308 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o + 0x08001ff8 HAL_ADC_Init .text.HAL_ADC_Start - 0x08001a24 0x178 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o - 0x08001a24 HAL_ADC_Start + 0x08002300 0x178 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o + 0x08002300 HAL_ADC_Start .text.HAL_ADC_Stop - 0x08001b9c 0x66 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o - 0x08001b9c HAL_ADC_Stop - *fill* 0x08001c02 0x2 + 0x08002478 0x66 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o + 0x08002478 HAL_ADC_Stop + *fill* 0x080024de 0x2 .text.HAL_ADC_PollForConversion - 0x08001c04 0x1b0 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o - 0x08001c04 HAL_ADC_PollForConversion + 0x080024e0 0x1b0 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o + 0x080024e0 HAL_ADC_PollForConversion .text.HAL_ADC_GetValue - 0x08001db4 0x1a ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o - 0x08001db4 HAL_ADC_GetValue - *fill* 0x08001dce 0x2 + 0x08002690 0x1a ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o + 0x08002690 HAL_ADC_GetValue + *fill* 0x080026aa 0x2 .text.HAL_ADC_ConfigChannel - 0x08001dd0 0x7e0 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o - 0x08001dd0 HAL_ADC_ConfigChannel + 0x080026ac 0x7e0 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o + 0x080026ac HAL_ADC_ConfigChannel .text.ADC_ConversionStop - 0x080025b0 0x178 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o - 0x080025b0 ADC_ConversionStop + 0x08002e8c 0x178 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o + 0x08002e8c ADC_ConversionStop .text.ADC_Enable - 0x08002728 0x10c ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o - 0x08002728 ADC_Enable + 0x08003004 0x10c ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o + 0x08003004 ADC_Enable .text.ADC_Disable - 0x08002834 0xbe ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o - 0x08002834 ADC_Disable + 0x08003110 0xbe ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o + 0x08003110 ADC_Disable .text.LL_ADC_IsEnabled - 0x080028f2 0x26 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc_ex.o + 0x080031ce 0x26 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc_ex.o + .text.LL_ADC_StartCalibration + 0x080031f4 0x32 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc_ex.o + .text.LL_ADC_IsCalibrationOnGoing + 0x08003226 0x28 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc_ex.o .text.LL_ADC_REG_IsConversionOngoing - 0x08002918 0x26 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc_ex.o - *fill* 0x0800293e 0x2 + 0x0800324e 0x26 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc_ex.o + .text.HAL_ADCEx_Calibration_Start + 0x08003274 0xc4 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc_ex.o + 0x08003274 HAL_ADCEx_Calibration_Start .text.HAL_ADCEx_MultiModeConfigChannel - 0x08002940 0x148 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc_ex.o - 0x08002940 HAL_ADCEx_MultiModeConfigChannel + 0x08003338 0x148 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc_ex.o + 0x08003338 HAL_ADCEx_MultiModeConfigChannel .text.__NVIC_SetPriorityGrouping - 0x08002a88 0x48 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_cortex.o + 0x08003480 0x48 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_cortex.o .text.__NVIC_GetPriorityGrouping - 0x08002ad0 0x1c ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_cortex.o + 0x080034c8 0x1c ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_cortex.o .text.__NVIC_EnableIRQ - 0x08002aec 0x3c ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_cortex.o + 0x080034e4 0x3c ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_cortex.o .text.__NVIC_SetPriority - 0x08002b28 0x54 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_cortex.o + 0x08003520 0x54 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_cortex.o .text.NVIC_EncodePriority - 0x08002b7c 0x66 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_cortex.o - *fill* 0x08002be2 0x2 + 0x08003574 0x66 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_cortex.o + *fill* 0x080035da 0x2 .text.SysTick_Config - 0x08002be4 0x44 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_cortex.o + 0x080035dc 0x44 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_cortex.o .text.HAL_NVIC_SetPriorityGrouping - 0x08002c28 0x16 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_cortex.o - 0x08002c28 HAL_NVIC_SetPriorityGrouping + 0x08003620 0x16 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_cortex.o + 0x08003620 HAL_NVIC_SetPriorityGrouping .text.HAL_NVIC_SetPriority - 0x08002c3e 0x34 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_cortex.o - 0x08002c3e HAL_NVIC_SetPriority + 0x08003636 0x34 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_cortex.o + 0x08003636 HAL_NVIC_SetPriority .text.HAL_NVIC_EnableIRQ - 0x08002c72 0x1c ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_cortex.o - 0x08002c72 HAL_NVIC_EnableIRQ + 0x0800366a 0x1c ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_cortex.o + 0x0800366a HAL_NVIC_EnableIRQ .text.HAL_SYSTICK_Config - 0x08002c8e 0x18 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_cortex.o - 0x08002c8e HAL_SYSTICK_Config + 0x08003686 0x18 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_cortex.o + 0x08003686 HAL_SYSTICK_Config .text.HAL_DMA_Abort - 0x08002ca6 0xb2 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_dma.o - 0x08002ca6 HAL_DMA_Abort + 0x0800369e 0xb2 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_dma.o + 0x0800369e HAL_DMA_Abort .text.HAL_DMA_Abort_IT - 0x08002d58 0xce ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_dma.o - 0x08002d58 HAL_DMA_Abort_IT - *fill* 0x08002e26 0x2 + 0x08003750 0xce ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_dma.o + 0x08003750 HAL_DMA_Abort_IT + *fill* 0x0800381e 0x2 .text.HAL_GPIO_Init - 0x08002e28 0x304 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_gpio.o - 0x08002e28 HAL_GPIO_Init + 0x08003820 0x304 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_gpio.o + 0x08003820 HAL_GPIO_Init .text.HAL_GPIO_WritePin - 0x0800312c 0x30 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_gpio.o - 0x0800312c HAL_GPIO_WritePin + 0x08003b24 0x30 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_gpio.o + 0x08003b24 HAL_GPIO_WritePin .text.HAL_PWREx_ControlVoltageScaling - 0x0800315c 0x148 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_pwr_ex.o - 0x0800315c HAL_PWREx_ControlVoltageScaling + 0x08003b54 0x148 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_pwr_ex.o + 0x08003b54 HAL_PWREx_ControlVoltageScaling .text.HAL_PWREx_DisableUCPDDeadBattery - 0x080032a4 0x20 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_pwr_ex.o - 0x080032a4 HAL_PWREx_DisableUCPDDeadBattery + 0x08003c9c 0x20 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_pwr_ex.o + 0x08003c9c HAL_PWREx_DisableUCPDDeadBattery .text.HAL_RCC_OscConfig - 0x080032c4 0x624 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_rcc.o - 0x080032c4 HAL_RCC_OscConfig + 0x08003cbc 0x624 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_rcc.o + 0x08003cbc HAL_RCC_OscConfig .text.HAL_RCC_ClockConfig - 0x080038e8 0x278 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_rcc.o - 0x080038e8 HAL_RCC_ClockConfig + 0x080042e0 0x278 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_rcc.o + 0x080042e0 HAL_RCC_ClockConfig .text.HAL_RCC_GetSysClockFreq - 0x08003b60 0xc4 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_rcc.o - 0x08003b60 HAL_RCC_GetSysClockFreq + 0x08004558 0xc4 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_rcc.o + 0x08004558 HAL_RCC_GetSysClockFreq .text.HAL_RCC_GetHCLKFreq - 0x08003c24 0x18 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_rcc.o - 0x08003c24 HAL_RCC_GetHCLKFreq + 0x0800461c 0x18 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_rcc.o + 0x0800461c HAL_RCC_GetHCLKFreq .text.HAL_RCC_GetPCLK1Freq - 0x08003c3c 0x2c ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_rcc.o - 0x08003c3c HAL_RCC_GetPCLK1Freq + 0x08004634 0x2c ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_rcc.o + 0x08004634 HAL_RCC_GetPCLK1Freq .text.HAL_RCC_GetPCLK2Freq - 0x08003c68 0x2c ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_rcc.o - 0x08003c68 HAL_RCC_GetPCLK2Freq + 0x08004660 0x2c ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_rcc.o + 0x08004660 HAL_RCC_GetPCLK2Freq .text.RCC_GetSysClockFreqFromPLLSource - 0x08003c94 0x8c ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_rcc.o + 0x0800468c 0x8c ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_rcc.o .text.HAL_RCCEx_PeriphCLKConfig - 0x08003d20 0x3e0 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_rcc_ex.o - 0x08003d20 HAL_RCCEx_PeriphCLKConfig + 0x08004718 0x3e0 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_rcc_ex.o + 0x08004718 HAL_RCCEx_PeriphCLKConfig .text.HAL_TIM_Base_Init - 0x08004100 0xae ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim.o - 0x08004100 HAL_TIM_Base_Init + 0x08004af8 0xae ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim.o + 0x08004af8 HAL_TIM_Base_Init .text.HAL_TIM_IRQHandler - 0x080041ae 0x29e ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim.o - 0x080041ae HAL_TIM_IRQHandler + 0x08004ba6 0x29e ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim.o + 0x08004ba6 HAL_TIM_IRQHandler .text.HAL_TIM_ConfigClockSource - 0x0800444c 0x1f4 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim.o - 0x0800444c HAL_TIM_ConfigClockSource + 0x08004e44 0x1f4 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim.o + 0x08004e44 HAL_TIM_ConfigClockSource .text.HAL_TIM_PeriodElapsedCallback - 0x08004640 0x14 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim.o - 0x08004640 HAL_TIM_PeriodElapsedCallback + 0x08005038 0x14 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim.o + 0x08005038 HAL_TIM_PeriodElapsedCallback .text.HAL_TIM_OC_DelayElapsedCallback - 0x08004654 0x14 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim.o - 0x08004654 HAL_TIM_OC_DelayElapsedCallback + 0x0800504c 0x14 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim.o + 0x0800504c HAL_TIM_OC_DelayElapsedCallback .text.HAL_TIM_IC_CaptureCallback - 0x08004668 0x14 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim.o - 0x08004668 HAL_TIM_IC_CaptureCallback + 0x08005060 0x14 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim.o + 0x08005060 HAL_TIM_IC_CaptureCallback .text.HAL_TIM_PWM_PulseFinishedCallback - 0x0800467c 0x14 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim.o - 0x0800467c HAL_TIM_PWM_PulseFinishedCallback + 0x08005074 0x14 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim.o + 0x08005074 HAL_TIM_PWM_PulseFinishedCallback .text.HAL_TIM_TriggerCallback - 0x08004690 0x14 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim.o - 0x08004690 HAL_TIM_TriggerCallback + 0x08005088 0x14 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim.o + 0x08005088 HAL_TIM_TriggerCallback .text.TIM_Base_SetConfig - 0x080046a4 0x138 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim.o - 0x080046a4 TIM_Base_SetConfig + 0x0800509c 0x138 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim.o + 0x0800509c TIM_Base_SetConfig .text.TIM_TI1_ConfigInputStage - 0x080047dc 0x5e ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim.o + 0x080051d4 0x5e ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim.o .text.TIM_TI2_ConfigInputStage - 0x0800483a 0x60 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim.o + 0x08005232 0x60 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim.o .text.TIM_ITRx_SetConfig - 0x0800489a 0x3a ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim.o + 0x08005292 0x3a ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim.o .text.TIM_ETR_SetConfig - 0x080048d4 0x40 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim.o - 0x080048d4 TIM_ETR_SetConfig + 0x080052cc 0x40 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim.o + 0x080052cc TIM_ETR_SetConfig .text.HAL_TIMEx_MasterConfigSynchronization - 0x08004914 0x104 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim_ex.o - 0x08004914 HAL_TIMEx_MasterConfigSynchronization + 0x0800530c 0x104 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim_ex.o + 0x0800530c HAL_TIMEx_MasterConfigSynchronization .text.HAL_TIMEx_CommutCallback - 0x08004a18 0x14 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim_ex.o - 0x08004a18 HAL_TIMEx_CommutCallback + 0x08005410 0x14 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim_ex.o + 0x08005410 HAL_TIMEx_CommutCallback .text.HAL_TIMEx_BreakCallback - 0x08004a2c 0x14 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim_ex.o - 0x08004a2c HAL_TIMEx_BreakCallback + 0x08005424 0x14 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim_ex.o + 0x08005424 HAL_TIMEx_BreakCallback .text.HAL_TIMEx_Break2Callback - 0x08004a40 0x14 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim_ex.o - 0x08004a40 HAL_TIMEx_Break2Callback + 0x08005438 0x14 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim_ex.o + 0x08005438 HAL_TIMEx_Break2Callback .text.HAL_TIMEx_EncoderIndexCallback - 0x08004a54 0x14 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim_ex.o - 0x08004a54 HAL_TIMEx_EncoderIndexCallback + 0x0800544c 0x14 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim_ex.o + 0x0800544c HAL_TIMEx_EncoderIndexCallback .text.HAL_TIMEx_DirectionChangeCallback - 0x08004a68 0x14 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim_ex.o - 0x08004a68 HAL_TIMEx_DirectionChangeCallback + 0x08005460 0x14 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim_ex.o + 0x08005460 HAL_TIMEx_DirectionChangeCallback .text.HAL_TIMEx_IndexErrorCallback - 0x08004a7c 0x14 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim_ex.o - 0x08004a7c HAL_TIMEx_IndexErrorCallback + 0x08005474 0x14 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim_ex.o + 0x08005474 HAL_TIMEx_IndexErrorCallback .text.HAL_TIMEx_TransitionErrorCallback - 0x08004a90 0x14 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim_ex.o - 0x08004a90 HAL_TIMEx_TransitionErrorCallback + 0x08005488 0x14 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim_ex.o + 0x08005488 HAL_TIMEx_TransitionErrorCallback .text.HAL_UART_Init - 0x08004aa4 0xa0 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o - 0x08004aa4 HAL_UART_Init + 0x0800549c 0xa0 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o + 0x0800549c HAL_UART_Init .text.HAL_UART_Transmit - 0x08004b44 0x11c ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o - 0x08004b44 HAL_UART_Transmit + 0x0800553c 0x11c ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o + 0x0800553c HAL_UART_Transmit .text.HAL_UART_Receive_IT - 0x08004c60 0x98 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o - 0x08004c60 HAL_UART_Receive_IT + 0x08005658 0x98 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o + 0x08005658 HAL_UART_Receive_IT .text.HAL_UART_IRQHandler - 0x08004cf8 0x684 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o - 0x08004cf8 HAL_UART_IRQHandler + 0x080056f0 0x684 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o + 0x080056f0 HAL_UART_IRQHandler .text.HAL_UART_ErrorCallback - 0x0800537c 0x14 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o - 0x0800537c HAL_UART_ErrorCallback + 0x08005d74 0x14 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o + 0x08005d74 HAL_UART_ErrorCallback .text.HAL_UARTEx_RxEventCallback - 0x08005390 0x18 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o - 0x08005390 HAL_UARTEx_RxEventCallback + 0x08005d88 0x18 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o + 0x08005d88 HAL_UARTEx_RxEventCallback .text.UART_SetConfig - 0x080053a8 0x598 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o - 0x080053a8 UART_SetConfig + 0x08005da0 0x598 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o + 0x08005da0 UART_SetConfig .text.UART_AdvFeatureConfig - 0x08005940 0x144 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o - 0x08005940 UART_AdvFeatureConfig + 0x08006338 0x144 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o + 0x08006338 UART_AdvFeatureConfig .text.UART_CheckIdleState - 0x08005a84 0x154 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o - 0x08005a84 UART_CheckIdleState + 0x0800647c 0x154 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o + 0x0800647c UART_CheckIdleState .text.UART_WaitOnFlagUntilTimeout - 0x08005bd8 0xda ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o - 0x08005bd8 UART_WaitOnFlagUntilTimeout - *fill* 0x08005cb2 0x2 + 0x080065d0 0xda ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o + 0x080065d0 UART_WaitOnFlagUntilTimeout + *fill* 0x080066aa 0x2 .text.UART_Start_Receive_IT - 0x08005cb4 0x244 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o - 0x08005cb4 UART_Start_Receive_IT + 0x080066ac 0x244 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o + 0x080066ac UART_Start_Receive_IT .text.UART_EndRxTransfer - 0x08005ef8 0xcc ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o + 0x080068f0 0xcc ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o .text.UART_DMAAbortOnError - 0x08005fc4 0x24 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o + 0x080069bc 0x24 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o .text.UART_EndTransmit_IT - 0x08005fe8 0x56 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o - *fill* 0x0800603e 0x2 + 0x080069e0 0x56 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o + *fill* 0x08006a36 0x2 .text.UART_RxISR_8BIT - 0x08006040 0x1b8 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o + 0x08006a38 0x1b8 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o .text.UART_RxISR_16BIT - 0x080061f8 0x1b8 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o + 0x08006bf0 0x1b8 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o .text.UART_RxISR_8BIT_FIFOEN - 0x080063b0 0x364 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o + 0x08006da8 0x364 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o .text.UART_RxISR_16BIT_FIFOEN - 0x08006714 0x36c ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o + 0x0800710c 0x36c ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o .text.HAL_UARTEx_WakeupCallback - 0x08006a80 0x14 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart_ex.o - 0x08006a80 HAL_UARTEx_WakeupCallback + 0x08007478 0x14 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart_ex.o + 0x08007478 HAL_UARTEx_WakeupCallback .text.HAL_UARTEx_RxFifoFullCallback - 0x08006a94 0x14 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart_ex.o - 0x08006a94 HAL_UARTEx_RxFifoFullCallback + 0x0800748c 0x14 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart_ex.o + 0x0800748c HAL_UARTEx_RxFifoFullCallback .text.HAL_UARTEx_TxFifoEmptyCallback - 0x08006aa8 0x14 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart_ex.o - 0x08006aa8 HAL_UARTEx_TxFifoEmptyCallback + 0x080074a0 0x14 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart_ex.o + 0x080074a0 HAL_UARTEx_TxFifoEmptyCallback .text.HAL_UARTEx_DisableFifoMode - 0x08006abc 0x72 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart_ex.o - 0x08006abc HAL_UARTEx_DisableFifoMode + 0x080074b4 0x72 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart_ex.o + 0x080074b4 HAL_UARTEx_DisableFifoMode .text.HAL_UARTEx_SetTxFifoThreshold - 0x08006b2e 0x7c ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart_ex.o - 0x08006b2e HAL_UARTEx_SetTxFifoThreshold + 0x08007526 0x7c ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart_ex.o + 0x08007526 HAL_UARTEx_SetTxFifoThreshold .text.HAL_UARTEx_SetRxFifoThreshold - 0x08006baa 0x7c ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart_ex.o - 0x08006baa HAL_UARTEx_SetRxFifoThreshold - *fill* 0x08006c26 0x2 + 0x080075a2 0x7c ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart_ex.o + 0x080075a2 HAL_UARTEx_SetRxFifoThreshold + *fill* 0x0800761e 0x2 .text.UARTEx_SetNbDataToProcess - 0x08006c28 0x9c ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart_ex.o - .text.memset 0x08006cc4 0x10 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-memset.o) - 0x08006cc4 memset + 0x08007620 0x9c ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart_ex.o + .text.memset 0x080076bc 0x10 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-memset.o) + 0x080076bc memset .text.__libc_init_array - 0x08006cd4 0x48 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-init.o) - 0x08006cd4 __libc_init_array + 0x080076cc 0x48 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-init.o) + 0x080076cc __libc_init_array *(.glue_7) - .glue_7 0x08006d1c 0x0 linker stubs + .glue_7 0x08007714 0x0 linker stubs *(.glue_7t) - .glue_7t 0x08006d1c 0x0 linker stubs + .glue_7t 0x08007714 0x0 linker stubs *(.eh_frame) - .eh_frame 0x08006d1c 0x0 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtbegin.o + .eh_frame 0x08007714 0x0 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtbegin.o *(.init) - .init 0x08006d1c 0x4 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crti.o - 0x08006d1c _init - .init 0x08006d20 0x8 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtn.o + .init 0x08007714 0x4 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crti.o + 0x08007714 _init + .init 0x08007718 0x8 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtn.o *(.fini) - .fini 0x08006d28 0x4 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crti.o - 0x08006d28 _fini - .fini 0x08006d2c 0x8 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtn.o - 0x08006d34 . = ALIGN (0x4) - 0x08006d34 _etext = . + .fini 0x08007720 0x4 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crti.o + 0x08007720 _fini + .fini 0x08007724 0x8 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtn.o + 0x0800772c . = ALIGN (0x4) + 0x0800772c _etext = . -.vfp11_veneer 0x08006d34 0x0 - .vfp11_veneer 0x08006d34 0x0 linker stubs +.vfp11_veneer 0x0800772c 0x0 + .vfp11_veneer 0x0800772c 0x0 linker stubs -.v4_bx 0x08006d34 0x0 - .v4_bx 0x08006d34 0x0 linker stubs +.v4_bx 0x0800772c 0x0 + .v4_bx 0x0800772c 0x0 linker stubs -.iplt 0x08006d34 0x0 - .iplt 0x08006d34 0x0 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtbegin.o +.iplt 0x0800772c 0x0 + .iplt 0x0800772c 0x0 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtbegin.o -.rodata 0x08006d34 0x40 - 0x08006d34 . = ALIGN (0x4) +.rodata 0x0800772c 0x40 + 0x0800772c . = ALIGN (0x4) *(.rodata) *(.rodata*) .rodata.AHBPrescTable - 0x08006d34 0x10 ./Core/Src/system_stm32g4xx.o - 0x08006d34 AHBPrescTable + 0x0800772c 0x10 ./Core/Src/system_stm32g4xx.o + 0x0800772c AHBPrescTable .rodata.APBPrescTable - 0x08006d44 0x8 ./Core/Src/system_stm32g4xx.o - 0x08006d44 APBPrescTable + 0x0800773c 0x8 ./Core/Src/system_stm32g4xx.o + 0x0800773c APBPrescTable .rodata.UARTPrescTable - 0x08006d4c 0x18 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o - 0x08006d4c UARTPrescTable + 0x08007744 0x18 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o + 0x08007744 UARTPrescTable .rodata.numerator.1 - 0x08006d64 0x8 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart_ex.o + 0x0800775c 0x8 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart_ex.o .rodata.denominator.0 - 0x08006d6c 0x8 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart_ex.o - 0x08006d74 . = ALIGN (0x4) + 0x08007764 0x8 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart_ex.o + 0x0800776c . = ALIGN (0x4) -.ARM.extab 0x08006d74 0x0 - 0x08006d74 . = ALIGN (0x4) +.ARM.extab 0x0800776c 0x0 + 0x0800776c . = ALIGN (0x4) *(.ARM.extab* .gnu.linkonce.armextab.*) - 0x08006d74 . = ALIGN (0x4) + 0x0800776c . = ALIGN (0x4) -.ARM 0x08006d74 0x8 - 0x08006d74 . = ALIGN (0x4) - 0x08006d74 __exidx_start = . +.ARM 0x0800776c 0x8 + 0x0800776c . = ALIGN (0x4) + 0x0800776c __exidx_start = . *(.ARM.exidx*) - .ARM.exidx 0x08006d74 0x8 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_udivmoddi4.o) - 0x08006d7c __exidx_end = . - 0x08006d7c . = ALIGN (0x4) + .ARM.exidx 0x0800776c 0x8 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_udivmoddi4.o) + 0x08007774 __exidx_end = . + 0x08007774 . = ALIGN (0x4) -.preinit_array 0x08006d7c 0x0 - 0x08006d7c . = ALIGN (0x4) - 0x08006d7c PROVIDE (__preinit_array_start = .) +.preinit_array 0x08007774 0x0 + 0x08007774 . = ALIGN (0x4) + 0x08007774 PROVIDE (__preinit_array_start = .) *(.preinit_array*) - 0x08006d7c PROVIDE (__preinit_array_end = .) - 0x08006d7c . = ALIGN (0x4) + 0x08007774 PROVIDE (__preinit_array_end = .) + 0x08007774 . = ALIGN (0x4) -.init_array 0x08006d7c 0x4 - 0x08006d7c . = ALIGN (0x4) - 0x08006d7c PROVIDE (__init_array_start = .) +.init_array 0x08007774 0x4 + 0x08007774 . = ALIGN (0x4) + 0x08007774 PROVIDE (__init_array_start = .) *(SORT_BY_NAME(.init_array.*)) *(.init_array*) - .init_array 0x08006d7c 0x4 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtbegin.o - 0x08006d80 PROVIDE (__init_array_end = .) - 0x08006d80 . = ALIGN (0x4) + .init_array 0x08007774 0x4 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtbegin.o + 0x08007778 PROVIDE (__init_array_end = .) + 0x08007778 . = ALIGN (0x4) -.fini_array 0x08006d80 0x4 - 0x08006d80 . = ALIGN (0x4) +.fini_array 0x08007778 0x4 + 0x08007778 . = ALIGN (0x4) [!provide] PROVIDE (__fini_array_start = .) *(SORT_BY_NAME(.fini_array.*)) *(.fini_array*) - .fini_array 0x08006d80 0x4 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtbegin.o + .fini_array 0x08007778 0x4 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtbegin.o [!provide] PROVIDE (__fini_array_end = .) - 0x08006d84 . = ALIGN (0x4) - 0x08006d84 _sidata = LOADADDR (.data) + 0x0800777c . = ALIGN (0x4) + 0x0800777c _sidata = LOADADDR (.data) -.rel.dyn 0x08006d84 0x0 - .rel.iplt 0x08006d84 0x0 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtbegin.o +.rel.dyn 0x0800777c 0x0 + .rel.iplt 0x0800777c 0x0 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtbegin.o -.data 0x20000000 0xc load address 0x08006d84 +.data 0x20000000 0x20 load address 0x0800777c 0x20000000 . = ALIGN (0x4) 0x20000000 _sdata = . *(.data) *(.data*) + .data.serial_number + 0x20000000 0x13 ./Core/Src/main.o + 0x20000000 serial_number + *fill* 0x20000013 0x1 .data.SystemCoreClock - 0x20000000 0x4 ./Core/Src/system_stm32g4xx.o - 0x20000000 SystemCoreClock + 0x20000014 0x4 ./Core/Src/system_stm32g4xx.o + 0x20000014 SystemCoreClock .data.uwTickPrio - 0x20000004 0x4 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal.o - 0x20000004 uwTickPrio + 0x20000018 0x4 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal.o + 0x20000018 uwTickPrio .data.uwTickFreq - 0x20000008 0x4 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal.o - 0x20000008 uwTickFreq + 0x2000001c 0x4 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal.o + 0x2000001c uwTickFreq *(.RamFunc) *(.RamFunc*) - 0x2000000c . = ALIGN (0x4) - 0x2000000c _edata = . + 0x20000020 . = ALIGN (0x4) + 0x20000020 _edata = . -.igot.plt 0x2000000c 0x0 load address 0x08006d90 - .igot.plt 0x2000000c 0x0 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtbegin.o - 0x2000000c . = ALIGN (0x4) +.igot.plt 0x20000020 0x0 load address 0x0800779c + .igot.plt 0x20000020 0x0 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtbegin.o + 0x20000020 . = ALIGN (0x4) -.bss 0x2000000c 0x238 load address 0x08006d90 - 0x2000000c _sbss = . - 0x2000000c __bss_start__ = _sbss +.bss 0x20000020 0x248 load address 0x0800779c + 0x20000020 _sbss = . + 0x20000020 __bss_start__ = _sbss *(.bss) - .bss 0x2000000c 0x1c C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtbegin.o + .bss 0x20000020 0x1c C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtbegin.o *(.bss*) - .bss.hadc1 0x20000028 0x6c ./Core/Src/main.o - 0x20000028 hadc1 - .bss.hadc2 0x20000094 0x6c ./Core/Src/main.o - 0x20000094 hadc2 - .bss.htim2 0x20000100 0x4c ./Core/Src/main.o - 0x20000100 htim2 - .bss.huart2 0x2000014c 0x94 ./Core/Src/main.o - 0x2000014c huart2 + .bss.hadc1 0x2000003c 0x6c ./Core/Src/main.o + 0x2000003c hadc1 + .bss.hadc2 0x200000a8 0x6c ./Core/Src/main.o + 0x200000a8 hadc2 + .bss.htim2 0x20000114 0x4c ./Core/Src/main.o + 0x20000114 htim2 + .bss.huart2 0x20000160 0x94 ./Core/Src/main.o + 0x20000160 huart2 .bss.rx_hold_buffer - 0x200001e0 0x2 ./Core/Src/main.o - 0x200001e0 rx_hold_buffer - *fill* 0x200001e2 0x2 + 0x200001f4 0x2 ./Core/Src/main.o + 0x200001f4 rx_hold_buffer + *fill* 0x200001f6 0x2 .bss.rx_buffer - 0x200001e4 0x20 ./Core/Src/main.o - 0x200001e4 rx_buffer + 0x200001f8 0x20 ./Core/Src/main.o + 0x200001f8 rx_buffer .bss.tx_buffer - 0x20000204 0x20 ./Core/Src/main.o - 0x20000204 tx_buffer - .bss.tx_len 0x20000224 0x1 ./Core/Src/main.o - 0x20000224 tx_len + 0x20000218 0x20 ./Core/Src/main.o + 0x20000218 tx_buffer + .bss.tx_len 0x20000238 0x1 ./Core/Src/main.o + 0x20000238 tx_len + .bss.tx_len_counter + 0x20000239 0x1 ./Core/Src/main.o + 0x20000239 tx_len_counter .bss.rx_counter - 0x20000225 0x1 ./Core/Src/main.o - 0x20000225 rx_counter - .bss.rx_len 0x20000226 0x1 ./Core/Src/main.o - 0x20000226 rx_len + 0x2000023a 0x1 ./Core/Src/main.o + 0x2000023a rx_counter + .bss.rx_len 0x2000023b 0x1 ./Core/Src/main.o + 0x2000023b rx_len .bss.rx_len_counter - 0x20000227 0x1 ./Core/Src/main.o - 0x20000227 rx_len_counter + 0x2000023c 0x1 ./Core/Src/main.o + 0x2000023c rx_len_counter + *fill* 0x2000023d 0x1 .bss.rx_checksum - 0x20000228 0x2 ./Core/Src/main.o - 0x20000228 rx_checksum + 0x2000023e 0x2 ./Core/Src/main.o + 0x2000023e rx_checksum + .bss.tx_checksum + 0x20000240 0x2 ./Core/Src/main.o + 0x20000240 tx_checksum .bss.rx_checksum_hold_1 - 0x2000022a 0x1 ./Core/Src/main.o - 0x2000022a rx_checksum_hold_1 + 0x20000242 0x1 ./Core/Src/main.o + 0x20000242 rx_checksum_hold_1 .bss.rx_checksum_hold_2 - 0x2000022b 0x1 ./Core/Src/main.o - 0x2000022b rx_checksum_hold_2 + 0x20000243 0x1 ./Core/Src/main.o + 0x20000243 rx_checksum_hold_2 .bss.rx_checksum_hold - 0x2000022c 0x2 ./Core/Src/main.o - 0x2000022c rx_checksum_hold + 0x20000244 0x2 ./Core/Src/main.o + 0x20000244 rx_checksum_hold .bss.power_state_value - 0x2000022e 0x1 ./Core/Src/main.o - 0x2000022e power_state_value - .bss.command 0x2000022f 0x1 ./Core/Src/main.o - 0x2000022f command + 0x20000246 0x1 ./Core/Src/main.o + 0x20000246 power_state_value + .bss.command 0x20000247 0x1 ./Core/Src/main.o + 0x20000247 command .bss.adc_task_flag - 0x20000230 0x1 ./Core/Src/main.o - 0x20000230 adc_task_flag - .bss.uart_tx_flag - 0x20000231 0x1 ./Core/Src/main.o - 0x20000231 uart_tx_flag + 0x20000248 0x1 ./Core/Src/main.o + 0x20000248 adc_task_flag + *fill* 0x20000249 0x1 .bss.vin_adc_val - 0x20000232 0x2 ./Core/Src/main.o - 0x20000232 vin_adc_val + 0x2000024a 0x2 ./Core/Src/main.o + 0x2000024a vin_adc_val .bss.vout_adc_val - 0x20000234 0x2 ./Core/Src/main.o - 0x20000234 vout_adc_val - *fill* 0x20000236 0x2 - .bss.vdd_ref 0x20000238 0x4 ./Core/Src/main.o - 0x20000238 vdd_ref + 0x2000024c 0x2 ./Core/Src/main.o + 0x2000024c vout_adc_val + *fill* 0x2000024e 0x2 + .bss.vdd_ref 0x20000250 0x4 ./Core/Src/main.o + 0x20000250 vdd_ref + .bss.vin_val 0x20000254 0x4 ./Core/Src/main.o + 0x20000254 vin_val + .bss.vout_val 0x20000258 0x4 ./Core/Src/main.o + 0x20000258 vout_val + .bss.serial_number_flag + 0x2000025c 0x1 ./Core/Src/main.o + 0x2000025c serial_number_flag + *fill* 0x2000025d 0x3 .bss.HAL_RCC_ADC12_CLK_ENABLED - 0x2000023c 0x4 ./Core/Src/stm32g4xx_hal_msp.o - .bss.uwTick 0x20000240 0x4 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal.o - 0x20000240 uwTick + 0x20000260 0x4 ./Core/Src/stm32g4xx_hal_msp.o + .bss.uwTick 0x20000264 0x4 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal.o + 0x20000264 uwTick *(COMMON) - 0x20000244 . = ALIGN (0x4) - 0x20000244 _ebss = . - 0x20000244 __bss_end__ = _ebss + 0x20000268 . = ALIGN (0x4) + 0x20000268 _ebss = . + 0x20000268 __bss_end__ = _ebss ._user_heap_stack - 0x20000244 0x604 load address 0x08006d90 - 0x20000248 . = ALIGN (0x8) - *fill* 0x20000244 0x4 + 0x20000268 0x600 load address 0x0800779c + 0x20000268 . = ALIGN (0x8) [!provide] PROVIDE (end = .) - 0x20000248 PROVIDE (_end = .) - 0x20000448 . = (. + _Min_Heap_Size) - *fill* 0x20000248 0x200 - 0x20000848 . = (. + _Min_Stack_Size) - *fill* 0x20000448 0x400 - 0x20000848 . = ALIGN (0x8) + 0x20000268 PROVIDE (_end = .) + 0x20000468 . = (. + _Min_Heap_Size) + *fill* 0x20000268 0x200 + 0x20000868 . = (. + _Min_Stack_Size) + *fill* 0x20000468 0x400 + 0x20000868 . = ALIGN (0x8) /DISCARD/ libc.a(*) @@ -4353,253 +4429,278 @@ LOAD C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.ext .ARM.attributes 0x0000041f 0x34 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-init.o) .ARM.attributes - 0x00000453 0x22 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_aeabi_uldivmod.o) + 0x00000453 0x22 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_arm_muldf3.o) .ARM.attributes - 0x00000475 0x34 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_udivmoddi4.o) + 0x00000475 0x22 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_arm_addsubdf3.o) .ARM.attributes - 0x000004a9 0x22 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_dvmd_tls.o) + 0x00000497 0x22 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_arm_fixunsdfsi.o) .ARM.attributes - 0x000004cb 0x22 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtn.o + 0x000004b9 0x22 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_aeabi_uldivmod.o) + .ARM.attributes + 0x000004db 0x34 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_udivmoddi4.o) + .ARM.attributes + 0x0000050f 0x22 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_dvmd_tls.o) + .ARM.attributes + 0x00000531 0x22 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtn.o OUTPUT(POWER_SWITCH.elf elf32-littlearm) LOAD linker stubs LOAD C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc.a LOAD C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libm.a LOAD C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a -.debug_info 0x00000000 0x16fd6 - .debug_info 0x00000000 0x1c6c ./Core/Src/main.o - .debug_info 0x00001c6c 0x18d9 ./Core/Src/stm32g4xx_hal_msp.o - .debug_info 0x00003545 0xc5c ./Core/Src/stm32g4xx_it.o - .debug_info 0x000041a1 0x58e ./Core/Src/system_stm32g4xx.o - .debug_info 0x0000472f 0x30 ./Core/Startup/startup_stm32g431kbtx.o - .debug_info 0x0000475f 0xadb ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal.o - .debug_info 0x0000523a 0x2063 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o - .debug_info 0x0000729d 0x1d80 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc_ex.o - .debug_info 0x0000901d 0xd3f ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_cortex.o - .debug_info 0x00009d5c 0x85f ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_dma.o - .debug_info 0x0000a5bb 0x763 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_gpio.o - .debug_info 0x0000ad1e 0x93f ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_pwr_ex.o - .debug_info 0x0000b65d 0xb82 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_rcc.o - .debug_info 0x0000c1df 0xc15 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_rcc_ex.o - .debug_info 0x0000cdf4 0x2c52 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim.o - .debug_info 0x0000fa46 0x1d95 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim_ex.o - .debug_info 0x000117db 0x481e ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o - .debug_info 0x00015ff9 0xfdd ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart_ex.o +.debug_info 0x00000000 0x170b0 + .debug_info 0x00000000 0x1d46 ./Core/Src/main.o + .debug_info 0x00001d46 0x18d9 ./Core/Src/stm32g4xx_hal_msp.o + .debug_info 0x0000361f 0xc5c ./Core/Src/stm32g4xx_it.o + .debug_info 0x0000427b 0x58e ./Core/Src/system_stm32g4xx.o + .debug_info 0x00004809 0x30 ./Core/Startup/startup_stm32g431kbtx.o + .debug_info 0x00004839 0xadb ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal.o + .debug_info 0x00005314 0x2063 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o + .debug_info 0x00007377 0x1d80 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc_ex.o + .debug_info 0x000090f7 0xd3f ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_cortex.o + .debug_info 0x00009e36 0x85f ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_dma.o + .debug_info 0x0000a695 0x763 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_gpio.o + .debug_info 0x0000adf8 0x93f ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_pwr_ex.o + .debug_info 0x0000b737 0xb82 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_rcc.o + .debug_info 0x0000c2b9 0xc15 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_rcc_ex.o + .debug_info 0x0000cece 0x2c52 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim.o + .debug_info 0x0000fb20 0x1d95 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim_ex.o + .debug_info 0x000118b5 0x481e ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o + .debug_info 0x000160d3 0xfdd ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart_ex.o -.debug_abbrev 0x00000000 0x2a58 - .debug_abbrev 0x00000000 0x353 ./Core/Src/main.o - .debug_abbrev 0x00000353 0x272 ./Core/Src/stm32g4xx_hal_msp.o - .debug_abbrev 0x000005c5 0x1cb ./Core/Src/stm32g4xx_it.o - .debug_abbrev 0x00000790 0x11a ./Core/Src/system_stm32g4xx.o - .debug_abbrev 0x000008aa 0x24 ./Core/Startup/startup_stm32g431kbtx.o - .debug_abbrev 0x000008ce 0x271 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal.o - .debug_abbrev 0x00000b3f 0x2d3 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o - .debug_abbrev 0x00000e12 0x2ee ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc_ex.o - .debug_abbrev 0x00001100 0x31c ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_cortex.o - .debug_abbrev 0x0000141c 0x1e2 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_dma.o - .debug_abbrev 0x000015fe 0x1cb ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_gpio.o - .debug_abbrev 0x000017c9 0x22c ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_pwr_ex.o - .debug_abbrev 0x000019f5 0x2c9 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_rcc.o - .debug_abbrev 0x00001cbe 0x258 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_rcc_ex.o - .debug_abbrev 0x00001f16 0x2a7 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim.o - .debug_abbrev 0x000021bd 0x2c5 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim_ex.o - .debug_abbrev 0x00002482 0x304 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o - .debug_abbrev 0x00002786 0x2d2 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart_ex.o +.debug_abbrev 0x00000000 0x2a3f + .debug_abbrev 0x00000000 0x33a ./Core/Src/main.o + .debug_abbrev 0x0000033a 0x272 ./Core/Src/stm32g4xx_hal_msp.o + .debug_abbrev 0x000005ac 0x1cb ./Core/Src/stm32g4xx_it.o + .debug_abbrev 0x00000777 0x11a ./Core/Src/system_stm32g4xx.o + .debug_abbrev 0x00000891 0x24 ./Core/Startup/startup_stm32g431kbtx.o + .debug_abbrev 0x000008b5 0x271 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal.o + .debug_abbrev 0x00000b26 0x2d3 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o + .debug_abbrev 0x00000df9 0x2ee ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc_ex.o + .debug_abbrev 0x000010e7 0x31c ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_cortex.o + .debug_abbrev 0x00001403 0x1e2 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_dma.o + .debug_abbrev 0x000015e5 0x1cb ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_gpio.o + .debug_abbrev 0x000017b0 0x22c ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_pwr_ex.o + .debug_abbrev 0x000019dc 0x2c9 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_rcc.o + .debug_abbrev 0x00001ca5 0x258 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_rcc_ex.o + .debug_abbrev 0x00001efd 0x2a7 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim.o + .debug_abbrev 0x000021a4 0x2c5 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim_ex.o + .debug_abbrev 0x00002469 0x304 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o + .debug_abbrev 0x0000276d 0x2d2 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart_ex.o -.debug_aranges 0x00000000 0x1490 +.debug_aranges 0x00000000 0x14a0 .debug_aranges - 0x00000000 0x88 ./Core/Src/main.o + 0x00000000 0x98 ./Core/Src/main.o .debug_aranges - 0x00000088 0x50 ./Core/Src/stm32g4xx_hal_msp.o + 0x00000098 0x50 ./Core/Src/stm32g4xx_hal_msp.o .debug_aranges - 0x000000d8 0x70 ./Core/Src/stm32g4xx_it.o + 0x000000e8 0x70 ./Core/Src/stm32g4xx_it.o .debug_aranges - 0x00000148 0x28 ./Core/Src/system_stm32g4xx.o + 0x00000158 0x28 ./Core/Src/system_stm32g4xx.o .debug_aranges - 0x00000170 0x28 ./Core/Startup/startup_stm32g431kbtx.o + 0x00000180 0x28 ./Core/Startup/startup_stm32g431kbtx.o .debug_aranges - 0x00000198 0x148 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal.o + 0x000001a8 0x148 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal.o .debug_aranges - 0x000002e0 0x248 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o + 0x000002f0 0x248 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o .debug_aranges - 0x00000528 0x1c0 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc_ex.o + 0x00000538 0x1c0 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc_ex.o .debug_aranges - 0x000006e8 0x128 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_cortex.o + 0x000006f8 0x128 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_cortex.o .debug_aranges - 0x00000810 0x90 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_dma.o + 0x00000820 0x90 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_dma.o .debug_aranges - 0x000008a0 0x58 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_gpio.o + 0x000008b0 0x58 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_gpio.o .debug_aranges - 0x000008f8 0x140 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_pwr_ex.o + 0x00000908 0x140 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_pwr_ex.o .debug_aranges - 0x00000a38 0x98 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_rcc.o + 0x00000a48 0x98 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_rcc.o .debug_aranges - 0x00000ad0 0xb0 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_rcc_ex.o + 0x00000ae0 0xb0 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_rcc_ex.o .debug_aranges - 0x00000b80 0x3e0 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim.o + 0x00000b90 0x3e0 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim.o .debug_aranges - 0x00000f60 0x240 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim_ex.o + 0x00000f70 0x240 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim_ex.o .debug_aranges - 0x000011a0 0x248 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o + 0x000011b0 0x248 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o .debug_aranges - 0x000013e8 0xa8 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart_ex.o + 0x000013f8 0xa8 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart_ex.o .debug_rnglists - 0x00000000 0x1012 + 0x00000000 0x1021 .debug_rnglists - 0x00000000 0x69 ./Core/Src/main.o + 0x00000000 0x78 ./Core/Src/main.o .debug_rnglists - 0x00000069 0x39 ./Core/Src/stm32g4xx_hal_msp.o + 0x00000078 0x39 ./Core/Src/stm32g4xx_hal_msp.o .debug_rnglists - 0x000000a2 0x4f ./Core/Src/stm32g4xx_it.o + 0x000000b1 0x4f ./Core/Src/stm32g4xx_it.o .debug_rnglists - 0x000000f1 0x1a ./Core/Src/system_stm32g4xx.o + 0x00000100 0x1a ./Core/Src/system_stm32g4xx.o .debug_rnglists - 0x0000010b 0x19 ./Core/Startup/startup_stm32g431kbtx.o + 0x0000011a 0x19 ./Core/Startup/startup_stm32g431kbtx.o .debug_rnglists - 0x00000124 0xf1 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal.o + 0x00000133 0xf1 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal.o .debug_rnglists - 0x00000215 0x1c0 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o + 0x00000224 0x1c0 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o .debug_rnglists - 0x000003d5 0x15a ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc_ex.o + 0x000003e4 0x15a ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc_ex.o .debug_rnglists - 0x0000052f 0xda ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_cortex.o + 0x0000053e 0xda ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_cortex.o .debug_rnglists - 0x00000609 0x71 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_dma.o + 0x00000618 0x71 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_dma.o .debug_rnglists - 0x0000067a 0x3f ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_gpio.o + 0x00000689 0x3f ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_gpio.o .debug_rnglists - 0x000006b9 0xf1 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_pwr_ex.o + 0x000006c8 0xf1 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_pwr_ex.o .debug_rnglists - 0x000007aa 0x74 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_rcc.o + 0x000007b9 0x74 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_rcc.o .debug_rnglists - 0x0000081e 0x87 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_rcc_ex.o + 0x0000082d 0x87 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_rcc_ex.o .debug_rnglists - 0x000008a5 0x328 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim.o + 0x000008b4 0x328 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim.o .debug_rnglists - 0x00000bcd 0x1cc ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim_ex.o + 0x00000bdc 0x1cc ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim_ex.o .debug_rnglists - 0x00000d99 0x1fa ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o + 0x00000da8 0x1fa ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o .debug_rnglists - 0x00000f93 0x7f ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart_ex.o + 0x00000fa2 0x7f ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart_ex.o -.debug_macro 0x00000000 0x1f9ca - .debug_macro 0x00000000 0x218 ./Core/Src/main.o - .debug_macro 0x00000218 0xad8 ./Core/Src/main.o - .debug_macro 0x00000cf0 0x161 ./Core/Src/main.o - .debug_macro 0x00000e51 0x2e ./Core/Src/main.o - .debug_macro 0x00000e7f 0x28 ./Core/Src/main.o - .debug_macro 0x00000ea7 0x22 ./Core/Src/main.o - .debug_macro 0x00000ec9 0x8e ./Core/Src/main.o - .debug_macro 0x00000f57 0x51 ./Core/Src/main.o - .debug_macro 0x00000fa8 0x103 ./Core/Src/main.o - .debug_macro 0x000010ab 0x6a ./Core/Src/main.o - .debug_macro 0x00001115 0x1df ./Core/Src/main.o - .debug_macro 0x000012f4 0x1c ./Core/Src/main.o - .debug_macro 0x00001310 0x22 ./Core/Src/main.o - .debug_macro 0x00001332 0xfb ./Core/Src/main.o - .debug_macro 0x0000142d 0x1011 ./Core/Src/main.o - .debug_macro 0x0000243e 0x11f ./Core/Src/main.o - .debug_macro 0x0000255d 0x1138f ./Core/Src/main.o - .debug_macro 0x000138ec 0x6d ./Core/Src/main.o - .debug_macro 0x00013959 0x3558 ./Core/Src/main.o - .debug_macro 0x00016eb1 0x190 ./Core/Src/main.o - .debug_macro 0x00017041 0x5c ./Core/Src/main.o - .debug_macro 0x0001709d 0x141d ./Core/Src/main.o - .debug_macro 0x000184ba 0x535 ./Core/Src/main.o - .debug_macro 0x000189ef 0x1b6 ./Core/Src/main.o - .debug_macro 0x00018ba5 0x288 ./Core/Src/main.o - .debug_macro 0x00018e2d 0x41d ./Core/Src/main.o - .debug_macro 0x0001924a 0x18b ./Core/Src/main.o - .debug_macro 0x000193d5 0x43 ./Core/Src/main.o - .debug_macro 0x00019418 0x23d ./Core/Src/main.o - .debug_macro 0x00019655 0x1112 ./Core/Src/main.o - .debug_macro 0x0001a767 0x72e ./Core/Src/main.o - .debug_macro 0x0001ae95 0x391 ./Core/Src/main.o - .debug_macro 0x0001b226 0x211 ./Core/Src/main.o - .debug_macro 0x0001b437 0x401 ./Core/Src/main.o - .debug_macro 0x0001b838 0x107 ./Core/Src/main.o - .debug_macro 0x0001b93f 0x122 ./Core/Src/main.o - .debug_macro 0x0001ba61 0x3d1 ./Core/Src/main.o - .debug_macro 0x0001be32 0xbda ./Core/Src/main.o - .debug_macro 0x0001ca0c 0x47e ./Core/Src/main.o - .debug_macro 0x0001ce8a 0x693 ./Core/Src/main.o - .debug_macro 0x0001d51d 0xa6 ./Core/Src/main.o - .debug_macro 0x0001d5c3 0x306 ./Core/Src/main.o - .debug_macro 0x0001d8c9 0x70 ./Core/Src/main.o - .debug_macro 0x0001d939 0x200 ./Core/Src/stm32g4xx_hal_msp.o - .debug_macro 0x0001db39 0x20a ./Core/Src/stm32g4xx_it.o - .debug_macro 0x0001dd43 0x1f1 ./Core/Src/system_stm32g4xx.o - .debug_macro 0x0001df34 0x23f ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal.o - .debug_macro 0x0001e173 0x20e ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o - .debug_macro 0x0001e381 0x1fd ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc_ex.o - .debug_macro 0x0001e57e 0x1f1 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_cortex.o - .debug_macro 0x0001e76f 0x1f1 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_dma.o - .debug_macro 0x0001e960 0x1f8 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_gpio.o - .debug_macro 0x0001eb58 0x21b ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_pwr_ex.o - .debug_macro 0x0001ed73 0x233 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_rcc.o - .debug_macro 0x0001efa6 0x21b ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_rcc_ex.o - .debug_macro 0x0001f1c1 0x1f9 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim.o - .debug_macro 0x0001f3ba 0x1f7 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim_ex.o - .debug_macro 0x0001f5b1 0x21c ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o - .debug_macro 0x0001f7cd 0x1fd ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart_ex.o +.debug_macro 0x00000000 0x20407 + .debug_macro 0x00000000 0x2e4 ./Core/Src/main.o + .debug_macro 0x000002e4 0xad8 ./Core/Src/main.o + .debug_macro 0x00000dbc 0x161 ./Core/Src/main.o + .debug_macro 0x00000f1d 0x2e ./Core/Src/main.o + .debug_macro 0x00000f4b 0x28 ./Core/Src/main.o + .debug_macro 0x00000f73 0x22 ./Core/Src/main.o + .debug_macro 0x00000f95 0x8e ./Core/Src/main.o + .debug_macro 0x00001023 0x51 ./Core/Src/main.o + .debug_macro 0x00001074 0x103 ./Core/Src/main.o + .debug_macro 0x00001177 0x6a ./Core/Src/main.o + .debug_macro 0x000011e1 0x1df ./Core/Src/main.o + .debug_macro 0x000013c0 0x1c ./Core/Src/main.o + .debug_macro 0x000013dc 0x22 ./Core/Src/main.o + .debug_macro 0x000013fe 0xfb ./Core/Src/main.o + .debug_macro 0x000014f9 0x1011 ./Core/Src/main.o + .debug_macro 0x0000250a 0x11f ./Core/Src/main.o + .debug_macro 0x00002629 0x1138f ./Core/Src/main.o + .debug_macro 0x000139b8 0x6d ./Core/Src/main.o + .debug_macro 0x00013a25 0x3558 ./Core/Src/main.o + .debug_macro 0x00016f7d 0x190 ./Core/Src/main.o + .debug_macro 0x0001710d 0x5c ./Core/Src/main.o + .debug_macro 0x00017169 0x141d ./Core/Src/main.o + .debug_macro 0x00018586 0x535 ./Core/Src/main.o + .debug_macro 0x00018abb 0x1b6 ./Core/Src/main.o + .debug_macro 0x00018c71 0x288 ./Core/Src/main.o + .debug_macro 0x00018ef9 0x41d ./Core/Src/main.o + .debug_macro 0x00019316 0x18b ./Core/Src/main.o + .debug_macro 0x000194a1 0x43 ./Core/Src/main.o + .debug_macro 0x000194e4 0x23d ./Core/Src/main.o + .debug_macro 0x00019721 0x1112 ./Core/Src/main.o + .debug_macro 0x0001a833 0x72e ./Core/Src/main.o + .debug_macro 0x0001af61 0x391 ./Core/Src/main.o + .debug_macro 0x0001b2f2 0x211 ./Core/Src/main.o + .debug_macro 0x0001b503 0x401 ./Core/Src/main.o + .debug_macro 0x0001b904 0x107 ./Core/Src/main.o + .debug_macro 0x0001ba0b 0x122 ./Core/Src/main.o + .debug_macro 0x0001bb2d 0x3d1 ./Core/Src/main.o + .debug_macro 0x0001befe 0xbda ./Core/Src/main.o + .debug_macro 0x0001cad8 0x47e ./Core/Src/main.o + .debug_macro 0x0001cf56 0x693 ./Core/Src/main.o + .debug_macro 0x0001d5e9 0xa6 ./Core/Src/main.o + .debug_macro 0x0001d68f 0x306 ./Core/Src/main.o + .debug_macro 0x0001d995 0x70 ./Core/Src/main.o + .debug_macro 0x0001da05 0x61 ./Core/Src/main.o + .debug_macro 0x0001da66 0x2a ./Core/Src/main.o + .debug_macro 0x0001da90 0x43 ./Core/Src/main.o + .debug_macro 0x0001dad3 0x34 ./Core/Src/main.o + .debug_macro 0x0001db07 0x16 ./Core/Src/main.o + .debug_macro 0x0001db1d 0x3c ./Core/Src/main.o + .debug_macro 0x0001db59 0x370 ./Core/Src/main.o + .debug_macro 0x0001dec9 0x10 ./Core/Src/main.o + .debug_macro 0x0001ded9 0x16 ./Core/Src/main.o + .debug_macro 0x0001deef 0x4a ./Core/Src/main.o + .debug_macro 0x0001df39 0x34 ./Core/Src/main.o + .debug_macro 0x0001df6d 0x10 ./Core/Src/main.o + .debug_macro 0x0001df7d 0x58 ./Core/Src/main.o + .debug_macro 0x0001dfd5 0x8e ./Core/Src/main.o + .debug_macro 0x0001e063 0x1c ./Core/Src/main.o + .debug_macro 0x0001e07f 0x185 ./Core/Src/main.o + .debug_macro 0x0001e204 0x16 ./Core/Src/main.o + .debug_macro 0x0001e21a 0x16 ./Core/Src/main.o + .debug_macro 0x0001e230 0x146 ./Core/Src/main.o + .debug_macro 0x0001e376 0x200 ./Core/Src/stm32g4xx_hal_msp.o + .debug_macro 0x0001e576 0x20a ./Core/Src/stm32g4xx_it.o + .debug_macro 0x0001e780 0x1f1 ./Core/Src/system_stm32g4xx.o + .debug_macro 0x0001e971 0x23f ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal.o + .debug_macro 0x0001ebb0 0x20e ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o + .debug_macro 0x0001edbe 0x1fd ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc_ex.o + .debug_macro 0x0001efbb 0x1f1 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_cortex.o + .debug_macro 0x0001f1ac 0x1f1 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_dma.o + .debug_macro 0x0001f39d 0x1f8 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_gpio.o + .debug_macro 0x0001f595 0x21b ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_pwr_ex.o + .debug_macro 0x0001f7b0 0x233 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_rcc.o + .debug_macro 0x0001f9e3 0x21b ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_rcc_ex.o + .debug_macro 0x0001fbfe 0x1f9 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim.o + .debug_macro 0x0001fdf7 0x1f7 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim_ex.o + .debug_macro 0x0001ffee 0x21c ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o + .debug_macro 0x0002020a 0x1fd ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart_ex.o -.debug_line 0x00000000 0x1664c - .debug_line 0x00000000 0xc49 ./Core/Src/main.o - .debug_line 0x00000c49 0x906 ./Core/Src/stm32g4xx_hal_msp.o - .debug_line 0x0000154f 0x88f ./Core/Src/stm32g4xx_it.o - .debug_line 0x00001dde 0x81d ./Core/Src/system_stm32g4xx.o - .debug_line 0x000025fb 0x7b ./Core/Startup/startup_stm32g431kbtx.o - .debug_line 0x00002676 0xbe9 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal.o - .debug_line 0x0000325f 0x1ff3 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o - .debug_line 0x00005252 0x1a0a ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc_ex.o - .debug_line 0x00006c5c 0xd4e ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_cortex.o - .debug_line 0x000079aa 0xee8 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_dma.o - .debug_line 0x00008892 0xbc2 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_gpio.o - .debug_line 0x00009454 0xd48 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_pwr_ex.o - .debug_line 0x0000a19c 0x106c ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_rcc.o - .debug_line 0x0000b208 0x1198 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_rcc_ex.o - .debug_line 0x0000c3a0 0x3f50 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim.o - .debug_line 0x000102f0 0x2030 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim_ex.o - .debug_line 0x00012320 0x360e ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o - .debug_line 0x0001592e 0xd1e ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart_ex.o +.debug_line 0x00000000 0x168d9 + .debug_line 0x00000000 0xed6 ./Core/Src/main.o + .debug_line 0x00000ed6 0x906 ./Core/Src/stm32g4xx_hal_msp.o + .debug_line 0x000017dc 0x88f ./Core/Src/stm32g4xx_it.o + .debug_line 0x0000206b 0x81d ./Core/Src/system_stm32g4xx.o + .debug_line 0x00002888 0x7b ./Core/Startup/startup_stm32g431kbtx.o + .debug_line 0x00002903 0xbe9 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal.o + .debug_line 0x000034ec 0x1ff3 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o + .debug_line 0x000054df 0x1a0a ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc_ex.o + .debug_line 0x00006ee9 0xd4e ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_cortex.o + .debug_line 0x00007c37 0xee8 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_dma.o + .debug_line 0x00008b1f 0xbc2 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_gpio.o + .debug_line 0x000096e1 0xd48 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_pwr_ex.o + .debug_line 0x0000a429 0x106c ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_rcc.o + .debug_line 0x0000b495 0x1198 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_rcc_ex.o + .debug_line 0x0000c62d 0x3f50 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim.o + .debug_line 0x0001057d 0x2030 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim_ex.o + .debug_line 0x000125ad 0x360e ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o + .debug_line 0x00015bbb 0xd1e ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart_ex.o -.debug_str 0x00000000 0xd7e8e - .debug_str 0x00000000 0xd7e8e ./Core/Src/main.o - 0xd2cca (size before relaxing) - .debug_str 0x000d7e8e 0x0 ./Core/Src/stm32g4xx_hal_msp.o +.debug_str 0x00000000 0xdb63e + .debug_str 0x00000000 0xdb63e ./Core/Src/main.o + 0xd64c2 (size before relaxing) + .debug_str 0x000db63e 0x0 ./Core/Src/stm32g4xx_hal_msp.o 0xd2cf7 (size before relaxing) - .debug_str 0x000d7e8e 0x0 ./Core/Src/stm32g4xx_it.o + .debug_str 0x000db63e 0x0 ./Core/Src/stm32g4xx_it.o 0xd2267 (size before relaxing) - .debug_str 0x000d7e8e 0x0 ./Core/Src/system_stm32g4xx.o + .debug_str 0x000db63e 0x0 ./Core/Src/system_stm32g4xx.o 0xd193c (size before relaxing) - .debug_str 0x000d7e8e 0x0 ./Core/Startup/startup_stm32g431kbtx.o + .debug_str 0x000db63e 0x0 ./Core/Startup/startup_stm32g431kbtx.o 0x89 (size before relaxing) - .debug_str 0x000d7e8e 0x0 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal.o + .debug_str 0x000db63e 0x0 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal.o 0xd247b (size before relaxing) - .debug_str 0x000d7e8e 0x0 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o + .debug_str 0x000db63e 0x0 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o 0xd2969 (size before relaxing) - .debug_str 0x000d7e8e 0x0 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc_ex.o + .debug_str 0x000db63e 0x0 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc_ex.o 0xd290f (size before relaxing) - .debug_str 0x000d7e8e 0x0 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_cortex.o + .debug_str 0x000db63e 0x0 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_cortex.o 0xd2137 (size before relaxing) - .debug_str 0x000d7e8e 0x0 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_dma.o + .debug_str 0x000db63e 0x0 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_dma.o 0xd1d16 (size before relaxing) - .debug_str 0x000d7e8e 0x0 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_gpio.o + .debug_str 0x000db63e 0x0 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_gpio.o 0xd1ac7 (size before relaxing) - .debug_str 0x000d7e8e 0x0 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_pwr_ex.o + .debug_str 0x000db63e 0x0 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_pwr_ex.o 0xd1e2a (size before relaxing) - .debug_str 0x000d7e8e 0x0 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_rcc.o + .debug_str 0x000db63e 0x0 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_rcc.o 0xd2035 (size before relaxing) - .debug_str 0x000d7e8e 0x0 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_rcc_ex.o + .debug_str 0x000db63e 0x0 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_rcc_ex.o 0xd2036 (size before relaxing) - .debug_str 0x000d7e8e 0x0 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim.o + .debug_str 0x000db63e 0x0 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim.o 0xd2e3a (size before relaxing) - .debug_str 0x000d7e8e 0x0 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim_ex.o + .debug_str 0x000db63e 0x0 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim_ex.o 0xd2aae (size before relaxing) - .debug_str 0x000d7e8e 0x0 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o + .debug_str 0x000db63e 0x0 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o 0xd28f7 (size before relaxing) - .debug_str 0x000d7e8e 0x0 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart_ex.o + .debug_str 0x000db63e 0x0 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart_ex.o 0xd20f5 (size before relaxing) .comment 0x00000000 0x43 @@ -4638,28 +4739,31 @@ LOAD C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.ext .comment 0x00000043 0x0 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart_ex.o 0x44 (size before relaxing) -.debug_frame 0x00000000 0x595c - .debug_frame 0x00000000 0x1ec ./Core/Src/main.o - .debug_frame 0x000001ec 0x10c ./Core/Src/stm32g4xx_hal_msp.o - .debug_frame 0x000002f8 0x13c ./Core/Src/stm32g4xx_it.o - .debug_frame 0x00000434 0x58 ./Core/Src/system_stm32g4xx.o - .debug_frame 0x0000048c 0x500 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal.o - .debug_frame 0x0000098c 0xacc ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o - .debug_frame 0x00001458 0x81c ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc_ex.o - .debug_frame 0x00001c74 0x4e8 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_cortex.o - .debug_frame 0x0000215c 0x24c ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_dma.o - .debug_frame 0x000023a8 0x14c ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_gpio.o - .debug_frame 0x000024f4 0x4fc ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_pwr_ex.o - .debug_frame 0x000029f0 0x23c ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_rcc.o - .debug_frame 0x00002c2c 0x2ac ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_rcc_ex.o - .debug_frame 0x00002ed8 0x121c ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim.o - .debug_frame 0x000040f4 0xa68 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim_ex.o - .debug_frame 0x00004b5c 0xa94 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o - .debug_frame 0x000055f0 0x2c0 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart_ex.o - .debug_frame 0x000058b0 0x20 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-memset.o) - .debug_frame 0x000058d0 0x2c C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-init.o) - .debug_frame 0x000058fc 0x2c C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_aeabi_uldivmod.o) - .debug_frame 0x00005928 0x34 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_udivmoddi4.o) +.debug_frame 0x00000000 0x5a98 + .debug_frame 0x00000000 0x228 ./Core/Src/main.o + .debug_frame 0x00000228 0x10c ./Core/Src/stm32g4xx_hal_msp.o + .debug_frame 0x00000334 0x13c ./Core/Src/stm32g4xx_it.o + .debug_frame 0x00000470 0x58 ./Core/Src/system_stm32g4xx.o + .debug_frame 0x000004c8 0x500 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal.o + .debug_frame 0x000009c8 0xacc ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.o + .debug_frame 0x00001494 0x81c ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc_ex.o + .debug_frame 0x00001cb0 0x4e8 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_cortex.o + .debug_frame 0x00002198 0x24c ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_dma.o + .debug_frame 0x000023e4 0x14c ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_gpio.o + .debug_frame 0x00002530 0x4fc ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_pwr_ex.o + .debug_frame 0x00002a2c 0x23c ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_rcc.o + .debug_frame 0x00002c68 0x2ac ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_rcc_ex.o + .debug_frame 0x00002f14 0x121c ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim.o + .debug_frame 0x00004130 0xa68 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim_ex.o + .debug_frame 0x00004b98 0xa94 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.o + .debug_frame 0x0000562c 0x2c0 ./Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart_ex.o + .debug_frame 0x000058ec 0x20 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-memset.o) + .debug_frame 0x0000590c 0x2c C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-init.o) + .debug_frame 0x00005938 0x30 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_arm_muldf3.o) + .debug_frame 0x00005968 0xac C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_arm_addsubdf3.o) + .debug_frame 0x00005a14 0x24 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_arm_fixunsdfsi.o) + .debug_frame 0x00005a38 0x2c C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_aeabi_uldivmod.o) + .debug_frame 0x00005a64 0x34 C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_udivmoddi4.o) .debug_line_str 0x00000000 0x6d diff --git a/POWER_SWITCH.ioc b/POWER_SWITCH.ioc index cad6698..e4718b3 100644 --- a/POWER_SWITCH.ioc +++ b/POWER_SWITCH.ioc @@ -1,16 +1,16 @@ #MicroXplorer Configuration settings - do not modify ADC1.Channel-0\#ChannelRegularConversion=ADC_CHANNEL_VREFINT -ADC1.ClockPrescaler=ADC_CLOCK_ASYNC_DIV16 +ADC1.ClockPrescaler=ADC_CLOCK_ASYNC_DIV32 ADC1.CommonPathInternal=ADC_CHANNEL_VREFINT|null|null|null ADC1.IPParameters=Rank-0\#ChannelRegularConversion,Channel-0\#ChannelRegularConversion,SamplingTime-0\#ChannelRegularConversion,OffsetNumber-0\#ChannelRegularConversion,NbrOfConversionFlag,master,ClockPrescaler,CommonPathInternal ADC1.NbrOfConversionFlag=1 ADC1.OffsetNumber-0\#ChannelRegularConversion=ADC_OFFSET_NONE ADC1.Rank-0\#ChannelRegularConversion=1 -ADC1.SamplingTime-0\#ChannelRegularConversion=ADC_SAMPLETIME_2CYCLES_5 +ADC1.SamplingTime-0\#ChannelRegularConversion=ADC_SAMPLETIME_640CYCLES_5 ADC1.master=1 ADC2.Channel-0\#ChannelRegularConversion=ADC_CHANNEL_3 ADC2.Channel-1\#ChannelRegularConversion=ADC_CHANNEL_4 -ADC2.ClockPrescaler=ADC_CLOCK_ASYNC_DIV16 +ADC2.ClockPrescaler=ADC_CLOCK_ASYNC_DIV32 ADC2.CommonPathInternal=null|null|null|null ADC2.IPParameters=Rank-0\#ChannelRegularConversion,Channel-0\#ChannelRegularConversion,SamplingTime-0\#ChannelRegularConversion,OffsetNumber-0\#ChannelRegularConversion,NbrOfConversionFlag,ClockPrescaler,Rank-1\#ChannelRegularConversion,Channel-1\#ChannelRegularConversion,SamplingTime-1\#ChannelRegularConversion,OffsetNumber-1\#ChannelRegularConversion,NbrOfConversion,CommonPathInternal ADC2.NbrOfConversion=2 @@ -19,8 +19,8 @@ ADC2.OffsetNumber-0\#ChannelRegularConversion=ADC_OFFSET_NONE ADC2.OffsetNumber-1\#ChannelRegularConversion=ADC_OFFSET_NONE ADC2.Rank-0\#ChannelRegularConversion=1 ADC2.Rank-1\#ChannelRegularConversion=2 -ADC2.SamplingTime-0\#ChannelRegularConversion=ADC_SAMPLETIME_24CYCLES_5 -ADC2.SamplingTime-1\#ChannelRegularConversion=ADC_SAMPLETIME_24CYCLES_5 +ADC2.SamplingTime-0\#ChannelRegularConversion=ADC_SAMPLETIME_640CYCLES_5 +ADC2.SamplingTime-1\#ChannelRegularConversion=ADC_SAMPLETIME_640CYCLES_5 BSP_IP_NAME=NUCLEO-G431KB CAD.formats= CAD.pinconfig= @@ -148,7 +148,7 @@ ProjectManager.ToolChainLocation= ProjectManager.UAScriptAfterPath= ProjectManager.UAScriptBeforePath= ProjectManager.UnderRoot=true -ProjectManager.functionlistsort=1-SystemClock_Config-RCC-false-HAL-false,2-MX_GPIO_Init-GPIO-false-HAL-true,3-MX_USART2_UART_Init-USART2-false-HAL-true,4-MX_ADC2_Init-ADC2-false-HAL-true,5-MX_TIM2_Init-TIM2-false-HAL-true +ProjectManager.functionlistsort=1-SystemClock_Config-RCC-false-HAL-false,2-MX_GPIO_Init-GPIO-false-HAL-true,3-MX_USART2_UART_Init-USART2-false-HAL-true,4-MX_ADC2_Init-ADC2-false-HAL-true,5-MX_TIM2_Init-TIM2-false-HAL-true,6-MX_ADC1_Init-ADC1-false-HAL-true RCC.ADC12Freq_Value=128000000 RCC.AHBFreq_Value=128000000 RCC.APB1Freq_Value=128000000