diff --git a/controller/fw/bootloader/.cproject b/controller/fw/bootloader/.cproject index 6a28c79..388071c 100644 --- a/controller/fw/bootloader/.cproject +++ b/controller/fw/bootloader/.cproject @@ -173,4 +173,5 @@ + \ No newline at end of file diff --git a/controller/fw/bootloader/.settings/com.st.stm32cube.ide.mcu.sfrview.prefs b/controller/fw/bootloader/.settings/com.st.stm32cube.ide.mcu.sfrview.prefs new file mode 100644 index 0000000..98a69fc --- /dev/null +++ b/controller/fw/bootloader/.settings/com.st.stm32cube.ide.mcu.sfrview.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +sfrviewstate={"fFavorites"\:{"fLists"\:{}},"fProperties"\:{"fNodeProperties"\:{}}} diff --git a/controller/fw/bootloader/.settings/stm32cubeide.project.prefs b/controller/fw/bootloader/.settings/stm32cubeide.project.prefs index 617d587..bb1c17a 100644 --- a/controller/fw/bootloader/.settings/stm32cubeide.project.prefs +++ b/controller/fw/bootloader/.settings/stm32cubeide.project.prefs @@ -1,4 +1,5 @@ +2F62501ED4689FB349E356AB974DBE57=9E2193C46F66F22FF98D84DBB5C34D23 635E684B79701B039C64EA45C3F84D30=C781131A7B2809FF4382EAF5B3C6C1B2 -8DF89ED150041C4CBC7CB9A9CAA90856=54C15FA5FFB683D1E813986C9EAD009D +8DF89ED150041C4CBC7CB9A9CAA90856=9E2193C46F66F22FF98D84DBB5C34D23 DC22A860405A8BF2F2C095E5B6529F12=54C15FA5FFB683D1E813986C9EAD009D eclipse.preferences.version=1 diff --git a/controller/fw/bootloader/Core/Src/can.c b/controller/fw/bootloader/Core/Src/can.c index 075d116..b97de37 100644 --- a/controller/fw/bootloader/Core/Src/can.c +++ b/controller/fw/bootloader/Core/Src/can.c @@ -44,7 +44,7 @@ void MX_CAN2_Init(void) hcan2.Init.TimeSeg1 = CAN_BS1_12TQ; hcan2.Init.TimeSeg2 = CAN_BS2_2TQ; hcan2.Init.TimeTriggeredMode = DISABLE; - hcan2.Init.AutoBusOff = DISABLE; + hcan2.Init.AutoBusOff = ENABLE; hcan2.Init.AutoWakeUp = DISABLE; hcan2.Init.AutoRetransmission = DISABLE; hcan2.Init.ReceiveFifoLocked = DISABLE; diff --git a/controller/fw/bootloader/Core/Src/main.c b/controller/fw/bootloader/Core/Src/main.c index ddab75e..8752317 100644 --- a/controller/fw/bootloader/Core/Src/main.c +++ b/controller/fw/bootloader/Core/Src/main.c @@ -17,18 +17,19 @@ */ /* USER CODE END Header */ /* Includes ------------------------------------------------------------------*/ -#include "flash.h" +#include "main.h" #include "adc.h" #include "can.h" #include "spi.h" #include "tim.h" #include "usart.h" #include "gpio.h" -#include -#include "can_reg.h" + /* Private includes ----------------------------------------------------------*/ /* USER CODE BEGIN Includes */ - +#include "flash.h" +#include "can_reg.h" +#include /* USER CODE END Includes */ /* Private typedef -----------------------------------------------------------*/ @@ -80,7 +81,7 @@ void send_ack(uint8_t status) { uint8_t tx_data[1] = {status}; uint32_t tx_mailbox; - tx_header.ExtId = ACK_CAN_ID; // id = 0x05 + tx_header.StdId = ACK_CAN_ID; // id = 0x05 tx_header.IDE = CAN_ID_STD; //standart id tx_header.RTR = CAN_RTR_DATA; // data frame tx_header.DLC = 1; // data len = 1 byte @@ -107,11 +108,11 @@ bool verify_firmware() { void process_can_message(CAN_RxHeaderTypeDef *header, uint8_t *data) { - msg_id = header->ExtId; + msg_id = header->StdId; /* 0x697 69 - slave addr 7 || 8 - REG_READ or REG_WRITE */ - id_x = (msg_id >> 4) & 0xFFFF; // get addr + id_x = (msg_id >> 4) & 0xFFF; // get addr msg_ch = msg_id & 0xF; // check cmd // Check addr @@ -144,7 +145,6 @@ void process_can_message(CAN_RxHeaderTypeDef *header, uint8_t *data) { send_ack(0xAA); write_param(firmw, 0); // Reset firmware update fw_update = false; - HAL_Delay(500); NVIC_SystemReset(); } else { @@ -156,20 +156,33 @@ void process_can_message(CAN_RxHeaderTypeDef *header, uint8_t *data) { } } -void jump_to_app() { +void jump_to_app(void) { + HAL_RCC_DeInit(); + HAL_DeInit(); __disable_irq(); - jump = *(volatile uint32_t*)(APP_ADDRESS + 4); - void (*app_entry)(void); - app_entry = (void (*)(void))jump; + + uint32_t *app_vector_table = (uint32_t*)APP_ADDRESS; - for (uint32_t i = 0; i < 8; i++) { + // RESET ALL Interrupt + for (uint8_t i = 0; i < 8; i++) { + NVIC->ICER[i] = 0xFFFFFFFF; NVIC->ICPR[i] = 0xFFFFFFFF; } - __set_MSP(*(volatile uint32_t*)APP_ADDRESS); - // SCB->VTOR = (uint32_t)0x08008004; - app_entry(); + // APP_ADDR + __set_MSP(app_vector_table[0]); + + // Point to go + uint32_t app_entry = *(app_vector_table + 1); //APP_ADDR + 4 + void (*application)(void); + application = (void (*)(void))app_entry; + + // Go to application + application(); + + // If we return go to infinity loop + while(1); } bool is_app_valid() { @@ -178,11 +191,11 @@ bool is_app_valid() { // Check stack pointer bool sp_valid = (app_vector[0] >= 0x20000000) && - (app_vector[0] <= (0x20000000 + 128*1024)); // Для STM32 с 128K RAM + (app_vector[0] <= (0x20000000 + 128*1024)); // check reset_handler bool pc_valid = (app_vector[1] >= 0x08000000) && - (app_vector[1] <= (0x08000000 + 1024*1024)); // Для 1MB Flash + (app_vector[1] <= (0x08000000 + 1024*1024)); // check two words on reset value bool not_erased = (app_vector[0] != 0xFFFFFFFF) && @@ -200,29 +213,7 @@ int main(void) { /* USER CODE BEGIN 1 */ - // Настройка GPIO - RCC->AHB1ENR |= RCC_AHB1ENR_GPIOCEN; - GPIOC->MODER |= GPIO_MODER_MODE10_0 | GPIO_MODER_MODE11_0; - GPIOC->ODR &= ~GPIO_ODR_OD11; - GPIOC->ODR |= GPIO_ODR_OD10; - flash_record = load_params(); - if(flash_record[firmw].value == UPDATE_FLAG) { - fw_update = true; - for(int i = 0; i < 5;i++){ - GPIOC->ODR ^= GPIO_ODR_OD10; // Indecate message - HAL_Delay(100); - } - // write_param(firmw,0); //reset flasg - erase_flash_pages(); - } - else{ - // for st-link update, because he doesnt reset flag_update - if(is_app_valid()) jump_to_app(); //firmware exist - else fw_update = true; //firmware doesnt exist, but we in bootloader - } - - GPIOC->ODR |= GPIO_ODR_OD10; /* USER CODE END 1 */ /* MCU Configuration--------------------------------------------------------*/ @@ -255,29 +246,82 @@ int main(void) MX_NVIC_Init(); /* USER CODE BEGIN 2 */ + // Настройка GPIO + RCC->AHB1ENR |= RCC_AHB1ENR_GPIOCEN; + GPIOC->MODER |= GPIO_MODER_MODE10_0 | GPIO_MODER_MODE11_0; + GPIOC->ODR &= ~GPIO_ODR_OD11; + GPIOC->ODR |= GPIO_ODR_OD10; + + flash_record = load_params(); + if(flash_record[firmw].value == UPDATE_FLAG) { + fw_update = true; + for(int i = 0; i < 5;i++){ + GPIOC->ODR ^= GPIO_ODR_OD10; // Indecate message + HAL_Delay(100); + } + // write_param(firmw,0); //reset flasg + erase_flash_pages(); + } + else{ + // for st-link update, because he doesnt reset flag_update + if(is_app_valid()) jump_to_app(); //firmware exist + else fw_update = true; //firmware doesnt exist, but we in bootloader + } + + + CAN_FilterTypeDef can_filter = { + .FilterBank = 14, // Bank 14-27 for CAN2 + .FilterMode = CAN_FILTERMODE_IDMASK, + .FilterScale = CAN_FILTERSCALE_32BIT, + .FilterIdHigh = 0x0000, + .FilterIdLow = 0x0000, + .FilterMaskIdHigh = 0x0000, + .FilterMaskIdLow = 0x0000, + .FilterFIFOAssignment = CAN_RX_FIFO0, + .FilterActivation = ENABLE, + .SlaveStartFilterBank = 14 + }; + + if (HAL_CAN_ConfigFilter(&hcan2, &can_filter) != HAL_OK) { + Error_Handler(); + } + + if (HAL_CAN_Start(&hcan2) != HAL_OK) { + Error_Handler(); + } + + GPIOC->ODR |= GPIO_ODR_OD10; + +// CAN_TxHeaderTypeDef test_header = { +// .StdId = 0x123, +// .IDE = CAN_ID_STD, +// .RTR = CAN_RTR_DATA, +// .DLC = 1, +// .TransmitGlobalTime = DISABLE +// }; +// uint8_t test_data = 0x55; +// uint32_t tx_mailbox; +// HAL_CAN_AddTxMessage(&hcan2, &test_header, &test_data, &tx_mailbox); /* USER CODE END 2 */ /* Infinite loop */ /* USER CODE BEGIN WHILE */ while (1) { - if(fw_update) { - CAN_RxHeaderTypeDef rx_header; - uint8_t rx_data[8]; - HAL_StatusTypeDef status; + if (fw_update) { + uint32_t rf0r = CAN2->RF0R; - // Check message - if(HAL_CAN_GetRxFifoFillLevel(&hcan2, CAN_RX_FIFO0) > 0) { - status = HAL_CAN_GetRxMessage(&hcan2, CAN_RX_FIFO0, &rx_header, rx_data); + // Check count of FIFO + if ((rf0r & CAN_RF0R_FMP0) > 0) { + CAN_RxHeaderTypeDef rx_header; + uint8_t rx_data[8]; - if(status == HAL_OK) { - // check message IDE standart - if(rx_header.IDE == CAN_ID_STD) { - process_can_message(&rx_header, rx_data); + + if (HAL_CAN_GetRxMessage(&hcan2, CAN_RX_FIFO0, &rx_header, rx_data) == HAL_OK) { + process_can_message(&rx_header, rx_data); + } } - } + HAL_Delay(1); } - - } } /* USER CODE END WHILE */ @@ -285,9 +329,6 @@ int main(void) /* USER CODE END 3 */ } - - - /** * @brief System Clock Configuration * @retval None diff --git a/controller/fw/bootloader/Core/Startup/startup_stm32f446retx.s b/controller/fw/bootloader/Core/Startup/startup_stm32f446retx.s index 7040eaf..2835de2 100644 --- a/controller/fw/bootloader/Core/Startup/startup_stm32f446retx.s +++ b/controller/fw/bootloader/Core/Startup/startup_stm32f446retx.s @@ -97,7 +97,7 @@ LoopFillZerobss: /* Call static constructors */ bl __libc_init_array /* Call the application's entry point.*/ - bl main + bl main bx lr .size Reset_Handler, .-Reset_Handler diff --git a/controller/fw/bootloader/Debug/Core/Src/adc.o b/controller/fw/bootloader/Debug/Core/Src/adc.o index 97a723e..2ab6afe 100644 Binary files a/controller/fw/bootloader/Debug/Core/Src/adc.o and b/controller/fw/bootloader/Debug/Core/Src/adc.o differ diff --git a/controller/fw/bootloader/Debug/Core/Src/can.o b/controller/fw/bootloader/Debug/Core/Src/can.o index d02bab1..70bf2a9 100644 Binary files a/controller/fw/bootloader/Debug/Core/Src/can.o and b/controller/fw/bootloader/Debug/Core/Src/can.o differ diff --git a/controller/fw/bootloader/Debug/Core/Src/flash.o b/controller/fw/bootloader/Debug/Core/Src/flash.o index a734971..b500e89 100644 Binary files a/controller/fw/bootloader/Debug/Core/Src/flash.o and b/controller/fw/bootloader/Debug/Core/Src/flash.o differ diff --git a/controller/fw/bootloader/Debug/Core/Src/gpio.o b/controller/fw/bootloader/Debug/Core/Src/gpio.o index ccc84bd..c23abed 100644 Binary files a/controller/fw/bootloader/Debug/Core/Src/gpio.o and b/controller/fw/bootloader/Debug/Core/Src/gpio.o differ diff --git a/controller/fw/bootloader/Debug/Core/Src/main.cyclo b/controller/fw/bootloader/Debug/Core/Src/main.cyclo index e3e386e..a8f7d6b 100644 --- a/controller/fw/bootloader/Debug/Core/Src/main.cyclo +++ b/controller/fw/bootloader/Debug/Core/Src/main.cyclo @@ -1,11 +1,11 @@ ../Drivers/CMSIS/Include/core_cm4.h:1938:34:__NVIC_SystemReset 1 -../Core/Src/main.c:78:6:send_ack 1 -../Core/Src/main.c:102:6:verify_firmware 1 -../Core/Src/main.c:109:6:process_can_message 8 +../Core/Src/main.c:79:6:send_ack 1 +../Core/Src/main.c:103:6:verify_firmware 1 +../Core/Src/main.c:110:6:process_can_message 8 ../Core/Src/main.c:159:6:jump_to_app 2 -../Core/Src/main.c:175:6:is_app_valid 10 -../Core/Src/main.c:199:5:main 8 -../Core/Src/main.c:295:6:SystemClock_Config 4 -../Core/Src/main.c:349:13:MX_NVIC_Init 1 -../Core/Src/main.c:368:6:HAL_TIM_PeriodElapsedCallback 2 -../Core/Src/main.c:385:6:Error_Handler 1 +../Core/Src/main.c:188:6:is_app_valid 10 +../Core/Src/main.c:212:5:main 9 +../Core/Src/main.c:336:6:SystemClock_Config 4 +../Core/Src/main.c:390:13:MX_NVIC_Init 1 +../Core/Src/main.c:409:6:HAL_TIM_PeriodElapsedCallback 2 +../Core/Src/main.c:426:6:Error_Handler 1 diff --git a/controller/fw/bootloader/Debug/Core/Src/main.d b/controller/fw/bootloader/Debug/Core/Src/main.d index f331fcb..0a40c96 100644 --- a/controller/fw/bootloader/Debug/Core/Src/main.d +++ b/controller/fw/bootloader/Debug/Core/Src/main.d @@ -1,4 +1,9 @@ -Core/Src/main.o: ../Core/Src/main.c ../Core/Inc/flash.h \ +Core/Src/main.o: ../Core/Src/main.c ../Core/Inc/main.h \ + ../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal.h \ + ../Core/Inc/stm32f4xx_hal_conf.h \ + ../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_rcc.h \ + ../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_def.h \ + ../Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f4xx.h \ ../Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f446xx.h \ ../Drivers/CMSIS/Include/core_cm4.h \ ../Drivers/CMSIS/Include/cmsis_version.h \ @@ -6,12 +11,6 @@ Core/Src/main.o: ../Core/Src/main.c ../Core/Inc/flash.h \ ../Drivers/CMSIS/Include/cmsis_gcc.h \ ../Drivers/CMSIS/Include/mpu_armv7.h \ ../Drivers/CMSIS/Device/ST/STM32F4xx/Include/system_stm32f4xx.h \ - ../Core/Inc/main.h ../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal.h \ - ../Core/Inc/stm32f4xx_hal_conf.h \ - ../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_rcc.h \ - ../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_def.h \ - ../Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f4xx.h \ - ../Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f446xx.h \ ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ ../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_rcc_ex.h \ ../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_gpio.h \ @@ -33,16 +32,11 @@ Core/Src/main.o: ../Core/Src/main.c ../Core/Inc/flash.h \ ../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_tim.h \ ../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_tim_ex.h \ ../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_uart.h \ - ../Core/Inc/adc.h ../Core/Inc/can.h ../Core/Inc/spi.h ../Core/Inc/tim.h \ - ../Core/Inc/usart.h ../Core/Inc/gpio.h ../Core/Inc/can_reg.h -../Core/Inc/flash.h: -../Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f446xx.h: -../Drivers/CMSIS/Include/core_cm4.h: -../Drivers/CMSIS/Include/cmsis_version.h: -../Drivers/CMSIS/Include/cmsis_compiler.h: -../Drivers/CMSIS/Include/cmsis_gcc.h: -../Drivers/CMSIS/Include/mpu_armv7.h: -../Drivers/CMSIS/Device/ST/STM32F4xx/Include/system_stm32f4xx.h: + ../Core/Inc/adc.h ../Core/Inc/main.h ../Core/Inc/can.h ../Core/Inc/spi.h \ + ../Core/Inc/tim.h ../Core/Inc/usart.h ../Core/Inc/gpio.h \ + ../Core/Inc/flash.h \ + ../Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f446xx.h \ + ../Core/Inc/can_reg.h ../Core/Inc/main.h: ../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal.h: ../Core/Inc/stm32f4xx_hal_conf.h: @@ -50,6 +44,12 @@ Core/Src/main.o: ../Core/Src/main.c ../Core/Inc/flash.h \ ../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_def.h: ../Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f4xx.h: ../Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f446xx.h: +../Drivers/CMSIS/Include/core_cm4.h: +../Drivers/CMSIS/Include/cmsis_version.h: +../Drivers/CMSIS/Include/cmsis_compiler.h: +../Drivers/CMSIS/Include/cmsis_gcc.h: +../Drivers/CMSIS/Include/mpu_armv7.h: +../Drivers/CMSIS/Device/ST/STM32F4xx/Include/system_stm32f4xx.h: ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: ../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_rcc_ex.h: ../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_gpio.h: @@ -72,9 +72,12 @@ Core/Src/main.o: ../Core/Src/main.c ../Core/Inc/flash.h \ ../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_tim_ex.h: ../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_uart.h: ../Core/Inc/adc.h: +../Core/Inc/main.h: ../Core/Inc/can.h: ../Core/Inc/spi.h: ../Core/Inc/tim.h: ../Core/Inc/usart.h: ../Core/Inc/gpio.h: +../Core/Inc/flash.h: +../Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f446xx.h: ../Core/Inc/can_reg.h: diff --git a/controller/fw/bootloader/Debug/Core/Src/main.o b/controller/fw/bootloader/Debug/Core/Src/main.o index 3b2d386..fdb6990 100644 Binary files a/controller/fw/bootloader/Debug/Core/Src/main.o and b/controller/fw/bootloader/Debug/Core/Src/main.o differ diff --git a/controller/fw/bootloader/Debug/Core/Src/main.su b/controller/fw/bootloader/Debug/Core/Src/main.su index c8008e4..e43271a 100644 --- a/controller/fw/bootloader/Debug/Core/Src/main.su +++ b/controller/fw/bootloader/Debug/Core/Src/main.su @@ -1,11 +1,11 @@ ../Drivers/CMSIS/Include/core_cm4.h:1938:34:__NVIC_SystemReset 4 static,ignoring_inline_asm -../Core/Src/main.c:78:6:send_ack 56 static -../Core/Src/main.c:102:6:verify_firmware 16 static -../Core/Src/main.c:109:6:process_can_message 24 static -../Core/Src/main.c:159:6:jump_to_app 24 static,ignoring_inline_asm -../Core/Src/main.c:175:6:is_app_valid 16 static -../Core/Src/main.c:199:5:main 56 static -../Core/Src/main.c:295:6:SystemClock_Config 88 static -../Core/Src/main.c:349:13:MX_NVIC_Init 8 static -../Core/Src/main.c:368:6:HAL_TIM_PeriodElapsedCallback 16 static -../Core/Src/main.c:385:6:Error_Handler 4 static,ignoring_inline_asm +../Core/Src/main.c:79:6:send_ack 56 static +../Core/Src/main.c:103:6:verify_firmware 16 static +../Core/Src/main.c:110:6:process_can_message 24 static +../Core/Src/main.c:159:6:jump_to_app 32 static,ignoring_inline_asm +../Core/Src/main.c:188:6:is_app_valid 16 static +../Core/Src/main.c:212:5:main 104 static +../Core/Src/main.c:336:6:SystemClock_Config 88 static +../Core/Src/main.c:390:13:MX_NVIC_Init 8 static +../Core/Src/main.c:409:6:HAL_TIM_PeriodElapsedCallback 16 static +../Core/Src/main.c:426:6:Error_Handler 4 static,ignoring_inline_asm diff --git a/controller/fw/bootloader/Debug/Core/Src/spi.o b/controller/fw/bootloader/Debug/Core/Src/spi.o index 7580d17..902308d 100644 Binary files a/controller/fw/bootloader/Debug/Core/Src/spi.o and b/controller/fw/bootloader/Debug/Core/Src/spi.o differ diff --git a/controller/fw/bootloader/Debug/Core/Src/stm32f4xx_hal_msp.o b/controller/fw/bootloader/Debug/Core/Src/stm32f4xx_hal_msp.o index 5e8bbe2..8e02376 100644 Binary files a/controller/fw/bootloader/Debug/Core/Src/stm32f4xx_hal_msp.o and b/controller/fw/bootloader/Debug/Core/Src/stm32f4xx_hal_msp.o differ diff --git a/controller/fw/bootloader/Debug/Core/Src/stm32f4xx_hal_timebase_tim.o b/controller/fw/bootloader/Debug/Core/Src/stm32f4xx_hal_timebase_tim.o index 510f1c8..ea2ba9a 100644 Binary files a/controller/fw/bootloader/Debug/Core/Src/stm32f4xx_hal_timebase_tim.o and b/controller/fw/bootloader/Debug/Core/Src/stm32f4xx_hal_timebase_tim.o differ diff --git a/controller/fw/bootloader/Debug/Core/Src/stm32f4xx_it.o b/controller/fw/bootloader/Debug/Core/Src/stm32f4xx_it.o index 369b59b..976e138 100644 Binary files a/controller/fw/bootloader/Debug/Core/Src/stm32f4xx_it.o and b/controller/fw/bootloader/Debug/Core/Src/stm32f4xx_it.o differ diff --git a/controller/fw/bootloader/Debug/Core/Src/syscalls.o b/controller/fw/bootloader/Debug/Core/Src/syscalls.o index f984cd4..729c904 100644 Binary files a/controller/fw/bootloader/Debug/Core/Src/syscalls.o and b/controller/fw/bootloader/Debug/Core/Src/syscalls.o differ diff --git a/controller/fw/bootloader/Debug/Core/Src/sysmem.o b/controller/fw/bootloader/Debug/Core/Src/sysmem.o index 6c6ec35..8dcac25 100644 Binary files a/controller/fw/bootloader/Debug/Core/Src/sysmem.o and b/controller/fw/bootloader/Debug/Core/Src/sysmem.o differ diff --git a/controller/fw/bootloader/Debug/Core/Src/system_stm32f4xx.o b/controller/fw/bootloader/Debug/Core/Src/system_stm32f4xx.o index 74eddec..275475a 100644 Binary files a/controller/fw/bootloader/Debug/Core/Src/system_stm32f4xx.o and b/controller/fw/bootloader/Debug/Core/Src/system_stm32f4xx.o differ diff --git a/controller/fw/bootloader/Debug/Core/Src/tim.o b/controller/fw/bootloader/Debug/Core/Src/tim.o index e67f329..ff517f0 100644 Binary files a/controller/fw/bootloader/Debug/Core/Src/tim.o and b/controller/fw/bootloader/Debug/Core/Src/tim.o differ diff --git a/controller/fw/bootloader/Debug/Core/Src/usart.o b/controller/fw/bootloader/Debug/Core/Src/usart.o index 60110de..8f1d80b 100644 Binary files a/controller/fw/bootloader/Debug/Core/Src/usart.o and b/controller/fw/bootloader/Debug/Core/Src/usart.o differ diff --git a/controller/fw/bootloader/Debug/Core/Startup/startup_stm32f446retx.o b/controller/fw/bootloader/Debug/Core/Startup/startup_stm32f446retx.o index a902476..9922ea9 100644 Binary files a/controller/fw/bootloader/Debug/Core/Startup/startup_stm32f446retx.o and b/controller/fw/bootloader/Debug/Core/Startup/startup_stm32f446retx.o differ diff --git a/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o b/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o index 2ff5f9f..c904d58 100644 Binary files a/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o and b/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o differ diff --git a/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc.o b/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc.o index 82e6225..dcc27f4 100644 Binary files a/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc.o and b/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc.o differ diff --git a/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc_ex.o b/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc_ex.o index 7bb5a01..afac3e3 100644 Binary files a/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc_ex.o and b/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc_ex.o differ diff --git a/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_can.o b/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_can.o index 793635f..a64249a 100644 Binary files a/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_can.o and b/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_can.o differ diff --git a/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o b/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o index 8df7743..72e5457 100644 Binary files a/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o and b/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o differ diff --git a/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o b/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o index 3e29b06..4af7bb7 100644 Binary files a/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o and b/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o differ diff --git a/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma_ex.o b/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma_ex.o index a1c67d2..5b46922 100644 Binary files a/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma_ex.o and b/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma_ex.o differ diff --git a/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.o b/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.o index dd583d1..ec7af5f 100644 Binary files a/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.o and b/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.o differ diff --git a/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.o b/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.o index 2a191ab..1d62a97 100644 Binary files a/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.o and b/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.o differ diff --git a/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.o b/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.o index af451fb..d5c465f 100644 Binary files a/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.o and b/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.o differ diff --git a/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ramfunc.o b/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ramfunc.o index 80f5423..e12dc56 100644 Binary files a/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ramfunc.o and b/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ramfunc.o differ diff --git a/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o b/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o index 42a0e78..cd99e8c 100644 Binary files a/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o and b/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o differ diff --git a/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr.o b/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr.o index e1d797f..7e59a82 100644 Binary files a/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr.o and b/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr.o differ diff --git a/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.o b/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.o index ec1f443..032ab05 100644 Binary files a/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.o and b/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.o differ diff --git a/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o b/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o index fc39822..5d1c672 100644 Binary files a/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o and b/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o differ diff --git a/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o b/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o index 3898e3e..adbbcc7 100644 Binary files a/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o and b/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o differ diff --git a/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_spi.o b/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_spi.o index 3b8c012..d6dd794 100644 Binary files a/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_spi.o and b/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_spi.o differ diff --git a/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o b/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o index 96210b8..98bba0d 100644 Binary files a/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o and b/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o differ diff --git a/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o b/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o index 76e5352..1d2d182 100644 Binary files a/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o and b/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o differ diff --git a/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o b/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o index 727b9d4..f750082 100644 Binary files a/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o and b/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o differ diff --git a/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_adc.o b/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_adc.o index efc477e..1b849f9 100644 Binary files a/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_adc.o and b/controller/fw/bootloader/Debug/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_adc.o differ diff --git a/controller/fw/bootloader/Debug/bootloader_.elf b/controller/fw/bootloader/Debug/bootloader_.elf index 5e7efa4..580b443 100644 Binary files a/controller/fw/bootloader/Debug/bootloader_.elf and b/controller/fw/bootloader/Debug/bootloader_.elf differ diff --git a/controller/fw/bootloader/Debug/bootloader_.list b/controller/fw/bootloader/Debug/bootloader_.list index b1652d0..30efb2d 100644 --- a/controller/fw/bootloader/Debug/bootloader_.list +++ b/controller/fw/bootloader/Debug/bootloader_.list @@ -5,47 +5,47 @@ Sections: Idx Name Size VMA LMA File off Algn 0 .isr_vector 000001c4 08000000 08000000 00001000 2**0 CONTENTS, ALLOC, LOAD, READONLY, DATA - 1 .text 00005880 080001c4 080001c4 000011c4 2**2 + 1 .text 00005d20 080001c4 080001c4 000011c4 2**2 CONTENTS, ALLOC, LOAD, READONLY, CODE - 2 .rodata 00000018 08005a44 08005a44 00006a44 2**2 + 2 .rodata 00000040 08005ee4 08005ee4 00006ee4 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA - 3 .ARM.extab 00000000 08005a5c 08005a5c 00007014 2**0 + 3 .ARM.extab 00000000 08005f24 08005f24 00007014 2**0 CONTENTS - 4 .ARM 00000008 08005a5c 08005a5c 00006a5c 2**2 + 4 .ARM 00000008 08005f24 08005f24 00006f24 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA - 5 .preinit_array 00000000 08005a64 08005a64 00007014 2**0 + 5 .preinit_array 00000000 08005f2c 08005f2c 00007014 2**0 CONTENTS, ALLOC, LOAD, DATA - 6 .init_array 00000004 08005a64 08005a64 00006a64 2**2 + 6 .init_array 00000004 08005f2c 08005f2c 00006f2c 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA - 7 .fini_array 00000004 08005a68 08005a68 00006a68 2**2 + 7 .fini_array 00000004 08005f30 08005f30 00006f30 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA - 8 .data 00000014 20000000 08005a6c 00007000 2**2 + 8 .data 00000014 20000000 08005f34 00007000 2**2 CONTENTS, ALLOC, LOAD, DATA - 9 .bss 000002b8 20000014 08005a80 00007014 2**2 + 9 .bss 000002b4 20000014 08005f48 00007014 2**2 ALLOC - 10 ._user_heap_stack 00000604 200002cc 08005a80 000072cc 2**0 + 10 ._user_heap_stack 00000600 200002c8 08005f48 000072c8 2**0 ALLOC 11 .ARM.attributes 00000030 00000000 00000000 00007014 2**0 CONTENTS, READONLY - 12 .debug_info 00017a70 00000000 00000000 00007044 2**0 + 12 .debug_info 00017b68 00000000 00000000 00007044 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 13 .debug_abbrev 00003f43 00000000 00000000 0001eab4 2**0 + 13 .debug_abbrev 00003f50 00000000 00000000 0001ebac 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 14 .debug_aranges 000014c0 00000000 00000000 000229f8 2**3 + 14 .debug_aranges 000014c0 00000000 00000000 00022b00 2**3 CONTENTS, READONLY, DEBUGGING, OCTETS - 15 .debug_rnglists 0000100e 00000000 00000000 00023eb8 2**0 + 15 .debug_rnglists 0000100e 00000000 00000000 00023fc0 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 16 .debug_macro 00025b05 00000000 00000000 00024ec6 2**0 + 16 .debug_macro 00025b09 00000000 00000000 00024fce 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 17 .debug_line 0001b6d6 00000000 00000000 0004a9cb 2**0 + 17 .debug_line 0001b718 00000000 00000000 0004aad7 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 18 .debug_str 000e2d70 00000000 00000000 000660a1 2**0 + 18 .debug_str 000e2db8 00000000 00000000 000661ef 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 19 .comment 00000043 00000000 00000000 00148e11 2**0 + 19 .comment 00000043 00000000 00000000 00148fa7 2**0 CONTENTS, READONLY - 20 .debug_frame 000055c8 00000000 00000000 00148e54 2**2 + 20 .debug_frame 000055c8 00000000 00000000 00148fec 2**2 CONTENTS, READONLY, DEBUGGING, OCTETS - 21 .debug_line_str 00000050 00000000 00000000 0014e41c 2**0 + 21 .debug_line_str 0000006b 00000000 00000000 0014e5b4 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS Disassembly of section .text: @@ -64,7 +64,7 @@ Disassembly of section .text: 80001da: bd10 pop {r4, pc} 80001dc: 20000014 .word 0x20000014 80001e0: 00000000 .word 0x00000000 - 80001e4: 08005a2c .word 0x08005a2c + 80001e4: 08005ecc .word 0x08005ecc 080001e8 : 80001e8: b508 push {r3, lr} @@ -76,7 +76,7 @@ Disassembly of section .text: 80001f6: bd08 pop {r3, pc} 80001f8: 00000000 .word 0x00000000 80001fc: 20000018 .word 0x20000018 - 8000200: 08005a2c .word 0x08005a2c + 8000200: 08005ecc .word 0x08005ecc 08000204 <__aeabi_uldivmod>: 8000204: b953 cbnz r3, 800021c <__aeabi_uldivmod+0x18> @@ -421,13 +421,13 @@ void MX_ADC2_Init(void) 8000552: 615a str r2, [r3, #20] if (HAL_ADC_Init(&hadc2) != HAL_OK) 8000554: 481b ldr r0, [pc, #108] @ (80005c4 ) - 8000556: f001 fba9 bl 8001cac + 8000556: f001 fc05 bl 8001d64 800055a: 4603 mov r3, r0 800055c: 2b00 cmp r3, #0 800055e: d001 beq.n 8000564 { Error_Handler(); - 8000560: f000 ff05 bl 800136e + 8000560: f000 ff2b bl 80013ba } /** Configure for the selected ADC regular channel its corresponding rank in the sequencer and its sample time. @@ -445,13 +445,13 @@ void MX_ADC2_Init(void) 8000570: 463b mov r3, r7 8000572: 4619 mov r1, r3 8000574: 4813 ldr r0, [pc, #76] @ (80005c4 ) - 8000576: f001 fd0b bl 8001f90 + 8000576: f001 fd67 bl 8002048 800057a: 4603 mov r3, r0 800057c: 2b00 cmp r3, #0 800057e: d001 beq.n 8000584 { Error_Handler(); - 8000580: f000 fef5 bl 800136e + 8000580: f000 ff1b bl 80013ba } /** Configure for the selected ADC regular channel its corresponding rank in the sequencer and its sample time. @@ -466,13 +466,13 @@ void MX_ADC2_Init(void) 800058c: 463b mov r3, r7 800058e: 4619 mov r1, r3 8000590: 480c ldr r0, [pc, #48] @ (80005c4 ) - 8000592: f001 fcfd bl 8001f90 + 8000592: f001 fd59 bl 8002048 8000596: 4603 mov r3, r0 8000598: 2b00 cmp r3, #0 800059a: d001 beq.n 80005a0 { Error_Handler(); - 800059c: f000 fee7 bl 800136e + 800059c: f000 ff0d bl 80013ba } /** Configure for the selected ADC regular channel its corresponding rank in the sequencer and its sample time. @@ -487,13 +487,13 @@ void MX_ADC2_Init(void) 80005a8: 463b mov r3, r7 80005aa: 4619 mov r1, r3 80005ac: 4805 ldr r0, [pc, #20] @ (80005c4 ) - 80005ae: f001 fcef bl 8001f90 + 80005ae: f001 fd4b bl 8002048 80005b2: 4603 mov r3, r0 80005b4: 2b00 cmp r3, #0 80005b6: d001 beq.n 80005bc { Error_Handler(); - 80005b8: f000 fed9 bl 800136e + 80005b8: f000 feff bl 80013ba } /* USER CODE BEGIN ADC2_Init 2 */ @@ -594,7 +594,7 @@ void HAL_ADC_MspInit(ADC_HandleTypeDef* adcHandle) 8000652: f107 0314 add.w r3, r7, #20 8000656: 4619 mov r1, r3 8000658: 480b ldr r0, [pc, #44] @ (8000688 ) - 800065a: f002 fda1 bl 80031a0 + 800065a: f002 fef9 bl 8003450 GPIO_InitStruct.Pin = SENSE2_Pin|SENSE1_Pin; 800065e: 2303 movs r3, #3 @@ -609,7 +609,7 @@ void HAL_ADC_MspInit(ADC_HandleTypeDef* adcHandle) 800066a: f107 0314 add.w r3, r7, #20 800066e: 4619 mov r1, r3 8000670: 4806 ldr r0, [pc, #24] @ (800068c ) - 8000672: f002 fd95 bl 80031a0 + 8000672: f002 feed bl 8003450 /* USER CODE BEGIN ADC2_MspInit 1 */ @@ -668,9 +668,9 @@ void MX_CAN2_Init(void) 80006bc: 4b0d ldr r3, [pc, #52] @ (80006f4 ) 80006be: 2200 movs r2, #0 80006c0: 761a strb r2, [r3, #24] - hcan2.Init.AutoBusOff = DISABLE; + hcan2.Init.AutoBusOff = ENABLE; 80006c2: 4b0c ldr r3, [pc, #48] @ (80006f4 ) - 80006c4: 2200 movs r2, #0 + 80006c4: 2201 movs r2, #1 80006c6: 765a strb r2, [r3, #25] hcan2.Init.AutoWakeUp = DISABLE; 80006c8: 4b0a ldr r3, [pc, #40] @ (80006f4 ) @@ -690,13 +690,13 @@ void MX_CAN2_Init(void) 80006de: 775a strb r2, [r3, #29] if (HAL_CAN_Init(&hcan2) != HAL_OK) 80006e0: 4804 ldr r0, [pc, #16] @ (80006f4 ) - 80006e2: f001 fe8d bl 8002400 + 80006e2: f001 fee9 bl 80024b8 80006e6: 4603 mov r3, r0 80006e8: 2b00 cmp r3, #0 80006ea: d001 beq.n 80006f0 { Error_Handler(); - 80006ec: f000 fe3f bl 800136e + 80006ec: f000 fe65 bl 80013ba } /* USER CODE BEGIN CAN2_Init 2 */ @@ -799,7 +799,7 @@ void HAL_CAN_MspInit(CAN_HandleTypeDef* canHandle) 8000788: f107 0314 add.w r3, r7, #20 800078c: 4619 mov r1, r3 800078e: 4805 ldr r0, [pc, #20] @ (80007a4 ) - 8000790: f002 fd06 bl 80031a0 + 8000790: f002 fe5e bl 8003450 /* USER CODE BEGIN CAN2_MspInit 1 */ @@ -1263,7 +1263,7 @@ void compact_page(){ 8000a36: 2228 movs r2, #40 @ 0x28 8000a38: 2100 movs r1, #0 8000a3a: 4618 mov r0, r3 - 8000a3c: f004 ffbc bl 80059b8 + 8000a3c: f005 fa0c bl 8005e58 for(int i = (uint32_t)SECTOR_6;i < (uint32_t)SECTOR_6_END;i += FLASH_RECORD_SIZE) { 8000a40: 4b2c ldr r3, [pc, #176] @ (8000af4 ) 8000a42: 63fb str r3, [r7, #60] @ 0x3c @@ -1501,7 +1501,7 @@ void write_param(uint8_t param_id, uint32_t val) { 8000bc0: 4622 mov r2, r4 8000bc2: 462b mov r3, r5 8000bc4: 2002 movs r0, #2 - 8000bc6: f002 f835 bl 8002c34 + 8000bc6: f002 f98d bl 8002ee4 for (uint16_t i = 0; i < len; i += 4) { 8000bca: 89fb ldrh r3, [r7, #14] 8000bcc: 3304 adds r3, #4 @@ -1557,7 +1557,7 @@ void erase_flash_pages() { 8000c10: 1d3b adds r3, r7, #4 8000c12: 4611 mov r1, r2 8000c14: 4618 mov r0, r3 - 8000c16: f002 f9a1 bl 8002f5c + 8000c16: f002 faf9 bl 800320c flash_lock(); 8000c1a: f7ff fddd bl 80007d8 } @@ -1738,14 +1738,14 @@ void MX_GPIO_Init(void) 8000d2e: 2201 movs r2, #1 8000d30: f44f 4100 mov.w r1, #32768 @ 0x8000 8000d34: 4837 ldr r0, [pc, #220] @ (8000e14 ) - 8000d36: f002 fbc7 bl 80034c8 + 8000d36: f002 fd1f bl 8003778 /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(GPIOC, EN_W_Pin|DRV_RESET_Pin|DRV_SLEEP_Pin|LED1_Pin 8000d3a: 2200 movs r2, #0 8000d3c: f44f 51fa mov.w r1, #8000 @ 0x1f40 8000d40: 4835 ldr r0, [pc, #212] @ (8000e18 ) - 8000d42: f002 fbc1 bl 80034c8 + 8000d42: f002 fd19 bl 8003778 |LED2_Pin|LED3_Pin, GPIO_PIN_RESET); /*Configure GPIO pin Output Level */ @@ -1753,14 +1753,14 @@ void MX_GPIO_Init(void) 8000d46: 2200 movs r2, #0 8000d48: f44f 51c0 mov.w r1, #6144 @ 0x1800 8000d4c: 4833 ldr r0, [pc, #204] @ (8000e1c ) - 8000d4e: f002 fbbb bl 80034c8 + 8000d4e: f002 fd13 bl 8003778 /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(spi1_cs_GPIO_Port, spi1_cs_Pin, GPIO_PIN_RESET); 8000d52: 2200 movs r2, #0 8000d54: 2104 movs r1, #4 8000d56: 4832 ldr r0, [pc, #200] @ (8000e20 ) - 8000d58: f002 fbb6 bl 80034c8 + 8000d58: f002 fd0e bl 8003778 /*Configure GPIO pin : PtPin */ GPIO_InitStruct.Pin = AS5045_CS_Pin; @@ -1779,7 +1779,7 @@ void MX_GPIO_Init(void) 8000d6e: f107 0314 add.w r3, r7, #20 8000d72: 4619 mov r1, r3 8000d74: 4827 ldr r0, [pc, #156] @ (8000e14 ) - 8000d76: f002 fa13 bl 80031a0 + 8000d76: f002 fb6b bl 8003450 /*Configure GPIO pin : PtPin */ GPIO_InitStruct.Pin = EN_W_Pin; @@ -1798,7 +1798,7 @@ void MX_GPIO_Init(void) 8000d8a: f107 0314 add.w r3, r7, #20 8000d8e: 4619 mov r1, r3 8000d90: 4821 ldr r0, [pc, #132] @ (8000e18 ) - 8000d92: f002 fa05 bl 80031a0 + 8000d92: f002 fb5d bl 8003450 /*Configure GPIO pin : PtPin */ GPIO_InitStruct.Pin = DRV_FAULT_Pin; @@ -1814,7 +1814,7 @@ void MX_GPIO_Init(void) 8000da2: f107 0314 add.w r3, r7, #20 8000da6: 4619 mov r1, r3 8000da8: 481b ldr r0, [pc, #108] @ (8000e18 ) - 8000daa: f002 f9f9 bl 80031a0 + 8000daa: f002 fb51 bl 8003450 /*Configure GPIO pins : PCPin PCPin PCPin PCPin PCPin */ @@ -1835,7 +1835,7 @@ void MX_GPIO_Init(void) 8000dc0: f107 0314 add.w r3, r7, #20 8000dc4: 4619 mov r1, r3 8000dc6: 4814 ldr r0, [pc, #80] @ (8000e18 ) - 8000dc8: f002 f9ea bl 80031a0 + 8000dc8: f002 fb42 bl 8003450 /*Configure GPIO pins : PAPin PAPin */ GPIO_InitStruct.Pin = EN_U_Pin|EN_V_Pin; @@ -1854,7 +1854,7 @@ void MX_GPIO_Init(void) 8000dde: f107 0314 add.w r3, r7, #20 8000de2: 4619 mov r1, r3 8000de4: 480d ldr r0, [pc, #52] @ (8000e1c ) - 8000de6: f002 f9db bl 80031a0 + 8000de6: f002 fb33 bl 8003450 /*Configure GPIO pin : PtPin */ GPIO_InitStruct.Pin = spi1_cs_Pin; @@ -1873,7 +1873,7 @@ void MX_GPIO_Init(void) 8000dfa: f107 0314 add.w r3, r7, #20 8000dfe: 4619 mov r1, r3 8000e00: 4807 ldr r0, [pc, #28] @ (8000e20 ) - 8000e02: f002 f9cd bl 80031a0 + 8000e02: f002 fb25 bl 8003450 } 8000e06: bf00 nop @@ -1945,9 +1945,9 @@ void send_ack(uint8_t status) { 8000e5c: 743b strb r3, [r7, #16] uint32_t tx_mailbox; - tx_header.ExtId = ACK_CAN_ID; // id = 0x05 + tx_header.StdId = ACK_CAN_ID; // id = 0x05 8000e5e: 2305 movs r3, #5 - 8000e60: 61bb str r3, [r7, #24] + 8000e60: 617b str r3, [r7, #20] tx_header.IDE = CAN_ID_STD; //standart id 8000e62: 2300 movs r3, #0 8000e64: 61fb str r3, [r7, #28] @@ -1967,7 +1967,7 @@ void send_ack(uint8_t status) { 8000e78: f107 0210 add.w r2, r7, #16 8000e7c: f107 0114 add.w r1, r7, #20 8000e80: 4804 ldr r0, [pc, #16] @ (8000e94 ) - 8000e82: f001 fbb8 bl 80025f6 + 8000e82: f001 fd39 bl 80028f8 8000e86: 4603 mov r3, r0 8000e88: f887 302f strb.w r3, [r7, #47] @ 0x2f if(result != HAL_OK) { @@ -2029,12889 +2029,13773 @@ void process_can_message(CAN_RxHeaderTypeDef *header, uint8_t *data) { 8000edc: af00 add r7, sp, #0 8000ede: 6078 str r0, [r7, #4] 8000ee0: 6039 str r1, [r7, #0] - msg_id = header->ExtId; + msg_id = header->StdId; 8000ee2: 687b ldr r3, [r7, #4] - 8000ee4: 685b ldr r3, [r3, #4] - 8000ee6: 4a41 ldr r2, [pc, #260] @ (8000fec ) + 8000ee4: 681b ldr r3, [r3, #0] + 8000ee6: 4a42 ldr r2, [pc, #264] @ (8000ff0 ) 8000ee8: 6013 str r3, [r2, #0] /* 0x697 69 - slave addr 7 || 8 - REG_READ or REG_WRITE */ - id_x = (msg_id >> 4) & 0xFFFF; // get addr - 8000eea: 4b40 ldr r3, [pc, #256] @ (8000fec ) + id_x = (msg_id >> 4) & 0xFFF; // get addr + 8000eea: 4b41 ldr r3, [pc, #260] @ (8000ff0 ) 8000eec: 681b ldr r3, [r3, #0] 8000eee: 091b lsrs r3, r3, #4 - 8000ef0: b29a uxth r2, r3 - 8000ef2: 4b3f ldr r3, [pc, #252] @ (8000ff0 ) - 8000ef4: 801a strh r2, [r3, #0] + 8000ef0: b29b uxth r3, r3 + 8000ef2: f3c3 030b ubfx r3, r3, #0, #12 + 8000ef6: b29a uxth r2, r3 + 8000ef8: 4b3e ldr r3, [pc, #248] @ (8000ff4 ) + 8000efa: 801a strh r2, [r3, #0] msg_ch = msg_id & 0xF; // check cmd - 8000ef6: 4b3d ldr r3, [pc, #244] @ (8000fec ) - 8000ef8: 681b ldr r3, [r3, #0] - 8000efa: b2db uxtb r3, r3 - 8000efc: f003 030f and.w r3, r3, #15 - 8000f00: b2da uxtb r2, r3 - 8000f02: 4b3c ldr r3, [pc, #240] @ (8000ff4 ) - 8000f04: 701a strb r2, [r3, #0] + 8000efc: 4b3c ldr r3, [pc, #240] @ (8000ff0 ) + 8000efe: 681b ldr r3, [r3, #0] + 8000f00: b2db uxtb r3, r3 + 8000f02: f003 030f and.w r3, r3, #15 + 8000f06: b2da uxtb r2, r3 + 8000f08: 4b3b ldr r3, [pc, #236] @ (8000ff8 ) + 8000f0a: 701a strb r2, [r3, #0] // Check addr if(id_x == flash_record[addr_id].value) { - 8000f06: 4b3a ldr r3, [pc, #232] @ (8000ff0 ) - 8000f08: 881b ldrh r3, [r3, #0] - 8000f0a: b29b uxth r3, r3 - 8000f0c: 461a mov r2, r3 - 8000f0e: 4b3a ldr r3, [pc, #232] @ (8000ff8 ) - 8000f10: 681b ldr r3, [r3, #0] - 8000f12: 685b ldr r3, [r3, #4] - 8000f14: 429a cmp r2, r3 - 8000f16: d164 bne.n 8000fe2 + 8000f0c: 4b39 ldr r3, [pc, #228] @ (8000ff4 ) + 8000f0e: 881b ldrh r3, [r3, #0] + 8000f10: b29b uxth r3, r3 + 8000f12: 461a mov r2, r3 + 8000f14: 4b39 ldr r3, [pc, #228] @ (8000ffc ) + 8000f16: 681b ldr r3, [r3, #0] + 8000f18: 685b ldr r3, [r3, #4] + 8000f1a: 429a cmp r2, r3 + 8000f1c: d164 bne.n 8000fe8 switch(msg_ch) { - 8000f18: 4b36 ldr r3, [pc, #216] @ (8000ff4 ) - 8000f1a: 781b ldrb r3, [r3, #0] - 8000f1c: b2db uxtb r3, r3 - 8000f1e: 2b03 cmp r3, #3 - 8000f20: d01b beq.n 8000f5a - 8000f22: 2b03 cmp r3, #3 - 8000f24: dc5d bgt.n 8000fe2 - 8000f26: 2b01 cmp r3, #1 - 8000f28: d002 beq.n 8000f30 - 8000f2a: 2b02 cmp r3, #2 - 8000f2c: d03b beq.n 8000fa6 + 8000f1e: 4b36 ldr r3, [pc, #216] @ (8000ff8 ) + 8000f20: 781b ldrb r3, [r3, #0] + 8000f22: b2db uxtb r3, r3 + 8000f24: 2b03 cmp r3, #3 + 8000f26: d01b beq.n 8000f60 + 8000f28: 2b03 cmp r3, #3 + 8000f2a: dc5d bgt.n 8000fe8 + 8000f2c: 2b01 cmp r3, #1 + 8000f2e: d002 beq.n 8000f36 + 8000f30: 2b02 cmp r3, #2 + 8000f32: d03b beq.n 8000fac erase_flash_pages(); // Erase error firwmare } break; } } } - 8000f2e: e058 b.n 8000fe2 + 8000f34: e058 b.n 8000fe8 if(data[0] == 0x01) { - 8000f30: 683b ldr r3, [r7, #0] - 8000f32: 781b ldrb r3, [r3, #0] - 8000f34: 2b01 cmp r3, #1 - 8000f36: d151 bne.n 8000fdc + 8000f36: 683b ldr r3, [r7, #0] + 8000f38: 781b ldrb r3, [r3, #0] + 8000f3a: 2b01 cmp r3, #1 + 8000f3c: d151 bne.n 8000fe2 fw_size = *((uint32_t*)&data[1]); - 8000f38: 683b ldr r3, [r7, #0] - 8000f3a: f8d3 3001 ldr.w r3, [r3, #1] - 8000f3e: 4a2f ldr r2, [pc, #188] @ (8000ffc ) - 8000f40: 6013 str r3, [r2, #0] + 8000f3e: 683b ldr r3, [r7, #0] + 8000f40: f8d3 3001 ldr.w r3, [r3, #1] + 8000f44: 4a2e ldr r2, [pc, #184] @ (8001000 ) + 8000f46: 6013 str r3, [r2, #0] fw_crc = *((uint16_t*)&data[5]); - 8000f42: 683b ldr r3, [r7, #0] - 8000f44: f8b3 2005 ldrh.w r2, [r3, #5] - 8000f48: 4b2d ldr r3, [pc, #180] @ (8001000 ) - 8000f4a: 801a strh r2, [r3, #0] + 8000f48: 683b ldr r3, [r7, #0] + 8000f4a: f8b3 2005 ldrh.w r2, [r3, #5] + 8000f4e: 4b2d ldr r3, [pc, #180] @ (8001004 ) + 8000f50: 801a strh r2, [r3, #0] ptr_flash = APP_ADDRESS; - 8000f4c: 4b2d ldr r3, [pc, #180] @ (8001004 ) - 8000f4e: 4a2e ldr r2, [pc, #184] @ (8001008 ) - 8000f50: 601a str r2, [r3, #0] + 8000f52: 4b2d ldr r3, [pc, #180] @ (8001008 ) + 8000f54: 4a2d ldr r2, [pc, #180] @ (800100c ) + 8000f56: 601a str r2, [r3, #0] send_ack(0x01); - 8000f52: 2001 movs r0, #1 - 8000f54: f7ff ff7c bl 8000e50 + 8000f58: 2001 movs r0, #1 + 8000f5a: f7ff ff79 bl 8000e50 break; - 8000f58: e040 b.n 8000fdc + 8000f5e: e040 b.n 8000fe2 if(ptr_flash < (APP_ADDRESS + fw_size)) { - 8000f5a: 4b28 ldr r3, [pc, #160] @ (8000ffc ) - 8000f5c: 681b ldr r3, [r3, #0] - 8000f5e: f103 6300 add.w r3, r3, #134217728 @ 0x8000000 - 8000f62: f503 4300 add.w r3, r3, #32768 @ 0x8000 - 8000f66: 4a27 ldr r2, [pc, #156] @ (8001004 ) - 8000f68: 6812 ldr r2, [r2, #0] - 8000f6a: 4293 cmp r3, r2 - 8000f6c: d938 bls.n 8000fe0 + 8000f60: 4b27 ldr r3, [pc, #156] @ (8001000 ) + 8000f62: 681b ldr r3, [r3, #0] + 8000f64: f103 6300 add.w r3, r3, #134217728 @ 0x8000000 + 8000f68: f503 4300 add.w r3, r3, #32768 @ 0x8000 + 8000f6c: 4a26 ldr r2, [pc, #152] @ (8001008 ) + 8000f6e: 6812 ldr r2, [r2, #0] + 8000f70: 4293 cmp r3, r2 + 8000f72: d938 bls.n 8000fe6 memcpy(aligned_data, data, header->DLC); //copy from data to aligned_data - 8000f6e: 687b ldr r3, [r7, #4] - 8000f70: 691a ldr r2, [r3, #16] - 8000f72: f107 0308 add.w r3, r7, #8 - 8000f76: 6839 ldr r1, [r7, #0] - 8000f78: 4618 mov r0, r3 - 8000f7a: f004 fd49 bl 8005a10 + 8000f74: 687b ldr r3, [r7, #4] + 8000f76: 691a ldr r2, [r3, #16] + 8000f78: f107 0308 add.w r3, r7, #8 + 8000f7c: 6839 ldr r1, [r7, #0] + 8000f7e: 4618 mov r0, r3 + 8000f80: f004 ff96 bl 8005eb0 write_flash_page(aligned_data, header->DLC); - 8000f7e: 687b ldr r3, [r7, #4] - 8000f80: 691b ldr r3, [r3, #16] - 8000f82: b29a uxth r2, r3 - 8000f84: f107 0308 add.w r3, r7, #8 - 8000f88: 4611 mov r1, r2 - 8000f8a: 4618 mov r0, r3 - 8000f8c: f7ff fdfe bl 8000b8c + 8000f84: 687b ldr r3, [r7, #4] + 8000f86: 691b ldr r3, [r3, #16] + 8000f88: b29a uxth r2, r3 + 8000f8a: f107 0308 add.w r3, r7, #8 + 8000f8e: 4611 mov r1, r2 + 8000f90: 4618 mov r0, r3 + 8000f92: f7ff fdfb bl 8000b8c ptr_flash += header->DLC; - 8000f90: 687b ldr r3, [r7, #4] - 8000f92: 691a ldr r2, [r3, #16] - 8000f94: 4b1b ldr r3, [pc, #108] @ (8001004 ) - 8000f96: 681b ldr r3, [r3, #0] - 8000f98: 4413 add r3, r2 - 8000f9a: 4a1a ldr r2, [pc, #104] @ (8001004 ) - 8000f9c: 6013 str r3, [r2, #0] + 8000f96: 687b ldr r3, [r7, #4] + 8000f98: 691a ldr r2, [r3, #16] + 8000f9a: 4b1b ldr r3, [pc, #108] @ (8001008 ) + 8000f9c: 681b ldr r3, [r3, #0] + 8000f9e: 4413 add r3, r2 + 8000fa0: 4a19 ldr r2, [pc, #100] @ (8001008 ) + 8000fa2: 6013 str r3, [r2, #0] send_ack(0x02); - 8000f9e: 2002 movs r0, #2 - 8000fa0: f7ff ff56 bl 8000e50 + 8000fa4: 2002 movs r0, #2 + 8000fa6: f7ff ff53 bl 8000e50 break; - 8000fa4: e01c b.n 8000fe0 + 8000faa: e01c b.n 8000fe6 if(verify_firmware()) { - 8000fa6: f7ff ff77 bl 8000e98 - 8000faa: 4603 mov r3, r0 - 8000fac: 2b00 cmp r3, #0 - 8000fae: d00f beq.n 8000fd0 + 8000fac: f7ff ff74 bl 8000e98 + 8000fb0: 4603 mov r3, r0 + 8000fb2: 2b00 cmp r3, #0 + 8000fb4: d00f beq.n 8000fd6 send_ack(0xAA); - 8000fb0: 20aa movs r0, #170 @ 0xaa - 8000fb2: f7ff ff4d bl 8000e50 + 8000fb6: 20aa movs r0, #170 @ 0xaa + 8000fb8: f7ff ff4a bl 8000e50 write_param(firmw, 0); // Reset firmware update - 8000fb6: 2100 movs r1, #0 - 8000fb8: 2004 movs r0, #4 - 8000fba: f7ff fda1 bl 8000b00 + 8000fbc: 2100 movs r1, #0 + 8000fbe: 2004 movs r0, #4 + 8000fc0: f7ff fd9e bl 8000b00 fw_update = false; - 8000fbe: 4b13 ldr r3, [pc, #76] @ (800100c ) - 8000fc0: 2200 movs r2, #0 - 8000fc2: 701a strb r2, [r3, #0] + 8000fc4: 4b12 ldr r3, [pc, #72] @ (8001010 ) + 8000fc6: 2200 movs r2, #0 + 8000fc8: 701a strb r2, [r3, #0] HAL_Delay(500); - 8000fc4: f44f 70fa mov.w r0, #500 @ 0x1f4 - 8000fc8: f000 fe4c bl 8001c64 + 8000fca: f44f 70fa mov.w r0, #500 @ 0x1f4 + 8000fce: f000 fea5 bl 8001d1c NVIC_SystemReset(); - 8000fcc: f7ff ff2a bl 8000e24 <__NVIC_SystemReset> + 8000fd2: f7ff ff27 bl 8000e24 <__NVIC_SystemReset> send_ack(0x55); // Error - 8000fd0: 2055 movs r0, #85 @ 0x55 - 8000fd2: f7ff ff3d bl 8000e50 + 8000fd6: 2055 movs r0, #85 @ 0x55 + 8000fd8: f7ff ff3a bl 8000e50 erase_flash_pages(); // Erase error firwmare - 8000fd6: f7ff fe0d bl 8000bf4 + 8000fdc: f7ff fe0a bl 8000bf4 break; - 8000fda: e002 b.n 8000fe2 + 8000fe0: e002 b.n 8000fe8 break; - 8000fdc: bf00 nop - 8000fde: e000 b.n 8000fe2 - break; - 8000fe0: bf00 nop -} 8000fe2: bf00 nop - 8000fe4: 3710 adds r7, #16 - 8000fe6: 46bd mov sp, r7 - 8000fe8: bd80 pop {r7, pc} - 8000fea: bf00 nop - 8000fec: 200000e0 .word 0x200000e0 - 8000ff0: 200000e4 .word 0x200000e4 - 8000ff4: 200000e6 .word 0x200000e6 - 8000ff8: 200000d8 .word 0x200000d8 - 8000ffc: 200000cc .word 0x200000cc - 8001000: 200000d0 .word 0x200000d0 - 8001004: 200000dc .word 0x200000dc - 8001008: 08008000 .word 0x08008000 - 800100c: 200000c8 .word 0x200000c8 - -08001010 : - -void jump_to_app() { - 8001010: b580 push {r7, lr} - 8001012: b084 sub sp, #16 - 8001014: af00 add r7, sp, #0 - __ASM volatile ("cpsid i" : : : "memory"); - 8001016: b672 cpsid i + 8000fe4: e000 b.n 8000fe8 + break; + 8000fe6: bf00 nop } - 8001018: bf00 nop + 8000fe8: bf00 nop + 8000fea: 3710 adds r7, #16 + 8000fec: 46bd mov sp, r7 + 8000fee: bd80 pop {r7, pc} + 8000ff0: 200000dc .word 0x200000dc + 8000ff4: 200000e0 .word 0x200000e0 + 8000ff8: 200000e2 .word 0x200000e2 + 8000ffc: 200000d4 .word 0x200000d4 + 8001000: 200000cc .word 0x200000cc + 8001004: 200000d0 .word 0x200000d0 + 8001008: 200000d8 .word 0x200000d8 + 800100c: 08008000 .word 0x08008000 + 8001010: 200000c8 .word 0x200000c8 + +08001014 : + +void jump_to_app(void) { + 8001014: b580 push {r7, lr} + 8001016: b086 sub sp, #24 + 8001018: af00 add r7, sp, #0 + HAL_RCC_DeInit(); + 800101a: f002 ff93 bl 8003f44 + HAL_DeInit(); + 800101e: f000 fe27 bl 8001c70 + __ASM volatile ("cpsid i" : : : "memory"); + 8001022: b672 cpsid i +} + 8001024: bf00 nop __disable_irq(); - jump = *(volatile uint32_t*)(APP_ADDRESS + 4); - 800101a: 4b12 ldr r3, [pc, #72] @ (8001064 ) - 800101c: 681b ldr r3, [r3, #0] - 800101e: 4a12 ldr r2, [pc, #72] @ (8001068 ) - 8001020: 6013 str r3, [r2, #0] - void (*app_entry)(void); - app_entry = (void (*)(void))jump; - 8001022: 4b11 ldr r3, [pc, #68] @ (8001068 ) - 8001024: 681b ldr r3, [r3, #0] - 8001026: 60bb str r3, [r7, #8] + + uint32_t *app_vector_table = (uint32_t*)APP_ADDRESS; + 8001026: 4b14 ldr r3, [pc, #80] @ (8001078 ) + 8001028: 613b str r3, [r7, #16] - for (uint32_t i = 0; i < 8; i++) { - 8001028: 2300 movs r3, #0 - 800102a: 60fb str r3, [r7, #12] - 800102c: e009 b.n 8001042 + // RESET ALL Interrupt + for (uint8_t i = 0; i < 8; i++) { + 800102a: 2300 movs r3, #0 + 800102c: 75fb strb r3, [r7, #23] + 800102e: e010 b.n 8001052 + NVIC->ICER[i] = 0xFFFFFFFF; + 8001030: 4a12 ldr r2, [pc, #72] @ (800107c ) + 8001032: 7dfb ldrb r3, [r7, #23] + 8001034: 3320 adds r3, #32 + 8001036: f04f 31ff mov.w r1, #4294967295 + 800103a: f842 1023 str.w r1, [r2, r3, lsl #2] NVIC->ICPR[i] = 0xFFFFFFFF; - 800102e: 4a0f ldr r2, [pc, #60] @ (800106c ) - 8001030: 68fb ldr r3, [r7, #12] - 8001032: 3360 adds r3, #96 @ 0x60 - 8001034: f04f 31ff mov.w r1, #4294967295 - 8001038: f842 1023 str.w r1, [r2, r3, lsl #2] - for (uint32_t i = 0; i < 8; i++) { - 800103c: 68fb ldr r3, [r7, #12] - 800103e: 3301 adds r3, #1 - 8001040: 60fb str r3, [r7, #12] - 8001042: 68fb ldr r3, [r7, #12] - 8001044: 2b07 cmp r3, #7 - 8001046: d9f2 bls.n 800102e + 800103e: 4a0f ldr r2, [pc, #60] @ (800107c ) + 8001040: 7dfb ldrb r3, [r7, #23] + 8001042: 3360 adds r3, #96 @ 0x60 + 8001044: f04f 31ff mov.w r1, #4294967295 + 8001048: f842 1023 str.w r1, [r2, r3, lsl #2] + for (uint8_t i = 0; i < 8; i++) { + 800104c: 7dfb ldrb r3, [r7, #23] + 800104e: 3301 adds r3, #1 + 8001050: 75fb strb r3, [r7, #23] + 8001052: 7dfb ldrb r3, [r7, #23] + 8001054: 2b07 cmp r3, #7 + 8001056: d9eb bls.n 8001030 } - __set_MSP(*(volatile uint32_t*)APP_ADDRESS); - 8001048: 4b09 ldr r3, [pc, #36] @ (8001070 ) - 800104a: 681b ldr r3, [r3, #0] - 800104c: 607b str r3, [r7, #4] + // APP_ADDR + __set_MSP(app_vector_table[0]); + 8001058: 693b ldr r3, [r7, #16] + 800105a: 681b ldr r3, [r3, #0] + 800105c: 607b str r3, [r7, #4] \details Assigns the given value to the Main Stack Pointer (MSP). \param [in] topOfMainStack Main Stack Pointer value to set */ __STATIC_FORCEINLINE void __set_MSP(uint32_t topOfMainStack) { __ASM volatile ("MSR msp, %0" : : "r" (topOfMainStack) : ); - 800104e: 687b ldr r3, [r7, #4] - 8001050: f383 8808 msr MSP, r3 + 800105e: 687b ldr r3, [r7, #4] + 8001060: f383 8808 msr MSP, r3 } - 8001054: bf00 nop - // SCB->VTOR = (uint32_t)0x08008004; - app_entry(); - 8001056: 68bb ldr r3, [r7, #8] - 8001058: 4798 blx r3 -} - 800105a: bf00 nop - 800105c: 3710 adds r7, #16 - 800105e: 46bd mov sp, r7 - 8001060: bd80 pop {r7, pc} - 8001062: bf00 nop - 8001064: 08008004 .word 0x08008004 - 8001068: 200000d4 .word 0x200000d4 - 800106c: e000e100 .word 0xe000e100 - 8001070: 08008000 .word 0x08008000 + 8001064: bf00 nop -08001074 : + // Point to go + uint32_t app_entry = *(app_vector_table + 1); //APP_ADDR + 4 + 8001066: 693b ldr r3, [r7, #16] + 8001068: 685b ldr r3, [r3, #4] + 800106a: 60fb str r3, [r7, #12] + void (*application)(void); + application = (void (*)(void))app_entry; + 800106c: 68fb ldr r3, [r7, #12] + 800106e: 60bb str r3, [r7, #8] + + // Go to application + application(); + 8001070: 68bb ldr r3, [r7, #8] + 8001072: 4798 blx r3 + + // If we return go to infinity loop + while(1); + 8001074: bf00 nop + 8001076: e7fd b.n 8001074 + 8001078: 08008000 .word 0x08008000 + 800107c: e000e100 .word 0xe000e100 + +08001080 : +} bool is_app_valid() { - 8001074: b480 push {r7} - 8001076: b083 sub sp, #12 - 8001078: af00 add r7, sp, #0 + 8001080: b480 push {r7} + 8001082: b083 sub sp, #12 + 8001084: af00 add r7, sp, #0 volatile uint32_t* app_vector = (volatile uint32_t*)APP_ADDRESS; - 800107a: 4b28 ldr r3, [pc, #160] @ (800111c ) - 800107c: 607b str r3, [r7, #4] + 8001086: 4b28 ldr r3, [pc, #160] @ (8001128 ) + 8001088: 607b str r3, [r7, #4] // Check stack pointer bool sp_valid = (app_vector[0] >= 0x20000000) && - 800107e: 687b ldr r3, [r7, #4] - 8001080: 681b ldr r3, [r3, #0] - 8001082: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000 - 8001086: d306 bcc.n 8001096 - (app_vector[0] <= (0x20000000 + 128*1024)); // Для STM32 с 128K RAM - 8001088: 687b ldr r3, [r7, #4] - 800108a: 681b ldr r3, [r3, #0] + 800108a: 687b ldr r3, [r7, #4] + 800108c: 681b ldr r3, [r3, #0] + 800108e: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000 + 8001092: d306 bcc.n 80010a2 + (app_vector[0] <= (0x20000000 + 128*1024)); + 8001094: 687b ldr r3, [r7, #4] + 8001096: 681b ldr r3, [r3, #0] bool sp_valid = (app_vector[0] >= 0x20000000) && - 800108c: 4a24 ldr r2, [pc, #144] @ (8001120 ) - 800108e: 4293 cmp r3, r2 - 8001090: d801 bhi.n 8001096 - 8001092: 2301 movs r3, #1 - 8001094: e000 b.n 8001098 - 8001096: 2300 movs r3, #0 - 8001098: 70fb strb r3, [r7, #3] - 800109a: 78fb ldrb r3, [r7, #3] - 800109c: f003 0301 and.w r3, r3, #1 - 80010a0: 70fb strb r3, [r7, #3] + 8001098: 4a24 ldr r2, [pc, #144] @ (800112c ) + 800109a: 4293 cmp r3, r2 + 800109c: d801 bhi.n 80010a2 + 800109e: 2301 movs r3, #1 + 80010a0: e000 b.n 80010a4 + 80010a2: 2300 movs r3, #0 + 80010a4: 70fb strb r3, [r7, #3] + 80010a6: 78fb ldrb r3, [r7, #3] + 80010a8: f003 0301 and.w r3, r3, #1 + 80010ac: 70fb strb r3, [r7, #3] // check reset_handler bool pc_valid = (app_vector[1] >= 0x08000000) && - 80010a2: 687b ldr r3, [r7, #4] - 80010a4: 3304 adds r3, #4 - 80010a6: 681b ldr r3, [r3, #0] - 80010a8: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000 - 80010ac: d307 bcc.n 80010be - (app_vector[1] <= (0x08000000 + 1024*1024)); // Для 1MB Flash 80010ae: 687b ldr r3, [r7, #4] 80010b0: 3304 adds r3, #4 80010b2: 681b ldr r3, [r3, #0] + 80010b4: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000 + 80010b8: d307 bcc.n 80010ca + (app_vector[1] <= (0x08000000 + 1024*1024)); + 80010ba: 687b ldr r3, [r7, #4] + 80010bc: 3304 adds r3, #4 + 80010be: 681b ldr r3, [r3, #0] bool pc_valid = (app_vector[1] >= 0x08000000) && - 80010b4: f1b3 6f01 cmp.w r3, #135266304 @ 0x8100000 - 80010b8: d801 bhi.n 80010be - 80010ba: 2301 movs r3, #1 - 80010bc: e000 b.n 80010c0 - 80010be: 2300 movs r3, #0 - 80010c0: 70bb strb r3, [r7, #2] - 80010c2: 78bb ldrb r3, [r7, #2] - 80010c4: f003 0301 and.w r3, r3, #1 - 80010c8: 70bb strb r3, [r7, #2] + 80010c0: f1b3 6f01 cmp.w r3, #135266304 @ 0x8100000 + 80010c4: d801 bhi.n 80010ca + 80010c6: 2301 movs r3, #1 + 80010c8: e000 b.n 80010cc + 80010ca: 2300 movs r3, #0 + 80010cc: 70bb strb r3, [r7, #2] + 80010ce: 78bb ldrb r3, [r7, #2] + 80010d0: f003 0301 and.w r3, r3, #1 + 80010d4: 70bb strb r3, [r7, #2] // check two words on reset value bool not_erased = (app_vector[0] != 0xFFFFFFFF) && - 80010ca: 687b ldr r3, [r7, #4] - 80010cc: 681b ldr r3, [r3, #0] - 80010ce: f1b3 3fff cmp.w r3, #4294967295 - 80010d2: d007 beq.n 80010e4 - (app_vector[1] != 0xFFFFFFFF); - 80010d4: 687b ldr r3, [r7, #4] - 80010d6: 3304 adds r3, #4 + 80010d6: 687b ldr r3, [r7, #4] 80010d8: 681b ldr r3, [r3, #0] - bool not_erased = (app_vector[0] != 0xFFFFFFFF) && 80010da: f1b3 3fff cmp.w r3, #4294967295 - 80010de: d001 beq.n 80010e4 - 80010e0: 2301 movs r3, #1 - 80010e2: e000 b.n 80010e6 - 80010e4: 2300 movs r3, #0 - 80010e6: 707b strb r3, [r7, #1] - 80010e8: 787b ldrb r3, [r7, #1] - 80010ea: f003 0301 and.w r3, r3, #1 - 80010ee: 707b strb r3, [r7, #1] + 80010de: d007 beq.n 80010f0 + (app_vector[1] != 0xFFFFFFFF); + 80010e0: 687b ldr r3, [r7, #4] + 80010e2: 3304 adds r3, #4 + 80010e4: 681b ldr r3, [r3, #0] + bool not_erased = (app_vector[0] != 0xFFFFFFFF) && + 80010e6: f1b3 3fff cmp.w r3, #4294967295 + 80010ea: d001 beq.n 80010f0 + 80010ec: 2301 movs r3, #1 + 80010ee: e000 b.n 80010f2 + 80010f0: 2300 movs r3, #0 + 80010f2: 707b strb r3, [r7, #1] + 80010f4: 787b ldrb r3, [r7, #1] + 80010f6: f003 0301 and.w r3, r3, #1 + 80010fa: 707b strb r3, [r7, #1] return sp_valid && pc_valid && not_erased; - 80010f0: 78fb ldrb r3, [r7, #3] - 80010f2: 2b00 cmp r3, #0 - 80010f4: d007 beq.n 8001106 - 80010f6: 78bb ldrb r3, [r7, #2] - 80010f8: 2b00 cmp r3, #0 - 80010fa: d004 beq.n 8001106 - 80010fc: 787b ldrb r3, [r7, #1] + 80010fc: 78fb ldrb r3, [r7, #3] 80010fe: 2b00 cmp r3, #0 - 8001100: d001 beq.n 8001106 - 8001102: 2301 movs r3, #1 - 8001104: e000 b.n 8001108 - 8001106: 2300 movs r3, #0 - 8001108: f003 0301 and.w r3, r3, #1 - 800110c: b2db uxtb r3, r3 + 8001100: d007 beq.n 8001112 + 8001102: 78bb ldrb r3, [r7, #2] + 8001104: 2b00 cmp r3, #0 + 8001106: d004 beq.n 8001112 + 8001108: 787b ldrb r3, [r7, #1] + 800110a: 2b00 cmp r3, #0 + 800110c: d001 beq.n 8001112 + 800110e: 2301 movs r3, #1 + 8001110: e000 b.n 8001114 + 8001112: 2300 movs r3, #0 + 8001114: f003 0301 and.w r3, r3, #1 + 8001118: b2db uxtb r3, r3 } - 800110e: 4618 mov r0, r3 - 8001110: 370c adds r7, #12 - 8001112: 46bd mov sp, r7 - 8001114: f85d 7b04 ldr.w r7, [sp], #4 - 8001118: 4770 bx lr - 800111a: bf00 nop - 800111c: 08008000 .word 0x08008000 - 8001120: 20020000 .word 0x20020000 + 800111a: 4618 mov r0, r3 + 800111c: 370c adds r7, #12 + 800111e: 46bd mov sp, r7 + 8001120: f85d 7b04 ldr.w r7, [sp], #4 + 8001124: 4770 bx lr + 8001126: bf00 nop + 8001128: 08008000 .word 0x08008000 + 800112c: 20020000 .word 0x20020000 -08001124
: +08001130
: /** * @brief The application entry point. * @retval int */ int main(void) { - 8001124: b580 push {r7, lr} - 8001126: b08c sub sp, #48 @ 0x30 - 8001128: af00 add r7, sp, #0 - - /* USER CODE BEGIN 1 */ - // Настройка GPIO - RCC->AHB1ENR |= RCC_AHB1ENR_GPIOCEN; - 800112a: 4b44 ldr r3, [pc, #272] @ (800123c ) - 800112c: 6b1b ldr r3, [r3, #48] @ 0x30 - 800112e: 4a43 ldr r2, [pc, #268] @ (800123c ) - 8001130: f043 0304 orr.w r3, r3, #4 - 8001134: 6313 str r3, [r2, #48] @ 0x30 - GPIOC->MODER |= GPIO_MODER_MODE10_0 | GPIO_MODER_MODE11_0; - 8001136: 4b42 ldr r3, [pc, #264] @ (8001240 ) - 8001138: 681b ldr r3, [r3, #0] - 800113a: 4a41 ldr r2, [pc, #260] @ (8001240 ) - 800113c: f443 03a0 orr.w r3, r3, #5242880 @ 0x500000 - 8001140: 6013 str r3, [r2, #0] - GPIOC->ODR &= ~GPIO_ODR_OD11; - 8001142: 4b3f ldr r3, [pc, #252] @ (8001240 ) - 8001144: 695b ldr r3, [r3, #20] - 8001146: 4a3e ldr r2, [pc, #248] @ (8001240 ) - 8001148: f423 6300 bic.w r3, r3, #2048 @ 0x800 - 800114c: 6153 str r3, [r2, #20] - GPIOC->ODR |= GPIO_ODR_OD10; - 800114e: 4b3c ldr r3, [pc, #240] @ (8001240 ) - 8001150: 695b ldr r3, [r3, #20] - 8001152: 4a3b ldr r2, [pc, #236] @ (8001240 ) - 8001154: f443 6380 orr.w r3, r3, #1024 @ 0x400 - 8001158: 6153 str r3, [r2, #20] - - flash_record = load_params(); - 800115a: f7ff fd65 bl 8000c28 - 800115e: 4603 mov r3, r0 - 8001160: 4a38 ldr r2, [pc, #224] @ (8001244 ) - 8001162: 6013 str r3, [r2, #0] - if(flash_record[firmw].value == UPDATE_FLAG) { - 8001164: 4b37 ldr r3, [pc, #220] @ (8001244 ) - 8001166: 681b ldr r3, [r3, #0] - 8001168: 3320 adds r3, #32 - 800116a: 685b ldr r3, [r3, #4] - 800116c: 4a36 ldr r2, [pc, #216] @ (8001248 ) - 800116e: 4293 cmp r3, r2 - 8001170: d117 bne.n 80011a2 - fw_update = true; - 8001172: 4b36 ldr r3, [pc, #216] @ (800124c ) - 8001174: 2201 movs r2, #1 - 8001176: 701a strb r2, [r3, #0] - for(int i = 0; i < 5;i++){ - 8001178: 2300 movs r3, #0 - 800117a: 62fb str r3, [r7, #44] @ 0x2c - 800117c: e00b b.n 8001196 - GPIOC->ODR ^= GPIO_ODR_OD10; // Indecate message - 800117e: 4b30 ldr r3, [pc, #192] @ (8001240 ) - 8001180: 695b ldr r3, [r3, #20] - 8001182: 4a2f ldr r2, [pc, #188] @ (8001240 ) - 8001184: f483 6380 eor.w r3, r3, #1024 @ 0x400 - 8001188: 6153 str r3, [r2, #20] - HAL_Delay(100); - 800118a: 2064 movs r0, #100 @ 0x64 - 800118c: f000 fd6a bl 8001c64 - for(int i = 0; i < 5;i++){ - 8001190: 6afb ldr r3, [r7, #44] @ 0x2c - 8001192: 3301 adds r3, #1 - 8001194: 62fb str r3, [r7, #44] @ 0x2c - 8001196: 6afb ldr r3, [r7, #44] @ 0x2c - 8001198: 2b04 cmp r3, #4 - 800119a: ddf0 ble.n 800117e - } - // write_param(firmw,0); //reset flasg - erase_flash_pages(); - 800119c: f7ff fd2a bl 8000bf4 - 80011a0: e00a b.n 80011b8 - } - else{ - // for st-link update, because he doesnt reset flag_update - if(is_app_valid()) jump_to_app(); //firmware exist - 80011a2: f7ff ff67 bl 8001074 - 80011a6: 4603 mov r3, r0 - 80011a8: 2b00 cmp r3, #0 - 80011aa: d002 beq.n 80011b2 - 80011ac: f7ff ff30 bl 8001010 - 80011b0: e002 b.n 80011b8 - else fw_update = true; //firmware doesnt exist, but we in bootloader - 80011b2: 4b26 ldr r3, [pc, #152] @ (800124c ) - 80011b4: 2201 movs r2, #1 - 80011b6: 701a strb r2, [r3, #0] - } - - GPIOC->ODR |= GPIO_ODR_OD10; - 80011b8: 4b21 ldr r3, [pc, #132] @ (8001240 ) - 80011ba: 695b ldr r3, [r3, #20] - 80011bc: 4a20 ldr r2, [pc, #128] @ (8001240 ) - 80011be: f443 6380 orr.w r3, r3, #1024 @ 0x400 - 80011c2: 6153 str r3, [r2, #20] + 8001130: b5b0 push {r4, r5, r7, lr} + 8001132: b096 sub sp, #88 @ 0x58 + 8001134: af00 add r7, sp, #0 /* USER CODE END 1 */ /* MCU Configuration--------------------------------------------------------*/ /* Reset of all peripherals, Initializes the Flash interface and the Systick. */ HAL_Init(); - 80011c4: f000 fd0c bl 8001be0 + 8001136: f000 fd79 bl 8001c2c /* USER CODE BEGIN Init */ /* USER CODE END Init */ /* Configure the system clock */ SystemClock_Config(); - 80011c8: f000 f844 bl 8001254 + 800113a: f000 f8b1 bl 80012a0 /* USER CODE BEGIN SysInit */ /* USER CODE END SysInit */ /* Initialize all configured peripherals */ MX_GPIO_Init(); - 80011cc: f7ff fd6c bl 8000ca8 + 800113e: f7ff fdb3 bl 8000ca8 MX_TIM1_Init(); - 80011d0: f000 fa8a bl 80016e8 + 8001142: f000 faf7 bl 8001734 MX_USART1_UART_Init(); - 80011d4: f000 fc68 bl 8001aa8 + 8001146: f000 fcd5 bl 8001af4 MX_SPI2_Init(); - 80011d8: f000 f8d0 bl 800137c + 800114a: f000 f93d bl 80013c8 MX_TIM3_Init(); - 80011dc: f000 fb3c bl 8001858 + 800114e: f000 fba9 bl 80018a4 MX_ADC2_Init(); - 80011e0: f7ff f988 bl 80004f4 + 8001152: f7ff f9cf bl 80004f4 MX_TIM5_Init(); - 80011e4: f000 fb84 bl 80018f0 + 8001156: f000 fbf1 bl 800193c MX_CAN2_Init(); - 80011e8: f7ff fa52 bl 8000690 + 800115a: f7ff fa99 bl 8000690 /* Initialize interrupts */ MX_NVIC_Init(); - 80011ec: f000 f8a4 bl 8001338 + 800115e: f000 f911 bl 8001384 + /* USER CODE BEGIN 2 */ + + // Настройка GPIO + RCC->AHB1ENR |= RCC_AHB1ENR_GPIOCEN; + 8001162: 4b47 ldr r3, [pc, #284] @ (8001280 ) + 8001164: 6b1b ldr r3, [r3, #48] @ 0x30 + 8001166: 4a46 ldr r2, [pc, #280] @ (8001280 ) + 8001168: f043 0304 orr.w r3, r3, #4 + 800116c: 6313 str r3, [r2, #48] @ 0x30 + GPIOC->MODER |= GPIO_MODER_MODE10_0 | GPIO_MODER_MODE11_0; + 800116e: 4b45 ldr r3, [pc, #276] @ (8001284 ) + 8001170: 681b ldr r3, [r3, #0] + 8001172: 4a44 ldr r2, [pc, #272] @ (8001284 ) + 8001174: f443 03a0 orr.w r3, r3, #5242880 @ 0x500000 + 8001178: 6013 str r3, [r2, #0] + GPIOC->ODR &= ~GPIO_ODR_OD11; + 800117a: 4b42 ldr r3, [pc, #264] @ (8001284 ) + 800117c: 695b ldr r3, [r3, #20] + 800117e: 4a41 ldr r2, [pc, #260] @ (8001284 ) + 8001180: f423 6300 bic.w r3, r3, #2048 @ 0x800 + 8001184: 6153 str r3, [r2, #20] + GPIOC->ODR |= GPIO_ODR_OD10; + 8001186: 4b3f ldr r3, [pc, #252] @ (8001284 ) + 8001188: 695b ldr r3, [r3, #20] + 800118a: 4a3e ldr r2, [pc, #248] @ (8001284 ) + 800118c: f443 6380 orr.w r3, r3, #1024 @ 0x400 + 8001190: 6153 str r3, [r2, #20] + + flash_record = load_params(); + 8001192: f7ff fd49 bl 8000c28 + 8001196: 4603 mov r3, r0 + 8001198: 4a3b ldr r2, [pc, #236] @ (8001288 ) + 800119a: 6013 str r3, [r2, #0] + if(flash_record[firmw].value == UPDATE_FLAG) { + 800119c: 4b3a ldr r3, [pc, #232] @ (8001288 ) + 800119e: 681b ldr r3, [r3, #0] + 80011a0: 3320 adds r3, #32 + 80011a2: 685b ldr r3, [r3, #4] + 80011a4: 4a39 ldr r2, [pc, #228] @ (800128c ) + 80011a6: 4293 cmp r3, r2 + 80011a8: d117 bne.n 80011da + fw_update = true; + 80011aa: 4b39 ldr r3, [pc, #228] @ (8001290 ) + 80011ac: 2201 movs r2, #1 + 80011ae: 701a strb r2, [r3, #0] + for(int i = 0; i < 5;i++){ + 80011b0: 2300 movs r3, #0 + 80011b2: 657b str r3, [r7, #84] @ 0x54 + 80011b4: e00b b.n 80011ce + GPIOC->ODR ^= GPIO_ODR_OD10; // Indecate message + 80011b6: 4b33 ldr r3, [pc, #204] @ (8001284 ) + 80011b8: 695b ldr r3, [r3, #20] + 80011ba: 4a32 ldr r2, [pc, #200] @ (8001284 ) + 80011bc: f483 6380 eor.w r3, r3, #1024 @ 0x400 + 80011c0: 6153 str r3, [r2, #20] + HAL_Delay(100); + 80011c2: 2064 movs r0, #100 @ 0x64 + 80011c4: f000 fdaa bl 8001d1c + for(int i = 0; i < 5;i++){ + 80011c8: 6d7b ldr r3, [r7, #84] @ 0x54 + 80011ca: 3301 adds r3, #1 + 80011cc: 657b str r3, [r7, #84] @ 0x54 + 80011ce: 6d7b ldr r3, [r7, #84] @ 0x54 + 80011d0: 2b04 cmp r3, #4 + 80011d2: ddf0 ble.n 80011b6 + } + // write_param(firmw,0); //reset flasg + erase_flash_pages(); + 80011d4: f7ff fd0e bl 8000bf4 + 80011d8: e00a b.n 80011f0 + } + else{ + // for st-link update, because he doesnt reset flag_update + if(is_app_valid()) jump_to_app(); //firmware exist + 80011da: f7ff ff51 bl 8001080 + 80011de: 4603 mov r3, r0 + 80011e0: 2b00 cmp r3, #0 + 80011e2: d002 beq.n 80011ea + 80011e4: f7ff ff16 bl 8001014 + 80011e8: e002 b.n 80011f0 + else fw_update = true; //firmware doesnt exist, but we in bootloader + 80011ea: 4b29 ldr r3, [pc, #164] @ (8001290 ) + 80011ec: 2201 movs r2, #1 + 80011ee: 701a strb r2, [r3, #0] + } + + + CAN_FilterTypeDef can_filter = { + 80011f0: 4b28 ldr r3, [pc, #160] @ (8001294 ) + 80011f2: f107 0428 add.w r4, r7, #40 @ 0x28 + 80011f6: 461d mov r5, r3 + 80011f8: cd0f ldmia r5!, {r0, r1, r2, r3} + 80011fa: c40f stmia r4!, {r0, r1, r2, r3} + 80011fc: cd0f ldmia r5!, {r0, r1, r2, r3} + 80011fe: c40f stmia r4!, {r0, r1, r2, r3} + 8001200: e895 0003 ldmia.w r5, {r0, r1} + 8001204: e884 0003 stmia.w r4, {r0, r1} + .FilterFIFOAssignment = CAN_RX_FIFO0, + .FilterActivation = ENABLE, + .SlaveStartFilterBank = 14 + }; + + if (HAL_CAN_ConfigFilter(&hcan2, &can_filter) != HAL_OK) { + 8001208: f107 0328 add.w r3, r7, #40 @ 0x28 + 800120c: 4619 mov r1, r3 + 800120e: 4822 ldr r0, [pc, #136] @ (8001298 ) + 8001210: f001 fa4e bl 80026b0 + 8001214: 4603 mov r3, r0 + 8001216: 2b00 cmp r3, #0 + 8001218: d001 beq.n 800121e + Error_Handler(); + 800121a: f000 f8ce bl 80013ba + } + + if (HAL_CAN_Start(&hcan2) != HAL_OK) { + 800121e: 481e ldr r0, [pc, #120] @ (8001298 ) + 8001220: f001 fb26 bl 8002870 + 8001224: 4603 mov r3, r0 + 8001226: 2b00 cmp r3, #0 + 8001228: d001 beq.n 800122e + Error_Handler(); + 800122a: f000 f8c6 bl 80013ba + } + + GPIOC->ODR |= GPIO_ODR_OD10; + 800122e: 4b15 ldr r3, [pc, #84] @ (8001284 ) + 8001230: 695b ldr r3, [r3, #20] + 8001232: 4a14 ldr r2, [pc, #80] @ (8001284 ) + 8001234: f443 6380 orr.w r3, r3, #1024 @ 0x400 + 8001238: 6153 str r3, [r2, #20] /* USER CODE END 2 */ /* Infinite loop */ /* USER CODE BEGIN WHILE */ while (1) { - if(fw_update) { - 80011f0: 4b16 ldr r3, [pc, #88] @ (800124c ) - 80011f2: 781b ldrb r3, [r3, #0] - 80011f4: b2db uxtb r3, r3 - 80011f6: 2b00 cmp r3, #0 - 80011f8: d0fa beq.n 80011f0 - CAN_RxHeaderTypeDef rx_header; - uint8_t rx_data[8]; - HAL_StatusTypeDef status; + if (fw_update) { + 800123a: 4b15 ldr r3, [pc, #84] @ (8001290 ) + 800123c: 781b ldrb r3, [r3, #0] + 800123e: b2db uxtb r3, r3 + 8001240: 2b00 cmp r3, #0 + 8001242: d0fa beq.n 800123a + uint32_t rf0r = CAN2->RF0R; + 8001244: 4b15 ldr r3, [pc, #84] @ (800129c ) + 8001246: 68db ldr r3, [r3, #12] + 8001248: 653b str r3, [r7, #80] @ 0x50 - // Check message - if(HAL_CAN_GetRxFifoFillLevel(&hcan2, CAN_RX_FIFO0) > 0) { - 80011fa: 2100 movs r1, #0 - 80011fc: 4814 ldr r0, [pc, #80] @ (8001250 ) - 80011fe: f001 fbec bl 80029da - 8001202: 4603 mov r3, r0 - 8001204: 2b00 cmp r3, #0 - 8001206: d0f3 beq.n 80011f0 - status = HAL_CAN_GetRxMessage(&hcan2, CAN_RX_FIFO0, &rx_header, rx_data); - 8001208: 1d3b adds r3, r7, #4 - 800120a: f107 020c add.w r2, r7, #12 - 800120e: 2100 movs r1, #0 - 8001210: 480f ldr r0, [pc, #60] @ (8001250 ) - 8001212: f001 fac0 bl 8002796 - 8001216: 4603 mov r3, r0 - 8001218: f887 302b strb.w r3, [r7, #43] @ 0x2b + // Check count of FIFO + if ((rf0r & CAN_RF0R_FMP0) > 0) { + 800124a: 6d3b ldr r3, [r7, #80] @ 0x50 + 800124c: f003 0303 and.w r3, r3, #3 + 8001250: 2b00 cmp r3, #0 + 8001252: d010 beq.n 8001276 + CAN_RxHeaderTypeDef rx_header; + uint8_t rx_data[8]; - if(status == HAL_OK) { - 800121c: f897 302b ldrb.w r3, [r7, #43] @ 0x2b - 8001220: 2b00 cmp r3, #0 - 8001222: d1e5 bne.n 80011f0 - // check message IDE standart - if(rx_header.IDE == CAN_ID_STD) { - 8001224: 697b ldr r3, [r7, #20] - 8001226: 2b00 cmp r3, #0 - 8001228: d1e2 bne.n 80011f0 - process_can_message(&rx_header, rx_data); - 800122a: 1d3a adds r2, r7, #4 - 800122c: f107 030c add.w r3, r7, #12 - 8001230: 4611 mov r1, r2 - 8001232: 4618 mov r0, r3 - 8001234: f7ff fe50 bl 8000ed8 - if(fw_update) { - 8001238: e7da b.n 80011f0 - 800123a: bf00 nop - 800123c: 40023800 .word 0x40023800 - 8001240: 40020800 .word 0x40020800 - 8001244: 200000d8 .word 0x200000d8 - 8001248: deadbeef .word 0xdeadbeef - 800124c: 200000c8 .word 0x200000c8 - 8001250: 20000078 .word 0x20000078 -08001254 : + if (HAL_CAN_GetRxMessage(&hcan2, CAN_RX_FIFO0, &rx_header, rx_data) == HAL_OK) { + 8001254: 1d3b adds r3, r7, #4 + 8001256: f107 020c add.w r2, r7, #12 + 800125a: 2100 movs r1, #0 + 800125c: 480e ldr r0, [pc, #56] @ (8001298 ) + 800125e: f001 fc1b bl 8002a98 + 8001262: 4603 mov r3, r0 + 8001264: 2b00 cmp r3, #0 + 8001266: d106 bne.n 8001276 + process_can_message(&rx_header, rx_data); + 8001268: 1d3a adds r2, r7, #4 + 800126a: f107 030c add.w r3, r7, #12 + 800126e: 4611 mov r1, r2 + 8001270: 4618 mov r0, r3 + 8001272: f7ff fe31 bl 8000ed8 + } + } + HAL_Delay(1); + 8001276: 2001 movs r0, #1 + 8001278: f000 fd50 bl 8001d1c + if (fw_update) { + 800127c: e7dd b.n 800123a + 800127e: bf00 nop + 8001280: 40023800 .word 0x40023800 + 8001284: 40020800 .word 0x40020800 + 8001288: 200000d4 .word 0x200000d4 + 800128c: deadbeef .word 0xdeadbeef + 8001290: 200000c8 .word 0x200000c8 + 8001294: 08005ee4 .word 0x08005ee4 + 8001298: 20000078 .word 0x20000078 + 800129c: 40006800 .word 0x40006800 + +080012a0 : /** * @brief System Clock Configuration * @retval None */ void SystemClock_Config(void) { - 8001254: b580 push {r7, lr} - 8001256: b094 sub sp, #80 @ 0x50 - 8001258: af00 add r7, sp, #0 + 80012a0: b580 push {r7, lr} + 80012a2: b094 sub sp, #80 @ 0x50 + 80012a4: af00 add r7, sp, #0 RCC_OscInitTypeDef RCC_OscInitStruct = {0}; - 800125a: f107 031c add.w r3, r7, #28 - 800125e: 2234 movs r2, #52 @ 0x34 - 8001260: 2100 movs r1, #0 - 8001262: 4618 mov r0, r3 - 8001264: f004 fba8 bl 80059b8 + 80012a6: f107 031c add.w r3, r7, #28 + 80012aa: 2234 movs r2, #52 @ 0x34 + 80012ac: 2100 movs r1, #0 + 80012ae: 4618 mov r0, r3 + 80012b0: f004 fdd2 bl 8005e58 RCC_ClkInitTypeDef RCC_ClkInitStruct = {0}; - 8001268: f107 0308 add.w r3, r7, #8 - 800126c: 2200 movs r2, #0 - 800126e: 601a str r2, [r3, #0] - 8001270: 605a str r2, [r3, #4] - 8001272: 609a str r2, [r3, #8] - 8001274: 60da str r2, [r3, #12] - 8001276: 611a str r2, [r3, #16] + 80012b4: f107 0308 add.w r3, r7, #8 + 80012b8: 2200 movs r2, #0 + 80012ba: 601a str r2, [r3, #0] + 80012bc: 605a str r2, [r3, #4] + 80012be: 609a str r2, [r3, #8] + 80012c0: 60da str r2, [r3, #12] + 80012c2: 611a str r2, [r3, #16] /** Configure the main internal regulator output voltage */ __HAL_RCC_PWR_CLK_ENABLE(); - 8001278: 2300 movs r3, #0 - 800127a: 607b str r3, [r7, #4] - 800127c: 4b2c ldr r3, [pc, #176] @ (8001330 ) - 800127e: 6c1b ldr r3, [r3, #64] @ 0x40 - 8001280: 4a2b ldr r2, [pc, #172] @ (8001330 ) - 8001282: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 - 8001286: 6413 str r3, [r2, #64] @ 0x40 - 8001288: 4b29 ldr r3, [pc, #164] @ (8001330 ) - 800128a: 6c1b ldr r3, [r3, #64] @ 0x40 - 800128c: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 - 8001290: 607b str r3, [r7, #4] - 8001292: 687b ldr r3, [r7, #4] + 80012c4: 2300 movs r3, #0 + 80012c6: 607b str r3, [r7, #4] + 80012c8: 4b2c ldr r3, [pc, #176] @ (800137c ) + 80012ca: 6c1b ldr r3, [r3, #64] @ 0x40 + 80012cc: 4a2b ldr r2, [pc, #172] @ (800137c ) + 80012ce: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 + 80012d2: 6413 str r3, [r2, #64] @ 0x40 + 80012d4: 4b29 ldr r3, [pc, #164] @ (800137c ) + 80012d6: 6c1b ldr r3, [r3, #64] @ 0x40 + 80012d8: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 + 80012dc: 607b str r3, [r7, #4] + 80012de: 687b ldr r3, [r7, #4] __HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE1); - 8001294: 2300 movs r3, #0 - 8001296: 603b str r3, [r7, #0] - 8001298: 4b26 ldr r3, [pc, #152] @ (8001334 ) - 800129a: 681b ldr r3, [r3, #0] - 800129c: 4a25 ldr r2, [pc, #148] @ (8001334 ) - 800129e: f443 4340 orr.w r3, r3, #49152 @ 0xc000 - 80012a2: 6013 str r3, [r2, #0] - 80012a4: 4b23 ldr r3, [pc, #140] @ (8001334 ) - 80012a6: 681b ldr r3, [r3, #0] - 80012a8: f403 4340 and.w r3, r3, #49152 @ 0xc000 - 80012ac: 603b str r3, [r7, #0] - 80012ae: 683b ldr r3, [r7, #0] + 80012e0: 2300 movs r3, #0 + 80012e2: 603b str r3, [r7, #0] + 80012e4: 4b26 ldr r3, [pc, #152] @ (8001380 ) + 80012e6: 681b ldr r3, [r3, #0] + 80012e8: 4a25 ldr r2, [pc, #148] @ (8001380 ) + 80012ea: f443 4340 orr.w r3, r3, #49152 @ 0xc000 + 80012ee: 6013 str r3, [r2, #0] + 80012f0: 4b23 ldr r3, [pc, #140] @ (8001380 ) + 80012f2: 681b ldr r3, [r3, #0] + 80012f4: f403 4340 and.w r3, r3, #49152 @ 0xc000 + 80012f8: 603b str r3, [r7, #0] + 80012fa: 683b ldr r3, [r7, #0] /** Initializes the RCC Oscillators according to the specified parameters * in the RCC_OscInitTypeDef structure. */ RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI; - 80012b0: 2302 movs r3, #2 - 80012b2: 61fb str r3, [r7, #28] + 80012fc: 2302 movs r3, #2 + 80012fe: 61fb str r3, [r7, #28] RCC_OscInitStruct.HSIState = RCC_HSI_ON; - 80012b4: 2301 movs r3, #1 - 80012b6: 62bb str r3, [r7, #40] @ 0x28 + 8001300: 2301 movs r3, #1 + 8001302: 62bb str r3, [r7, #40] @ 0x28 RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT; - 80012b8: 2310 movs r3, #16 - 80012ba: 62fb str r3, [r7, #44] @ 0x2c + 8001304: 2310 movs r3, #16 + 8001306: 62fb str r3, [r7, #44] @ 0x2c RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON; - 80012bc: 2302 movs r3, #2 - 80012be: 637b str r3, [r7, #52] @ 0x34 + 8001308: 2302 movs r3, #2 + 800130a: 637b str r3, [r7, #52] @ 0x34 RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSI; - 80012c0: 2300 movs r3, #0 - 80012c2: 63bb str r3, [r7, #56] @ 0x38 + 800130c: 2300 movs r3, #0 + 800130e: 63bb str r3, [r7, #56] @ 0x38 RCC_OscInitStruct.PLL.PLLM = 8; - 80012c4: 2308 movs r3, #8 - 80012c6: 63fb str r3, [r7, #60] @ 0x3c + 8001310: 2308 movs r3, #8 + 8001312: 63fb str r3, [r7, #60] @ 0x3c RCC_OscInitStruct.PLL.PLLN = 180; - 80012c8: 23b4 movs r3, #180 @ 0xb4 - 80012ca: 643b str r3, [r7, #64] @ 0x40 + 8001314: 23b4 movs r3, #180 @ 0xb4 + 8001316: 643b str r3, [r7, #64] @ 0x40 RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV2; - 80012cc: 2302 movs r3, #2 - 80012ce: 647b str r3, [r7, #68] @ 0x44 + 8001318: 2302 movs r3, #2 + 800131a: 647b str r3, [r7, #68] @ 0x44 RCC_OscInitStruct.PLL.PLLQ = 2; - 80012d0: 2302 movs r3, #2 - 80012d2: 64bb str r3, [r7, #72] @ 0x48 + 800131c: 2302 movs r3, #2 + 800131e: 64bb str r3, [r7, #72] @ 0x48 RCC_OscInitStruct.PLL.PLLR = 2; - 80012d4: 2302 movs r3, #2 - 80012d6: 64fb str r3, [r7, #76] @ 0x4c + 8001320: 2302 movs r3, #2 + 8001322: 64fb str r3, [r7, #76] @ 0x4c if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) - 80012d8: f107 031c add.w r3, r7, #28 - 80012dc: 4618 mov r0, r3 - 80012de: f002 fcd9 bl 8003c94 - 80012e2: 4603 mov r3, r0 - 80012e4: 2b00 cmp r3, #0 - 80012e6: d001 beq.n 80012ec + 8001324: f107 031c add.w r3, r7, #28 + 8001328: 4618 mov r0, r3 + 800132a: f002 ff03 bl 8004134 + 800132e: 4603 mov r3, r0 + 8001330: 2b00 cmp r3, #0 + 8001332: d001 beq.n 8001338 { Error_Handler(); - 80012e8: f000 f841 bl 800136e + 8001334: f000 f841 bl 80013ba } /** Activate the Over-Drive mode */ if (HAL_PWREx_EnableOverDrive() != HAL_OK) - 80012ec: f002 f906 bl 80034fc - 80012f0: 4603 mov r3, r0 - 80012f2: 2b00 cmp r3, #0 - 80012f4: d001 beq.n 80012fa + 8001338: f002 fa38 bl 80037ac + 800133c: 4603 mov r3, r0 + 800133e: 2b00 cmp r3, #0 + 8001340: d001 beq.n 8001346 { Error_Handler(); - 80012f6: f000 f83a bl 800136e + 8001342: f000 f83a bl 80013ba } /** Initializes the CPU, AHB and APB buses clocks */ RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK - 80012fa: 230f movs r3, #15 - 80012fc: 60bb str r3, [r7, #8] + 8001346: 230f movs r3, #15 + 8001348: 60bb str r3, [r7, #8] |RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2; RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK; - 80012fe: 2302 movs r3, #2 - 8001300: 60fb str r3, [r7, #12] + 800134a: 2302 movs r3, #2 + 800134c: 60fb str r3, [r7, #12] RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1; - 8001302: 2300 movs r3, #0 - 8001304: 613b str r3, [r7, #16] + 800134e: 2300 movs r3, #0 + 8001350: 613b str r3, [r7, #16] RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV4; - 8001306: f44f 53a0 mov.w r3, #5120 @ 0x1400 - 800130a: 617b str r3, [r7, #20] + 8001352: f44f 53a0 mov.w r3, #5120 @ 0x1400 + 8001356: 617b str r3, [r7, #20] RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV2; - 800130c: f44f 5380 mov.w r3, #4096 @ 0x1000 - 8001310: 61bb str r3, [r7, #24] + 8001358: f44f 5380 mov.w r3, #4096 @ 0x1000 + 800135c: 61bb str r3, [r7, #24] if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_5) != HAL_OK) - 8001312: f107 0308 add.w r3, r7, #8 - 8001316: 2105 movs r1, #5 - 8001318: 4618 mov r0, r3 - 800131a: f002 f93f bl 800359c - 800131e: 4603 mov r3, r0 - 8001320: 2b00 cmp r3, #0 - 8001322: d001 beq.n 8001328 + 800135e: f107 0308 add.w r3, r7, #8 + 8001362: 2105 movs r1, #5 + 8001364: 4618 mov r0, r3 + 8001366: f002 fa71 bl 800384c + 800136a: 4603 mov r3, r0 + 800136c: 2b00 cmp r3, #0 + 800136e: d001 beq.n 8001374 { Error_Handler(); - 8001324: f000 f823 bl 800136e + 8001370: f000 f823 bl 80013ba } } - 8001328: bf00 nop - 800132a: 3750 adds r7, #80 @ 0x50 - 800132c: 46bd mov sp, r7 - 800132e: bd80 pop {r7, pc} - 8001330: 40023800 .word 0x40023800 - 8001334: 40007000 .word 0x40007000 + 8001374: bf00 nop + 8001376: 3750 adds r7, #80 @ 0x50 + 8001378: 46bd mov sp, r7 + 800137a: bd80 pop {r7, pc} + 800137c: 40023800 .word 0x40023800 + 8001380: 40007000 .word 0x40007000 -08001338 : +08001384 : /** * @brief NVIC Configuration. * @retval None */ static void MX_NVIC_Init(void) { - 8001338: b580 push {r7, lr} - 800133a: af00 add r7, sp, #0 + 8001384: b580 push {r7, lr} + 8001386: af00 add r7, sp, #0 /* ADC_IRQn interrupt configuration */ HAL_NVIC_SetPriority(ADC_IRQn, 5, 0); - 800133c: 2200 movs r2, #0 - 800133e: 2105 movs r1, #5 - 8001340: 2012 movs r0, #18 - 8001342: f001 fc2b bl 8002b9c + 8001388: 2200 movs r2, #0 + 800138a: 2105 movs r1, #5 + 800138c: 2012 movs r0, #18 + 800138e: f001 fd5d bl 8002e4c HAL_NVIC_EnableIRQ(ADC_IRQn); - 8001346: 2012 movs r0, #18 - 8001348: f001 fc44 bl 8002bd4 + 8001392: 2012 movs r0, #18 + 8001394: f001 fd76 bl 8002e84 } - 800134c: bf00 nop - 800134e: bd80 pop {r7, pc} + 8001398: bf00 nop + 800139a: bd80 pop {r7, pc} -08001350 : +0800139c : * a global variable "uwTick" used as application time base. * @param htim : TIM handle * @retval None */ void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim) { - 8001350: b580 push {r7, lr} - 8001352: b082 sub sp, #8 - 8001354: af00 add r7, sp, #0 - 8001356: 6078 str r0, [r7, #4] + 800139c: b580 push {r7, lr} + 800139e: b082 sub sp, #8 + 80013a0: af00 add r7, sp, #0 + 80013a2: 6078 str r0, [r7, #4] /* USER CODE BEGIN Callback 0 */ /* USER CODE END Callback 0 */ if (htim->Instance == TIM2) { - 8001358: 687b ldr r3, [r7, #4] - 800135a: 681b ldr r3, [r3, #0] - 800135c: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 - 8001360: d101 bne.n 8001366 + 80013a4: 687b ldr r3, [r7, #4] + 80013a6: 681b ldr r3, [r3, #0] + 80013a8: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 + 80013ac: d101 bne.n 80013b2 HAL_IncTick(); - 8001362: f000 fc5f bl 8001c24 + 80013ae: f000 fc95 bl 8001cdc } /* USER CODE BEGIN Callback 1 */ /* USER CODE END Callback 1 */ } - 8001366: bf00 nop - 8001368: 3708 adds r7, #8 - 800136a: 46bd mov sp, r7 - 800136c: bd80 pop {r7, pc} + 80013b2: bf00 nop + 80013b4: 3708 adds r7, #8 + 80013b6: 46bd mov sp, r7 + 80013b8: bd80 pop {r7, pc} -0800136e : +080013ba : /** * @brief This function is executed in case of error occurrence. * @retval None */ void Error_Handler(void) { - 800136e: b480 push {r7} - 8001370: af00 add r7, sp, #0 + 80013ba: b480 push {r7} + 80013bc: af00 add r7, sp, #0 __ASM volatile ("cpsid i" : : : "memory"); - 8001372: b672 cpsid i + 80013be: b672 cpsid i } - 8001374: bf00 nop + 80013c0: 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) - 8001376: bf00 nop - 8001378: e7fd b.n 8001376 + 80013c2: bf00 nop + 80013c4: e7fd b.n 80013c2 ... -0800137c : +080013c8 : SPI_HandleTypeDef hspi2; /* SPI2 init function */ void MX_SPI2_Init(void) { - 800137c: b580 push {r7, lr} - 800137e: af00 add r7, sp, #0 + 80013c8: b580 push {r7, lr} + 80013ca: af00 add r7, sp, #0 /* USER CODE END SPI2_Init 0 */ /* USER CODE BEGIN SPI2_Init 1 */ /* USER CODE END SPI2_Init 1 */ hspi2.Instance = SPI2; - 8001380: 4b18 ldr r3, [pc, #96] @ (80013e4 ) - 8001382: 4a19 ldr r2, [pc, #100] @ (80013e8 ) - 8001384: 601a str r2, [r3, #0] + 80013cc: 4b18 ldr r3, [pc, #96] @ (8001430 ) + 80013ce: 4a19 ldr r2, [pc, #100] @ (8001434 ) + 80013d0: 601a str r2, [r3, #0] hspi2.Init.Mode = SPI_MODE_MASTER; - 8001386: 4b17 ldr r3, [pc, #92] @ (80013e4 ) - 8001388: f44f 7282 mov.w r2, #260 @ 0x104 - 800138c: 605a str r2, [r3, #4] + 80013d2: 4b17 ldr r3, [pc, #92] @ (8001430 ) + 80013d4: f44f 7282 mov.w r2, #260 @ 0x104 + 80013d8: 605a str r2, [r3, #4] hspi2.Init.Direction = SPI_DIRECTION_2LINES; - 800138e: 4b15 ldr r3, [pc, #84] @ (80013e4 ) - 8001390: 2200 movs r2, #0 - 8001392: 609a str r2, [r3, #8] + 80013da: 4b15 ldr r3, [pc, #84] @ (8001430 ) + 80013dc: 2200 movs r2, #0 + 80013de: 609a str r2, [r3, #8] hspi2.Init.DataSize = SPI_DATASIZE_16BIT; - 8001394: 4b13 ldr r3, [pc, #76] @ (80013e4 ) - 8001396: f44f 6200 mov.w r2, #2048 @ 0x800 - 800139a: 60da str r2, [r3, #12] + 80013e0: 4b13 ldr r3, [pc, #76] @ (8001430 ) + 80013e2: f44f 6200 mov.w r2, #2048 @ 0x800 + 80013e6: 60da str r2, [r3, #12] hspi2.Init.CLKPolarity = SPI_POLARITY_LOW; - 800139c: 4b11 ldr r3, [pc, #68] @ (80013e4 ) - 800139e: 2200 movs r2, #0 - 80013a0: 611a str r2, [r3, #16] + 80013e8: 4b11 ldr r3, [pc, #68] @ (8001430 ) + 80013ea: 2200 movs r2, #0 + 80013ec: 611a str r2, [r3, #16] hspi2.Init.CLKPhase = SPI_PHASE_1EDGE; - 80013a2: 4b10 ldr r3, [pc, #64] @ (80013e4 ) - 80013a4: 2200 movs r2, #0 - 80013a6: 615a str r2, [r3, #20] + 80013ee: 4b10 ldr r3, [pc, #64] @ (8001430 ) + 80013f0: 2200 movs r2, #0 + 80013f2: 615a str r2, [r3, #20] hspi2.Init.NSS = SPI_NSS_SOFT; - 80013a8: 4b0e ldr r3, [pc, #56] @ (80013e4 ) - 80013aa: f44f 7200 mov.w r2, #512 @ 0x200 - 80013ae: 619a str r2, [r3, #24] + 80013f4: 4b0e ldr r3, [pc, #56] @ (8001430 ) + 80013f6: f44f 7200 mov.w r2, #512 @ 0x200 + 80013fa: 619a str r2, [r3, #24] hspi2.Init.BaudRatePrescaler = SPI_BAUDRATEPRESCALER_64; - 80013b0: 4b0c ldr r3, [pc, #48] @ (80013e4 ) - 80013b2: 2228 movs r2, #40 @ 0x28 - 80013b4: 61da str r2, [r3, #28] + 80013fc: 4b0c ldr r3, [pc, #48] @ (8001430 ) + 80013fe: 2228 movs r2, #40 @ 0x28 + 8001400: 61da str r2, [r3, #28] hspi2.Init.FirstBit = SPI_FIRSTBIT_MSB; - 80013b6: 4b0b ldr r3, [pc, #44] @ (80013e4 ) - 80013b8: 2200 movs r2, #0 - 80013ba: 621a str r2, [r3, #32] + 8001402: 4b0b ldr r3, [pc, #44] @ (8001430 ) + 8001404: 2200 movs r2, #0 + 8001406: 621a str r2, [r3, #32] hspi2.Init.TIMode = SPI_TIMODE_DISABLE; - 80013bc: 4b09 ldr r3, [pc, #36] @ (80013e4 ) - 80013be: 2200 movs r2, #0 - 80013c0: 625a str r2, [r3, #36] @ 0x24 + 8001408: 4b09 ldr r3, [pc, #36] @ (8001430 ) + 800140a: 2200 movs r2, #0 + 800140c: 625a str r2, [r3, #36] @ 0x24 hspi2.Init.CRCCalculation = SPI_CRCCALCULATION_DISABLE; - 80013c2: 4b08 ldr r3, [pc, #32] @ (80013e4 ) - 80013c4: 2200 movs r2, #0 - 80013c6: 629a str r2, [r3, #40] @ 0x28 + 800140e: 4b08 ldr r3, [pc, #32] @ (8001430 ) + 8001410: 2200 movs r2, #0 + 8001412: 629a str r2, [r3, #40] @ 0x28 hspi2.Init.CRCPolynomial = 10; - 80013c8: 4b06 ldr r3, [pc, #24] @ (80013e4 ) - 80013ca: 220a movs r2, #10 - 80013cc: 62da str r2, [r3, #44] @ 0x2c + 8001414: 4b06 ldr r3, [pc, #24] @ (8001430 ) + 8001416: 220a movs r2, #10 + 8001418: 62da str r2, [r3, #44] @ 0x2c if (HAL_SPI_Init(&hspi2) != HAL_OK) - 80013ce: 4805 ldr r0, [pc, #20] @ (80013e4 ) - 80013d0: f002 fefe bl 80041d0 - 80013d4: 4603 mov r3, r0 - 80013d6: 2b00 cmp r3, #0 - 80013d8: d001 beq.n 80013de + 800141a: 4805 ldr r0, [pc, #20] @ (8001430 ) + 800141c: f003 f928 bl 8004670 + 8001420: 4603 mov r3, r0 + 8001422: 2b00 cmp r3, #0 + 8001424: d001 beq.n 800142a { Error_Handler(); - 80013da: f7ff ffc8 bl 800136e + 8001426: f7ff ffc8 bl 80013ba } /* USER CODE BEGIN SPI2_Init 2 */ /* USER CODE END SPI2_Init 2 */ } - 80013de: bf00 nop - 80013e0: bd80 pop {r7, pc} - 80013e2: bf00 nop - 80013e4: 200000e8 .word 0x200000e8 - 80013e8: 40003800 .word 0x40003800 + 800142a: bf00 nop + 800142c: bd80 pop {r7, pc} + 800142e: bf00 nop + 8001430: 200000e4 .word 0x200000e4 + 8001434: 40003800 .word 0x40003800 -080013ec : +08001438 : void HAL_SPI_MspInit(SPI_HandleTypeDef* spiHandle) { - 80013ec: b580 push {r7, lr} - 80013ee: b08a sub sp, #40 @ 0x28 - 80013f0: af00 add r7, sp, #0 - 80013f2: 6078 str r0, [r7, #4] + 8001438: b580 push {r7, lr} + 800143a: b08a sub sp, #40 @ 0x28 + 800143c: af00 add r7, sp, #0 + 800143e: 6078 str r0, [r7, #4] GPIO_InitTypeDef GPIO_InitStruct = {0}; - 80013f4: f107 0314 add.w r3, r7, #20 - 80013f8: 2200 movs r2, #0 - 80013fa: 601a str r2, [r3, #0] - 80013fc: 605a str r2, [r3, #4] - 80013fe: 609a str r2, [r3, #8] - 8001400: 60da str r2, [r3, #12] - 8001402: 611a str r2, [r3, #16] + 8001440: f107 0314 add.w r3, r7, #20 + 8001444: 2200 movs r2, #0 + 8001446: 601a str r2, [r3, #0] + 8001448: 605a str r2, [r3, #4] + 800144a: 609a str r2, [r3, #8] + 800144c: 60da str r2, [r3, #12] + 800144e: 611a str r2, [r3, #16] if(spiHandle->Instance==SPI2) - 8001404: 687b ldr r3, [r7, #4] - 8001406: 681b ldr r3, [r3, #0] - 8001408: 4a2c ldr r2, [pc, #176] @ (80014bc ) - 800140a: 4293 cmp r3, r2 - 800140c: d152 bne.n 80014b4 + 8001450: 687b ldr r3, [r7, #4] + 8001452: 681b ldr r3, [r3, #0] + 8001454: 4a2c ldr r2, [pc, #176] @ (8001508 ) + 8001456: 4293 cmp r3, r2 + 8001458: d152 bne.n 8001500 { /* USER CODE BEGIN SPI2_MspInit 0 */ /* USER CODE END SPI2_MspInit 0 */ /* SPI2 clock enable */ __HAL_RCC_SPI2_CLK_ENABLE(); - 800140e: 2300 movs r3, #0 - 8001410: 613b str r3, [r7, #16] - 8001412: 4b2b ldr r3, [pc, #172] @ (80014c0 ) - 8001414: 6c1b ldr r3, [r3, #64] @ 0x40 - 8001416: 4a2a ldr r2, [pc, #168] @ (80014c0 ) - 8001418: f443 4380 orr.w r3, r3, #16384 @ 0x4000 - 800141c: 6413 str r3, [r2, #64] @ 0x40 - 800141e: 4b28 ldr r3, [pc, #160] @ (80014c0 ) - 8001420: 6c1b ldr r3, [r3, #64] @ 0x40 - 8001422: f403 4380 and.w r3, r3, #16384 @ 0x4000 - 8001426: 613b str r3, [r7, #16] - 8001428: 693b ldr r3, [r7, #16] + 800145a: 2300 movs r3, #0 + 800145c: 613b str r3, [r7, #16] + 800145e: 4b2b ldr r3, [pc, #172] @ (800150c ) + 8001460: 6c1b ldr r3, [r3, #64] @ 0x40 + 8001462: 4a2a ldr r2, [pc, #168] @ (800150c ) + 8001464: f443 4380 orr.w r3, r3, #16384 @ 0x4000 + 8001468: 6413 str r3, [r2, #64] @ 0x40 + 800146a: 4b28 ldr r3, [pc, #160] @ (800150c ) + 800146c: 6c1b ldr r3, [r3, #64] @ 0x40 + 800146e: f403 4380 and.w r3, r3, #16384 @ 0x4000 + 8001472: 613b str r3, [r7, #16] + 8001474: 693b ldr r3, [r7, #16] __HAL_RCC_GPIOC_CLK_ENABLE(); - 800142a: 2300 movs r3, #0 - 800142c: 60fb str r3, [r7, #12] - 800142e: 4b24 ldr r3, [pc, #144] @ (80014c0 ) - 8001430: 6b1b ldr r3, [r3, #48] @ 0x30 - 8001432: 4a23 ldr r2, [pc, #140] @ (80014c0 ) - 8001434: f043 0304 orr.w r3, r3, #4 - 8001438: 6313 str r3, [r2, #48] @ 0x30 - 800143a: 4b21 ldr r3, [pc, #132] @ (80014c0 ) - 800143c: 6b1b ldr r3, [r3, #48] @ 0x30 - 800143e: f003 0304 and.w r3, r3, #4 - 8001442: 60fb str r3, [r7, #12] - 8001444: 68fb ldr r3, [r7, #12] + 8001476: 2300 movs r3, #0 + 8001478: 60fb str r3, [r7, #12] + 800147a: 4b24 ldr r3, [pc, #144] @ (800150c ) + 800147c: 6b1b ldr r3, [r3, #48] @ 0x30 + 800147e: 4a23 ldr r2, [pc, #140] @ (800150c ) + 8001480: f043 0304 orr.w r3, r3, #4 + 8001484: 6313 str r3, [r2, #48] @ 0x30 + 8001486: 4b21 ldr r3, [pc, #132] @ (800150c ) + 8001488: 6b1b ldr r3, [r3, #48] @ 0x30 + 800148a: f003 0304 and.w r3, r3, #4 + 800148e: 60fb str r3, [r7, #12] + 8001490: 68fb ldr r3, [r7, #12] __HAL_RCC_GPIOB_CLK_ENABLE(); - 8001446: 2300 movs r3, #0 - 8001448: 60bb str r3, [r7, #8] - 800144a: 4b1d ldr r3, [pc, #116] @ (80014c0 ) - 800144c: 6b1b ldr r3, [r3, #48] @ 0x30 - 800144e: 4a1c ldr r2, [pc, #112] @ (80014c0 ) - 8001450: f043 0302 orr.w r3, r3, #2 - 8001454: 6313 str r3, [r2, #48] @ 0x30 - 8001456: 4b1a ldr r3, [pc, #104] @ (80014c0 ) - 8001458: 6b1b ldr r3, [r3, #48] @ 0x30 - 800145a: f003 0302 and.w r3, r3, #2 - 800145e: 60bb str r3, [r7, #8] - 8001460: 68bb ldr r3, [r7, #8] + 8001492: 2300 movs r3, #0 + 8001494: 60bb str r3, [r7, #8] + 8001496: 4b1d ldr r3, [pc, #116] @ (800150c ) + 8001498: 6b1b ldr r3, [r3, #48] @ 0x30 + 800149a: 4a1c ldr r2, [pc, #112] @ (800150c ) + 800149c: f043 0302 orr.w r3, r3, #2 + 80014a0: 6313 str r3, [r2, #48] @ 0x30 + 80014a2: 4b1a ldr r3, [pc, #104] @ (800150c ) + 80014a4: 6b1b ldr r3, [r3, #48] @ 0x30 + 80014a6: f003 0302 and.w r3, r3, #2 + 80014aa: 60bb str r3, [r7, #8] + 80014ac: 68bb ldr r3, [r7, #8] /**SPI2 GPIO Configuration PC1 ------> SPI2_MOSI PB10 ------> SPI2_SCK PB14 ------> SPI2_MISO */ GPIO_InitStruct.Pin = GPIO_PIN_1; - 8001462: 2302 movs r3, #2 - 8001464: 617b str r3, [r7, #20] + 80014ae: 2302 movs r3, #2 + 80014b0: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 8001466: 2302 movs r3, #2 - 8001468: 61bb str r3, [r7, #24] + 80014b2: 2302 movs r3, #2 + 80014b4: 61bb str r3, [r7, #24] GPIO_InitStruct.Pull = GPIO_NOPULL; - 800146a: 2300 movs r3, #0 - 800146c: 61fb str r3, [r7, #28] + 80014b6: 2300 movs r3, #0 + 80014b8: 61fb str r3, [r7, #28] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - 800146e: 2303 movs r3, #3 - 8001470: 623b str r3, [r7, #32] + 80014ba: 2303 movs r3, #3 + 80014bc: 623b str r3, [r7, #32] GPIO_InitStruct.Alternate = GPIO_AF7_SPI2; - 8001472: 2307 movs r3, #7 - 8001474: 627b str r3, [r7, #36] @ 0x24 + 80014be: 2307 movs r3, #7 + 80014c0: 627b str r3, [r7, #36] @ 0x24 HAL_GPIO_Init(GPIOC, &GPIO_InitStruct); - 8001476: f107 0314 add.w r3, r7, #20 - 800147a: 4619 mov r1, r3 - 800147c: 4811 ldr r0, [pc, #68] @ (80014c4 ) - 800147e: f001 fe8f bl 80031a0 + 80014c2: f107 0314 add.w r3, r7, #20 + 80014c6: 4619 mov r1, r3 + 80014c8: 4811 ldr r0, [pc, #68] @ (8001510 ) + 80014ca: f001 ffc1 bl 8003450 GPIO_InitStruct.Pin = GPIO_PIN_10|GPIO_PIN_14; - 8001482: f44f 4388 mov.w r3, #17408 @ 0x4400 - 8001486: 617b str r3, [r7, #20] + 80014ce: f44f 4388 mov.w r3, #17408 @ 0x4400 + 80014d2: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 8001488: 2302 movs r3, #2 - 800148a: 61bb str r3, [r7, #24] + 80014d4: 2302 movs r3, #2 + 80014d6: 61bb str r3, [r7, #24] GPIO_InitStruct.Pull = GPIO_NOPULL; - 800148c: 2300 movs r3, #0 - 800148e: 61fb str r3, [r7, #28] + 80014d8: 2300 movs r3, #0 + 80014da: 61fb str r3, [r7, #28] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - 8001490: 2303 movs r3, #3 - 8001492: 623b str r3, [r7, #32] + 80014dc: 2303 movs r3, #3 + 80014de: 623b str r3, [r7, #32] GPIO_InitStruct.Alternate = GPIO_AF5_SPI2; - 8001494: 2305 movs r3, #5 - 8001496: 627b str r3, [r7, #36] @ 0x24 + 80014e0: 2305 movs r3, #5 + 80014e2: 627b str r3, [r7, #36] @ 0x24 HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); - 8001498: f107 0314 add.w r3, r7, #20 - 800149c: 4619 mov r1, r3 - 800149e: 480a ldr r0, [pc, #40] @ (80014c8 ) - 80014a0: f001 fe7e bl 80031a0 + 80014e4: f107 0314 add.w r3, r7, #20 + 80014e8: 4619 mov r1, r3 + 80014ea: 480a ldr r0, [pc, #40] @ (8001514 ) + 80014ec: f001 ffb0 bl 8003450 /* SPI2 interrupt Init */ HAL_NVIC_SetPriority(SPI2_IRQn, 0, 0); - 80014a4: 2200 movs r2, #0 - 80014a6: 2100 movs r1, #0 - 80014a8: 2024 movs r0, #36 @ 0x24 - 80014aa: f001 fb77 bl 8002b9c + 80014f0: 2200 movs r2, #0 + 80014f2: 2100 movs r1, #0 + 80014f4: 2024 movs r0, #36 @ 0x24 + 80014f6: f001 fca9 bl 8002e4c HAL_NVIC_EnableIRQ(SPI2_IRQn); - 80014ae: 2024 movs r0, #36 @ 0x24 - 80014b0: f001 fb90 bl 8002bd4 + 80014fa: 2024 movs r0, #36 @ 0x24 + 80014fc: f001 fcc2 bl 8002e84 /* USER CODE BEGIN SPI2_MspInit 1 */ /* USER CODE END SPI2_MspInit 1 */ } } - 80014b4: bf00 nop - 80014b6: 3728 adds r7, #40 @ 0x28 - 80014b8: 46bd mov sp, r7 - 80014ba: bd80 pop {r7, pc} - 80014bc: 40003800 .word 0x40003800 - 80014c0: 40023800 .word 0x40023800 - 80014c4: 40020800 .word 0x40020800 - 80014c8: 40020400 .word 0x40020400 + 8001500: bf00 nop + 8001502: 3728 adds r7, #40 @ 0x28 + 8001504: 46bd mov sp, r7 + 8001506: bd80 pop {r7, pc} + 8001508: 40003800 .word 0x40003800 + 800150c: 40023800 .word 0x40023800 + 8001510: 40020800 .word 0x40020800 + 8001514: 40020400 .word 0x40020400 -080014cc : +08001518 : /* USER CODE END 0 */ /** * Initializes the Global MSP. */ void HAL_MspInit(void) { - 80014cc: b480 push {r7} - 80014ce: b083 sub sp, #12 - 80014d0: af00 add r7, sp, #0 + 8001518: b480 push {r7} + 800151a: b083 sub sp, #12 + 800151c: af00 add r7, sp, #0 /* USER CODE BEGIN MspInit 0 */ /* USER CODE END MspInit 0 */ __HAL_RCC_SYSCFG_CLK_ENABLE(); - 80014d2: 2300 movs r3, #0 - 80014d4: 607b str r3, [r7, #4] - 80014d6: 4b10 ldr r3, [pc, #64] @ (8001518 ) - 80014d8: 6c5b ldr r3, [r3, #68] @ 0x44 - 80014da: 4a0f ldr r2, [pc, #60] @ (8001518 ) - 80014dc: f443 4380 orr.w r3, r3, #16384 @ 0x4000 - 80014e0: 6453 str r3, [r2, #68] @ 0x44 - 80014e2: 4b0d ldr r3, [pc, #52] @ (8001518 ) - 80014e4: 6c5b ldr r3, [r3, #68] @ 0x44 - 80014e6: f403 4380 and.w r3, r3, #16384 @ 0x4000 - 80014ea: 607b str r3, [r7, #4] - 80014ec: 687b ldr r3, [r7, #4] + 800151e: 2300 movs r3, #0 + 8001520: 607b str r3, [r7, #4] + 8001522: 4b10 ldr r3, [pc, #64] @ (8001564 ) + 8001524: 6c5b ldr r3, [r3, #68] @ 0x44 + 8001526: 4a0f ldr r2, [pc, #60] @ (8001564 ) + 8001528: f443 4380 orr.w r3, r3, #16384 @ 0x4000 + 800152c: 6453 str r3, [r2, #68] @ 0x44 + 800152e: 4b0d ldr r3, [pc, #52] @ (8001564 ) + 8001530: 6c5b ldr r3, [r3, #68] @ 0x44 + 8001532: f403 4380 and.w r3, r3, #16384 @ 0x4000 + 8001536: 607b str r3, [r7, #4] + 8001538: 687b ldr r3, [r7, #4] __HAL_RCC_PWR_CLK_ENABLE(); - 80014ee: 2300 movs r3, #0 - 80014f0: 603b str r3, [r7, #0] - 80014f2: 4b09 ldr r3, [pc, #36] @ (8001518 ) - 80014f4: 6c1b ldr r3, [r3, #64] @ 0x40 - 80014f6: 4a08 ldr r2, [pc, #32] @ (8001518 ) - 80014f8: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 - 80014fc: 6413 str r3, [r2, #64] @ 0x40 - 80014fe: 4b06 ldr r3, [pc, #24] @ (8001518 ) - 8001500: 6c1b ldr r3, [r3, #64] @ 0x40 - 8001502: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 - 8001506: 603b str r3, [r7, #0] - 8001508: 683b ldr r3, [r7, #0] + 800153a: 2300 movs r3, #0 + 800153c: 603b str r3, [r7, #0] + 800153e: 4b09 ldr r3, [pc, #36] @ (8001564 ) + 8001540: 6c1b ldr r3, [r3, #64] @ 0x40 + 8001542: 4a08 ldr r2, [pc, #32] @ (8001564 ) + 8001544: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 + 8001548: 6413 str r3, [r2, #64] @ 0x40 + 800154a: 4b06 ldr r3, [pc, #24] @ (8001564 ) + 800154c: 6c1b ldr r3, [r3, #64] @ 0x40 + 800154e: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 + 8001552: 603b str r3, [r7, #0] + 8001554: 683b ldr r3, [r7, #0] /* System interrupt init*/ /* USER CODE BEGIN MspInit 1 */ /* USER CODE END MspInit 1 */ } - 800150a: bf00 nop - 800150c: 370c adds r7, #12 - 800150e: 46bd mov sp, r7 - 8001510: f85d 7b04 ldr.w r7, [sp], #4 - 8001514: 4770 bx lr - 8001516: bf00 nop - 8001518: 40023800 .word 0x40023800 + 8001556: bf00 nop + 8001558: 370c adds r7, #12 + 800155a: 46bd mov sp, r7 + 800155c: f85d 7b04 ldr.w r7, [sp], #4 + 8001560: 4770 bx lr + 8001562: bf00 nop + 8001564: 40023800 .word 0x40023800 -0800151c : +08001568 : * reset by HAL_Init() or at any time when clock is configured, by HAL_RCC_ClockConfig(). * @param TickPriority: Tick interrupt priority. * @retval HAL status */ HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority) { - 800151c: b580 push {r7, lr} - 800151e: b08e sub sp, #56 @ 0x38 - 8001520: af00 add r7, sp, #0 - 8001522: 6078 str r0, [r7, #4] + 8001568: b580 push {r7, lr} + 800156a: b08e sub sp, #56 @ 0x38 + 800156c: af00 add r7, sp, #0 + 800156e: 6078 str r0, [r7, #4] RCC_ClkInitTypeDef clkconfig; uint32_t uwTimclock, uwAPB1Prescaler = 0U; - 8001524: 2300 movs r3, #0 - 8001526: 62fb str r3, [r7, #44] @ 0x2c + 8001570: 2300 movs r3, #0 + 8001572: 62fb str r3, [r7, #44] @ 0x2c uint32_t uwPrescalerValue = 0U; - 8001528: 2300 movs r3, #0 - 800152a: 62bb str r3, [r7, #40] @ 0x28 + 8001574: 2300 movs r3, #0 + 8001576: 62bb str r3, [r7, #40] @ 0x28 uint32_t pFLatency; HAL_StatusTypeDef status; /* Enable TIM2 clock */ __HAL_RCC_TIM2_CLK_ENABLE(); - 800152c: 2300 movs r3, #0 - 800152e: 60fb str r3, [r7, #12] - 8001530: 4b34 ldr r3, [pc, #208] @ (8001604 ) - 8001532: 6c1b ldr r3, [r3, #64] @ 0x40 - 8001534: 4a33 ldr r2, [pc, #204] @ (8001604 ) - 8001536: f043 0301 orr.w r3, r3, #1 - 800153a: 6413 str r3, [r2, #64] @ 0x40 - 800153c: 4b31 ldr r3, [pc, #196] @ (8001604 ) - 800153e: 6c1b ldr r3, [r3, #64] @ 0x40 - 8001540: f003 0301 and.w r3, r3, #1 - 8001544: 60fb str r3, [r7, #12] - 8001546: 68fb ldr r3, [r7, #12] + 8001578: 2300 movs r3, #0 + 800157a: 60fb str r3, [r7, #12] + 800157c: 4b34 ldr r3, [pc, #208] @ (8001650 ) + 800157e: 6c1b ldr r3, [r3, #64] @ 0x40 + 8001580: 4a33 ldr r2, [pc, #204] @ (8001650 ) + 8001582: f043 0301 orr.w r3, r3, #1 + 8001586: 6413 str r3, [r2, #64] @ 0x40 + 8001588: 4b31 ldr r3, [pc, #196] @ (8001650 ) + 800158a: 6c1b ldr r3, [r3, #64] @ 0x40 + 800158c: f003 0301 and.w r3, r3, #1 + 8001590: 60fb str r3, [r7, #12] + 8001592: 68fb ldr r3, [r7, #12] /* Get clock configuration */ HAL_RCC_GetClockConfig(&clkconfig, &pFLatency); - 8001548: f107 0210 add.w r2, r7, #16 - 800154c: f107 0314 add.w r3, r7, #20 - 8001550: 4611 mov r1, r2 - 8001552: 4618 mov r0, r3 - 8001554: f002 f93c bl 80037d0 + 8001594: f107 0210 add.w r2, r7, #16 + 8001598: f107 0314 add.w r3, r7, #20 + 800159c: 4611 mov r1, r2 + 800159e: 4618 mov r0, r3 + 80015a0: f002 fa6e bl 8003a80 /* Get APB1 prescaler */ uwAPB1Prescaler = clkconfig.APB1CLKDivider; - 8001558: 6a3b ldr r3, [r7, #32] - 800155a: 62fb str r3, [r7, #44] @ 0x2c + 80015a4: 6a3b ldr r3, [r7, #32] + 80015a6: 62fb str r3, [r7, #44] @ 0x2c /* Compute TIM2 clock */ if (uwAPB1Prescaler == RCC_HCLK_DIV1) - 800155c: 6afb ldr r3, [r7, #44] @ 0x2c - 800155e: 2b00 cmp r3, #0 - 8001560: d103 bne.n 800156a + 80015a8: 6afb ldr r3, [r7, #44] @ 0x2c + 80015aa: 2b00 cmp r3, #0 + 80015ac: d103 bne.n 80015b6 { uwTimclock = HAL_RCC_GetPCLK1Freq(); - 8001562: f002 f90d bl 8003780 - 8001566: 6378 str r0, [r7, #52] @ 0x34 - 8001568: e004 b.n 8001574 + 80015ae: f002 fa3f bl 8003a30 + 80015b2: 6378 str r0, [r7, #52] @ 0x34 + 80015b4: e004 b.n 80015c0 } else { uwTimclock = 2UL * HAL_RCC_GetPCLK1Freq(); - 800156a: f002 f909 bl 8003780 - 800156e: 4603 mov r3, r0 - 8001570: 005b lsls r3, r3, #1 - 8001572: 637b str r3, [r7, #52] @ 0x34 + 80015b6: f002 fa3b bl 8003a30 + 80015ba: 4603 mov r3, r0 + 80015bc: 005b lsls r3, r3, #1 + 80015be: 637b str r3, [r7, #52] @ 0x34 } /* Compute the prescaler value to have TIM2 counter clock equal to 1MHz */ uwPrescalerValue = (uint32_t) ((uwTimclock / 1000000U) - 1U); - 8001574: 6b7b ldr r3, [r7, #52] @ 0x34 - 8001576: 4a24 ldr r2, [pc, #144] @ (8001608 ) - 8001578: fba2 2303 umull r2, r3, r2, r3 - 800157c: 0c9b lsrs r3, r3, #18 - 800157e: 3b01 subs r3, #1 - 8001580: 62bb str r3, [r7, #40] @ 0x28 + 80015c0: 6b7b ldr r3, [r7, #52] @ 0x34 + 80015c2: 4a24 ldr r2, [pc, #144] @ (8001654 ) + 80015c4: fba2 2303 umull r2, r3, r2, r3 + 80015c8: 0c9b lsrs r3, r3, #18 + 80015ca: 3b01 subs r3, #1 + 80015cc: 62bb str r3, [r7, #40] @ 0x28 /* Initialize TIM2 */ htim2.Instance = TIM2; - 8001582: 4b22 ldr r3, [pc, #136] @ (800160c ) - 8001584: f04f 4280 mov.w r2, #1073741824 @ 0x40000000 - 8001588: 601a str r2, [r3, #0] + 80015ce: 4b22 ldr r3, [pc, #136] @ (8001658 ) + 80015d0: f04f 4280 mov.w r2, #1073741824 @ 0x40000000 + 80015d4: 601a str r2, [r3, #0] + Period = [(TIM2CLK/1000) - 1]. to have a (1/1000) s time base. + Prescaler = (uwTimclock/1000000 - 1) to have a 1MHz counter clock. + ClockDivision = 0 + Counter direction = Up */ htim2.Init.Period = (1000000U / 1000U) - 1U; - 800158a: 4b20 ldr r3, [pc, #128] @ (800160c ) - 800158c: f240 32e7 movw r2, #999 @ 0x3e7 - 8001590: 60da str r2, [r3, #12] + 80015d6: 4b20 ldr r3, [pc, #128] @ (8001658 ) + 80015d8: f240 32e7 movw r2, #999 @ 0x3e7 + 80015dc: 60da str r2, [r3, #12] htim2.Init.Prescaler = uwPrescalerValue; - 8001592: 4a1e ldr r2, [pc, #120] @ (800160c ) - 8001594: 6abb ldr r3, [r7, #40] @ 0x28 - 8001596: 6053 str r3, [r2, #4] + 80015de: 4a1e ldr r2, [pc, #120] @ (8001658 ) + 80015e0: 6abb ldr r3, [r7, #40] @ 0x28 + 80015e2: 6053 str r3, [r2, #4] htim2.Init.ClockDivision = 0; - 8001598: 4b1c ldr r3, [pc, #112] @ (800160c ) - 800159a: 2200 movs r2, #0 - 800159c: 611a str r2, [r3, #16] + 80015e4: 4b1c ldr r3, [pc, #112] @ (8001658 ) + 80015e6: 2200 movs r2, #0 + 80015e8: 611a str r2, [r3, #16] htim2.Init.CounterMode = TIM_COUNTERMODE_UP; - 800159e: 4b1b ldr r3, [pc, #108] @ (800160c ) - 80015a0: 2200 movs r2, #0 - 80015a2: 609a str r2, [r3, #8] + 80015ea: 4b1b ldr r3, [pc, #108] @ (8001658 ) + 80015ec: 2200 movs r2, #0 + 80015ee: 609a str r2, [r3, #8] htim2.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE; - 80015a4: 4b19 ldr r3, [pc, #100] @ (800160c ) - 80015a6: 2200 movs r2, #0 - 80015a8: 619a str r2, [r3, #24] + 80015f0: 4b19 ldr r3, [pc, #100] @ (8001658 ) + 80015f2: 2200 movs r2, #0 + 80015f4: 619a str r2, [r3, #24] status = HAL_TIM_Base_Init(&htim2); - 80015aa: 4818 ldr r0, [pc, #96] @ (800160c ) - 80015ac: f002 ffac bl 8004508 - 80015b0: 4603 mov r3, r0 - 80015b2: f887 3033 strb.w r3, [r7, #51] @ 0x33 + 80015f6: 4818 ldr r0, [pc, #96] @ (8001658 ) + 80015f8: f003 f9d6 bl 80049a8 + 80015fc: 4603 mov r3, r0 + 80015fe: f887 3033 strb.w r3, [r7, #51] @ 0x33 if (status == HAL_OK) - 80015b6: f897 3033 ldrb.w r3, [r7, #51] @ 0x33 - 80015ba: 2b00 cmp r3, #0 - 80015bc: d11b bne.n 80015f6 + 8001602: f897 3033 ldrb.w r3, [r7, #51] @ 0x33 + 8001606: 2b00 cmp r3, #0 + 8001608: d11b bne.n 8001642 { /* Start the TIM time Base generation in interrupt mode */ status = HAL_TIM_Base_Start_IT(&htim2); - 80015be: 4813 ldr r0, [pc, #76] @ (800160c ) - 80015c0: f002 fff2 bl 80045a8 - 80015c4: 4603 mov r3, r0 - 80015c6: f887 3033 strb.w r3, [r7, #51] @ 0x33 + 800160a: 4813 ldr r0, [pc, #76] @ (8001658 ) + 800160c: f003 fa1c bl 8004a48 + 8001610: 4603 mov r3, r0 + 8001612: f887 3033 strb.w r3, [r7, #51] @ 0x33 if (status == HAL_OK) - 80015ca: f897 3033 ldrb.w r3, [r7, #51] @ 0x33 - 80015ce: 2b00 cmp r3, #0 - 80015d0: d111 bne.n 80015f6 + 8001616: f897 3033 ldrb.w r3, [r7, #51] @ 0x33 + 800161a: 2b00 cmp r3, #0 + 800161c: d111 bne.n 8001642 { /* Enable the TIM2 global Interrupt */ HAL_NVIC_EnableIRQ(TIM2_IRQn); - 80015d2: 201c movs r0, #28 - 80015d4: f001 fafe bl 8002bd4 + 800161e: 201c movs r0, #28 + 8001620: f001 fc30 bl 8002e84 /* Configure the SysTick IRQ priority */ if (TickPriority < (1UL << __NVIC_PRIO_BITS)) - 80015d8: 687b ldr r3, [r7, #4] - 80015da: 2b0f cmp r3, #15 - 80015dc: d808 bhi.n 80015f0 + 8001624: 687b ldr r3, [r7, #4] + 8001626: 2b0f cmp r3, #15 + 8001628: d808 bhi.n 800163c { /* Configure the TIM IRQ priority */ HAL_NVIC_SetPriority(TIM2_IRQn, TickPriority, 0U); - 80015de: 2200 movs r2, #0 - 80015e0: 6879 ldr r1, [r7, #4] - 80015e2: 201c movs r0, #28 - 80015e4: f001 fada bl 8002b9c + 800162a: 2200 movs r2, #0 + 800162c: 6879 ldr r1, [r7, #4] + 800162e: 201c movs r0, #28 + 8001630: f001 fc0c bl 8002e4c uwTickPrio = TickPriority; - 80015e8: 4a09 ldr r2, [pc, #36] @ (8001610 ) - 80015ea: 687b ldr r3, [r7, #4] - 80015ec: 6013 str r3, [r2, #0] - 80015ee: e002 b.n 80015f6 + 8001634: 4a09 ldr r2, [pc, #36] @ (800165c ) + 8001636: 687b ldr r3, [r7, #4] + 8001638: 6013 str r3, [r2, #0] + 800163a: e002 b.n 8001642 } else { status = HAL_ERROR; - 80015f0: 2301 movs r3, #1 - 80015f2: f887 3033 strb.w r3, [r7, #51] @ 0x33 + 800163c: 2301 movs r3, #1 + 800163e: f887 3033 strb.w r3, [r7, #51] @ 0x33 } } } /* Return function status */ return status; - 80015f6: f897 3033 ldrb.w r3, [r7, #51] @ 0x33 + 8001642: f897 3033 ldrb.w r3, [r7, #51] @ 0x33 } - 80015fa: 4618 mov r0, r3 - 80015fc: 3738 adds r7, #56 @ 0x38 - 80015fe: 46bd mov sp, r7 - 8001600: bd80 pop {r7, pc} - 8001602: bf00 nop - 8001604: 40023800 .word 0x40023800 - 8001608: 431bde83 .word 0x431bde83 - 800160c: 20000140 .word 0x20000140 - 8001610: 2000000c .word 0x2000000c + 8001646: 4618 mov r0, r3 + 8001648: 3738 adds r7, #56 @ 0x38 + 800164a: 46bd mov sp, r7 + 800164c: bd80 pop {r7, pc} + 800164e: bf00 nop + 8001650: 40023800 .word 0x40023800 + 8001654: 431bde83 .word 0x431bde83 + 8001658: 2000013c .word 0x2000013c + 800165c: 2000000c .word 0x2000000c -08001614 : +08001660 : /******************************************************************************/ /** * @brief This function handles Non maskable interrupt. */ void NMI_Handler(void) { - 8001614: b480 push {r7} - 8001616: af00 add r7, sp, #0 + 8001660: b480 push {r7} + 8001662: 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) - 8001618: bf00 nop - 800161a: e7fd b.n 8001618 + 8001664: bf00 nop + 8001666: e7fd b.n 8001664 -0800161c : +08001668 : /** * @brief This function handles Hard fault interrupt. */ void HardFault_Handler(void) { - 800161c: b480 push {r7} - 800161e: af00 add r7, sp, #0 + 8001668: b480 push {r7} + 800166a: af00 add r7, sp, #0 /* USER CODE BEGIN HardFault_IRQn 0 */ /* USER CODE END HardFault_IRQn 0 */ while (1) - 8001620: bf00 nop - 8001622: e7fd b.n 8001620 + 800166c: bf00 nop + 800166e: e7fd b.n 800166c -08001624 : +08001670 : /** * @brief This function handles Memory management fault. */ void MemManage_Handler(void) { - 8001624: b480 push {r7} - 8001626: af00 add r7, sp, #0 + 8001670: b480 push {r7} + 8001672: af00 add r7, sp, #0 /* USER CODE BEGIN MemoryManagement_IRQn 0 */ /* USER CODE END MemoryManagement_IRQn 0 */ while (1) - 8001628: bf00 nop - 800162a: e7fd b.n 8001628 + 8001674: bf00 nop + 8001676: e7fd b.n 8001674 -0800162c : +08001678 : /** * @brief This function handles Pre-fetch fault, memory access fault. */ void BusFault_Handler(void) { - 800162c: b480 push {r7} - 800162e: af00 add r7, sp, #0 + 8001678: b480 push {r7} + 800167a: af00 add r7, sp, #0 /* USER CODE BEGIN BusFault_IRQn 0 */ /* USER CODE END BusFault_IRQn 0 */ while (1) - 8001630: bf00 nop - 8001632: e7fd b.n 8001630 + 800167c: bf00 nop + 800167e: e7fd b.n 800167c -08001634 : +08001680 : /** * @brief This function handles Undefined instruction or illegal state. */ void UsageFault_Handler(void) { - 8001634: b480 push {r7} - 8001636: af00 add r7, sp, #0 + 8001680: b480 push {r7} + 8001682: af00 add r7, sp, #0 /* USER CODE BEGIN UsageFault_IRQn 0 */ /* USER CODE END UsageFault_IRQn 0 */ while (1) - 8001638: bf00 nop - 800163a: e7fd b.n 8001638 + 8001684: bf00 nop + 8001686: e7fd b.n 8001684 -0800163c : +08001688 : /** * @brief This function handles System service call via SWI instruction. */ void SVC_Handler(void) { - 800163c: b480 push {r7} - 800163e: af00 add r7, sp, #0 + 8001688: b480 push {r7} + 800168a: af00 add r7, sp, #0 /* USER CODE END SVCall_IRQn 0 */ /* USER CODE BEGIN SVCall_IRQn 1 */ /* USER CODE END SVCall_IRQn 1 */ } - 8001640: bf00 nop - 8001642: 46bd mov sp, r7 - 8001644: f85d 7b04 ldr.w r7, [sp], #4 - 8001648: 4770 bx lr + 800168c: bf00 nop + 800168e: 46bd mov sp, r7 + 8001690: f85d 7b04 ldr.w r7, [sp], #4 + 8001694: 4770 bx lr -0800164a : +08001696 : /** * @brief This function handles Debug monitor. */ void DebugMon_Handler(void) { - 800164a: b480 push {r7} - 800164c: af00 add r7, sp, #0 + 8001696: b480 push {r7} + 8001698: af00 add r7, sp, #0 /* USER CODE END DebugMonitor_IRQn 0 */ /* USER CODE BEGIN DebugMonitor_IRQn 1 */ /* USER CODE END DebugMonitor_IRQn 1 */ } - 800164e: bf00 nop - 8001650: 46bd mov sp, r7 - 8001652: f85d 7b04 ldr.w r7, [sp], #4 - 8001656: 4770 bx lr + 800169a: bf00 nop + 800169c: 46bd mov sp, r7 + 800169e: f85d 7b04 ldr.w r7, [sp], #4 + 80016a2: 4770 bx lr -08001658 : +080016a4 : /** * @brief This function handles Pendable request for system service. */ void PendSV_Handler(void) { - 8001658: b480 push {r7} - 800165a: af00 add r7, sp, #0 + 80016a4: b480 push {r7} + 80016a6: af00 add r7, sp, #0 /* USER CODE END PendSV_IRQn 0 */ /* USER CODE BEGIN PendSV_IRQn 1 */ /* USER CODE END PendSV_IRQn 1 */ } - 800165c: bf00 nop - 800165e: 46bd mov sp, r7 - 8001660: f85d 7b04 ldr.w r7, [sp], #4 - 8001664: 4770 bx lr + 80016a8: bf00 nop + 80016aa: 46bd mov sp, r7 + 80016ac: f85d 7b04 ldr.w r7, [sp], #4 + 80016b0: 4770 bx lr -08001666 : +080016b2 : /** * @brief This function handles System tick timer. */ void SysTick_Handler(void) { - 8001666: b480 push {r7} - 8001668: af00 add r7, sp, #0 + 80016b2: b480 push {r7} + 80016b4: af00 add r7, sp, #0 /* USER CODE END SysTick_IRQn 0 */ /* USER CODE BEGIN SysTick_IRQn 1 */ /* USER CODE END SysTick_IRQn 1 */ } - 800166a: bf00 nop - 800166c: 46bd mov sp, r7 - 800166e: f85d 7b04 ldr.w r7, [sp], #4 - 8001672: 4770 bx lr + 80016b6: bf00 nop + 80016b8: 46bd mov sp, r7 + 80016ba: f85d 7b04 ldr.w r7, [sp], #4 + 80016be: 4770 bx lr -08001674 : +080016c0 : /** * @brief This function handles ADC1, ADC2 and ADC3 interrupts. */ void ADC_IRQHandler(void) { - 8001674: b580 push {r7, lr} - 8001676: af00 add r7, sp, #0 + 80016c0: b580 push {r7, lr} + 80016c2: af00 add r7, sp, #0 /* USER CODE BEGIN ADC_IRQn 0 */ /* USER CODE END ADC_IRQn 0 */ HAL_ADC_IRQHandler(&hadc2); - 8001678: 4802 ldr r0, [pc, #8] @ (8001684 ) - 800167a: f000 fb5a bl 8001d32 + 80016c4: 4802 ldr r0, [pc, #8] @ (80016d0 ) + 80016c6: f000 fb90 bl 8001dea /* USER CODE BEGIN ADC_IRQn 1 */ /* USER CODE END ADC_IRQn 1 */ } - 800167e: bf00 nop - 8001680: bd80 pop {r7, pc} - 8001682: bf00 nop - 8001684: 20000030 .word 0x20000030 + 80016ca: bf00 nop + 80016cc: bd80 pop {r7, pc} + 80016ce: bf00 nop + 80016d0: 20000030 .word 0x20000030 -08001688 : +080016d4 : /** * @brief This function handles TIM2 global interrupt. */ void TIM2_IRQHandler(void) { - 8001688: b580 push {r7, lr} - 800168a: af00 add r7, sp, #0 + 80016d4: b580 push {r7, lr} + 80016d6: af00 add r7, sp, #0 /* USER CODE BEGIN TIM2_IRQn 0 */ /* USER CODE END TIM2_IRQn 0 */ HAL_TIM_IRQHandler(&htim2); - 800168c: 4802 ldr r0, [pc, #8] @ (8001698 ) - 800168e: f003 f854 bl 800473a + 80016d8: 4802 ldr r0, [pc, #8] @ (80016e4 ) + 80016da: f003 fa7e bl 8004bda /* USER CODE BEGIN TIM2_IRQn 1 */ /* USER CODE END TIM2_IRQn 1 */ } - 8001692: bf00 nop - 8001694: bd80 pop {r7, pc} - 8001696: bf00 nop - 8001698: 20000140 .word 0x20000140 + 80016de: bf00 nop + 80016e0: bd80 pop {r7, pc} + 80016e2: bf00 nop + 80016e4: 2000013c .word 0x2000013c -0800169c : +080016e8 : /** * @brief This function handles TIM3 global interrupt. */ void TIM3_IRQHandler(void) { - 800169c: b580 push {r7, lr} - 800169e: af00 add r7, sp, #0 + 80016e8: b580 push {r7, lr} + 80016ea: af00 add r7, sp, #0 /* USER CODE BEGIN TIM3_IRQn 0 */ /* USER CODE END TIM3_IRQn 0 */ HAL_TIM_IRQHandler(&htim3); - 80016a0: 4802 ldr r0, [pc, #8] @ (80016ac ) - 80016a2: f003 f84a bl 800473a + 80016ec: 4802 ldr r0, [pc, #8] @ (80016f8 ) + 80016ee: f003 fa74 bl 8004bda /* USER CODE BEGIN TIM3_IRQn 1 */ /* USER CODE END TIM3_IRQn 1 */ } - 80016a6: bf00 nop - 80016a8: bd80 pop {r7, pc} - 80016aa: bf00 nop - 80016ac: 200001d0 .word 0x200001d0 + 80016f2: bf00 nop + 80016f4: bd80 pop {r7, pc} + 80016f6: bf00 nop + 80016f8: 200001cc .word 0x200001cc -080016b0 : +080016fc : /** * @brief This function handles SPI2 global interrupt. */ void SPI2_IRQHandler(void) { - 80016b0: b580 push {r7, lr} - 80016b2: af00 add r7, sp, #0 + 80016fc: b580 push {r7, lr} + 80016fe: af00 add r7, sp, #0 /* USER CODE BEGIN SPI2_IRQn 0 */ /* USER CODE END SPI2_IRQn 0 */ HAL_SPI_IRQHandler(&hspi2); - 80016b4: 4802 ldr r0, [pc, #8] @ (80016c0 ) - 80016b6: f002 fe15 bl 80042e4 + 8001700: 4802 ldr r0, [pc, #8] @ (800170c ) + 8001702: f003 f83f bl 8004784 /* USER CODE BEGIN SPI2_IRQn 1 */ /* USER CODE END SPI2_IRQn 1 */ } - 80016ba: bf00 nop - 80016bc: bd80 pop {r7, pc} - 80016be: bf00 nop - 80016c0: 200000e8 .word 0x200000e8 + 8001706: bf00 nop + 8001708: bd80 pop {r7, pc} + 800170a: bf00 nop + 800170c: 200000e4 .word 0x200000e4 -080016c4 : +08001710 : * configuration. * @param None * @retval None */ void SystemInit(void) { - 80016c4: b480 push {r7} - 80016c6: af00 add r7, sp, #0 + 8001710: b480 push {r7} + 8001712: 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 */ - 80016c8: 4b06 ldr r3, [pc, #24] @ (80016e4 ) - 80016ca: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 - 80016ce: 4a05 ldr r2, [pc, #20] @ (80016e4 ) - 80016d0: f443 0370 orr.w r3, r3, #15728640 @ 0xf00000 - 80016d4: f8c2 3088 str.w r3, [r2, #136] @ 0x88 + 8001714: 4b06 ldr r3, [pc, #24] @ (8001730 ) + 8001716: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 + 800171a: 4a05 ldr r2, [pc, #20] @ (8001730 ) + 800171c: f443 0370 orr.w r3, r3, #15728640 @ 0xf00000 + 8001720: f8c2 3088 str.w r3, [r2, #136] @ 0x88 /* Configure the Vector Table location -------------------------------------*/ #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 */ } - 80016d8: bf00 nop - 80016da: 46bd mov sp, r7 - 80016dc: f85d 7b04 ldr.w r7, [sp], #4 - 80016e0: 4770 bx lr - 80016e2: bf00 nop - 80016e4: e000ed00 .word 0xe000ed00 + 8001724: bf00 nop + 8001726: 46bd mov sp, r7 + 8001728: f85d 7b04 ldr.w r7, [sp], #4 + 800172c: 4770 bx lr + 800172e: bf00 nop + 8001730: e000ed00 .word 0xe000ed00 -080016e8 : +08001734 : TIM_HandleTypeDef htim3; TIM_HandleTypeDef htim5; /* TIM1 init function */ void MX_TIM1_Init(void) { - 80016e8: b580 push {r7, lr} - 80016ea: b096 sub sp, #88 @ 0x58 - 80016ec: af00 add r7, sp, #0 + 8001734: b580 push {r7, lr} + 8001736: b096 sub sp, #88 @ 0x58 + 8001738: af00 add r7, sp, #0 /* USER CODE BEGIN TIM1_Init 0 */ /* USER CODE END TIM1_Init 0 */ TIM_ClockConfigTypeDef sClockSourceConfig = {0}; - 80016ee: f107 0348 add.w r3, r7, #72 @ 0x48 - 80016f2: 2200 movs r2, #0 - 80016f4: 601a str r2, [r3, #0] - 80016f6: 605a str r2, [r3, #4] - 80016f8: 609a str r2, [r3, #8] - 80016fa: 60da str r2, [r3, #12] + 800173a: f107 0348 add.w r3, r7, #72 @ 0x48 + 800173e: 2200 movs r2, #0 + 8001740: 601a str r2, [r3, #0] + 8001742: 605a str r2, [r3, #4] + 8001744: 609a str r2, [r3, #8] + 8001746: 60da str r2, [r3, #12] TIM_MasterConfigTypeDef sMasterConfig = {0}; - 80016fc: f107 0340 add.w r3, r7, #64 @ 0x40 - 8001700: 2200 movs r2, #0 - 8001702: 601a str r2, [r3, #0] - 8001704: 605a str r2, [r3, #4] + 8001748: f107 0340 add.w r3, r7, #64 @ 0x40 + 800174c: 2200 movs r2, #0 + 800174e: 601a str r2, [r3, #0] + 8001750: 605a str r2, [r3, #4] TIM_OC_InitTypeDef sConfigOC = {0}; - 8001706: f107 0324 add.w r3, r7, #36 @ 0x24 - 800170a: 2200 movs r2, #0 - 800170c: 601a str r2, [r3, #0] - 800170e: 605a str r2, [r3, #4] - 8001710: 609a str r2, [r3, #8] - 8001712: 60da str r2, [r3, #12] - 8001714: 611a str r2, [r3, #16] - 8001716: 615a str r2, [r3, #20] - 8001718: 619a str r2, [r3, #24] + 8001752: f107 0324 add.w r3, r7, #36 @ 0x24 + 8001756: 2200 movs r2, #0 + 8001758: 601a str r2, [r3, #0] + 800175a: 605a str r2, [r3, #4] + 800175c: 609a str r2, [r3, #8] + 800175e: 60da str r2, [r3, #12] + 8001760: 611a str r2, [r3, #16] + 8001762: 615a str r2, [r3, #20] + 8001764: 619a str r2, [r3, #24] TIM_BreakDeadTimeConfigTypeDef sBreakDeadTimeConfig = {0}; - 800171a: 1d3b adds r3, r7, #4 - 800171c: 2220 movs r2, #32 - 800171e: 2100 movs r1, #0 - 8001720: 4618 mov r0, r3 - 8001722: f004 f949 bl 80059b8 + 8001766: 1d3b adds r3, r7, #4 + 8001768: 2220 movs r2, #32 + 800176a: 2100 movs r1, #0 + 800176c: 4618 mov r0, r3 + 800176e: f004 fb73 bl 8005e58 /* USER CODE BEGIN TIM1_Init 1 */ /* USER CODE END TIM1_Init 1 */ htim1.Instance = TIM1; - 8001726: 4b4a ldr r3, [pc, #296] @ (8001850 ) - 8001728: 4a4a ldr r2, [pc, #296] @ (8001854 ) - 800172a: 601a str r2, [r3, #0] + 8001772: 4b4a ldr r3, [pc, #296] @ (800189c ) + 8001774: 4a4a ldr r2, [pc, #296] @ (80018a0 ) + 8001776: 601a str r2, [r3, #0] htim1.Init.Prescaler = 0; - 800172c: 4b48 ldr r3, [pc, #288] @ (8001850 ) - 800172e: 2200 movs r2, #0 - 8001730: 605a str r2, [r3, #4] + 8001778: 4b48 ldr r3, [pc, #288] @ (800189c ) + 800177a: 2200 movs r2, #0 + 800177c: 605a str r2, [r3, #4] htim1.Init.CounterMode = TIM_COUNTERMODE_CENTERALIGNED1; - 8001732: 4b47 ldr r3, [pc, #284] @ (8001850 ) - 8001734: 2220 movs r2, #32 - 8001736: 609a str r2, [r3, #8] + 800177e: 4b47 ldr r3, [pc, #284] @ (800189c ) + 8001780: 2220 movs r2, #32 + 8001782: 609a str r2, [r3, #8] htim1.Init.Period = 2399; - 8001738: 4b45 ldr r3, [pc, #276] @ (8001850 ) - 800173a: f640 125f movw r2, #2399 @ 0x95f - 800173e: 60da str r2, [r3, #12] + 8001784: 4b45 ldr r3, [pc, #276] @ (800189c ) + 8001786: f640 125f movw r2, #2399 @ 0x95f + 800178a: 60da str r2, [r3, #12] htim1.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1; - 8001740: 4b43 ldr r3, [pc, #268] @ (8001850 ) - 8001742: 2200 movs r2, #0 - 8001744: 611a str r2, [r3, #16] + 800178c: 4b43 ldr r3, [pc, #268] @ (800189c ) + 800178e: 2200 movs r2, #0 + 8001790: 611a str r2, [r3, #16] htim1.Init.RepetitionCounter = 0; - 8001746: 4b42 ldr r3, [pc, #264] @ (8001850 ) - 8001748: 2200 movs r2, #0 - 800174a: 615a str r2, [r3, #20] + 8001792: 4b42 ldr r3, [pc, #264] @ (800189c ) + 8001794: 2200 movs r2, #0 + 8001796: 615a str r2, [r3, #20] htim1.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_ENABLE; - 800174c: 4b40 ldr r3, [pc, #256] @ (8001850 ) - 800174e: 2280 movs r2, #128 @ 0x80 - 8001750: 619a str r2, [r3, #24] + 8001798: 4b40 ldr r3, [pc, #256] @ (800189c ) + 800179a: 2280 movs r2, #128 @ 0x80 + 800179c: 619a str r2, [r3, #24] if (HAL_TIM_Base_Init(&htim1) != HAL_OK) - 8001752: 483f ldr r0, [pc, #252] @ (8001850 ) - 8001754: f002 fed8 bl 8004508 - 8001758: 4603 mov r3, r0 - 800175a: 2b00 cmp r3, #0 - 800175c: d001 beq.n 8001762 + 800179e: 483f ldr r0, [pc, #252] @ (800189c ) + 80017a0: f003 f902 bl 80049a8 + 80017a4: 4603 mov r3, r0 + 80017a6: 2b00 cmp r3, #0 + 80017a8: d001 beq.n 80017ae { Error_Handler(); - 800175e: f7ff fe06 bl 800136e + 80017aa: f7ff fe06 bl 80013ba } sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL; - 8001762: f44f 5380 mov.w r3, #4096 @ 0x1000 - 8001766: 64bb str r3, [r7, #72] @ 0x48 + 80017ae: f44f 5380 mov.w r3, #4096 @ 0x1000 + 80017b2: 64bb str r3, [r7, #72] @ 0x48 if (HAL_TIM_ConfigClockSource(&htim1, &sClockSourceConfig) != HAL_OK) - 8001768: f107 0348 add.w r3, r7, #72 @ 0x48 - 800176c: 4619 mov r1, r3 - 800176e: 4838 ldr r0, [pc, #224] @ (8001850 ) - 8001770: f003 f996 bl 8004aa0 - 8001774: 4603 mov r3, r0 - 8001776: 2b00 cmp r3, #0 - 8001778: d001 beq.n 800177e + 80017b4: f107 0348 add.w r3, r7, #72 @ 0x48 + 80017b8: 4619 mov r1, r3 + 80017ba: 4838 ldr r0, [pc, #224] @ (800189c ) + 80017bc: f003 fbc0 bl 8004f40 + 80017c0: 4603 mov r3, r0 + 80017c2: 2b00 cmp r3, #0 + 80017c4: d001 beq.n 80017ca { Error_Handler(); - 800177a: f7ff fdf8 bl 800136e + 80017c6: f7ff fdf8 bl 80013ba } if (HAL_TIM_PWM_Init(&htim1) != HAL_OK) - 800177e: 4834 ldr r0, [pc, #208] @ (8001850 ) - 8001780: f002 ff82 bl 8004688 - 8001784: 4603 mov r3, r0 - 8001786: 2b00 cmp r3, #0 - 8001788: d001 beq.n 800178e + 80017ca: 4834 ldr r0, [pc, #208] @ (800189c ) + 80017cc: f003 f9ac bl 8004b28 + 80017d0: 4603 mov r3, r0 + 80017d2: 2b00 cmp r3, #0 + 80017d4: d001 beq.n 80017da { Error_Handler(); - 800178a: f7ff fdf0 bl 800136e + 80017d6: f7ff fdf0 bl 80013ba } sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET; - 800178e: 2300 movs r3, #0 - 8001790: 643b str r3, [r7, #64] @ 0x40 + 80017da: 2300 movs r3, #0 + 80017dc: 643b str r3, [r7, #64] @ 0x40 sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE; - 8001792: 2300 movs r3, #0 - 8001794: 647b str r3, [r7, #68] @ 0x44 + 80017de: 2300 movs r3, #0 + 80017e0: 647b str r3, [r7, #68] @ 0x44 if (HAL_TIMEx_MasterConfigSynchronization(&htim1, &sMasterConfig) != HAL_OK) - 8001796: f107 0340 add.w r3, r7, #64 @ 0x40 - 800179a: 4619 mov r1, r3 - 800179c: 482c ldr r0, [pc, #176] @ (8001850 ) - 800179e: f003 fd65 bl 800526c - 80017a2: 4603 mov r3, r0 - 80017a4: 2b00 cmp r3, #0 - 80017a6: d001 beq.n 80017ac - { - Error_Handler(); - 80017a8: f7ff fde1 bl 800136e - } - sConfigOC.OCMode = TIM_OCMODE_PWM1; - 80017ac: 2360 movs r3, #96 @ 0x60 - 80017ae: 627b str r3, [r7, #36] @ 0x24 - sConfigOC.Pulse = 0; - 80017b0: 2300 movs r3, #0 - 80017b2: 62bb str r3, [r7, #40] @ 0x28 - sConfigOC.OCPolarity = TIM_OCPOLARITY_HIGH; - 80017b4: 2300 movs r3, #0 - 80017b6: 62fb str r3, [r7, #44] @ 0x2c - sConfigOC.OCNPolarity = TIM_OCNPOLARITY_HIGH; - 80017b8: 2300 movs r3, #0 - 80017ba: 633b str r3, [r7, #48] @ 0x30 - sConfigOC.OCFastMode = TIM_OCFAST_DISABLE; - 80017bc: 2300 movs r3, #0 - 80017be: 637b str r3, [r7, #52] @ 0x34 - sConfigOC.OCIdleState = TIM_OCIDLESTATE_RESET; - 80017c0: 2300 movs r3, #0 - 80017c2: 63bb str r3, [r7, #56] @ 0x38 - sConfigOC.OCNIdleState = TIM_OCNIDLESTATE_RESET; - 80017c4: 2300 movs r3, #0 - 80017c6: 63fb str r3, [r7, #60] @ 0x3c - if (HAL_TIM_PWM_ConfigChannel(&htim1, &sConfigOC, TIM_CHANNEL_1) != HAL_OK) - 80017c8: f107 0324 add.w r3, r7, #36 @ 0x24 - 80017cc: 2200 movs r2, #0 - 80017ce: 4619 mov r1, r3 - 80017d0: 481f ldr r0, [pc, #124] @ (8001850 ) - 80017d2: f003 f8a3 bl 800491c - 80017d6: 4603 mov r3, r0 - 80017d8: 2b00 cmp r3, #0 - 80017da: d001 beq.n 80017e0 - { - Error_Handler(); - 80017dc: f7ff fdc7 bl 800136e - } - if (HAL_TIM_PWM_ConfigChannel(&htim1, &sConfigOC, TIM_CHANNEL_2) != HAL_OK) - 80017e0: f107 0324 add.w r3, r7, #36 @ 0x24 - 80017e4: 2204 movs r2, #4 + 80017e2: f107 0340 add.w r3, r7, #64 @ 0x40 80017e6: 4619 mov r1, r3 - 80017e8: 4819 ldr r0, [pc, #100] @ (8001850 ) - 80017ea: f003 f897 bl 800491c + 80017e8: 482c ldr r0, [pc, #176] @ (800189c ) + 80017ea: f003 ff8f bl 800570c 80017ee: 4603 mov r3, r0 80017f0: 2b00 cmp r3, #0 - 80017f2: d001 beq.n 80017f8 + 80017f2: d001 beq.n 80017f8 { Error_Handler(); - 80017f4: f7ff fdbb bl 800136e + 80017f4: f7ff fde1 bl 80013ba + } + sConfigOC.OCMode = TIM_OCMODE_PWM1; + 80017f8: 2360 movs r3, #96 @ 0x60 + 80017fa: 627b str r3, [r7, #36] @ 0x24 + sConfigOC.Pulse = 0; + 80017fc: 2300 movs r3, #0 + 80017fe: 62bb str r3, [r7, #40] @ 0x28 + sConfigOC.OCPolarity = TIM_OCPOLARITY_HIGH; + 8001800: 2300 movs r3, #0 + 8001802: 62fb str r3, [r7, #44] @ 0x2c + sConfigOC.OCNPolarity = TIM_OCNPOLARITY_HIGH; + 8001804: 2300 movs r3, #0 + 8001806: 633b str r3, [r7, #48] @ 0x30 + sConfigOC.OCFastMode = TIM_OCFAST_DISABLE; + 8001808: 2300 movs r3, #0 + 800180a: 637b str r3, [r7, #52] @ 0x34 + sConfigOC.OCIdleState = TIM_OCIDLESTATE_RESET; + 800180c: 2300 movs r3, #0 + 800180e: 63bb str r3, [r7, #56] @ 0x38 + sConfigOC.OCNIdleState = TIM_OCNIDLESTATE_RESET; + 8001810: 2300 movs r3, #0 + 8001812: 63fb str r3, [r7, #60] @ 0x3c + if (HAL_TIM_PWM_ConfigChannel(&htim1, &sConfigOC, TIM_CHANNEL_1) != HAL_OK) + 8001814: f107 0324 add.w r3, r7, #36 @ 0x24 + 8001818: 2200 movs r2, #0 + 800181a: 4619 mov r1, r3 + 800181c: 481f ldr r0, [pc, #124] @ (800189c ) + 800181e: f003 facd bl 8004dbc + 8001822: 4603 mov r3, r0 + 8001824: 2b00 cmp r3, #0 + 8001826: d001 beq.n 800182c + { + Error_Handler(); + 8001828: f7ff fdc7 bl 80013ba + } + if (HAL_TIM_PWM_ConfigChannel(&htim1, &sConfigOC, TIM_CHANNEL_2) != HAL_OK) + 800182c: f107 0324 add.w r3, r7, #36 @ 0x24 + 8001830: 2204 movs r2, #4 + 8001832: 4619 mov r1, r3 + 8001834: 4819 ldr r0, [pc, #100] @ (800189c ) + 8001836: f003 fac1 bl 8004dbc + 800183a: 4603 mov r3, r0 + 800183c: 2b00 cmp r3, #0 + 800183e: d001 beq.n 8001844 + { + Error_Handler(); + 8001840: f7ff fdbb bl 80013ba } if (HAL_TIM_PWM_ConfigChannel(&htim1, &sConfigOC, TIM_CHANNEL_3) != HAL_OK) - 80017f8: f107 0324 add.w r3, r7, #36 @ 0x24 - 80017fc: 2208 movs r2, #8 - 80017fe: 4619 mov r1, r3 - 8001800: 4813 ldr r0, [pc, #76] @ (8001850 ) - 8001802: f003 f88b bl 800491c - 8001806: 4603 mov r3, r0 - 8001808: 2b00 cmp r3, #0 - 800180a: d001 beq.n 8001810 + 8001844: f107 0324 add.w r3, r7, #36 @ 0x24 + 8001848: 2208 movs r2, #8 + 800184a: 4619 mov r1, r3 + 800184c: 4813 ldr r0, [pc, #76] @ (800189c ) + 800184e: f003 fab5 bl 8004dbc + 8001852: 4603 mov r3, r0 + 8001854: 2b00 cmp r3, #0 + 8001856: d001 beq.n 800185c { Error_Handler(); - 800180c: f7ff fdaf bl 800136e + 8001858: f7ff fdaf bl 80013ba } sBreakDeadTimeConfig.OffStateRunMode = TIM_OSSR_DISABLE; - 8001810: 2300 movs r3, #0 - 8001812: 607b str r3, [r7, #4] + 800185c: 2300 movs r3, #0 + 800185e: 607b str r3, [r7, #4] sBreakDeadTimeConfig.OffStateIDLEMode = TIM_OSSI_DISABLE; - 8001814: 2300 movs r3, #0 - 8001816: 60bb str r3, [r7, #8] + 8001860: 2300 movs r3, #0 + 8001862: 60bb str r3, [r7, #8] sBreakDeadTimeConfig.LockLevel = TIM_LOCKLEVEL_OFF; - 8001818: 2300 movs r3, #0 - 800181a: 60fb str r3, [r7, #12] + 8001864: 2300 movs r3, #0 + 8001866: 60fb str r3, [r7, #12] sBreakDeadTimeConfig.DeadTime = 0; - 800181c: 2300 movs r3, #0 - 800181e: 613b str r3, [r7, #16] + 8001868: 2300 movs r3, #0 + 800186a: 613b str r3, [r7, #16] sBreakDeadTimeConfig.BreakState = TIM_BREAK_DISABLE; - 8001820: 2300 movs r3, #0 - 8001822: 617b str r3, [r7, #20] + 800186c: 2300 movs r3, #0 + 800186e: 617b str r3, [r7, #20] sBreakDeadTimeConfig.BreakPolarity = TIM_BREAKPOLARITY_HIGH; - 8001824: f44f 5300 mov.w r3, #8192 @ 0x2000 - 8001828: 61bb str r3, [r7, #24] + 8001870: f44f 5300 mov.w r3, #8192 @ 0x2000 + 8001874: 61bb str r3, [r7, #24] sBreakDeadTimeConfig.AutomaticOutput = TIM_AUTOMATICOUTPUT_DISABLE; - 800182a: 2300 movs r3, #0 - 800182c: 623b str r3, [r7, #32] + 8001876: 2300 movs r3, #0 + 8001878: 623b str r3, [r7, #32] if (HAL_TIMEx_ConfigBreakDeadTime(&htim1, &sBreakDeadTimeConfig) != HAL_OK) - 800182e: 1d3b adds r3, r7, #4 - 8001830: 4619 mov r1, r3 - 8001832: 4807 ldr r0, [pc, #28] @ (8001850 ) - 8001834: f003 fd96 bl 8005364 - 8001838: 4603 mov r3, r0 - 800183a: 2b00 cmp r3, #0 - 800183c: d001 beq.n 8001842 + 800187a: 1d3b adds r3, r7, #4 + 800187c: 4619 mov r1, r3 + 800187e: 4807 ldr r0, [pc, #28] @ (800189c ) + 8001880: f003 ffc0 bl 8005804 + 8001884: 4603 mov r3, r0 + 8001886: 2b00 cmp r3, #0 + 8001888: d001 beq.n 800188e { Error_Handler(); - 800183e: f7ff fd96 bl 800136e + 800188a: f7ff fd96 bl 80013ba } /* USER CODE BEGIN TIM1_Init 2 */ /* USER CODE END TIM1_Init 2 */ HAL_TIM_MspPostInit(&htim1); - 8001842: 4803 ldr r0, [pc, #12] @ (8001850 ) - 8001844: f000 f8f6 bl 8001a34 + 800188e: 4803 ldr r0, [pc, #12] @ (800189c ) + 8001890: f000 f8f6 bl 8001a80 } - 8001848: bf00 nop - 800184a: 3758 adds r7, #88 @ 0x58 - 800184c: 46bd mov sp, r7 - 800184e: bd80 pop {r7, pc} - 8001850: 20000188 .word 0x20000188 - 8001854: 40010000 .word 0x40010000 + 8001894: bf00 nop + 8001896: 3758 adds r7, #88 @ 0x58 + 8001898: 46bd mov sp, r7 + 800189a: bd80 pop {r7, pc} + 800189c: 20000184 .word 0x20000184 + 80018a0: 40010000 .word 0x40010000 -08001858 : +080018a4 : /* TIM3 init function */ void MX_TIM3_Init(void) { - 8001858: b580 push {r7, lr} - 800185a: b086 sub sp, #24 - 800185c: af00 add r7, sp, #0 + 80018a4: b580 push {r7, lr} + 80018a6: b086 sub sp, #24 + 80018a8: af00 add r7, sp, #0 /* USER CODE BEGIN TIM3_Init 0 */ /* USER CODE END TIM3_Init 0 */ TIM_ClockConfigTypeDef sClockSourceConfig = {0}; - 800185e: f107 0308 add.w r3, r7, #8 - 8001862: 2200 movs r2, #0 - 8001864: 601a str r2, [r3, #0] - 8001866: 605a str r2, [r3, #4] - 8001868: 609a str r2, [r3, #8] - 800186a: 60da str r2, [r3, #12] + 80018aa: f107 0308 add.w r3, r7, #8 + 80018ae: 2200 movs r2, #0 + 80018b0: 601a str r2, [r3, #0] + 80018b2: 605a str r2, [r3, #4] + 80018b4: 609a str r2, [r3, #8] + 80018b6: 60da str r2, [r3, #12] TIM_MasterConfigTypeDef sMasterConfig = {0}; - 800186c: 463b mov r3, r7 - 800186e: 2200 movs r2, #0 - 8001870: 601a str r2, [r3, #0] - 8001872: 605a str r2, [r3, #4] + 80018b8: 463b mov r3, r7 + 80018ba: 2200 movs r2, #0 + 80018bc: 601a str r2, [r3, #0] + 80018be: 605a str r2, [r3, #4] /* USER CODE BEGIN TIM3_Init 1 */ /* USER CODE END TIM3_Init 1 */ htim3.Instance = TIM3; - 8001874: 4b1c ldr r3, [pc, #112] @ (80018e8 ) - 8001876: 4a1d ldr r2, [pc, #116] @ (80018ec ) - 8001878: 601a str r2, [r3, #0] + 80018c0: 4b1c ldr r3, [pc, #112] @ (8001934 ) + 80018c2: 4a1d ldr r2, [pc, #116] @ (8001938 ) + 80018c4: 601a str r2, [r3, #0] htim3.Init.Prescaler = 89; - 800187a: 4b1b ldr r3, [pc, #108] @ (80018e8 ) - 800187c: 2259 movs r2, #89 @ 0x59 - 800187e: 605a str r2, [r3, #4] + 80018c6: 4b1b ldr r3, [pc, #108] @ (8001934 ) + 80018c8: 2259 movs r2, #89 @ 0x59 + 80018ca: 605a str r2, [r3, #4] htim3.Init.CounterMode = TIM_COUNTERMODE_UP; - 8001880: 4b19 ldr r3, [pc, #100] @ (80018e8 ) - 8001882: 2200 movs r2, #0 - 8001884: 609a str r2, [r3, #8] + 80018cc: 4b19 ldr r3, [pc, #100] @ (8001934 ) + 80018ce: 2200 movs r2, #0 + 80018d0: 609a str r2, [r3, #8] htim3.Init.Period = 99; - 8001886: 4b18 ldr r3, [pc, #96] @ (80018e8 ) - 8001888: 2263 movs r2, #99 @ 0x63 - 800188a: 60da str r2, [r3, #12] + 80018d2: 4b18 ldr r3, [pc, #96] @ (8001934 ) + 80018d4: 2263 movs r2, #99 @ 0x63 + 80018d6: 60da str r2, [r3, #12] htim3.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1; - 800188c: 4b16 ldr r3, [pc, #88] @ (80018e8 ) - 800188e: 2200 movs r2, #0 - 8001890: 611a str r2, [r3, #16] + 80018d8: 4b16 ldr r3, [pc, #88] @ (8001934 ) + 80018da: 2200 movs r2, #0 + 80018dc: 611a str r2, [r3, #16] htim3.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE; - 8001892: 4b15 ldr r3, [pc, #84] @ (80018e8 ) - 8001894: 2200 movs r2, #0 - 8001896: 619a str r2, [r3, #24] + 80018de: 4b15 ldr r3, [pc, #84] @ (8001934 ) + 80018e0: 2200 movs r2, #0 + 80018e2: 619a str r2, [r3, #24] if (HAL_TIM_Base_Init(&htim3) != HAL_OK) - 8001898: 4813 ldr r0, [pc, #76] @ (80018e8 ) - 800189a: f002 fe35 bl 8004508 - 800189e: 4603 mov r3, r0 - 80018a0: 2b00 cmp r3, #0 - 80018a2: d001 beq.n 80018a8 + 80018e4: 4813 ldr r0, [pc, #76] @ (8001934 ) + 80018e6: f003 f85f bl 80049a8 + 80018ea: 4603 mov r3, r0 + 80018ec: 2b00 cmp r3, #0 + 80018ee: d001 beq.n 80018f4 { Error_Handler(); - 80018a4: f7ff fd63 bl 800136e + 80018f0: f7ff fd63 bl 80013ba } sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL; - 80018a8: f44f 5380 mov.w r3, #4096 @ 0x1000 - 80018ac: 60bb str r3, [r7, #8] + 80018f4: f44f 5380 mov.w r3, #4096 @ 0x1000 + 80018f8: 60bb str r3, [r7, #8] if (HAL_TIM_ConfigClockSource(&htim3, &sClockSourceConfig) != HAL_OK) - 80018ae: f107 0308 add.w r3, r7, #8 - 80018b2: 4619 mov r1, r3 - 80018b4: 480c ldr r0, [pc, #48] @ (80018e8 ) - 80018b6: f003 f8f3 bl 8004aa0 - 80018ba: 4603 mov r3, r0 - 80018bc: 2b00 cmp r3, #0 - 80018be: d001 beq.n 80018c4 + 80018fa: f107 0308 add.w r3, r7, #8 + 80018fe: 4619 mov r1, r3 + 8001900: 480c ldr r0, [pc, #48] @ (8001934 ) + 8001902: f003 fb1d bl 8004f40 + 8001906: 4603 mov r3, r0 + 8001908: 2b00 cmp r3, #0 + 800190a: d001 beq.n 8001910 { Error_Handler(); - 80018c0: f7ff fd55 bl 800136e + 800190c: f7ff fd55 bl 80013ba } sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET; - 80018c4: 2300 movs r3, #0 - 80018c6: 603b str r3, [r7, #0] + 8001910: 2300 movs r3, #0 + 8001912: 603b str r3, [r7, #0] sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE; - 80018c8: 2300 movs r3, #0 - 80018ca: 607b str r3, [r7, #4] + 8001914: 2300 movs r3, #0 + 8001916: 607b str r3, [r7, #4] if (HAL_TIMEx_MasterConfigSynchronization(&htim3, &sMasterConfig) != HAL_OK) - 80018cc: 463b mov r3, r7 - 80018ce: 4619 mov r1, r3 - 80018d0: 4805 ldr r0, [pc, #20] @ (80018e8 ) - 80018d2: f003 fccb bl 800526c - 80018d6: 4603 mov r3, r0 - 80018d8: 2b00 cmp r3, #0 - 80018da: d001 beq.n 80018e0 + 8001918: 463b mov r3, r7 + 800191a: 4619 mov r1, r3 + 800191c: 4805 ldr r0, [pc, #20] @ (8001934 ) + 800191e: f003 fef5 bl 800570c + 8001922: 4603 mov r3, r0 + 8001924: 2b00 cmp r3, #0 + 8001926: d001 beq.n 800192c { Error_Handler(); - 80018dc: f7ff fd47 bl 800136e + 8001928: f7ff fd47 bl 80013ba } /* USER CODE BEGIN TIM3_Init 2 */ /* USER CODE END TIM3_Init 2 */ } - 80018e0: bf00 nop - 80018e2: 3718 adds r7, #24 - 80018e4: 46bd mov sp, r7 - 80018e6: bd80 pop {r7, pc} - 80018e8: 200001d0 .word 0x200001d0 - 80018ec: 40000400 .word 0x40000400 + 800192c: bf00 nop + 800192e: 3718 adds r7, #24 + 8001930: 46bd mov sp, r7 + 8001932: bd80 pop {r7, pc} + 8001934: 200001cc .word 0x200001cc + 8001938: 40000400 .word 0x40000400 -080018f0 : +0800193c : /* TIM5 init function */ void MX_TIM5_Init(void) { - 80018f0: b580 push {r7, lr} - 80018f2: b086 sub sp, #24 - 80018f4: af00 add r7, sp, #0 + 800193c: b580 push {r7, lr} + 800193e: b086 sub sp, #24 + 8001940: af00 add r7, sp, #0 /* USER CODE BEGIN TIM5_Init 0 */ /* USER CODE END TIM5_Init 0 */ TIM_ClockConfigTypeDef sClockSourceConfig = {0}; - 80018f6: f107 0308 add.w r3, r7, #8 - 80018fa: 2200 movs r2, #0 - 80018fc: 601a str r2, [r3, #0] - 80018fe: 605a str r2, [r3, #4] - 8001900: 609a str r2, [r3, #8] - 8001902: 60da str r2, [r3, #12] + 8001942: f107 0308 add.w r3, r7, #8 + 8001946: 2200 movs r2, #0 + 8001948: 601a str r2, [r3, #0] + 800194a: 605a str r2, [r3, #4] + 800194c: 609a str r2, [r3, #8] + 800194e: 60da str r2, [r3, #12] TIM_MasterConfigTypeDef sMasterConfig = {0}; - 8001904: 463b mov r3, r7 - 8001906: 2200 movs r2, #0 - 8001908: 601a str r2, [r3, #0] - 800190a: 605a str r2, [r3, #4] + 8001950: 463b mov r3, r7 + 8001952: 2200 movs r2, #0 + 8001954: 601a str r2, [r3, #0] + 8001956: 605a str r2, [r3, #4] /* USER CODE BEGIN TIM5_Init 1 */ /* USER CODE END TIM5_Init 1 */ htim5.Instance = TIM5; - 800190c: 4b1d ldr r3, [pc, #116] @ (8001984 ) - 800190e: 4a1e ldr r2, [pc, #120] @ (8001988 ) - 8001910: 601a str r2, [r3, #0] + 8001958: 4b1d ldr r3, [pc, #116] @ (80019d0 ) + 800195a: 4a1e ldr r2, [pc, #120] @ (80019d4 ) + 800195c: 601a str r2, [r3, #0] htim5.Init.Prescaler = 0; - 8001912: 4b1c ldr r3, [pc, #112] @ (8001984 ) - 8001914: 2200 movs r2, #0 - 8001916: 605a str r2, [r3, #4] + 800195e: 4b1c ldr r3, [pc, #112] @ (80019d0 ) + 8001960: 2200 movs r2, #0 + 8001962: 605a str r2, [r3, #4] htim5.Init.CounterMode = TIM_COUNTERMODE_UP; - 8001918: 4b1a ldr r3, [pc, #104] @ (8001984 ) - 800191a: 2200 movs r2, #0 - 800191c: 609a str r2, [r3, #8] + 8001964: 4b1a ldr r3, [pc, #104] @ (80019d0 ) + 8001966: 2200 movs r2, #0 + 8001968: 609a str r2, [r3, #8] htim5.Init.Period = 4294967295; - 800191e: 4b19 ldr r3, [pc, #100] @ (8001984 ) - 8001920: f04f 32ff mov.w r2, #4294967295 - 8001924: 60da str r2, [r3, #12] + 800196a: 4b19 ldr r3, [pc, #100] @ (80019d0 ) + 800196c: f04f 32ff mov.w r2, #4294967295 + 8001970: 60da str r2, [r3, #12] htim5.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1; - 8001926: 4b17 ldr r3, [pc, #92] @ (8001984 ) - 8001928: 2200 movs r2, #0 - 800192a: 611a str r2, [r3, #16] + 8001972: 4b17 ldr r3, [pc, #92] @ (80019d0 ) + 8001974: 2200 movs r2, #0 + 8001976: 611a str r2, [r3, #16] htim5.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE; - 800192c: 4b15 ldr r3, [pc, #84] @ (8001984 ) - 800192e: 2200 movs r2, #0 - 8001930: 619a str r2, [r3, #24] + 8001978: 4b15 ldr r3, [pc, #84] @ (80019d0 ) + 800197a: 2200 movs r2, #0 + 800197c: 619a str r2, [r3, #24] if (HAL_TIM_Base_Init(&htim5) != HAL_OK) - 8001932: 4814 ldr r0, [pc, #80] @ (8001984 ) - 8001934: f002 fde8 bl 8004508 - 8001938: 4603 mov r3, r0 - 800193a: 2b00 cmp r3, #0 - 800193c: d001 beq.n 8001942 + 800197e: 4814 ldr r0, [pc, #80] @ (80019d0 ) + 8001980: f003 f812 bl 80049a8 + 8001984: 4603 mov r3, r0 + 8001986: 2b00 cmp r3, #0 + 8001988: d001 beq.n 800198e { Error_Handler(); - 800193e: f7ff fd16 bl 800136e + 800198a: f7ff fd16 bl 80013ba } sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL; - 8001942: f44f 5380 mov.w r3, #4096 @ 0x1000 - 8001946: 60bb str r3, [r7, #8] + 800198e: f44f 5380 mov.w r3, #4096 @ 0x1000 + 8001992: 60bb str r3, [r7, #8] if (HAL_TIM_ConfigClockSource(&htim5, &sClockSourceConfig) != HAL_OK) - 8001948: f107 0308 add.w r3, r7, #8 - 800194c: 4619 mov r1, r3 - 800194e: 480d ldr r0, [pc, #52] @ (8001984 ) - 8001950: f003 f8a6 bl 8004aa0 - 8001954: 4603 mov r3, r0 - 8001956: 2b00 cmp r3, #0 - 8001958: d001 beq.n 800195e + 8001994: f107 0308 add.w r3, r7, #8 + 8001998: 4619 mov r1, r3 + 800199a: 480d ldr r0, [pc, #52] @ (80019d0 ) + 800199c: f003 fad0 bl 8004f40 + 80019a0: 4603 mov r3, r0 + 80019a2: 2b00 cmp r3, #0 + 80019a4: d001 beq.n 80019aa { Error_Handler(); - 800195a: f7ff fd08 bl 800136e + 80019a6: f7ff fd08 bl 80013ba } sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET; - 800195e: 2300 movs r3, #0 - 8001960: 603b str r3, [r7, #0] + 80019aa: 2300 movs r3, #0 + 80019ac: 603b str r3, [r7, #0] sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE; - 8001962: 2300 movs r3, #0 - 8001964: 607b str r3, [r7, #4] + 80019ae: 2300 movs r3, #0 + 80019b0: 607b str r3, [r7, #4] if (HAL_TIMEx_MasterConfigSynchronization(&htim5, &sMasterConfig) != HAL_OK) - 8001966: 463b mov r3, r7 - 8001968: 4619 mov r1, r3 - 800196a: 4806 ldr r0, [pc, #24] @ (8001984 ) - 800196c: f003 fc7e bl 800526c - 8001970: 4603 mov r3, r0 - 8001972: 2b00 cmp r3, #0 - 8001974: d001 beq.n 800197a + 80019b2: 463b mov r3, r7 + 80019b4: 4619 mov r1, r3 + 80019b6: 4806 ldr r0, [pc, #24] @ (80019d0 ) + 80019b8: f003 fea8 bl 800570c + 80019bc: 4603 mov r3, r0 + 80019be: 2b00 cmp r3, #0 + 80019c0: d001 beq.n 80019c6 { Error_Handler(); - 8001976: f7ff fcfa bl 800136e + 80019c2: f7ff fcfa bl 80013ba } /* USER CODE BEGIN TIM5_Init 2 */ /* USER CODE END TIM5_Init 2 */ } - 800197a: bf00 nop - 800197c: 3718 adds r7, #24 - 800197e: 46bd mov sp, r7 - 8001980: bd80 pop {r7, pc} - 8001982: bf00 nop - 8001984: 20000218 .word 0x20000218 - 8001988: 40000c00 .word 0x40000c00 + 80019c6: bf00 nop + 80019c8: 3718 adds r7, #24 + 80019ca: 46bd mov sp, r7 + 80019cc: bd80 pop {r7, pc} + 80019ce: bf00 nop + 80019d0: 20000214 .word 0x20000214 + 80019d4: 40000c00 .word 0x40000c00 -0800198c : +080019d8 : void HAL_TIM_Base_MspInit(TIM_HandleTypeDef* tim_baseHandle) { - 800198c: b580 push {r7, lr} - 800198e: b086 sub sp, #24 - 8001990: af00 add r7, sp, #0 - 8001992: 6078 str r0, [r7, #4] + 80019d8: b580 push {r7, lr} + 80019da: b086 sub sp, #24 + 80019dc: af00 add r7, sp, #0 + 80019de: 6078 str r0, [r7, #4] if(tim_baseHandle->Instance==TIM1) - 8001994: 687b ldr r3, [r7, #4] - 8001996: 681b ldr r3, [r3, #0] - 8001998: 4a22 ldr r2, [pc, #136] @ (8001a24 ) - 800199a: 4293 cmp r3, r2 - 800199c: d10e bne.n 80019bc + 80019e0: 687b ldr r3, [r7, #4] + 80019e2: 681b ldr r3, [r3, #0] + 80019e4: 4a22 ldr r2, [pc, #136] @ (8001a70 ) + 80019e6: 4293 cmp r3, r2 + 80019e8: d10e bne.n 8001a08 { /* USER CODE BEGIN TIM1_MspInit 0 */ /* USER CODE END TIM1_MspInit 0 */ /* TIM1 clock enable */ __HAL_RCC_TIM1_CLK_ENABLE(); - 800199e: 2300 movs r3, #0 - 80019a0: 617b str r3, [r7, #20] - 80019a2: 4b21 ldr r3, [pc, #132] @ (8001a28 ) - 80019a4: 6c5b ldr r3, [r3, #68] @ 0x44 - 80019a6: 4a20 ldr r2, [pc, #128] @ (8001a28 ) - 80019a8: f043 0301 orr.w r3, r3, #1 - 80019ac: 6453 str r3, [r2, #68] @ 0x44 - 80019ae: 4b1e ldr r3, [pc, #120] @ (8001a28 ) - 80019b0: 6c5b ldr r3, [r3, #68] @ 0x44 - 80019b2: f003 0301 and.w r3, r3, #1 - 80019b6: 617b str r3, [r7, #20] - 80019b8: 697b ldr r3, [r7, #20] + 80019ea: 2300 movs r3, #0 + 80019ec: 617b str r3, [r7, #20] + 80019ee: 4b21 ldr r3, [pc, #132] @ (8001a74 ) + 80019f0: 6c5b ldr r3, [r3, #68] @ 0x44 + 80019f2: 4a20 ldr r2, [pc, #128] @ (8001a74 ) + 80019f4: f043 0301 orr.w r3, r3, #1 + 80019f8: 6453 str r3, [r2, #68] @ 0x44 + 80019fa: 4b1e ldr r3, [pc, #120] @ (8001a74 ) + 80019fc: 6c5b ldr r3, [r3, #68] @ 0x44 + 80019fe: f003 0301 and.w r3, r3, #1 + 8001a02: 617b str r3, [r7, #20] + 8001a04: 697b ldr r3, [r7, #20] __HAL_RCC_TIM5_CLK_ENABLE(); /* USER CODE BEGIN TIM5_MspInit 1 */ /* USER CODE END TIM5_MspInit 1 */ } } - 80019ba: e02e b.n 8001a1a + 8001a06: e02e b.n 8001a66 else if(tim_baseHandle->Instance==TIM3) - 80019bc: 687b ldr r3, [r7, #4] - 80019be: 681b ldr r3, [r3, #0] - 80019c0: 4a1a ldr r2, [pc, #104] @ (8001a2c ) - 80019c2: 4293 cmp r3, r2 - 80019c4: d116 bne.n 80019f4 + 8001a08: 687b ldr r3, [r7, #4] + 8001a0a: 681b ldr r3, [r3, #0] + 8001a0c: 4a1a ldr r2, [pc, #104] @ (8001a78 ) + 8001a0e: 4293 cmp r3, r2 + 8001a10: d116 bne.n 8001a40 __HAL_RCC_TIM3_CLK_ENABLE(); - 80019c6: 2300 movs r3, #0 - 80019c8: 613b str r3, [r7, #16] - 80019ca: 4b17 ldr r3, [pc, #92] @ (8001a28 ) - 80019cc: 6c1b ldr r3, [r3, #64] @ 0x40 - 80019ce: 4a16 ldr r2, [pc, #88] @ (8001a28 ) - 80019d0: f043 0302 orr.w r3, r3, #2 - 80019d4: 6413 str r3, [r2, #64] @ 0x40 - 80019d6: 4b14 ldr r3, [pc, #80] @ (8001a28 ) - 80019d8: 6c1b ldr r3, [r3, #64] @ 0x40 - 80019da: f003 0302 and.w r3, r3, #2 - 80019de: 613b str r3, [r7, #16] - 80019e0: 693b ldr r3, [r7, #16] + 8001a12: 2300 movs r3, #0 + 8001a14: 613b str r3, [r7, #16] + 8001a16: 4b17 ldr r3, [pc, #92] @ (8001a74 ) + 8001a18: 6c1b ldr r3, [r3, #64] @ 0x40 + 8001a1a: 4a16 ldr r2, [pc, #88] @ (8001a74 ) + 8001a1c: f043 0302 orr.w r3, r3, #2 + 8001a20: 6413 str r3, [r2, #64] @ 0x40 + 8001a22: 4b14 ldr r3, [pc, #80] @ (8001a74 ) + 8001a24: 6c1b ldr r3, [r3, #64] @ 0x40 + 8001a26: f003 0302 and.w r3, r3, #2 + 8001a2a: 613b str r3, [r7, #16] + 8001a2c: 693b ldr r3, [r7, #16] HAL_NVIC_SetPriority(TIM3_IRQn, 0, 0); - 80019e2: 2200 movs r2, #0 - 80019e4: 2100 movs r1, #0 - 80019e6: 201d movs r0, #29 - 80019e8: f001 f8d8 bl 8002b9c + 8001a2e: 2200 movs r2, #0 + 8001a30: 2100 movs r1, #0 + 8001a32: 201d movs r0, #29 + 8001a34: f001 fa0a bl 8002e4c HAL_NVIC_EnableIRQ(TIM3_IRQn); - 80019ec: 201d movs r0, #29 - 80019ee: f001 f8f1 bl 8002bd4 + 8001a38: 201d movs r0, #29 + 8001a3a: f001 fa23 bl 8002e84 } - 80019f2: e012 b.n 8001a1a + 8001a3e: e012 b.n 8001a66 else if(tim_baseHandle->Instance==TIM5) - 80019f4: 687b ldr r3, [r7, #4] - 80019f6: 681b ldr r3, [r3, #0] - 80019f8: 4a0d ldr r2, [pc, #52] @ (8001a30 ) - 80019fa: 4293 cmp r3, r2 - 80019fc: d10d bne.n 8001a1a + 8001a40: 687b ldr r3, [r7, #4] + 8001a42: 681b ldr r3, [r3, #0] + 8001a44: 4a0d ldr r2, [pc, #52] @ (8001a7c ) + 8001a46: 4293 cmp r3, r2 + 8001a48: d10d bne.n 8001a66 __HAL_RCC_TIM5_CLK_ENABLE(); - 80019fe: 2300 movs r3, #0 - 8001a00: 60fb str r3, [r7, #12] - 8001a02: 4b09 ldr r3, [pc, #36] @ (8001a28 ) - 8001a04: 6c1b ldr r3, [r3, #64] @ 0x40 - 8001a06: 4a08 ldr r2, [pc, #32] @ (8001a28 ) - 8001a08: f043 0308 orr.w r3, r3, #8 - 8001a0c: 6413 str r3, [r2, #64] @ 0x40 - 8001a0e: 4b06 ldr r3, [pc, #24] @ (8001a28 ) - 8001a10: 6c1b ldr r3, [r3, #64] @ 0x40 - 8001a12: f003 0308 and.w r3, r3, #8 - 8001a16: 60fb str r3, [r7, #12] - 8001a18: 68fb ldr r3, [r7, #12] + 8001a4a: 2300 movs r3, #0 + 8001a4c: 60fb str r3, [r7, #12] + 8001a4e: 4b09 ldr r3, [pc, #36] @ (8001a74 ) + 8001a50: 6c1b ldr r3, [r3, #64] @ 0x40 + 8001a52: 4a08 ldr r2, [pc, #32] @ (8001a74 ) + 8001a54: f043 0308 orr.w r3, r3, #8 + 8001a58: 6413 str r3, [r2, #64] @ 0x40 + 8001a5a: 4b06 ldr r3, [pc, #24] @ (8001a74 ) + 8001a5c: 6c1b ldr r3, [r3, #64] @ 0x40 + 8001a5e: f003 0308 and.w r3, r3, #8 + 8001a62: 60fb str r3, [r7, #12] + 8001a64: 68fb ldr r3, [r7, #12] } - 8001a1a: bf00 nop - 8001a1c: 3718 adds r7, #24 - 8001a1e: 46bd mov sp, r7 - 8001a20: bd80 pop {r7, pc} - 8001a22: bf00 nop - 8001a24: 40010000 .word 0x40010000 - 8001a28: 40023800 .word 0x40023800 - 8001a2c: 40000400 .word 0x40000400 - 8001a30: 40000c00 .word 0x40000c00 + 8001a66: bf00 nop + 8001a68: 3718 adds r7, #24 + 8001a6a: 46bd mov sp, r7 + 8001a6c: bd80 pop {r7, pc} + 8001a6e: bf00 nop + 8001a70: 40010000 .word 0x40010000 + 8001a74: 40023800 .word 0x40023800 + 8001a78: 40000400 .word 0x40000400 + 8001a7c: 40000c00 .word 0x40000c00 -08001a34 : +08001a80 : void HAL_TIM_MspPostInit(TIM_HandleTypeDef* timHandle) { - 8001a34: b580 push {r7, lr} - 8001a36: b088 sub sp, #32 - 8001a38: af00 add r7, sp, #0 - 8001a3a: 6078 str r0, [r7, #4] + 8001a80: b580 push {r7, lr} + 8001a82: b088 sub sp, #32 + 8001a84: af00 add r7, sp, #0 + 8001a86: 6078 str r0, [r7, #4] GPIO_InitTypeDef GPIO_InitStruct = {0}; - 8001a3c: f107 030c add.w r3, r7, #12 - 8001a40: 2200 movs r2, #0 - 8001a42: 601a str r2, [r3, #0] - 8001a44: 605a str r2, [r3, #4] - 8001a46: 609a str r2, [r3, #8] - 8001a48: 60da str r2, [r3, #12] - 8001a4a: 611a str r2, [r3, #16] + 8001a88: f107 030c add.w r3, r7, #12 + 8001a8c: 2200 movs r2, #0 + 8001a8e: 601a str r2, [r3, #0] + 8001a90: 605a str r2, [r3, #4] + 8001a92: 609a str r2, [r3, #8] + 8001a94: 60da str r2, [r3, #12] + 8001a96: 611a str r2, [r3, #16] if(timHandle->Instance==TIM1) - 8001a4c: 687b ldr r3, [r7, #4] - 8001a4e: 681b ldr r3, [r3, #0] - 8001a50: 4a12 ldr r2, [pc, #72] @ (8001a9c ) - 8001a52: 4293 cmp r3, r2 - 8001a54: d11e bne.n 8001a94 + 8001a98: 687b ldr r3, [r7, #4] + 8001a9a: 681b ldr r3, [r3, #0] + 8001a9c: 4a12 ldr r2, [pc, #72] @ (8001ae8 ) + 8001a9e: 4293 cmp r3, r2 + 8001aa0: d11e bne.n 8001ae0 { /* USER CODE BEGIN TIM1_MspPostInit 0 */ /* USER CODE END TIM1_MspPostInit 0 */ __HAL_RCC_GPIOA_CLK_ENABLE(); - 8001a56: 2300 movs r3, #0 - 8001a58: 60bb str r3, [r7, #8] - 8001a5a: 4b11 ldr r3, [pc, #68] @ (8001aa0 ) - 8001a5c: 6b1b ldr r3, [r3, #48] @ 0x30 - 8001a5e: 4a10 ldr r2, [pc, #64] @ (8001aa0 ) - 8001a60: f043 0301 orr.w r3, r3, #1 - 8001a64: 6313 str r3, [r2, #48] @ 0x30 - 8001a66: 4b0e ldr r3, [pc, #56] @ (8001aa0 ) - 8001a68: 6b1b ldr r3, [r3, #48] @ 0x30 - 8001a6a: f003 0301 and.w r3, r3, #1 - 8001a6e: 60bb str r3, [r7, #8] - 8001a70: 68bb ldr r3, [r7, #8] + 8001aa2: 2300 movs r3, #0 + 8001aa4: 60bb str r3, [r7, #8] + 8001aa6: 4b11 ldr r3, [pc, #68] @ (8001aec ) + 8001aa8: 6b1b ldr r3, [r3, #48] @ 0x30 + 8001aaa: 4a10 ldr r2, [pc, #64] @ (8001aec ) + 8001aac: f043 0301 orr.w r3, r3, #1 + 8001ab0: 6313 str r3, [r2, #48] @ 0x30 + 8001ab2: 4b0e ldr r3, [pc, #56] @ (8001aec ) + 8001ab4: 6b1b ldr r3, [r3, #48] @ 0x30 + 8001ab6: f003 0301 and.w r3, r3, #1 + 8001aba: 60bb str r3, [r7, #8] + 8001abc: 68bb ldr r3, [r7, #8] /**TIM1 GPIO Configuration PA8 ------> TIM1_CH1 PA9 ------> TIM1_CH2 PA10 ------> TIM1_CH3 */ GPIO_InitStruct.Pin = GPIO_PIN_8|GPIO_PIN_9|GPIO_PIN_10; - 8001a72: f44f 63e0 mov.w r3, #1792 @ 0x700 - 8001a76: 60fb str r3, [r7, #12] + 8001abe: f44f 63e0 mov.w r3, #1792 @ 0x700 + 8001ac2: 60fb str r3, [r7, #12] GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 8001a78: 2302 movs r3, #2 - 8001a7a: 613b str r3, [r7, #16] + 8001ac4: 2302 movs r3, #2 + 8001ac6: 613b str r3, [r7, #16] GPIO_InitStruct.Pull = GPIO_NOPULL; - 8001a7c: 2300 movs r3, #0 - 8001a7e: 617b str r3, [r7, #20] + 8001ac8: 2300 movs r3, #0 + 8001aca: 617b str r3, [r7, #20] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; - 8001a80: 2300 movs r3, #0 - 8001a82: 61bb str r3, [r7, #24] + 8001acc: 2300 movs r3, #0 + 8001ace: 61bb str r3, [r7, #24] GPIO_InitStruct.Alternate = GPIO_AF1_TIM1; - 8001a84: 2301 movs r3, #1 - 8001a86: 61fb str r3, [r7, #28] + 8001ad0: 2301 movs r3, #1 + 8001ad2: 61fb str r3, [r7, #28] HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); - 8001a88: f107 030c add.w r3, r7, #12 - 8001a8c: 4619 mov r1, r3 - 8001a8e: 4805 ldr r0, [pc, #20] @ (8001aa4 ) - 8001a90: f001 fb86 bl 80031a0 + 8001ad4: f107 030c add.w r3, r7, #12 + 8001ad8: 4619 mov r1, r3 + 8001ada: 4805 ldr r0, [pc, #20] @ (8001af0 ) + 8001adc: f001 fcb8 bl 8003450 /* USER CODE BEGIN TIM1_MspPostInit 1 */ /* USER CODE END TIM1_MspPostInit 1 */ } } - 8001a94: bf00 nop - 8001a96: 3720 adds r7, #32 - 8001a98: 46bd mov sp, r7 - 8001a9a: bd80 pop {r7, pc} - 8001a9c: 40010000 .word 0x40010000 - 8001aa0: 40023800 .word 0x40023800 - 8001aa4: 40020000 .word 0x40020000 + 8001ae0: bf00 nop + 8001ae2: 3720 adds r7, #32 + 8001ae4: 46bd mov sp, r7 + 8001ae6: bd80 pop {r7, pc} + 8001ae8: 40010000 .word 0x40010000 + 8001aec: 40023800 .word 0x40023800 + 8001af0: 40020000 .word 0x40020000 -08001aa8 : +08001af4 : UART_HandleTypeDef huart1; /* USART1 init function */ void MX_USART1_UART_Init(void) { - 8001aa8: b580 push {r7, lr} - 8001aaa: af00 add r7, sp, #0 + 8001af4: b580 push {r7, lr} + 8001af6: af00 add r7, sp, #0 /* USER CODE END USART1_Init 0 */ /* USER CODE BEGIN USART1_Init 1 */ /* USER CODE END USART1_Init 1 */ huart1.Instance = USART1; - 8001aac: 4b11 ldr r3, [pc, #68] @ (8001af4 ) - 8001aae: 4a12 ldr r2, [pc, #72] @ (8001af8 ) - 8001ab0: 601a str r2, [r3, #0] + 8001af8: 4b11 ldr r3, [pc, #68] @ (8001b40 ) + 8001afa: 4a12 ldr r2, [pc, #72] @ (8001b44 ) + 8001afc: 601a str r2, [r3, #0] huart1.Init.BaudRate = 115200; - 8001ab2: 4b10 ldr r3, [pc, #64] @ (8001af4 ) - 8001ab4: f44f 32e1 mov.w r2, #115200 @ 0x1c200 - 8001ab8: 605a str r2, [r3, #4] + 8001afe: 4b10 ldr r3, [pc, #64] @ (8001b40 ) + 8001b00: f44f 32e1 mov.w r2, #115200 @ 0x1c200 + 8001b04: 605a str r2, [r3, #4] huart1.Init.WordLength = UART_WORDLENGTH_8B; - 8001aba: 4b0e ldr r3, [pc, #56] @ (8001af4 ) - 8001abc: 2200 movs r2, #0 - 8001abe: 609a str r2, [r3, #8] + 8001b06: 4b0e ldr r3, [pc, #56] @ (8001b40 ) + 8001b08: 2200 movs r2, #0 + 8001b0a: 609a str r2, [r3, #8] huart1.Init.StopBits = UART_STOPBITS_1; - 8001ac0: 4b0c ldr r3, [pc, #48] @ (8001af4 ) - 8001ac2: 2200 movs r2, #0 - 8001ac4: 60da str r2, [r3, #12] + 8001b0c: 4b0c ldr r3, [pc, #48] @ (8001b40 ) + 8001b0e: 2200 movs r2, #0 + 8001b10: 60da str r2, [r3, #12] huart1.Init.Parity = UART_PARITY_NONE; - 8001ac6: 4b0b ldr r3, [pc, #44] @ (8001af4 ) - 8001ac8: 2200 movs r2, #0 - 8001aca: 611a str r2, [r3, #16] + 8001b12: 4b0b ldr r3, [pc, #44] @ (8001b40 ) + 8001b14: 2200 movs r2, #0 + 8001b16: 611a str r2, [r3, #16] huart1.Init.Mode = UART_MODE_TX_RX; - 8001acc: 4b09 ldr r3, [pc, #36] @ (8001af4 ) - 8001ace: 220c movs r2, #12 - 8001ad0: 615a str r2, [r3, #20] + 8001b18: 4b09 ldr r3, [pc, #36] @ (8001b40 ) + 8001b1a: 220c movs r2, #12 + 8001b1c: 615a str r2, [r3, #20] huart1.Init.HwFlowCtl = UART_HWCONTROL_NONE; - 8001ad2: 4b08 ldr r3, [pc, #32] @ (8001af4 ) - 8001ad4: 2200 movs r2, #0 - 8001ad6: 619a str r2, [r3, #24] + 8001b1e: 4b08 ldr r3, [pc, #32] @ (8001b40 ) + 8001b20: 2200 movs r2, #0 + 8001b22: 619a str r2, [r3, #24] huart1.Init.OverSampling = UART_OVERSAMPLING_16; - 8001ad8: 4b06 ldr r3, [pc, #24] @ (8001af4 ) - 8001ada: 2200 movs r2, #0 - 8001adc: 61da str r2, [r3, #28] + 8001b24: 4b06 ldr r3, [pc, #24] @ (8001b40 ) + 8001b26: 2200 movs r2, #0 + 8001b28: 61da str r2, [r3, #28] if (HAL_UART_Init(&huart1) != HAL_OK) - 8001ade: 4805 ldr r0, [pc, #20] @ (8001af4 ) - 8001ae0: f003 fca6 bl 8005430 - 8001ae4: 4603 mov r3, r0 - 8001ae6: 2b00 cmp r3, #0 - 8001ae8: d001 beq.n 8001aee + 8001b2a: 4805 ldr r0, [pc, #20] @ (8001b40 ) + 8001b2c: f003 fed0 bl 80058d0 + 8001b30: 4603 mov r3, r0 + 8001b32: 2b00 cmp r3, #0 + 8001b34: d001 beq.n 8001b3a { Error_Handler(); - 8001aea: f7ff fc40 bl 800136e + 8001b36: f7ff fc40 bl 80013ba } /* USER CODE BEGIN USART1_Init 2 */ /* USER CODE END USART1_Init 2 */ } - 8001aee: bf00 nop - 8001af0: bd80 pop {r7, pc} - 8001af2: bf00 nop - 8001af4: 20000260 .word 0x20000260 - 8001af8: 40011000 .word 0x40011000 + 8001b3a: bf00 nop + 8001b3c: bd80 pop {r7, pc} + 8001b3e: bf00 nop + 8001b40: 2000025c .word 0x2000025c + 8001b44: 40011000 .word 0x40011000 -08001afc : +08001b48 : void HAL_UART_MspInit(UART_HandleTypeDef* uartHandle) { - 8001afc: b580 push {r7, lr} - 8001afe: b08a sub sp, #40 @ 0x28 - 8001b00: af00 add r7, sp, #0 - 8001b02: 6078 str r0, [r7, #4] + 8001b48: b580 push {r7, lr} + 8001b4a: b08a sub sp, #40 @ 0x28 + 8001b4c: af00 add r7, sp, #0 + 8001b4e: 6078 str r0, [r7, #4] GPIO_InitTypeDef GPIO_InitStruct = {0}; - 8001b04: f107 0314 add.w r3, r7, #20 - 8001b08: 2200 movs r2, #0 - 8001b0a: 601a str r2, [r3, #0] - 8001b0c: 605a str r2, [r3, #4] - 8001b0e: 609a str r2, [r3, #8] - 8001b10: 60da str r2, [r3, #12] - 8001b12: 611a str r2, [r3, #16] + 8001b50: f107 0314 add.w r3, r7, #20 + 8001b54: 2200 movs r2, #0 + 8001b56: 601a str r2, [r3, #0] + 8001b58: 605a str r2, [r3, #4] + 8001b5a: 609a str r2, [r3, #8] + 8001b5c: 60da str r2, [r3, #12] + 8001b5e: 611a str r2, [r3, #16] if(uartHandle->Instance==USART1) - 8001b14: 687b ldr r3, [r7, #4] - 8001b16: 681b ldr r3, [r3, #0] - 8001b18: 4a19 ldr r2, [pc, #100] @ (8001b80 ) - 8001b1a: 4293 cmp r3, r2 - 8001b1c: d12b bne.n 8001b76 + 8001b60: 687b ldr r3, [r7, #4] + 8001b62: 681b ldr r3, [r3, #0] + 8001b64: 4a19 ldr r2, [pc, #100] @ (8001bcc ) + 8001b66: 4293 cmp r3, r2 + 8001b68: d12b bne.n 8001bc2 { /* USER CODE BEGIN USART1_MspInit 0 */ /* USER CODE END USART1_MspInit 0 */ /* USART1 clock enable */ __HAL_RCC_USART1_CLK_ENABLE(); - 8001b1e: 2300 movs r3, #0 - 8001b20: 613b str r3, [r7, #16] - 8001b22: 4b18 ldr r3, [pc, #96] @ (8001b84 ) - 8001b24: 6c5b ldr r3, [r3, #68] @ 0x44 - 8001b26: 4a17 ldr r2, [pc, #92] @ (8001b84 ) - 8001b28: f043 0310 orr.w r3, r3, #16 - 8001b2c: 6453 str r3, [r2, #68] @ 0x44 - 8001b2e: 4b15 ldr r3, [pc, #84] @ (8001b84 ) - 8001b30: 6c5b ldr r3, [r3, #68] @ 0x44 - 8001b32: f003 0310 and.w r3, r3, #16 - 8001b36: 613b str r3, [r7, #16] - 8001b38: 693b ldr r3, [r7, #16] + 8001b6a: 2300 movs r3, #0 + 8001b6c: 613b str r3, [r7, #16] + 8001b6e: 4b18 ldr r3, [pc, #96] @ (8001bd0 ) + 8001b70: 6c5b ldr r3, [r3, #68] @ 0x44 + 8001b72: 4a17 ldr r2, [pc, #92] @ (8001bd0 ) + 8001b74: f043 0310 orr.w r3, r3, #16 + 8001b78: 6453 str r3, [r2, #68] @ 0x44 + 8001b7a: 4b15 ldr r3, [pc, #84] @ (8001bd0 ) + 8001b7c: 6c5b ldr r3, [r3, #68] @ 0x44 + 8001b7e: f003 0310 and.w r3, r3, #16 + 8001b82: 613b str r3, [r7, #16] + 8001b84: 693b ldr r3, [r7, #16] __HAL_RCC_GPIOB_CLK_ENABLE(); - 8001b3a: 2300 movs r3, #0 - 8001b3c: 60fb str r3, [r7, #12] - 8001b3e: 4b11 ldr r3, [pc, #68] @ (8001b84 ) - 8001b40: 6b1b ldr r3, [r3, #48] @ 0x30 - 8001b42: 4a10 ldr r2, [pc, #64] @ (8001b84 ) - 8001b44: f043 0302 orr.w r3, r3, #2 - 8001b48: 6313 str r3, [r2, #48] @ 0x30 - 8001b4a: 4b0e ldr r3, [pc, #56] @ (8001b84 ) - 8001b4c: 6b1b ldr r3, [r3, #48] @ 0x30 - 8001b4e: f003 0302 and.w r3, r3, #2 - 8001b52: 60fb str r3, [r7, #12] - 8001b54: 68fb ldr r3, [r7, #12] + 8001b86: 2300 movs r3, #0 + 8001b88: 60fb str r3, [r7, #12] + 8001b8a: 4b11 ldr r3, [pc, #68] @ (8001bd0 ) + 8001b8c: 6b1b ldr r3, [r3, #48] @ 0x30 + 8001b8e: 4a10 ldr r2, [pc, #64] @ (8001bd0 ) + 8001b90: f043 0302 orr.w r3, r3, #2 + 8001b94: 6313 str r3, [r2, #48] @ 0x30 + 8001b96: 4b0e ldr r3, [pc, #56] @ (8001bd0 ) + 8001b98: 6b1b ldr r3, [r3, #48] @ 0x30 + 8001b9a: f003 0302 and.w r3, r3, #2 + 8001b9e: 60fb str r3, [r7, #12] + 8001ba0: 68fb ldr r3, [r7, #12] /**USART1 GPIO Configuration PB6 ------> USART1_TX PB7 ------> USART1_RX */ GPIO_InitStruct.Pin = GPIO_PIN_6|GPIO_PIN_7; - 8001b56: 23c0 movs r3, #192 @ 0xc0 - 8001b58: 617b str r3, [r7, #20] + 8001ba2: 23c0 movs r3, #192 @ 0xc0 + 8001ba4: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 8001b5a: 2302 movs r3, #2 - 8001b5c: 61bb str r3, [r7, #24] + 8001ba6: 2302 movs r3, #2 + 8001ba8: 61bb str r3, [r7, #24] GPIO_InitStruct.Pull = GPIO_NOPULL; - 8001b5e: 2300 movs r3, #0 - 8001b60: 61fb str r3, [r7, #28] + 8001baa: 2300 movs r3, #0 + 8001bac: 61fb str r3, [r7, #28] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - 8001b62: 2303 movs r3, #3 - 8001b64: 623b str r3, [r7, #32] + 8001bae: 2303 movs r3, #3 + 8001bb0: 623b str r3, [r7, #32] GPIO_InitStruct.Alternate = GPIO_AF7_USART1; - 8001b66: 2307 movs r3, #7 - 8001b68: 627b str r3, [r7, #36] @ 0x24 + 8001bb2: 2307 movs r3, #7 + 8001bb4: 627b str r3, [r7, #36] @ 0x24 HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); - 8001b6a: f107 0314 add.w r3, r7, #20 - 8001b6e: 4619 mov r1, r3 - 8001b70: 4805 ldr r0, [pc, #20] @ (8001b88 ) - 8001b72: f001 fb15 bl 80031a0 + 8001bb6: f107 0314 add.w r3, r7, #20 + 8001bba: 4619 mov r1, r3 + 8001bbc: 4805 ldr r0, [pc, #20] @ (8001bd4 ) + 8001bbe: f001 fc47 bl 8003450 /* USER CODE BEGIN USART1_MspInit 1 */ /* USER CODE END USART1_MspInit 1 */ } } - 8001b76: bf00 nop - 8001b78: 3728 adds r7, #40 @ 0x28 - 8001b7a: 46bd mov sp, r7 - 8001b7c: bd80 pop {r7, pc} - 8001b7e: bf00 nop - 8001b80: 40011000 .word 0x40011000 - 8001b84: 40023800 .word 0x40023800 - 8001b88: 40020400 .word 0x40020400 + 8001bc2: bf00 nop + 8001bc4: 3728 adds r7, #40 @ 0x28 + 8001bc6: 46bd mov sp, r7 + 8001bc8: bd80 pop {r7, pc} + 8001bca: bf00 nop + 8001bcc: 40011000 .word 0x40011000 + 8001bd0: 40023800 .word 0x40023800 + 8001bd4: 40020400 .word 0x40020400 -08001b8c : +08001bd8 : .section .text.Reset_Handler .weak Reset_Handler .type Reset_Handler, %function Reset_Handler: ldr sp, =_estack /* set stack pointer */ - 8001b8c: f8df d034 ldr.w sp, [pc, #52] @ 8001bc4 + 8001bd8: f8df d034 ldr.w sp, [pc, #52] @ 8001c10 /* Call the clock system initialization function.*/ bl SystemInit - 8001b90: f7ff fd98 bl 80016c4 + 8001bdc: f7ff fd98 bl 8001710 /* Copy the data segment initializers from flash to SRAM */ ldr r0, =_sdata - 8001b94: 480c ldr r0, [pc, #48] @ (8001bc8 ) + 8001be0: 480c ldr r0, [pc, #48] @ (8001c14 ) ldr r1, =_edata - 8001b96: 490d ldr r1, [pc, #52] @ (8001bcc ) + 8001be2: 490d ldr r1, [pc, #52] @ (8001c18 ) ldr r2, =_sidata - 8001b98: 4a0d ldr r2, [pc, #52] @ (8001bd0 ) + 8001be4: 4a0d ldr r2, [pc, #52] @ (8001c1c ) movs r3, #0 - 8001b9a: 2300 movs r3, #0 + 8001be6: 2300 movs r3, #0 b LoopCopyDataInit - 8001b9c: e002 b.n 8001ba4 + 8001be8: e002 b.n 8001bf0 -08001b9e : +08001bea : CopyDataInit: ldr r4, [r2, r3] - 8001b9e: 58d4 ldr r4, [r2, r3] + 8001bea: 58d4 ldr r4, [r2, r3] str r4, [r0, r3] - 8001ba0: 50c4 str r4, [r0, r3] + 8001bec: 50c4 str r4, [r0, r3] adds r3, r3, #4 - 8001ba2: 3304 adds r3, #4 + 8001bee: 3304 adds r3, #4 -08001ba4 : +08001bf0 : LoopCopyDataInit: adds r4, r0, r3 - 8001ba4: 18c4 adds r4, r0, r3 + 8001bf0: 18c4 adds r4, r0, r3 cmp r4, r1 - 8001ba6: 428c cmp r4, r1 + 8001bf2: 428c cmp r4, r1 bcc CopyDataInit - 8001ba8: d3f9 bcc.n 8001b9e + 8001bf4: d3f9 bcc.n 8001bea /* Zero fill the bss segment. */ ldr r2, =_sbss - 8001baa: 4a0a ldr r2, [pc, #40] @ (8001bd4 ) + 8001bf6: 4a0a ldr r2, [pc, #40] @ (8001c20 ) ldr r4, =_ebss - 8001bac: 4c0a ldr r4, [pc, #40] @ (8001bd8 ) + 8001bf8: 4c0a ldr r4, [pc, #40] @ (8001c24 ) movs r3, #0 - 8001bae: 2300 movs r3, #0 + 8001bfa: 2300 movs r3, #0 b LoopFillZerobss - 8001bb0: e001 b.n 8001bb6 + 8001bfc: e001 b.n 8001c02 -08001bb2 : +08001bfe : FillZerobss: str r3, [r2] - 8001bb2: 6013 str r3, [r2, #0] + 8001bfe: 6013 str r3, [r2, #0] adds r2, r2, #4 - 8001bb4: 3204 adds r2, #4 + 8001c00: 3204 adds r2, #4 -08001bb6 : +08001c02 : LoopFillZerobss: cmp r2, r4 - 8001bb6: 42a2 cmp r2, r4 + 8001c02: 42a2 cmp r2, r4 bcc FillZerobss - 8001bb8: d3fb bcc.n 8001bb2 + 8001c04: d3fb bcc.n 8001bfe /* Call static constructors */ bl __libc_init_array - 8001bba: f003 ff05 bl 80059c8 <__libc_init_array> + 8001c06: f004 f92f bl 8005e68 <__libc_init_array> /* Call the application's entry point.*/ - bl main - 8001bbe: f7ff fab1 bl 8001124
+ bl main + 8001c0a: f7ff fa91 bl 8001130
bx lr - 8001bc2: 4770 bx lr + 8001c0e: 4770 bx lr ldr sp, =_estack /* set stack pointer */ - 8001bc4: 20020000 .word 0x20020000 + 8001c10: 20020000 .word 0x20020000 ldr r0, =_sdata - 8001bc8: 20000000 .word 0x20000000 + 8001c14: 20000000 .word 0x20000000 ldr r1, =_edata - 8001bcc: 20000014 .word 0x20000014 + 8001c18: 20000014 .word 0x20000014 ldr r2, =_sidata - 8001bd0: 08005a6c .word 0x08005a6c + 8001c1c: 08005f34 .word 0x08005f34 ldr r2, =_sbss - 8001bd4: 20000014 .word 0x20000014 + 8001c20: 20000014 .word 0x20000014 ldr r4, =_ebss - 8001bd8: 200002cc .word 0x200002cc + 8001c24: 200002c8 .word 0x200002c8 -08001bdc : +08001c28 : * @retval None */ .section .text.Default_Handler,"ax",%progbits Default_Handler: Infinite_Loop: b Infinite_Loop - 8001bdc: e7fe b.n 8001bdc + 8001c28: e7fe b.n 8001c28 ... -08001be0 : +08001c2c : * need to ensure that the SysTick time base is always set to 1 millisecond * to have correct HAL operation. * @retval HAL status */ HAL_StatusTypeDef HAL_Init(void) { - 8001be0: b580 push {r7, lr} - 8001be2: af00 add r7, sp, #0 + 8001c2c: b580 push {r7, lr} + 8001c2e: af00 add r7, sp, #0 /* Configure Flash prefetch, Instruction cache, Data cache */ #if (INSTRUCTION_CACHE_ENABLE != 0U) __HAL_FLASH_INSTRUCTION_CACHE_ENABLE(); - 8001be4: 4b0e ldr r3, [pc, #56] @ (8001c20 ) - 8001be6: 681b ldr r3, [r3, #0] - 8001be8: 4a0d ldr r2, [pc, #52] @ (8001c20 ) - 8001bea: f443 7300 orr.w r3, r3, #512 @ 0x200 - 8001bee: 6013 str r3, [r2, #0] + 8001c30: 4b0e ldr r3, [pc, #56] @ (8001c6c ) + 8001c32: 681b ldr r3, [r3, #0] + 8001c34: 4a0d ldr r2, [pc, #52] @ (8001c6c ) + 8001c36: f443 7300 orr.w r3, r3, #512 @ 0x200 + 8001c3a: 6013 str r3, [r2, #0] #endif /* INSTRUCTION_CACHE_ENABLE */ #if (DATA_CACHE_ENABLE != 0U) __HAL_FLASH_DATA_CACHE_ENABLE(); - 8001bf0: 4b0b ldr r3, [pc, #44] @ (8001c20 ) - 8001bf2: 681b ldr r3, [r3, #0] - 8001bf4: 4a0a ldr r2, [pc, #40] @ (8001c20 ) - 8001bf6: f443 6380 orr.w r3, r3, #1024 @ 0x400 - 8001bfa: 6013 str r3, [r2, #0] + 8001c3c: 4b0b ldr r3, [pc, #44] @ (8001c6c ) + 8001c3e: 681b ldr r3, [r3, #0] + 8001c40: 4a0a ldr r2, [pc, #40] @ (8001c6c ) + 8001c42: f443 6380 orr.w r3, r3, #1024 @ 0x400 + 8001c46: 6013 str r3, [r2, #0] #endif /* DATA_CACHE_ENABLE */ #if (PREFETCH_ENABLE != 0U) __HAL_FLASH_PREFETCH_BUFFER_ENABLE(); - 8001bfc: 4b08 ldr r3, [pc, #32] @ (8001c20 ) - 8001bfe: 681b ldr r3, [r3, #0] - 8001c00: 4a07 ldr r2, [pc, #28] @ (8001c20 ) - 8001c02: f443 7380 orr.w r3, r3, #256 @ 0x100 - 8001c06: 6013 str r3, [r2, #0] + 8001c48: 4b08 ldr r3, [pc, #32] @ (8001c6c ) + 8001c4a: 681b ldr r3, [r3, #0] + 8001c4c: 4a07 ldr r2, [pc, #28] @ (8001c6c ) + 8001c4e: f443 7380 orr.w r3, r3, #256 @ 0x100 + 8001c52: 6013 str r3, [r2, #0] #endif /* PREFETCH_ENABLE */ /* Set Interrupt Group Priority */ HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4); - 8001c08: 2003 movs r0, #3 - 8001c0a: f000 ffbc bl 8002b86 + 8001c54: 2003 movs r0, #3 + 8001c56: f001 f8ee bl 8002e36 /* Use systick as time base source and configure 1ms tick (default clock after Reset is HSI) */ HAL_InitTick(TICK_INT_PRIORITY); - 8001c0e: 200f movs r0, #15 - 8001c10: f7ff fc84 bl 800151c + 8001c5a: 200f movs r0, #15 + 8001c5c: f7ff fc84 bl 8001568 /* Init the low level hardware */ HAL_MspInit(); - 8001c14: f7ff fc5a bl 80014cc + 8001c60: f7ff fc5a bl 8001518 /* Return function status */ return HAL_OK; - 8001c18: 2300 movs r3, #0 + 8001c64: 2300 movs r3, #0 } - 8001c1a: 4618 mov r0, r3 - 8001c1c: bd80 pop {r7, pc} - 8001c1e: bf00 nop - 8001c20: 40023c00 .word 0x40023c00 + 8001c66: 4618 mov r0, r3 + 8001c68: bd80 pop {r7, pc} + 8001c6a: bf00 nop + 8001c6c: 40023c00 .word 0x40023c00 -08001c24 : +08001c70 : + * @brief This function de-Initializes common part of the HAL and stops the systick. + * This function is optional. + * @retval HAL status + */ +HAL_StatusTypeDef HAL_DeInit(void) +{ + 8001c70: b580 push {r7, lr} + 8001c72: af00 add r7, sp, #0 + /* Reset of all peripherals */ + __HAL_RCC_APB1_FORCE_RESET(); + 8001c74: 4b11 ldr r3, [pc, #68] @ (8001cbc ) + 8001c76: 4a12 ldr r2, [pc, #72] @ (8001cc0 ) + 8001c78: 621a str r2, [r3, #32] + __HAL_RCC_APB1_RELEASE_RESET(); + 8001c7a: 4b10 ldr r3, [pc, #64] @ (8001cbc ) + 8001c7c: 2200 movs r2, #0 + 8001c7e: 621a str r2, [r3, #32] + + __HAL_RCC_APB2_FORCE_RESET(); + 8001c80: 4b0e ldr r3, [pc, #56] @ (8001cbc ) + 8001c82: 4a10 ldr r2, [pc, #64] @ (8001cc4 ) + 8001c84: 625a str r2, [r3, #36] @ 0x24 + __HAL_RCC_APB2_RELEASE_RESET(); + 8001c86: 4b0d ldr r3, [pc, #52] @ (8001cbc ) + 8001c88: 2200 movs r2, #0 + 8001c8a: 625a str r2, [r3, #36] @ 0x24 + + __HAL_RCC_AHB1_FORCE_RESET(); + 8001c8c: 4b0b ldr r3, [pc, #44] @ (8001cbc ) + 8001c8e: 4a0e ldr r2, [pc, #56] @ (8001cc8 ) + 8001c90: 611a str r2, [r3, #16] + __HAL_RCC_AHB1_RELEASE_RESET(); + 8001c92: 4b0a ldr r3, [pc, #40] @ (8001cbc ) + 8001c94: 2200 movs r2, #0 + 8001c96: 611a str r2, [r3, #16] + + __HAL_RCC_AHB2_FORCE_RESET(); + 8001c98: 4b08 ldr r3, [pc, #32] @ (8001cbc ) + 8001c9a: 2281 movs r2, #129 @ 0x81 + 8001c9c: 615a str r2, [r3, #20] + __HAL_RCC_AHB2_RELEASE_RESET(); + 8001c9e: 4b07 ldr r3, [pc, #28] @ (8001cbc ) + 8001ca0: 2200 movs r2, #0 + 8001ca2: 615a str r2, [r3, #20] + + __HAL_RCC_AHB3_FORCE_RESET(); + 8001ca4: 4b05 ldr r3, [pc, #20] @ (8001cbc ) + 8001ca6: 2203 movs r2, #3 + 8001ca8: 619a str r2, [r3, #24] + __HAL_RCC_AHB3_RELEASE_RESET(); + 8001caa: 4b04 ldr r3, [pc, #16] @ (8001cbc ) + 8001cac: 2200 movs r2, #0 + 8001cae: 619a str r2, [r3, #24] + + /* De-Init the low level hardware */ + HAL_MspDeInit(); + 8001cb0: f000 f80c bl 8001ccc + + /* Return function status */ + return HAL_OK; + 8001cb4: 2300 movs r3, #0 +} + 8001cb6: 4618 mov r0, r3 + 8001cb8: bd80 pop {r7, pc} + 8001cba: bf00 nop + 8001cbc: 40023800 .word 0x40023800 + 8001cc0: 3fffc9ff .word 0x3fffc9ff + 8001cc4: 00c77933 .word 0x00c77933 + 8001cc8: 206010ff .word 0x206010ff + +08001ccc : +/** + * @brief DeInitializes the MSP. + * @retval None + */ +__weak void HAL_MspDeInit(void) +{ + 8001ccc: b480 push {r7} + 8001cce: af00 add r7, sp, #0 + /* NOTE : This function should not be modified, when the callback is needed, + the HAL_MspDeInit could be implemented in the user file + */ +} + 8001cd0: bf00 nop + 8001cd2: 46bd mov sp, r7 + 8001cd4: f85d 7b04 ldr.w r7, [sp], #4 + 8001cd8: 4770 bx lr + ... + +08001cdc : * @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) { - 8001c24: b480 push {r7} - 8001c26: af00 add r7, sp, #0 + 8001cdc: b480 push {r7} + 8001cde: af00 add r7, sp, #0 uwTick += uwTickFreq; - 8001c28: 4b06 ldr r3, [pc, #24] @ (8001c44 ) - 8001c2a: 781b ldrb r3, [r3, #0] - 8001c2c: 461a mov r2, r3 - 8001c2e: 4b06 ldr r3, [pc, #24] @ (8001c48 ) - 8001c30: 681b ldr r3, [r3, #0] - 8001c32: 4413 add r3, r2 - 8001c34: 4a04 ldr r2, [pc, #16] @ (8001c48 ) - 8001c36: 6013 str r3, [r2, #0] + 8001ce0: 4b06 ldr r3, [pc, #24] @ (8001cfc ) + 8001ce2: 781b ldrb r3, [r3, #0] + 8001ce4: 461a mov r2, r3 + 8001ce6: 4b06 ldr r3, [pc, #24] @ (8001d00 ) + 8001ce8: 681b ldr r3, [r3, #0] + 8001cea: 4413 add r3, r2 + 8001cec: 4a04 ldr r2, [pc, #16] @ (8001d00 ) + 8001cee: 6013 str r3, [r2, #0] } - 8001c38: bf00 nop - 8001c3a: 46bd mov sp, r7 - 8001c3c: f85d 7b04 ldr.w r7, [sp], #4 - 8001c40: 4770 bx lr - 8001c42: bf00 nop - 8001c44: 20000010 .word 0x20000010 - 8001c48: 200002a8 .word 0x200002a8 + 8001cf0: bf00 nop + 8001cf2: 46bd mov sp, r7 + 8001cf4: f85d 7b04 ldr.w r7, [sp], #4 + 8001cf8: 4770 bx lr + 8001cfa: bf00 nop + 8001cfc: 20000010 .word 0x20000010 + 8001d00: 200002a4 .word 0x200002a4 -08001c4c : +08001d04 : * @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) { - 8001c4c: b480 push {r7} - 8001c4e: af00 add r7, sp, #0 + 8001d04: b480 push {r7} + 8001d06: af00 add r7, sp, #0 return uwTick; - 8001c50: 4b03 ldr r3, [pc, #12] @ (8001c60 ) - 8001c52: 681b ldr r3, [r3, #0] + 8001d08: 4b03 ldr r3, [pc, #12] @ (8001d18 ) + 8001d0a: 681b ldr r3, [r3, #0] } - 8001c54: 4618 mov r0, r3 - 8001c56: 46bd mov sp, r7 - 8001c58: f85d 7b04 ldr.w r7, [sp], #4 - 8001c5c: 4770 bx lr - 8001c5e: bf00 nop - 8001c60: 200002a8 .word 0x200002a8 + 8001d0c: 4618 mov r0, r3 + 8001d0e: 46bd mov sp, r7 + 8001d10: f85d 7b04 ldr.w r7, [sp], #4 + 8001d14: 4770 bx lr + 8001d16: bf00 nop + 8001d18: 200002a4 .word 0x200002a4 -08001c64 : +08001d1c : * implementations in user file. * @param Delay specifies the delay time length, in milliseconds. * @retval None */ __weak void HAL_Delay(uint32_t Delay) { - 8001c64: b580 push {r7, lr} - 8001c66: b084 sub sp, #16 - 8001c68: af00 add r7, sp, #0 - 8001c6a: 6078 str r0, [r7, #4] + 8001d1c: b580 push {r7, lr} + 8001d1e: b084 sub sp, #16 + 8001d20: af00 add r7, sp, #0 + 8001d22: 6078 str r0, [r7, #4] uint32_t tickstart = HAL_GetTick(); - 8001c6c: f7ff ffee bl 8001c4c - 8001c70: 60b8 str r0, [r7, #8] + 8001d24: f7ff ffee bl 8001d04 + 8001d28: 60b8 str r0, [r7, #8] uint32_t wait = Delay; - 8001c72: 687b ldr r3, [r7, #4] - 8001c74: 60fb str r3, [r7, #12] + 8001d2a: 687b ldr r3, [r7, #4] + 8001d2c: 60fb str r3, [r7, #12] /* Add a freq to guarantee minimum wait */ if (wait < HAL_MAX_DELAY) - 8001c76: 68fb ldr r3, [r7, #12] - 8001c78: f1b3 3fff cmp.w r3, #4294967295 - 8001c7c: d005 beq.n 8001c8a + 8001d2e: 68fb ldr r3, [r7, #12] + 8001d30: f1b3 3fff cmp.w r3, #4294967295 + 8001d34: d005 beq.n 8001d42 { wait += (uint32_t)(uwTickFreq); - 8001c7e: 4b0a ldr r3, [pc, #40] @ (8001ca8 ) - 8001c80: 781b ldrb r3, [r3, #0] - 8001c82: 461a mov r2, r3 - 8001c84: 68fb ldr r3, [r7, #12] - 8001c86: 4413 add r3, r2 - 8001c88: 60fb str r3, [r7, #12] + 8001d36: 4b0a ldr r3, [pc, #40] @ (8001d60 ) + 8001d38: 781b ldrb r3, [r3, #0] + 8001d3a: 461a mov r2, r3 + 8001d3c: 68fb ldr r3, [r7, #12] + 8001d3e: 4413 add r3, r2 + 8001d40: 60fb str r3, [r7, #12] } while((HAL_GetTick() - tickstart) < wait) - 8001c8a: bf00 nop - 8001c8c: f7ff ffde bl 8001c4c - 8001c90: 4602 mov r2, r0 - 8001c92: 68bb ldr r3, [r7, #8] - 8001c94: 1ad3 subs r3, r2, r3 - 8001c96: 68fa ldr r2, [r7, #12] - 8001c98: 429a cmp r2, r3 - 8001c9a: d8f7 bhi.n 8001c8c + 8001d42: bf00 nop + 8001d44: f7ff ffde bl 8001d04 + 8001d48: 4602 mov r2, r0 + 8001d4a: 68bb ldr r3, [r7, #8] + 8001d4c: 1ad3 subs r3, r2, r3 + 8001d4e: 68fa ldr r2, [r7, #12] + 8001d50: 429a cmp r2, r3 + 8001d52: d8f7 bhi.n 8001d44 { } } - 8001c9c: bf00 nop - 8001c9e: bf00 nop - 8001ca0: 3710 adds r7, #16 - 8001ca2: 46bd mov sp, r7 - 8001ca4: bd80 pop {r7, pc} - 8001ca6: bf00 nop - 8001ca8: 20000010 .word 0x20000010 + 8001d54: bf00 nop + 8001d56: bf00 nop + 8001d58: 3710 adds r7, #16 + 8001d5a: 46bd mov sp, r7 + 8001d5c: bd80 pop {r7, pc} + 8001d5e: bf00 nop + 8001d60: 20000010 .word 0x20000010 -08001cac : +08001d64 : * @param hadc pointer to a ADC_HandleTypeDef structure that contains * the configuration information for the specified ADC. * @retval HAL status */ HAL_StatusTypeDef HAL_ADC_Init(ADC_HandleTypeDef *hadc) { - 8001cac: b580 push {r7, lr} - 8001cae: b084 sub sp, #16 - 8001cb0: af00 add r7, sp, #0 - 8001cb2: 6078 str r0, [r7, #4] + 8001d64: b580 push {r7, lr} + 8001d66: b084 sub sp, #16 + 8001d68: af00 add r7, sp, #0 + 8001d6a: 6078 str r0, [r7, #4] HAL_StatusTypeDef tmp_hal_status = HAL_OK; - 8001cb4: 2300 movs r3, #0 - 8001cb6: 73fb strb r3, [r7, #15] + 8001d6c: 2300 movs r3, #0 + 8001d6e: 73fb strb r3, [r7, #15] /* Check ADC handle */ if (hadc == NULL) - 8001cb8: 687b ldr r3, [r7, #4] - 8001cba: 2b00 cmp r3, #0 - 8001cbc: d101 bne.n 8001cc2 + 8001d70: 687b ldr r3, [r7, #4] + 8001d72: 2b00 cmp r3, #0 + 8001d74: d101 bne.n 8001d7a { return HAL_ERROR; - 8001cbe: 2301 movs r3, #1 - 8001cc0: e033 b.n 8001d2a + 8001d76: 2301 movs r3, #1 + 8001d78: e033 b.n 8001de2 if (hadc->Init.ExternalTrigConv != ADC_SOFTWARE_START) { assert_param(IS_ADC_EXT_TRIG_EDGE(hadc->Init.ExternalTrigConvEdge)); } if (hadc->State == HAL_ADC_STATE_RESET) - 8001cc2: 687b ldr r3, [r7, #4] - 8001cc4: 6c1b ldr r3, [r3, #64] @ 0x40 - 8001cc6: 2b00 cmp r3, #0 - 8001cc8: d109 bne.n 8001cde + 8001d7a: 687b ldr r3, [r7, #4] + 8001d7c: 6c1b ldr r3, [r3, #64] @ 0x40 + 8001d7e: 2b00 cmp r3, #0 + 8001d80: d109 bne.n 8001d96 /* Init the low level hardware */ hadc->MspInitCallback(hadc); #else /* Init the low level hardware */ HAL_ADC_MspInit(hadc); - 8001cca: 6878 ldr r0, [r7, #4] - 8001ccc: f7fe fc80 bl 80005d0 + 8001d82: 6878 ldr r0, [r7, #4] + 8001d84: f7fe fc24 bl 80005d0 #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ /* Initialize ADC error code */ ADC_CLEAR_ERRORCODE(hadc); - 8001cd0: 687b ldr r3, [r7, #4] - 8001cd2: 2200 movs r2, #0 - 8001cd4: 645a str r2, [r3, #68] @ 0x44 + 8001d88: 687b ldr r3, [r7, #4] + 8001d8a: 2200 movs r2, #0 + 8001d8c: 645a str r2, [r3, #68] @ 0x44 /* Allocate lock resource and initialize it */ hadc->Lock = HAL_UNLOCKED; - 8001cd6: 687b ldr r3, [r7, #4] - 8001cd8: 2200 movs r2, #0 - 8001cda: f883 203c strb.w r2, [r3, #60] @ 0x3c + 8001d8e: 687b ldr r3, [r7, #4] + 8001d90: 2200 movs r2, #0 + 8001d92: f883 203c strb.w r2, [r3, #60] @ 0x3c } /* Configuration of ADC parameters if previous preliminary actions are */ /* correctly completed. */ if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL)) - 8001cde: 687b ldr r3, [r7, #4] - 8001ce0: 6c1b ldr r3, [r3, #64] @ 0x40 - 8001ce2: f003 0310 and.w r3, r3, #16 - 8001ce6: 2b00 cmp r3, #0 - 8001ce8: d118 bne.n 8001d1c + 8001d96: 687b ldr r3, [r7, #4] + 8001d98: 6c1b ldr r3, [r3, #64] @ 0x40 + 8001d9a: f003 0310 and.w r3, r3, #16 + 8001d9e: 2b00 cmp r3, #0 + 8001da0: d118 bne.n 8001dd4 { /* Set ADC state */ ADC_STATE_CLR_SET(hadc->State, - 8001cea: 687b ldr r3, [r7, #4] - 8001cec: 6c1b ldr r3, [r3, #64] @ 0x40 - 8001cee: f423 5388 bic.w r3, r3, #4352 @ 0x1100 - 8001cf2: f023 0302 bic.w r3, r3, #2 - 8001cf6: f043 0202 orr.w r2, r3, #2 - 8001cfa: 687b ldr r3, [r7, #4] - 8001cfc: 641a str r2, [r3, #64] @ 0x40 + 8001da2: 687b ldr r3, [r7, #4] + 8001da4: 6c1b ldr r3, [r3, #64] @ 0x40 + 8001da6: f423 5388 bic.w r3, r3, #4352 @ 0x1100 + 8001daa: f023 0302 bic.w r3, r3, #2 + 8001dae: f043 0202 orr.w r2, r3, #2 + 8001db2: 687b ldr r3, [r7, #4] + 8001db4: 641a str r2, [r3, #64] @ 0x40 HAL_ADC_STATE_REG_BUSY | HAL_ADC_STATE_INJ_BUSY, HAL_ADC_STATE_BUSY_INTERNAL); /* Set ADC parameters */ ADC_Init(hadc); - 8001cfe: 6878 ldr r0, [r7, #4] - 8001d00: f000 fa78 bl 80021f4 + 8001db6: 6878 ldr r0, [r7, #4] + 8001db8: f000 fa78 bl 80022ac /* Set ADC error code to none */ ADC_CLEAR_ERRORCODE(hadc); - 8001d04: 687b ldr r3, [r7, #4] - 8001d06: 2200 movs r2, #0 - 8001d08: 645a str r2, [r3, #68] @ 0x44 + 8001dbc: 687b ldr r3, [r7, #4] + 8001dbe: 2200 movs r2, #0 + 8001dc0: 645a str r2, [r3, #68] @ 0x44 /* Set the ADC state */ ADC_STATE_CLR_SET(hadc->State, - 8001d0a: 687b ldr r3, [r7, #4] - 8001d0c: 6c1b ldr r3, [r3, #64] @ 0x40 - 8001d0e: f023 0303 bic.w r3, r3, #3 - 8001d12: f043 0201 orr.w r2, r3, #1 - 8001d16: 687b ldr r3, [r7, #4] - 8001d18: 641a str r2, [r3, #64] @ 0x40 - 8001d1a: e001 b.n 8001d20 + 8001dc2: 687b ldr r3, [r7, #4] + 8001dc4: 6c1b ldr r3, [r3, #64] @ 0x40 + 8001dc6: f023 0303 bic.w r3, r3, #3 + 8001dca: f043 0201 orr.w r2, r3, #1 + 8001dce: 687b ldr r3, [r7, #4] + 8001dd0: 641a str r2, [r3, #64] @ 0x40 + 8001dd2: e001 b.n 8001dd8 HAL_ADC_STATE_BUSY_INTERNAL, HAL_ADC_STATE_READY); } else { tmp_hal_status = HAL_ERROR; - 8001d1c: 2301 movs r3, #1 - 8001d1e: 73fb strb r3, [r7, #15] + 8001dd4: 2301 movs r3, #1 + 8001dd6: 73fb strb r3, [r7, #15] } /* Release Lock */ __HAL_UNLOCK(hadc); - 8001d20: 687b ldr r3, [r7, #4] - 8001d22: 2200 movs r2, #0 - 8001d24: f883 203c strb.w r2, [r3, #60] @ 0x3c + 8001dd8: 687b ldr r3, [r7, #4] + 8001dda: 2200 movs r2, #0 + 8001ddc: f883 203c strb.w r2, [r3, #60] @ 0x3c /* Return function status */ return tmp_hal_status; - 8001d28: 7bfb ldrb r3, [r7, #15] + 8001de0: 7bfb ldrb r3, [r7, #15] } - 8001d2a: 4618 mov r0, r3 - 8001d2c: 3710 adds r7, #16 - 8001d2e: 46bd mov sp, r7 - 8001d30: bd80 pop {r7, pc} + 8001de2: 4618 mov r0, r3 + 8001de4: 3710 adds r7, #16 + 8001de6: 46bd mov sp, r7 + 8001de8: bd80 pop {r7, pc} -08001d32 : +08001dea : * @param hadc pointer to a ADC_HandleTypeDef structure that contains * the configuration information for the specified ADC. * @retval None */ void HAL_ADC_IRQHandler(ADC_HandleTypeDef *hadc) { - 8001d32: b580 push {r7, lr} - 8001d34: b086 sub sp, #24 - 8001d36: af00 add r7, sp, #0 - 8001d38: 6078 str r0, [r7, #4] + 8001dea: b580 push {r7, lr} + 8001dec: b086 sub sp, #24 + 8001dee: af00 add r7, sp, #0 + 8001df0: 6078 str r0, [r7, #4] uint32_t tmp1 = 0U, tmp2 = 0U; - 8001d3a: 2300 movs r3, #0 - 8001d3c: 617b str r3, [r7, #20] - 8001d3e: 2300 movs r3, #0 - 8001d40: 613b str r3, [r7, #16] + 8001df2: 2300 movs r3, #0 + 8001df4: 617b str r3, [r7, #20] + 8001df6: 2300 movs r3, #0 + 8001df8: 613b str r3, [r7, #16] uint32_t tmp_sr = hadc->Instance->SR; - 8001d42: 687b ldr r3, [r7, #4] - 8001d44: 681b ldr r3, [r3, #0] - 8001d46: 681b ldr r3, [r3, #0] - 8001d48: 60fb str r3, [r7, #12] + 8001dfa: 687b ldr r3, [r7, #4] + 8001dfc: 681b ldr r3, [r3, #0] + 8001dfe: 681b ldr r3, [r3, #0] + 8001e00: 60fb str r3, [r7, #12] uint32_t tmp_cr1 = hadc->Instance->CR1; - 8001d4a: 687b ldr r3, [r7, #4] - 8001d4c: 681b ldr r3, [r3, #0] - 8001d4e: 685b ldr r3, [r3, #4] - 8001d50: 60bb str r3, [r7, #8] + 8001e02: 687b ldr r3, [r7, #4] + 8001e04: 681b ldr r3, [r3, #0] + 8001e06: 685b ldr r3, [r3, #4] + 8001e08: 60bb str r3, [r7, #8] /* Check the parameters */ assert_param(IS_FUNCTIONAL_STATE(hadc->Init.ContinuousConvMode)); assert_param(IS_ADC_REGULAR_LENGTH(hadc->Init.NbrOfConversion)); assert_param(IS_ADC_EOCSelection(hadc->Init.EOCSelection)); tmp1 = tmp_sr & ADC_FLAG_EOC; - 8001d52: 68fb ldr r3, [r7, #12] - 8001d54: f003 0302 and.w r3, r3, #2 - 8001d58: 617b str r3, [r7, #20] + 8001e0a: 68fb ldr r3, [r7, #12] + 8001e0c: f003 0302 and.w r3, r3, #2 + 8001e10: 617b str r3, [r7, #20] tmp2 = tmp_cr1 & ADC_IT_EOC; - 8001d5a: 68bb ldr r3, [r7, #8] - 8001d5c: f003 0320 and.w r3, r3, #32 - 8001d60: 613b str r3, [r7, #16] + 8001e12: 68bb ldr r3, [r7, #8] + 8001e14: f003 0320 and.w r3, r3, #32 + 8001e18: 613b str r3, [r7, #16] /* Check End of conversion flag for regular channels */ if (tmp1 && tmp2) - 8001d62: 697b ldr r3, [r7, #20] - 8001d64: 2b00 cmp r3, #0 - 8001d66: d049 beq.n 8001dfc - 8001d68: 693b ldr r3, [r7, #16] - 8001d6a: 2b00 cmp r3, #0 - 8001d6c: d046 beq.n 8001dfc + 8001e1a: 697b ldr r3, [r7, #20] + 8001e1c: 2b00 cmp r3, #0 + 8001e1e: d049 beq.n 8001eb4 + 8001e20: 693b ldr r3, [r7, #16] + 8001e22: 2b00 cmp r3, #0 + 8001e24: d046 beq.n 8001eb4 { /* Update state machine on conversion status if not in error state */ if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL)) - 8001d6e: 687b ldr r3, [r7, #4] - 8001d70: 6c1b ldr r3, [r3, #64] @ 0x40 - 8001d72: f003 0310 and.w r3, r3, #16 - 8001d76: 2b00 cmp r3, #0 - 8001d78: d105 bne.n 8001d86 + 8001e26: 687b ldr r3, [r7, #4] + 8001e28: 6c1b ldr r3, [r3, #64] @ 0x40 + 8001e2a: f003 0310 and.w r3, r3, #16 + 8001e2e: 2b00 cmp r3, #0 + 8001e30: d105 bne.n 8001e3e { /* Set ADC state */ SET_BIT(hadc->State, HAL_ADC_STATE_REG_EOC); - 8001d7a: 687b ldr r3, [r7, #4] - 8001d7c: 6c1b ldr r3, [r3, #64] @ 0x40 - 8001d7e: f443 7200 orr.w r2, r3, #512 @ 0x200 - 8001d82: 687b ldr r3, [r7, #4] - 8001d84: 641a str r2, [r3, #64] @ 0x40 + 8001e32: 687b ldr r3, [r7, #4] + 8001e34: 6c1b ldr r3, [r3, #64] @ 0x40 + 8001e36: f443 7200 orr.w r2, r3, #512 @ 0x200 + 8001e3a: 687b ldr r3, [r7, #4] + 8001e3c: 641a str r2, [r3, #64] @ 0x40 /* by external trigger, continuous mode or scan sequence on going. */ /* Note: On STM32F4, there is no independent flag of end of sequence. */ /* The test of scan sequence on going is done either with scan */ /* sequence disabled or with end of conversion flag set to */ /* of end of sequence. */ if (ADC_IS_SOFTWARE_START_REGULAR(hadc) && - 8001d86: 687b ldr r3, [r7, #4] - 8001d88: 681b ldr r3, [r3, #0] - 8001d8a: 689b ldr r3, [r3, #8] - 8001d8c: f003 5340 and.w r3, r3, #805306368 @ 0x30000000 - 8001d90: 2b00 cmp r3, #0 - 8001d92: d12b bne.n 8001dec + 8001e3e: 687b ldr r3, [r7, #4] + 8001e40: 681b ldr r3, [r3, #0] + 8001e42: 689b ldr r3, [r3, #8] + 8001e44: f003 5340 and.w r3, r3, #805306368 @ 0x30000000 + 8001e48: 2b00 cmp r3, #0 + 8001e4a: d12b bne.n 8001ea4 (hadc->Init.ContinuousConvMode == DISABLE) && - 8001d94: 687b ldr r3, [r7, #4] - 8001d96: 7e1b ldrb r3, [r3, #24] + 8001e4c: 687b ldr r3, [r7, #4] + 8001e4e: 7e1b ldrb r3, [r3, #24] if (ADC_IS_SOFTWARE_START_REGULAR(hadc) && - 8001d98: 2b00 cmp r3, #0 - 8001d9a: d127 bne.n 8001dec + 8001e50: 2b00 cmp r3, #0 + 8001e52: d127 bne.n 8001ea4 (HAL_IS_BIT_CLR(hadc->Instance->SQR1, ADC_SQR1_L) || - 8001d9c: 687b ldr r3, [r7, #4] - 8001d9e: 681b ldr r3, [r3, #0] - 8001da0: 6adb ldr r3, [r3, #44] @ 0x2c - 8001da2: f403 0370 and.w r3, r3, #15728640 @ 0xf00000 + 8001e54: 687b ldr r3, [r7, #4] + 8001e56: 681b ldr r3, [r3, #0] + 8001e58: 6adb ldr r3, [r3, #44] @ 0x2c + 8001e5a: f403 0370 and.w r3, r3, #15728640 @ 0xf00000 (hadc->Init.ContinuousConvMode == DISABLE) && - 8001da6: 2b00 cmp r3, #0 - 8001da8: d006 beq.n 8001db8 + 8001e5e: 2b00 cmp r3, #0 + 8001e60: d006 beq.n 8001e70 HAL_IS_BIT_CLR(hadc->Instance->CR2, ADC_CR2_EOCS))) - 8001daa: 687b ldr r3, [r7, #4] - 8001dac: 681b ldr r3, [r3, #0] - 8001dae: 689b ldr r3, [r3, #8] - 8001db0: f403 6380 and.w r3, r3, #1024 @ 0x400 + 8001e62: 687b ldr r3, [r7, #4] + 8001e64: 681b ldr r3, [r3, #0] + 8001e66: 689b ldr r3, [r3, #8] + 8001e68: f403 6380 and.w r3, r3, #1024 @ 0x400 (HAL_IS_BIT_CLR(hadc->Instance->SQR1, ADC_SQR1_L) || - 8001db4: 2b00 cmp r3, #0 - 8001db6: d119 bne.n 8001dec + 8001e6c: 2b00 cmp r3, #0 + 8001e6e: d119 bne.n 8001ea4 { /* Disable ADC end of single conversion interrupt on group regular */ /* Note: Overrun interrupt was enabled with EOC interrupt in */ /* HAL_ADC_Start_IT(), but is not disabled here because can be used */ /* by overrun IRQ process below. */ __HAL_ADC_DISABLE_IT(hadc, ADC_IT_EOC); - 8001db8: 687b ldr r3, [r7, #4] - 8001dba: 681b ldr r3, [r3, #0] - 8001dbc: 685a ldr r2, [r3, #4] - 8001dbe: 687b ldr r3, [r7, #4] - 8001dc0: 681b ldr r3, [r3, #0] - 8001dc2: f022 0220 bic.w r2, r2, #32 - 8001dc6: 605a str r2, [r3, #4] + 8001e70: 687b ldr r3, [r7, #4] + 8001e72: 681b ldr r3, [r3, #0] + 8001e74: 685a ldr r2, [r3, #4] + 8001e76: 687b ldr r3, [r7, #4] + 8001e78: 681b ldr r3, [r3, #0] + 8001e7a: f022 0220 bic.w r2, r2, #32 + 8001e7e: 605a str r2, [r3, #4] /* Set ADC state */ CLEAR_BIT(hadc->State, HAL_ADC_STATE_REG_BUSY); - 8001dc8: 687b ldr r3, [r7, #4] - 8001dca: 6c1b ldr r3, [r3, #64] @ 0x40 - 8001dcc: f423 7280 bic.w r2, r3, #256 @ 0x100 - 8001dd0: 687b ldr r3, [r7, #4] - 8001dd2: 641a str r2, [r3, #64] @ 0x40 + 8001e80: 687b ldr r3, [r7, #4] + 8001e82: 6c1b ldr r3, [r3, #64] @ 0x40 + 8001e84: f423 7280 bic.w r2, r3, #256 @ 0x100 + 8001e88: 687b ldr r3, [r7, #4] + 8001e8a: 641a str r2, [r3, #64] @ 0x40 if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_INJ_BUSY)) - 8001dd4: 687b ldr r3, [r7, #4] - 8001dd6: 6c1b ldr r3, [r3, #64] @ 0x40 - 8001dd8: f403 5380 and.w r3, r3, #4096 @ 0x1000 - 8001ddc: 2b00 cmp r3, #0 - 8001dde: d105 bne.n 8001dec + 8001e8c: 687b ldr r3, [r7, #4] + 8001e8e: 6c1b ldr r3, [r3, #64] @ 0x40 + 8001e90: f403 5380 and.w r3, r3, #4096 @ 0x1000 + 8001e94: 2b00 cmp r3, #0 + 8001e96: d105 bne.n 8001ea4 { SET_BIT(hadc->State, HAL_ADC_STATE_READY); - 8001de0: 687b ldr r3, [r7, #4] - 8001de2: 6c1b ldr r3, [r3, #64] @ 0x40 - 8001de4: f043 0201 orr.w r2, r3, #1 - 8001de8: 687b ldr r3, [r7, #4] - 8001dea: 641a str r2, [r3, #64] @ 0x40 + 8001e98: 687b ldr r3, [r7, #4] + 8001e9a: 6c1b ldr r3, [r3, #64] @ 0x40 + 8001e9c: f043 0201 orr.w r2, r3, #1 + 8001ea0: 687b ldr r3, [r7, #4] + 8001ea2: 641a str r2, [r3, #64] @ 0x40 /* Conversion complete callback */ #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) hadc->ConvCpltCallback(hadc); #else HAL_ADC_ConvCpltCallback(hadc); - 8001dec: 6878 ldr r0, [r7, #4] - 8001dee: f000 f8b0 bl 8001f52 + 8001ea4: 6878 ldr r0, [r7, #4] + 8001ea6: f000 f8b0 bl 800200a #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ /* Clear regular group conversion flag */ __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_STRT | ADC_FLAG_EOC); - 8001df2: 687b ldr r3, [r7, #4] - 8001df4: 681b ldr r3, [r3, #0] - 8001df6: f06f 0212 mvn.w r2, #18 - 8001dfa: 601a str r2, [r3, #0] + 8001eaa: 687b ldr r3, [r7, #4] + 8001eac: 681b ldr r3, [r3, #0] + 8001eae: f06f 0212 mvn.w r2, #18 + 8001eb2: 601a str r2, [r3, #0] } tmp1 = tmp_sr & ADC_FLAG_JEOC; - 8001dfc: 68fb ldr r3, [r7, #12] - 8001dfe: f003 0304 and.w r3, r3, #4 - 8001e02: 617b str r3, [r7, #20] + 8001eb4: 68fb ldr r3, [r7, #12] + 8001eb6: f003 0304 and.w r3, r3, #4 + 8001eba: 617b str r3, [r7, #20] tmp2 = tmp_cr1 & ADC_IT_JEOC; - 8001e04: 68bb ldr r3, [r7, #8] - 8001e06: f003 0380 and.w r3, r3, #128 @ 0x80 - 8001e0a: 613b str r3, [r7, #16] + 8001ebc: 68bb ldr r3, [r7, #8] + 8001ebe: f003 0380 and.w r3, r3, #128 @ 0x80 + 8001ec2: 613b str r3, [r7, #16] /* Check End of conversion flag for injected channels */ if (tmp1 && tmp2) - 8001e0c: 697b ldr r3, [r7, #20] - 8001e0e: 2b00 cmp r3, #0 - 8001e10: d057 beq.n 8001ec2 - 8001e12: 693b ldr r3, [r7, #16] - 8001e14: 2b00 cmp r3, #0 - 8001e16: d054 beq.n 8001ec2 + 8001ec4: 697b ldr r3, [r7, #20] + 8001ec6: 2b00 cmp r3, #0 + 8001ec8: d057 beq.n 8001f7a + 8001eca: 693b ldr r3, [r7, #16] + 8001ecc: 2b00 cmp r3, #0 + 8001ece: d054 beq.n 8001f7a { /* Update state machine on conversion status if not in error state */ if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL)) - 8001e18: 687b ldr r3, [r7, #4] - 8001e1a: 6c1b ldr r3, [r3, #64] @ 0x40 - 8001e1c: f003 0310 and.w r3, r3, #16 - 8001e20: 2b00 cmp r3, #0 - 8001e22: d105 bne.n 8001e30 + 8001ed0: 687b ldr r3, [r7, #4] + 8001ed2: 6c1b ldr r3, [r3, #64] @ 0x40 + 8001ed4: f003 0310 and.w r3, r3, #16 + 8001ed8: 2b00 cmp r3, #0 + 8001eda: d105 bne.n 8001ee8 { /* Set ADC state */ SET_BIT(hadc->State, HAL_ADC_STATE_INJ_EOC); - 8001e24: 687b ldr r3, [r7, #4] - 8001e26: 6c1b ldr r3, [r3, #64] @ 0x40 - 8001e28: f443 5200 orr.w r2, r3, #8192 @ 0x2000 - 8001e2c: 687b ldr r3, [r7, #4] - 8001e2e: 641a str r2, [r3, #64] @ 0x40 + 8001edc: 687b ldr r3, [r7, #4] + 8001ede: 6c1b ldr r3, [r3, #64] @ 0x40 + 8001ee0: f443 5200 orr.w r2, r3, #8192 @ 0x2000 + 8001ee4: 687b ldr r3, [r7, #4] + 8001ee6: 641a str r2, [r3, #64] @ 0x40 /* Determine whether any further conversion upcoming on group injected */ /* by external trigger, scan sequence on going or by automatic injected */ /* conversion from group regular (same conditions as group regular */ /* interruption disabling above). */ if (ADC_IS_SOFTWARE_START_INJECTED(hadc) && - 8001e30: 687b ldr r3, [r7, #4] - 8001e32: 681b ldr r3, [r3, #0] - 8001e34: 689b ldr r3, [r3, #8] - 8001e36: f403 1340 and.w r3, r3, #3145728 @ 0x300000 - 8001e3a: 2b00 cmp r3, #0 - 8001e3c: d139 bne.n 8001eb2 + 8001ee8: 687b ldr r3, [r7, #4] + 8001eea: 681b ldr r3, [r3, #0] + 8001eec: 689b ldr r3, [r3, #8] + 8001eee: f403 1340 and.w r3, r3, #3145728 @ 0x300000 + 8001ef2: 2b00 cmp r3, #0 + 8001ef4: d139 bne.n 8001f6a (HAL_IS_BIT_CLR(hadc->Instance->JSQR, ADC_JSQR_JL) || - 8001e3e: 687b ldr r3, [r7, #4] - 8001e40: 681b ldr r3, [r3, #0] - 8001e42: 6b9b ldr r3, [r3, #56] @ 0x38 - 8001e44: f403 1340 and.w r3, r3, #3145728 @ 0x300000 + 8001ef6: 687b ldr r3, [r7, #4] + 8001ef8: 681b ldr r3, [r3, #0] + 8001efa: 6b9b ldr r3, [r3, #56] @ 0x38 + 8001efc: f403 1340 and.w r3, r3, #3145728 @ 0x300000 if (ADC_IS_SOFTWARE_START_INJECTED(hadc) && - 8001e48: 2b00 cmp r3, #0 - 8001e4a: d006 beq.n 8001e5a + 8001f00: 2b00 cmp r3, #0 + 8001f02: d006 beq.n 8001f12 HAL_IS_BIT_CLR(hadc->Instance->CR2, ADC_CR2_EOCS)) && - 8001e4c: 687b ldr r3, [r7, #4] - 8001e4e: 681b ldr r3, [r3, #0] - 8001e50: 689b ldr r3, [r3, #8] - 8001e52: f403 6380 and.w r3, r3, #1024 @ 0x400 + 8001f04: 687b ldr r3, [r7, #4] + 8001f06: 681b ldr r3, [r3, #0] + 8001f08: 689b ldr r3, [r3, #8] + 8001f0a: f403 6380 and.w r3, r3, #1024 @ 0x400 (HAL_IS_BIT_CLR(hadc->Instance->JSQR, ADC_JSQR_JL) || - 8001e56: 2b00 cmp r3, #0 - 8001e58: d12b bne.n 8001eb2 + 8001f0e: 2b00 cmp r3, #0 + 8001f10: d12b bne.n 8001f6a (HAL_IS_BIT_CLR(hadc->Instance->CR1, ADC_CR1_JAUTO) && - 8001e5a: 687b ldr r3, [r7, #4] - 8001e5c: 681b ldr r3, [r3, #0] - 8001e5e: 685b ldr r3, [r3, #4] - 8001e60: f403 6380 and.w r3, r3, #1024 @ 0x400 + 8001f12: 687b ldr r3, [r7, #4] + 8001f14: 681b ldr r3, [r3, #0] + 8001f16: 685b ldr r3, [r3, #4] + 8001f18: f403 6380 and.w r3, r3, #1024 @ 0x400 HAL_IS_BIT_CLR(hadc->Instance->CR2, ADC_CR2_EOCS)) && - 8001e64: 2b00 cmp r3, #0 - 8001e66: d124 bne.n 8001eb2 + 8001f1c: 2b00 cmp r3, #0 + 8001f1e: d124 bne.n 8001f6a (ADC_IS_SOFTWARE_START_REGULAR(hadc) && - 8001e68: 687b ldr r3, [r7, #4] - 8001e6a: 681b ldr r3, [r3, #0] - 8001e6c: 689b ldr r3, [r3, #8] - 8001e6e: f003 5340 and.w r3, r3, #805306368 @ 0x30000000 + 8001f20: 687b ldr r3, [r7, #4] + 8001f22: 681b ldr r3, [r3, #0] + 8001f24: 689b ldr r3, [r3, #8] + 8001f26: f003 5340 and.w r3, r3, #805306368 @ 0x30000000 (HAL_IS_BIT_CLR(hadc->Instance->CR1, ADC_CR1_JAUTO) && - 8001e72: 2b00 cmp r3, #0 - 8001e74: d11d bne.n 8001eb2 + 8001f2a: 2b00 cmp r3, #0 + 8001f2c: d11d bne.n 8001f6a (hadc->Init.ContinuousConvMode == DISABLE)))) - 8001e76: 687b ldr r3, [r7, #4] - 8001e78: 7e1b ldrb r3, [r3, #24] + 8001f2e: 687b ldr r3, [r7, #4] + 8001f30: 7e1b ldrb r3, [r3, #24] (ADC_IS_SOFTWARE_START_REGULAR(hadc) && - 8001e7a: 2b00 cmp r3, #0 - 8001e7c: d119 bne.n 8001eb2 + 8001f32: 2b00 cmp r3, #0 + 8001f34: d119 bne.n 8001f6a { /* Disable ADC end of single conversion interrupt on group injected */ __HAL_ADC_DISABLE_IT(hadc, ADC_IT_JEOC); - 8001e7e: 687b ldr r3, [r7, #4] - 8001e80: 681b ldr r3, [r3, #0] - 8001e82: 685a ldr r2, [r3, #4] - 8001e84: 687b ldr r3, [r7, #4] - 8001e86: 681b ldr r3, [r3, #0] - 8001e88: f022 0280 bic.w r2, r2, #128 @ 0x80 - 8001e8c: 605a str r2, [r3, #4] + 8001f36: 687b ldr r3, [r7, #4] + 8001f38: 681b ldr r3, [r3, #0] + 8001f3a: 685a ldr r2, [r3, #4] + 8001f3c: 687b ldr r3, [r7, #4] + 8001f3e: 681b ldr r3, [r3, #0] + 8001f40: f022 0280 bic.w r2, r2, #128 @ 0x80 + 8001f44: 605a str r2, [r3, #4] /* Set ADC state */ CLEAR_BIT(hadc->State, HAL_ADC_STATE_INJ_BUSY); - 8001e8e: 687b ldr r3, [r7, #4] - 8001e90: 6c1b ldr r3, [r3, #64] @ 0x40 - 8001e92: f423 5280 bic.w r2, r3, #4096 @ 0x1000 - 8001e96: 687b ldr r3, [r7, #4] - 8001e98: 641a str r2, [r3, #64] @ 0x40 + 8001f46: 687b ldr r3, [r7, #4] + 8001f48: 6c1b ldr r3, [r3, #64] @ 0x40 + 8001f4a: f423 5280 bic.w r2, r3, #4096 @ 0x1000 + 8001f4e: 687b ldr r3, [r7, #4] + 8001f50: 641a str r2, [r3, #64] @ 0x40 if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_REG_BUSY)) - 8001e9a: 687b ldr r3, [r7, #4] - 8001e9c: 6c1b ldr r3, [r3, #64] @ 0x40 - 8001e9e: f403 7380 and.w r3, r3, #256 @ 0x100 - 8001ea2: 2b00 cmp r3, #0 - 8001ea4: d105 bne.n 8001eb2 + 8001f52: 687b ldr r3, [r7, #4] + 8001f54: 6c1b ldr r3, [r3, #64] @ 0x40 + 8001f56: f403 7380 and.w r3, r3, #256 @ 0x100 + 8001f5a: 2b00 cmp r3, #0 + 8001f5c: d105 bne.n 8001f6a { SET_BIT(hadc->State, HAL_ADC_STATE_READY); - 8001ea6: 687b ldr r3, [r7, #4] - 8001ea8: 6c1b ldr r3, [r3, #64] @ 0x40 - 8001eaa: f043 0201 orr.w r2, r3, #1 - 8001eae: 687b ldr r3, [r7, #4] - 8001eb0: 641a str r2, [r3, #64] @ 0x40 + 8001f5e: 687b ldr r3, [r7, #4] + 8001f60: 6c1b ldr r3, [r3, #64] @ 0x40 + 8001f62: f043 0201 orr.w r2, r3, #1 + 8001f66: 687b ldr r3, [r7, #4] + 8001f68: 641a str r2, [r3, #64] @ 0x40 /* Conversion complete callback */ /* Conversion complete callback */ #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) hadc->InjectedConvCpltCallback(hadc); #else HAL_ADCEx_InjectedConvCpltCallback(hadc); - 8001eb2: 6878 ldr r0, [r7, #4] - 8001eb4: f000 fa9a bl 80023ec + 8001f6a: 6878 ldr r0, [r7, #4] + 8001f6c: f000 fa9a bl 80024a4 #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ /* Clear injected group conversion flag */ __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_JSTRT | ADC_FLAG_JEOC)); - 8001eb8: 687b ldr r3, [r7, #4] - 8001eba: 681b ldr r3, [r3, #0] - 8001ebc: f06f 020c mvn.w r2, #12 - 8001ec0: 601a str r2, [r3, #0] + 8001f70: 687b ldr r3, [r7, #4] + 8001f72: 681b ldr r3, [r3, #0] + 8001f74: f06f 020c mvn.w r2, #12 + 8001f78: 601a str r2, [r3, #0] } tmp1 = tmp_sr & ADC_FLAG_AWD; - 8001ec2: 68fb ldr r3, [r7, #12] - 8001ec4: f003 0301 and.w r3, r3, #1 - 8001ec8: 617b str r3, [r7, #20] + 8001f7a: 68fb ldr r3, [r7, #12] + 8001f7c: f003 0301 and.w r3, r3, #1 + 8001f80: 617b str r3, [r7, #20] tmp2 = tmp_cr1 & ADC_IT_AWD; - 8001eca: 68bb ldr r3, [r7, #8] - 8001ecc: f003 0340 and.w r3, r3, #64 @ 0x40 - 8001ed0: 613b str r3, [r7, #16] + 8001f82: 68bb ldr r3, [r7, #8] + 8001f84: f003 0340 and.w r3, r3, #64 @ 0x40 + 8001f88: 613b str r3, [r7, #16] /* Check Analog watchdog flag */ if (tmp1 && tmp2) - 8001ed2: 697b ldr r3, [r7, #20] - 8001ed4: 2b00 cmp r3, #0 - 8001ed6: d017 beq.n 8001f08 - 8001ed8: 693b ldr r3, [r7, #16] - 8001eda: 2b00 cmp r3, #0 - 8001edc: d014 beq.n 8001f08 + 8001f8a: 697b ldr r3, [r7, #20] + 8001f8c: 2b00 cmp r3, #0 + 8001f8e: d017 beq.n 8001fc0 + 8001f90: 693b ldr r3, [r7, #16] + 8001f92: 2b00 cmp r3, #0 + 8001f94: d014 beq.n 8001fc0 { if (__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_AWD)) - 8001ede: 687b ldr r3, [r7, #4] - 8001ee0: 681b ldr r3, [r3, #0] - 8001ee2: 681b ldr r3, [r3, #0] - 8001ee4: f003 0301 and.w r3, r3, #1 - 8001ee8: 2b01 cmp r3, #1 - 8001eea: d10d bne.n 8001f08 + 8001f96: 687b ldr r3, [r7, #4] + 8001f98: 681b ldr r3, [r3, #0] + 8001f9a: 681b ldr r3, [r3, #0] + 8001f9c: f003 0301 and.w r3, r3, #1 + 8001fa0: 2b01 cmp r3, #1 + 8001fa2: d10d bne.n 8001fc0 { /* Set ADC state */ SET_BIT(hadc->State, HAL_ADC_STATE_AWD1); - 8001eec: 687b ldr r3, [r7, #4] - 8001eee: 6c1b ldr r3, [r3, #64] @ 0x40 - 8001ef0: f443 3280 orr.w r2, r3, #65536 @ 0x10000 - 8001ef4: 687b ldr r3, [r7, #4] - 8001ef6: 641a str r2, [r3, #64] @ 0x40 + 8001fa4: 687b ldr r3, [r7, #4] + 8001fa6: 6c1b ldr r3, [r3, #64] @ 0x40 + 8001fa8: f443 3280 orr.w r2, r3, #65536 @ 0x10000 + 8001fac: 687b ldr r3, [r7, #4] + 8001fae: 641a str r2, [r3, #64] @ 0x40 /* Level out of window callback */ #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) hadc->LevelOutOfWindowCallback(hadc); #else HAL_ADC_LevelOutOfWindowCallback(hadc); - 8001ef8: 6878 ldr r0, [r7, #4] - 8001efa: f000 f834 bl 8001f66 + 8001fb0: 6878 ldr r0, [r7, #4] + 8001fb2: f000 f834 bl 800201e #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ /* Clear the ADC analog watchdog flag */ __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_AWD); - 8001efe: 687b ldr r3, [r7, #4] - 8001f00: 681b ldr r3, [r3, #0] - 8001f02: f06f 0201 mvn.w r2, #1 - 8001f06: 601a str r2, [r3, #0] + 8001fb6: 687b ldr r3, [r7, #4] + 8001fb8: 681b ldr r3, [r3, #0] + 8001fba: f06f 0201 mvn.w r2, #1 + 8001fbe: 601a str r2, [r3, #0] } } tmp1 = tmp_sr & ADC_FLAG_OVR; - 8001f08: 68fb ldr r3, [r7, #12] - 8001f0a: f003 0320 and.w r3, r3, #32 - 8001f0e: 617b str r3, [r7, #20] + 8001fc0: 68fb ldr r3, [r7, #12] + 8001fc2: f003 0320 and.w r3, r3, #32 + 8001fc6: 617b str r3, [r7, #20] tmp2 = tmp_cr1 & ADC_IT_OVR; - 8001f10: 68bb ldr r3, [r7, #8] - 8001f12: f003 6380 and.w r3, r3, #67108864 @ 0x4000000 - 8001f16: 613b str r3, [r7, #16] + 8001fc8: 68bb ldr r3, [r7, #8] + 8001fca: f003 6380 and.w r3, r3, #67108864 @ 0x4000000 + 8001fce: 613b str r3, [r7, #16] /* Check Overrun flag */ if (tmp1 && tmp2) - 8001f18: 697b ldr r3, [r7, #20] - 8001f1a: 2b00 cmp r3, #0 - 8001f1c: d015 beq.n 8001f4a - 8001f1e: 693b ldr r3, [r7, #16] - 8001f20: 2b00 cmp r3, #0 - 8001f22: d012 beq.n 8001f4a + 8001fd0: 697b ldr r3, [r7, #20] + 8001fd2: 2b00 cmp r3, #0 + 8001fd4: d015 beq.n 8002002 + 8001fd6: 693b ldr r3, [r7, #16] + 8001fd8: 2b00 cmp r3, #0 + 8001fda: d012 beq.n 8002002 /* Note: On STM32F4, ADC overrun can be set through other parameters */ /* refer to description of parameter "EOCSelection" for more */ /* details. */ /* Set ADC error code to overrun */ SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_OVR); - 8001f24: 687b ldr r3, [r7, #4] - 8001f26: 6c5b ldr r3, [r3, #68] @ 0x44 - 8001f28: f043 0202 orr.w r2, r3, #2 - 8001f2c: 687b ldr r3, [r7, #4] - 8001f2e: 645a str r2, [r3, #68] @ 0x44 + 8001fdc: 687b ldr r3, [r7, #4] + 8001fde: 6c5b ldr r3, [r3, #68] @ 0x44 + 8001fe0: f043 0202 orr.w r2, r3, #2 + 8001fe4: 687b ldr r3, [r7, #4] + 8001fe6: 645a str r2, [r3, #68] @ 0x44 /* Clear ADC overrun flag */ __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_OVR); - 8001f30: 687b ldr r3, [r7, #4] - 8001f32: 681b ldr r3, [r3, #0] - 8001f34: f06f 0220 mvn.w r2, #32 - 8001f38: 601a str r2, [r3, #0] + 8001fe8: 687b ldr r3, [r7, #4] + 8001fea: 681b ldr r3, [r3, #0] + 8001fec: f06f 0220 mvn.w r2, #32 + 8001ff0: 601a str r2, [r3, #0] /* Error callback */ #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) hadc->ErrorCallback(hadc); #else HAL_ADC_ErrorCallback(hadc); - 8001f3a: 6878 ldr r0, [r7, #4] - 8001f3c: f000 f81d bl 8001f7a + 8001ff2: 6878 ldr r0, [r7, #4] + 8001ff4: f000 f81d bl 8002032 #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ /* Clear the Overrun flag */ __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_OVR); - 8001f40: 687b ldr r3, [r7, #4] - 8001f42: 681b ldr r3, [r3, #0] - 8001f44: f06f 0220 mvn.w r2, #32 - 8001f48: 601a str r2, [r3, #0] + 8001ff8: 687b ldr r3, [r7, #4] + 8001ffa: 681b ldr r3, [r3, #0] + 8001ffc: f06f 0220 mvn.w r2, #32 + 8002000: 601a str r2, [r3, #0] } } - 8001f4a: bf00 nop - 8001f4c: 3718 adds r7, #24 - 8001f4e: 46bd mov sp, r7 - 8001f50: bd80 pop {r7, pc} + 8002002: bf00 nop + 8002004: 3718 adds r7, #24 + 8002006: 46bd mov sp, r7 + 8002008: bd80 pop {r7, pc} -08001f52 : +0800200a : * @param hadc pointer to a ADC_HandleTypeDef structure that contains * the configuration information for the specified ADC. * @retval None */ __weak void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef *hadc) { - 8001f52: b480 push {r7} - 8001f54: b083 sub sp, #12 - 8001f56: af00 add r7, sp, #0 - 8001f58: 6078 str r0, [r7, #4] + 800200a: b480 push {r7} + 800200c: b083 sub sp, #12 + 800200e: af00 add r7, sp, #0 + 8002010: 6078 str r0, [r7, #4] /* Prevent unused argument(s) compilation warning */ UNUSED(hadc); /* NOTE : This function Should not be modified, when the callback is needed, the HAL_ADC_ConvCpltCallback could be implemented in the user file */ } - 8001f5a: bf00 nop - 8001f5c: 370c adds r7, #12 - 8001f5e: 46bd mov sp, r7 - 8001f60: f85d 7b04 ldr.w r7, [sp], #4 - 8001f64: 4770 bx lr + 8002012: bf00 nop + 8002014: 370c adds r7, #12 + 8002016: 46bd mov sp, r7 + 8002018: f85d 7b04 ldr.w r7, [sp], #4 + 800201c: 4770 bx lr -08001f66 : +0800201e : * @param hadc pointer to a ADC_HandleTypeDef structure that contains * the configuration information for the specified ADC. * @retval None */ __weak void HAL_ADC_LevelOutOfWindowCallback(ADC_HandleTypeDef *hadc) { - 8001f66: b480 push {r7} - 8001f68: b083 sub sp, #12 - 8001f6a: af00 add r7, sp, #0 - 8001f6c: 6078 str r0, [r7, #4] + 800201e: b480 push {r7} + 8002020: b083 sub sp, #12 + 8002022: af00 add r7, sp, #0 + 8002024: 6078 str r0, [r7, #4] /* Prevent unused argument(s) compilation warning */ UNUSED(hadc); /* NOTE : This function Should not be modified, when the callback is needed, the HAL_ADC_LevelOoutOfWindowCallback could be implemented in the user file */ } - 8001f6e: bf00 nop - 8001f70: 370c adds r7, #12 - 8001f72: 46bd mov sp, r7 - 8001f74: f85d 7b04 ldr.w r7, [sp], #4 - 8001f78: 4770 bx lr + 8002026: bf00 nop + 8002028: 370c adds r7, #12 + 800202a: 46bd mov sp, r7 + 800202c: f85d 7b04 ldr.w r7, [sp], #4 + 8002030: 4770 bx lr -08001f7a : +08002032 : * @param hadc pointer to a ADC_HandleTypeDef structure that contains * the configuration information for the specified ADC. * @retval None */ __weak void HAL_ADC_ErrorCallback(ADC_HandleTypeDef *hadc) { - 8001f7a: b480 push {r7} - 8001f7c: b083 sub sp, #12 - 8001f7e: af00 add r7, sp, #0 - 8001f80: 6078 str r0, [r7, #4] + 8002032: b480 push {r7} + 8002034: b083 sub sp, #12 + 8002036: af00 add r7, sp, #0 + 8002038: 6078 str r0, [r7, #4] /* Prevent unused argument(s) compilation warning */ UNUSED(hadc); /* NOTE : This function Should not be modified, when the callback is needed, the HAL_ADC_ErrorCallback could be implemented in the user file */ } - 8001f82: bf00 nop - 8001f84: 370c adds r7, #12 - 8001f86: 46bd mov sp, r7 - 8001f88: f85d 7b04 ldr.w r7, [sp], #4 - 8001f8c: 4770 bx lr + 800203a: bf00 nop + 800203c: 370c adds r7, #12 + 800203e: 46bd mov sp, r7 + 8002040: f85d 7b04 ldr.w r7, [sp], #4 + 8002044: 4770 bx lr ... -08001f90 : +08002048 : * the configuration information for the specified ADC. * @param sConfig ADC configuration structure. * @retval HAL status */ HAL_StatusTypeDef HAL_ADC_ConfigChannel(ADC_HandleTypeDef *hadc, ADC_ChannelConfTypeDef *sConfig) { - 8001f90: b480 push {r7} - 8001f92: b085 sub sp, #20 - 8001f94: af00 add r7, sp, #0 - 8001f96: 6078 str r0, [r7, #4] - 8001f98: 6039 str r1, [r7, #0] + 8002048: b480 push {r7} + 800204a: b085 sub sp, #20 + 800204c: af00 add r7, sp, #0 + 800204e: 6078 str r0, [r7, #4] + 8002050: 6039 str r1, [r7, #0] __IO uint32_t counter = 0U; - 8001f9a: 2300 movs r3, #0 - 8001f9c: 60bb str r3, [r7, #8] + 8002052: 2300 movs r3, #0 + 8002054: 60bb str r3, [r7, #8] assert_param(IS_ADC_CHANNEL(sConfig->Channel)); assert_param(IS_ADC_REGULAR_RANK(sConfig->Rank)); assert_param(IS_ADC_SAMPLE_TIME(sConfig->SamplingTime)); /* Process locked */ __HAL_LOCK(hadc); - 8001f9e: 687b ldr r3, [r7, #4] - 8001fa0: f893 303c ldrb.w r3, [r3, #60] @ 0x3c - 8001fa4: 2b01 cmp r3, #1 - 8001fa6: d101 bne.n 8001fac - 8001fa8: 2302 movs r3, #2 - 8001faa: e113 b.n 80021d4 - 8001fac: 687b ldr r3, [r7, #4] - 8001fae: 2201 movs r2, #1 - 8001fb0: f883 203c strb.w r2, [r3, #60] @ 0x3c + 8002056: 687b ldr r3, [r7, #4] + 8002058: f893 303c ldrb.w r3, [r3, #60] @ 0x3c + 800205c: 2b01 cmp r3, #1 + 800205e: d101 bne.n 8002064 + 8002060: 2302 movs r3, #2 + 8002062: e113 b.n 800228c + 8002064: 687b ldr r3, [r7, #4] + 8002066: 2201 movs r2, #1 + 8002068: f883 203c strb.w r2, [r3, #60] @ 0x3c /* if ADC_Channel_10 ... ADC_Channel_18 is selected */ if (sConfig->Channel > ADC_CHANNEL_9) - 8001fb4: 683b ldr r3, [r7, #0] - 8001fb6: 681b ldr r3, [r3, #0] - 8001fb8: 2b09 cmp r3, #9 - 8001fba: d925 bls.n 8002008 + 800206c: 683b ldr r3, [r7, #0] + 800206e: 681b ldr r3, [r3, #0] + 8002070: 2b09 cmp r3, #9 + 8002072: d925 bls.n 80020c0 { /* Clear the old sample time */ hadc->Instance->SMPR1 &= ~ADC_SMPR1(ADC_SMPR1_SMP10, sConfig->Channel); - 8001fbc: 687b ldr r3, [r7, #4] - 8001fbe: 681b ldr r3, [r3, #0] - 8001fc0: 68d9 ldr r1, [r3, #12] - 8001fc2: 683b ldr r3, [r7, #0] - 8001fc4: 681b ldr r3, [r3, #0] - 8001fc6: b29b uxth r3, r3 - 8001fc8: 461a mov r2, r3 - 8001fca: 4613 mov r3, r2 - 8001fcc: 005b lsls r3, r3, #1 - 8001fce: 4413 add r3, r2 - 8001fd0: 3b1e subs r3, #30 - 8001fd2: 2207 movs r2, #7 - 8001fd4: fa02 f303 lsl.w r3, r2, r3 - 8001fd8: 43da mvns r2, r3 - 8001fda: 687b ldr r3, [r7, #4] - 8001fdc: 681b ldr r3, [r3, #0] - 8001fde: 400a ands r2, r1 - 8001fe0: 60da str r2, [r3, #12] + 8002074: 687b ldr r3, [r7, #4] + 8002076: 681b ldr r3, [r3, #0] + 8002078: 68d9 ldr r1, [r3, #12] + 800207a: 683b ldr r3, [r7, #0] + 800207c: 681b ldr r3, [r3, #0] + 800207e: b29b uxth r3, r3 + 8002080: 461a mov r2, r3 + 8002082: 4613 mov r3, r2 + 8002084: 005b lsls r3, r3, #1 + 8002086: 4413 add r3, r2 + 8002088: 3b1e subs r3, #30 + 800208a: 2207 movs r2, #7 + 800208c: fa02 f303 lsl.w r3, r2, r3 + 8002090: 43da mvns r2, r3 + 8002092: 687b ldr r3, [r7, #4] + 8002094: 681b ldr r3, [r3, #0] + 8002096: 400a ands r2, r1 + 8002098: 60da str r2, [r3, #12] /* Set the new sample time */ hadc->Instance->SMPR1 |= ADC_SMPR1(sConfig->SamplingTime, sConfig->Channel); - 8001fe2: 687b ldr r3, [r7, #4] - 8001fe4: 681b ldr r3, [r3, #0] - 8001fe6: 68d9 ldr r1, [r3, #12] - 8001fe8: 683b ldr r3, [r7, #0] - 8001fea: 689a ldr r2, [r3, #8] - 8001fec: 683b ldr r3, [r7, #0] - 8001fee: 681b ldr r3, [r3, #0] - 8001ff0: b29b uxth r3, r3 - 8001ff2: 4618 mov r0, r3 - 8001ff4: 4603 mov r3, r0 - 8001ff6: 005b lsls r3, r3, #1 - 8001ff8: 4403 add r3, r0 - 8001ffa: 3b1e subs r3, #30 - 8001ffc: 409a lsls r2, r3 - 8001ffe: 687b ldr r3, [r7, #4] - 8002000: 681b ldr r3, [r3, #0] - 8002002: 430a orrs r2, r1 - 8002004: 60da str r2, [r3, #12] - 8002006: e022 b.n 800204e + 800209a: 687b ldr r3, [r7, #4] + 800209c: 681b ldr r3, [r3, #0] + 800209e: 68d9 ldr r1, [r3, #12] + 80020a0: 683b ldr r3, [r7, #0] + 80020a2: 689a ldr r2, [r3, #8] + 80020a4: 683b ldr r3, [r7, #0] + 80020a6: 681b ldr r3, [r3, #0] + 80020a8: b29b uxth r3, r3 + 80020aa: 4618 mov r0, r3 + 80020ac: 4603 mov r3, r0 + 80020ae: 005b lsls r3, r3, #1 + 80020b0: 4403 add r3, r0 + 80020b2: 3b1e subs r3, #30 + 80020b4: 409a lsls r2, r3 + 80020b6: 687b ldr r3, [r7, #4] + 80020b8: 681b ldr r3, [r3, #0] + 80020ba: 430a orrs r2, r1 + 80020bc: 60da str r2, [r3, #12] + 80020be: e022 b.n 8002106 } else /* ADC_Channel include in ADC_Channel_[0..9] */ { /* Clear the old sample time */ hadc->Instance->SMPR2 &= ~ADC_SMPR2(ADC_SMPR2_SMP0, sConfig->Channel); - 8002008: 687b ldr r3, [r7, #4] - 800200a: 681b ldr r3, [r3, #0] - 800200c: 6919 ldr r1, [r3, #16] - 800200e: 683b ldr r3, [r7, #0] - 8002010: 681b ldr r3, [r3, #0] - 8002012: b29b uxth r3, r3 - 8002014: 461a mov r2, r3 - 8002016: 4613 mov r3, r2 - 8002018: 005b lsls r3, r3, #1 - 800201a: 4413 add r3, r2 - 800201c: 2207 movs r2, #7 - 800201e: fa02 f303 lsl.w r3, r2, r3 - 8002022: 43da mvns r2, r3 - 8002024: 687b ldr r3, [r7, #4] - 8002026: 681b ldr r3, [r3, #0] - 8002028: 400a ands r2, r1 - 800202a: 611a str r2, [r3, #16] + 80020c0: 687b ldr r3, [r7, #4] + 80020c2: 681b ldr r3, [r3, #0] + 80020c4: 6919 ldr r1, [r3, #16] + 80020c6: 683b ldr r3, [r7, #0] + 80020c8: 681b ldr r3, [r3, #0] + 80020ca: b29b uxth r3, r3 + 80020cc: 461a mov r2, r3 + 80020ce: 4613 mov r3, r2 + 80020d0: 005b lsls r3, r3, #1 + 80020d2: 4413 add r3, r2 + 80020d4: 2207 movs r2, #7 + 80020d6: fa02 f303 lsl.w r3, r2, r3 + 80020da: 43da mvns r2, r3 + 80020dc: 687b ldr r3, [r7, #4] + 80020de: 681b ldr r3, [r3, #0] + 80020e0: 400a ands r2, r1 + 80020e2: 611a str r2, [r3, #16] /* Set the new sample time */ hadc->Instance->SMPR2 |= ADC_SMPR2(sConfig->SamplingTime, sConfig->Channel); - 800202c: 687b ldr r3, [r7, #4] - 800202e: 681b ldr r3, [r3, #0] - 8002030: 6919 ldr r1, [r3, #16] - 8002032: 683b ldr r3, [r7, #0] - 8002034: 689a ldr r2, [r3, #8] - 8002036: 683b ldr r3, [r7, #0] - 8002038: 681b ldr r3, [r3, #0] - 800203a: b29b uxth r3, r3 - 800203c: 4618 mov r0, r3 - 800203e: 4603 mov r3, r0 - 8002040: 005b lsls r3, r3, #1 - 8002042: 4403 add r3, r0 - 8002044: 409a lsls r2, r3 - 8002046: 687b ldr r3, [r7, #4] - 8002048: 681b ldr r3, [r3, #0] - 800204a: 430a orrs r2, r1 - 800204c: 611a str r2, [r3, #16] + 80020e4: 687b ldr r3, [r7, #4] + 80020e6: 681b ldr r3, [r3, #0] + 80020e8: 6919 ldr r1, [r3, #16] + 80020ea: 683b ldr r3, [r7, #0] + 80020ec: 689a ldr r2, [r3, #8] + 80020ee: 683b ldr r3, [r7, #0] + 80020f0: 681b ldr r3, [r3, #0] + 80020f2: b29b uxth r3, r3 + 80020f4: 4618 mov r0, r3 + 80020f6: 4603 mov r3, r0 + 80020f8: 005b lsls r3, r3, #1 + 80020fa: 4403 add r3, r0 + 80020fc: 409a lsls r2, r3 + 80020fe: 687b ldr r3, [r7, #4] + 8002100: 681b ldr r3, [r3, #0] + 8002102: 430a orrs r2, r1 + 8002104: 611a str r2, [r3, #16] } /* For Rank 1 to 6 */ if (sConfig->Rank < 7U) - 800204e: 683b ldr r3, [r7, #0] - 8002050: 685b ldr r3, [r3, #4] - 8002052: 2b06 cmp r3, #6 - 8002054: d824 bhi.n 80020a0 + 8002106: 683b ldr r3, [r7, #0] + 8002108: 685b ldr r3, [r3, #4] + 800210a: 2b06 cmp r3, #6 + 800210c: d824 bhi.n 8002158 { /* Clear the old SQx bits for the selected rank */ hadc->Instance->SQR3 &= ~ADC_SQR3_RK(ADC_SQR3_SQ1, sConfig->Rank); - 8002056: 687b ldr r3, [r7, #4] - 8002058: 681b ldr r3, [r3, #0] - 800205a: 6b59 ldr r1, [r3, #52] @ 0x34 - 800205c: 683b ldr r3, [r7, #0] - 800205e: 685a ldr r2, [r3, #4] - 8002060: 4613 mov r3, r2 - 8002062: 009b lsls r3, r3, #2 - 8002064: 4413 add r3, r2 - 8002066: 3b05 subs r3, #5 - 8002068: 221f movs r2, #31 - 800206a: fa02 f303 lsl.w r3, r2, r3 - 800206e: 43da mvns r2, r3 - 8002070: 687b ldr r3, [r7, #4] - 8002072: 681b ldr r3, [r3, #0] - 8002074: 400a ands r2, r1 - 8002076: 635a str r2, [r3, #52] @ 0x34 + 800210e: 687b ldr r3, [r7, #4] + 8002110: 681b ldr r3, [r3, #0] + 8002112: 6b59 ldr r1, [r3, #52] @ 0x34 + 8002114: 683b ldr r3, [r7, #0] + 8002116: 685a ldr r2, [r3, #4] + 8002118: 4613 mov r3, r2 + 800211a: 009b lsls r3, r3, #2 + 800211c: 4413 add r3, r2 + 800211e: 3b05 subs r3, #5 + 8002120: 221f movs r2, #31 + 8002122: fa02 f303 lsl.w r3, r2, r3 + 8002126: 43da mvns r2, r3 + 8002128: 687b ldr r3, [r7, #4] + 800212a: 681b ldr r3, [r3, #0] + 800212c: 400a ands r2, r1 + 800212e: 635a str r2, [r3, #52] @ 0x34 /* Set the SQx bits for the selected rank */ hadc->Instance->SQR3 |= ADC_SQR3_RK(sConfig->Channel, sConfig->Rank); - 8002078: 687b ldr r3, [r7, #4] - 800207a: 681b ldr r3, [r3, #0] - 800207c: 6b59 ldr r1, [r3, #52] @ 0x34 - 800207e: 683b ldr r3, [r7, #0] - 8002080: 681b ldr r3, [r3, #0] - 8002082: b29b uxth r3, r3 - 8002084: 4618 mov r0, r3 - 8002086: 683b ldr r3, [r7, #0] - 8002088: 685a ldr r2, [r3, #4] - 800208a: 4613 mov r3, r2 - 800208c: 009b lsls r3, r3, #2 - 800208e: 4413 add r3, r2 - 8002090: 3b05 subs r3, #5 - 8002092: fa00 f203 lsl.w r2, r0, r3 - 8002096: 687b ldr r3, [r7, #4] - 8002098: 681b ldr r3, [r3, #0] - 800209a: 430a orrs r2, r1 - 800209c: 635a str r2, [r3, #52] @ 0x34 - 800209e: e04c b.n 800213a + 8002130: 687b ldr r3, [r7, #4] + 8002132: 681b ldr r3, [r3, #0] + 8002134: 6b59 ldr r1, [r3, #52] @ 0x34 + 8002136: 683b ldr r3, [r7, #0] + 8002138: 681b ldr r3, [r3, #0] + 800213a: b29b uxth r3, r3 + 800213c: 4618 mov r0, r3 + 800213e: 683b ldr r3, [r7, #0] + 8002140: 685a ldr r2, [r3, #4] + 8002142: 4613 mov r3, r2 + 8002144: 009b lsls r3, r3, #2 + 8002146: 4413 add r3, r2 + 8002148: 3b05 subs r3, #5 + 800214a: fa00 f203 lsl.w r2, r0, r3 + 800214e: 687b ldr r3, [r7, #4] + 8002150: 681b ldr r3, [r3, #0] + 8002152: 430a orrs r2, r1 + 8002154: 635a str r2, [r3, #52] @ 0x34 + 8002156: e04c b.n 80021f2 } /* For Rank 7 to 12 */ else if (sConfig->Rank < 13U) - 80020a0: 683b ldr r3, [r7, #0] - 80020a2: 685b ldr r3, [r3, #4] - 80020a4: 2b0c cmp r3, #12 - 80020a6: d824 bhi.n 80020f2 + 8002158: 683b ldr r3, [r7, #0] + 800215a: 685b ldr r3, [r3, #4] + 800215c: 2b0c cmp r3, #12 + 800215e: d824 bhi.n 80021aa { /* Clear the old SQx bits for the selected rank */ hadc->Instance->SQR2 &= ~ADC_SQR2_RK(ADC_SQR2_SQ7, sConfig->Rank); - 80020a8: 687b ldr r3, [r7, #4] - 80020aa: 681b ldr r3, [r3, #0] - 80020ac: 6b19 ldr r1, [r3, #48] @ 0x30 - 80020ae: 683b ldr r3, [r7, #0] - 80020b0: 685a ldr r2, [r3, #4] - 80020b2: 4613 mov r3, r2 - 80020b4: 009b lsls r3, r3, #2 - 80020b6: 4413 add r3, r2 - 80020b8: 3b23 subs r3, #35 @ 0x23 - 80020ba: 221f movs r2, #31 - 80020bc: fa02 f303 lsl.w r3, r2, r3 - 80020c0: 43da mvns r2, r3 - 80020c2: 687b ldr r3, [r7, #4] - 80020c4: 681b ldr r3, [r3, #0] - 80020c6: 400a ands r2, r1 - 80020c8: 631a str r2, [r3, #48] @ 0x30 + 8002160: 687b ldr r3, [r7, #4] + 8002162: 681b ldr r3, [r3, #0] + 8002164: 6b19 ldr r1, [r3, #48] @ 0x30 + 8002166: 683b ldr r3, [r7, #0] + 8002168: 685a ldr r2, [r3, #4] + 800216a: 4613 mov r3, r2 + 800216c: 009b lsls r3, r3, #2 + 800216e: 4413 add r3, r2 + 8002170: 3b23 subs r3, #35 @ 0x23 + 8002172: 221f movs r2, #31 + 8002174: fa02 f303 lsl.w r3, r2, r3 + 8002178: 43da mvns r2, r3 + 800217a: 687b ldr r3, [r7, #4] + 800217c: 681b ldr r3, [r3, #0] + 800217e: 400a ands r2, r1 + 8002180: 631a str r2, [r3, #48] @ 0x30 /* Set the SQx bits for the selected rank */ hadc->Instance->SQR2 |= ADC_SQR2_RK(sConfig->Channel, sConfig->Rank); - 80020ca: 687b ldr r3, [r7, #4] - 80020cc: 681b ldr r3, [r3, #0] - 80020ce: 6b19 ldr r1, [r3, #48] @ 0x30 - 80020d0: 683b ldr r3, [r7, #0] - 80020d2: 681b ldr r3, [r3, #0] - 80020d4: b29b uxth r3, r3 - 80020d6: 4618 mov r0, r3 - 80020d8: 683b ldr r3, [r7, #0] - 80020da: 685a ldr r2, [r3, #4] - 80020dc: 4613 mov r3, r2 - 80020de: 009b lsls r3, r3, #2 - 80020e0: 4413 add r3, r2 - 80020e2: 3b23 subs r3, #35 @ 0x23 - 80020e4: fa00 f203 lsl.w r2, r0, r3 - 80020e8: 687b ldr r3, [r7, #4] - 80020ea: 681b ldr r3, [r3, #0] - 80020ec: 430a orrs r2, r1 - 80020ee: 631a str r2, [r3, #48] @ 0x30 - 80020f0: e023 b.n 800213a + 8002182: 687b ldr r3, [r7, #4] + 8002184: 681b ldr r3, [r3, #0] + 8002186: 6b19 ldr r1, [r3, #48] @ 0x30 + 8002188: 683b ldr r3, [r7, #0] + 800218a: 681b ldr r3, [r3, #0] + 800218c: b29b uxth r3, r3 + 800218e: 4618 mov r0, r3 + 8002190: 683b ldr r3, [r7, #0] + 8002192: 685a ldr r2, [r3, #4] + 8002194: 4613 mov r3, r2 + 8002196: 009b lsls r3, r3, #2 + 8002198: 4413 add r3, r2 + 800219a: 3b23 subs r3, #35 @ 0x23 + 800219c: fa00 f203 lsl.w r2, r0, r3 + 80021a0: 687b ldr r3, [r7, #4] + 80021a2: 681b ldr r3, [r3, #0] + 80021a4: 430a orrs r2, r1 + 80021a6: 631a str r2, [r3, #48] @ 0x30 + 80021a8: e023 b.n 80021f2 } /* For Rank 13 to 16 */ else { /* Clear the old SQx bits for the selected rank */ hadc->Instance->SQR1 &= ~ADC_SQR1_RK(ADC_SQR1_SQ13, sConfig->Rank); - 80020f2: 687b ldr r3, [r7, #4] - 80020f4: 681b ldr r3, [r3, #0] - 80020f6: 6ad9 ldr r1, [r3, #44] @ 0x2c - 80020f8: 683b ldr r3, [r7, #0] - 80020fa: 685a ldr r2, [r3, #4] - 80020fc: 4613 mov r3, r2 - 80020fe: 009b lsls r3, r3, #2 - 8002100: 4413 add r3, r2 - 8002102: 3b41 subs r3, #65 @ 0x41 - 8002104: 221f movs r2, #31 - 8002106: fa02 f303 lsl.w r3, r2, r3 - 800210a: 43da mvns r2, r3 - 800210c: 687b ldr r3, [r7, #4] - 800210e: 681b ldr r3, [r3, #0] - 8002110: 400a ands r2, r1 - 8002112: 62da str r2, [r3, #44] @ 0x2c + 80021aa: 687b ldr r3, [r7, #4] + 80021ac: 681b ldr r3, [r3, #0] + 80021ae: 6ad9 ldr r1, [r3, #44] @ 0x2c + 80021b0: 683b ldr r3, [r7, #0] + 80021b2: 685a ldr r2, [r3, #4] + 80021b4: 4613 mov r3, r2 + 80021b6: 009b lsls r3, r3, #2 + 80021b8: 4413 add r3, r2 + 80021ba: 3b41 subs r3, #65 @ 0x41 + 80021bc: 221f movs r2, #31 + 80021be: fa02 f303 lsl.w r3, r2, r3 + 80021c2: 43da mvns r2, r3 + 80021c4: 687b ldr r3, [r7, #4] + 80021c6: 681b ldr r3, [r3, #0] + 80021c8: 400a ands r2, r1 + 80021ca: 62da str r2, [r3, #44] @ 0x2c /* Set the SQx bits for the selected rank */ hadc->Instance->SQR1 |= ADC_SQR1_RK(sConfig->Channel, sConfig->Rank); - 8002114: 687b ldr r3, [r7, #4] - 8002116: 681b ldr r3, [r3, #0] - 8002118: 6ad9 ldr r1, [r3, #44] @ 0x2c - 800211a: 683b ldr r3, [r7, #0] - 800211c: 681b ldr r3, [r3, #0] - 800211e: b29b uxth r3, r3 - 8002120: 4618 mov r0, r3 - 8002122: 683b ldr r3, [r7, #0] - 8002124: 685a ldr r2, [r3, #4] - 8002126: 4613 mov r3, r2 - 8002128: 009b lsls r3, r3, #2 - 800212a: 4413 add r3, r2 - 800212c: 3b41 subs r3, #65 @ 0x41 - 800212e: fa00 f203 lsl.w r2, r0, r3 - 8002132: 687b ldr r3, [r7, #4] - 8002134: 681b ldr r3, [r3, #0] - 8002136: 430a orrs r2, r1 - 8002138: 62da str r2, [r3, #44] @ 0x2c + 80021cc: 687b ldr r3, [r7, #4] + 80021ce: 681b ldr r3, [r3, #0] + 80021d0: 6ad9 ldr r1, [r3, #44] @ 0x2c + 80021d2: 683b ldr r3, [r7, #0] + 80021d4: 681b ldr r3, [r3, #0] + 80021d6: b29b uxth r3, r3 + 80021d8: 4618 mov r0, r3 + 80021da: 683b ldr r3, [r7, #0] + 80021dc: 685a ldr r2, [r3, #4] + 80021de: 4613 mov r3, r2 + 80021e0: 009b lsls r3, r3, #2 + 80021e2: 4413 add r3, r2 + 80021e4: 3b41 subs r3, #65 @ 0x41 + 80021e6: fa00 f203 lsl.w r2, r0, r3 + 80021ea: 687b ldr r3, [r7, #4] + 80021ec: 681b ldr r3, [r3, #0] + 80021ee: 430a orrs r2, r1 + 80021f0: 62da str r2, [r3, #44] @ 0x2c } /* Pointer to the common control register to which is belonging hadc */ /* (Depending on STM32F4 product, there may be up to 3 ADCs and 1 common */ /* control register) */ tmpADC_Common = ADC_COMMON_REGISTER(hadc); - 800213a: 4b29 ldr r3, [pc, #164] @ (80021e0 ) - 800213c: 60fb str r3, [r7, #12] + 80021f2: 4b29 ldr r3, [pc, #164] @ (8002298 ) + 80021f4: 60fb str r3, [r7, #12] /* if ADC1 Channel_18 is selected for VBAT Channel ennable VBATE */ if ((hadc->Instance == ADC1) && (sConfig->Channel == ADC_CHANNEL_VBAT)) - 800213e: 687b ldr r3, [r7, #4] - 8002140: 681b ldr r3, [r3, #0] - 8002142: 4a28 ldr r2, [pc, #160] @ (80021e4 ) - 8002144: 4293 cmp r3, r2 - 8002146: d10f bne.n 8002168 - 8002148: 683b ldr r3, [r7, #0] - 800214a: 681b ldr r3, [r3, #0] - 800214c: 2b12 cmp r3, #18 - 800214e: d10b bne.n 8002168 + 80021f6: 687b ldr r3, [r7, #4] + 80021f8: 681b ldr r3, [r3, #0] + 80021fa: 4a28 ldr r2, [pc, #160] @ (800229c ) + 80021fc: 4293 cmp r3, r2 + 80021fe: d10f bne.n 8002220 + 8002200: 683b ldr r3, [r7, #0] + 8002202: 681b ldr r3, [r3, #0] + 8002204: 2b12 cmp r3, #18 + 8002206: d10b bne.n 8002220 { /* Disable the TEMPSENSOR channel in case of using board with multiplixed ADC_CHANNEL_VBAT & ADC_CHANNEL_TEMPSENSOR*/ if ((uint16_t)ADC_CHANNEL_TEMPSENSOR == (uint16_t)ADC_CHANNEL_VBAT) { tmpADC_Common->CCR &= ~ADC_CCR_TSVREFE; - 8002150: 68fb ldr r3, [r7, #12] - 8002152: 685b ldr r3, [r3, #4] - 8002154: f423 0200 bic.w r2, r3, #8388608 @ 0x800000 - 8002158: 68fb ldr r3, [r7, #12] - 800215a: 605a str r2, [r3, #4] + 8002208: 68fb ldr r3, [r7, #12] + 800220a: 685b ldr r3, [r3, #4] + 800220c: f423 0200 bic.w r2, r3, #8388608 @ 0x800000 + 8002210: 68fb ldr r3, [r7, #12] + 8002212: 605a str r2, [r3, #4] } /* Enable the VBAT channel*/ tmpADC_Common->CCR |= ADC_CCR_VBATE; - 800215c: 68fb ldr r3, [r7, #12] - 800215e: 685b ldr r3, [r3, #4] - 8002160: f443 0280 orr.w r2, r3, #4194304 @ 0x400000 - 8002164: 68fb ldr r3, [r7, #12] - 8002166: 605a str r2, [r3, #4] + 8002214: 68fb ldr r3, [r7, #12] + 8002216: 685b ldr r3, [r3, #4] + 8002218: f443 0280 orr.w r2, r3, #4194304 @ 0x400000 + 800221c: 68fb ldr r3, [r7, #12] + 800221e: 605a str r2, [r3, #4] } /* if ADC1 Channel_16 or Channel_18 is selected for Temperature sensor or Channel_17 is selected for VREFINT enable TSVREFE */ if ((hadc->Instance == ADC1) && ((sConfig->Channel == ADC_CHANNEL_TEMPSENSOR) || (sConfig->Channel == ADC_CHANNEL_VREFINT))) - 8002168: 687b ldr r3, [r7, #4] - 800216a: 681b ldr r3, [r3, #0] - 800216c: 4a1d ldr r2, [pc, #116] @ (80021e4 ) - 800216e: 4293 cmp r3, r2 - 8002170: d12b bne.n 80021ca - 8002172: 683b ldr r3, [r7, #0] - 8002174: 681b ldr r3, [r3, #0] - 8002176: 4a1c ldr r2, [pc, #112] @ (80021e8 ) - 8002178: 4293 cmp r3, r2 - 800217a: d003 beq.n 8002184 - 800217c: 683b ldr r3, [r7, #0] - 800217e: 681b ldr r3, [r3, #0] - 8002180: 2b11 cmp r3, #17 - 8002182: d122 bne.n 80021ca + 8002220: 687b ldr r3, [r7, #4] + 8002222: 681b ldr r3, [r3, #0] + 8002224: 4a1d ldr r2, [pc, #116] @ (800229c ) + 8002226: 4293 cmp r3, r2 + 8002228: d12b bne.n 8002282 + 800222a: 683b ldr r3, [r7, #0] + 800222c: 681b ldr r3, [r3, #0] + 800222e: 4a1c ldr r2, [pc, #112] @ (80022a0 ) + 8002230: 4293 cmp r3, r2 + 8002232: d003 beq.n 800223c + 8002234: 683b ldr r3, [r7, #0] + 8002236: 681b ldr r3, [r3, #0] + 8002238: 2b11 cmp r3, #17 + 800223a: d122 bne.n 8002282 { /* Disable the VBAT channel in case of using board with multiplixed ADC_CHANNEL_VBAT & ADC_CHANNEL_TEMPSENSOR*/ if ((uint16_t)ADC_CHANNEL_TEMPSENSOR == (uint16_t)ADC_CHANNEL_VBAT) { tmpADC_Common->CCR &= ~ADC_CCR_VBATE; - 8002184: 68fb ldr r3, [r7, #12] - 8002186: 685b ldr r3, [r3, #4] - 8002188: f423 0280 bic.w r2, r3, #4194304 @ 0x400000 - 800218c: 68fb ldr r3, [r7, #12] - 800218e: 605a str r2, [r3, #4] + 800223c: 68fb ldr r3, [r7, #12] + 800223e: 685b ldr r3, [r3, #4] + 8002240: f423 0280 bic.w r2, r3, #4194304 @ 0x400000 + 8002244: 68fb ldr r3, [r7, #12] + 8002246: 605a str r2, [r3, #4] } /* Enable the Temperature sensor and VREFINT channel*/ tmpADC_Common->CCR |= ADC_CCR_TSVREFE; - 8002190: 68fb ldr r3, [r7, #12] - 8002192: 685b ldr r3, [r3, #4] - 8002194: f443 0200 orr.w r2, r3, #8388608 @ 0x800000 - 8002198: 68fb ldr r3, [r7, #12] - 800219a: 605a str r2, [r3, #4] + 8002248: 68fb ldr r3, [r7, #12] + 800224a: 685b ldr r3, [r3, #4] + 800224c: f443 0200 orr.w r2, r3, #8388608 @ 0x800000 + 8002250: 68fb ldr r3, [r7, #12] + 8002252: 605a str r2, [r3, #4] if (sConfig->Channel == ADC_CHANNEL_TEMPSENSOR) - 800219c: 683b ldr r3, [r7, #0] - 800219e: 681b ldr r3, [r3, #0] - 80021a0: 4a11 ldr r2, [pc, #68] @ (80021e8 ) - 80021a2: 4293 cmp r3, r2 - 80021a4: d111 bne.n 80021ca + 8002254: 683b ldr r3, [r7, #0] + 8002256: 681b ldr r3, [r3, #0] + 8002258: 4a11 ldr r2, [pc, #68] @ (80022a0 ) + 800225a: 4293 cmp r3, r2 + 800225c: d111 bne.n 8002282 { /* Delay for temperature sensor stabilization time */ /* Compute number of CPU cycles to wait for */ counter = (ADC_TEMPSENSOR_DELAY_US * (SystemCoreClock / 1000000U)); - 80021a6: 4b11 ldr r3, [pc, #68] @ (80021ec ) - 80021a8: 681b ldr r3, [r3, #0] - 80021aa: 4a11 ldr r2, [pc, #68] @ (80021f0 ) - 80021ac: fba2 2303 umull r2, r3, r2, r3 - 80021b0: 0c9a lsrs r2, r3, #18 - 80021b2: 4613 mov r3, r2 - 80021b4: 009b lsls r3, r3, #2 - 80021b6: 4413 add r3, r2 - 80021b8: 005b lsls r3, r3, #1 - 80021ba: 60bb str r3, [r7, #8] + 800225e: 4b11 ldr r3, [pc, #68] @ (80022a4 ) + 8002260: 681b ldr r3, [r3, #0] + 8002262: 4a11 ldr r2, [pc, #68] @ (80022a8 ) + 8002264: fba2 2303 umull r2, r3, r2, r3 + 8002268: 0c9a lsrs r2, r3, #18 + 800226a: 4613 mov r3, r2 + 800226c: 009b lsls r3, r3, #2 + 800226e: 4413 add r3, r2 + 8002270: 005b lsls r3, r3, #1 + 8002272: 60bb str r3, [r7, #8] while (counter != 0U) - 80021bc: e002 b.n 80021c4 + 8002274: e002 b.n 800227c { counter--; - 80021be: 68bb ldr r3, [r7, #8] - 80021c0: 3b01 subs r3, #1 - 80021c2: 60bb str r3, [r7, #8] + 8002276: 68bb ldr r3, [r7, #8] + 8002278: 3b01 subs r3, #1 + 800227a: 60bb str r3, [r7, #8] while (counter != 0U) - 80021c4: 68bb ldr r3, [r7, #8] - 80021c6: 2b00 cmp r3, #0 - 80021c8: d1f9 bne.n 80021be + 800227c: 68bb ldr r3, [r7, #8] + 800227e: 2b00 cmp r3, #0 + 8002280: d1f9 bne.n 8002276 } } } /* Process unlocked */ __HAL_UNLOCK(hadc); - 80021ca: 687b ldr r3, [r7, #4] - 80021cc: 2200 movs r2, #0 - 80021ce: f883 203c strb.w r2, [r3, #60] @ 0x3c + 8002282: 687b ldr r3, [r7, #4] + 8002284: 2200 movs r2, #0 + 8002286: f883 203c strb.w r2, [r3, #60] @ 0x3c /* Return function status */ return HAL_OK; - 80021d2: 2300 movs r3, #0 + 800228a: 2300 movs r3, #0 } - 80021d4: 4618 mov r0, r3 - 80021d6: 3714 adds r7, #20 - 80021d8: 46bd mov sp, r7 - 80021da: f85d 7b04 ldr.w r7, [sp], #4 - 80021de: 4770 bx lr - 80021e0: 40012300 .word 0x40012300 - 80021e4: 40012000 .word 0x40012000 - 80021e8: 10000012 .word 0x10000012 - 80021ec: 20000008 .word 0x20000008 - 80021f0: 431bde83 .word 0x431bde83 + 800228c: 4618 mov r0, r3 + 800228e: 3714 adds r7, #20 + 8002290: 46bd mov sp, r7 + 8002292: f85d 7b04 ldr.w r7, [sp], #4 + 8002296: 4770 bx lr + 8002298: 40012300 .word 0x40012300 + 800229c: 40012000 .word 0x40012000 + 80022a0: 10000012 .word 0x10000012 + 80022a4: 20000008 .word 0x20000008 + 80022a8: 431bde83 .word 0x431bde83 -080021f4 : +080022ac : * @param hadc pointer to a ADC_HandleTypeDef structure that contains * the configuration information for the specified ADC. * @retval None */ static void ADC_Init(ADC_HandleTypeDef *hadc) { - 80021f4: b480 push {r7} - 80021f6: b085 sub sp, #20 - 80021f8: af00 add r7, sp, #0 - 80021fa: 6078 str r0, [r7, #4] + 80022ac: b480 push {r7} + 80022ae: b085 sub sp, #20 + 80022b0: af00 add r7, sp, #0 + 80022b2: 6078 str r0, [r7, #4] /* Set ADC parameters */ /* Pointer to the common control register to which is belonging hadc */ /* (Depending on STM32F4 product, there may be up to 3 ADCs and 1 common */ /* control register) */ tmpADC_Common = ADC_COMMON_REGISTER(hadc); - 80021fc: 4b79 ldr r3, [pc, #484] @ (80023e4 ) - 80021fe: 60fb str r3, [r7, #12] + 80022b4: 4b79 ldr r3, [pc, #484] @ (800249c ) + 80022b6: 60fb str r3, [r7, #12] /* Set the ADC clock prescaler */ tmpADC_Common->CCR &= ~(ADC_CCR_ADCPRE); - 8002200: 68fb ldr r3, [r7, #12] - 8002202: 685b ldr r3, [r3, #4] - 8002204: f423 3240 bic.w r2, r3, #196608 @ 0x30000 - 8002208: 68fb ldr r3, [r7, #12] - 800220a: 605a str r2, [r3, #4] + 80022b8: 68fb ldr r3, [r7, #12] + 80022ba: 685b ldr r3, [r3, #4] + 80022bc: f423 3240 bic.w r2, r3, #196608 @ 0x30000 + 80022c0: 68fb ldr r3, [r7, #12] + 80022c2: 605a str r2, [r3, #4] tmpADC_Common->CCR |= hadc->Init.ClockPrescaler; - 800220c: 68fb ldr r3, [r7, #12] - 800220e: 685a ldr r2, [r3, #4] - 8002210: 687b ldr r3, [r7, #4] - 8002212: 685b ldr r3, [r3, #4] - 8002214: 431a orrs r2, r3 - 8002216: 68fb ldr r3, [r7, #12] - 8002218: 605a str r2, [r3, #4] + 80022c4: 68fb ldr r3, [r7, #12] + 80022c6: 685a ldr r2, [r3, #4] + 80022c8: 687b ldr r3, [r7, #4] + 80022ca: 685b ldr r3, [r3, #4] + 80022cc: 431a orrs r2, r3 + 80022ce: 68fb ldr r3, [r7, #12] + 80022d0: 605a str r2, [r3, #4] /* Set ADC scan mode */ hadc->Instance->CR1 &= ~(ADC_CR1_SCAN); - 800221a: 687b ldr r3, [r7, #4] - 800221c: 681b ldr r3, [r3, #0] - 800221e: 685a ldr r2, [r3, #4] - 8002220: 687b ldr r3, [r7, #4] - 8002222: 681b ldr r3, [r3, #0] - 8002224: f422 7280 bic.w r2, r2, #256 @ 0x100 - 8002228: 605a str r2, [r3, #4] + 80022d2: 687b ldr r3, [r7, #4] + 80022d4: 681b ldr r3, [r3, #0] + 80022d6: 685a ldr r2, [r3, #4] + 80022d8: 687b ldr r3, [r7, #4] + 80022da: 681b ldr r3, [r3, #0] + 80022dc: f422 7280 bic.w r2, r2, #256 @ 0x100 + 80022e0: 605a str r2, [r3, #4] hadc->Instance->CR1 |= ADC_CR1_SCANCONV(hadc->Init.ScanConvMode); - 800222a: 687b ldr r3, [r7, #4] - 800222c: 681b ldr r3, [r3, #0] - 800222e: 6859 ldr r1, [r3, #4] - 8002230: 687b ldr r3, [r7, #4] - 8002232: 691b ldr r3, [r3, #16] - 8002234: 021a lsls r2, r3, #8 - 8002236: 687b ldr r3, [r7, #4] - 8002238: 681b ldr r3, [r3, #0] - 800223a: 430a orrs r2, r1 - 800223c: 605a str r2, [r3, #4] + 80022e2: 687b ldr r3, [r7, #4] + 80022e4: 681b ldr r3, [r3, #0] + 80022e6: 6859 ldr r1, [r3, #4] + 80022e8: 687b ldr r3, [r7, #4] + 80022ea: 691b ldr r3, [r3, #16] + 80022ec: 021a lsls r2, r3, #8 + 80022ee: 687b ldr r3, [r7, #4] + 80022f0: 681b ldr r3, [r3, #0] + 80022f2: 430a orrs r2, r1 + 80022f4: 605a str r2, [r3, #4] /* Set ADC resolution */ hadc->Instance->CR1 &= ~(ADC_CR1_RES); - 800223e: 687b ldr r3, [r7, #4] - 8002240: 681b ldr r3, [r3, #0] - 8002242: 685a ldr r2, [r3, #4] - 8002244: 687b ldr r3, [r7, #4] - 8002246: 681b ldr r3, [r3, #0] - 8002248: f022 7240 bic.w r2, r2, #50331648 @ 0x3000000 - 800224c: 605a str r2, [r3, #4] + 80022f6: 687b ldr r3, [r7, #4] + 80022f8: 681b ldr r3, [r3, #0] + 80022fa: 685a ldr r2, [r3, #4] + 80022fc: 687b ldr r3, [r7, #4] + 80022fe: 681b ldr r3, [r3, #0] + 8002300: f022 7240 bic.w r2, r2, #50331648 @ 0x3000000 + 8002304: 605a str r2, [r3, #4] hadc->Instance->CR1 |= hadc->Init.Resolution; - 800224e: 687b ldr r3, [r7, #4] - 8002250: 681b ldr r3, [r3, #0] - 8002252: 6859 ldr r1, [r3, #4] - 8002254: 687b ldr r3, [r7, #4] - 8002256: 689a ldr r2, [r3, #8] - 8002258: 687b ldr r3, [r7, #4] - 800225a: 681b ldr r3, [r3, #0] - 800225c: 430a orrs r2, r1 - 800225e: 605a str r2, [r3, #4] + 8002306: 687b ldr r3, [r7, #4] + 8002308: 681b ldr r3, [r3, #0] + 800230a: 6859 ldr r1, [r3, #4] + 800230c: 687b ldr r3, [r7, #4] + 800230e: 689a ldr r2, [r3, #8] + 8002310: 687b ldr r3, [r7, #4] + 8002312: 681b ldr r3, [r3, #0] + 8002314: 430a orrs r2, r1 + 8002316: 605a str r2, [r3, #4] /* Set ADC data alignment */ hadc->Instance->CR2 &= ~(ADC_CR2_ALIGN); - 8002260: 687b ldr r3, [r7, #4] - 8002262: 681b ldr r3, [r3, #0] - 8002264: 689a ldr r2, [r3, #8] - 8002266: 687b ldr r3, [r7, #4] - 8002268: 681b ldr r3, [r3, #0] - 800226a: f422 6200 bic.w r2, r2, #2048 @ 0x800 - 800226e: 609a str r2, [r3, #8] + 8002318: 687b ldr r3, [r7, #4] + 800231a: 681b ldr r3, [r3, #0] + 800231c: 689a ldr r2, [r3, #8] + 800231e: 687b ldr r3, [r7, #4] + 8002320: 681b ldr r3, [r3, #0] + 8002322: f422 6200 bic.w r2, r2, #2048 @ 0x800 + 8002326: 609a str r2, [r3, #8] hadc->Instance->CR2 |= hadc->Init.DataAlign; - 8002270: 687b ldr r3, [r7, #4] - 8002272: 681b ldr r3, [r3, #0] - 8002274: 6899 ldr r1, [r3, #8] - 8002276: 687b ldr r3, [r7, #4] - 8002278: 68da ldr r2, [r3, #12] - 800227a: 687b ldr r3, [r7, #4] - 800227c: 681b ldr r3, [r3, #0] - 800227e: 430a orrs r2, r1 - 8002280: 609a str r2, [r3, #8] + 8002328: 687b ldr r3, [r7, #4] + 800232a: 681b ldr r3, [r3, #0] + 800232c: 6899 ldr r1, [r3, #8] + 800232e: 687b ldr r3, [r7, #4] + 8002330: 68da ldr r2, [r3, #12] + 8002332: 687b ldr r3, [r7, #4] + 8002334: 681b ldr r3, [r3, #0] + 8002336: 430a orrs r2, r1 + 8002338: 609a str r2, [r3, #8] /* 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) - 8002282: 687b ldr r3, [r7, #4] - 8002284: 6a9b ldr r3, [r3, #40] @ 0x28 - 8002286: 4a58 ldr r2, [pc, #352] @ (80023e8 ) - 8002288: 4293 cmp r3, r2 - 800228a: d022 beq.n 80022d2 + 800233a: 687b ldr r3, [r7, #4] + 800233c: 6a9b ldr r3, [r3, #40] @ 0x28 + 800233e: 4a58 ldr r2, [pc, #352] @ (80024a0 ) + 8002340: 4293 cmp r3, r2 + 8002342: d022 beq.n 800238a { /* Select external trigger to start conversion */ hadc->Instance->CR2 &= ~(ADC_CR2_EXTSEL); - 800228c: 687b ldr r3, [r7, #4] - 800228e: 681b ldr r3, [r3, #0] - 8002290: 689a ldr r2, [r3, #8] - 8002292: 687b ldr r3, [r7, #4] - 8002294: 681b ldr r3, [r3, #0] - 8002296: f022 6270 bic.w r2, r2, #251658240 @ 0xf000000 - 800229a: 609a str r2, [r3, #8] + 8002344: 687b ldr r3, [r7, #4] + 8002346: 681b ldr r3, [r3, #0] + 8002348: 689a ldr r2, [r3, #8] + 800234a: 687b ldr r3, [r7, #4] + 800234c: 681b ldr r3, [r3, #0] + 800234e: f022 6270 bic.w r2, r2, #251658240 @ 0xf000000 + 8002352: 609a str r2, [r3, #8] hadc->Instance->CR2 |= hadc->Init.ExternalTrigConv; - 800229c: 687b ldr r3, [r7, #4] - 800229e: 681b ldr r3, [r3, #0] - 80022a0: 6899 ldr r1, [r3, #8] - 80022a2: 687b ldr r3, [r7, #4] - 80022a4: 6a9a ldr r2, [r3, #40] @ 0x28 - 80022a6: 687b ldr r3, [r7, #4] - 80022a8: 681b ldr r3, [r3, #0] - 80022aa: 430a orrs r2, r1 - 80022ac: 609a str r2, [r3, #8] + 8002354: 687b ldr r3, [r7, #4] + 8002356: 681b ldr r3, [r3, #0] + 8002358: 6899 ldr r1, [r3, #8] + 800235a: 687b ldr r3, [r7, #4] + 800235c: 6a9a ldr r2, [r3, #40] @ 0x28 + 800235e: 687b ldr r3, [r7, #4] + 8002360: 681b ldr r3, [r3, #0] + 8002362: 430a orrs r2, r1 + 8002364: 609a str r2, [r3, #8] /* Select external trigger polarity */ hadc->Instance->CR2 &= ~(ADC_CR2_EXTEN); - 80022ae: 687b ldr r3, [r7, #4] - 80022b0: 681b ldr r3, [r3, #0] - 80022b2: 689a ldr r2, [r3, #8] - 80022b4: 687b ldr r3, [r7, #4] - 80022b6: 681b ldr r3, [r3, #0] - 80022b8: f022 5240 bic.w r2, r2, #805306368 @ 0x30000000 - 80022bc: 609a str r2, [r3, #8] + 8002366: 687b ldr r3, [r7, #4] + 8002368: 681b ldr r3, [r3, #0] + 800236a: 689a ldr r2, [r3, #8] + 800236c: 687b ldr r3, [r7, #4] + 800236e: 681b ldr r3, [r3, #0] + 8002370: f022 5240 bic.w r2, r2, #805306368 @ 0x30000000 + 8002374: 609a str r2, [r3, #8] hadc->Instance->CR2 |= hadc->Init.ExternalTrigConvEdge; - 80022be: 687b ldr r3, [r7, #4] - 80022c0: 681b ldr r3, [r3, #0] - 80022c2: 6899 ldr r1, [r3, #8] - 80022c4: 687b ldr r3, [r7, #4] - 80022c6: 6ada ldr r2, [r3, #44] @ 0x2c - 80022c8: 687b ldr r3, [r7, #4] - 80022ca: 681b ldr r3, [r3, #0] - 80022cc: 430a orrs r2, r1 - 80022ce: 609a str r2, [r3, #8] - 80022d0: e00f b.n 80022f2 + 8002376: 687b ldr r3, [r7, #4] + 8002378: 681b ldr r3, [r3, #0] + 800237a: 6899 ldr r1, [r3, #8] + 800237c: 687b ldr r3, [r7, #4] + 800237e: 6ada ldr r2, [r3, #44] @ 0x2c + 8002380: 687b ldr r3, [r7, #4] + 8002382: 681b ldr r3, [r3, #0] + 8002384: 430a orrs r2, r1 + 8002386: 609a str r2, [r3, #8] + 8002388: e00f b.n 80023aa } else { /* Reset the external trigger */ hadc->Instance->CR2 &= ~(ADC_CR2_EXTSEL); - 80022d2: 687b ldr r3, [r7, #4] - 80022d4: 681b ldr r3, [r3, #0] - 80022d6: 689a ldr r2, [r3, #8] - 80022d8: 687b ldr r3, [r7, #4] - 80022da: 681b ldr r3, [r3, #0] - 80022dc: f022 6270 bic.w r2, r2, #251658240 @ 0xf000000 - 80022e0: 609a str r2, [r3, #8] + 800238a: 687b ldr r3, [r7, #4] + 800238c: 681b ldr r3, [r3, #0] + 800238e: 689a ldr r2, [r3, #8] + 8002390: 687b ldr r3, [r7, #4] + 8002392: 681b ldr r3, [r3, #0] + 8002394: f022 6270 bic.w r2, r2, #251658240 @ 0xf000000 + 8002398: 609a str r2, [r3, #8] hadc->Instance->CR2 &= ~(ADC_CR2_EXTEN); - 80022e2: 687b ldr r3, [r7, #4] - 80022e4: 681b ldr r3, [r3, #0] - 80022e6: 689a ldr r2, [r3, #8] - 80022e8: 687b ldr r3, [r7, #4] - 80022ea: 681b ldr r3, [r3, #0] - 80022ec: f022 5240 bic.w r2, r2, #805306368 @ 0x30000000 - 80022f0: 609a str r2, [r3, #8] + 800239a: 687b ldr r3, [r7, #4] + 800239c: 681b ldr r3, [r3, #0] + 800239e: 689a ldr r2, [r3, #8] + 80023a0: 687b ldr r3, [r7, #4] + 80023a2: 681b ldr r3, [r3, #0] + 80023a4: f022 5240 bic.w r2, r2, #805306368 @ 0x30000000 + 80023a8: 609a str r2, [r3, #8] } /* Enable or disable ADC continuous conversion mode */ hadc->Instance->CR2 &= ~(ADC_CR2_CONT); - 80022f2: 687b ldr r3, [r7, #4] - 80022f4: 681b ldr r3, [r3, #0] - 80022f6: 689a ldr r2, [r3, #8] - 80022f8: 687b ldr r3, [r7, #4] - 80022fa: 681b ldr r3, [r3, #0] - 80022fc: f022 0202 bic.w r2, r2, #2 - 8002300: 609a str r2, [r3, #8] + 80023aa: 687b ldr r3, [r7, #4] + 80023ac: 681b ldr r3, [r3, #0] + 80023ae: 689a ldr r2, [r3, #8] + 80023b0: 687b ldr r3, [r7, #4] + 80023b2: 681b ldr r3, [r3, #0] + 80023b4: f022 0202 bic.w r2, r2, #2 + 80023b8: 609a str r2, [r3, #8] hadc->Instance->CR2 |= ADC_CR2_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode); - 8002302: 687b ldr r3, [r7, #4] - 8002304: 681b ldr r3, [r3, #0] - 8002306: 6899 ldr r1, [r3, #8] - 8002308: 687b ldr r3, [r7, #4] - 800230a: 7e1b ldrb r3, [r3, #24] - 800230c: 005a lsls r2, r3, #1 - 800230e: 687b ldr r3, [r7, #4] - 8002310: 681b ldr r3, [r3, #0] - 8002312: 430a orrs r2, r1 - 8002314: 609a str r2, [r3, #8] + 80023ba: 687b ldr r3, [r7, #4] + 80023bc: 681b ldr r3, [r3, #0] + 80023be: 6899 ldr r1, [r3, #8] + 80023c0: 687b ldr r3, [r7, #4] + 80023c2: 7e1b ldrb r3, [r3, #24] + 80023c4: 005a lsls r2, r3, #1 + 80023c6: 687b ldr r3, [r7, #4] + 80023c8: 681b ldr r3, [r3, #0] + 80023ca: 430a orrs r2, r1 + 80023cc: 609a str r2, [r3, #8] if (hadc->Init.DiscontinuousConvMode != DISABLE) - 8002316: 687b ldr r3, [r7, #4] - 8002318: f893 3020 ldrb.w r3, [r3, #32] - 800231c: 2b00 cmp r3, #0 - 800231e: d01b beq.n 8002358 + 80023ce: 687b ldr r3, [r7, #4] + 80023d0: f893 3020 ldrb.w r3, [r3, #32] + 80023d4: 2b00 cmp r3, #0 + 80023d6: d01b beq.n 8002410 { assert_param(IS_ADC_REGULAR_DISC_NUMBER(hadc->Init.NbrOfDiscConversion)); /* Enable the selected ADC regular discontinuous mode */ hadc->Instance->CR1 |= (uint32_t)ADC_CR1_DISCEN; - 8002320: 687b ldr r3, [r7, #4] - 8002322: 681b ldr r3, [r3, #0] - 8002324: 685a ldr r2, [r3, #4] - 8002326: 687b ldr r3, [r7, #4] - 8002328: 681b ldr r3, [r3, #0] - 800232a: f442 6200 orr.w r2, r2, #2048 @ 0x800 - 800232e: 605a str r2, [r3, #4] + 80023d8: 687b ldr r3, [r7, #4] + 80023da: 681b ldr r3, [r3, #0] + 80023dc: 685a ldr r2, [r3, #4] + 80023de: 687b ldr r3, [r7, #4] + 80023e0: 681b ldr r3, [r3, #0] + 80023e2: f442 6200 orr.w r2, r2, #2048 @ 0x800 + 80023e6: 605a str r2, [r3, #4] /* Set the number of channels to be converted in discontinuous mode */ hadc->Instance->CR1 &= ~(ADC_CR1_DISCNUM); - 8002330: 687b ldr r3, [r7, #4] - 8002332: 681b ldr r3, [r3, #0] - 8002334: 685a ldr r2, [r3, #4] - 8002336: 687b ldr r3, [r7, #4] - 8002338: 681b ldr r3, [r3, #0] - 800233a: f422 4260 bic.w r2, r2, #57344 @ 0xe000 - 800233e: 605a str r2, [r3, #4] + 80023e8: 687b ldr r3, [r7, #4] + 80023ea: 681b ldr r3, [r3, #0] + 80023ec: 685a ldr r2, [r3, #4] + 80023ee: 687b ldr r3, [r7, #4] + 80023f0: 681b ldr r3, [r3, #0] + 80023f2: f422 4260 bic.w r2, r2, #57344 @ 0xe000 + 80023f6: 605a str r2, [r3, #4] hadc->Instance->CR1 |= ADC_CR1_DISCONTINUOUS(hadc->Init.NbrOfDiscConversion); - 8002340: 687b ldr r3, [r7, #4] - 8002342: 681b ldr r3, [r3, #0] - 8002344: 6859 ldr r1, [r3, #4] - 8002346: 687b ldr r3, [r7, #4] - 8002348: 6a5b ldr r3, [r3, #36] @ 0x24 - 800234a: 3b01 subs r3, #1 - 800234c: 035a lsls r2, r3, #13 - 800234e: 687b ldr r3, [r7, #4] - 8002350: 681b ldr r3, [r3, #0] - 8002352: 430a orrs r2, r1 - 8002354: 605a str r2, [r3, #4] - 8002356: e007 b.n 8002368 + 80023f8: 687b ldr r3, [r7, #4] + 80023fa: 681b ldr r3, [r3, #0] + 80023fc: 6859 ldr r1, [r3, #4] + 80023fe: 687b ldr r3, [r7, #4] + 8002400: 6a5b ldr r3, [r3, #36] @ 0x24 + 8002402: 3b01 subs r3, #1 + 8002404: 035a lsls r2, r3, #13 + 8002406: 687b ldr r3, [r7, #4] + 8002408: 681b ldr r3, [r3, #0] + 800240a: 430a orrs r2, r1 + 800240c: 605a str r2, [r3, #4] + 800240e: e007 b.n 8002420 } else { /* Disable the selected ADC regular discontinuous mode */ hadc->Instance->CR1 &= ~(ADC_CR1_DISCEN); - 8002358: 687b ldr r3, [r7, #4] - 800235a: 681b ldr r3, [r3, #0] - 800235c: 685a ldr r2, [r3, #4] - 800235e: 687b ldr r3, [r7, #4] - 8002360: 681b ldr r3, [r3, #0] - 8002362: f422 6200 bic.w r2, r2, #2048 @ 0x800 - 8002366: 605a str r2, [r3, #4] + 8002410: 687b ldr r3, [r7, #4] + 8002412: 681b ldr r3, [r3, #0] + 8002414: 685a ldr r2, [r3, #4] + 8002416: 687b ldr r3, [r7, #4] + 8002418: 681b ldr r3, [r3, #0] + 800241a: f422 6200 bic.w r2, r2, #2048 @ 0x800 + 800241e: 605a str r2, [r3, #4] } /* Set ADC number of conversion */ hadc->Instance->SQR1 &= ~(ADC_SQR1_L); - 8002368: 687b ldr r3, [r7, #4] - 800236a: 681b ldr r3, [r3, #0] - 800236c: 6ada ldr r2, [r3, #44] @ 0x2c - 800236e: 687b ldr r3, [r7, #4] - 8002370: 681b ldr r3, [r3, #0] - 8002372: f422 0270 bic.w r2, r2, #15728640 @ 0xf00000 - 8002376: 62da str r2, [r3, #44] @ 0x2c + 8002420: 687b ldr r3, [r7, #4] + 8002422: 681b ldr r3, [r3, #0] + 8002424: 6ada ldr r2, [r3, #44] @ 0x2c + 8002426: 687b ldr r3, [r7, #4] + 8002428: 681b ldr r3, [r3, #0] + 800242a: f422 0270 bic.w r2, r2, #15728640 @ 0xf00000 + 800242e: 62da str r2, [r3, #44] @ 0x2c hadc->Instance->SQR1 |= ADC_SQR1(hadc->Init.NbrOfConversion); - 8002378: 687b ldr r3, [r7, #4] - 800237a: 681b ldr r3, [r3, #0] - 800237c: 6ad9 ldr r1, [r3, #44] @ 0x2c - 800237e: 687b ldr r3, [r7, #4] - 8002380: 69db ldr r3, [r3, #28] - 8002382: 3b01 subs r3, #1 - 8002384: 051a lsls r2, r3, #20 - 8002386: 687b ldr r3, [r7, #4] - 8002388: 681b ldr r3, [r3, #0] - 800238a: 430a orrs r2, r1 - 800238c: 62da str r2, [r3, #44] @ 0x2c + 8002430: 687b ldr r3, [r7, #4] + 8002432: 681b ldr r3, [r3, #0] + 8002434: 6ad9 ldr r1, [r3, #44] @ 0x2c + 8002436: 687b ldr r3, [r7, #4] + 8002438: 69db ldr r3, [r3, #28] + 800243a: 3b01 subs r3, #1 + 800243c: 051a lsls r2, r3, #20 + 800243e: 687b ldr r3, [r7, #4] + 8002440: 681b ldr r3, [r3, #0] + 8002442: 430a orrs r2, r1 + 8002444: 62da str r2, [r3, #44] @ 0x2c /* Enable or disable ADC DMA continuous request */ hadc->Instance->CR2 &= ~(ADC_CR2_DDS); - 800238e: 687b ldr r3, [r7, #4] - 8002390: 681b ldr r3, [r3, #0] - 8002392: 689a ldr r2, [r3, #8] - 8002394: 687b ldr r3, [r7, #4] - 8002396: 681b ldr r3, [r3, #0] - 8002398: f422 7200 bic.w r2, r2, #512 @ 0x200 - 800239c: 609a str r2, [r3, #8] + 8002446: 687b ldr r3, [r7, #4] + 8002448: 681b ldr r3, [r3, #0] + 800244a: 689a ldr r2, [r3, #8] + 800244c: 687b ldr r3, [r7, #4] + 800244e: 681b ldr r3, [r3, #0] + 8002450: f422 7200 bic.w r2, r2, #512 @ 0x200 + 8002454: 609a str r2, [r3, #8] hadc->Instance->CR2 |= ADC_CR2_DMAContReq((uint32_t)hadc->Init.DMAContinuousRequests); - 800239e: 687b ldr r3, [r7, #4] - 80023a0: 681b ldr r3, [r3, #0] - 80023a2: 6899 ldr r1, [r3, #8] - 80023a4: 687b ldr r3, [r7, #4] - 80023a6: f893 3030 ldrb.w r3, [r3, #48] @ 0x30 - 80023aa: 025a lsls r2, r3, #9 - 80023ac: 687b ldr r3, [r7, #4] - 80023ae: 681b ldr r3, [r3, #0] - 80023b0: 430a orrs r2, r1 - 80023b2: 609a str r2, [r3, #8] + 8002456: 687b ldr r3, [r7, #4] + 8002458: 681b ldr r3, [r3, #0] + 800245a: 6899 ldr r1, [r3, #8] + 800245c: 687b ldr r3, [r7, #4] + 800245e: f893 3030 ldrb.w r3, [r3, #48] @ 0x30 + 8002462: 025a lsls r2, r3, #9 + 8002464: 687b ldr r3, [r7, #4] + 8002466: 681b ldr r3, [r3, #0] + 8002468: 430a orrs r2, r1 + 800246a: 609a str r2, [r3, #8] /* Enable or disable ADC end of conversion selection */ hadc->Instance->CR2 &= ~(ADC_CR2_EOCS); - 80023b4: 687b ldr r3, [r7, #4] - 80023b6: 681b ldr r3, [r3, #0] - 80023b8: 689a ldr r2, [r3, #8] - 80023ba: 687b ldr r3, [r7, #4] - 80023bc: 681b ldr r3, [r3, #0] - 80023be: f422 6280 bic.w r2, r2, #1024 @ 0x400 - 80023c2: 609a str r2, [r3, #8] + 800246c: 687b ldr r3, [r7, #4] + 800246e: 681b ldr r3, [r3, #0] + 8002470: 689a ldr r2, [r3, #8] + 8002472: 687b ldr r3, [r7, #4] + 8002474: 681b ldr r3, [r3, #0] + 8002476: f422 6280 bic.w r2, r2, #1024 @ 0x400 + 800247a: 609a str r2, [r3, #8] hadc->Instance->CR2 |= ADC_CR2_EOCSelection(hadc->Init.EOCSelection); - 80023c4: 687b ldr r3, [r7, #4] - 80023c6: 681b ldr r3, [r3, #0] - 80023c8: 6899 ldr r1, [r3, #8] - 80023ca: 687b ldr r3, [r7, #4] - 80023cc: 695b ldr r3, [r3, #20] - 80023ce: 029a lsls r2, r3, #10 - 80023d0: 687b ldr r3, [r7, #4] - 80023d2: 681b ldr r3, [r3, #0] - 80023d4: 430a orrs r2, r1 - 80023d6: 609a str r2, [r3, #8] + 800247c: 687b ldr r3, [r7, #4] + 800247e: 681b ldr r3, [r3, #0] + 8002480: 6899 ldr r1, [r3, #8] + 8002482: 687b ldr r3, [r7, #4] + 8002484: 695b ldr r3, [r3, #20] + 8002486: 029a lsls r2, r3, #10 + 8002488: 687b ldr r3, [r7, #4] + 800248a: 681b ldr r3, [r3, #0] + 800248c: 430a orrs r2, r1 + 800248e: 609a str r2, [r3, #8] } - 80023d8: bf00 nop - 80023da: 3714 adds r7, #20 - 80023dc: 46bd mov sp, r7 - 80023de: f85d 7b04 ldr.w r7, [sp], #4 - 80023e2: 4770 bx lr - 80023e4: 40012300 .word 0x40012300 - 80023e8: 0f000001 .word 0x0f000001 + 8002490: bf00 nop + 8002492: 3714 adds r7, #20 + 8002494: 46bd mov sp, r7 + 8002496: f85d 7b04 ldr.w r7, [sp], #4 + 800249a: 4770 bx lr + 800249c: 40012300 .word 0x40012300 + 80024a0: 0f000001 .word 0x0f000001 -080023ec : +080024a4 : * @param hadc pointer to a ADC_HandleTypeDef structure that contains * the configuration information for the specified ADC. * @retval None */ __weak void HAL_ADCEx_InjectedConvCpltCallback(ADC_HandleTypeDef *hadc) { - 80023ec: b480 push {r7} - 80023ee: b083 sub sp, #12 - 80023f0: af00 add r7, sp, #0 - 80023f2: 6078 str r0, [r7, #4] + 80024a4: b480 push {r7} + 80024a6: b083 sub sp, #12 + 80024a8: af00 add r7, sp, #0 + 80024aa: 6078 str r0, [r7, #4] /* Prevent unused argument(s) compilation warning */ UNUSED(hadc); /* NOTE : This function Should not be modified, when the callback is needed, the HAL_ADC_InjectedConvCpltCallback could be implemented in the user file */ } - 80023f4: bf00 nop - 80023f6: 370c adds r7, #12 - 80023f8: 46bd mov sp, r7 - 80023fa: f85d 7b04 ldr.w r7, [sp], #4 - 80023fe: 4770 bx lr + 80024ac: bf00 nop + 80024ae: 370c adds r7, #12 + 80024b0: 46bd mov sp, r7 + 80024b2: f85d 7b04 ldr.w r7, [sp], #4 + 80024b6: 4770 bx lr -08002400 : +080024b8 : * @param hcan pointer to a CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval HAL status */ HAL_StatusTypeDef HAL_CAN_Init(CAN_HandleTypeDef *hcan) { - 8002400: b580 push {r7, lr} - 8002402: b084 sub sp, #16 - 8002404: af00 add r7, sp, #0 - 8002406: 6078 str r0, [r7, #4] + 80024b8: b580 push {r7, lr} + 80024ba: b084 sub sp, #16 + 80024bc: af00 add r7, sp, #0 + 80024be: 6078 str r0, [r7, #4] uint32_t tickstart; /* Check CAN handle */ if (hcan == NULL) - 8002408: 687b ldr r3, [r7, #4] - 800240a: 2b00 cmp r3, #0 - 800240c: d101 bne.n 8002412 + 80024c0: 687b ldr r3, [r7, #4] + 80024c2: 2b00 cmp r3, #0 + 80024c4: d101 bne.n 80024ca { return HAL_ERROR; - 800240e: 2301 movs r3, #1 - 8002410: e0ed b.n 80025ee + 80024c6: 2301 movs r3, #1 + 80024c8: e0ed b.n 80026a6 /* Init the low level hardware: CLOCK, NVIC */ hcan->MspInitCallback(hcan); } #else if (hcan->State == HAL_CAN_STATE_RESET) - 8002412: 687b ldr r3, [r7, #4] - 8002414: f893 3020 ldrb.w r3, [r3, #32] - 8002418: b2db uxtb r3, r3 - 800241a: 2b00 cmp r3, #0 - 800241c: d102 bne.n 8002424 + 80024ca: 687b ldr r3, [r7, #4] + 80024cc: f893 3020 ldrb.w r3, [r3, #32] + 80024d0: b2db uxtb r3, r3 + 80024d2: 2b00 cmp r3, #0 + 80024d4: d102 bne.n 80024dc { /* Init the low level hardware: CLOCK, NVIC */ HAL_CAN_MspInit(hcan); - 800241e: 6878 ldr r0, [r7, #4] - 8002420: f7fe f96c bl 80006fc + 80024d6: 6878 ldr r0, [r7, #4] + 80024d8: f7fe f910 bl 80006fc } #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ /* Request initialisation */ SET_BIT(hcan->Instance->MCR, CAN_MCR_INRQ); - 8002424: 687b ldr r3, [r7, #4] - 8002426: 681b ldr r3, [r3, #0] - 8002428: 681a ldr r2, [r3, #0] - 800242a: 687b ldr r3, [r7, #4] - 800242c: 681b ldr r3, [r3, #0] - 800242e: f042 0201 orr.w r2, r2, #1 - 8002432: 601a str r2, [r3, #0] + 80024dc: 687b ldr r3, [r7, #4] + 80024de: 681b ldr r3, [r3, #0] + 80024e0: 681a ldr r2, [r3, #0] + 80024e2: 687b ldr r3, [r7, #4] + 80024e4: 681b ldr r3, [r3, #0] + 80024e6: f042 0201 orr.w r2, r2, #1 + 80024ea: 601a str r2, [r3, #0] /* Get tick */ tickstart = HAL_GetTick(); - 8002434: f7ff fc0a bl 8001c4c - 8002438: 60f8 str r0, [r7, #12] + 80024ec: f7ff fc0a bl 8001d04 + 80024f0: 60f8 str r0, [r7, #12] /* Wait initialisation acknowledge */ while ((hcan->Instance->MSR & CAN_MSR_INAK) == 0U) - 800243a: e012 b.n 8002462 + 80024f2: e012 b.n 800251a { if ((HAL_GetTick() - tickstart) > CAN_TIMEOUT_VALUE) - 800243c: f7ff fc06 bl 8001c4c - 8002440: 4602 mov r2, r0 - 8002442: 68fb ldr r3, [r7, #12] - 8002444: 1ad3 subs r3, r2, r3 - 8002446: 2b0a cmp r3, #10 - 8002448: d90b bls.n 8002462 + 80024f4: f7ff fc06 bl 8001d04 + 80024f8: 4602 mov r2, r0 + 80024fa: 68fb ldr r3, [r7, #12] + 80024fc: 1ad3 subs r3, r2, r3 + 80024fe: 2b0a cmp r3, #10 + 8002500: d90b bls.n 800251a { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_TIMEOUT; - 800244a: 687b ldr r3, [r7, #4] - 800244c: 6a5b ldr r3, [r3, #36] @ 0x24 - 800244e: f443 3200 orr.w r2, r3, #131072 @ 0x20000 - 8002452: 687b ldr r3, [r7, #4] - 8002454: 625a str r2, [r3, #36] @ 0x24 + 8002502: 687b ldr r3, [r7, #4] + 8002504: 6a5b ldr r3, [r3, #36] @ 0x24 + 8002506: f443 3200 orr.w r2, r3, #131072 @ 0x20000 + 800250a: 687b ldr r3, [r7, #4] + 800250c: 625a str r2, [r3, #36] @ 0x24 /* Change CAN state */ hcan->State = HAL_CAN_STATE_ERROR; - 8002456: 687b ldr r3, [r7, #4] - 8002458: 2205 movs r2, #5 - 800245a: f883 2020 strb.w r2, [r3, #32] + 800250e: 687b ldr r3, [r7, #4] + 8002510: 2205 movs r2, #5 + 8002512: f883 2020 strb.w r2, [r3, #32] return HAL_ERROR; - 800245e: 2301 movs r3, #1 - 8002460: e0c5 b.n 80025ee + 8002516: 2301 movs r3, #1 + 8002518: e0c5 b.n 80026a6 while ((hcan->Instance->MSR & CAN_MSR_INAK) == 0U) - 8002462: 687b ldr r3, [r7, #4] - 8002464: 681b ldr r3, [r3, #0] - 8002466: 685b ldr r3, [r3, #4] - 8002468: f003 0301 and.w r3, r3, #1 - 800246c: 2b00 cmp r3, #0 - 800246e: d0e5 beq.n 800243c + 800251a: 687b ldr r3, [r7, #4] + 800251c: 681b ldr r3, [r3, #0] + 800251e: 685b ldr r3, [r3, #4] + 8002520: f003 0301 and.w r3, r3, #1 + 8002524: 2b00 cmp r3, #0 + 8002526: d0e5 beq.n 80024f4 } } /* Exit from sleep mode */ CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_SLEEP); - 8002470: 687b ldr r3, [r7, #4] - 8002472: 681b ldr r3, [r3, #0] - 8002474: 681a ldr r2, [r3, #0] - 8002476: 687b ldr r3, [r7, #4] - 8002478: 681b ldr r3, [r3, #0] - 800247a: f022 0202 bic.w r2, r2, #2 - 800247e: 601a str r2, [r3, #0] + 8002528: 687b ldr r3, [r7, #4] + 800252a: 681b ldr r3, [r3, #0] + 800252c: 681a ldr r2, [r3, #0] + 800252e: 687b ldr r3, [r7, #4] + 8002530: 681b ldr r3, [r3, #0] + 8002532: f022 0202 bic.w r2, r2, #2 + 8002536: 601a str r2, [r3, #0] /* Get tick */ tickstart = HAL_GetTick(); - 8002480: f7ff fbe4 bl 8001c4c - 8002484: 60f8 str r0, [r7, #12] + 8002538: f7ff fbe4 bl 8001d04 + 800253c: 60f8 str r0, [r7, #12] /* Check Sleep mode leave acknowledge */ while ((hcan->Instance->MSR & CAN_MSR_SLAK) != 0U) - 8002486: e012 b.n 80024ae + 800253e: e012 b.n 8002566 { if ((HAL_GetTick() - tickstart) > CAN_TIMEOUT_VALUE) - 8002488: f7ff fbe0 bl 8001c4c - 800248c: 4602 mov r2, r0 - 800248e: 68fb ldr r3, [r7, #12] - 8002490: 1ad3 subs r3, r2, r3 - 8002492: 2b0a cmp r3, #10 - 8002494: d90b bls.n 80024ae + 8002540: f7ff fbe0 bl 8001d04 + 8002544: 4602 mov r2, r0 + 8002546: 68fb ldr r3, [r7, #12] + 8002548: 1ad3 subs r3, r2, r3 + 800254a: 2b0a cmp r3, #10 + 800254c: d90b bls.n 8002566 { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_TIMEOUT; - 8002496: 687b ldr r3, [r7, #4] - 8002498: 6a5b ldr r3, [r3, #36] @ 0x24 - 800249a: f443 3200 orr.w r2, r3, #131072 @ 0x20000 - 800249e: 687b ldr r3, [r7, #4] - 80024a0: 625a str r2, [r3, #36] @ 0x24 + 800254e: 687b ldr r3, [r7, #4] + 8002550: 6a5b ldr r3, [r3, #36] @ 0x24 + 8002552: f443 3200 orr.w r2, r3, #131072 @ 0x20000 + 8002556: 687b ldr r3, [r7, #4] + 8002558: 625a str r2, [r3, #36] @ 0x24 /* Change CAN state */ hcan->State = HAL_CAN_STATE_ERROR; - 80024a2: 687b ldr r3, [r7, #4] - 80024a4: 2205 movs r2, #5 - 80024a6: f883 2020 strb.w r2, [r3, #32] + 800255a: 687b ldr r3, [r7, #4] + 800255c: 2205 movs r2, #5 + 800255e: f883 2020 strb.w r2, [r3, #32] return HAL_ERROR; - 80024aa: 2301 movs r3, #1 - 80024ac: e09f b.n 80025ee + 8002562: 2301 movs r3, #1 + 8002564: e09f b.n 80026a6 while ((hcan->Instance->MSR & CAN_MSR_SLAK) != 0U) - 80024ae: 687b ldr r3, [r7, #4] - 80024b0: 681b ldr r3, [r3, #0] - 80024b2: 685b ldr r3, [r3, #4] - 80024b4: f003 0302 and.w r3, r3, #2 - 80024b8: 2b00 cmp r3, #0 - 80024ba: d1e5 bne.n 8002488 + 8002566: 687b ldr r3, [r7, #4] + 8002568: 681b ldr r3, [r3, #0] + 800256a: 685b ldr r3, [r3, #4] + 800256c: f003 0302 and.w r3, r3, #2 + 8002570: 2b00 cmp r3, #0 + 8002572: d1e5 bne.n 8002540 } } /* Set the time triggered communication mode */ if (hcan->Init.TimeTriggeredMode == ENABLE) - 80024bc: 687b ldr r3, [r7, #4] - 80024be: 7e1b ldrb r3, [r3, #24] - 80024c0: 2b01 cmp r3, #1 - 80024c2: d108 bne.n 80024d6 + 8002574: 687b ldr r3, [r7, #4] + 8002576: 7e1b ldrb r3, [r3, #24] + 8002578: 2b01 cmp r3, #1 + 800257a: d108 bne.n 800258e { SET_BIT(hcan->Instance->MCR, CAN_MCR_TTCM); - 80024c4: 687b ldr r3, [r7, #4] - 80024c6: 681b ldr r3, [r3, #0] - 80024c8: 681a ldr r2, [r3, #0] - 80024ca: 687b ldr r3, [r7, #4] - 80024cc: 681b ldr r3, [r3, #0] - 80024ce: f042 0280 orr.w r2, r2, #128 @ 0x80 - 80024d2: 601a str r2, [r3, #0] - 80024d4: e007 b.n 80024e6 + 800257c: 687b ldr r3, [r7, #4] + 800257e: 681b ldr r3, [r3, #0] + 8002580: 681a ldr r2, [r3, #0] + 8002582: 687b ldr r3, [r7, #4] + 8002584: 681b ldr r3, [r3, #0] + 8002586: f042 0280 orr.w r2, r2, #128 @ 0x80 + 800258a: 601a str r2, [r3, #0] + 800258c: e007 b.n 800259e } else { CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_TTCM); - 80024d6: 687b ldr r3, [r7, #4] - 80024d8: 681b ldr r3, [r3, #0] - 80024da: 681a ldr r2, [r3, #0] - 80024dc: 687b ldr r3, [r7, #4] - 80024de: 681b ldr r3, [r3, #0] - 80024e0: f022 0280 bic.w r2, r2, #128 @ 0x80 - 80024e4: 601a str r2, [r3, #0] + 800258e: 687b ldr r3, [r7, #4] + 8002590: 681b ldr r3, [r3, #0] + 8002592: 681a ldr r2, [r3, #0] + 8002594: 687b ldr r3, [r7, #4] + 8002596: 681b ldr r3, [r3, #0] + 8002598: f022 0280 bic.w r2, r2, #128 @ 0x80 + 800259c: 601a str r2, [r3, #0] } /* Set the automatic bus-off management */ if (hcan->Init.AutoBusOff == ENABLE) - 80024e6: 687b ldr r3, [r7, #4] - 80024e8: 7e5b ldrb r3, [r3, #25] - 80024ea: 2b01 cmp r3, #1 - 80024ec: d108 bne.n 8002500 + 800259e: 687b ldr r3, [r7, #4] + 80025a0: 7e5b ldrb r3, [r3, #25] + 80025a2: 2b01 cmp r3, #1 + 80025a4: d108 bne.n 80025b8 { SET_BIT(hcan->Instance->MCR, CAN_MCR_ABOM); - 80024ee: 687b ldr r3, [r7, #4] - 80024f0: 681b ldr r3, [r3, #0] - 80024f2: 681a ldr r2, [r3, #0] - 80024f4: 687b ldr r3, [r7, #4] - 80024f6: 681b ldr r3, [r3, #0] - 80024f8: f042 0240 orr.w r2, r2, #64 @ 0x40 - 80024fc: 601a str r2, [r3, #0] - 80024fe: e007 b.n 8002510 + 80025a6: 687b ldr r3, [r7, #4] + 80025a8: 681b ldr r3, [r3, #0] + 80025aa: 681a ldr r2, [r3, #0] + 80025ac: 687b ldr r3, [r7, #4] + 80025ae: 681b ldr r3, [r3, #0] + 80025b0: f042 0240 orr.w r2, r2, #64 @ 0x40 + 80025b4: 601a str r2, [r3, #0] + 80025b6: e007 b.n 80025c8 } else { CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_ABOM); - 8002500: 687b ldr r3, [r7, #4] - 8002502: 681b ldr r3, [r3, #0] - 8002504: 681a ldr r2, [r3, #0] - 8002506: 687b ldr r3, [r7, #4] - 8002508: 681b ldr r3, [r3, #0] - 800250a: f022 0240 bic.w r2, r2, #64 @ 0x40 - 800250e: 601a str r2, [r3, #0] + 80025b8: 687b ldr r3, [r7, #4] + 80025ba: 681b ldr r3, [r3, #0] + 80025bc: 681a ldr r2, [r3, #0] + 80025be: 687b ldr r3, [r7, #4] + 80025c0: 681b ldr r3, [r3, #0] + 80025c2: f022 0240 bic.w r2, r2, #64 @ 0x40 + 80025c6: 601a str r2, [r3, #0] } /* Set the automatic wake-up mode */ if (hcan->Init.AutoWakeUp == ENABLE) - 8002510: 687b ldr r3, [r7, #4] - 8002512: 7e9b ldrb r3, [r3, #26] - 8002514: 2b01 cmp r3, #1 - 8002516: d108 bne.n 800252a + 80025c8: 687b ldr r3, [r7, #4] + 80025ca: 7e9b ldrb r3, [r3, #26] + 80025cc: 2b01 cmp r3, #1 + 80025ce: d108 bne.n 80025e2 { SET_BIT(hcan->Instance->MCR, CAN_MCR_AWUM); - 8002518: 687b ldr r3, [r7, #4] - 800251a: 681b ldr r3, [r3, #0] - 800251c: 681a ldr r2, [r3, #0] - 800251e: 687b ldr r3, [r7, #4] - 8002520: 681b ldr r3, [r3, #0] - 8002522: f042 0220 orr.w r2, r2, #32 - 8002526: 601a str r2, [r3, #0] - 8002528: e007 b.n 800253a + 80025d0: 687b ldr r3, [r7, #4] + 80025d2: 681b ldr r3, [r3, #0] + 80025d4: 681a ldr r2, [r3, #0] + 80025d6: 687b ldr r3, [r7, #4] + 80025d8: 681b ldr r3, [r3, #0] + 80025da: f042 0220 orr.w r2, r2, #32 + 80025de: 601a str r2, [r3, #0] + 80025e0: e007 b.n 80025f2 } else { CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_AWUM); - 800252a: 687b ldr r3, [r7, #4] - 800252c: 681b ldr r3, [r3, #0] - 800252e: 681a ldr r2, [r3, #0] - 8002530: 687b ldr r3, [r7, #4] - 8002532: 681b ldr r3, [r3, #0] - 8002534: f022 0220 bic.w r2, r2, #32 - 8002538: 601a str r2, [r3, #0] + 80025e2: 687b ldr r3, [r7, #4] + 80025e4: 681b ldr r3, [r3, #0] + 80025e6: 681a ldr r2, [r3, #0] + 80025e8: 687b ldr r3, [r7, #4] + 80025ea: 681b ldr r3, [r3, #0] + 80025ec: f022 0220 bic.w r2, r2, #32 + 80025f0: 601a str r2, [r3, #0] } /* Set the automatic retransmission */ if (hcan->Init.AutoRetransmission == ENABLE) - 800253a: 687b ldr r3, [r7, #4] - 800253c: 7edb ldrb r3, [r3, #27] - 800253e: 2b01 cmp r3, #1 - 8002540: d108 bne.n 8002554 + 80025f2: 687b ldr r3, [r7, #4] + 80025f4: 7edb ldrb r3, [r3, #27] + 80025f6: 2b01 cmp r3, #1 + 80025f8: d108 bne.n 800260c { CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_NART); - 8002542: 687b ldr r3, [r7, #4] - 8002544: 681b ldr r3, [r3, #0] - 8002546: 681a ldr r2, [r3, #0] - 8002548: 687b ldr r3, [r7, #4] - 800254a: 681b ldr r3, [r3, #0] - 800254c: f022 0210 bic.w r2, r2, #16 - 8002550: 601a str r2, [r3, #0] - 8002552: e007 b.n 8002564 + 80025fa: 687b ldr r3, [r7, #4] + 80025fc: 681b ldr r3, [r3, #0] + 80025fe: 681a ldr r2, [r3, #0] + 8002600: 687b ldr r3, [r7, #4] + 8002602: 681b ldr r3, [r3, #0] + 8002604: f022 0210 bic.w r2, r2, #16 + 8002608: 601a str r2, [r3, #0] + 800260a: e007 b.n 800261c } else { SET_BIT(hcan->Instance->MCR, CAN_MCR_NART); - 8002554: 687b ldr r3, [r7, #4] - 8002556: 681b ldr r3, [r3, #0] - 8002558: 681a ldr r2, [r3, #0] - 800255a: 687b ldr r3, [r7, #4] - 800255c: 681b ldr r3, [r3, #0] - 800255e: f042 0210 orr.w r2, r2, #16 - 8002562: 601a str r2, [r3, #0] + 800260c: 687b ldr r3, [r7, #4] + 800260e: 681b ldr r3, [r3, #0] + 8002610: 681a ldr r2, [r3, #0] + 8002612: 687b ldr r3, [r7, #4] + 8002614: 681b ldr r3, [r3, #0] + 8002616: f042 0210 orr.w r2, r2, #16 + 800261a: 601a str r2, [r3, #0] } /* Set the receive FIFO locked mode */ if (hcan->Init.ReceiveFifoLocked == ENABLE) - 8002564: 687b ldr r3, [r7, #4] - 8002566: 7f1b ldrb r3, [r3, #28] - 8002568: 2b01 cmp r3, #1 - 800256a: d108 bne.n 800257e + 800261c: 687b ldr r3, [r7, #4] + 800261e: 7f1b ldrb r3, [r3, #28] + 8002620: 2b01 cmp r3, #1 + 8002622: d108 bne.n 8002636 { SET_BIT(hcan->Instance->MCR, CAN_MCR_RFLM); - 800256c: 687b ldr r3, [r7, #4] - 800256e: 681b ldr r3, [r3, #0] - 8002570: 681a ldr r2, [r3, #0] - 8002572: 687b ldr r3, [r7, #4] - 8002574: 681b ldr r3, [r3, #0] - 8002576: f042 0208 orr.w r2, r2, #8 - 800257a: 601a str r2, [r3, #0] - 800257c: e007 b.n 800258e + 8002624: 687b ldr r3, [r7, #4] + 8002626: 681b ldr r3, [r3, #0] + 8002628: 681a ldr r2, [r3, #0] + 800262a: 687b ldr r3, [r7, #4] + 800262c: 681b ldr r3, [r3, #0] + 800262e: f042 0208 orr.w r2, r2, #8 + 8002632: 601a str r2, [r3, #0] + 8002634: e007 b.n 8002646 } else { CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_RFLM); - 800257e: 687b ldr r3, [r7, #4] - 8002580: 681b ldr r3, [r3, #0] - 8002582: 681a ldr r2, [r3, #0] - 8002584: 687b ldr r3, [r7, #4] - 8002586: 681b ldr r3, [r3, #0] - 8002588: f022 0208 bic.w r2, r2, #8 - 800258c: 601a str r2, [r3, #0] + 8002636: 687b ldr r3, [r7, #4] + 8002638: 681b ldr r3, [r3, #0] + 800263a: 681a ldr r2, [r3, #0] + 800263c: 687b ldr r3, [r7, #4] + 800263e: 681b ldr r3, [r3, #0] + 8002640: f022 0208 bic.w r2, r2, #8 + 8002644: 601a str r2, [r3, #0] } /* Set the transmit FIFO priority */ if (hcan->Init.TransmitFifoPriority == ENABLE) - 800258e: 687b ldr r3, [r7, #4] - 8002590: 7f5b ldrb r3, [r3, #29] - 8002592: 2b01 cmp r3, #1 - 8002594: d108 bne.n 80025a8 + 8002646: 687b ldr r3, [r7, #4] + 8002648: 7f5b ldrb r3, [r3, #29] + 800264a: 2b01 cmp r3, #1 + 800264c: d108 bne.n 8002660 { SET_BIT(hcan->Instance->MCR, CAN_MCR_TXFP); - 8002596: 687b ldr r3, [r7, #4] - 8002598: 681b ldr r3, [r3, #0] - 800259a: 681a ldr r2, [r3, #0] - 800259c: 687b ldr r3, [r7, #4] - 800259e: 681b ldr r3, [r3, #0] - 80025a0: f042 0204 orr.w r2, r2, #4 - 80025a4: 601a str r2, [r3, #0] - 80025a6: e007 b.n 80025b8 + 800264e: 687b ldr r3, [r7, #4] + 8002650: 681b ldr r3, [r3, #0] + 8002652: 681a ldr r2, [r3, #0] + 8002654: 687b ldr r3, [r7, #4] + 8002656: 681b ldr r3, [r3, #0] + 8002658: f042 0204 orr.w r2, r2, #4 + 800265c: 601a str r2, [r3, #0] + 800265e: e007 b.n 8002670 } else { CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_TXFP); - 80025a8: 687b ldr r3, [r7, #4] - 80025aa: 681b ldr r3, [r3, #0] - 80025ac: 681a ldr r2, [r3, #0] - 80025ae: 687b ldr r3, [r7, #4] - 80025b0: 681b ldr r3, [r3, #0] - 80025b2: f022 0204 bic.w r2, r2, #4 - 80025b6: 601a str r2, [r3, #0] + 8002660: 687b ldr r3, [r7, #4] + 8002662: 681b ldr r3, [r3, #0] + 8002664: 681a ldr r2, [r3, #0] + 8002666: 687b ldr r3, [r7, #4] + 8002668: 681b ldr r3, [r3, #0] + 800266a: f022 0204 bic.w r2, r2, #4 + 800266e: 601a str r2, [r3, #0] } /* Set the bit timing register */ WRITE_REG(hcan->Instance->BTR, (uint32_t)(hcan->Init.Mode | - 80025b8: 687b ldr r3, [r7, #4] - 80025ba: 689a ldr r2, [r3, #8] - 80025bc: 687b ldr r3, [r7, #4] - 80025be: 68db ldr r3, [r3, #12] - 80025c0: 431a orrs r2, r3 - 80025c2: 687b ldr r3, [r7, #4] - 80025c4: 691b ldr r3, [r3, #16] - 80025c6: 431a orrs r2, r3 - 80025c8: 687b ldr r3, [r7, #4] - 80025ca: 695b ldr r3, [r3, #20] - 80025cc: ea42 0103 orr.w r1, r2, r3 - 80025d0: 687b ldr r3, [r7, #4] - 80025d2: 685b ldr r3, [r3, #4] - 80025d4: 1e5a subs r2, r3, #1 - 80025d6: 687b ldr r3, [r7, #4] - 80025d8: 681b ldr r3, [r3, #0] - 80025da: 430a orrs r2, r1 - 80025dc: 61da str r2, [r3, #28] + 8002670: 687b ldr r3, [r7, #4] + 8002672: 689a ldr r2, [r3, #8] + 8002674: 687b ldr r3, [r7, #4] + 8002676: 68db ldr r3, [r3, #12] + 8002678: 431a orrs r2, r3 + 800267a: 687b ldr r3, [r7, #4] + 800267c: 691b ldr r3, [r3, #16] + 800267e: 431a orrs r2, r3 + 8002680: 687b ldr r3, [r7, #4] + 8002682: 695b ldr r3, [r3, #20] + 8002684: ea42 0103 orr.w r1, r2, r3 + 8002688: 687b ldr r3, [r7, #4] + 800268a: 685b ldr r3, [r3, #4] + 800268c: 1e5a subs r2, r3, #1 + 800268e: 687b ldr r3, [r7, #4] + 8002690: 681b ldr r3, [r3, #0] + 8002692: 430a orrs r2, r1 + 8002694: 61da str r2, [r3, #28] hcan->Init.TimeSeg1 | hcan->Init.TimeSeg2 | (hcan->Init.Prescaler - 1U))); /* Initialize the error code */ hcan->ErrorCode = HAL_CAN_ERROR_NONE; - 80025de: 687b ldr r3, [r7, #4] - 80025e0: 2200 movs r2, #0 - 80025e2: 625a str r2, [r3, #36] @ 0x24 + 8002696: 687b ldr r3, [r7, #4] + 8002698: 2200 movs r2, #0 + 800269a: 625a str r2, [r3, #36] @ 0x24 /* Initialize the CAN state */ hcan->State = HAL_CAN_STATE_READY; - 80025e4: 687b ldr r3, [r7, #4] - 80025e6: 2201 movs r2, #1 - 80025e8: f883 2020 strb.w r2, [r3, #32] + 800269c: 687b ldr r3, [r7, #4] + 800269e: 2201 movs r2, #1 + 80026a0: f883 2020 strb.w r2, [r3, #32] /* Return function status */ return HAL_OK; - 80025ec: 2300 movs r3, #0 + 80026a4: 2300 movs r3, #0 } - 80025ee: 4618 mov r0, r3 - 80025f0: 3710 adds r7, #16 - 80025f2: 46bd mov sp, r7 - 80025f4: bd80 pop {r7, pc} + 80026a6: 4618 mov r0, r3 + 80026a8: 3710 adds r7, #16 + 80026aa: 46bd mov sp, r7 + 80026ac: bd80 pop {r7, pc} + ... -080025f6 : +080026b0 : + * @param sFilterConfig pointer to a CAN_FilterTypeDef structure that + * contains the filter configuration information. + * @retval None + */ +HAL_StatusTypeDef HAL_CAN_ConfigFilter(CAN_HandleTypeDef *hcan, const CAN_FilterTypeDef *sFilterConfig) +{ + 80026b0: b480 push {r7} + 80026b2: b087 sub sp, #28 + 80026b4: af00 add r7, sp, #0 + 80026b6: 6078 str r0, [r7, #4] + 80026b8: 6039 str r1, [r7, #0] + uint32_t filternbrbitpos; + CAN_TypeDef *can_ip = hcan->Instance; + 80026ba: 687b ldr r3, [r7, #4] + 80026bc: 681b ldr r3, [r3, #0] + 80026be: 617b str r3, [r7, #20] + HAL_CAN_StateTypeDef state = hcan->State; + 80026c0: 687b ldr r3, [r7, #4] + 80026c2: f893 3020 ldrb.w r3, [r3, #32] + 80026c6: 74fb strb r3, [r7, #19] + + if ((state == HAL_CAN_STATE_READY) || + 80026c8: 7cfb ldrb r3, [r7, #19] + 80026ca: 2b01 cmp r3, #1 + 80026cc: d003 beq.n 80026d6 + 80026ce: 7cfb ldrb r3, [r7, #19] + 80026d0: 2b02 cmp r3, #2 + 80026d2: f040 80be bne.w 8002852 + assert_param(IS_CAN_FILTER_BANK_DUAL(sFilterConfig->SlaveStartFilterBank)); + } +#elif defined(CAN2) + /* CAN1 and CAN2 are dual instances with 28 common filters banks */ + /* Select master instance to access the filter banks */ + can_ip = CAN1; + 80026d6: 4b65 ldr r3, [pc, #404] @ (800286c ) + 80026d8: 617b str r3, [r7, #20] + /* Check the parameters */ + assert_param(IS_CAN_FILTER_BANK_SINGLE(sFilterConfig->FilterBank)); +#endif /* CAN3 */ + + /* Initialisation mode for the filter */ + SET_BIT(can_ip->FMR, CAN_FMR_FINIT); + 80026da: 697b ldr r3, [r7, #20] + 80026dc: f8d3 3200 ldr.w r3, [r3, #512] @ 0x200 + 80026e0: f043 0201 orr.w r2, r3, #1 + 80026e4: 697b ldr r3, [r7, #20] + 80026e6: f8c3 2200 str.w r2, [r3, #512] @ 0x200 + SET_BIT(can_ip->FMR, sFilterConfig->SlaveStartFilterBank << CAN_FMR_CAN2SB_Pos); + } + +#elif defined(CAN2) + /* Select the start filter number of CAN2 slave instance */ + CLEAR_BIT(can_ip->FMR, CAN_FMR_CAN2SB); + 80026ea: 697b ldr r3, [r7, #20] + 80026ec: f8d3 3200 ldr.w r3, [r3, #512] @ 0x200 + 80026f0: f423 527c bic.w r2, r3, #16128 @ 0x3f00 + 80026f4: 697b ldr r3, [r7, #20] + 80026f6: f8c3 2200 str.w r2, [r3, #512] @ 0x200 + SET_BIT(can_ip->FMR, sFilterConfig->SlaveStartFilterBank << CAN_FMR_CAN2SB_Pos); + 80026fa: 697b ldr r3, [r7, #20] + 80026fc: f8d3 2200 ldr.w r2, [r3, #512] @ 0x200 + 8002700: 683b ldr r3, [r7, #0] + 8002702: 6a5b ldr r3, [r3, #36] @ 0x24 + 8002704: 021b lsls r3, r3, #8 + 8002706: 431a orrs r2, r3 + 8002708: 697b ldr r3, [r7, #20] + 800270a: f8c3 2200 str.w r2, [r3, #512] @ 0x200 + +#endif /* CAN3 */ + /* Convert filter number into bit position */ + filternbrbitpos = (uint32_t)1 << (sFilterConfig->FilterBank & 0x1FU); + 800270e: 683b ldr r3, [r7, #0] + 8002710: 695b ldr r3, [r3, #20] + 8002712: f003 031f and.w r3, r3, #31 + 8002716: 2201 movs r2, #1 + 8002718: fa02 f303 lsl.w r3, r2, r3 + 800271c: 60fb str r3, [r7, #12] + + /* Filter Deactivation */ + CLEAR_BIT(can_ip->FA1R, filternbrbitpos); + 800271e: 697b ldr r3, [r7, #20] + 8002720: f8d3 221c ldr.w r2, [r3, #540] @ 0x21c + 8002724: 68fb ldr r3, [r7, #12] + 8002726: 43db mvns r3, r3 + 8002728: 401a ands r2, r3 + 800272a: 697b ldr r3, [r7, #20] + 800272c: f8c3 221c str.w r2, [r3, #540] @ 0x21c + + /* Filter Scale */ + if (sFilterConfig->FilterScale == CAN_FILTERSCALE_16BIT) + 8002730: 683b ldr r3, [r7, #0] + 8002732: 69db ldr r3, [r3, #28] + 8002734: 2b00 cmp r3, #0 + 8002736: d123 bne.n 8002780 + { + /* 16-bit scale for the filter */ + CLEAR_BIT(can_ip->FS1R, filternbrbitpos); + 8002738: 697b ldr r3, [r7, #20] + 800273a: f8d3 220c ldr.w r2, [r3, #524] @ 0x20c + 800273e: 68fb ldr r3, [r7, #12] + 8002740: 43db mvns r3, r3 + 8002742: 401a ands r2, r3 + 8002744: 697b ldr r3, [r7, #20] + 8002746: f8c3 220c str.w r2, [r3, #524] @ 0x20c + + /* First 16-bit identifier and First 16-bit mask */ + /* Or First 16-bit identifier and Second 16-bit identifier */ + can_ip->sFilterRegister[sFilterConfig->FilterBank].FR1 = + ((0x0000FFFFU & (uint32_t)sFilterConfig->FilterMaskIdLow) << 16U) | + 800274a: 683b ldr r3, [r7, #0] + 800274c: 68db ldr r3, [r3, #12] + 800274e: 0419 lsls r1, r3, #16 + (0x0000FFFFU & (uint32_t)sFilterConfig->FilterIdLow); + 8002750: 683b ldr r3, [r7, #0] + 8002752: 685b ldr r3, [r3, #4] + 8002754: b29b uxth r3, r3 + can_ip->sFilterRegister[sFilterConfig->FilterBank].FR1 = + 8002756: 683a ldr r2, [r7, #0] + 8002758: 6952 ldr r2, [r2, #20] + ((0x0000FFFFU & (uint32_t)sFilterConfig->FilterMaskIdLow) << 16U) | + 800275a: 4319 orrs r1, r3 + can_ip->sFilterRegister[sFilterConfig->FilterBank].FR1 = + 800275c: 697b ldr r3, [r7, #20] + 800275e: 3248 adds r2, #72 @ 0x48 + 8002760: f843 1032 str.w r1, [r3, r2, lsl #3] + + /* Second 16-bit identifier and Second 16-bit mask */ + /* Or Third 16-bit identifier and Fourth 16-bit identifier */ + can_ip->sFilterRegister[sFilterConfig->FilterBank].FR2 = + ((0x0000FFFFU & (uint32_t)sFilterConfig->FilterMaskIdHigh) << 16U) | + 8002764: 683b ldr r3, [r7, #0] + 8002766: 689b ldr r3, [r3, #8] + 8002768: 0419 lsls r1, r3, #16 + (0x0000FFFFU & (uint32_t)sFilterConfig->FilterIdHigh); + 800276a: 683b ldr r3, [r7, #0] + 800276c: 681b ldr r3, [r3, #0] + 800276e: b29a uxth r2, r3 + can_ip->sFilterRegister[sFilterConfig->FilterBank].FR2 = + 8002770: 683b ldr r3, [r7, #0] + 8002772: 695b ldr r3, [r3, #20] + ((0x0000FFFFU & (uint32_t)sFilterConfig->FilterMaskIdHigh) << 16U) | + 8002774: 430a orrs r2, r1 + can_ip->sFilterRegister[sFilterConfig->FilterBank].FR2 = + 8002776: 6979 ldr r1, [r7, #20] + 8002778: 3348 adds r3, #72 @ 0x48 + 800277a: 00db lsls r3, r3, #3 + 800277c: 440b add r3, r1 + 800277e: 605a str r2, [r3, #4] + } + + if (sFilterConfig->FilterScale == CAN_FILTERSCALE_32BIT) + 8002780: 683b ldr r3, [r7, #0] + 8002782: 69db ldr r3, [r3, #28] + 8002784: 2b01 cmp r3, #1 + 8002786: d122 bne.n 80027ce + { + /* 32-bit scale for the filter */ + SET_BIT(can_ip->FS1R, filternbrbitpos); + 8002788: 697b ldr r3, [r7, #20] + 800278a: f8d3 220c ldr.w r2, [r3, #524] @ 0x20c + 800278e: 68fb ldr r3, [r7, #12] + 8002790: 431a orrs r2, r3 + 8002792: 697b ldr r3, [r7, #20] + 8002794: f8c3 220c str.w r2, [r3, #524] @ 0x20c + + /* 32-bit identifier or First 32-bit identifier */ + can_ip->sFilterRegister[sFilterConfig->FilterBank].FR1 = + ((0x0000FFFFU & (uint32_t)sFilterConfig->FilterIdHigh) << 16U) | + 8002798: 683b ldr r3, [r7, #0] + 800279a: 681b ldr r3, [r3, #0] + 800279c: 0419 lsls r1, r3, #16 + (0x0000FFFFU & (uint32_t)sFilterConfig->FilterIdLow); + 800279e: 683b ldr r3, [r7, #0] + 80027a0: 685b ldr r3, [r3, #4] + 80027a2: b29b uxth r3, r3 + can_ip->sFilterRegister[sFilterConfig->FilterBank].FR1 = + 80027a4: 683a ldr r2, [r7, #0] + 80027a6: 6952 ldr r2, [r2, #20] + ((0x0000FFFFU & (uint32_t)sFilterConfig->FilterIdHigh) << 16U) | + 80027a8: 4319 orrs r1, r3 + can_ip->sFilterRegister[sFilterConfig->FilterBank].FR1 = + 80027aa: 697b ldr r3, [r7, #20] + 80027ac: 3248 adds r2, #72 @ 0x48 + 80027ae: f843 1032 str.w r1, [r3, r2, lsl #3] + + /* 32-bit mask or Second 32-bit identifier */ + can_ip->sFilterRegister[sFilterConfig->FilterBank].FR2 = + ((0x0000FFFFU & (uint32_t)sFilterConfig->FilterMaskIdHigh) << 16U) | + 80027b2: 683b ldr r3, [r7, #0] + 80027b4: 689b ldr r3, [r3, #8] + 80027b6: 0419 lsls r1, r3, #16 + (0x0000FFFFU & (uint32_t)sFilterConfig->FilterMaskIdLow); + 80027b8: 683b ldr r3, [r7, #0] + 80027ba: 68db ldr r3, [r3, #12] + 80027bc: b29a uxth r2, r3 + can_ip->sFilterRegister[sFilterConfig->FilterBank].FR2 = + 80027be: 683b ldr r3, [r7, #0] + 80027c0: 695b ldr r3, [r3, #20] + ((0x0000FFFFU & (uint32_t)sFilterConfig->FilterMaskIdHigh) << 16U) | + 80027c2: 430a orrs r2, r1 + can_ip->sFilterRegister[sFilterConfig->FilterBank].FR2 = + 80027c4: 6979 ldr r1, [r7, #20] + 80027c6: 3348 adds r3, #72 @ 0x48 + 80027c8: 00db lsls r3, r3, #3 + 80027ca: 440b add r3, r1 + 80027cc: 605a str r2, [r3, #4] + } + + /* Filter Mode */ + if (sFilterConfig->FilterMode == CAN_FILTERMODE_IDMASK) + 80027ce: 683b ldr r3, [r7, #0] + 80027d0: 699b ldr r3, [r3, #24] + 80027d2: 2b00 cmp r3, #0 + 80027d4: d109 bne.n 80027ea + { + /* Id/Mask mode for the filter*/ + CLEAR_BIT(can_ip->FM1R, filternbrbitpos); + 80027d6: 697b ldr r3, [r7, #20] + 80027d8: f8d3 2204 ldr.w r2, [r3, #516] @ 0x204 + 80027dc: 68fb ldr r3, [r7, #12] + 80027de: 43db mvns r3, r3 + 80027e0: 401a ands r2, r3 + 80027e2: 697b ldr r3, [r7, #20] + 80027e4: f8c3 2204 str.w r2, [r3, #516] @ 0x204 + 80027e8: e007 b.n 80027fa + } + else /* CAN_FilterInitStruct->CAN_FilterMode == CAN_FilterMode_IdList */ + { + /* Identifier list mode for the filter*/ + SET_BIT(can_ip->FM1R, filternbrbitpos); + 80027ea: 697b ldr r3, [r7, #20] + 80027ec: f8d3 2204 ldr.w r2, [r3, #516] @ 0x204 + 80027f0: 68fb ldr r3, [r7, #12] + 80027f2: 431a orrs r2, r3 + 80027f4: 697b ldr r3, [r7, #20] + 80027f6: f8c3 2204 str.w r2, [r3, #516] @ 0x204 + } + + /* Filter FIFO assignment */ + if (sFilterConfig->FilterFIFOAssignment == CAN_FILTER_FIFO0) + 80027fa: 683b ldr r3, [r7, #0] + 80027fc: 691b ldr r3, [r3, #16] + 80027fe: 2b00 cmp r3, #0 + 8002800: d109 bne.n 8002816 + { + /* FIFO 0 assignation for the filter */ + CLEAR_BIT(can_ip->FFA1R, filternbrbitpos); + 8002802: 697b ldr r3, [r7, #20] + 8002804: f8d3 2214 ldr.w r2, [r3, #532] @ 0x214 + 8002808: 68fb ldr r3, [r7, #12] + 800280a: 43db mvns r3, r3 + 800280c: 401a ands r2, r3 + 800280e: 697b ldr r3, [r7, #20] + 8002810: f8c3 2214 str.w r2, [r3, #532] @ 0x214 + 8002814: e007 b.n 8002826 + } + else + { + /* FIFO 1 assignation for the filter */ + SET_BIT(can_ip->FFA1R, filternbrbitpos); + 8002816: 697b ldr r3, [r7, #20] + 8002818: f8d3 2214 ldr.w r2, [r3, #532] @ 0x214 + 800281c: 68fb ldr r3, [r7, #12] + 800281e: 431a orrs r2, r3 + 8002820: 697b ldr r3, [r7, #20] + 8002822: f8c3 2214 str.w r2, [r3, #532] @ 0x214 + } + + /* Filter activation */ + if (sFilterConfig->FilterActivation == CAN_FILTER_ENABLE) + 8002826: 683b ldr r3, [r7, #0] + 8002828: 6a1b ldr r3, [r3, #32] + 800282a: 2b01 cmp r3, #1 + 800282c: d107 bne.n 800283e + { + SET_BIT(can_ip->FA1R, filternbrbitpos); + 800282e: 697b ldr r3, [r7, #20] + 8002830: f8d3 221c ldr.w r2, [r3, #540] @ 0x21c + 8002834: 68fb ldr r3, [r7, #12] + 8002836: 431a orrs r2, r3 + 8002838: 697b ldr r3, [r7, #20] + 800283a: f8c3 221c str.w r2, [r3, #540] @ 0x21c + } + + /* Leave the initialisation mode for the filter */ + CLEAR_BIT(can_ip->FMR, CAN_FMR_FINIT); + 800283e: 697b ldr r3, [r7, #20] + 8002840: f8d3 3200 ldr.w r3, [r3, #512] @ 0x200 + 8002844: f023 0201 bic.w r2, r3, #1 + 8002848: 697b ldr r3, [r7, #20] + 800284a: f8c3 2200 str.w r2, [r3, #512] @ 0x200 + + /* Return function status */ + return HAL_OK; + 800284e: 2300 movs r3, #0 + 8002850: e006 b.n 8002860 + } + else + { + /* Update error code */ + hcan->ErrorCode |= HAL_CAN_ERROR_NOT_INITIALIZED; + 8002852: 687b ldr r3, [r7, #4] + 8002854: 6a5b ldr r3, [r3, #36] @ 0x24 + 8002856: f443 2280 orr.w r2, r3, #262144 @ 0x40000 + 800285a: 687b ldr r3, [r7, #4] + 800285c: 625a str r2, [r3, #36] @ 0x24 + + return HAL_ERROR; + 800285e: 2301 movs r3, #1 + } +} + 8002860: 4618 mov r0, r3 + 8002862: 371c adds r7, #28 + 8002864: 46bd mov sp, r7 + 8002866: f85d 7b04 ldr.w r7, [sp], #4 + 800286a: 4770 bx lr + 800286c: 40006400 .word 0x40006400 + +08002870 : + * @param hcan pointer to an CAN_HandleTypeDef structure that contains + * the configuration information for the specified CAN. + * @retval HAL status + */ +HAL_StatusTypeDef HAL_CAN_Start(CAN_HandleTypeDef *hcan) +{ + 8002870: b580 push {r7, lr} + 8002872: b084 sub sp, #16 + 8002874: af00 add r7, sp, #0 + 8002876: 6078 str r0, [r7, #4] + uint32_t tickstart; + + if (hcan->State == HAL_CAN_STATE_READY) + 8002878: 687b ldr r3, [r7, #4] + 800287a: f893 3020 ldrb.w r3, [r3, #32] + 800287e: b2db uxtb r3, r3 + 8002880: 2b01 cmp r3, #1 + 8002882: d12e bne.n 80028e2 + { + /* Change CAN peripheral state */ + hcan->State = HAL_CAN_STATE_LISTENING; + 8002884: 687b ldr r3, [r7, #4] + 8002886: 2202 movs r2, #2 + 8002888: f883 2020 strb.w r2, [r3, #32] + + /* Request leave initialisation */ + CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_INRQ); + 800288c: 687b ldr r3, [r7, #4] + 800288e: 681b ldr r3, [r3, #0] + 8002890: 681a ldr r2, [r3, #0] + 8002892: 687b ldr r3, [r7, #4] + 8002894: 681b ldr r3, [r3, #0] + 8002896: f022 0201 bic.w r2, r2, #1 + 800289a: 601a str r2, [r3, #0] + + /* Get tick */ + tickstart = HAL_GetTick(); + 800289c: f7ff fa32 bl 8001d04 + 80028a0: 60f8 str r0, [r7, #12] + + /* Wait the acknowledge */ + while ((hcan->Instance->MSR & CAN_MSR_INAK) != 0U) + 80028a2: e012 b.n 80028ca + { + /* Check for the Timeout */ + if ((HAL_GetTick() - tickstart) > CAN_TIMEOUT_VALUE) + 80028a4: f7ff fa2e bl 8001d04 + 80028a8: 4602 mov r2, r0 + 80028aa: 68fb ldr r3, [r7, #12] + 80028ac: 1ad3 subs r3, r2, r3 + 80028ae: 2b0a cmp r3, #10 + 80028b0: d90b bls.n 80028ca + { + /* Update error code */ + hcan->ErrorCode |= HAL_CAN_ERROR_TIMEOUT; + 80028b2: 687b ldr r3, [r7, #4] + 80028b4: 6a5b ldr r3, [r3, #36] @ 0x24 + 80028b6: f443 3200 orr.w r2, r3, #131072 @ 0x20000 + 80028ba: 687b ldr r3, [r7, #4] + 80028bc: 625a str r2, [r3, #36] @ 0x24 + + /* Change CAN state */ + hcan->State = HAL_CAN_STATE_ERROR; + 80028be: 687b ldr r3, [r7, #4] + 80028c0: 2205 movs r2, #5 + 80028c2: f883 2020 strb.w r2, [r3, #32] + + return HAL_ERROR; + 80028c6: 2301 movs r3, #1 + 80028c8: e012 b.n 80028f0 + while ((hcan->Instance->MSR & CAN_MSR_INAK) != 0U) + 80028ca: 687b ldr r3, [r7, #4] + 80028cc: 681b ldr r3, [r3, #0] + 80028ce: 685b ldr r3, [r3, #4] + 80028d0: f003 0301 and.w r3, r3, #1 + 80028d4: 2b00 cmp r3, #0 + 80028d6: d1e5 bne.n 80028a4 + } + } + + /* Reset the CAN ErrorCode */ + hcan->ErrorCode = HAL_CAN_ERROR_NONE; + 80028d8: 687b ldr r3, [r7, #4] + 80028da: 2200 movs r2, #0 + 80028dc: 625a str r2, [r3, #36] @ 0x24 + + /* Return function status */ + return HAL_OK; + 80028de: 2300 movs r3, #0 + 80028e0: e006 b.n 80028f0 + } + else + { + /* Update error code */ + hcan->ErrorCode |= HAL_CAN_ERROR_NOT_READY; + 80028e2: 687b ldr r3, [r7, #4] + 80028e4: 6a5b ldr r3, [r3, #36] @ 0x24 + 80028e6: f443 2200 orr.w r2, r3, #524288 @ 0x80000 + 80028ea: 687b ldr r3, [r7, #4] + 80028ec: 625a str r2, [r3, #36] @ 0x24 + + return HAL_ERROR; + 80028ee: 2301 movs r3, #1 + } +} + 80028f0: 4618 mov r0, r3 + 80028f2: 3710 adds r7, #16 + 80028f4: 46bd mov sp, r7 + 80028f6: bd80 pop {r7, pc} + +080028f8 : * This parameter can be a value of @arg CAN_Tx_Mailboxes. * @retval HAL status */ HAL_StatusTypeDef HAL_CAN_AddTxMessage(CAN_HandleTypeDef *hcan, const CAN_TxHeaderTypeDef *pHeader, const uint8_t aData[], uint32_t *pTxMailbox) { - 80025f6: b480 push {r7} - 80025f8: b089 sub sp, #36 @ 0x24 - 80025fa: af00 add r7, sp, #0 - 80025fc: 60f8 str r0, [r7, #12] - 80025fe: 60b9 str r1, [r7, #8] - 8002600: 607a str r2, [r7, #4] - 8002602: 603b str r3, [r7, #0] + 80028f8: b480 push {r7} + 80028fa: b089 sub sp, #36 @ 0x24 + 80028fc: af00 add r7, sp, #0 + 80028fe: 60f8 str r0, [r7, #12] + 8002900: 60b9 str r1, [r7, #8] + 8002902: 607a str r2, [r7, #4] + 8002904: 603b str r3, [r7, #0] uint32_t transmitmailbox; HAL_CAN_StateTypeDef state = hcan->State; - 8002604: 68fb ldr r3, [r7, #12] - 8002606: f893 3020 ldrb.w r3, [r3, #32] - 800260a: 77fb strb r3, [r7, #31] + 8002906: 68fb ldr r3, [r7, #12] + 8002908: f893 3020 ldrb.w r3, [r3, #32] + 800290c: 77fb strb r3, [r7, #31] uint32_t tsr = READ_REG(hcan->Instance->TSR); - 800260c: 68fb ldr r3, [r7, #12] - 800260e: 681b ldr r3, [r3, #0] - 8002610: 689b ldr r3, [r3, #8] - 8002612: 61bb str r3, [r7, #24] + 800290e: 68fb ldr r3, [r7, #12] + 8002910: 681b ldr r3, [r3, #0] + 8002912: 689b ldr r3, [r3, #8] + 8002914: 61bb str r3, [r7, #24] { assert_param(IS_CAN_EXTID(pHeader->ExtId)); } assert_param(IS_FUNCTIONAL_STATE(pHeader->TransmitGlobalTime)); if ((state == HAL_CAN_STATE_READY) || - 8002614: 7ffb ldrb r3, [r7, #31] - 8002616: 2b01 cmp r3, #1 - 8002618: d003 beq.n 8002622 - 800261a: 7ffb ldrb r3, [r7, #31] - 800261c: 2b02 cmp r3, #2 - 800261e: f040 80ad bne.w 800277c + 8002916: 7ffb ldrb r3, [r7, #31] + 8002918: 2b01 cmp r3, #1 + 800291a: d003 beq.n 8002924 + 800291c: 7ffb ldrb r3, [r7, #31] + 800291e: 2b02 cmp r3, #2 + 8002920: f040 80ad bne.w 8002a7e (state == HAL_CAN_STATE_LISTENING)) { /* Check that all the Tx mailboxes are not full */ if (((tsr & CAN_TSR_TME0) != 0U) || - 8002622: 69bb ldr r3, [r7, #24] - 8002624: f003 6380 and.w r3, r3, #67108864 @ 0x4000000 - 8002628: 2b00 cmp r3, #0 - 800262a: d10a bne.n 8002642 + 8002924: 69bb ldr r3, [r7, #24] + 8002926: f003 6380 and.w r3, r3, #67108864 @ 0x4000000 + 800292a: 2b00 cmp r3, #0 + 800292c: d10a bne.n 8002944 ((tsr & CAN_TSR_TME1) != 0U) || - 800262c: 69bb ldr r3, [r7, #24] - 800262e: f003 6300 and.w r3, r3, #134217728 @ 0x8000000 + 800292e: 69bb ldr r3, [r7, #24] + 8002930: f003 6300 and.w r3, r3, #134217728 @ 0x8000000 if (((tsr & CAN_TSR_TME0) != 0U) || - 8002632: 2b00 cmp r3, #0 - 8002634: d105 bne.n 8002642 + 8002934: 2b00 cmp r3, #0 + 8002936: d105 bne.n 8002944 ((tsr & CAN_TSR_TME2) != 0U)) - 8002636: 69bb ldr r3, [r7, #24] - 8002638: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 + 8002938: 69bb ldr r3, [r7, #24] + 800293a: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 ((tsr & CAN_TSR_TME1) != 0U) || - 800263c: 2b00 cmp r3, #0 - 800263e: f000 8095 beq.w 800276c + 800293e: 2b00 cmp r3, #0 + 8002940: f000 8095 beq.w 8002a6e { /* Select an empty transmit mailbox */ transmitmailbox = (tsr & CAN_TSR_CODE) >> CAN_TSR_CODE_Pos; - 8002642: 69bb ldr r3, [r7, #24] - 8002644: 0e1b lsrs r3, r3, #24 - 8002646: f003 0303 and.w r3, r3, #3 - 800264a: 617b str r3, [r7, #20] + 8002944: 69bb ldr r3, [r7, #24] + 8002946: 0e1b lsrs r3, r3, #24 + 8002948: f003 0303 and.w r3, r3, #3 + 800294c: 617b str r3, [r7, #20] /* Store the Tx mailbox */ *pTxMailbox = (uint32_t)1 << transmitmailbox; - 800264c: 2201 movs r2, #1 - 800264e: 697b ldr r3, [r7, #20] - 8002650: 409a lsls r2, r3 - 8002652: 683b ldr r3, [r7, #0] - 8002654: 601a str r2, [r3, #0] + 800294e: 2201 movs r2, #1 + 8002950: 697b ldr r3, [r7, #20] + 8002952: 409a lsls r2, r3 + 8002954: 683b ldr r3, [r7, #0] + 8002956: 601a str r2, [r3, #0] /* Set up the Id */ if (pHeader->IDE == CAN_ID_STD) - 8002656: 68bb ldr r3, [r7, #8] - 8002658: 689b ldr r3, [r3, #8] - 800265a: 2b00 cmp r3, #0 - 800265c: d10d bne.n 800267a + 8002958: 68bb ldr r3, [r7, #8] + 800295a: 689b ldr r3, [r3, #8] + 800295c: 2b00 cmp r3, #0 + 800295e: d10d bne.n 800297c { hcan->Instance->sTxMailBox[transmitmailbox].TIR = ((pHeader->StdId << CAN_TI0R_STID_Pos) | - 800265e: 68bb ldr r3, [r7, #8] - 8002660: 681b ldr r3, [r3, #0] - 8002662: 055a lsls r2, r3, #21 + 8002960: 68bb ldr r3, [r7, #8] + 8002962: 681b ldr r3, [r3, #0] + 8002964: 055a lsls r2, r3, #21 pHeader->RTR); - 8002664: 68bb ldr r3, [r7, #8] - 8002666: 68db ldr r3, [r3, #12] + 8002966: 68bb ldr r3, [r7, #8] + 8002968: 68db ldr r3, [r3, #12] hcan->Instance->sTxMailBox[transmitmailbox].TIR = ((pHeader->StdId << CAN_TI0R_STID_Pos) | - 8002668: 68f9 ldr r1, [r7, #12] - 800266a: 6809 ldr r1, [r1, #0] - 800266c: 431a orrs r2, r3 - 800266e: 697b ldr r3, [r7, #20] - 8002670: 3318 adds r3, #24 - 8002672: 011b lsls r3, r3, #4 - 8002674: 440b add r3, r1 - 8002676: 601a str r2, [r3, #0] - 8002678: e00f b.n 800269a + 800296a: 68f9 ldr r1, [r7, #12] + 800296c: 6809 ldr r1, [r1, #0] + 800296e: 431a orrs r2, r3 + 8002970: 697b ldr r3, [r7, #20] + 8002972: 3318 adds r3, #24 + 8002974: 011b lsls r3, r3, #4 + 8002976: 440b add r3, r1 + 8002978: 601a str r2, [r3, #0] + 800297a: e00f b.n 800299c } else { hcan->Instance->sTxMailBox[transmitmailbox].TIR = ((pHeader->ExtId << CAN_TI0R_EXID_Pos) | - 800267a: 68bb ldr r3, [r7, #8] - 800267c: 685b ldr r3, [r3, #4] - 800267e: 00da lsls r2, r3, #3 + 800297c: 68bb ldr r3, [r7, #8] + 800297e: 685b ldr r3, [r3, #4] + 8002980: 00da lsls r2, r3, #3 pHeader->IDE | - 8002680: 68bb ldr r3, [r7, #8] - 8002682: 689b ldr r3, [r3, #8] + 8002982: 68bb ldr r3, [r7, #8] + 8002984: 689b ldr r3, [r3, #8] hcan->Instance->sTxMailBox[transmitmailbox].TIR = ((pHeader->ExtId << CAN_TI0R_EXID_Pos) | - 8002684: 431a orrs r2, r3 + 8002986: 431a orrs r2, r3 pHeader->RTR); - 8002686: 68bb ldr r3, [r7, #8] - 8002688: 68db ldr r3, [r3, #12] + 8002988: 68bb ldr r3, [r7, #8] + 800298a: 68db ldr r3, [r3, #12] hcan->Instance->sTxMailBox[transmitmailbox].TIR = ((pHeader->ExtId << CAN_TI0R_EXID_Pos) | - 800268a: 68f9 ldr r1, [r7, #12] - 800268c: 6809 ldr r1, [r1, #0] + 800298c: 68f9 ldr r1, [r7, #12] + 800298e: 6809 ldr r1, [r1, #0] pHeader->IDE | - 800268e: 431a orrs r2, r3 + 8002990: 431a orrs r2, r3 hcan->Instance->sTxMailBox[transmitmailbox].TIR = ((pHeader->ExtId << CAN_TI0R_EXID_Pos) | - 8002690: 697b ldr r3, [r7, #20] - 8002692: 3318 adds r3, #24 - 8002694: 011b lsls r3, r3, #4 - 8002696: 440b add r3, r1 - 8002698: 601a str r2, [r3, #0] + 8002992: 697b ldr r3, [r7, #20] + 8002994: 3318 adds r3, #24 + 8002996: 011b lsls r3, r3, #4 + 8002998: 440b add r3, r1 + 800299a: 601a str r2, [r3, #0] } /* Set up the DLC */ hcan->Instance->sTxMailBox[transmitmailbox].TDTR = (pHeader->DLC); - 800269a: 68fb ldr r3, [r7, #12] - 800269c: 6819 ldr r1, [r3, #0] - 800269e: 68bb ldr r3, [r7, #8] - 80026a0: 691a ldr r2, [r3, #16] - 80026a2: 697b ldr r3, [r7, #20] - 80026a4: 3318 adds r3, #24 - 80026a6: 011b lsls r3, r3, #4 - 80026a8: 440b add r3, r1 - 80026aa: 3304 adds r3, #4 - 80026ac: 601a str r2, [r3, #0] + 800299c: 68fb ldr r3, [r7, #12] + 800299e: 6819 ldr r1, [r3, #0] + 80029a0: 68bb ldr r3, [r7, #8] + 80029a2: 691a ldr r2, [r3, #16] + 80029a4: 697b ldr r3, [r7, #20] + 80029a6: 3318 adds r3, #24 + 80029a8: 011b lsls r3, r3, #4 + 80029aa: 440b add r3, r1 + 80029ac: 3304 adds r3, #4 + 80029ae: 601a str r2, [r3, #0] /* Set up the Transmit Global Time mode */ if (pHeader->TransmitGlobalTime == ENABLE) - 80026ae: 68bb ldr r3, [r7, #8] - 80026b0: 7d1b ldrb r3, [r3, #20] - 80026b2: 2b01 cmp r3, #1 - 80026b4: d111 bne.n 80026da + 80029b0: 68bb ldr r3, [r7, #8] + 80029b2: 7d1b ldrb r3, [r3, #20] + 80029b4: 2b01 cmp r3, #1 + 80029b6: d111 bne.n 80029dc { SET_BIT(hcan->Instance->sTxMailBox[transmitmailbox].TDTR, CAN_TDT0R_TGT); - 80026b6: 68fb ldr r3, [r7, #12] - 80026b8: 681a ldr r2, [r3, #0] - 80026ba: 697b ldr r3, [r7, #20] - 80026bc: 3318 adds r3, #24 - 80026be: 011b lsls r3, r3, #4 - 80026c0: 4413 add r3, r2 - 80026c2: 3304 adds r3, #4 - 80026c4: 681b ldr r3, [r3, #0] - 80026c6: 68fa ldr r2, [r7, #12] - 80026c8: 6811 ldr r1, [r2, #0] - 80026ca: f443 7280 orr.w r2, r3, #256 @ 0x100 - 80026ce: 697b ldr r3, [r7, #20] - 80026d0: 3318 adds r3, #24 - 80026d2: 011b lsls r3, r3, #4 - 80026d4: 440b add r3, r1 - 80026d6: 3304 adds r3, #4 - 80026d8: 601a str r2, [r3, #0] + 80029b8: 68fb ldr r3, [r7, #12] + 80029ba: 681a ldr r2, [r3, #0] + 80029bc: 697b ldr r3, [r7, #20] + 80029be: 3318 adds r3, #24 + 80029c0: 011b lsls r3, r3, #4 + 80029c2: 4413 add r3, r2 + 80029c4: 3304 adds r3, #4 + 80029c6: 681b ldr r3, [r3, #0] + 80029c8: 68fa ldr r2, [r7, #12] + 80029ca: 6811 ldr r1, [r2, #0] + 80029cc: f443 7280 orr.w r2, r3, #256 @ 0x100 + 80029d0: 697b ldr r3, [r7, #20] + 80029d2: 3318 adds r3, #24 + 80029d4: 011b lsls r3, r3, #4 + 80029d6: 440b add r3, r1 + 80029d8: 3304 adds r3, #4 + 80029da: 601a str r2, [r3, #0] } /* Set up the data field */ WRITE_REG(hcan->Instance->sTxMailBox[transmitmailbox].TDHR, - 80026da: 687b ldr r3, [r7, #4] - 80026dc: 3307 adds r3, #7 - 80026de: 781b ldrb r3, [r3, #0] - 80026e0: 061a lsls r2, r3, #24 - 80026e2: 687b ldr r3, [r7, #4] - 80026e4: 3306 adds r3, #6 - 80026e6: 781b ldrb r3, [r3, #0] - 80026e8: 041b lsls r3, r3, #16 - 80026ea: 431a orrs r2, r3 - 80026ec: 687b ldr r3, [r7, #4] - 80026ee: 3305 adds r3, #5 - 80026f0: 781b ldrb r3, [r3, #0] - 80026f2: 021b lsls r3, r3, #8 - 80026f4: 4313 orrs r3, r2 - 80026f6: 687a ldr r2, [r7, #4] - 80026f8: 3204 adds r2, #4 - 80026fa: 7812 ldrb r2, [r2, #0] - 80026fc: 4610 mov r0, r2 - 80026fe: 68fa ldr r2, [r7, #12] - 8002700: 6811 ldr r1, [r2, #0] - 8002702: ea43 0200 orr.w r2, r3, r0 - 8002706: 697b ldr r3, [r7, #20] - 8002708: 011b lsls r3, r3, #4 - 800270a: 440b add r3, r1 - 800270c: f503 73c6 add.w r3, r3, #396 @ 0x18c - 8002710: 601a str r2, [r3, #0] + 80029dc: 687b ldr r3, [r7, #4] + 80029de: 3307 adds r3, #7 + 80029e0: 781b ldrb r3, [r3, #0] + 80029e2: 061a lsls r2, r3, #24 + 80029e4: 687b ldr r3, [r7, #4] + 80029e6: 3306 adds r3, #6 + 80029e8: 781b ldrb r3, [r3, #0] + 80029ea: 041b lsls r3, r3, #16 + 80029ec: 431a orrs r2, r3 + 80029ee: 687b ldr r3, [r7, #4] + 80029f0: 3305 adds r3, #5 + 80029f2: 781b ldrb r3, [r3, #0] + 80029f4: 021b lsls r3, r3, #8 + 80029f6: 4313 orrs r3, r2 + 80029f8: 687a ldr r2, [r7, #4] + 80029fa: 3204 adds r2, #4 + 80029fc: 7812 ldrb r2, [r2, #0] + 80029fe: 4610 mov r0, r2 + 8002a00: 68fa ldr r2, [r7, #12] + 8002a02: 6811 ldr r1, [r2, #0] + 8002a04: ea43 0200 orr.w r2, r3, r0 + 8002a08: 697b ldr r3, [r7, #20] + 8002a0a: 011b lsls r3, r3, #4 + 8002a0c: 440b add r3, r1 + 8002a0e: f503 73c6 add.w r3, r3, #396 @ 0x18c + 8002a12: 601a str r2, [r3, #0] ((uint32_t)aData[7] << CAN_TDH0R_DATA7_Pos) | ((uint32_t)aData[6] << CAN_TDH0R_DATA6_Pos) | ((uint32_t)aData[5] << CAN_TDH0R_DATA5_Pos) | ((uint32_t)aData[4] << CAN_TDH0R_DATA4_Pos)); WRITE_REG(hcan->Instance->sTxMailBox[transmitmailbox].TDLR, - 8002712: 687b ldr r3, [r7, #4] - 8002714: 3303 adds r3, #3 - 8002716: 781b ldrb r3, [r3, #0] - 8002718: 061a lsls r2, r3, #24 - 800271a: 687b ldr r3, [r7, #4] - 800271c: 3302 adds r3, #2 - 800271e: 781b ldrb r3, [r3, #0] - 8002720: 041b lsls r3, r3, #16 - 8002722: 431a orrs r2, r3 - 8002724: 687b ldr r3, [r7, #4] - 8002726: 3301 adds r3, #1 - 8002728: 781b ldrb r3, [r3, #0] - 800272a: 021b lsls r3, r3, #8 - 800272c: 4313 orrs r3, r2 - 800272e: 687a ldr r2, [r7, #4] - 8002730: 7812 ldrb r2, [r2, #0] - 8002732: 4610 mov r0, r2 - 8002734: 68fa ldr r2, [r7, #12] - 8002736: 6811 ldr r1, [r2, #0] - 8002738: ea43 0200 orr.w r2, r3, r0 - 800273c: 697b ldr r3, [r7, #20] - 800273e: 011b lsls r3, r3, #4 - 8002740: 440b add r3, r1 - 8002742: f503 73c4 add.w r3, r3, #392 @ 0x188 - 8002746: 601a str r2, [r3, #0] + 8002a14: 687b ldr r3, [r7, #4] + 8002a16: 3303 adds r3, #3 + 8002a18: 781b ldrb r3, [r3, #0] + 8002a1a: 061a lsls r2, r3, #24 + 8002a1c: 687b ldr r3, [r7, #4] + 8002a1e: 3302 adds r3, #2 + 8002a20: 781b ldrb r3, [r3, #0] + 8002a22: 041b lsls r3, r3, #16 + 8002a24: 431a orrs r2, r3 + 8002a26: 687b ldr r3, [r7, #4] + 8002a28: 3301 adds r3, #1 + 8002a2a: 781b ldrb r3, [r3, #0] + 8002a2c: 021b lsls r3, r3, #8 + 8002a2e: 4313 orrs r3, r2 + 8002a30: 687a ldr r2, [r7, #4] + 8002a32: 7812 ldrb r2, [r2, #0] + 8002a34: 4610 mov r0, r2 + 8002a36: 68fa ldr r2, [r7, #12] + 8002a38: 6811 ldr r1, [r2, #0] + 8002a3a: ea43 0200 orr.w r2, r3, r0 + 8002a3e: 697b ldr r3, [r7, #20] + 8002a40: 011b lsls r3, r3, #4 + 8002a42: 440b add r3, r1 + 8002a44: f503 73c4 add.w r3, r3, #392 @ 0x188 + 8002a48: 601a str r2, [r3, #0] ((uint32_t)aData[2] << CAN_TDL0R_DATA2_Pos) | ((uint32_t)aData[1] << CAN_TDL0R_DATA1_Pos) | ((uint32_t)aData[0] << CAN_TDL0R_DATA0_Pos)); /* Request transmission */ SET_BIT(hcan->Instance->sTxMailBox[transmitmailbox].TIR, CAN_TI0R_TXRQ); - 8002748: 68fb ldr r3, [r7, #12] - 800274a: 681a ldr r2, [r3, #0] - 800274c: 697b ldr r3, [r7, #20] - 800274e: 3318 adds r3, #24 - 8002750: 011b lsls r3, r3, #4 - 8002752: 4413 add r3, r2 - 8002754: 681b ldr r3, [r3, #0] - 8002756: 68fa ldr r2, [r7, #12] - 8002758: 6811 ldr r1, [r2, #0] - 800275a: f043 0201 orr.w r2, r3, #1 - 800275e: 697b ldr r3, [r7, #20] - 8002760: 3318 adds r3, #24 - 8002762: 011b lsls r3, r3, #4 - 8002764: 440b add r3, r1 - 8002766: 601a str r2, [r3, #0] + 8002a4a: 68fb ldr r3, [r7, #12] + 8002a4c: 681a ldr r2, [r3, #0] + 8002a4e: 697b ldr r3, [r7, #20] + 8002a50: 3318 adds r3, #24 + 8002a52: 011b lsls r3, r3, #4 + 8002a54: 4413 add r3, r2 + 8002a56: 681b ldr r3, [r3, #0] + 8002a58: 68fa ldr r2, [r7, #12] + 8002a5a: 6811 ldr r1, [r2, #0] + 8002a5c: f043 0201 orr.w r2, r3, #1 + 8002a60: 697b ldr r3, [r7, #20] + 8002a62: 3318 adds r3, #24 + 8002a64: 011b lsls r3, r3, #4 + 8002a66: 440b add r3, r1 + 8002a68: 601a str r2, [r3, #0] /* Return function status */ return HAL_OK; - 8002768: 2300 movs r3, #0 - 800276a: e00e b.n 800278a + 8002a6a: 2300 movs r3, #0 + 8002a6c: e00e b.n 8002a8c } else { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_PARAM; - 800276c: 68fb ldr r3, [r7, #12] - 800276e: 6a5b ldr r3, [r3, #36] @ 0x24 - 8002770: f443 1200 orr.w r2, r3, #2097152 @ 0x200000 - 8002774: 68fb ldr r3, [r7, #12] - 8002776: 625a str r2, [r3, #36] @ 0x24 + 8002a6e: 68fb ldr r3, [r7, #12] + 8002a70: 6a5b ldr r3, [r3, #36] @ 0x24 + 8002a72: f443 1200 orr.w r2, r3, #2097152 @ 0x200000 + 8002a76: 68fb ldr r3, [r7, #12] + 8002a78: 625a str r2, [r3, #36] @ 0x24 return HAL_ERROR; - 8002778: 2301 movs r3, #1 - 800277a: e006 b.n 800278a + 8002a7a: 2301 movs r3, #1 + 8002a7c: e006 b.n 8002a8c } } else { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_NOT_INITIALIZED; - 800277c: 68fb ldr r3, [r7, #12] - 800277e: 6a5b ldr r3, [r3, #36] @ 0x24 - 8002780: f443 2280 orr.w r2, r3, #262144 @ 0x40000 - 8002784: 68fb ldr r3, [r7, #12] - 8002786: 625a str r2, [r3, #36] @ 0x24 + 8002a7e: 68fb ldr r3, [r7, #12] + 8002a80: 6a5b ldr r3, [r3, #36] @ 0x24 + 8002a82: f443 2280 orr.w r2, r3, #262144 @ 0x40000 + 8002a86: 68fb ldr r3, [r7, #12] + 8002a88: 625a str r2, [r3, #36] @ 0x24 return HAL_ERROR; - 8002788: 2301 movs r3, #1 + 8002a8a: 2301 movs r3, #1 } } - 800278a: 4618 mov r0, r3 - 800278c: 3724 adds r7, #36 @ 0x24 - 800278e: 46bd mov sp, r7 - 8002790: f85d 7b04 ldr.w r7, [sp], #4 - 8002794: 4770 bx lr + 8002a8c: 4618 mov r0, r3 + 8002a8e: 3724 adds r7, #36 @ 0x24 + 8002a90: 46bd mov sp, r7 + 8002a92: f85d 7b04 ldr.w r7, [sp], #4 + 8002a96: 4770 bx lr -08002796 : +08002a98 : * @param aData array where the payload of the Rx frame will be stored. * @retval HAL status */ HAL_StatusTypeDef HAL_CAN_GetRxMessage(CAN_HandleTypeDef *hcan, uint32_t RxFifo, CAN_RxHeaderTypeDef *pHeader, uint8_t aData[]) { - 8002796: b480 push {r7} - 8002798: b087 sub sp, #28 - 800279a: af00 add r7, sp, #0 - 800279c: 60f8 str r0, [r7, #12] - 800279e: 60b9 str r1, [r7, #8] - 80027a0: 607a str r2, [r7, #4] - 80027a2: 603b str r3, [r7, #0] + 8002a98: b480 push {r7} + 8002a9a: b087 sub sp, #28 + 8002a9c: af00 add r7, sp, #0 + 8002a9e: 60f8 str r0, [r7, #12] + 8002aa0: 60b9 str r1, [r7, #8] + 8002aa2: 607a str r2, [r7, #4] + 8002aa4: 603b str r3, [r7, #0] HAL_CAN_StateTypeDef state = hcan->State; - 80027a4: 68fb ldr r3, [r7, #12] - 80027a6: f893 3020 ldrb.w r3, [r3, #32] - 80027aa: 75fb strb r3, [r7, #23] + 8002aa6: 68fb ldr r3, [r7, #12] + 8002aa8: f893 3020 ldrb.w r3, [r3, #32] + 8002aac: 75fb strb r3, [r7, #23] assert_param(IS_CAN_RX_FIFO(RxFifo)); if ((state == HAL_CAN_STATE_READY) || - 80027ac: 7dfb ldrb r3, [r7, #23] - 80027ae: 2b01 cmp r3, #1 - 80027b0: d003 beq.n 80027ba - 80027b2: 7dfb ldrb r3, [r7, #23] - 80027b4: 2b02 cmp r3, #2 - 80027b6: f040 8103 bne.w 80029c0 + 8002aae: 7dfb ldrb r3, [r7, #23] + 8002ab0: 2b01 cmp r3, #1 + 8002ab2: d003 beq.n 8002abc + 8002ab4: 7dfb ldrb r3, [r7, #23] + 8002ab6: 2b02 cmp r3, #2 + 8002ab8: f040 8103 bne.w 8002cc2 (state == HAL_CAN_STATE_LISTENING)) { /* Check the Rx FIFO */ if (RxFifo == CAN_RX_FIFO0) /* Rx element is assigned to Rx FIFO 0 */ - 80027ba: 68bb ldr r3, [r7, #8] - 80027bc: 2b00 cmp r3, #0 - 80027be: d10e bne.n 80027de + 8002abc: 68bb ldr r3, [r7, #8] + 8002abe: 2b00 cmp r3, #0 + 8002ac0: d10e bne.n 8002ae0 { /* Check that the Rx FIFO 0 is not empty */ if ((hcan->Instance->RF0R & CAN_RF0R_FMP0) == 0U) - 80027c0: 68fb ldr r3, [r7, #12] - 80027c2: 681b ldr r3, [r3, #0] - 80027c4: 68db ldr r3, [r3, #12] - 80027c6: f003 0303 and.w r3, r3, #3 - 80027ca: 2b00 cmp r3, #0 - 80027cc: d116 bne.n 80027fc + 8002ac2: 68fb ldr r3, [r7, #12] + 8002ac4: 681b ldr r3, [r3, #0] + 8002ac6: 68db ldr r3, [r3, #12] + 8002ac8: f003 0303 and.w r3, r3, #3 + 8002acc: 2b00 cmp r3, #0 + 8002ace: d116 bne.n 8002afe { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_PARAM; - 80027ce: 68fb ldr r3, [r7, #12] - 80027d0: 6a5b ldr r3, [r3, #36] @ 0x24 - 80027d2: f443 1200 orr.w r2, r3, #2097152 @ 0x200000 - 80027d6: 68fb ldr r3, [r7, #12] - 80027d8: 625a str r2, [r3, #36] @ 0x24 + 8002ad0: 68fb ldr r3, [r7, #12] + 8002ad2: 6a5b ldr r3, [r3, #36] @ 0x24 + 8002ad4: f443 1200 orr.w r2, r3, #2097152 @ 0x200000 + 8002ad8: 68fb ldr r3, [r7, #12] + 8002ada: 625a str r2, [r3, #36] @ 0x24 return HAL_ERROR; - 80027da: 2301 movs r3, #1 - 80027dc: e0f7 b.n 80029ce + 8002adc: 2301 movs r3, #1 + 8002ade: e0f7 b.n 8002cd0 } } else /* Rx element is assigned to Rx FIFO 1 */ { /* Check that the Rx FIFO 1 is not empty */ if ((hcan->Instance->RF1R & CAN_RF1R_FMP1) == 0U) - 80027de: 68fb ldr r3, [r7, #12] - 80027e0: 681b ldr r3, [r3, #0] - 80027e2: 691b ldr r3, [r3, #16] - 80027e4: f003 0303 and.w r3, r3, #3 - 80027e8: 2b00 cmp r3, #0 - 80027ea: d107 bne.n 80027fc + 8002ae0: 68fb ldr r3, [r7, #12] + 8002ae2: 681b ldr r3, [r3, #0] + 8002ae4: 691b ldr r3, [r3, #16] + 8002ae6: f003 0303 and.w r3, r3, #3 + 8002aea: 2b00 cmp r3, #0 + 8002aec: d107 bne.n 8002afe { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_PARAM; - 80027ec: 68fb ldr r3, [r7, #12] - 80027ee: 6a5b ldr r3, [r3, #36] @ 0x24 - 80027f0: f443 1200 orr.w r2, r3, #2097152 @ 0x200000 - 80027f4: 68fb ldr r3, [r7, #12] - 80027f6: 625a str r2, [r3, #36] @ 0x24 + 8002aee: 68fb ldr r3, [r7, #12] + 8002af0: 6a5b ldr r3, [r3, #36] @ 0x24 + 8002af2: f443 1200 orr.w r2, r3, #2097152 @ 0x200000 + 8002af6: 68fb ldr r3, [r7, #12] + 8002af8: 625a str r2, [r3, #36] @ 0x24 return HAL_ERROR; - 80027f8: 2301 movs r3, #1 - 80027fa: e0e8 b.n 80029ce + 8002afa: 2301 movs r3, #1 + 8002afc: e0e8 b.n 8002cd0 } } /* Get the header */ pHeader->IDE = CAN_RI0R_IDE & hcan->Instance->sFIFOMailBox[RxFifo].RIR; - 80027fc: 68fb ldr r3, [r7, #12] - 80027fe: 681a ldr r2, [r3, #0] - 8002800: 68bb ldr r3, [r7, #8] - 8002802: 331b adds r3, #27 - 8002804: 011b lsls r3, r3, #4 - 8002806: 4413 add r3, r2 - 8002808: 681b ldr r3, [r3, #0] - 800280a: f003 0204 and.w r2, r3, #4 - 800280e: 687b ldr r3, [r7, #4] - 8002810: 609a str r2, [r3, #8] + 8002afe: 68fb ldr r3, [r7, #12] + 8002b00: 681a ldr r2, [r3, #0] + 8002b02: 68bb ldr r3, [r7, #8] + 8002b04: 331b adds r3, #27 + 8002b06: 011b lsls r3, r3, #4 + 8002b08: 4413 add r3, r2 + 8002b0a: 681b ldr r3, [r3, #0] + 8002b0c: f003 0204 and.w r2, r3, #4 + 8002b10: 687b ldr r3, [r7, #4] + 8002b12: 609a str r2, [r3, #8] if (pHeader->IDE == CAN_ID_STD) - 8002812: 687b ldr r3, [r7, #4] - 8002814: 689b ldr r3, [r3, #8] - 8002816: 2b00 cmp r3, #0 - 8002818: d10c bne.n 8002834 + 8002b14: 687b ldr r3, [r7, #4] + 8002b16: 689b ldr r3, [r3, #8] + 8002b18: 2b00 cmp r3, #0 + 8002b1a: d10c bne.n 8002b36 { pHeader->StdId = (CAN_RI0R_STID & hcan->Instance->sFIFOMailBox[RxFifo].RIR) >> CAN_TI0R_STID_Pos; - 800281a: 68fb ldr r3, [r7, #12] - 800281c: 681a ldr r2, [r3, #0] - 800281e: 68bb ldr r3, [r7, #8] - 8002820: 331b adds r3, #27 - 8002822: 011b lsls r3, r3, #4 - 8002824: 4413 add r3, r2 - 8002826: 681b ldr r3, [r3, #0] - 8002828: 0d5b lsrs r3, r3, #21 - 800282a: f3c3 020a ubfx r2, r3, #0, #11 - 800282e: 687b ldr r3, [r7, #4] - 8002830: 601a str r2, [r3, #0] - 8002832: e00b b.n 800284c + 8002b1c: 68fb ldr r3, [r7, #12] + 8002b1e: 681a ldr r2, [r3, #0] + 8002b20: 68bb ldr r3, [r7, #8] + 8002b22: 331b adds r3, #27 + 8002b24: 011b lsls r3, r3, #4 + 8002b26: 4413 add r3, r2 + 8002b28: 681b ldr r3, [r3, #0] + 8002b2a: 0d5b lsrs r3, r3, #21 + 8002b2c: f3c3 020a ubfx r2, r3, #0, #11 + 8002b30: 687b ldr r3, [r7, #4] + 8002b32: 601a str r2, [r3, #0] + 8002b34: e00b b.n 8002b4e } else { pHeader->ExtId = ((CAN_RI0R_EXID | CAN_RI0R_STID) & hcan->Instance->sFIFOMailBox[RxFifo].RIR) >> CAN_RI0R_EXID_Pos; - 8002834: 68fb ldr r3, [r7, #12] - 8002836: 681a ldr r2, [r3, #0] - 8002838: 68bb ldr r3, [r7, #8] - 800283a: 331b adds r3, #27 - 800283c: 011b lsls r3, r3, #4 - 800283e: 4413 add r3, r2 - 8002840: 681b ldr r3, [r3, #0] - 8002842: 08db lsrs r3, r3, #3 - 8002844: f023 4260 bic.w r2, r3, #3758096384 @ 0xe0000000 + 8002b36: 68fb ldr r3, [r7, #12] + 8002b38: 681a ldr r2, [r3, #0] + 8002b3a: 68bb ldr r3, [r7, #8] + 8002b3c: 331b adds r3, #27 + 8002b3e: 011b lsls r3, r3, #4 + 8002b40: 4413 add r3, r2 + 8002b42: 681b ldr r3, [r3, #0] + 8002b44: 08db lsrs r3, r3, #3 + 8002b46: f023 4260 bic.w r2, r3, #3758096384 @ 0xe0000000 pHeader->ExtId = ((CAN_RI0R_EXID | CAN_RI0R_STID) & - 8002848: 687b ldr r3, [r7, #4] - 800284a: 605a str r2, [r3, #4] + 8002b4a: 687b ldr r3, [r7, #4] + 8002b4c: 605a str r2, [r3, #4] } pHeader->RTR = (CAN_RI0R_RTR & hcan->Instance->sFIFOMailBox[RxFifo].RIR); - 800284c: 68fb ldr r3, [r7, #12] - 800284e: 681a ldr r2, [r3, #0] - 8002850: 68bb ldr r3, [r7, #8] - 8002852: 331b adds r3, #27 - 8002854: 011b lsls r3, r3, #4 - 8002856: 4413 add r3, r2 - 8002858: 681b ldr r3, [r3, #0] - 800285a: f003 0202 and.w r2, r3, #2 - 800285e: 687b ldr r3, [r7, #4] - 8002860: 60da str r2, [r3, #12] + 8002b4e: 68fb ldr r3, [r7, #12] + 8002b50: 681a ldr r2, [r3, #0] + 8002b52: 68bb ldr r3, [r7, #8] + 8002b54: 331b adds r3, #27 + 8002b56: 011b lsls r3, r3, #4 + 8002b58: 4413 add r3, r2 + 8002b5a: 681b ldr r3, [r3, #0] + 8002b5c: f003 0202 and.w r2, r3, #2 + 8002b60: 687b ldr r3, [r7, #4] + 8002b62: 60da str r2, [r3, #12] if (((CAN_RDT0R_DLC & hcan->Instance->sFIFOMailBox[RxFifo].RDTR) >> CAN_RDT0R_DLC_Pos) >= 8U) - 8002862: 68fb ldr r3, [r7, #12] - 8002864: 681a ldr r2, [r3, #0] - 8002866: 68bb ldr r3, [r7, #8] - 8002868: 331b adds r3, #27 - 800286a: 011b lsls r3, r3, #4 - 800286c: 4413 add r3, r2 - 800286e: 3304 adds r3, #4 - 8002870: 681b ldr r3, [r3, #0] - 8002872: f003 0308 and.w r3, r3, #8 - 8002876: 2b00 cmp r3, #0 - 8002878: d003 beq.n 8002882 + 8002b64: 68fb ldr r3, [r7, #12] + 8002b66: 681a ldr r2, [r3, #0] + 8002b68: 68bb ldr r3, [r7, #8] + 8002b6a: 331b adds r3, #27 + 8002b6c: 011b lsls r3, r3, #4 + 8002b6e: 4413 add r3, r2 + 8002b70: 3304 adds r3, #4 + 8002b72: 681b ldr r3, [r3, #0] + 8002b74: f003 0308 and.w r3, r3, #8 + 8002b78: 2b00 cmp r3, #0 + 8002b7a: d003 beq.n 8002b84 { /* Truncate DLC to 8 if received field is over range */ pHeader->DLC = 8U; - 800287a: 687b ldr r3, [r7, #4] - 800287c: 2208 movs r2, #8 - 800287e: 611a str r2, [r3, #16] - 8002880: e00b b.n 800289a + 8002b7c: 687b ldr r3, [r7, #4] + 8002b7e: 2208 movs r2, #8 + 8002b80: 611a str r2, [r3, #16] + 8002b82: e00b b.n 8002b9c } else { pHeader->DLC = (CAN_RDT0R_DLC & hcan->Instance->sFIFOMailBox[RxFifo].RDTR) >> CAN_RDT0R_DLC_Pos; - 8002882: 68fb ldr r3, [r7, #12] - 8002884: 681a ldr r2, [r3, #0] - 8002886: 68bb ldr r3, [r7, #8] - 8002888: 331b adds r3, #27 - 800288a: 011b lsls r3, r3, #4 - 800288c: 4413 add r3, r2 - 800288e: 3304 adds r3, #4 - 8002890: 681b ldr r3, [r3, #0] - 8002892: f003 020f and.w r2, r3, #15 - 8002896: 687b ldr r3, [r7, #4] - 8002898: 611a str r2, [r3, #16] + 8002b84: 68fb ldr r3, [r7, #12] + 8002b86: 681a ldr r2, [r3, #0] + 8002b88: 68bb ldr r3, [r7, #8] + 8002b8a: 331b adds r3, #27 + 8002b8c: 011b lsls r3, r3, #4 + 8002b8e: 4413 add r3, r2 + 8002b90: 3304 adds r3, #4 + 8002b92: 681b ldr r3, [r3, #0] + 8002b94: f003 020f and.w r2, r3, #15 + 8002b98: 687b ldr r3, [r7, #4] + 8002b9a: 611a str r2, [r3, #16] } pHeader->FilterMatchIndex = (CAN_RDT0R_FMI & hcan->Instance->sFIFOMailBox[RxFifo].RDTR) >> CAN_RDT0R_FMI_Pos; - 800289a: 68fb ldr r3, [r7, #12] - 800289c: 681a ldr r2, [r3, #0] - 800289e: 68bb ldr r3, [r7, #8] - 80028a0: 331b adds r3, #27 - 80028a2: 011b lsls r3, r3, #4 - 80028a4: 4413 add r3, r2 - 80028a6: 3304 adds r3, #4 - 80028a8: 681b ldr r3, [r3, #0] - 80028aa: 0a1b lsrs r3, r3, #8 - 80028ac: b2da uxtb r2, r3 - 80028ae: 687b ldr r3, [r7, #4] - 80028b0: 619a str r2, [r3, #24] + 8002b9c: 68fb ldr r3, [r7, #12] + 8002b9e: 681a ldr r2, [r3, #0] + 8002ba0: 68bb ldr r3, [r7, #8] + 8002ba2: 331b adds r3, #27 + 8002ba4: 011b lsls r3, r3, #4 + 8002ba6: 4413 add r3, r2 + 8002ba8: 3304 adds r3, #4 + 8002baa: 681b ldr r3, [r3, #0] + 8002bac: 0a1b lsrs r3, r3, #8 + 8002bae: b2da uxtb r2, r3 + 8002bb0: 687b ldr r3, [r7, #4] + 8002bb2: 619a str r2, [r3, #24] pHeader->Timestamp = (CAN_RDT0R_TIME & hcan->Instance->sFIFOMailBox[RxFifo].RDTR) >> CAN_RDT0R_TIME_Pos; - 80028b2: 68fb ldr r3, [r7, #12] - 80028b4: 681a ldr r2, [r3, #0] - 80028b6: 68bb ldr r3, [r7, #8] - 80028b8: 331b adds r3, #27 - 80028ba: 011b lsls r3, r3, #4 - 80028bc: 4413 add r3, r2 - 80028be: 3304 adds r3, #4 - 80028c0: 681b ldr r3, [r3, #0] - 80028c2: 0c1b lsrs r3, r3, #16 - 80028c4: b29a uxth r2, r3 - 80028c6: 687b ldr r3, [r7, #4] - 80028c8: 615a str r2, [r3, #20] + 8002bb4: 68fb ldr r3, [r7, #12] + 8002bb6: 681a ldr r2, [r3, #0] + 8002bb8: 68bb ldr r3, [r7, #8] + 8002bba: 331b adds r3, #27 + 8002bbc: 011b lsls r3, r3, #4 + 8002bbe: 4413 add r3, r2 + 8002bc0: 3304 adds r3, #4 + 8002bc2: 681b ldr r3, [r3, #0] + 8002bc4: 0c1b lsrs r3, r3, #16 + 8002bc6: b29a uxth r2, r3 + 8002bc8: 687b ldr r3, [r7, #4] + 8002bca: 615a str r2, [r3, #20] /* Get the data */ aData[0] = (uint8_t)((CAN_RDL0R_DATA0 & hcan->Instance->sFIFOMailBox[RxFifo].RDLR) >> CAN_RDL0R_DATA0_Pos); - 80028ca: 68fb ldr r3, [r7, #12] - 80028cc: 681a ldr r2, [r3, #0] - 80028ce: 68bb ldr r3, [r7, #8] - 80028d0: 011b lsls r3, r3, #4 - 80028d2: 4413 add r3, r2 - 80028d4: f503 73dc add.w r3, r3, #440 @ 0x1b8 - 80028d8: 681b ldr r3, [r3, #0] - 80028da: b2da uxtb r2, r3 - 80028dc: 683b ldr r3, [r7, #0] - 80028de: 701a strb r2, [r3, #0] + 8002bcc: 68fb ldr r3, [r7, #12] + 8002bce: 681a ldr r2, [r3, #0] + 8002bd0: 68bb ldr r3, [r7, #8] + 8002bd2: 011b lsls r3, r3, #4 + 8002bd4: 4413 add r3, r2 + 8002bd6: f503 73dc add.w r3, r3, #440 @ 0x1b8 + 8002bda: 681b ldr r3, [r3, #0] + 8002bdc: b2da uxtb r2, r3 + 8002bde: 683b ldr r3, [r7, #0] + 8002be0: 701a strb r2, [r3, #0] aData[1] = (uint8_t)((CAN_RDL0R_DATA1 & hcan->Instance->sFIFOMailBox[RxFifo].RDLR) >> CAN_RDL0R_DATA1_Pos); - 80028e0: 68fb ldr r3, [r7, #12] - 80028e2: 681a ldr r2, [r3, #0] - 80028e4: 68bb ldr r3, [r7, #8] - 80028e6: 011b lsls r3, r3, #4 - 80028e8: 4413 add r3, r2 - 80028ea: f503 73dc add.w r3, r3, #440 @ 0x1b8 - 80028ee: 681b ldr r3, [r3, #0] - 80028f0: 0a1a lsrs r2, r3, #8 - 80028f2: 683b ldr r3, [r7, #0] - 80028f4: 3301 adds r3, #1 - 80028f6: b2d2 uxtb r2, r2 - 80028f8: 701a strb r2, [r3, #0] + 8002be2: 68fb ldr r3, [r7, #12] + 8002be4: 681a ldr r2, [r3, #0] + 8002be6: 68bb ldr r3, [r7, #8] + 8002be8: 011b lsls r3, r3, #4 + 8002bea: 4413 add r3, r2 + 8002bec: f503 73dc add.w r3, r3, #440 @ 0x1b8 + 8002bf0: 681b ldr r3, [r3, #0] + 8002bf2: 0a1a lsrs r2, r3, #8 + 8002bf4: 683b ldr r3, [r7, #0] + 8002bf6: 3301 adds r3, #1 + 8002bf8: b2d2 uxtb r2, r2 + 8002bfa: 701a strb r2, [r3, #0] aData[2] = (uint8_t)((CAN_RDL0R_DATA2 & hcan->Instance->sFIFOMailBox[RxFifo].RDLR) >> CAN_RDL0R_DATA2_Pos); - 80028fa: 68fb ldr r3, [r7, #12] - 80028fc: 681a ldr r2, [r3, #0] - 80028fe: 68bb ldr r3, [r7, #8] - 8002900: 011b lsls r3, r3, #4 - 8002902: 4413 add r3, r2 - 8002904: f503 73dc add.w r3, r3, #440 @ 0x1b8 - 8002908: 681b ldr r3, [r3, #0] - 800290a: 0c1a lsrs r2, r3, #16 - 800290c: 683b ldr r3, [r7, #0] - 800290e: 3302 adds r3, #2 - 8002910: b2d2 uxtb r2, r2 - 8002912: 701a strb r2, [r3, #0] + 8002bfc: 68fb ldr r3, [r7, #12] + 8002bfe: 681a ldr r2, [r3, #0] + 8002c00: 68bb ldr r3, [r7, #8] + 8002c02: 011b lsls r3, r3, #4 + 8002c04: 4413 add r3, r2 + 8002c06: f503 73dc add.w r3, r3, #440 @ 0x1b8 + 8002c0a: 681b ldr r3, [r3, #0] + 8002c0c: 0c1a lsrs r2, r3, #16 + 8002c0e: 683b ldr r3, [r7, #0] + 8002c10: 3302 adds r3, #2 + 8002c12: b2d2 uxtb r2, r2 + 8002c14: 701a strb r2, [r3, #0] aData[3] = (uint8_t)((CAN_RDL0R_DATA3 & hcan->Instance->sFIFOMailBox[RxFifo].RDLR) >> CAN_RDL0R_DATA3_Pos); - 8002914: 68fb ldr r3, [r7, #12] - 8002916: 681a ldr r2, [r3, #0] - 8002918: 68bb ldr r3, [r7, #8] - 800291a: 011b lsls r3, r3, #4 - 800291c: 4413 add r3, r2 - 800291e: f503 73dc add.w r3, r3, #440 @ 0x1b8 - 8002922: 681b ldr r3, [r3, #0] - 8002924: 0e1a lsrs r2, r3, #24 - 8002926: 683b ldr r3, [r7, #0] - 8002928: 3303 adds r3, #3 - 800292a: b2d2 uxtb r2, r2 - 800292c: 701a strb r2, [r3, #0] + 8002c16: 68fb ldr r3, [r7, #12] + 8002c18: 681a ldr r2, [r3, #0] + 8002c1a: 68bb ldr r3, [r7, #8] + 8002c1c: 011b lsls r3, r3, #4 + 8002c1e: 4413 add r3, r2 + 8002c20: f503 73dc add.w r3, r3, #440 @ 0x1b8 + 8002c24: 681b ldr r3, [r3, #0] + 8002c26: 0e1a lsrs r2, r3, #24 + 8002c28: 683b ldr r3, [r7, #0] + 8002c2a: 3303 adds r3, #3 + 8002c2c: b2d2 uxtb r2, r2 + 8002c2e: 701a strb r2, [r3, #0] aData[4] = (uint8_t)((CAN_RDH0R_DATA4 & hcan->Instance->sFIFOMailBox[RxFifo].RDHR) >> CAN_RDH0R_DATA4_Pos); - 800292e: 68fb ldr r3, [r7, #12] - 8002930: 681a ldr r2, [r3, #0] - 8002932: 68bb ldr r3, [r7, #8] - 8002934: 011b lsls r3, r3, #4 - 8002936: 4413 add r3, r2 - 8002938: f503 73de add.w r3, r3, #444 @ 0x1bc - 800293c: 681a ldr r2, [r3, #0] - 800293e: 683b ldr r3, [r7, #0] - 8002940: 3304 adds r3, #4 - 8002942: b2d2 uxtb r2, r2 - 8002944: 701a strb r2, [r3, #0] + 8002c30: 68fb ldr r3, [r7, #12] + 8002c32: 681a ldr r2, [r3, #0] + 8002c34: 68bb ldr r3, [r7, #8] + 8002c36: 011b lsls r3, r3, #4 + 8002c38: 4413 add r3, r2 + 8002c3a: f503 73de add.w r3, r3, #444 @ 0x1bc + 8002c3e: 681a ldr r2, [r3, #0] + 8002c40: 683b ldr r3, [r7, #0] + 8002c42: 3304 adds r3, #4 + 8002c44: b2d2 uxtb r2, r2 + 8002c46: 701a strb r2, [r3, #0] aData[5] = (uint8_t)((CAN_RDH0R_DATA5 & hcan->Instance->sFIFOMailBox[RxFifo].RDHR) >> CAN_RDH0R_DATA5_Pos); - 8002946: 68fb ldr r3, [r7, #12] - 8002948: 681a ldr r2, [r3, #0] - 800294a: 68bb ldr r3, [r7, #8] - 800294c: 011b lsls r3, r3, #4 - 800294e: 4413 add r3, r2 - 8002950: f503 73de add.w r3, r3, #444 @ 0x1bc - 8002954: 681b ldr r3, [r3, #0] - 8002956: 0a1a lsrs r2, r3, #8 - 8002958: 683b ldr r3, [r7, #0] - 800295a: 3305 adds r3, #5 - 800295c: b2d2 uxtb r2, r2 - 800295e: 701a strb r2, [r3, #0] + 8002c48: 68fb ldr r3, [r7, #12] + 8002c4a: 681a ldr r2, [r3, #0] + 8002c4c: 68bb ldr r3, [r7, #8] + 8002c4e: 011b lsls r3, r3, #4 + 8002c50: 4413 add r3, r2 + 8002c52: f503 73de add.w r3, r3, #444 @ 0x1bc + 8002c56: 681b ldr r3, [r3, #0] + 8002c58: 0a1a lsrs r2, r3, #8 + 8002c5a: 683b ldr r3, [r7, #0] + 8002c5c: 3305 adds r3, #5 + 8002c5e: b2d2 uxtb r2, r2 + 8002c60: 701a strb r2, [r3, #0] aData[6] = (uint8_t)((CAN_RDH0R_DATA6 & hcan->Instance->sFIFOMailBox[RxFifo].RDHR) >> CAN_RDH0R_DATA6_Pos); - 8002960: 68fb ldr r3, [r7, #12] - 8002962: 681a ldr r2, [r3, #0] - 8002964: 68bb ldr r3, [r7, #8] - 8002966: 011b lsls r3, r3, #4 - 8002968: 4413 add r3, r2 - 800296a: f503 73de add.w r3, r3, #444 @ 0x1bc - 800296e: 681b ldr r3, [r3, #0] - 8002970: 0c1a lsrs r2, r3, #16 - 8002972: 683b ldr r3, [r7, #0] - 8002974: 3306 adds r3, #6 - 8002976: b2d2 uxtb r2, r2 - 8002978: 701a strb r2, [r3, #0] + 8002c62: 68fb ldr r3, [r7, #12] + 8002c64: 681a ldr r2, [r3, #0] + 8002c66: 68bb ldr r3, [r7, #8] + 8002c68: 011b lsls r3, r3, #4 + 8002c6a: 4413 add r3, r2 + 8002c6c: f503 73de add.w r3, r3, #444 @ 0x1bc + 8002c70: 681b ldr r3, [r3, #0] + 8002c72: 0c1a lsrs r2, r3, #16 + 8002c74: 683b ldr r3, [r7, #0] + 8002c76: 3306 adds r3, #6 + 8002c78: b2d2 uxtb r2, r2 + 8002c7a: 701a strb r2, [r3, #0] aData[7] = (uint8_t)((CAN_RDH0R_DATA7 & hcan->Instance->sFIFOMailBox[RxFifo].RDHR) >> CAN_RDH0R_DATA7_Pos); - 800297a: 68fb ldr r3, [r7, #12] - 800297c: 681a ldr r2, [r3, #0] - 800297e: 68bb ldr r3, [r7, #8] - 8002980: 011b lsls r3, r3, #4 - 8002982: 4413 add r3, r2 - 8002984: f503 73de add.w r3, r3, #444 @ 0x1bc - 8002988: 681b ldr r3, [r3, #0] - 800298a: 0e1a lsrs r2, r3, #24 - 800298c: 683b ldr r3, [r7, #0] - 800298e: 3307 adds r3, #7 - 8002990: b2d2 uxtb r2, r2 - 8002992: 701a strb r2, [r3, #0] + 8002c7c: 68fb ldr r3, [r7, #12] + 8002c7e: 681a ldr r2, [r3, #0] + 8002c80: 68bb ldr r3, [r7, #8] + 8002c82: 011b lsls r3, r3, #4 + 8002c84: 4413 add r3, r2 + 8002c86: f503 73de add.w r3, r3, #444 @ 0x1bc + 8002c8a: 681b ldr r3, [r3, #0] + 8002c8c: 0e1a lsrs r2, r3, #24 + 8002c8e: 683b ldr r3, [r7, #0] + 8002c90: 3307 adds r3, #7 + 8002c92: b2d2 uxtb r2, r2 + 8002c94: 701a strb r2, [r3, #0] /* Release the FIFO */ if (RxFifo == CAN_RX_FIFO0) /* Rx element is assigned to Rx FIFO 0 */ - 8002994: 68bb ldr r3, [r7, #8] - 8002996: 2b00 cmp r3, #0 - 8002998: d108 bne.n 80029ac + 8002c96: 68bb ldr r3, [r7, #8] + 8002c98: 2b00 cmp r3, #0 + 8002c9a: d108 bne.n 8002cae { /* Release RX FIFO 0 */ SET_BIT(hcan->Instance->RF0R, CAN_RF0R_RFOM0); - 800299a: 68fb ldr r3, [r7, #12] - 800299c: 681b ldr r3, [r3, #0] - 800299e: 68da ldr r2, [r3, #12] - 80029a0: 68fb ldr r3, [r7, #12] - 80029a2: 681b ldr r3, [r3, #0] - 80029a4: f042 0220 orr.w r2, r2, #32 - 80029a8: 60da str r2, [r3, #12] - 80029aa: e007 b.n 80029bc + 8002c9c: 68fb ldr r3, [r7, #12] + 8002c9e: 681b ldr r3, [r3, #0] + 8002ca0: 68da ldr r2, [r3, #12] + 8002ca2: 68fb ldr r3, [r7, #12] + 8002ca4: 681b ldr r3, [r3, #0] + 8002ca6: f042 0220 orr.w r2, r2, #32 + 8002caa: 60da str r2, [r3, #12] + 8002cac: e007 b.n 8002cbe } else /* Rx element is assigned to Rx FIFO 1 */ { /* Release RX FIFO 1 */ SET_BIT(hcan->Instance->RF1R, CAN_RF1R_RFOM1); - 80029ac: 68fb ldr r3, [r7, #12] - 80029ae: 681b ldr r3, [r3, #0] - 80029b0: 691a ldr r2, [r3, #16] - 80029b2: 68fb ldr r3, [r7, #12] - 80029b4: 681b ldr r3, [r3, #0] - 80029b6: f042 0220 orr.w r2, r2, #32 - 80029ba: 611a str r2, [r3, #16] + 8002cae: 68fb ldr r3, [r7, #12] + 8002cb0: 681b ldr r3, [r3, #0] + 8002cb2: 691a ldr r2, [r3, #16] + 8002cb4: 68fb ldr r3, [r7, #12] + 8002cb6: 681b ldr r3, [r3, #0] + 8002cb8: f042 0220 orr.w r2, r2, #32 + 8002cbc: 611a str r2, [r3, #16] } /* Return function status */ return HAL_OK; - 80029bc: 2300 movs r3, #0 - 80029be: e006 b.n 80029ce + 8002cbe: 2300 movs r3, #0 + 8002cc0: e006 b.n 8002cd0 } else { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_NOT_INITIALIZED; - 80029c0: 68fb ldr r3, [r7, #12] - 80029c2: 6a5b ldr r3, [r3, #36] @ 0x24 - 80029c4: f443 2280 orr.w r2, r3, #262144 @ 0x40000 - 80029c8: 68fb ldr r3, [r7, #12] - 80029ca: 625a str r2, [r3, #36] @ 0x24 + 8002cc2: 68fb ldr r3, [r7, #12] + 8002cc4: 6a5b ldr r3, [r3, #36] @ 0x24 + 8002cc6: f443 2280 orr.w r2, r3, #262144 @ 0x40000 + 8002cca: 68fb ldr r3, [r7, #12] + 8002ccc: 625a str r2, [r3, #36] @ 0x24 return HAL_ERROR; - 80029cc: 2301 movs r3, #1 + 8002cce: 2301 movs r3, #1 } } - 80029ce: 4618 mov r0, r3 - 80029d0: 371c adds r7, #28 - 80029d2: 46bd mov sp, r7 - 80029d4: f85d 7b04 ldr.w r7, [sp], #4 - 80029d8: 4770 bx lr + 8002cd0: 4618 mov r0, r3 + 8002cd2: 371c adds r7, #28 + 8002cd4: 46bd mov sp, r7 + 8002cd6: f85d 7b04 ldr.w r7, [sp], #4 + 8002cda: 4770 bx lr -080029da : - * @param RxFifo Rx FIFO. - * This parameter can be a value of @arg CAN_receive_FIFO_number. - * @retval Number of messages available in Rx FIFO. - */ -uint32_t HAL_CAN_GetRxFifoFillLevel(const CAN_HandleTypeDef *hcan, uint32_t RxFifo) +08002cdc <__NVIC_SetPriorityGrouping>: { - 80029da: b480 push {r7} - 80029dc: b085 sub sp, #20 - 80029de: af00 add r7, sp, #0 - 80029e0: 6078 str r0, [r7, #4] - 80029e2: 6039 str r1, [r7, #0] - uint32_t filllevel = 0U; - 80029e4: 2300 movs r3, #0 - 80029e6: 60fb str r3, [r7, #12] - HAL_CAN_StateTypeDef state = hcan->State; - 80029e8: 687b ldr r3, [r7, #4] - 80029ea: f893 3020 ldrb.w r3, [r3, #32] - 80029ee: 72fb strb r3, [r7, #11] - - /* Check function parameters */ - assert_param(IS_CAN_RX_FIFO(RxFifo)); - - if ((state == HAL_CAN_STATE_READY) || - 80029f0: 7afb ldrb r3, [r7, #11] - 80029f2: 2b01 cmp r3, #1 - 80029f4: d002 beq.n 80029fc - 80029f6: 7afb ldrb r3, [r7, #11] - 80029f8: 2b02 cmp r3, #2 - 80029fa: d10f bne.n 8002a1c - (state == HAL_CAN_STATE_LISTENING)) - { - if (RxFifo == CAN_RX_FIFO0) - 80029fc: 683b ldr r3, [r7, #0] - 80029fe: 2b00 cmp r3, #0 - 8002a00: d106 bne.n 8002a10 - { - filllevel = hcan->Instance->RF0R & CAN_RF0R_FMP0; - 8002a02: 687b ldr r3, [r7, #4] - 8002a04: 681b ldr r3, [r3, #0] - 8002a06: 68db ldr r3, [r3, #12] - 8002a08: f003 0303 and.w r3, r3, #3 - 8002a0c: 60fb str r3, [r7, #12] - 8002a0e: e005 b.n 8002a1c - } - else /* RxFifo == CAN_RX_FIFO1 */ - { - filllevel = hcan->Instance->RF1R & CAN_RF1R_FMP1; - 8002a10: 687b ldr r3, [r7, #4] - 8002a12: 681b ldr r3, [r3, #0] - 8002a14: 691b ldr r3, [r3, #16] - 8002a16: f003 0303 and.w r3, r3, #3 - 8002a1a: 60fb str r3, [r7, #12] - } - } - - /* Return Rx FIFO fill level */ - return filllevel; - 8002a1c: 68fb ldr r3, [r7, #12] -} - 8002a1e: 4618 mov r0, r3 - 8002a20: 3714 adds r7, #20 - 8002a22: 46bd mov sp, r7 - 8002a24: f85d 7b04 ldr.w r7, [sp], #4 - 8002a28: 4770 bx lr - ... - -08002a2c <__NVIC_SetPriorityGrouping>: -{ - 8002a2c: b480 push {r7} - 8002a2e: b085 sub sp, #20 - 8002a30: af00 add r7, sp, #0 - 8002a32: 6078 str r0, [r7, #4] + 8002cdc: b480 push {r7} + 8002cde: b085 sub sp, #20 + 8002ce0: af00 add r7, sp, #0 + 8002ce2: 6078 str r0, [r7, #4] uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - 8002a34: 687b ldr r3, [r7, #4] - 8002a36: f003 0307 and.w r3, r3, #7 - 8002a3a: 60fb str r3, [r7, #12] + 8002ce4: 687b ldr r3, [r7, #4] + 8002ce6: f003 0307 and.w r3, r3, #7 + 8002cea: 60fb str r3, [r7, #12] reg_value = SCB->AIRCR; /* read old register configuration */ - 8002a3c: 4b0c ldr r3, [pc, #48] @ (8002a70 <__NVIC_SetPriorityGrouping+0x44>) - 8002a3e: 68db ldr r3, [r3, #12] - 8002a40: 60bb str r3, [r7, #8] + 8002cec: 4b0c ldr r3, [pc, #48] @ (8002d20 <__NVIC_SetPriorityGrouping+0x44>) + 8002cee: 68db ldr r3, [r3, #12] + 8002cf0: 60bb str r3, [r7, #8] reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */ - 8002a42: 68ba ldr r2, [r7, #8] - 8002a44: f64f 03ff movw r3, #63743 @ 0xf8ff - 8002a48: 4013 ands r3, r2 - 8002a4a: 60bb str r3, [r7, #8] + 8002cf2: 68ba ldr r2, [r7, #8] + 8002cf4: f64f 03ff movw r3, #63743 @ 0xf8ff + 8002cf8: 4013 ands r3, r2 + 8002cfa: 60bb str r3, [r7, #8] (PriorityGroupTmp << SCB_AIRCR_PRIGROUP_Pos) ); /* Insert write key and priority group */ - 8002a4c: 68fb ldr r3, [r7, #12] - 8002a4e: 021a lsls r2, r3, #8 + 8002cfc: 68fb ldr r3, [r7, #12] + 8002cfe: 021a lsls r2, r3, #8 ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | - 8002a50: 68bb ldr r3, [r7, #8] - 8002a52: 4313 orrs r3, r2 + 8002d00: 68bb ldr r3, [r7, #8] + 8002d02: 4313 orrs r3, r2 reg_value = (reg_value | - 8002a54: f043 63bf orr.w r3, r3, #100139008 @ 0x5f80000 - 8002a58: f443 3300 orr.w r3, r3, #131072 @ 0x20000 - 8002a5c: 60bb str r3, [r7, #8] + 8002d04: f043 63bf orr.w r3, r3, #100139008 @ 0x5f80000 + 8002d08: f443 3300 orr.w r3, r3, #131072 @ 0x20000 + 8002d0c: 60bb str r3, [r7, #8] SCB->AIRCR = reg_value; - 8002a5e: 4a04 ldr r2, [pc, #16] @ (8002a70 <__NVIC_SetPriorityGrouping+0x44>) - 8002a60: 68bb ldr r3, [r7, #8] - 8002a62: 60d3 str r3, [r2, #12] + 8002d0e: 4a04 ldr r2, [pc, #16] @ (8002d20 <__NVIC_SetPriorityGrouping+0x44>) + 8002d10: 68bb ldr r3, [r7, #8] + 8002d12: 60d3 str r3, [r2, #12] } - 8002a64: bf00 nop - 8002a66: 3714 adds r7, #20 - 8002a68: 46bd mov sp, r7 - 8002a6a: f85d 7b04 ldr.w r7, [sp], #4 - 8002a6e: 4770 bx lr - 8002a70: e000ed00 .word 0xe000ed00 + 8002d14: bf00 nop + 8002d16: 3714 adds r7, #20 + 8002d18: 46bd mov sp, r7 + 8002d1a: f85d 7b04 ldr.w r7, [sp], #4 + 8002d1e: 4770 bx lr + 8002d20: e000ed00 .word 0xe000ed00 -08002a74 <__NVIC_GetPriorityGrouping>: +08002d24 <__NVIC_GetPriorityGrouping>: { - 8002a74: b480 push {r7} - 8002a76: af00 add r7, sp, #0 + 8002d24: b480 push {r7} + 8002d26: af00 add r7, sp, #0 return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos)); - 8002a78: 4b04 ldr r3, [pc, #16] @ (8002a8c <__NVIC_GetPriorityGrouping+0x18>) - 8002a7a: 68db ldr r3, [r3, #12] - 8002a7c: 0a1b lsrs r3, r3, #8 - 8002a7e: f003 0307 and.w r3, r3, #7 + 8002d28: 4b04 ldr r3, [pc, #16] @ (8002d3c <__NVIC_GetPriorityGrouping+0x18>) + 8002d2a: 68db ldr r3, [r3, #12] + 8002d2c: 0a1b lsrs r3, r3, #8 + 8002d2e: f003 0307 and.w r3, r3, #7 } - 8002a82: 4618 mov r0, r3 - 8002a84: 46bd mov sp, r7 - 8002a86: f85d 7b04 ldr.w r7, [sp], #4 - 8002a8a: 4770 bx lr - 8002a8c: e000ed00 .word 0xe000ed00 + 8002d32: 4618 mov r0, r3 + 8002d34: 46bd mov sp, r7 + 8002d36: f85d 7b04 ldr.w r7, [sp], #4 + 8002d3a: 4770 bx lr + 8002d3c: e000ed00 .word 0xe000ed00 -08002a90 <__NVIC_EnableIRQ>: +08002d40 <__NVIC_EnableIRQ>: { - 8002a90: b480 push {r7} - 8002a92: b083 sub sp, #12 - 8002a94: af00 add r7, sp, #0 - 8002a96: 4603 mov r3, r0 - 8002a98: 71fb strb r3, [r7, #7] + 8002d40: b480 push {r7} + 8002d42: b083 sub sp, #12 + 8002d44: af00 add r7, sp, #0 + 8002d46: 4603 mov r3, r0 + 8002d48: 71fb strb r3, [r7, #7] if ((int32_t)(IRQn) >= 0) - 8002a9a: f997 3007 ldrsb.w r3, [r7, #7] - 8002a9e: 2b00 cmp r3, #0 - 8002aa0: db0b blt.n 8002aba <__NVIC_EnableIRQ+0x2a> + 8002d4a: f997 3007 ldrsb.w r3, [r7, #7] + 8002d4e: 2b00 cmp r3, #0 + 8002d50: db0b blt.n 8002d6a <__NVIC_EnableIRQ+0x2a> NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - 8002aa2: 79fb ldrb r3, [r7, #7] - 8002aa4: f003 021f and.w r2, r3, #31 - 8002aa8: 4907 ldr r1, [pc, #28] @ (8002ac8 <__NVIC_EnableIRQ+0x38>) - 8002aaa: f997 3007 ldrsb.w r3, [r7, #7] - 8002aae: 095b lsrs r3, r3, #5 - 8002ab0: 2001 movs r0, #1 - 8002ab2: fa00 f202 lsl.w r2, r0, r2 - 8002ab6: f841 2023 str.w r2, [r1, r3, lsl #2] + 8002d52: 79fb ldrb r3, [r7, #7] + 8002d54: f003 021f and.w r2, r3, #31 + 8002d58: 4907 ldr r1, [pc, #28] @ (8002d78 <__NVIC_EnableIRQ+0x38>) + 8002d5a: f997 3007 ldrsb.w r3, [r7, #7] + 8002d5e: 095b lsrs r3, r3, #5 + 8002d60: 2001 movs r0, #1 + 8002d62: fa00 f202 lsl.w r2, r0, r2 + 8002d66: f841 2023 str.w r2, [r1, r3, lsl #2] } - 8002aba: bf00 nop - 8002abc: 370c adds r7, #12 - 8002abe: 46bd mov sp, r7 - 8002ac0: f85d 7b04 ldr.w r7, [sp], #4 - 8002ac4: 4770 bx lr - 8002ac6: bf00 nop - 8002ac8: e000e100 .word 0xe000e100 + 8002d6a: bf00 nop + 8002d6c: 370c adds r7, #12 + 8002d6e: 46bd mov sp, r7 + 8002d70: f85d 7b04 ldr.w r7, [sp], #4 + 8002d74: 4770 bx lr + 8002d76: bf00 nop + 8002d78: e000e100 .word 0xe000e100 -08002acc <__NVIC_SetPriority>: +08002d7c <__NVIC_SetPriority>: { - 8002acc: b480 push {r7} - 8002ace: b083 sub sp, #12 - 8002ad0: af00 add r7, sp, #0 - 8002ad2: 4603 mov r3, r0 - 8002ad4: 6039 str r1, [r7, #0] - 8002ad6: 71fb strb r3, [r7, #7] + 8002d7c: b480 push {r7} + 8002d7e: b083 sub sp, #12 + 8002d80: af00 add r7, sp, #0 + 8002d82: 4603 mov r3, r0 + 8002d84: 6039 str r1, [r7, #0] + 8002d86: 71fb strb r3, [r7, #7] if ((int32_t)(IRQn) >= 0) - 8002ad8: f997 3007 ldrsb.w r3, [r7, #7] - 8002adc: 2b00 cmp r3, #0 - 8002ade: db0a blt.n 8002af6 <__NVIC_SetPriority+0x2a> + 8002d88: f997 3007 ldrsb.w r3, [r7, #7] + 8002d8c: 2b00 cmp r3, #0 + 8002d8e: db0a blt.n 8002da6 <__NVIC_SetPriority+0x2a> NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); - 8002ae0: 683b ldr r3, [r7, #0] - 8002ae2: b2da uxtb r2, r3 - 8002ae4: 490c ldr r1, [pc, #48] @ (8002b18 <__NVIC_SetPriority+0x4c>) - 8002ae6: f997 3007 ldrsb.w r3, [r7, #7] - 8002aea: 0112 lsls r2, r2, #4 - 8002aec: b2d2 uxtb r2, r2 - 8002aee: 440b add r3, r1 - 8002af0: f883 2300 strb.w r2, [r3, #768] @ 0x300 + 8002d90: 683b ldr r3, [r7, #0] + 8002d92: b2da uxtb r2, r3 + 8002d94: 490c ldr r1, [pc, #48] @ (8002dc8 <__NVIC_SetPriority+0x4c>) + 8002d96: f997 3007 ldrsb.w r3, [r7, #7] + 8002d9a: 0112 lsls r2, r2, #4 + 8002d9c: b2d2 uxtb r2, r2 + 8002d9e: 440b add r3, r1 + 8002da0: f883 2300 strb.w r2, [r3, #768] @ 0x300 } - 8002af4: e00a b.n 8002b0c <__NVIC_SetPriority+0x40> + 8002da4: e00a b.n 8002dbc <__NVIC_SetPriority+0x40> SCB->SHP[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); - 8002af6: 683b ldr r3, [r7, #0] - 8002af8: b2da uxtb r2, r3 - 8002afa: 4908 ldr r1, [pc, #32] @ (8002b1c <__NVIC_SetPriority+0x50>) - 8002afc: 79fb ldrb r3, [r7, #7] - 8002afe: f003 030f and.w r3, r3, #15 - 8002b02: 3b04 subs r3, #4 - 8002b04: 0112 lsls r2, r2, #4 - 8002b06: b2d2 uxtb r2, r2 - 8002b08: 440b add r3, r1 - 8002b0a: 761a strb r2, [r3, #24] + 8002da6: 683b ldr r3, [r7, #0] + 8002da8: b2da uxtb r2, r3 + 8002daa: 4908 ldr r1, [pc, #32] @ (8002dcc <__NVIC_SetPriority+0x50>) + 8002dac: 79fb ldrb r3, [r7, #7] + 8002dae: f003 030f and.w r3, r3, #15 + 8002db2: 3b04 subs r3, #4 + 8002db4: 0112 lsls r2, r2, #4 + 8002db6: b2d2 uxtb r2, r2 + 8002db8: 440b add r3, r1 + 8002dba: 761a strb r2, [r3, #24] } - 8002b0c: bf00 nop - 8002b0e: 370c adds r7, #12 - 8002b10: 46bd mov sp, r7 - 8002b12: f85d 7b04 ldr.w r7, [sp], #4 - 8002b16: 4770 bx lr - 8002b18: e000e100 .word 0xe000e100 - 8002b1c: e000ed00 .word 0xe000ed00 + 8002dbc: bf00 nop + 8002dbe: 370c adds r7, #12 + 8002dc0: 46bd mov sp, r7 + 8002dc2: f85d 7b04 ldr.w r7, [sp], #4 + 8002dc6: 4770 bx lr + 8002dc8: e000e100 .word 0xe000e100 + 8002dcc: e000ed00 .word 0xe000ed00 -08002b20 : +08002dd0 : { - 8002b20: b480 push {r7} - 8002b22: b089 sub sp, #36 @ 0x24 - 8002b24: af00 add r7, sp, #0 - 8002b26: 60f8 str r0, [r7, #12] - 8002b28: 60b9 str r1, [r7, #8] - 8002b2a: 607a str r2, [r7, #4] + 8002dd0: b480 push {r7} + 8002dd2: b089 sub sp, #36 @ 0x24 + 8002dd4: af00 add r7, sp, #0 + 8002dd6: 60f8 str r0, [r7, #12] + 8002dd8: 60b9 str r1, [r7, #8] + 8002dda: 607a str r2, [r7, #4] uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - 8002b2c: 68fb ldr r3, [r7, #12] - 8002b2e: f003 0307 and.w r3, r3, #7 - 8002b32: 61fb str r3, [r7, #28] + 8002ddc: 68fb ldr r3, [r7, #12] + 8002dde: f003 0307 and.w r3, r3, #7 + 8002de2: 61fb str r3, [r7, #28] PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); - 8002b34: 69fb ldr r3, [r7, #28] - 8002b36: f1c3 0307 rsb r3, r3, #7 - 8002b3a: 2b04 cmp r3, #4 - 8002b3c: bf28 it cs - 8002b3e: 2304 movcs r3, #4 - 8002b40: 61bb str r3, [r7, #24] + 8002de4: 69fb ldr r3, [r7, #28] + 8002de6: f1c3 0307 rsb r3, r3, #7 + 8002dea: 2b04 cmp r3, #4 + 8002dec: bf28 it cs + 8002dee: 2304 movcs r3, #4 + 8002df0: 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)); - 8002b42: 69fb ldr r3, [r7, #28] - 8002b44: 3304 adds r3, #4 - 8002b46: 2b06 cmp r3, #6 - 8002b48: d902 bls.n 8002b50 - 8002b4a: 69fb ldr r3, [r7, #28] - 8002b4c: 3b03 subs r3, #3 - 8002b4e: e000 b.n 8002b52 - 8002b50: 2300 movs r3, #0 - 8002b52: 617b str r3, [r7, #20] + 8002df2: 69fb ldr r3, [r7, #28] + 8002df4: 3304 adds r3, #4 + 8002df6: 2b06 cmp r3, #6 + 8002df8: d902 bls.n 8002e00 + 8002dfa: 69fb ldr r3, [r7, #28] + 8002dfc: 3b03 subs r3, #3 + 8002dfe: e000 b.n 8002e02 + 8002e00: 2300 movs r3, #0 + 8002e02: 617b str r3, [r7, #20] ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | - 8002b54: f04f 32ff mov.w r2, #4294967295 - 8002b58: 69bb ldr r3, [r7, #24] - 8002b5a: fa02 f303 lsl.w r3, r2, r3 - 8002b5e: 43da mvns r2, r3 - 8002b60: 68bb ldr r3, [r7, #8] - 8002b62: 401a ands r2, r3 - 8002b64: 697b ldr r3, [r7, #20] - 8002b66: 409a lsls r2, r3 + 8002e04: f04f 32ff mov.w r2, #4294967295 + 8002e08: 69bb ldr r3, [r7, #24] + 8002e0a: fa02 f303 lsl.w r3, r2, r3 + 8002e0e: 43da mvns r2, r3 + 8002e10: 68bb ldr r3, [r7, #8] + 8002e12: 401a ands r2, r3 + 8002e14: 697b ldr r3, [r7, #20] + 8002e16: 409a lsls r2, r3 ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL))) - 8002b68: f04f 31ff mov.w r1, #4294967295 - 8002b6c: 697b ldr r3, [r7, #20] - 8002b6e: fa01 f303 lsl.w r3, r1, r3 - 8002b72: 43d9 mvns r1, r3 - 8002b74: 687b ldr r3, [r7, #4] - 8002b76: 400b ands r3, r1 + 8002e18: f04f 31ff mov.w r1, #4294967295 + 8002e1c: 697b ldr r3, [r7, #20] + 8002e1e: fa01 f303 lsl.w r3, r1, r3 + 8002e22: 43d9 mvns r1, r3 + 8002e24: 687b ldr r3, [r7, #4] + 8002e26: 400b ands r3, r1 ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | - 8002b78: 4313 orrs r3, r2 + 8002e28: 4313 orrs r3, r2 } - 8002b7a: 4618 mov r0, r3 - 8002b7c: 3724 adds r7, #36 @ 0x24 - 8002b7e: 46bd mov sp, r7 - 8002b80: f85d 7b04 ldr.w r7, [sp], #4 - 8002b84: 4770 bx lr + 8002e2a: 4618 mov r0, r3 + 8002e2c: 3724 adds r7, #36 @ 0x24 + 8002e2e: 46bd mov sp, r7 + 8002e30: f85d 7b04 ldr.w r7, [sp], #4 + 8002e34: 4770 bx lr -08002b86 : +08002e36 : * @note When the NVIC_PriorityGroup_0 is selected, IRQ preemption is no more possible. * The pending IRQ priority will be managed only by the subpriority. * @retval None */ void HAL_NVIC_SetPriorityGrouping(uint32_t PriorityGroup) { - 8002b86: b580 push {r7, lr} - 8002b88: b082 sub sp, #8 - 8002b8a: af00 add r7, sp, #0 - 8002b8c: 6078 str r0, [r7, #4] + 8002e36: b580 push {r7, lr} + 8002e38: b082 sub sp, #8 + 8002e3a: af00 add r7, sp, #0 + 8002e3c: 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); - 8002b8e: 6878 ldr r0, [r7, #4] - 8002b90: f7ff ff4c bl 8002a2c <__NVIC_SetPriorityGrouping> + 8002e3e: 6878 ldr r0, [r7, #4] + 8002e40: f7ff ff4c bl 8002cdc <__NVIC_SetPriorityGrouping> } - 8002b94: bf00 nop - 8002b96: 3708 adds r7, #8 - 8002b98: 46bd mov sp, r7 - 8002b9a: bd80 pop {r7, pc} + 8002e44: bf00 nop + 8002e46: 3708 adds r7, #8 + 8002e48: 46bd mov sp, r7 + 8002e4a: bd80 pop {r7, pc} -08002b9c : +08002e4c : * 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) { - 8002b9c: b580 push {r7, lr} - 8002b9e: b086 sub sp, #24 - 8002ba0: af00 add r7, sp, #0 - 8002ba2: 4603 mov r3, r0 - 8002ba4: 60b9 str r1, [r7, #8] - 8002ba6: 607a str r2, [r7, #4] - 8002ba8: 73fb strb r3, [r7, #15] + 8002e4c: b580 push {r7, lr} + 8002e4e: b086 sub sp, #24 + 8002e50: af00 add r7, sp, #0 + 8002e52: 4603 mov r3, r0 + 8002e54: 60b9 str r1, [r7, #8] + 8002e56: 607a str r2, [r7, #4] + 8002e58: 73fb strb r3, [r7, #15] uint32_t prioritygroup = 0x00U; - 8002baa: 2300 movs r3, #0 - 8002bac: 617b str r3, [r7, #20] + 8002e5a: 2300 movs r3, #0 + 8002e5c: 617b str r3, [r7, #20] /* Check the parameters */ assert_param(IS_NVIC_SUB_PRIORITY(SubPriority)); assert_param(IS_NVIC_PREEMPTION_PRIORITY(PreemptPriority)); prioritygroup = NVIC_GetPriorityGrouping(); - 8002bae: f7ff ff61 bl 8002a74 <__NVIC_GetPriorityGrouping> - 8002bb2: 6178 str r0, [r7, #20] + 8002e5e: f7ff ff61 bl 8002d24 <__NVIC_GetPriorityGrouping> + 8002e62: 6178 str r0, [r7, #20] NVIC_SetPriority(IRQn, NVIC_EncodePriority(prioritygroup, PreemptPriority, SubPriority)); - 8002bb4: 687a ldr r2, [r7, #4] - 8002bb6: 68b9 ldr r1, [r7, #8] - 8002bb8: 6978 ldr r0, [r7, #20] - 8002bba: f7ff ffb1 bl 8002b20 - 8002bbe: 4602 mov r2, r0 - 8002bc0: f997 300f ldrsb.w r3, [r7, #15] - 8002bc4: 4611 mov r1, r2 - 8002bc6: 4618 mov r0, r3 - 8002bc8: f7ff ff80 bl 8002acc <__NVIC_SetPriority> + 8002e64: 687a ldr r2, [r7, #4] + 8002e66: 68b9 ldr r1, [r7, #8] + 8002e68: 6978 ldr r0, [r7, #20] + 8002e6a: f7ff ffb1 bl 8002dd0 + 8002e6e: 4602 mov r2, r0 + 8002e70: f997 300f ldrsb.w r3, [r7, #15] + 8002e74: 4611 mov r1, r2 + 8002e76: 4618 mov r0, r3 + 8002e78: f7ff ff80 bl 8002d7c <__NVIC_SetPriority> } - 8002bcc: bf00 nop - 8002bce: 3718 adds r7, #24 - 8002bd0: 46bd mov sp, r7 - 8002bd2: bd80 pop {r7, pc} + 8002e7c: bf00 nop + 8002e7e: 3718 adds r7, #24 + 8002e80: 46bd mov sp, r7 + 8002e82: bd80 pop {r7, pc} -08002bd4 : +08002e84 : * 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 (stm32f4xxxx.h)) * @retval None */ void HAL_NVIC_EnableIRQ(IRQn_Type IRQn) { - 8002bd4: b580 push {r7, lr} - 8002bd6: b082 sub sp, #8 - 8002bd8: af00 add r7, sp, #0 - 8002bda: 4603 mov r3, r0 - 8002bdc: 71fb strb r3, [r7, #7] + 8002e84: b580 push {r7, lr} + 8002e86: b082 sub sp, #8 + 8002e88: af00 add r7, sp, #0 + 8002e8a: 4603 mov r3, r0 + 8002e8c: 71fb strb r3, [r7, #7] /* Check the parameters */ assert_param(IS_NVIC_DEVICE_IRQ(IRQn)); /* Enable interrupt */ NVIC_EnableIRQ(IRQn); - 8002bde: f997 3007 ldrsb.w r3, [r7, #7] - 8002be2: 4618 mov r0, r3 - 8002be4: f7ff ff54 bl 8002a90 <__NVIC_EnableIRQ> + 8002e8e: f997 3007 ldrsb.w r3, [r7, #7] + 8002e92: 4618 mov r0, r3 + 8002e94: f7ff ff54 bl 8002d40 <__NVIC_EnableIRQ> } - 8002be8: bf00 nop - 8002bea: 3708 adds r7, #8 - 8002bec: 46bd mov sp, r7 - 8002bee: bd80 pop {r7, pc} + 8002e98: bf00 nop + 8002e9a: 3708 adds r7, #8 + 8002e9c: 46bd mov sp, r7 + 8002e9e: bd80 pop {r7, pc} -08002bf0 : +08002ea0 : * @param hdma pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA Stream. * @retval HAL status */ HAL_StatusTypeDef HAL_DMA_Abort_IT(DMA_HandleTypeDef *hdma) { - 8002bf0: b480 push {r7} - 8002bf2: b083 sub sp, #12 - 8002bf4: af00 add r7, sp, #0 - 8002bf6: 6078 str r0, [r7, #4] + 8002ea0: b480 push {r7} + 8002ea2: b083 sub sp, #12 + 8002ea4: af00 add r7, sp, #0 + 8002ea6: 6078 str r0, [r7, #4] if(hdma->State != HAL_DMA_STATE_BUSY) - 8002bf8: 687b ldr r3, [r7, #4] - 8002bfa: f893 3035 ldrb.w r3, [r3, #53] @ 0x35 - 8002bfe: b2db uxtb r3, r3 - 8002c00: 2b02 cmp r3, #2 - 8002c02: d004 beq.n 8002c0e + 8002ea8: 687b ldr r3, [r7, #4] + 8002eaa: f893 3035 ldrb.w r3, [r3, #53] @ 0x35 + 8002eae: b2db uxtb r3, r3 + 8002eb0: 2b02 cmp r3, #2 + 8002eb2: d004 beq.n 8002ebe { hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER; - 8002c04: 687b ldr r3, [r7, #4] - 8002c06: 2280 movs r2, #128 @ 0x80 - 8002c08: 655a str r2, [r3, #84] @ 0x54 + 8002eb4: 687b ldr r3, [r7, #4] + 8002eb6: 2280 movs r2, #128 @ 0x80 + 8002eb8: 655a str r2, [r3, #84] @ 0x54 return HAL_ERROR; - 8002c0a: 2301 movs r3, #1 - 8002c0c: e00c b.n 8002c28 + 8002eba: 2301 movs r3, #1 + 8002ebc: e00c b.n 8002ed8 } else { /* Set Abort State */ hdma->State = HAL_DMA_STATE_ABORT; - 8002c0e: 687b ldr r3, [r7, #4] - 8002c10: 2205 movs r2, #5 - 8002c12: f883 2035 strb.w r2, [r3, #53] @ 0x35 + 8002ebe: 687b ldr r3, [r7, #4] + 8002ec0: 2205 movs r2, #5 + 8002ec2: f883 2035 strb.w r2, [r3, #53] @ 0x35 /* Disable the stream */ __HAL_DMA_DISABLE(hdma); - 8002c16: 687b ldr r3, [r7, #4] - 8002c18: 681b ldr r3, [r3, #0] - 8002c1a: 681a ldr r2, [r3, #0] - 8002c1c: 687b ldr r3, [r7, #4] - 8002c1e: 681b ldr r3, [r3, #0] - 8002c20: f022 0201 bic.w r2, r2, #1 - 8002c24: 601a str r2, [r3, #0] + 8002ec6: 687b ldr r3, [r7, #4] + 8002ec8: 681b ldr r3, [r3, #0] + 8002eca: 681a ldr r2, [r3, #0] + 8002ecc: 687b ldr r3, [r7, #4] + 8002ece: 681b ldr r3, [r3, #0] + 8002ed0: f022 0201 bic.w r2, r2, #1 + 8002ed4: 601a str r2, [r3, #0] } return HAL_OK; - 8002c26: 2300 movs r3, #0 + 8002ed6: 2300 movs r3, #0 } - 8002c28: 4618 mov r0, r3 - 8002c2a: 370c adds r7, #12 - 8002c2c: 46bd mov sp, r7 - 8002c2e: f85d 7b04 ldr.w r7, [sp], #4 - 8002c32: 4770 bx lr + 8002ed8: 4618 mov r0, r3 + 8002eda: 370c adds r7, #12 + 8002edc: 46bd mov sp, r7 + 8002ede: f85d 7b04 ldr.w r7, [sp], #4 + 8002ee2: 4770 bx lr -08002c34 : +08002ee4 : * @param Data specifies the data to be programmed * * @retval HAL_StatusTypeDef HAL Status */ HAL_StatusTypeDef HAL_FLASH_Program(uint32_t TypeProgram, uint32_t Address, uint64_t Data) { - 8002c34: b580 push {r7, lr} - 8002c36: b086 sub sp, #24 - 8002c38: af00 add r7, sp, #0 - 8002c3a: 60f8 str r0, [r7, #12] - 8002c3c: 60b9 str r1, [r7, #8] - 8002c3e: e9c7 2300 strd r2, r3, [r7] + 8002ee4: b580 push {r7, lr} + 8002ee6: b086 sub sp, #24 + 8002ee8: af00 add r7, sp, #0 + 8002eea: 60f8 str r0, [r7, #12] + 8002eec: 60b9 str r1, [r7, #8] + 8002eee: e9c7 2300 strd r2, r3, [r7] HAL_StatusTypeDef status = HAL_ERROR; - 8002c42: 2301 movs r3, #1 - 8002c44: 75fb strb r3, [r7, #23] + 8002ef2: 2301 movs r3, #1 + 8002ef4: 75fb strb r3, [r7, #23] /* Process Locked */ __HAL_LOCK(&pFlash); - 8002c46: 4b23 ldr r3, [pc, #140] @ (8002cd4 ) - 8002c48: 7e1b ldrb r3, [r3, #24] - 8002c4a: 2b01 cmp r3, #1 - 8002c4c: d101 bne.n 8002c52 - 8002c4e: 2302 movs r3, #2 - 8002c50: e03b b.n 8002cca - 8002c52: 4b20 ldr r3, [pc, #128] @ (8002cd4 ) - 8002c54: 2201 movs r2, #1 - 8002c56: 761a strb r2, [r3, #24] + 8002ef6: 4b23 ldr r3, [pc, #140] @ (8002f84 ) + 8002ef8: 7e1b ldrb r3, [r3, #24] + 8002efa: 2b01 cmp r3, #1 + 8002efc: d101 bne.n 8002f02 + 8002efe: 2302 movs r3, #2 + 8002f00: e03b b.n 8002f7a + 8002f02: 4b20 ldr r3, [pc, #128] @ (8002f84 ) + 8002f04: 2201 movs r2, #1 + 8002f06: 761a strb r2, [r3, #24] /* Check the parameters */ assert_param(IS_FLASH_TYPEPROGRAM(TypeProgram)); /* Wait for last operation to be completed */ status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE); - 8002c58: f24c 3050 movw r0, #50000 @ 0xc350 - 8002c5c: f000 f83e bl 8002cdc - 8002c60: 4603 mov r3, r0 - 8002c62: 75fb strb r3, [r7, #23] + 8002f08: f24c 3050 movw r0, #50000 @ 0xc350 + 8002f0c: f000 f83e bl 8002f8c + 8002f10: 4603 mov r3, r0 + 8002f12: 75fb strb r3, [r7, #23] if(status == HAL_OK) - 8002c64: 7dfb ldrb r3, [r7, #23] - 8002c66: 2b00 cmp r3, #0 - 8002c68: d12b bne.n 8002cc2 + 8002f14: 7dfb ldrb r3, [r7, #23] + 8002f16: 2b00 cmp r3, #0 + 8002f18: d12b bne.n 8002f72 { if(TypeProgram == FLASH_TYPEPROGRAM_BYTE) - 8002c6a: 68fb ldr r3, [r7, #12] - 8002c6c: 2b00 cmp r3, #0 - 8002c6e: d105 bne.n 8002c7c + 8002f1a: 68fb ldr r3, [r7, #12] + 8002f1c: 2b00 cmp r3, #0 + 8002f1e: d105 bne.n 8002f2c { /*Program byte (8-bit) at a specified address.*/ FLASH_Program_Byte(Address, (uint8_t) Data); - 8002c70: 783b ldrb r3, [r7, #0] - 8002c72: 4619 mov r1, r3 - 8002c74: 68b8 ldr r0, [r7, #8] - 8002c76: f000 f8e9 bl 8002e4c - 8002c7a: e016 b.n 8002caa + 8002f20: 783b ldrb r3, [r7, #0] + 8002f22: 4619 mov r1, r3 + 8002f24: 68b8 ldr r0, [r7, #8] + 8002f26: f000 f8e9 bl 80030fc + 8002f2a: e016 b.n 8002f5a } else if(TypeProgram == FLASH_TYPEPROGRAM_HALFWORD) - 8002c7c: 68fb ldr r3, [r7, #12] - 8002c7e: 2b01 cmp r3, #1 - 8002c80: d105 bne.n 8002c8e + 8002f2c: 68fb ldr r3, [r7, #12] + 8002f2e: 2b01 cmp r3, #1 + 8002f30: d105 bne.n 8002f3e { /*Program halfword (16-bit) at a specified address.*/ FLASH_Program_HalfWord(Address, (uint16_t) Data); - 8002c82: 883b ldrh r3, [r7, #0] - 8002c84: 4619 mov r1, r3 - 8002c86: 68b8 ldr r0, [r7, #8] - 8002c88: f000 f8bc bl 8002e04 - 8002c8c: e00d b.n 8002caa + 8002f32: 883b ldrh r3, [r7, #0] + 8002f34: 4619 mov r1, r3 + 8002f36: 68b8 ldr r0, [r7, #8] + 8002f38: f000 f8bc bl 80030b4 + 8002f3c: e00d b.n 8002f5a } else if(TypeProgram == FLASH_TYPEPROGRAM_WORD) - 8002c8e: 68fb ldr r3, [r7, #12] - 8002c90: 2b02 cmp r3, #2 - 8002c92: d105 bne.n 8002ca0 + 8002f3e: 68fb ldr r3, [r7, #12] + 8002f40: 2b02 cmp r3, #2 + 8002f42: d105 bne.n 8002f50 { /*Program word (32-bit) at a specified address.*/ FLASH_Program_Word(Address, (uint32_t) Data); - 8002c94: 683b ldr r3, [r7, #0] - 8002c96: 4619 mov r1, r3 - 8002c98: 68b8 ldr r0, [r7, #8] - 8002c9a: f000 f891 bl 8002dc0 - 8002c9e: e004 b.n 8002caa + 8002f44: 683b ldr r3, [r7, #0] + 8002f46: 4619 mov r1, r3 + 8002f48: 68b8 ldr r0, [r7, #8] + 8002f4a: f000 f891 bl 8003070 + 8002f4e: e004 b.n 8002f5a } else { /*Program double word (64-bit) at a specified address.*/ FLASH_Program_DoubleWord(Address, Data); - 8002ca0: e9d7 2300 ldrd r2, r3, [r7] - 8002ca4: 68b8 ldr r0, [r7, #8] - 8002ca6: f000 f859 bl 8002d5c + 8002f50: e9d7 2300 ldrd r2, r3, [r7] + 8002f54: 68b8 ldr r0, [r7, #8] + 8002f56: f000 f859 bl 800300c } /* Wait for last operation to be completed */ status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE); - 8002caa: f24c 3050 movw r0, #50000 @ 0xc350 - 8002cae: f000 f815 bl 8002cdc - 8002cb2: 4603 mov r3, r0 - 8002cb4: 75fb strb r3, [r7, #23] + 8002f5a: f24c 3050 movw r0, #50000 @ 0xc350 + 8002f5e: f000 f815 bl 8002f8c + 8002f62: 4603 mov r3, r0 + 8002f64: 75fb strb r3, [r7, #23] /* If the program operation is completed, disable the PG Bit */ FLASH->CR &= (~FLASH_CR_PG); - 8002cb6: 4b08 ldr r3, [pc, #32] @ (8002cd8 ) - 8002cb8: 691b ldr r3, [r3, #16] - 8002cba: 4a07 ldr r2, [pc, #28] @ (8002cd8 ) - 8002cbc: f023 0301 bic.w r3, r3, #1 - 8002cc0: 6113 str r3, [r2, #16] + 8002f66: 4b08 ldr r3, [pc, #32] @ (8002f88 ) + 8002f68: 691b ldr r3, [r3, #16] + 8002f6a: 4a07 ldr r2, [pc, #28] @ (8002f88 ) + 8002f6c: f023 0301 bic.w r3, r3, #1 + 8002f70: 6113 str r3, [r2, #16] } /* Process Unlocked */ __HAL_UNLOCK(&pFlash); - 8002cc2: 4b04 ldr r3, [pc, #16] @ (8002cd4 ) - 8002cc4: 2200 movs r2, #0 - 8002cc6: 761a strb r2, [r3, #24] + 8002f72: 4b04 ldr r3, [pc, #16] @ (8002f84 ) + 8002f74: 2200 movs r2, #0 + 8002f76: 761a strb r2, [r3, #24] return status; - 8002cc8: 7dfb ldrb r3, [r7, #23] + 8002f78: 7dfb ldrb r3, [r7, #23] } - 8002cca: 4618 mov r0, r3 - 8002ccc: 3718 adds r7, #24 - 8002cce: 46bd mov sp, r7 - 8002cd0: bd80 pop {r7, pc} - 8002cd2: bf00 nop - 8002cd4: 200002ac .word 0x200002ac - 8002cd8: 40023c00 .word 0x40023c00 + 8002f7a: 4618 mov r0, r3 + 8002f7c: 3718 adds r7, #24 + 8002f7e: 46bd mov sp, r7 + 8002f80: bd80 pop {r7, pc} + 8002f82: bf00 nop + 8002f84: 200002a8 .word 0x200002a8 + 8002f88: 40023c00 .word 0x40023c00 -08002cdc : +08002f8c : * @brief Wait for a FLASH operation to complete. * @param Timeout maximum flash operationtimeout * @retval HAL Status */ HAL_StatusTypeDef FLASH_WaitForLastOperation(uint32_t Timeout) { - 8002cdc: b580 push {r7, lr} - 8002cde: b084 sub sp, #16 - 8002ce0: af00 add r7, sp, #0 - 8002ce2: 6078 str r0, [r7, #4] + 8002f8c: b580 push {r7, lr} + 8002f8e: b084 sub sp, #16 + 8002f90: af00 add r7, sp, #0 + 8002f92: 6078 str r0, [r7, #4] uint32_t tickstart = 0U; - 8002ce4: 2300 movs r3, #0 - 8002ce6: 60fb str r3, [r7, #12] + 8002f94: 2300 movs r3, #0 + 8002f96: 60fb str r3, [r7, #12] /* Clear Error Code */ pFlash.ErrorCode = HAL_FLASH_ERROR_NONE; - 8002ce8: 4b1a ldr r3, [pc, #104] @ (8002d54 ) - 8002cea: 2200 movs r2, #0 - 8002cec: 61da str r2, [r3, #28] + 8002f98: 4b1a ldr r3, [pc, #104] @ (8003004 ) + 8002f9a: 2200 movs r2, #0 + 8002f9c: 61da str r2, [r3, #28] /* Wait for the FLASH operation to complete by polling on BUSY flag to be reset. Even if the FLASH operation fails, the BUSY flag will be reset and an error flag will be set */ /* Get tick */ tickstart = HAL_GetTick(); - 8002cee: f7fe ffad bl 8001c4c - 8002cf2: 60f8 str r0, [r7, #12] + 8002f9e: f7fe feb1 bl 8001d04 + 8002fa2: 60f8 str r0, [r7, #12] while(__HAL_FLASH_GET_FLAG(FLASH_FLAG_BSY) != RESET) - 8002cf4: e010 b.n 8002d18 + 8002fa4: e010 b.n 8002fc8 { if(Timeout != HAL_MAX_DELAY) - 8002cf6: 687b ldr r3, [r7, #4] - 8002cf8: f1b3 3fff cmp.w r3, #4294967295 - 8002cfc: d00c beq.n 8002d18 + 8002fa6: 687b ldr r3, [r7, #4] + 8002fa8: f1b3 3fff cmp.w r3, #4294967295 + 8002fac: d00c beq.n 8002fc8 { if((Timeout == 0U)||((HAL_GetTick() - tickstart ) > Timeout)) - 8002cfe: 687b ldr r3, [r7, #4] - 8002d00: 2b00 cmp r3, #0 - 8002d02: d007 beq.n 8002d14 - 8002d04: f7fe ffa2 bl 8001c4c - 8002d08: 4602 mov r2, r0 - 8002d0a: 68fb ldr r3, [r7, #12] - 8002d0c: 1ad3 subs r3, r2, r3 - 8002d0e: 687a ldr r2, [r7, #4] - 8002d10: 429a cmp r2, r3 - 8002d12: d201 bcs.n 8002d18 + 8002fae: 687b ldr r3, [r7, #4] + 8002fb0: 2b00 cmp r3, #0 + 8002fb2: d007 beq.n 8002fc4 + 8002fb4: f7fe fea6 bl 8001d04 + 8002fb8: 4602 mov r2, r0 + 8002fba: 68fb ldr r3, [r7, #12] + 8002fbc: 1ad3 subs r3, r2, r3 + 8002fbe: 687a ldr r2, [r7, #4] + 8002fc0: 429a cmp r2, r3 + 8002fc2: d201 bcs.n 8002fc8 { return HAL_TIMEOUT; - 8002d14: 2303 movs r3, #3 - 8002d16: e019 b.n 8002d4c + 8002fc4: 2303 movs r3, #3 + 8002fc6: e019 b.n 8002ffc while(__HAL_FLASH_GET_FLAG(FLASH_FLAG_BSY) != RESET) - 8002d18: 4b0f ldr r3, [pc, #60] @ (8002d58 ) - 8002d1a: 68db ldr r3, [r3, #12] - 8002d1c: f403 3380 and.w r3, r3, #65536 @ 0x10000 - 8002d20: 2b00 cmp r3, #0 - 8002d22: d1e8 bne.n 8002cf6 + 8002fc8: 4b0f ldr r3, [pc, #60] @ (8003008 ) + 8002fca: 68db ldr r3, [r3, #12] + 8002fcc: f403 3380 and.w r3, r3, #65536 @ 0x10000 + 8002fd0: 2b00 cmp r3, #0 + 8002fd2: d1e8 bne.n 8002fa6 } } } /* Check FLASH End of Operation flag */ if (__HAL_FLASH_GET_FLAG(FLASH_FLAG_EOP) != RESET) - 8002d24: 4b0c ldr r3, [pc, #48] @ (8002d58 ) - 8002d26: 68db ldr r3, [r3, #12] - 8002d28: f003 0301 and.w r3, r3, #1 - 8002d2c: 2b00 cmp r3, #0 - 8002d2e: d002 beq.n 8002d36 + 8002fd4: 4b0c ldr r3, [pc, #48] @ (8003008 ) + 8002fd6: 68db ldr r3, [r3, #12] + 8002fd8: f003 0301 and.w r3, r3, #1 + 8002fdc: 2b00 cmp r3, #0 + 8002fde: d002 beq.n 8002fe6 { /* Clear FLASH End of Operation pending bit */ __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_EOP); - 8002d30: 4b09 ldr r3, [pc, #36] @ (8002d58 ) - 8002d32: 2201 movs r2, #1 - 8002d34: 60da str r2, [r3, #12] + 8002fe0: 4b09 ldr r3, [pc, #36] @ (8003008 ) + 8002fe2: 2201 movs r2, #1 + 8002fe4: 60da str r2, [r3, #12] } #if defined(FLASH_SR_RDERR) if(__HAL_FLASH_GET_FLAG((FLASH_FLAG_OPERR | FLASH_FLAG_WRPERR | FLASH_FLAG_PGAERR | \ - 8002d36: 4b08 ldr r3, [pc, #32] @ (8002d58 ) - 8002d38: 68db ldr r3, [r3, #12] - 8002d3a: f403 73f9 and.w r3, r3, #498 @ 0x1f2 - 8002d3e: 2b00 cmp r3, #0 - 8002d40: d003 beq.n 8002d4a + 8002fe6: 4b08 ldr r3, [pc, #32] @ (8003008 ) + 8002fe8: 68db ldr r3, [r3, #12] + 8002fea: f403 73f9 and.w r3, r3, #498 @ 0x1f2 + 8002fee: 2b00 cmp r3, #0 + 8002ff0: d003 beq.n 8002ffa if(__HAL_FLASH_GET_FLAG((FLASH_FLAG_OPERR | FLASH_FLAG_WRPERR | FLASH_FLAG_PGAERR | \ FLASH_FLAG_PGPERR | FLASH_FLAG_PGSERR)) != RESET) #endif /* FLASH_SR_RDERR */ { /*Save the error code*/ FLASH_SetErrorCode(); - 8002d42: f000 f8a5 bl 8002e90 + 8002ff2: f000 f8a5 bl 8003140 return HAL_ERROR; - 8002d46: 2301 movs r3, #1 - 8002d48: e000 b.n 8002d4c + 8002ff6: 2301 movs r3, #1 + 8002ff8: e000 b.n 8002ffc } /* If there is no error flag set */ return HAL_OK; - 8002d4a: 2300 movs r3, #0 + 8002ffa: 2300 movs r3, #0 } - 8002d4c: 4618 mov r0, r3 - 8002d4e: 3710 adds r7, #16 - 8002d50: 46bd mov sp, r7 - 8002d52: bd80 pop {r7, pc} - 8002d54: 200002ac .word 0x200002ac - 8002d58: 40023c00 .word 0x40023c00 + 8002ffc: 4618 mov r0, r3 + 8002ffe: 3710 adds r7, #16 + 8003000: 46bd mov sp, r7 + 8003002: bd80 pop {r7, pc} + 8003004: 200002a8 .word 0x200002a8 + 8003008: 40023c00 .word 0x40023c00 -08002d5c : +0800300c : * @param Address specifies the address to be programmed. * @param Data specifies the data to be programmed. * @retval None */ static void FLASH_Program_DoubleWord(uint32_t Address, uint64_t Data) { - 8002d5c: b480 push {r7} - 8002d5e: b085 sub sp, #20 - 8002d60: af00 add r7, sp, #0 - 8002d62: 60f8 str r0, [r7, #12] - 8002d64: e9c7 2300 strd r2, r3, [r7] + 800300c: b480 push {r7} + 800300e: b085 sub sp, #20 + 8003010: af00 add r7, sp, #0 + 8003012: 60f8 str r0, [r7, #12] + 8003014: e9c7 2300 strd r2, r3, [r7] /* Check the parameters */ assert_param(IS_FLASH_ADDRESS(Address)); /* If the previous operation is completed, proceed to program the new data */ CLEAR_BIT(FLASH->CR, FLASH_CR_PSIZE); - 8002d68: 4b14 ldr r3, [pc, #80] @ (8002dbc ) - 8002d6a: 691b ldr r3, [r3, #16] - 8002d6c: 4a13 ldr r2, [pc, #76] @ (8002dbc ) - 8002d6e: f423 7340 bic.w r3, r3, #768 @ 0x300 - 8002d72: 6113 str r3, [r2, #16] + 8003018: 4b14 ldr r3, [pc, #80] @ (800306c ) + 800301a: 691b ldr r3, [r3, #16] + 800301c: 4a13 ldr r2, [pc, #76] @ (800306c ) + 800301e: f423 7340 bic.w r3, r3, #768 @ 0x300 + 8003022: 6113 str r3, [r2, #16] FLASH->CR |= FLASH_PSIZE_DOUBLE_WORD; - 8002d74: 4b11 ldr r3, [pc, #68] @ (8002dbc ) - 8002d76: 691b ldr r3, [r3, #16] - 8002d78: 4a10 ldr r2, [pc, #64] @ (8002dbc ) - 8002d7a: f443 7340 orr.w r3, r3, #768 @ 0x300 - 8002d7e: 6113 str r3, [r2, #16] + 8003024: 4b11 ldr r3, [pc, #68] @ (800306c ) + 8003026: 691b ldr r3, [r3, #16] + 8003028: 4a10 ldr r2, [pc, #64] @ (800306c ) + 800302a: f443 7340 orr.w r3, r3, #768 @ 0x300 + 800302e: 6113 str r3, [r2, #16] FLASH->CR |= FLASH_CR_PG; - 8002d80: 4b0e ldr r3, [pc, #56] @ (8002dbc ) - 8002d82: 691b ldr r3, [r3, #16] - 8002d84: 4a0d ldr r2, [pc, #52] @ (8002dbc ) - 8002d86: f043 0301 orr.w r3, r3, #1 - 8002d8a: 6113 str r3, [r2, #16] + 8003030: 4b0e ldr r3, [pc, #56] @ (800306c ) + 8003032: 691b ldr r3, [r3, #16] + 8003034: 4a0d ldr r2, [pc, #52] @ (800306c ) + 8003036: f043 0301 orr.w r3, r3, #1 + 800303a: 6113 str r3, [r2, #16] /* Program first word */ *(__IO uint32_t*)Address = (uint32_t)Data; - 8002d8c: 68fb ldr r3, [r7, #12] - 8002d8e: 683a ldr r2, [r7, #0] - 8002d90: 601a str r2, [r3, #0] + 800303c: 68fb ldr r3, [r7, #12] + 800303e: 683a ldr r2, [r7, #0] + 8003040: 601a str r2, [r3, #0] __ASM volatile ("isb 0xF":::"memory"); - 8002d92: f3bf 8f6f isb sy + 8003042: f3bf 8f6f isb sy } - 8002d96: bf00 nop + 8003046: bf00 nop /* Barrier to ensure programming is performed in 2 steps, in right order (independently of compiler optimization behavior) */ __ISB(); /* Program second word */ *(__IO uint32_t*)(Address+4) = (uint32_t)(Data >> 32); - 8002d98: e9d7 0100 ldrd r0, r1, [r7] - 8002d9c: f04f 0200 mov.w r2, #0 - 8002da0: f04f 0300 mov.w r3, #0 - 8002da4: 000a movs r2, r1 - 8002da6: 2300 movs r3, #0 - 8002da8: 68f9 ldr r1, [r7, #12] - 8002daa: 3104 adds r1, #4 - 8002dac: 4613 mov r3, r2 - 8002dae: 600b str r3, [r1, #0] + 8003048: e9d7 0100 ldrd r0, r1, [r7] + 800304c: f04f 0200 mov.w r2, #0 + 8003050: f04f 0300 mov.w r3, #0 + 8003054: 000a movs r2, r1 + 8003056: 2300 movs r3, #0 + 8003058: 68f9 ldr r1, [r7, #12] + 800305a: 3104 adds r1, #4 + 800305c: 4613 mov r3, r2 + 800305e: 600b str r3, [r1, #0] } - 8002db0: bf00 nop - 8002db2: 3714 adds r7, #20 - 8002db4: 46bd mov sp, r7 - 8002db6: f85d 7b04 ldr.w r7, [sp], #4 - 8002dba: 4770 bx lr - 8002dbc: 40023c00 .word 0x40023c00 + 8003060: bf00 nop + 8003062: 3714 adds r7, #20 + 8003064: 46bd mov sp, r7 + 8003066: f85d 7b04 ldr.w r7, [sp], #4 + 800306a: 4770 bx lr + 800306c: 40023c00 .word 0x40023c00 -08002dc0 : +08003070 : * @param Address specifies the address to be programmed. * @param Data specifies the data to be programmed. * @retval None */ static void FLASH_Program_Word(uint32_t Address, uint32_t Data) { - 8002dc0: b480 push {r7} - 8002dc2: b083 sub sp, #12 - 8002dc4: af00 add r7, sp, #0 - 8002dc6: 6078 str r0, [r7, #4] - 8002dc8: 6039 str r1, [r7, #0] + 8003070: b480 push {r7} + 8003072: b083 sub sp, #12 + 8003074: af00 add r7, sp, #0 + 8003076: 6078 str r0, [r7, #4] + 8003078: 6039 str r1, [r7, #0] /* Check the parameters */ assert_param(IS_FLASH_ADDRESS(Address)); /* If the previous operation is completed, proceed to program the new data */ CLEAR_BIT(FLASH->CR, FLASH_CR_PSIZE); - 8002dca: 4b0d ldr r3, [pc, #52] @ (8002e00 ) - 8002dcc: 691b ldr r3, [r3, #16] - 8002dce: 4a0c ldr r2, [pc, #48] @ (8002e00 ) - 8002dd0: f423 7340 bic.w r3, r3, #768 @ 0x300 - 8002dd4: 6113 str r3, [r2, #16] + 800307a: 4b0d ldr r3, [pc, #52] @ (80030b0 ) + 800307c: 691b ldr r3, [r3, #16] + 800307e: 4a0c ldr r2, [pc, #48] @ (80030b0 ) + 8003080: f423 7340 bic.w r3, r3, #768 @ 0x300 + 8003084: 6113 str r3, [r2, #16] FLASH->CR |= FLASH_PSIZE_WORD; - 8002dd6: 4b0a ldr r3, [pc, #40] @ (8002e00 ) - 8002dd8: 691b ldr r3, [r3, #16] - 8002dda: 4a09 ldr r2, [pc, #36] @ (8002e00 ) - 8002ddc: f443 7300 orr.w r3, r3, #512 @ 0x200 - 8002de0: 6113 str r3, [r2, #16] + 8003086: 4b0a ldr r3, [pc, #40] @ (80030b0 ) + 8003088: 691b ldr r3, [r3, #16] + 800308a: 4a09 ldr r2, [pc, #36] @ (80030b0 ) + 800308c: f443 7300 orr.w r3, r3, #512 @ 0x200 + 8003090: 6113 str r3, [r2, #16] FLASH->CR |= FLASH_CR_PG; - 8002de2: 4b07 ldr r3, [pc, #28] @ (8002e00 ) - 8002de4: 691b ldr r3, [r3, #16] - 8002de6: 4a06 ldr r2, [pc, #24] @ (8002e00 ) - 8002de8: f043 0301 orr.w r3, r3, #1 - 8002dec: 6113 str r3, [r2, #16] + 8003092: 4b07 ldr r3, [pc, #28] @ (80030b0 ) + 8003094: 691b ldr r3, [r3, #16] + 8003096: 4a06 ldr r2, [pc, #24] @ (80030b0 ) + 8003098: f043 0301 orr.w r3, r3, #1 + 800309c: 6113 str r3, [r2, #16] *(__IO uint32_t*)Address = Data; - 8002dee: 687b ldr r3, [r7, #4] - 8002df0: 683a ldr r2, [r7, #0] - 8002df2: 601a str r2, [r3, #0] + 800309e: 687b ldr r3, [r7, #4] + 80030a0: 683a ldr r2, [r7, #0] + 80030a2: 601a str r2, [r3, #0] } - 8002df4: bf00 nop - 8002df6: 370c adds r7, #12 - 8002df8: 46bd mov sp, r7 - 8002dfa: f85d 7b04 ldr.w r7, [sp], #4 - 8002dfe: 4770 bx lr - 8002e00: 40023c00 .word 0x40023c00 + 80030a4: bf00 nop + 80030a6: 370c adds r7, #12 + 80030a8: 46bd mov sp, r7 + 80030aa: f85d 7b04 ldr.w r7, [sp], #4 + 80030ae: 4770 bx lr + 80030b0: 40023c00 .word 0x40023c00 -08002e04 : +080030b4 : * @param Address specifies the address to be programmed. * @param Data specifies the data to be programmed. * @retval None */ static void FLASH_Program_HalfWord(uint32_t Address, uint16_t Data) { - 8002e04: b480 push {r7} - 8002e06: b083 sub sp, #12 - 8002e08: af00 add r7, sp, #0 - 8002e0a: 6078 str r0, [r7, #4] - 8002e0c: 460b mov r3, r1 - 8002e0e: 807b strh r3, [r7, #2] + 80030b4: b480 push {r7} + 80030b6: b083 sub sp, #12 + 80030b8: af00 add r7, sp, #0 + 80030ba: 6078 str r0, [r7, #4] + 80030bc: 460b mov r3, r1 + 80030be: 807b strh r3, [r7, #2] /* Check the parameters */ assert_param(IS_FLASH_ADDRESS(Address)); /* If the previous operation is completed, proceed to program the new data */ CLEAR_BIT(FLASH->CR, FLASH_CR_PSIZE); - 8002e10: 4b0d ldr r3, [pc, #52] @ (8002e48 ) - 8002e12: 691b ldr r3, [r3, #16] - 8002e14: 4a0c ldr r2, [pc, #48] @ (8002e48 ) - 8002e16: f423 7340 bic.w r3, r3, #768 @ 0x300 - 8002e1a: 6113 str r3, [r2, #16] + 80030c0: 4b0d ldr r3, [pc, #52] @ (80030f8 ) + 80030c2: 691b ldr r3, [r3, #16] + 80030c4: 4a0c ldr r2, [pc, #48] @ (80030f8 ) + 80030c6: f423 7340 bic.w r3, r3, #768 @ 0x300 + 80030ca: 6113 str r3, [r2, #16] FLASH->CR |= FLASH_PSIZE_HALF_WORD; - 8002e1c: 4b0a ldr r3, [pc, #40] @ (8002e48 ) - 8002e1e: 691b ldr r3, [r3, #16] - 8002e20: 4a09 ldr r2, [pc, #36] @ (8002e48 ) - 8002e22: f443 7380 orr.w r3, r3, #256 @ 0x100 - 8002e26: 6113 str r3, [r2, #16] + 80030cc: 4b0a ldr r3, [pc, #40] @ (80030f8 ) + 80030ce: 691b ldr r3, [r3, #16] + 80030d0: 4a09 ldr r2, [pc, #36] @ (80030f8 ) + 80030d2: f443 7380 orr.w r3, r3, #256 @ 0x100 + 80030d6: 6113 str r3, [r2, #16] FLASH->CR |= FLASH_CR_PG; - 8002e28: 4b07 ldr r3, [pc, #28] @ (8002e48 ) - 8002e2a: 691b ldr r3, [r3, #16] - 8002e2c: 4a06 ldr r2, [pc, #24] @ (8002e48 ) - 8002e2e: f043 0301 orr.w r3, r3, #1 - 8002e32: 6113 str r3, [r2, #16] + 80030d8: 4b07 ldr r3, [pc, #28] @ (80030f8 ) + 80030da: 691b ldr r3, [r3, #16] + 80030dc: 4a06 ldr r2, [pc, #24] @ (80030f8 ) + 80030de: f043 0301 orr.w r3, r3, #1 + 80030e2: 6113 str r3, [r2, #16] *(__IO uint16_t*)Address = Data; - 8002e34: 687b ldr r3, [r7, #4] - 8002e36: 887a ldrh r2, [r7, #2] - 8002e38: 801a strh r2, [r3, #0] + 80030e4: 687b ldr r3, [r7, #4] + 80030e6: 887a ldrh r2, [r7, #2] + 80030e8: 801a strh r2, [r3, #0] } - 8002e3a: bf00 nop - 8002e3c: 370c adds r7, #12 - 8002e3e: 46bd mov sp, r7 - 8002e40: f85d 7b04 ldr.w r7, [sp], #4 - 8002e44: 4770 bx lr - 8002e46: bf00 nop - 8002e48: 40023c00 .word 0x40023c00 + 80030ea: bf00 nop + 80030ec: 370c adds r7, #12 + 80030ee: 46bd mov sp, r7 + 80030f0: f85d 7b04 ldr.w r7, [sp], #4 + 80030f4: 4770 bx lr + 80030f6: bf00 nop + 80030f8: 40023c00 .word 0x40023c00 -08002e4c : +080030fc : * @param Address specifies the address to be programmed. * @param Data specifies the data to be programmed. * @retval None */ static void FLASH_Program_Byte(uint32_t Address, uint8_t Data) { - 8002e4c: b480 push {r7} - 8002e4e: b083 sub sp, #12 - 8002e50: af00 add r7, sp, #0 - 8002e52: 6078 str r0, [r7, #4] - 8002e54: 460b mov r3, r1 - 8002e56: 70fb strb r3, [r7, #3] + 80030fc: b480 push {r7} + 80030fe: b083 sub sp, #12 + 8003100: af00 add r7, sp, #0 + 8003102: 6078 str r0, [r7, #4] + 8003104: 460b mov r3, r1 + 8003106: 70fb strb r3, [r7, #3] /* Check the parameters */ assert_param(IS_FLASH_ADDRESS(Address)); /* If the previous operation is completed, proceed to program the new data */ CLEAR_BIT(FLASH->CR, FLASH_CR_PSIZE); - 8002e58: 4b0c ldr r3, [pc, #48] @ (8002e8c ) - 8002e5a: 691b ldr r3, [r3, #16] - 8002e5c: 4a0b ldr r2, [pc, #44] @ (8002e8c ) - 8002e5e: f423 7340 bic.w r3, r3, #768 @ 0x300 - 8002e62: 6113 str r3, [r2, #16] + 8003108: 4b0c ldr r3, [pc, #48] @ (800313c ) + 800310a: 691b ldr r3, [r3, #16] + 800310c: 4a0b ldr r2, [pc, #44] @ (800313c ) + 800310e: f423 7340 bic.w r3, r3, #768 @ 0x300 + 8003112: 6113 str r3, [r2, #16] FLASH->CR |= FLASH_PSIZE_BYTE; - 8002e64: 4b09 ldr r3, [pc, #36] @ (8002e8c ) - 8002e66: 4a09 ldr r2, [pc, #36] @ (8002e8c ) - 8002e68: 691b ldr r3, [r3, #16] - 8002e6a: 6113 str r3, [r2, #16] + 8003114: 4b09 ldr r3, [pc, #36] @ (800313c ) + 8003116: 4a09 ldr r2, [pc, #36] @ (800313c ) + 8003118: 691b ldr r3, [r3, #16] + 800311a: 6113 str r3, [r2, #16] FLASH->CR |= FLASH_CR_PG; - 8002e6c: 4b07 ldr r3, [pc, #28] @ (8002e8c ) - 8002e6e: 691b ldr r3, [r3, #16] - 8002e70: 4a06 ldr r2, [pc, #24] @ (8002e8c ) - 8002e72: f043 0301 orr.w r3, r3, #1 - 8002e76: 6113 str r3, [r2, #16] + 800311c: 4b07 ldr r3, [pc, #28] @ (800313c ) + 800311e: 691b ldr r3, [r3, #16] + 8003120: 4a06 ldr r2, [pc, #24] @ (800313c ) + 8003122: f043 0301 orr.w r3, r3, #1 + 8003126: 6113 str r3, [r2, #16] *(__IO uint8_t*)Address = Data; - 8002e78: 687b ldr r3, [r7, #4] - 8002e7a: 78fa ldrb r2, [r7, #3] - 8002e7c: 701a strb r2, [r3, #0] + 8003128: 687b ldr r3, [r7, #4] + 800312a: 78fa ldrb r2, [r7, #3] + 800312c: 701a strb r2, [r3, #0] } - 8002e7e: bf00 nop - 8002e80: 370c adds r7, #12 - 8002e82: 46bd mov sp, r7 - 8002e84: f85d 7b04 ldr.w r7, [sp], #4 - 8002e88: 4770 bx lr - 8002e8a: bf00 nop - 8002e8c: 40023c00 .word 0x40023c00 + 800312e: bf00 nop + 8003130: 370c adds r7, #12 + 8003132: 46bd mov sp, r7 + 8003134: f85d 7b04 ldr.w r7, [sp], #4 + 8003138: 4770 bx lr + 800313a: bf00 nop + 800313c: 40023c00 .word 0x40023c00 -08002e90 : +08003140 : /** * @brief Set the specific FLASH error flag. * @retval None */ static void FLASH_SetErrorCode(void) { - 8002e90: b480 push {r7} - 8002e92: af00 add r7, sp, #0 + 8003140: b480 push {r7} + 8003142: af00 add r7, sp, #0 if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_WRPERR) != RESET) - 8002e94: 4b2f ldr r3, [pc, #188] @ (8002f54 ) - 8002e96: 68db ldr r3, [r3, #12] - 8002e98: f003 0310 and.w r3, r3, #16 - 8002e9c: 2b00 cmp r3, #0 - 8002e9e: d008 beq.n 8002eb2 + 8003144: 4b2f ldr r3, [pc, #188] @ (8003204 ) + 8003146: 68db ldr r3, [r3, #12] + 8003148: f003 0310 and.w r3, r3, #16 + 800314c: 2b00 cmp r3, #0 + 800314e: d008 beq.n 8003162 { pFlash.ErrorCode |= HAL_FLASH_ERROR_WRP; - 8002ea0: 4b2d ldr r3, [pc, #180] @ (8002f58 ) - 8002ea2: 69db ldr r3, [r3, #28] - 8002ea4: f043 0310 orr.w r3, r3, #16 - 8002ea8: 4a2b ldr r2, [pc, #172] @ (8002f58 ) - 8002eaa: 61d3 str r3, [r2, #28] + 8003150: 4b2d ldr r3, [pc, #180] @ (8003208 ) + 8003152: 69db ldr r3, [r3, #28] + 8003154: f043 0310 orr.w r3, r3, #16 + 8003158: 4a2b ldr r2, [pc, #172] @ (8003208 ) + 800315a: 61d3 str r3, [r2, #28] /* Clear FLASH write protection error pending bit */ __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_WRPERR); - 8002eac: 4b29 ldr r3, [pc, #164] @ (8002f54 ) - 8002eae: 2210 movs r2, #16 - 8002eb0: 60da str r2, [r3, #12] + 800315c: 4b29 ldr r3, [pc, #164] @ (8003204 ) + 800315e: 2210 movs r2, #16 + 8003160: 60da str r2, [r3, #12] } if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_PGAERR) != RESET) - 8002eb2: 4b28 ldr r3, [pc, #160] @ (8002f54 ) - 8002eb4: 68db ldr r3, [r3, #12] - 8002eb6: f003 0320 and.w r3, r3, #32 - 8002eba: 2b00 cmp r3, #0 - 8002ebc: d008 beq.n 8002ed0 + 8003162: 4b28 ldr r3, [pc, #160] @ (8003204 ) + 8003164: 68db ldr r3, [r3, #12] + 8003166: f003 0320 and.w r3, r3, #32 + 800316a: 2b00 cmp r3, #0 + 800316c: d008 beq.n 8003180 { pFlash.ErrorCode |= HAL_FLASH_ERROR_PGA; - 8002ebe: 4b26 ldr r3, [pc, #152] @ (8002f58 ) - 8002ec0: 69db ldr r3, [r3, #28] - 8002ec2: f043 0308 orr.w r3, r3, #8 - 8002ec6: 4a24 ldr r2, [pc, #144] @ (8002f58 ) - 8002ec8: 61d3 str r3, [r2, #28] + 800316e: 4b26 ldr r3, [pc, #152] @ (8003208 ) + 8003170: 69db ldr r3, [r3, #28] + 8003172: f043 0308 orr.w r3, r3, #8 + 8003176: 4a24 ldr r2, [pc, #144] @ (8003208 ) + 8003178: 61d3 str r3, [r2, #28] /* Clear FLASH Programming alignment error pending bit */ __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_PGAERR); - 8002eca: 4b22 ldr r3, [pc, #136] @ (8002f54 ) - 8002ecc: 2220 movs r2, #32 - 8002ece: 60da str r2, [r3, #12] + 800317a: 4b22 ldr r3, [pc, #136] @ (8003204 ) + 800317c: 2220 movs r2, #32 + 800317e: 60da str r2, [r3, #12] } if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_PGPERR) != RESET) - 8002ed0: 4b20 ldr r3, [pc, #128] @ (8002f54 ) - 8002ed2: 68db ldr r3, [r3, #12] - 8002ed4: f003 0340 and.w r3, r3, #64 @ 0x40 - 8002ed8: 2b00 cmp r3, #0 - 8002eda: d008 beq.n 8002eee + 8003180: 4b20 ldr r3, [pc, #128] @ (8003204 ) + 8003182: 68db ldr r3, [r3, #12] + 8003184: f003 0340 and.w r3, r3, #64 @ 0x40 + 8003188: 2b00 cmp r3, #0 + 800318a: d008 beq.n 800319e { pFlash.ErrorCode |= HAL_FLASH_ERROR_PGP; - 8002edc: 4b1e ldr r3, [pc, #120] @ (8002f58 ) - 8002ede: 69db ldr r3, [r3, #28] - 8002ee0: f043 0304 orr.w r3, r3, #4 - 8002ee4: 4a1c ldr r2, [pc, #112] @ (8002f58 ) - 8002ee6: 61d3 str r3, [r2, #28] + 800318c: 4b1e ldr r3, [pc, #120] @ (8003208 ) + 800318e: 69db ldr r3, [r3, #28] + 8003190: f043 0304 orr.w r3, r3, #4 + 8003194: 4a1c ldr r2, [pc, #112] @ (8003208 ) + 8003196: 61d3 str r3, [r2, #28] /* Clear FLASH Programming parallelism error pending bit */ __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_PGPERR); - 8002ee8: 4b1a ldr r3, [pc, #104] @ (8002f54 ) - 8002eea: 2240 movs r2, #64 @ 0x40 - 8002eec: 60da str r2, [r3, #12] + 8003198: 4b1a ldr r3, [pc, #104] @ (8003204 ) + 800319a: 2240 movs r2, #64 @ 0x40 + 800319c: 60da str r2, [r3, #12] } if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_PGSERR) != RESET) - 8002eee: 4b19 ldr r3, [pc, #100] @ (8002f54 ) - 8002ef0: 68db ldr r3, [r3, #12] - 8002ef2: f003 0380 and.w r3, r3, #128 @ 0x80 - 8002ef6: 2b00 cmp r3, #0 - 8002ef8: d008 beq.n 8002f0c + 800319e: 4b19 ldr r3, [pc, #100] @ (8003204 ) + 80031a0: 68db ldr r3, [r3, #12] + 80031a2: f003 0380 and.w r3, r3, #128 @ 0x80 + 80031a6: 2b00 cmp r3, #0 + 80031a8: d008 beq.n 80031bc { pFlash.ErrorCode |= HAL_FLASH_ERROR_PGS; - 8002efa: 4b17 ldr r3, [pc, #92] @ (8002f58 ) - 8002efc: 69db ldr r3, [r3, #28] - 8002efe: f043 0302 orr.w r3, r3, #2 - 8002f02: 4a15 ldr r2, [pc, #84] @ (8002f58 ) - 8002f04: 61d3 str r3, [r2, #28] + 80031aa: 4b17 ldr r3, [pc, #92] @ (8003208 ) + 80031ac: 69db ldr r3, [r3, #28] + 80031ae: f043 0302 orr.w r3, r3, #2 + 80031b2: 4a15 ldr r2, [pc, #84] @ (8003208 ) + 80031b4: 61d3 str r3, [r2, #28] /* Clear FLASH Programming sequence error pending bit */ __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_PGSERR); - 8002f06: 4b13 ldr r3, [pc, #76] @ (8002f54 ) - 8002f08: 2280 movs r2, #128 @ 0x80 - 8002f0a: 60da str r2, [r3, #12] + 80031b6: 4b13 ldr r3, [pc, #76] @ (8003204 ) + 80031b8: 2280 movs r2, #128 @ 0x80 + 80031ba: 60da str r2, [r3, #12] } #if defined(FLASH_SR_RDERR) if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_RDERR) != RESET) - 8002f0c: 4b11 ldr r3, [pc, #68] @ (8002f54 ) - 8002f0e: 68db ldr r3, [r3, #12] - 8002f10: f403 7380 and.w r3, r3, #256 @ 0x100 - 8002f14: 2b00 cmp r3, #0 - 8002f16: d009 beq.n 8002f2c + 80031bc: 4b11 ldr r3, [pc, #68] @ (8003204 ) + 80031be: 68db ldr r3, [r3, #12] + 80031c0: f403 7380 and.w r3, r3, #256 @ 0x100 + 80031c4: 2b00 cmp r3, #0 + 80031c6: d009 beq.n 80031dc { pFlash.ErrorCode |= HAL_FLASH_ERROR_RD; - 8002f18: 4b0f ldr r3, [pc, #60] @ (8002f58 ) - 8002f1a: 69db ldr r3, [r3, #28] - 8002f1c: f043 0301 orr.w r3, r3, #1 - 8002f20: 4a0d ldr r2, [pc, #52] @ (8002f58 ) - 8002f22: 61d3 str r3, [r2, #28] + 80031c8: 4b0f ldr r3, [pc, #60] @ (8003208 ) + 80031ca: 69db ldr r3, [r3, #28] + 80031cc: f043 0301 orr.w r3, r3, #1 + 80031d0: 4a0d ldr r2, [pc, #52] @ (8003208 ) + 80031d2: 61d3 str r3, [r2, #28] /* Clear FLASH Proprietary readout protection error pending bit */ __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_RDERR); - 8002f24: 4b0b ldr r3, [pc, #44] @ (8002f54 ) - 8002f26: f44f 7280 mov.w r2, #256 @ 0x100 - 8002f2a: 60da str r2, [r3, #12] + 80031d4: 4b0b ldr r3, [pc, #44] @ (8003204 ) + 80031d6: f44f 7280 mov.w r2, #256 @ 0x100 + 80031da: 60da str r2, [r3, #12] } #endif /* FLASH_SR_RDERR */ if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_OPERR) != RESET) - 8002f2c: 4b09 ldr r3, [pc, #36] @ (8002f54 ) - 8002f2e: 68db ldr r3, [r3, #12] - 8002f30: f003 0302 and.w r3, r3, #2 - 8002f34: 2b00 cmp r3, #0 - 8002f36: d008 beq.n 8002f4a + 80031dc: 4b09 ldr r3, [pc, #36] @ (8003204 ) + 80031de: 68db ldr r3, [r3, #12] + 80031e0: f003 0302 and.w r3, r3, #2 + 80031e4: 2b00 cmp r3, #0 + 80031e6: d008 beq.n 80031fa { pFlash.ErrorCode |= HAL_FLASH_ERROR_OPERATION; - 8002f38: 4b07 ldr r3, [pc, #28] @ (8002f58 ) - 8002f3a: 69db ldr r3, [r3, #28] - 8002f3c: f043 0320 orr.w r3, r3, #32 - 8002f40: 4a05 ldr r2, [pc, #20] @ (8002f58 ) - 8002f42: 61d3 str r3, [r2, #28] + 80031e8: 4b07 ldr r3, [pc, #28] @ (8003208 ) + 80031ea: 69db ldr r3, [r3, #28] + 80031ec: f043 0320 orr.w r3, r3, #32 + 80031f0: 4a05 ldr r2, [pc, #20] @ (8003208 ) + 80031f2: 61d3 str r3, [r2, #28] /* Clear FLASH Operation error pending bit */ __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_OPERR); - 8002f44: 4b03 ldr r3, [pc, #12] @ (8002f54 ) - 8002f46: 2202 movs r2, #2 - 8002f48: 60da str r2, [r3, #12] + 80031f4: 4b03 ldr r3, [pc, #12] @ (8003204 ) + 80031f6: 2202 movs r2, #2 + 80031f8: 60da str r2, [r3, #12] } } - 8002f4a: bf00 nop - 8002f4c: 46bd mov sp, r7 - 8002f4e: f85d 7b04 ldr.w r7, [sp], #4 - 8002f52: 4770 bx lr - 8002f54: 40023c00 .word 0x40023c00 - 8002f58: 200002ac .word 0x200002ac + 80031fa: bf00 nop + 80031fc: 46bd mov sp, r7 + 80031fe: f85d 7b04 ldr.w r7, [sp], #4 + 8003202: 4770 bx lr + 8003204: 40023c00 .word 0x40023c00 + 8003208: 200002a8 .word 0x200002a8 -08002f5c : +0800320c : * (0xFFFFFFFFU means that all the sectors have been correctly erased) * * @retval HAL Status */ HAL_StatusTypeDef HAL_FLASHEx_Erase(FLASH_EraseInitTypeDef *pEraseInit, uint32_t *SectorError) { - 8002f5c: b580 push {r7, lr} - 8002f5e: b084 sub sp, #16 - 8002f60: af00 add r7, sp, #0 - 8002f62: 6078 str r0, [r7, #4] - 8002f64: 6039 str r1, [r7, #0] + 800320c: b580 push {r7, lr} + 800320e: b084 sub sp, #16 + 8003210: af00 add r7, sp, #0 + 8003212: 6078 str r0, [r7, #4] + 8003214: 6039 str r1, [r7, #0] HAL_StatusTypeDef status = HAL_ERROR; - 8002f66: 2301 movs r3, #1 - 8002f68: 73fb strb r3, [r7, #15] + 8003216: 2301 movs r3, #1 + 8003218: 73fb strb r3, [r7, #15] uint32_t index = 0U; - 8002f6a: 2300 movs r3, #0 - 8002f6c: 60bb str r3, [r7, #8] + 800321a: 2300 movs r3, #0 + 800321c: 60bb str r3, [r7, #8] /* Process Locked */ __HAL_LOCK(&pFlash); - 8002f6e: 4b31 ldr r3, [pc, #196] @ (8003034 ) - 8002f70: 7e1b ldrb r3, [r3, #24] - 8002f72: 2b01 cmp r3, #1 - 8002f74: d101 bne.n 8002f7a - 8002f76: 2302 movs r3, #2 - 8002f78: e058 b.n 800302c - 8002f7a: 4b2e ldr r3, [pc, #184] @ (8003034 ) - 8002f7c: 2201 movs r2, #1 - 8002f7e: 761a strb r2, [r3, #24] + 800321e: 4b31 ldr r3, [pc, #196] @ (80032e4 ) + 8003220: 7e1b ldrb r3, [r3, #24] + 8003222: 2b01 cmp r3, #1 + 8003224: d101 bne.n 800322a + 8003226: 2302 movs r3, #2 + 8003228: e058 b.n 80032dc + 800322a: 4b2e ldr r3, [pc, #184] @ (80032e4 ) + 800322c: 2201 movs r2, #1 + 800322e: 761a strb r2, [r3, #24] /* Check the parameters */ assert_param(IS_FLASH_TYPEERASE(pEraseInit->TypeErase)); /* Wait for last operation to be completed */ status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE); - 8002f80: f24c 3050 movw r0, #50000 @ 0xc350 - 8002f84: f7ff feaa bl 8002cdc - 8002f88: 4603 mov r3, r0 - 8002f8a: 73fb strb r3, [r7, #15] + 8003230: f24c 3050 movw r0, #50000 @ 0xc350 + 8003234: f7ff feaa bl 8002f8c + 8003238: 4603 mov r3, r0 + 800323a: 73fb strb r3, [r7, #15] if (status == HAL_OK) - 8002f8c: 7bfb ldrb r3, [r7, #15] - 8002f8e: 2b00 cmp r3, #0 - 8002f90: d148 bne.n 8003024 + 800323c: 7bfb ldrb r3, [r7, #15] + 800323e: 2b00 cmp r3, #0 + 8003240: d148 bne.n 80032d4 { /*Initialization of SectorError variable*/ *SectorError = 0xFFFFFFFFU; - 8002f92: 683b ldr r3, [r7, #0] - 8002f94: f04f 32ff mov.w r2, #4294967295 - 8002f98: 601a str r2, [r3, #0] + 8003242: 683b ldr r3, [r7, #0] + 8003244: f04f 32ff mov.w r2, #4294967295 + 8003248: 601a str r2, [r3, #0] if (pEraseInit->TypeErase == FLASH_TYPEERASE_MASSERASE) - 8002f9a: 687b ldr r3, [r7, #4] - 8002f9c: 681b ldr r3, [r3, #0] - 8002f9e: 2b01 cmp r3, #1 - 8002fa0: d115 bne.n 8002fce + 800324a: 687b ldr r3, [r7, #4] + 800324c: 681b ldr r3, [r3, #0] + 800324e: 2b01 cmp r3, #1 + 8003250: d115 bne.n 800327e { /*Mass erase to be done*/ FLASH_MassErase((uint8_t) pEraseInit->VoltageRange, pEraseInit->Banks); - 8002fa2: 687b ldr r3, [r7, #4] - 8002fa4: 691b ldr r3, [r3, #16] - 8002fa6: b2da uxtb r2, r3 - 8002fa8: 687b ldr r3, [r7, #4] - 8002faa: 685b ldr r3, [r3, #4] - 8002fac: 4619 mov r1, r3 - 8002fae: 4610 mov r0, r2 - 8002fb0: f000 f844 bl 800303c + 8003252: 687b ldr r3, [r7, #4] + 8003254: 691b ldr r3, [r3, #16] + 8003256: b2da uxtb r2, r3 + 8003258: 687b ldr r3, [r7, #4] + 800325a: 685b ldr r3, [r3, #4] + 800325c: 4619 mov r1, r3 + 800325e: 4610 mov r0, r2 + 8003260: f000 f844 bl 80032ec /* Wait for last operation to be completed */ status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE); - 8002fb4: f24c 3050 movw r0, #50000 @ 0xc350 - 8002fb8: f7ff fe90 bl 8002cdc - 8002fbc: 4603 mov r3, r0 - 8002fbe: 73fb strb r3, [r7, #15] + 8003264: f24c 3050 movw r0, #50000 @ 0xc350 + 8003268: f7ff fe90 bl 8002f8c + 800326c: 4603 mov r3, r0 + 800326e: 73fb strb r3, [r7, #15] /* if the erase operation is completed, disable the MER Bit */ FLASH->CR &= (~FLASH_MER_BIT); - 8002fc0: 4b1d ldr r3, [pc, #116] @ (8003038 ) - 8002fc2: 691b ldr r3, [r3, #16] - 8002fc4: 4a1c ldr r2, [pc, #112] @ (8003038 ) - 8002fc6: f023 0304 bic.w r3, r3, #4 - 8002fca: 6113 str r3, [r2, #16] - 8002fcc: e028 b.n 8003020 + 8003270: 4b1d ldr r3, [pc, #116] @ (80032e8 ) + 8003272: 691b ldr r3, [r3, #16] + 8003274: 4a1c ldr r2, [pc, #112] @ (80032e8 ) + 8003276: f023 0304 bic.w r3, r3, #4 + 800327a: 6113 str r3, [r2, #16] + 800327c: e028 b.n 80032d0 { /* Check the parameters */ assert_param(IS_FLASH_NBSECTORS(pEraseInit->NbSectors + pEraseInit->Sector)); /* Erase by sector by sector to be done*/ for (index = pEraseInit->Sector; index < (pEraseInit->NbSectors + pEraseInit->Sector); index++) - 8002fce: 687b ldr r3, [r7, #4] - 8002fd0: 689b ldr r3, [r3, #8] - 8002fd2: 60bb str r3, [r7, #8] - 8002fd4: e01c b.n 8003010 + 800327e: 687b ldr r3, [r7, #4] + 8003280: 689b ldr r3, [r3, #8] + 8003282: 60bb str r3, [r7, #8] + 8003284: e01c b.n 80032c0 { FLASH_Erase_Sector(index, (uint8_t) pEraseInit->VoltageRange); - 8002fd6: 687b ldr r3, [r7, #4] - 8002fd8: 691b ldr r3, [r3, #16] - 8002fda: b2db uxtb r3, r3 - 8002fdc: 4619 mov r1, r3 - 8002fde: 68b8 ldr r0, [r7, #8] - 8002fe0: f000 f850 bl 8003084 + 8003286: 687b ldr r3, [r7, #4] + 8003288: 691b ldr r3, [r3, #16] + 800328a: b2db uxtb r3, r3 + 800328c: 4619 mov r1, r3 + 800328e: 68b8 ldr r0, [r7, #8] + 8003290: f000 f850 bl 8003334 /* Wait for last operation to be completed */ status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE); - 8002fe4: f24c 3050 movw r0, #50000 @ 0xc350 - 8002fe8: f7ff fe78 bl 8002cdc - 8002fec: 4603 mov r3, r0 - 8002fee: 73fb strb r3, [r7, #15] + 8003294: f24c 3050 movw r0, #50000 @ 0xc350 + 8003298: f7ff fe78 bl 8002f8c + 800329c: 4603 mov r3, r0 + 800329e: 73fb strb r3, [r7, #15] /* If the erase operation is completed, disable the SER and SNB Bits */ CLEAR_BIT(FLASH->CR, (FLASH_CR_SER | FLASH_CR_SNB)); - 8002ff0: 4b11 ldr r3, [pc, #68] @ (8003038 ) - 8002ff2: 691b ldr r3, [r3, #16] - 8002ff4: 4a10 ldr r2, [pc, #64] @ (8003038 ) - 8002ff6: f023 03fa bic.w r3, r3, #250 @ 0xfa - 8002ffa: 6113 str r3, [r2, #16] + 80032a0: 4b11 ldr r3, [pc, #68] @ (80032e8 ) + 80032a2: 691b ldr r3, [r3, #16] + 80032a4: 4a10 ldr r2, [pc, #64] @ (80032e8 ) + 80032a6: f023 03fa bic.w r3, r3, #250 @ 0xfa + 80032aa: 6113 str r3, [r2, #16] if (status != HAL_OK) - 8002ffc: 7bfb ldrb r3, [r7, #15] - 8002ffe: 2b00 cmp r3, #0 - 8003000: d003 beq.n 800300a + 80032ac: 7bfb ldrb r3, [r7, #15] + 80032ae: 2b00 cmp r3, #0 + 80032b0: d003 beq.n 80032ba { /* In case of error, stop erase procedure and return the faulty sector*/ *SectorError = index; - 8003002: 683b ldr r3, [r7, #0] - 8003004: 68ba ldr r2, [r7, #8] - 8003006: 601a str r2, [r3, #0] + 80032b2: 683b ldr r3, [r7, #0] + 80032b4: 68ba ldr r2, [r7, #8] + 80032b6: 601a str r2, [r3, #0] break; - 8003008: e00a b.n 8003020 + 80032b8: e00a b.n 80032d0 for (index = pEraseInit->Sector; index < (pEraseInit->NbSectors + pEraseInit->Sector); index++) - 800300a: 68bb ldr r3, [r7, #8] - 800300c: 3301 adds r3, #1 - 800300e: 60bb str r3, [r7, #8] - 8003010: 687b ldr r3, [r7, #4] - 8003012: 68da ldr r2, [r3, #12] - 8003014: 687b ldr r3, [r7, #4] - 8003016: 689b ldr r3, [r3, #8] - 8003018: 4413 add r3, r2 - 800301a: 68ba ldr r2, [r7, #8] - 800301c: 429a cmp r2, r3 - 800301e: d3da bcc.n 8002fd6 + 80032ba: 68bb ldr r3, [r7, #8] + 80032bc: 3301 adds r3, #1 + 80032be: 60bb str r3, [r7, #8] + 80032c0: 687b ldr r3, [r7, #4] + 80032c2: 68da ldr r2, [r3, #12] + 80032c4: 687b ldr r3, [r7, #4] + 80032c6: 689b ldr r3, [r3, #8] + 80032c8: 4413 add r3, r2 + 80032ca: 68ba ldr r2, [r7, #8] + 80032cc: 429a cmp r2, r3 + 80032ce: d3da bcc.n 8003286 } } } /* Flush the caches to be sure of the data consistency */ FLASH_FlushCaches(); - 8003020: f000 f878 bl 8003114 + 80032d0: f000 f878 bl 80033c4 } /* Process Unlocked */ __HAL_UNLOCK(&pFlash); - 8003024: 4b03 ldr r3, [pc, #12] @ (8003034 ) - 8003026: 2200 movs r2, #0 - 8003028: 761a strb r2, [r3, #24] + 80032d4: 4b03 ldr r3, [pc, #12] @ (80032e4 ) + 80032d6: 2200 movs r2, #0 + 80032d8: 761a strb r2, [r3, #24] return status; - 800302a: 7bfb ldrb r3, [r7, #15] + 80032da: 7bfb ldrb r3, [r7, #15] } - 800302c: 4618 mov r0, r3 - 800302e: 3710 adds r7, #16 - 8003030: 46bd mov sp, r7 - 8003032: bd80 pop {r7, pc} - 8003034: 200002ac .word 0x200002ac - 8003038: 40023c00 .word 0x40023c00 + 80032dc: 4618 mov r0, r3 + 80032de: 3710 adds r7, #16 + 80032e0: 46bd mov sp, r7 + 80032e2: bd80 pop {r7, pc} + 80032e4: 200002a8 .word 0x200002a8 + 80032e8: 40023c00 .word 0x40023c00 -0800303c : +080032ec : * @arg FLASH_BANK_1: Bank1 to be erased * * @retval None */ static void FLASH_MassErase(uint8_t VoltageRange, uint32_t Banks) { - 800303c: b480 push {r7} - 800303e: b083 sub sp, #12 - 8003040: af00 add r7, sp, #0 - 8003042: 4603 mov r3, r0 - 8003044: 6039 str r1, [r7, #0] - 8003046: 71fb strb r3, [r7, #7] + 80032ec: b480 push {r7} + 80032ee: b083 sub sp, #12 + 80032f0: af00 add r7, sp, #0 + 80032f2: 4603 mov r3, r0 + 80032f4: 6039 str r1, [r7, #0] + 80032f6: 71fb strb r3, [r7, #7] /* Check the parameters */ assert_param(IS_VOLTAGERANGE(VoltageRange)); assert_param(IS_FLASH_BANK(Banks)); /* If the previous operation is completed, proceed to erase all sectors */ CLEAR_BIT(FLASH->CR, FLASH_CR_PSIZE); - 8003048: 4b0d ldr r3, [pc, #52] @ (8003080 ) - 800304a: 691b ldr r3, [r3, #16] - 800304c: 4a0c ldr r2, [pc, #48] @ (8003080 ) - 800304e: f423 7340 bic.w r3, r3, #768 @ 0x300 - 8003052: 6113 str r3, [r2, #16] + 80032f8: 4b0d ldr r3, [pc, #52] @ (8003330 ) + 80032fa: 691b ldr r3, [r3, #16] + 80032fc: 4a0c ldr r2, [pc, #48] @ (8003330 ) + 80032fe: f423 7340 bic.w r3, r3, #768 @ 0x300 + 8003302: 6113 str r3, [r2, #16] FLASH->CR |= FLASH_CR_MER; - 8003054: 4b0a ldr r3, [pc, #40] @ (8003080 ) - 8003056: 691b ldr r3, [r3, #16] - 8003058: 4a09 ldr r2, [pc, #36] @ (8003080 ) - 800305a: f043 0304 orr.w r3, r3, #4 - 800305e: 6113 str r3, [r2, #16] + 8003304: 4b0a ldr r3, [pc, #40] @ (8003330 ) + 8003306: 691b ldr r3, [r3, #16] + 8003308: 4a09 ldr r2, [pc, #36] @ (8003330 ) + 800330a: f043 0304 orr.w r3, r3, #4 + 800330e: 6113 str r3, [r2, #16] FLASH->CR |= FLASH_CR_STRT | ((uint32_t)VoltageRange << 8U); - 8003060: 4b07 ldr r3, [pc, #28] @ (8003080 ) - 8003062: 691a ldr r2, [r3, #16] - 8003064: 79fb ldrb r3, [r7, #7] - 8003066: 021b lsls r3, r3, #8 - 8003068: 4313 orrs r3, r2 - 800306a: 4a05 ldr r2, [pc, #20] @ (8003080 ) - 800306c: f443 3380 orr.w r3, r3, #65536 @ 0x10000 - 8003070: 6113 str r3, [r2, #16] + 8003310: 4b07 ldr r3, [pc, #28] @ (8003330 ) + 8003312: 691a ldr r2, [r3, #16] + 8003314: 79fb ldrb r3, [r7, #7] + 8003316: 021b lsls r3, r3, #8 + 8003318: 4313 orrs r3, r2 + 800331a: 4a05 ldr r2, [pc, #20] @ (8003330 ) + 800331c: f443 3380 orr.w r3, r3, #65536 @ 0x10000 + 8003320: 6113 str r3, [r2, #16] } - 8003072: bf00 nop - 8003074: 370c adds r7, #12 - 8003076: 46bd mov sp, r7 - 8003078: f85d 7b04 ldr.w r7, [sp], #4 - 800307c: 4770 bx lr - 800307e: bf00 nop - 8003080: 40023c00 .word 0x40023c00 + 8003322: bf00 nop + 8003324: 370c adds r7, #12 + 8003326: 46bd mov sp, r7 + 8003328: f85d 7b04 ldr.w r7, [sp], #4 + 800332c: 4770 bx lr + 800332e: bf00 nop + 8003330: 40023c00 .word 0x40023c00 -08003084 : +08003334 : * the operation will be done by double word (64-bit) * * @retval None */ void FLASH_Erase_Sector(uint32_t Sector, uint8_t VoltageRange) { - 8003084: b480 push {r7} - 8003086: b085 sub sp, #20 - 8003088: af00 add r7, sp, #0 - 800308a: 6078 str r0, [r7, #4] - 800308c: 460b mov r3, r1 - 800308e: 70fb strb r3, [r7, #3] + 8003334: b480 push {r7} + 8003336: b085 sub sp, #20 + 8003338: af00 add r7, sp, #0 + 800333a: 6078 str r0, [r7, #4] + 800333c: 460b mov r3, r1 + 800333e: 70fb strb r3, [r7, #3] uint32_t tmp_psize = 0U; - 8003090: 2300 movs r3, #0 - 8003092: 60fb str r3, [r7, #12] + 8003340: 2300 movs r3, #0 + 8003342: 60fb str r3, [r7, #12] /* Check the parameters */ assert_param(IS_FLASH_SECTOR(Sector)); assert_param(IS_VOLTAGERANGE(VoltageRange)); if (VoltageRange == FLASH_VOLTAGE_RANGE_1) - 8003094: 78fb ldrb r3, [r7, #3] - 8003096: 2b00 cmp r3, #0 - 8003098: d102 bne.n 80030a0 + 8003344: 78fb ldrb r3, [r7, #3] + 8003346: 2b00 cmp r3, #0 + 8003348: d102 bne.n 8003350 { tmp_psize = FLASH_PSIZE_BYTE; - 800309a: 2300 movs r3, #0 - 800309c: 60fb str r3, [r7, #12] - 800309e: e010 b.n 80030c2 + 800334a: 2300 movs r3, #0 + 800334c: 60fb str r3, [r7, #12] + 800334e: e010 b.n 8003372 } else if (VoltageRange == FLASH_VOLTAGE_RANGE_2) - 80030a0: 78fb ldrb r3, [r7, #3] - 80030a2: 2b01 cmp r3, #1 - 80030a4: d103 bne.n 80030ae + 8003350: 78fb ldrb r3, [r7, #3] + 8003352: 2b01 cmp r3, #1 + 8003354: d103 bne.n 800335e { tmp_psize = FLASH_PSIZE_HALF_WORD; - 80030a6: f44f 7380 mov.w r3, #256 @ 0x100 - 80030aa: 60fb str r3, [r7, #12] - 80030ac: e009 b.n 80030c2 + 8003356: f44f 7380 mov.w r3, #256 @ 0x100 + 800335a: 60fb str r3, [r7, #12] + 800335c: e009 b.n 8003372 } else if (VoltageRange == FLASH_VOLTAGE_RANGE_3) - 80030ae: 78fb ldrb r3, [r7, #3] - 80030b0: 2b02 cmp r3, #2 - 80030b2: d103 bne.n 80030bc + 800335e: 78fb ldrb r3, [r7, #3] + 8003360: 2b02 cmp r3, #2 + 8003362: d103 bne.n 800336c { tmp_psize = FLASH_PSIZE_WORD; - 80030b4: f44f 7300 mov.w r3, #512 @ 0x200 - 80030b8: 60fb str r3, [r7, #12] - 80030ba: e002 b.n 80030c2 + 8003364: f44f 7300 mov.w r3, #512 @ 0x200 + 8003368: 60fb str r3, [r7, #12] + 800336a: e002 b.n 8003372 } else { tmp_psize = FLASH_PSIZE_DOUBLE_WORD; - 80030bc: f44f 7340 mov.w r3, #768 @ 0x300 - 80030c0: 60fb str r3, [r7, #12] + 800336c: f44f 7340 mov.w r3, #768 @ 0x300 + 8003370: 60fb str r3, [r7, #12] } /* If the previous operation is completed, proceed to erase the sector */ CLEAR_BIT(FLASH->CR, FLASH_CR_PSIZE); - 80030c2: 4b13 ldr r3, [pc, #76] @ (8003110 ) - 80030c4: 691b ldr r3, [r3, #16] - 80030c6: 4a12 ldr r2, [pc, #72] @ (8003110 ) - 80030c8: f423 7340 bic.w r3, r3, #768 @ 0x300 - 80030cc: 6113 str r3, [r2, #16] + 8003372: 4b13 ldr r3, [pc, #76] @ (80033c0 ) + 8003374: 691b ldr r3, [r3, #16] + 8003376: 4a12 ldr r2, [pc, #72] @ (80033c0 ) + 8003378: f423 7340 bic.w r3, r3, #768 @ 0x300 + 800337c: 6113 str r3, [r2, #16] FLASH->CR |= tmp_psize; - 80030ce: 4b10 ldr r3, [pc, #64] @ (8003110 ) - 80030d0: 691a ldr r2, [r3, #16] - 80030d2: 490f ldr r1, [pc, #60] @ (8003110 ) - 80030d4: 68fb ldr r3, [r7, #12] - 80030d6: 4313 orrs r3, r2 - 80030d8: 610b str r3, [r1, #16] + 800337e: 4b10 ldr r3, [pc, #64] @ (80033c0 ) + 8003380: 691a ldr r2, [r3, #16] + 8003382: 490f ldr r1, [pc, #60] @ (80033c0 ) + 8003384: 68fb ldr r3, [r7, #12] + 8003386: 4313 orrs r3, r2 + 8003388: 610b str r3, [r1, #16] CLEAR_BIT(FLASH->CR, FLASH_CR_SNB); - 80030da: 4b0d ldr r3, [pc, #52] @ (8003110 ) - 80030dc: 691b ldr r3, [r3, #16] - 80030de: 4a0c ldr r2, [pc, #48] @ (8003110 ) - 80030e0: f023 03f8 bic.w r3, r3, #248 @ 0xf8 - 80030e4: 6113 str r3, [r2, #16] + 800338a: 4b0d ldr r3, [pc, #52] @ (80033c0 ) + 800338c: 691b ldr r3, [r3, #16] + 800338e: 4a0c ldr r2, [pc, #48] @ (80033c0 ) + 8003390: f023 03f8 bic.w r3, r3, #248 @ 0xf8 + 8003394: 6113 str r3, [r2, #16] FLASH->CR |= FLASH_CR_SER | (Sector << FLASH_CR_SNB_Pos); - 80030e6: 4b0a ldr r3, [pc, #40] @ (8003110 ) - 80030e8: 691a ldr r2, [r3, #16] - 80030ea: 687b ldr r3, [r7, #4] - 80030ec: 00db lsls r3, r3, #3 - 80030ee: 4313 orrs r3, r2 - 80030f0: 4a07 ldr r2, [pc, #28] @ (8003110 ) - 80030f2: f043 0302 orr.w r3, r3, #2 - 80030f6: 6113 str r3, [r2, #16] + 8003396: 4b0a ldr r3, [pc, #40] @ (80033c0 ) + 8003398: 691a ldr r2, [r3, #16] + 800339a: 687b ldr r3, [r7, #4] + 800339c: 00db lsls r3, r3, #3 + 800339e: 4313 orrs r3, r2 + 80033a0: 4a07 ldr r2, [pc, #28] @ (80033c0 ) + 80033a2: f043 0302 orr.w r3, r3, #2 + 80033a6: 6113 str r3, [r2, #16] FLASH->CR |= FLASH_CR_STRT; - 80030f8: 4b05 ldr r3, [pc, #20] @ (8003110 ) - 80030fa: 691b ldr r3, [r3, #16] - 80030fc: 4a04 ldr r2, [pc, #16] @ (8003110 ) - 80030fe: f443 3380 orr.w r3, r3, #65536 @ 0x10000 - 8003102: 6113 str r3, [r2, #16] + 80033a8: 4b05 ldr r3, [pc, #20] @ (80033c0 ) + 80033aa: 691b ldr r3, [r3, #16] + 80033ac: 4a04 ldr r2, [pc, #16] @ (80033c0 ) + 80033ae: f443 3380 orr.w r3, r3, #65536 @ 0x10000 + 80033b2: 6113 str r3, [r2, #16] } - 8003104: bf00 nop - 8003106: 3714 adds r7, #20 - 8003108: 46bd mov sp, r7 - 800310a: f85d 7b04 ldr.w r7, [sp], #4 - 800310e: 4770 bx lr - 8003110: 40023c00 .word 0x40023c00 + 80033b4: bf00 nop + 80033b6: 3714 adds r7, #20 + 80033b8: 46bd mov sp, r7 + 80033ba: f85d 7b04 ldr.w r7, [sp], #4 + 80033be: 4770 bx lr + 80033c0: 40023c00 .word 0x40023c00 -08003114 : +080033c4 : /** * @brief Flush the instruction and data caches * @retval None */ void FLASH_FlushCaches(void) { - 8003114: b480 push {r7} - 8003116: af00 add r7, sp, #0 + 80033c4: b480 push {r7} + 80033c6: af00 add r7, sp, #0 /* Flush instruction cache */ if (READ_BIT(FLASH->ACR, FLASH_ACR_ICEN) != RESET) - 8003118: 4b20 ldr r3, [pc, #128] @ (800319c ) - 800311a: 681b ldr r3, [r3, #0] - 800311c: f403 7300 and.w r3, r3, #512 @ 0x200 - 8003120: 2b00 cmp r3, #0 - 8003122: d017 beq.n 8003154 + 80033c8: 4b20 ldr r3, [pc, #128] @ (800344c ) + 80033ca: 681b ldr r3, [r3, #0] + 80033cc: f403 7300 and.w r3, r3, #512 @ 0x200 + 80033d0: 2b00 cmp r3, #0 + 80033d2: d017 beq.n 8003404 { /* Disable instruction cache */ __HAL_FLASH_INSTRUCTION_CACHE_DISABLE(); - 8003124: 4b1d ldr r3, [pc, #116] @ (800319c ) - 8003126: 681b ldr r3, [r3, #0] - 8003128: 4a1c ldr r2, [pc, #112] @ (800319c ) - 800312a: f423 7300 bic.w r3, r3, #512 @ 0x200 - 800312e: 6013 str r3, [r2, #0] + 80033d4: 4b1d ldr r3, [pc, #116] @ (800344c ) + 80033d6: 681b ldr r3, [r3, #0] + 80033d8: 4a1c ldr r2, [pc, #112] @ (800344c ) + 80033da: f423 7300 bic.w r3, r3, #512 @ 0x200 + 80033de: 6013 str r3, [r2, #0] /* Reset instruction cache */ __HAL_FLASH_INSTRUCTION_CACHE_RESET(); - 8003130: 4b1a ldr r3, [pc, #104] @ (800319c ) - 8003132: 681b ldr r3, [r3, #0] - 8003134: 4a19 ldr r2, [pc, #100] @ (800319c ) - 8003136: f443 6300 orr.w r3, r3, #2048 @ 0x800 - 800313a: 6013 str r3, [r2, #0] - 800313c: 4b17 ldr r3, [pc, #92] @ (800319c ) - 800313e: 681b ldr r3, [r3, #0] - 8003140: 4a16 ldr r2, [pc, #88] @ (800319c ) - 8003142: f423 6300 bic.w r3, r3, #2048 @ 0x800 - 8003146: 6013 str r3, [r2, #0] + 80033e0: 4b1a ldr r3, [pc, #104] @ (800344c ) + 80033e2: 681b ldr r3, [r3, #0] + 80033e4: 4a19 ldr r2, [pc, #100] @ (800344c ) + 80033e6: f443 6300 orr.w r3, r3, #2048 @ 0x800 + 80033ea: 6013 str r3, [r2, #0] + 80033ec: 4b17 ldr r3, [pc, #92] @ (800344c ) + 80033ee: 681b ldr r3, [r3, #0] + 80033f0: 4a16 ldr r2, [pc, #88] @ (800344c ) + 80033f2: f423 6300 bic.w r3, r3, #2048 @ 0x800 + 80033f6: 6013 str r3, [r2, #0] /* Enable instruction cache */ __HAL_FLASH_INSTRUCTION_CACHE_ENABLE(); - 8003148: 4b14 ldr r3, [pc, #80] @ (800319c ) - 800314a: 681b ldr r3, [r3, #0] - 800314c: 4a13 ldr r2, [pc, #76] @ (800319c ) - 800314e: f443 7300 orr.w r3, r3, #512 @ 0x200 - 8003152: 6013 str r3, [r2, #0] + 80033f8: 4b14 ldr r3, [pc, #80] @ (800344c ) + 80033fa: 681b ldr r3, [r3, #0] + 80033fc: 4a13 ldr r2, [pc, #76] @ (800344c ) + 80033fe: f443 7300 orr.w r3, r3, #512 @ 0x200 + 8003402: 6013 str r3, [r2, #0] } /* Flush data cache */ if (READ_BIT(FLASH->ACR, FLASH_ACR_DCEN) != RESET) - 8003154: 4b11 ldr r3, [pc, #68] @ (800319c ) - 8003156: 681b ldr r3, [r3, #0] - 8003158: f403 6380 and.w r3, r3, #1024 @ 0x400 - 800315c: 2b00 cmp r3, #0 - 800315e: d017 beq.n 8003190 + 8003404: 4b11 ldr r3, [pc, #68] @ (800344c ) + 8003406: 681b ldr r3, [r3, #0] + 8003408: f403 6380 and.w r3, r3, #1024 @ 0x400 + 800340c: 2b00 cmp r3, #0 + 800340e: d017 beq.n 8003440 { /* Disable data cache */ __HAL_FLASH_DATA_CACHE_DISABLE(); - 8003160: 4b0e ldr r3, [pc, #56] @ (800319c ) - 8003162: 681b ldr r3, [r3, #0] - 8003164: 4a0d ldr r2, [pc, #52] @ (800319c ) - 8003166: f423 6380 bic.w r3, r3, #1024 @ 0x400 - 800316a: 6013 str r3, [r2, #0] + 8003410: 4b0e ldr r3, [pc, #56] @ (800344c ) + 8003412: 681b ldr r3, [r3, #0] + 8003414: 4a0d ldr r2, [pc, #52] @ (800344c ) + 8003416: f423 6380 bic.w r3, r3, #1024 @ 0x400 + 800341a: 6013 str r3, [r2, #0] /* Reset data cache */ __HAL_FLASH_DATA_CACHE_RESET(); - 800316c: 4b0b ldr r3, [pc, #44] @ (800319c ) - 800316e: 681b ldr r3, [r3, #0] - 8003170: 4a0a ldr r2, [pc, #40] @ (800319c ) - 8003172: f443 5380 orr.w r3, r3, #4096 @ 0x1000 - 8003176: 6013 str r3, [r2, #0] - 8003178: 4b08 ldr r3, [pc, #32] @ (800319c ) - 800317a: 681b ldr r3, [r3, #0] - 800317c: 4a07 ldr r2, [pc, #28] @ (800319c ) - 800317e: f423 5380 bic.w r3, r3, #4096 @ 0x1000 - 8003182: 6013 str r3, [r2, #0] + 800341c: 4b0b ldr r3, [pc, #44] @ (800344c ) + 800341e: 681b ldr r3, [r3, #0] + 8003420: 4a0a ldr r2, [pc, #40] @ (800344c ) + 8003422: f443 5380 orr.w r3, r3, #4096 @ 0x1000 + 8003426: 6013 str r3, [r2, #0] + 8003428: 4b08 ldr r3, [pc, #32] @ (800344c ) + 800342a: 681b ldr r3, [r3, #0] + 800342c: 4a07 ldr r2, [pc, #28] @ (800344c ) + 800342e: f423 5380 bic.w r3, r3, #4096 @ 0x1000 + 8003432: 6013 str r3, [r2, #0] /* Enable data cache */ __HAL_FLASH_DATA_CACHE_ENABLE(); - 8003184: 4b05 ldr r3, [pc, #20] @ (800319c ) - 8003186: 681b ldr r3, [r3, #0] - 8003188: 4a04 ldr r2, [pc, #16] @ (800319c ) - 800318a: f443 6380 orr.w r3, r3, #1024 @ 0x400 - 800318e: 6013 str r3, [r2, #0] + 8003434: 4b05 ldr r3, [pc, #20] @ (800344c ) + 8003436: 681b ldr r3, [r3, #0] + 8003438: 4a04 ldr r2, [pc, #16] @ (800344c ) + 800343a: f443 6380 orr.w r3, r3, #1024 @ 0x400 + 800343e: 6013 str r3, [r2, #0] } } - 8003190: bf00 nop - 8003192: 46bd mov sp, r7 - 8003194: f85d 7b04 ldr.w r7, [sp], #4 - 8003198: 4770 bx lr - 800319a: bf00 nop - 800319c: 40023c00 .word 0x40023c00 + 8003440: bf00 nop + 8003442: 46bd mov sp, r7 + 8003444: f85d 7b04 ldr.w r7, [sp], #4 + 8003448: 4770 bx lr + 800344a: bf00 nop + 800344c: 40023c00 .word 0x40023c00 -080031a0 : +08003450 : * @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) { - 80031a0: b480 push {r7} - 80031a2: b089 sub sp, #36 @ 0x24 - 80031a4: af00 add r7, sp, #0 - 80031a6: 6078 str r0, [r7, #4] - 80031a8: 6039 str r1, [r7, #0] + 8003450: b480 push {r7} + 8003452: b089 sub sp, #36 @ 0x24 + 8003454: af00 add r7, sp, #0 + 8003456: 6078 str r0, [r7, #4] + 8003458: 6039 str r1, [r7, #0] uint32_t position; uint32_t ioposition = 0x00U; - 80031aa: 2300 movs r3, #0 - 80031ac: 617b str r3, [r7, #20] + 800345a: 2300 movs r3, #0 + 800345c: 617b str r3, [r7, #20] uint32_t iocurrent = 0x00U; - 80031ae: 2300 movs r3, #0 - 80031b0: 613b str r3, [r7, #16] + 800345e: 2300 movs r3, #0 + 8003460: 613b str r3, [r7, #16] uint32_t temp = 0x00U; - 80031b2: 2300 movs r3, #0 - 80031b4: 61bb str r3, [r7, #24] + 8003462: 2300 movs r3, #0 + 8003464: 61bb str r3, [r7, #24] 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 */ for(position = 0U; position < GPIO_NUMBER; position++) - 80031b6: 2300 movs r3, #0 - 80031b8: 61fb str r3, [r7, #28] - 80031ba: e165 b.n 8003488 + 8003466: 2300 movs r3, #0 + 8003468: 61fb str r3, [r7, #28] + 800346a: e165 b.n 8003738 { /* Get the IO position */ ioposition = 0x01U << position; - 80031bc: 2201 movs r2, #1 - 80031be: 69fb ldr r3, [r7, #28] - 80031c0: fa02 f303 lsl.w r3, r2, r3 - 80031c4: 617b str r3, [r7, #20] + 800346c: 2201 movs r2, #1 + 800346e: 69fb ldr r3, [r7, #28] + 8003470: fa02 f303 lsl.w r3, r2, r3 + 8003474: 617b str r3, [r7, #20] /* Get the current IO position */ iocurrent = (uint32_t)(GPIO_Init->Pin) & ioposition; - 80031c6: 683b ldr r3, [r7, #0] - 80031c8: 681b ldr r3, [r3, #0] - 80031ca: 697a ldr r2, [r7, #20] - 80031cc: 4013 ands r3, r2 - 80031ce: 613b str r3, [r7, #16] + 8003476: 683b ldr r3, [r7, #0] + 8003478: 681b ldr r3, [r3, #0] + 800347a: 697a ldr r2, [r7, #20] + 800347c: 4013 ands r3, r2 + 800347e: 613b str r3, [r7, #16] if(iocurrent == ioposition) - 80031d0: 693a ldr r2, [r7, #16] - 80031d2: 697b ldr r3, [r7, #20] - 80031d4: 429a cmp r2, r3 - 80031d6: f040 8154 bne.w 8003482 + 8003480: 693a ldr r2, [r7, #16] + 8003482: 697b ldr r3, [r7, #20] + 8003484: 429a cmp r2, r3 + 8003486: f040 8154 bne.w 8003732 { /*--------------------- GPIO Mode Configuration ------------------------*/ /* In case of Output or Alternate function mode selection */ if(((GPIO_Init->Mode & GPIO_MODE) == MODE_OUTPUT) || \ - 80031da: 683b ldr r3, [r7, #0] - 80031dc: 685b ldr r3, [r3, #4] - 80031de: f003 0303 and.w r3, r3, #3 - 80031e2: 2b01 cmp r3, #1 - 80031e4: d005 beq.n 80031f2 + 800348a: 683b ldr r3, [r7, #0] + 800348c: 685b ldr r3, [r3, #4] + 800348e: f003 0303 and.w r3, r3, #3 + 8003492: 2b01 cmp r3, #1 + 8003494: d005 beq.n 80034a2 (GPIO_Init->Mode & GPIO_MODE) == MODE_AF) - 80031e6: 683b ldr r3, [r7, #0] - 80031e8: 685b ldr r3, [r3, #4] - 80031ea: f003 0303 and.w r3, r3, #3 + 8003496: 683b ldr r3, [r7, #0] + 8003498: 685b ldr r3, [r3, #4] + 800349a: f003 0303 and.w r3, r3, #3 if(((GPIO_Init->Mode & GPIO_MODE) == MODE_OUTPUT) || \ - 80031ee: 2b02 cmp r3, #2 - 80031f0: d130 bne.n 8003254 + 800349e: 2b02 cmp r3, #2 + 80034a0: d130 bne.n 8003504 { /* Check the Speed parameter */ assert_param(IS_GPIO_SPEED(GPIO_Init->Speed)); /* Configure the IO Speed */ temp = GPIOx->OSPEEDR; - 80031f2: 687b ldr r3, [r7, #4] - 80031f4: 689b ldr r3, [r3, #8] - 80031f6: 61bb str r3, [r7, #24] + 80034a2: 687b ldr r3, [r7, #4] + 80034a4: 689b ldr r3, [r3, #8] + 80034a6: 61bb str r3, [r7, #24] temp &= ~(GPIO_OSPEEDER_OSPEEDR0 << (position * 2U)); - 80031f8: 69fb ldr r3, [r7, #28] - 80031fa: 005b lsls r3, r3, #1 - 80031fc: 2203 movs r2, #3 - 80031fe: fa02 f303 lsl.w r3, r2, r3 - 8003202: 43db mvns r3, r3 - 8003204: 69ba ldr r2, [r7, #24] - 8003206: 4013 ands r3, r2 - 8003208: 61bb str r3, [r7, #24] + 80034a8: 69fb ldr r3, [r7, #28] + 80034aa: 005b lsls r3, r3, #1 + 80034ac: 2203 movs r2, #3 + 80034ae: fa02 f303 lsl.w r3, r2, r3 + 80034b2: 43db mvns r3, r3 + 80034b4: 69ba ldr r2, [r7, #24] + 80034b6: 4013 ands r3, r2 + 80034b8: 61bb str r3, [r7, #24] temp |= (GPIO_Init->Speed << (position * 2U)); - 800320a: 683b ldr r3, [r7, #0] - 800320c: 68da ldr r2, [r3, #12] - 800320e: 69fb ldr r3, [r7, #28] - 8003210: 005b lsls r3, r3, #1 - 8003212: fa02 f303 lsl.w r3, r2, r3 - 8003216: 69ba ldr r2, [r7, #24] - 8003218: 4313 orrs r3, r2 - 800321a: 61bb str r3, [r7, #24] + 80034ba: 683b ldr r3, [r7, #0] + 80034bc: 68da ldr r2, [r3, #12] + 80034be: 69fb ldr r3, [r7, #28] + 80034c0: 005b lsls r3, r3, #1 + 80034c2: fa02 f303 lsl.w r3, r2, r3 + 80034c6: 69ba ldr r2, [r7, #24] + 80034c8: 4313 orrs r3, r2 + 80034ca: 61bb str r3, [r7, #24] GPIOx->OSPEEDR = temp; - 800321c: 687b ldr r3, [r7, #4] - 800321e: 69ba ldr r2, [r7, #24] - 8003220: 609a str r2, [r3, #8] + 80034cc: 687b ldr r3, [r7, #4] + 80034ce: 69ba ldr r2, [r7, #24] + 80034d0: 609a str r2, [r3, #8] /* Configure the IO Output Type */ temp = GPIOx->OTYPER; - 8003222: 687b ldr r3, [r7, #4] - 8003224: 685b ldr r3, [r3, #4] - 8003226: 61bb str r3, [r7, #24] + 80034d2: 687b ldr r3, [r7, #4] + 80034d4: 685b ldr r3, [r3, #4] + 80034d6: 61bb str r3, [r7, #24] temp &= ~(GPIO_OTYPER_OT_0 << position) ; - 8003228: 2201 movs r2, #1 - 800322a: 69fb ldr r3, [r7, #28] - 800322c: fa02 f303 lsl.w r3, r2, r3 - 8003230: 43db mvns r3, r3 - 8003232: 69ba ldr r2, [r7, #24] - 8003234: 4013 ands r3, r2 - 8003236: 61bb str r3, [r7, #24] + 80034d8: 2201 movs r2, #1 + 80034da: 69fb ldr r3, [r7, #28] + 80034dc: fa02 f303 lsl.w r3, r2, r3 + 80034e0: 43db mvns r3, r3 + 80034e2: 69ba ldr r2, [r7, #24] + 80034e4: 4013 ands r3, r2 + 80034e6: 61bb str r3, [r7, #24] temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position); - 8003238: 683b ldr r3, [r7, #0] - 800323a: 685b ldr r3, [r3, #4] - 800323c: 091b lsrs r3, r3, #4 - 800323e: f003 0201 and.w r2, r3, #1 - 8003242: 69fb ldr r3, [r7, #28] - 8003244: fa02 f303 lsl.w r3, r2, r3 - 8003248: 69ba ldr r2, [r7, #24] - 800324a: 4313 orrs r3, r2 - 800324c: 61bb str r3, [r7, #24] + 80034e8: 683b ldr r3, [r7, #0] + 80034ea: 685b ldr r3, [r3, #4] + 80034ec: 091b lsrs r3, r3, #4 + 80034ee: f003 0201 and.w r2, r3, #1 + 80034f2: 69fb ldr r3, [r7, #28] + 80034f4: fa02 f303 lsl.w r3, r2, r3 + 80034f8: 69ba ldr r2, [r7, #24] + 80034fa: 4313 orrs r3, r2 + 80034fc: 61bb str r3, [r7, #24] GPIOx->OTYPER = temp; - 800324e: 687b ldr r3, [r7, #4] - 8003250: 69ba ldr r2, [r7, #24] - 8003252: 605a str r2, [r3, #4] + 80034fe: 687b ldr r3, [r7, #4] + 8003500: 69ba ldr r2, [r7, #24] + 8003502: 605a str r2, [r3, #4] } if((GPIO_Init->Mode & GPIO_MODE) != MODE_ANALOG) - 8003254: 683b ldr r3, [r7, #0] - 8003256: 685b ldr r3, [r3, #4] - 8003258: f003 0303 and.w r3, r3, #3 - 800325c: 2b03 cmp r3, #3 - 800325e: d017 beq.n 8003290 + 8003504: 683b ldr r3, [r7, #0] + 8003506: 685b ldr r3, [r3, #4] + 8003508: f003 0303 and.w r3, r3, #3 + 800350c: 2b03 cmp r3, #3 + 800350e: d017 beq.n 8003540 { /* Check the parameters */ assert_param(IS_GPIO_PULL(GPIO_Init->Pull)); /* Activate the Pull-up or Pull down resistor for the current IO */ temp = GPIOx->PUPDR; - 8003260: 687b ldr r3, [r7, #4] - 8003262: 68db ldr r3, [r3, #12] - 8003264: 61bb str r3, [r7, #24] + 8003510: 687b ldr r3, [r7, #4] + 8003512: 68db ldr r3, [r3, #12] + 8003514: 61bb str r3, [r7, #24] temp &= ~(GPIO_PUPDR_PUPDR0 << (position * 2U)); - 8003266: 69fb ldr r3, [r7, #28] - 8003268: 005b lsls r3, r3, #1 - 800326a: 2203 movs r2, #3 - 800326c: fa02 f303 lsl.w r3, r2, r3 - 8003270: 43db mvns r3, r3 - 8003272: 69ba ldr r2, [r7, #24] - 8003274: 4013 ands r3, r2 - 8003276: 61bb str r3, [r7, #24] + 8003516: 69fb ldr r3, [r7, #28] + 8003518: 005b lsls r3, r3, #1 + 800351a: 2203 movs r2, #3 + 800351c: fa02 f303 lsl.w r3, r2, r3 + 8003520: 43db mvns r3, r3 + 8003522: 69ba ldr r2, [r7, #24] + 8003524: 4013 ands r3, r2 + 8003526: 61bb str r3, [r7, #24] temp |= ((GPIO_Init->Pull) << (position * 2U)); - 8003278: 683b ldr r3, [r7, #0] - 800327a: 689a ldr r2, [r3, #8] - 800327c: 69fb ldr r3, [r7, #28] - 800327e: 005b lsls r3, r3, #1 - 8003280: fa02 f303 lsl.w r3, r2, r3 - 8003284: 69ba ldr r2, [r7, #24] - 8003286: 4313 orrs r3, r2 - 8003288: 61bb str r3, [r7, #24] + 8003528: 683b ldr r3, [r7, #0] + 800352a: 689a ldr r2, [r3, #8] + 800352c: 69fb ldr r3, [r7, #28] + 800352e: 005b lsls r3, r3, #1 + 8003530: fa02 f303 lsl.w r3, r2, r3 + 8003534: 69ba ldr r2, [r7, #24] + 8003536: 4313 orrs r3, r2 + 8003538: 61bb str r3, [r7, #24] GPIOx->PUPDR = temp; - 800328a: 687b ldr r3, [r7, #4] - 800328c: 69ba ldr r2, [r7, #24] - 800328e: 60da str r2, [r3, #12] + 800353a: 687b ldr r3, [r7, #4] + 800353c: 69ba ldr r2, [r7, #24] + 800353e: 60da str r2, [r3, #12] } /* In case of Alternate function mode selection */ if((GPIO_Init->Mode & GPIO_MODE) == MODE_AF) - 8003290: 683b ldr r3, [r7, #0] - 8003292: 685b ldr r3, [r3, #4] - 8003294: f003 0303 and.w r3, r3, #3 - 8003298: 2b02 cmp r3, #2 - 800329a: d123 bne.n 80032e4 + 8003540: 683b ldr r3, [r7, #0] + 8003542: 685b ldr r3, [r3, #4] + 8003544: f003 0303 and.w r3, r3, #3 + 8003548: 2b02 cmp r3, #2 + 800354a: d123 bne.n 8003594 { /* Check the Alternate function parameter */ assert_param(IS_GPIO_AF(GPIO_Init->Alternate)); /* Configure Alternate function mapped with the current IO */ temp = GPIOx->AFR[position >> 3U]; - 800329c: 69fb ldr r3, [r7, #28] - 800329e: 08da lsrs r2, r3, #3 - 80032a0: 687b ldr r3, [r7, #4] - 80032a2: 3208 adds r2, #8 - 80032a4: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 80032a8: 61bb str r3, [r7, #24] + 800354c: 69fb ldr r3, [r7, #28] + 800354e: 08da lsrs r2, r3, #3 + 8003550: 687b ldr r3, [r7, #4] + 8003552: 3208 adds r2, #8 + 8003554: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8003558: 61bb str r3, [r7, #24] temp &= ~(0xFU << ((uint32_t)(position & 0x07U) * 4U)) ; - 80032aa: 69fb ldr r3, [r7, #28] - 80032ac: f003 0307 and.w r3, r3, #7 - 80032b0: 009b lsls r3, r3, #2 - 80032b2: 220f movs r2, #15 - 80032b4: fa02 f303 lsl.w r3, r2, r3 - 80032b8: 43db mvns r3, r3 - 80032ba: 69ba ldr r2, [r7, #24] - 80032bc: 4013 ands r3, r2 - 80032be: 61bb str r3, [r7, #24] + 800355a: 69fb ldr r3, [r7, #28] + 800355c: f003 0307 and.w r3, r3, #7 + 8003560: 009b lsls r3, r3, #2 + 8003562: 220f movs r2, #15 + 8003564: fa02 f303 lsl.w r3, r2, r3 + 8003568: 43db mvns r3, r3 + 800356a: 69ba ldr r2, [r7, #24] + 800356c: 4013 ands r3, r2 + 800356e: 61bb str r3, [r7, #24] temp |= ((uint32_t)(GPIO_Init->Alternate) << (((uint32_t)position & 0x07U) * 4U)); - 80032c0: 683b ldr r3, [r7, #0] - 80032c2: 691a ldr r2, [r3, #16] - 80032c4: 69fb ldr r3, [r7, #28] - 80032c6: f003 0307 and.w r3, r3, #7 - 80032ca: 009b lsls r3, r3, #2 - 80032cc: fa02 f303 lsl.w r3, r2, r3 - 80032d0: 69ba ldr r2, [r7, #24] - 80032d2: 4313 orrs r3, r2 - 80032d4: 61bb str r3, [r7, #24] + 8003570: 683b ldr r3, [r7, #0] + 8003572: 691a ldr r2, [r3, #16] + 8003574: 69fb ldr r3, [r7, #28] + 8003576: f003 0307 and.w r3, r3, #7 + 800357a: 009b lsls r3, r3, #2 + 800357c: fa02 f303 lsl.w r3, r2, r3 + 8003580: 69ba ldr r2, [r7, #24] + 8003582: 4313 orrs r3, r2 + 8003584: 61bb str r3, [r7, #24] GPIOx->AFR[position >> 3U] = temp; - 80032d6: 69fb ldr r3, [r7, #28] - 80032d8: 08da lsrs r2, r3, #3 - 80032da: 687b ldr r3, [r7, #4] - 80032dc: 3208 adds r2, #8 - 80032de: 69b9 ldr r1, [r7, #24] - 80032e0: f843 1022 str.w r1, [r3, r2, lsl #2] + 8003586: 69fb ldr r3, [r7, #28] + 8003588: 08da lsrs r2, r3, #3 + 800358a: 687b ldr r3, [r7, #4] + 800358c: 3208 adds r2, #8 + 800358e: 69b9 ldr r1, [r7, #24] + 8003590: f843 1022 str.w r1, [r3, r2, lsl #2] } /* Configure IO Direction mode (Input, Output, Alternate or Analog) */ temp = GPIOx->MODER; - 80032e4: 687b ldr r3, [r7, #4] - 80032e6: 681b ldr r3, [r3, #0] - 80032e8: 61bb str r3, [r7, #24] + 8003594: 687b ldr r3, [r7, #4] + 8003596: 681b ldr r3, [r3, #0] + 8003598: 61bb str r3, [r7, #24] temp &= ~(GPIO_MODER_MODER0 << (position * 2U)); - 80032ea: 69fb ldr r3, [r7, #28] - 80032ec: 005b lsls r3, r3, #1 - 80032ee: 2203 movs r2, #3 - 80032f0: fa02 f303 lsl.w r3, r2, r3 - 80032f4: 43db mvns r3, r3 - 80032f6: 69ba ldr r2, [r7, #24] - 80032f8: 4013 ands r3, r2 - 80032fa: 61bb str r3, [r7, #24] + 800359a: 69fb ldr r3, [r7, #28] + 800359c: 005b lsls r3, r3, #1 + 800359e: 2203 movs r2, #3 + 80035a0: fa02 f303 lsl.w r3, r2, r3 + 80035a4: 43db mvns r3, r3 + 80035a6: 69ba ldr r2, [r7, #24] + 80035a8: 4013 ands r3, r2 + 80035aa: 61bb str r3, [r7, #24] temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * 2U)); - 80032fc: 683b ldr r3, [r7, #0] - 80032fe: 685b ldr r3, [r3, #4] - 8003300: f003 0203 and.w r2, r3, #3 - 8003304: 69fb ldr r3, [r7, #28] - 8003306: 005b lsls r3, r3, #1 - 8003308: fa02 f303 lsl.w r3, r2, r3 - 800330c: 69ba ldr r2, [r7, #24] - 800330e: 4313 orrs r3, r2 - 8003310: 61bb str r3, [r7, #24] + 80035ac: 683b ldr r3, [r7, #0] + 80035ae: 685b ldr r3, [r3, #4] + 80035b0: f003 0203 and.w r2, r3, #3 + 80035b4: 69fb ldr r3, [r7, #28] + 80035b6: 005b lsls r3, r3, #1 + 80035b8: fa02 f303 lsl.w r3, r2, r3 + 80035bc: 69ba ldr r2, [r7, #24] + 80035be: 4313 orrs r3, r2 + 80035c0: 61bb str r3, [r7, #24] GPIOx->MODER = temp; - 8003312: 687b ldr r3, [r7, #4] - 8003314: 69ba ldr r2, [r7, #24] - 8003316: 601a str r2, [r3, #0] + 80035c2: 687b ldr r3, [r7, #4] + 80035c4: 69ba ldr r2, [r7, #24] + 80035c6: 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) - 8003318: 683b ldr r3, [r7, #0] - 800331a: 685b ldr r3, [r3, #4] - 800331c: f403 3340 and.w r3, r3, #196608 @ 0x30000 - 8003320: 2b00 cmp r3, #0 - 8003322: f000 80ae beq.w 8003482 + 80035c8: 683b ldr r3, [r7, #0] + 80035ca: 685b ldr r3, [r3, #4] + 80035cc: f403 3340 and.w r3, r3, #196608 @ 0x30000 + 80035d0: 2b00 cmp r3, #0 + 80035d2: f000 80ae beq.w 8003732 { /* Enable SYSCFG Clock */ __HAL_RCC_SYSCFG_CLK_ENABLE(); - 8003326: 2300 movs r3, #0 - 8003328: 60fb str r3, [r7, #12] - 800332a: 4b5d ldr r3, [pc, #372] @ (80034a0 ) - 800332c: 6c5b ldr r3, [r3, #68] @ 0x44 - 800332e: 4a5c ldr r2, [pc, #368] @ (80034a0 ) - 8003330: f443 4380 orr.w r3, r3, #16384 @ 0x4000 - 8003334: 6453 str r3, [r2, #68] @ 0x44 - 8003336: 4b5a ldr r3, [pc, #360] @ (80034a0 ) - 8003338: 6c5b ldr r3, [r3, #68] @ 0x44 - 800333a: f403 4380 and.w r3, r3, #16384 @ 0x4000 - 800333e: 60fb str r3, [r7, #12] - 8003340: 68fb ldr r3, [r7, #12] + 80035d6: 2300 movs r3, #0 + 80035d8: 60fb str r3, [r7, #12] + 80035da: 4b5d ldr r3, [pc, #372] @ (8003750 ) + 80035dc: 6c5b ldr r3, [r3, #68] @ 0x44 + 80035de: 4a5c ldr r2, [pc, #368] @ (8003750 ) + 80035e0: f443 4380 orr.w r3, r3, #16384 @ 0x4000 + 80035e4: 6453 str r3, [r2, #68] @ 0x44 + 80035e6: 4b5a ldr r3, [pc, #360] @ (8003750 ) + 80035e8: 6c5b ldr r3, [r3, #68] @ 0x44 + 80035ea: f403 4380 and.w r3, r3, #16384 @ 0x4000 + 80035ee: 60fb str r3, [r7, #12] + 80035f0: 68fb ldr r3, [r7, #12] temp = SYSCFG->EXTICR[position >> 2U]; - 8003342: 4a58 ldr r2, [pc, #352] @ (80034a4 ) - 8003344: 69fb ldr r3, [r7, #28] - 8003346: 089b lsrs r3, r3, #2 - 8003348: 3302 adds r3, #2 - 800334a: f852 3023 ldr.w r3, [r2, r3, lsl #2] - 800334e: 61bb str r3, [r7, #24] + 80035f2: 4a58 ldr r2, [pc, #352] @ (8003754 ) + 80035f4: 69fb ldr r3, [r7, #28] + 80035f6: 089b lsrs r3, r3, #2 + 80035f8: 3302 adds r3, #2 + 80035fa: f852 3023 ldr.w r3, [r2, r3, lsl #2] + 80035fe: 61bb str r3, [r7, #24] temp &= ~(0x0FU << (4U * (position & 0x03U))); - 8003350: 69fb ldr r3, [r7, #28] - 8003352: f003 0303 and.w r3, r3, #3 - 8003356: 009b lsls r3, r3, #2 - 8003358: 220f movs r2, #15 - 800335a: fa02 f303 lsl.w r3, r2, r3 - 800335e: 43db mvns r3, r3 - 8003360: 69ba ldr r2, [r7, #24] - 8003362: 4013 ands r3, r2 - 8003364: 61bb str r3, [r7, #24] + 8003600: 69fb ldr r3, [r7, #28] + 8003602: f003 0303 and.w r3, r3, #3 + 8003606: 009b lsls r3, r3, #2 + 8003608: 220f movs r2, #15 + 800360a: fa02 f303 lsl.w r3, r2, r3 + 800360e: 43db mvns r3, r3 + 8003610: 69ba ldr r2, [r7, #24] + 8003612: 4013 ands r3, r2 + 8003614: 61bb str r3, [r7, #24] temp |= ((uint32_t)(GPIO_GET_INDEX(GPIOx)) << (4U * (position & 0x03U))); - 8003366: 687b ldr r3, [r7, #4] - 8003368: 4a4f ldr r2, [pc, #316] @ (80034a8 ) - 800336a: 4293 cmp r3, r2 - 800336c: d025 beq.n 80033ba - 800336e: 687b ldr r3, [r7, #4] - 8003370: 4a4e ldr r2, [pc, #312] @ (80034ac ) - 8003372: 4293 cmp r3, r2 - 8003374: d01f beq.n 80033b6 - 8003376: 687b ldr r3, [r7, #4] - 8003378: 4a4d ldr r2, [pc, #308] @ (80034b0 ) - 800337a: 4293 cmp r3, r2 - 800337c: d019 beq.n 80033b2 - 800337e: 687b ldr r3, [r7, #4] - 8003380: 4a4c ldr r2, [pc, #304] @ (80034b4 ) - 8003382: 4293 cmp r3, r2 - 8003384: d013 beq.n 80033ae - 8003386: 687b ldr r3, [r7, #4] - 8003388: 4a4b ldr r2, [pc, #300] @ (80034b8 ) - 800338a: 4293 cmp r3, r2 - 800338c: d00d beq.n 80033aa - 800338e: 687b ldr r3, [r7, #4] - 8003390: 4a4a ldr r2, [pc, #296] @ (80034bc ) - 8003392: 4293 cmp r3, r2 - 8003394: d007 beq.n 80033a6 - 8003396: 687b ldr r3, [r7, #4] - 8003398: 4a49 ldr r2, [pc, #292] @ (80034c0 ) - 800339a: 4293 cmp r3, r2 - 800339c: d101 bne.n 80033a2 - 800339e: 2306 movs r3, #6 - 80033a0: e00c b.n 80033bc - 80033a2: 2307 movs r3, #7 - 80033a4: e00a b.n 80033bc - 80033a6: 2305 movs r3, #5 - 80033a8: e008 b.n 80033bc - 80033aa: 2304 movs r3, #4 - 80033ac: e006 b.n 80033bc - 80033ae: 2303 movs r3, #3 - 80033b0: e004 b.n 80033bc - 80033b2: 2302 movs r3, #2 - 80033b4: e002 b.n 80033bc - 80033b6: 2301 movs r3, #1 - 80033b8: e000 b.n 80033bc - 80033ba: 2300 movs r3, #0 - 80033bc: 69fa ldr r2, [r7, #28] - 80033be: f002 0203 and.w r2, r2, #3 - 80033c2: 0092 lsls r2, r2, #2 - 80033c4: 4093 lsls r3, r2 - 80033c6: 69ba ldr r2, [r7, #24] - 80033c8: 4313 orrs r3, r2 - 80033ca: 61bb str r3, [r7, #24] + 8003616: 687b ldr r3, [r7, #4] + 8003618: 4a4f ldr r2, [pc, #316] @ (8003758 ) + 800361a: 4293 cmp r3, r2 + 800361c: d025 beq.n 800366a + 800361e: 687b ldr r3, [r7, #4] + 8003620: 4a4e ldr r2, [pc, #312] @ (800375c ) + 8003622: 4293 cmp r3, r2 + 8003624: d01f beq.n 8003666 + 8003626: 687b ldr r3, [r7, #4] + 8003628: 4a4d ldr r2, [pc, #308] @ (8003760 ) + 800362a: 4293 cmp r3, r2 + 800362c: d019 beq.n 8003662 + 800362e: 687b ldr r3, [r7, #4] + 8003630: 4a4c ldr r2, [pc, #304] @ (8003764 ) + 8003632: 4293 cmp r3, r2 + 8003634: d013 beq.n 800365e + 8003636: 687b ldr r3, [r7, #4] + 8003638: 4a4b ldr r2, [pc, #300] @ (8003768 ) + 800363a: 4293 cmp r3, r2 + 800363c: d00d beq.n 800365a + 800363e: 687b ldr r3, [r7, #4] + 8003640: 4a4a ldr r2, [pc, #296] @ (800376c ) + 8003642: 4293 cmp r3, r2 + 8003644: d007 beq.n 8003656 + 8003646: 687b ldr r3, [r7, #4] + 8003648: 4a49 ldr r2, [pc, #292] @ (8003770 ) + 800364a: 4293 cmp r3, r2 + 800364c: d101 bne.n 8003652 + 800364e: 2306 movs r3, #6 + 8003650: e00c b.n 800366c + 8003652: 2307 movs r3, #7 + 8003654: e00a b.n 800366c + 8003656: 2305 movs r3, #5 + 8003658: e008 b.n 800366c + 800365a: 2304 movs r3, #4 + 800365c: e006 b.n 800366c + 800365e: 2303 movs r3, #3 + 8003660: e004 b.n 800366c + 8003662: 2302 movs r3, #2 + 8003664: e002 b.n 800366c + 8003666: 2301 movs r3, #1 + 8003668: e000 b.n 800366c + 800366a: 2300 movs r3, #0 + 800366c: 69fa ldr r2, [r7, #28] + 800366e: f002 0203 and.w r2, r2, #3 + 8003672: 0092 lsls r2, r2, #2 + 8003674: 4093 lsls r3, r2 + 8003676: 69ba ldr r2, [r7, #24] + 8003678: 4313 orrs r3, r2 + 800367a: 61bb str r3, [r7, #24] SYSCFG->EXTICR[position >> 2U] = temp; - 80033cc: 4935 ldr r1, [pc, #212] @ (80034a4 ) - 80033ce: 69fb ldr r3, [r7, #28] - 80033d0: 089b lsrs r3, r3, #2 - 80033d2: 3302 adds r3, #2 - 80033d4: 69ba ldr r2, [r7, #24] - 80033d6: f841 2023 str.w r2, [r1, r3, lsl #2] + 800367c: 4935 ldr r1, [pc, #212] @ (8003754 ) + 800367e: 69fb ldr r3, [r7, #28] + 8003680: 089b lsrs r3, r3, #2 + 8003682: 3302 adds r3, #2 + 8003684: 69ba ldr r2, [r7, #24] + 8003686: f841 2023 str.w r2, [r1, r3, lsl #2] /* Clear Rising Falling edge configuration */ temp = EXTI->RTSR; - 80033da: 4b3a ldr r3, [pc, #232] @ (80034c4 ) - 80033dc: 689b ldr r3, [r3, #8] - 80033de: 61bb str r3, [r7, #24] + 800368a: 4b3a ldr r3, [pc, #232] @ (8003774 ) + 800368c: 689b ldr r3, [r3, #8] + 800368e: 61bb str r3, [r7, #24] temp &= ~((uint32_t)iocurrent); - 80033e0: 693b ldr r3, [r7, #16] - 80033e2: 43db mvns r3, r3 - 80033e4: 69ba ldr r2, [r7, #24] - 80033e6: 4013 ands r3, r2 - 80033e8: 61bb str r3, [r7, #24] + 8003690: 693b ldr r3, [r7, #16] + 8003692: 43db mvns r3, r3 + 8003694: 69ba ldr r2, [r7, #24] + 8003696: 4013 ands r3, r2 + 8003698: 61bb str r3, [r7, #24] if((GPIO_Init->Mode & TRIGGER_RISING) != 0x00U) - 80033ea: 683b ldr r3, [r7, #0] - 80033ec: 685b ldr r3, [r3, #4] - 80033ee: f403 1380 and.w r3, r3, #1048576 @ 0x100000 - 80033f2: 2b00 cmp r3, #0 - 80033f4: d003 beq.n 80033fe + 800369a: 683b ldr r3, [r7, #0] + 800369c: 685b ldr r3, [r3, #4] + 800369e: f403 1380 and.w r3, r3, #1048576 @ 0x100000 + 80036a2: 2b00 cmp r3, #0 + 80036a4: d003 beq.n 80036ae { temp |= iocurrent; - 80033f6: 69ba ldr r2, [r7, #24] - 80033f8: 693b ldr r3, [r7, #16] - 80033fa: 4313 orrs r3, r2 - 80033fc: 61bb str r3, [r7, #24] + 80036a6: 69ba ldr r2, [r7, #24] + 80036a8: 693b ldr r3, [r7, #16] + 80036aa: 4313 orrs r3, r2 + 80036ac: 61bb str r3, [r7, #24] } EXTI->RTSR = temp; - 80033fe: 4a31 ldr r2, [pc, #196] @ (80034c4 ) - 8003400: 69bb ldr r3, [r7, #24] - 8003402: 6093 str r3, [r2, #8] + 80036ae: 4a31 ldr r2, [pc, #196] @ (8003774 ) + 80036b0: 69bb ldr r3, [r7, #24] + 80036b2: 6093 str r3, [r2, #8] temp = EXTI->FTSR; - 8003404: 4b2f ldr r3, [pc, #188] @ (80034c4 ) - 8003406: 68db ldr r3, [r3, #12] - 8003408: 61bb str r3, [r7, #24] + 80036b4: 4b2f ldr r3, [pc, #188] @ (8003774 ) + 80036b6: 68db ldr r3, [r3, #12] + 80036b8: 61bb str r3, [r7, #24] temp &= ~((uint32_t)iocurrent); - 800340a: 693b ldr r3, [r7, #16] - 800340c: 43db mvns r3, r3 - 800340e: 69ba ldr r2, [r7, #24] - 8003410: 4013 ands r3, r2 - 8003412: 61bb str r3, [r7, #24] + 80036ba: 693b ldr r3, [r7, #16] + 80036bc: 43db mvns r3, r3 + 80036be: 69ba ldr r2, [r7, #24] + 80036c0: 4013 ands r3, r2 + 80036c2: 61bb str r3, [r7, #24] if((GPIO_Init->Mode & TRIGGER_FALLING) != 0x00U) - 8003414: 683b ldr r3, [r7, #0] - 8003416: 685b ldr r3, [r3, #4] - 8003418: f403 1300 and.w r3, r3, #2097152 @ 0x200000 - 800341c: 2b00 cmp r3, #0 - 800341e: d003 beq.n 8003428 + 80036c4: 683b ldr r3, [r7, #0] + 80036c6: 685b ldr r3, [r3, #4] + 80036c8: f403 1300 and.w r3, r3, #2097152 @ 0x200000 + 80036cc: 2b00 cmp r3, #0 + 80036ce: d003 beq.n 80036d8 { temp |= iocurrent; - 8003420: 69ba ldr r2, [r7, #24] - 8003422: 693b ldr r3, [r7, #16] - 8003424: 4313 orrs r3, r2 - 8003426: 61bb str r3, [r7, #24] + 80036d0: 69ba ldr r2, [r7, #24] + 80036d2: 693b ldr r3, [r7, #16] + 80036d4: 4313 orrs r3, r2 + 80036d6: 61bb str r3, [r7, #24] } EXTI->FTSR = temp; - 8003428: 4a26 ldr r2, [pc, #152] @ (80034c4 ) - 800342a: 69bb ldr r3, [r7, #24] - 800342c: 60d3 str r3, [r2, #12] + 80036d8: 4a26 ldr r2, [pc, #152] @ (8003774 ) + 80036da: 69bb ldr r3, [r7, #24] + 80036dc: 60d3 str r3, [r2, #12] temp = EXTI->EMR; - 800342e: 4b25 ldr r3, [pc, #148] @ (80034c4 ) - 8003430: 685b ldr r3, [r3, #4] - 8003432: 61bb str r3, [r7, #24] + 80036de: 4b25 ldr r3, [pc, #148] @ (8003774 ) + 80036e0: 685b ldr r3, [r3, #4] + 80036e2: 61bb str r3, [r7, #24] temp &= ~((uint32_t)iocurrent); - 8003434: 693b ldr r3, [r7, #16] - 8003436: 43db mvns r3, r3 - 8003438: 69ba ldr r2, [r7, #24] - 800343a: 4013 ands r3, r2 - 800343c: 61bb str r3, [r7, #24] + 80036e4: 693b ldr r3, [r7, #16] + 80036e6: 43db mvns r3, r3 + 80036e8: 69ba ldr r2, [r7, #24] + 80036ea: 4013 ands r3, r2 + 80036ec: 61bb str r3, [r7, #24] if((GPIO_Init->Mode & EXTI_EVT) != 0x00U) - 800343e: 683b ldr r3, [r7, #0] - 8003440: 685b ldr r3, [r3, #4] - 8003442: f403 3300 and.w r3, r3, #131072 @ 0x20000 - 8003446: 2b00 cmp r3, #0 - 8003448: d003 beq.n 8003452 + 80036ee: 683b ldr r3, [r7, #0] + 80036f0: 685b ldr r3, [r3, #4] + 80036f2: f403 3300 and.w r3, r3, #131072 @ 0x20000 + 80036f6: 2b00 cmp r3, #0 + 80036f8: d003 beq.n 8003702 { temp |= iocurrent; - 800344a: 69ba ldr r2, [r7, #24] - 800344c: 693b ldr r3, [r7, #16] - 800344e: 4313 orrs r3, r2 - 8003450: 61bb str r3, [r7, #24] + 80036fa: 69ba ldr r2, [r7, #24] + 80036fc: 693b ldr r3, [r7, #16] + 80036fe: 4313 orrs r3, r2 + 8003700: 61bb str r3, [r7, #24] } EXTI->EMR = temp; - 8003452: 4a1c ldr r2, [pc, #112] @ (80034c4 ) - 8003454: 69bb ldr r3, [r7, #24] - 8003456: 6053 str r3, [r2, #4] + 8003702: 4a1c ldr r2, [pc, #112] @ (8003774 ) + 8003704: 69bb ldr r3, [r7, #24] + 8003706: 6053 str r3, [r2, #4] /* Clear EXTI line configuration */ temp = EXTI->IMR; - 8003458: 4b1a ldr r3, [pc, #104] @ (80034c4 ) - 800345a: 681b ldr r3, [r3, #0] - 800345c: 61bb str r3, [r7, #24] + 8003708: 4b1a ldr r3, [pc, #104] @ (8003774 ) + 800370a: 681b ldr r3, [r3, #0] + 800370c: 61bb str r3, [r7, #24] temp &= ~((uint32_t)iocurrent); - 800345e: 693b ldr r3, [r7, #16] - 8003460: 43db mvns r3, r3 - 8003462: 69ba ldr r2, [r7, #24] - 8003464: 4013 ands r3, r2 - 8003466: 61bb str r3, [r7, #24] + 800370e: 693b ldr r3, [r7, #16] + 8003710: 43db mvns r3, r3 + 8003712: 69ba ldr r2, [r7, #24] + 8003714: 4013 ands r3, r2 + 8003716: 61bb str r3, [r7, #24] if((GPIO_Init->Mode & EXTI_IT) != 0x00U) - 8003468: 683b ldr r3, [r7, #0] - 800346a: 685b ldr r3, [r3, #4] - 800346c: f403 3380 and.w r3, r3, #65536 @ 0x10000 - 8003470: 2b00 cmp r3, #0 - 8003472: d003 beq.n 800347c + 8003718: 683b ldr r3, [r7, #0] + 800371a: 685b ldr r3, [r3, #4] + 800371c: f403 3380 and.w r3, r3, #65536 @ 0x10000 + 8003720: 2b00 cmp r3, #0 + 8003722: d003 beq.n 800372c { temp |= iocurrent; - 8003474: 69ba ldr r2, [r7, #24] - 8003476: 693b ldr r3, [r7, #16] - 8003478: 4313 orrs r3, r2 - 800347a: 61bb str r3, [r7, #24] + 8003724: 69ba ldr r2, [r7, #24] + 8003726: 693b ldr r3, [r7, #16] + 8003728: 4313 orrs r3, r2 + 800372a: 61bb str r3, [r7, #24] } EXTI->IMR = temp; - 800347c: 4a11 ldr r2, [pc, #68] @ (80034c4 ) - 800347e: 69bb ldr r3, [r7, #24] - 8003480: 6013 str r3, [r2, #0] + 800372c: 4a11 ldr r2, [pc, #68] @ (8003774 ) + 800372e: 69bb ldr r3, [r7, #24] + 8003730: 6013 str r3, [r2, #0] for(position = 0U; position < GPIO_NUMBER; position++) - 8003482: 69fb ldr r3, [r7, #28] - 8003484: 3301 adds r3, #1 - 8003486: 61fb str r3, [r7, #28] - 8003488: 69fb ldr r3, [r7, #28] - 800348a: 2b0f cmp r3, #15 - 800348c: f67f ae96 bls.w 80031bc + 8003732: 69fb ldr r3, [r7, #28] + 8003734: 3301 adds r3, #1 + 8003736: 61fb str r3, [r7, #28] + 8003738: 69fb ldr r3, [r7, #28] + 800373a: 2b0f cmp r3, #15 + 800373c: f67f ae96 bls.w 800346c } } } } - 8003490: bf00 nop - 8003492: bf00 nop - 8003494: 3724 adds r7, #36 @ 0x24 - 8003496: 46bd mov sp, r7 - 8003498: f85d 7b04 ldr.w r7, [sp], #4 - 800349c: 4770 bx lr - 800349e: bf00 nop - 80034a0: 40023800 .word 0x40023800 - 80034a4: 40013800 .word 0x40013800 - 80034a8: 40020000 .word 0x40020000 - 80034ac: 40020400 .word 0x40020400 - 80034b0: 40020800 .word 0x40020800 - 80034b4: 40020c00 .word 0x40020c00 - 80034b8: 40021000 .word 0x40021000 - 80034bc: 40021400 .word 0x40021400 - 80034c0: 40021800 .word 0x40021800 - 80034c4: 40013c00 .word 0x40013c00 + 8003740: bf00 nop + 8003742: bf00 nop + 8003744: 3724 adds r7, #36 @ 0x24 + 8003746: 46bd mov sp, r7 + 8003748: f85d 7b04 ldr.w r7, [sp], #4 + 800374c: 4770 bx lr + 800374e: bf00 nop + 8003750: 40023800 .word 0x40023800 + 8003754: 40013800 .word 0x40013800 + 8003758: 40020000 .word 0x40020000 + 800375c: 40020400 .word 0x40020400 + 8003760: 40020800 .word 0x40020800 + 8003764: 40020c00 .word 0x40020c00 + 8003768: 40021000 .word 0x40021000 + 800376c: 40021400 .word 0x40021400 + 8003770: 40021800 .word 0x40021800 + 8003774: 40013c00 .word 0x40013c00 -080034c8 : +08003778 : * @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) { - 80034c8: b480 push {r7} - 80034ca: b083 sub sp, #12 - 80034cc: af00 add r7, sp, #0 - 80034ce: 6078 str r0, [r7, #4] - 80034d0: 460b mov r3, r1 - 80034d2: 807b strh r3, [r7, #2] - 80034d4: 4613 mov r3, r2 - 80034d6: 707b strb r3, [r7, #1] + 8003778: b480 push {r7} + 800377a: b083 sub sp, #12 + 800377c: af00 add r7, sp, #0 + 800377e: 6078 str r0, [r7, #4] + 8003780: 460b mov r3, r1 + 8003782: 807b strh r3, [r7, #2] + 8003784: 4613 mov r3, r2 + 8003786: 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) - 80034d8: 787b ldrb r3, [r7, #1] - 80034da: 2b00 cmp r3, #0 - 80034dc: d003 beq.n 80034e6 + 8003788: 787b ldrb r3, [r7, #1] + 800378a: 2b00 cmp r3, #0 + 800378c: d003 beq.n 8003796 { GPIOx->BSRR = GPIO_Pin; - 80034de: 887a ldrh r2, [r7, #2] - 80034e0: 687b ldr r3, [r7, #4] - 80034e2: 619a str r2, [r3, #24] + 800378e: 887a ldrh r2, [r7, #2] + 8003790: 687b ldr r3, [r7, #4] + 8003792: 619a str r2, [r3, #24] } else { GPIOx->BSRR = (uint32_t)GPIO_Pin << 16U; } } - 80034e4: e003 b.n 80034ee + 8003794: e003 b.n 800379e GPIOx->BSRR = (uint32_t)GPIO_Pin << 16U; - 80034e6: 887b ldrh r3, [r7, #2] - 80034e8: 041a lsls r2, r3, #16 - 80034ea: 687b ldr r3, [r7, #4] - 80034ec: 619a str r2, [r3, #24] + 8003796: 887b ldrh r3, [r7, #2] + 8003798: 041a lsls r2, r3, #16 + 800379a: 687b ldr r3, [r7, #4] + 800379c: 619a str r2, [r3, #24] } - 80034ee: bf00 nop - 80034f0: 370c adds r7, #12 - 80034f2: 46bd mov sp, r7 - 80034f4: f85d 7b04 ldr.w r7, [sp], #4 - 80034f8: 4770 bx lr + 800379e: bf00 nop + 80037a0: 370c adds r7, #12 + 80037a2: 46bd mov sp, r7 + 80037a4: f85d 7b04 ldr.w r7, [sp], #4 + 80037a8: 4770 bx lr ... -080034fc : +080037ac : * During the Over-drive switch activation, no peripheral clocks should be enabled. * The peripheral clocks must be enabled once the Over-drive mode is activated. * @retval HAL status */ HAL_StatusTypeDef HAL_PWREx_EnableOverDrive(void) { - 80034fc: b580 push {r7, lr} - 80034fe: b082 sub sp, #8 - 8003500: af00 add r7, sp, #0 + 80037ac: b580 push {r7, lr} + 80037ae: b082 sub sp, #8 + 80037b0: af00 add r7, sp, #0 uint32_t tickstart = 0U; - 8003502: 2300 movs r3, #0 - 8003504: 607b str r3, [r7, #4] + 80037b2: 2300 movs r3, #0 + 80037b4: 607b str r3, [r7, #4] __HAL_RCC_PWR_CLK_ENABLE(); - 8003506: 2300 movs r3, #0 - 8003508: 603b str r3, [r7, #0] - 800350a: 4b20 ldr r3, [pc, #128] @ (800358c ) - 800350c: 6c1b ldr r3, [r3, #64] @ 0x40 - 800350e: 4a1f ldr r2, [pc, #124] @ (800358c ) - 8003510: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 - 8003514: 6413 str r3, [r2, #64] @ 0x40 - 8003516: 4b1d ldr r3, [pc, #116] @ (800358c ) - 8003518: 6c1b ldr r3, [r3, #64] @ 0x40 - 800351a: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 - 800351e: 603b str r3, [r7, #0] - 8003520: 683b ldr r3, [r7, #0] + 80037b6: 2300 movs r3, #0 + 80037b8: 603b str r3, [r7, #0] + 80037ba: 4b20 ldr r3, [pc, #128] @ (800383c ) + 80037bc: 6c1b ldr r3, [r3, #64] @ 0x40 + 80037be: 4a1f ldr r2, [pc, #124] @ (800383c ) + 80037c0: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 + 80037c4: 6413 str r3, [r2, #64] @ 0x40 + 80037c6: 4b1d ldr r3, [pc, #116] @ (800383c ) + 80037c8: 6c1b ldr r3, [r3, #64] @ 0x40 + 80037ca: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 + 80037ce: 603b str r3, [r7, #0] + 80037d0: 683b ldr r3, [r7, #0] /* Enable the Over-drive to extend the clock frequency to 180 Mhz */ __HAL_PWR_OVERDRIVE_ENABLE(); - 8003522: 4b1b ldr r3, [pc, #108] @ (8003590 ) - 8003524: 2201 movs r2, #1 - 8003526: 601a str r2, [r3, #0] + 80037d2: 4b1b ldr r3, [pc, #108] @ (8003840 ) + 80037d4: 2201 movs r2, #1 + 80037d6: 601a str r2, [r3, #0] /* Get tick */ tickstart = HAL_GetTick(); - 8003528: f7fe fb90 bl 8001c4c - 800352c: 6078 str r0, [r7, #4] + 80037d8: f7fe fa94 bl 8001d04 + 80037dc: 6078 str r0, [r7, #4] while(!__HAL_PWR_GET_FLAG(PWR_FLAG_ODRDY)) - 800352e: e009 b.n 8003544 + 80037de: e009 b.n 80037f4 { if((HAL_GetTick() - tickstart) > PWR_OVERDRIVE_TIMEOUT_VALUE) - 8003530: f7fe fb8c bl 8001c4c - 8003534: 4602 mov r2, r0 - 8003536: 687b ldr r3, [r7, #4] - 8003538: 1ad3 subs r3, r2, r3 - 800353a: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8 - 800353e: d901 bls.n 8003544 + 80037e0: f7fe fa90 bl 8001d04 + 80037e4: 4602 mov r2, r0 + 80037e6: 687b ldr r3, [r7, #4] + 80037e8: 1ad3 subs r3, r2, r3 + 80037ea: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8 + 80037ee: d901 bls.n 80037f4 { return HAL_TIMEOUT; - 8003540: 2303 movs r3, #3 - 8003542: e01f b.n 8003584 + 80037f0: 2303 movs r3, #3 + 80037f2: e01f b.n 8003834 while(!__HAL_PWR_GET_FLAG(PWR_FLAG_ODRDY)) - 8003544: 4b13 ldr r3, [pc, #76] @ (8003594 ) - 8003546: 685b ldr r3, [r3, #4] - 8003548: f403 3380 and.w r3, r3, #65536 @ 0x10000 - 800354c: f5b3 3f80 cmp.w r3, #65536 @ 0x10000 - 8003550: d1ee bne.n 8003530 + 80037f4: 4b13 ldr r3, [pc, #76] @ (8003844 ) + 80037f6: 685b ldr r3, [r3, #4] + 80037f8: f403 3380 and.w r3, r3, #65536 @ 0x10000 + 80037fc: f5b3 3f80 cmp.w r3, #65536 @ 0x10000 + 8003800: d1ee bne.n 80037e0 } } /* Enable the Over-drive switch */ __HAL_PWR_OVERDRIVESWITCHING_ENABLE(); - 8003552: 4b11 ldr r3, [pc, #68] @ (8003598 ) - 8003554: 2201 movs r2, #1 - 8003556: 601a str r2, [r3, #0] + 8003802: 4b11 ldr r3, [pc, #68] @ (8003848 ) + 8003804: 2201 movs r2, #1 + 8003806: 601a str r2, [r3, #0] /* Get tick */ tickstart = HAL_GetTick(); - 8003558: f7fe fb78 bl 8001c4c - 800355c: 6078 str r0, [r7, #4] + 8003808: f7fe fa7c bl 8001d04 + 800380c: 6078 str r0, [r7, #4] while(!__HAL_PWR_GET_FLAG(PWR_FLAG_ODSWRDY)) - 800355e: e009 b.n 8003574 + 800380e: e009 b.n 8003824 { if((HAL_GetTick() - tickstart ) > PWR_OVERDRIVE_TIMEOUT_VALUE) - 8003560: f7fe fb74 bl 8001c4c - 8003564: 4602 mov r2, r0 - 8003566: 687b ldr r3, [r7, #4] - 8003568: 1ad3 subs r3, r2, r3 - 800356a: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8 - 800356e: d901 bls.n 8003574 + 8003810: f7fe fa78 bl 8001d04 + 8003814: 4602 mov r2, r0 + 8003816: 687b ldr r3, [r7, #4] + 8003818: 1ad3 subs r3, r2, r3 + 800381a: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8 + 800381e: d901 bls.n 8003824 { return HAL_TIMEOUT; - 8003570: 2303 movs r3, #3 - 8003572: e007 b.n 8003584 + 8003820: 2303 movs r3, #3 + 8003822: e007 b.n 8003834 while(!__HAL_PWR_GET_FLAG(PWR_FLAG_ODSWRDY)) - 8003574: 4b07 ldr r3, [pc, #28] @ (8003594 ) - 8003576: 685b ldr r3, [r3, #4] - 8003578: f403 3300 and.w r3, r3, #131072 @ 0x20000 - 800357c: f5b3 3f00 cmp.w r3, #131072 @ 0x20000 - 8003580: d1ee bne.n 8003560 + 8003824: 4b07 ldr r3, [pc, #28] @ (8003844 ) + 8003826: 685b ldr r3, [r3, #4] + 8003828: f403 3300 and.w r3, r3, #131072 @ 0x20000 + 800382c: f5b3 3f00 cmp.w r3, #131072 @ 0x20000 + 8003830: d1ee bne.n 8003810 } } return HAL_OK; - 8003582: 2300 movs r3, #0 + 8003832: 2300 movs r3, #0 } - 8003584: 4618 mov r0, r3 - 8003586: 3708 adds r7, #8 - 8003588: 46bd mov sp, r7 - 800358a: bd80 pop {r7, pc} - 800358c: 40023800 .word 0x40023800 - 8003590: 420e0040 .word 0x420e0040 - 8003594: 40007000 .word 0x40007000 - 8003598: 420e0044 .word 0x420e0044 + 8003834: 4618 mov r0, r3 + 8003836: 3708 adds r7, #8 + 8003838: 46bd mov sp, r7 + 800383a: bd80 pop {r7, pc} + 800383c: 40023800 .word 0x40023800 + 8003840: 420e0040 .word 0x420e0040 + 8003844: 40007000 .word 0x40007000 + 8003848: 420e0044 .word 0x420e0044 -0800359c : +0800384c : * 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) { - 800359c: b580 push {r7, lr} - 800359e: b084 sub sp, #16 - 80035a0: af00 add r7, sp, #0 - 80035a2: 6078 str r0, [r7, #4] - 80035a4: 6039 str r1, [r7, #0] + 800384c: b580 push {r7, lr} + 800384e: b084 sub sp, #16 + 8003850: af00 add r7, sp, #0 + 8003852: 6078 str r0, [r7, #4] + 8003854: 6039 str r1, [r7, #0] uint32_t tickstart; /* Check Null pointer */ if(RCC_ClkInitStruct == NULL) - 80035a6: 687b ldr r3, [r7, #4] - 80035a8: 2b00 cmp r3, #0 - 80035aa: d101 bne.n 80035b0 + 8003856: 687b ldr r3, [r7, #4] + 8003858: 2b00 cmp r3, #0 + 800385a: d101 bne.n 8003860 { return HAL_ERROR; - 80035ac: 2301 movs r3, #1 - 80035ae: e0cc b.n 800374a + 800385c: 2301 movs r3, #1 + 800385e: e0cc b.n 80039fa /* 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()) - 80035b0: 4b68 ldr r3, [pc, #416] @ (8003754 ) - 80035b2: 681b ldr r3, [r3, #0] - 80035b4: f003 030f and.w r3, r3, #15 - 80035b8: 683a ldr r2, [r7, #0] - 80035ba: 429a cmp r2, r3 - 80035bc: d90c bls.n 80035d8 + 8003860: 4b68 ldr r3, [pc, #416] @ (8003a04 ) + 8003862: 681b ldr r3, [r3, #0] + 8003864: f003 030f and.w r3, r3, #15 + 8003868: 683a ldr r2, [r7, #0] + 800386a: 429a cmp r2, r3 + 800386c: d90c bls.n 8003888 { /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */ __HAL_FLASH_SET_LATENCY(FLatency); - 80035be: 4b65 ldr r3, [pc, #404] @ (8003754 ) - 80035c0: 683a ldr r2, [r7, #0] - 80035c2: b2d2 uxtb r2, r2 - 80035c4: 701a strb r2, [r3, #0] + 800386e: 4b65 ldr r3, [pc, #404] @ (8003a04 ) + 8003870: 683a ldr r2, [r7, #0] + 8003872: b2d2 uxtb r2, r2 + 8003874: 701a strb r2, [r3, #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) - 80035c6: 4b63 ldr r3, [pc, #396] @ (8003754 ) - 80035c8: 681b ldr r3, [r3, #0] - 80035ca: f003 030f and.w r3, r3, #15 - 80035ce: 683a ldr r2, [r7, #0] - 80035d0: 429a cmp r2, r3 - 80035d2: d001 beq.n 80035d8 + 8003876: 4b63 ldr r3, [pc, #396] @ (8003a04 ) + 8003878: 681b ldr r3, [r3, #0] + 800387a: f003 030f and.w r3, r3, #15 + 800387e: 683a ldr r2, [r7, #0] + 8003880: 429a cmp r2, r3 + 8003882: d001 beq.n 8003888 { return HAL_ERROR; - 80035d4: 2301 movs r3, #1 - 80035d6: e0b8 b.n 800374a + 8003884: 2301 movs r3, #1 + 8003886: e0b8 b.n 80039fa } } /*-------------------------- HCLK Configuration --------------------------*/ if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK) - 80035d8: 687b ldr r3, [r7, #4] - 80035da: 681b ldr r3, [r3, #0] - 80035dc: f003 0302 and.w r3, r3, #2 - 80035e0: 2b00 cmp r3, #0 - 80035e2: d020 beq.n 8003626 + 8003888: 687b ldr r3, [r7, #4] + 800388a: 681b ldr r3, [r3, #0] + 800388c: f003 0302 and.w r3, r3, #2 + 8003890: 2b00 cmp r3, #0 + 8003892: d020 beq.n 80038d6 { /* Set the highest APBx dividers 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) - 80035e4: 687b ldr r3, [r7, #4] - 80035e6: 681b ldr r3, [r3, #0] - 80035e8: f003 0304 and.w r3, r3, #4 - 80035ec: 2b00 cmp r3, #0 - 80035ee: d005 beq.n 80035fc + 8003894: 687b ldr r3, [r7, #4] + 8003896: 681b ldr r3, [r3, #0] + 8003898: f003 0304 and.w r3, r3, #4 + 800389c: 2b00 cmp r3, #0 + 800389e: d005 beq.n 80038ac { MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_HCLK_DIV16); - 80035f0: 4b59 ldr r3, [pc, #356] @ (8003758 ) - 80035f2: 689b ldr r3, [r3, #8] - 80035f4: 4a58 ldr r2, [pc, #352] @ (8003758 ) - 80035f6: f443 53e0 orr.w r3, r3, #7168 @ 0x1c00 - 80035fa: 6093 str r3, [r2, #8] + 80038a0: 4b59 ldr r3, [pc, #356] @ (8003a08 ) + 80038a2: 689b ldr r3, [r3, #8] + 80038a4: 4a58 ldr r2, [pc, #352] @ (8003a08 ) + 80038a6: f443 53e0 orr.w r3, r3, #7168 @ 0x1c00 + 80038aa: 6093 str r3, [r2, #8] } if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2) - 80035fc: 687b ldr r3, [r7, #4] - 80035fe: 681b ldr r3, [r3, #0] - 8003600: f003 0308 and.w r3, r3, #8 - 8003604: 2b00 cmp r3, #0 - 8003606: d005 beq.n 8003614 + 80038ac: 687b ldr r3, [r7, #4] + 80038ae: 681b ldr r3, [r3, #0] + 80038b0: f003 0308 and.w r3, r3, #8 + 80038b4: 2b00 cmp r3, #0 + 80038b6: d005 beq.n 80038c4 { MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, (RCC_HCLK_DIV16 << 3)); - 8003608: 4b53 ldr r3, [pc, #332] @ (8003758 ) - 800360a: 689b ldr r3, [r3, #8] - 800360c: 4a52 ldr r2, [pc, #328] @ (8003758 ) - 800360e: f443 4360 orr.w r3, r3, #57344 @ 0xe000 - 8003612: 6093 str r3, [r2, #8] + 80038b8: 4b53 ldr r3, [pc, #332] @ (8003a08 ) + 80038ba: 689b ldr r3, [r3, #8] + 80038bc: 4a52 ldr r2, [pc, #328] @ (8003a08 ) + 80038be: f443 4360 orr.w r3, r3, #57344 @ 0xe000 + 80038c2: 6093 str r3, [r2, #8] } assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider)); MODIFY_REG(RCC->CFGR, RCC_CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider); - 8003614: 4b50 ldr r3, [pc, #320] @ (8003758 ) - 8003616: 689b ldr r3, [r3, #8] - 8003618: f023 02f0 bic.w r2, r3, #240 @ 0xf0 - 800361c: 687b ldr r3, [r7, #4] - 800361e: 689b ldr r3, [r3, #8] - 8003620: 494d ldr r1, [pc, #308] @ (8003758 ) - 8003622: 4313 orrs r3, r2 - 8003624: 608b str r3, [r1, #8] + 80038c4: 4b50 ldr r3, [pc, #320] @ (8003a08 ) + 80038c6: 689b ldr r3, [r3, #8] + 80038c8: f023 02f0 bic.w r2, r3, #240 @ 0xf0 + 80038cc: 687b ldr r3, [r7, #4] + 80038ce: 689b ldr r3, [r3, #8] + 80038d0: 494d ldr r1, [pc, #308] @ (8003a08 ) + 80038d2: 4313 orrs r3, r2 + 80038d4: 608b str r3, [r1, #8] } /*------------------------- SYSCLK Configuration ---------------------------*/ if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK) - 8003626: 687b ldr r3, [r7, #4] - 8003628: 681b ldr r3, [r3, #0] - 800362a: f003 0301 and.w r3, r3, #1 - 800362e: 2b00 cmp r3, #0 - 8003630: d044 beq.n 80036bc + 80038d6: 687b ldr r3, [r7, #4] + 80038d8: 681b ldr r3, [r3, #0] + 80038da: f003 0301 and.w r3, r3, #1 + 80038de: 2b00 cmp r3, #0 + 80038e0: d044 beq.n 800396c { assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource)); /* HSE is selected as System Clock Source */ if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE) - 8003632: 687b ldr r3, [r7, #4] - 8003634: 685b ldr r3, [r3, #4] - 8003636: 2b01 cmp r3, #1 - 8003638: d107 bne.n 800364a + 80038e2: 687b ldr r3, [r7, #4] + 80038e4: 685b ldr r3, [r3, #4] + 80038e6: 2b01 cmp r3, #1 + 80038e8: d107 bne.n 80038fa { /* Check the HSE ready flag */ if(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) - 800363a: 4b47 ldr r3, [pc, #284] @ (8003758 ) - 800363c: 681b ldr r3, [r3, #0] - 800363e: f403 3300 and.w r3, r3, #131072 @ 0x20000 - 8003642: 2b00 cmp r3, #0 - 8003644: d119 bne.n 800367a + 80038ea: 4b47 ldr r3, [pc, #284] @ (8003a08 ) + 80038ec: 681b ldr r3, [r3, #0] + 80038ee: f403 3300 and.w r3, r3, #131072 @ 0x20000 + 80038f2: 2b00 cmp r3, #0 + 80038f4: d119 bne.n 800392a { return HAL_ERROR; - 8003646: 2301 movs r3, #1 - 8003648: e07f b.n 800374a + 80038f6: 2301 movs r3, #1 + 80038f8: e07f b.n 80039fa } } /* PLL is selected as System Clock Source */ else if((RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK) || - 800364a: 687b ldr r3, [r7, #4] - 800364c: 685b ldr r3, [r3, #4] - 800364e: 2b02 cmp r3, #2 - 8003650: d003 beq.n 800365a + 80038fa: 687b ldr r3, [r7, #4] + 80038fc: 685b ldr r3, [r3, #4] + 80038fe: 2b02 cmp r3, #2 + 8003900: d003 beq.n 800390a (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLRCLK)) - 8003652: 687b ldr r3, [r7, #4] - 8003654: 685b ldr r3, [r3, #4] + 8003902: 687b ldr r3, [r7, #4] + 8003904: 685b ldr r3, [r3, #4] else if((RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK) || - 8003656: 2b03 cmp r3, #3 - 8003658: d107 bne.n 800366a + 8003906: 2b03 cmp r3, #3 + 8003908: d107 bne.n 800391a { /* Check the PLL ready flag */ if(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) - 800365a: 4b3f ldr r3, [pc, #252] @ (8003758 ) - 800365c: 681b ldr r3, [r3, #0] - 800365e: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 - 8003662: 2b00 cmp r3, #0 - 8003664: d109 bne.n 800367a + 800390a: 4b3f ldr r3, [pc, #252] @ (8003a08 ) + 800390c: 681b ldr r3, [r3, #0] + 800390e: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 + 8003912: 2b00 cmp r3, #0 + 8003914: d109 bne.n 800392a { return HAL_ERROR; - 8003666: 2301 movs r3, #1 - 8003668: e06f b.n 800374a + 8003916: 2301 movs r3, #1 + 8003918: e06f b.n 80039fa } /* HSI is selected as System Clock Source */ else { /* Check the HSI ready flag */ if(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) - 800366a: 4b3b ldr r3, [pc, #236] @ (8003758 ) - 800366c: 681b ldr r3, [r3, #0] - 800366e: f003 0302 and.w r3, r3, #2 - 8003672: 2b00 cmp r3, #0 - 8003674: d101 bne.n 800367a + 800391a: 4b3b ldr r3, [pc, #236] @ (8003a08 ) + 800391c: 681b ldr r3, [r3, #0] + 800391e: f003 0302 and.w r3, r3, #2 + 8003922: 2b00 cmp r3, #0 + 8003924: d101 bne.n 800392a { return HAL_ERROR; - 8003676: 2301 movs r3, #1 - 8003678: e067 b.n 800374a + 8003926: 2301 movs r3, #1 + 8003928: e067 b.n 80039fa } } __HAL_RCC_SYSCLK_CONFIG(RCC_ClkInitStruct->SYSCLKSource); - 800367a: 4b37 ldr r3, [pc, #220] @ (8003758 ) - 800367c: 689b ldr r3, [r3, #8] - 800367e: f023 0203 bic.w r2, r3, #3 - 8003682: 687b ldr r3, [r7, #4] - 8003684: 685b ldr r3, [r3, #4] - 8003686: 4934 ldr r1, [pc, #208] @ (8003758 ) - 8003688: 4313 orrs r3, r2 - 800368a: 608b str r3, [r1, #8] + 800392a: 4b37 ldr r3, [pc, #220] @ (8003a08 ) + 800392c: 689b ldr r3, [r3, #8] + 800392e: f023 0203 bic.w r2, r3, #3 + 8003932: 687b ldr r3, [r7, #4] + 8003934: 685b ldr r3, [r3, #4] + 8003936: 4934 ldr r1, [pc, #208] @ (8003a08 ) + 8003938: 4313 orrs r3, r2 + 800393a: 608b str r3, [r1, #8] /* Get Start Tick */ tickstart = HAL_GetTick(); - 800368c: f7fe fade bl 8001c4c - 8003690: 60f8 str r0, [r7, #12] + 800393c: f7fe f9e2 bl 8001d04 + 8003940: 60f8 str r0, [r7, #12] while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos)) - 8003692: e00a b.n 80036aa + 8003942: e00a b.n 800395a { if ((HAL_GetTick() - tickstart) > CLOCKSWITCH_TIMEOUT_VALUE) - 8003694: f7fe fada bl 8001c4c - 8003698: 4602 mov r2, r0 - 800369a: 68fb ldr r3, [r7, #12] - 800369c: 1ad3 subs r3, r2, r3 - 800369e: f241 3288 movw r2, #5000 @ 0x1388 - 80036a2: 4293 cmp r3, r2 - 80036a4: d901 bls.n 80036aa + 8003944: f7fe f9de bl 8001d04 + 8003948: 4602 mov r2, r0 + 800394a: 68fb ldr r3, [r7, #12] + 800394c: 1ad3 subs r3, r2, r3 + 800394e: f241 3288 movw r2, #5000 @ 0x1388 + 8003952: 4293 cmp r3, r2 + 8003954: d901 bls.n 800395a { return HAL_TIMEOUT; - 80036a6: 2303 movs r3, #3 - 80036a8: e04f b.n 800374a + 8003956: 2303 movs r3, #3 + 8003958: e04f b.n 80039fa while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos)) - 80036aa: 4b2b ldr r3, [pc, #172] @ (8003758 ) - 80036ac: 689b ldr r3, [r3, #8] - 80036ae: f003 020c and.w r2, r3, #12 - 80036b2: 687b ldr r3, [r7, #4] - 80036b4: 685b ldr r3, [r3, #4] - 80036b6: 009b lsls r3, r3, #2 - 80036b8: 429a cmp r2, r3 - 80036ba: d1eb bne.n 8003694 + 800395a: 4b2b ldr r3, [pc, #172] @ (8003a08 ) + 800395c: 689b ldr r3, [r3, #8] + 800395e: f003 020c and.w r2, r3, #12 + 8003962: 687b ldr r3, [r7, #4] + 8003964: 685b ldr r3, [r3, #4] + 8003966: 009b lsls r3, r3, #2 + 8003968: 429a cmp r2, r3 + 800396a: d1eb bne.n 8003944 } } } /* Decreasing the number of wait states because of lower CPU frequency */ if(FLatency < __HAL_FLASH_GET_LATENCY()) - 80036bc: 4b25 ldr r3, [pc, #148] @ (8003754 ) - 80036be: 681b ldr r3, [r3, #0] - 80036c0: f003 030f and.w r3, r3, #15 - 80036c4: 683a ldr r2, [r7, #0] - 80036c6: 429a cmp r2, r3 - 80036c8: d20c bcs.n 80036e4 + 800396c: 4b25 ldr r3, [pc, #148] @ (8003a04 ) + 800396e: 681b ldr r3, [r3, #0] + 8003970: f003 030f and.w r3, r3, #15 + 8003974: 683a ldr r2, [r7, #0] + 8003976: 429a cmp r2, r3 + 8003978: d20c bcs.n 8003994 { /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */ __HAL_FLASH_SET_LATENCY(FLatency); - 80036ca: 4b22 ldr r3, [pc, #136] @ (8003754 ) - 80036cc: 683a ldr r2, [r7, #0] - 80036ce: b2d2 uxtb r2, r2 - 80036d0: 701a strb r2, [r3, #0] + 800397a: 4b22 ldr r3, [pc, #136] @ (8003a04 ) + 800397c: 683a ldr r2, [r7, #0] + 800397e: b2d2 uxtb r2, r2 + 8003980: 701a strb r2, [r3, #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) - 80036d2: 4b20 ldr r3, [pc, #128] @ (8003754 ) - 80036d4: 681b ldr r3, [r3, #0] - 80036d6: f003 030f and.w r3, r3, #15 - 80036da: 683a ldr r2, [r7, #0] - 80036dc: 429a cmp r2, r3 - 80036de: d001 beq.n 80036e4 + 8003982: 4b20 ldr r3, [pc, #128] @ (8003a04 ) + 8003984: 681b ldr r3, [r3, #0] + 8003986: f003 030f and.w r3, r3, #15 + 800398a: 683a ldr r2, [r7, #0] + 800398c: 429a cmp r2, r3 + 800398e: d001 beq.n 8003994 { return HAL_ERROR; - 80036e0: 2301 movs r3, #1 - 80036e2: e032 b.n 800374a + 8003990: 2301 movs r3, #1 + 8003992: e032 b.n 80039fa } } /*-------------------------- PCLK1 Configuration ---------------------------*/ if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1) - 80036e4: 687b ldr r3, [r7, #4] - 80036e6: 681b ldr r3, [r3, #0] - 80036e8: f003 0304 and.w r3, r3, #4 - 80036ec: 2b00 cmp r3, #0 - 80036ee: d008 beq.n 8003702 + 8003994: 687b ldr r3, [r7, #4] + 8003996: 681b ldr r3, [r3, #0] + 8003998: f003 0304 and.w r3, r3, #4 + 800399c: 2b00 cmp r3, #0 + 800399e: d008 beq.n 80039b2 { assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB1CLKDivider)); MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_ClkInitStruct->APB1CLKDivider); - 80036f0: 4b19 ldr r3, [pc, #100] @ (8003758 ) - 80036f2: 689b ldr r3, [r3, #8] - 80036f4: f423 52e0 bic.w r2, r3, #7168 @ 0x1c00 - 80036f8: 687b ldr r3, [r7, #4] - 80036fa: 68db ldr r3, [r3, #12] - 80036fc: 4916 ldr r1, [pc, #88] @ (8003758 ) - 80036fe: 4313 orrs r3, r2 - 8003700: 608b str r3, [r1, #8] + 80039a0: 4b19 ldr r3, [pc, #100] @ (8003a08 ) + 80039a2: 689b ldr r3, [r3, #8] + 80039a4: f423 52e0 bic.w r2, r3, #7168 @ 0x1c00 + 80039a8: 687b ldr r3, [r7, #4] + 80039aa: 68db ldr r3, [r3, #12] + 80039ac: 4916 ldr r1, [pc, #88] @ (8003a08 ) + 80039ae: 4313 orrs r3, r2 + 80039b0: 608b str r3, [r1, #8] } /*-------------------------- PCLK2 Configuration ---------------------------*/ if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2) - 8003702: 687b ldr r3, [r7, #4] - 8003704: 681b ldr r3, [r3, #0] - 8003706: f003 0308 and.w r3, r3, #8 - 800370a: 2b00 cmp r3, #0 - 800370c: d009 beq.n 8003722 + 80039b2: 687b ldr r3, [r7, #4] + 80039b4: 681b ldr r3, [r3, #0] + 80039b6: f003 0308 and.w r3, r3, #8 + 80039ba: 2b00 cmp r3, #0 + 80039bc: d009 beq.n 80039d2 { assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB2CLKDivider)); MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, ((RCC_ClkInitStruct->APB2CLKDivider) << 3U)); - 800370e: 4b12 ldr r3, [pc, #72] @ (8003758 ) - 8003710: 689b ldr r3, [r3, #8] - 8003712: f423 4260 bic.w r2, r3, #57344 @ 0xe000 - 8003716: 687b ldr r3, [r7, #4] - 8003718: 691b ldr r3, [r3, #16] - 800371a: 00db lsls r3, r3, #3 - 800371c: 490e ldr r1, [pc, #56] @ (8003758 ) - 800371e: 4313 orrs r3, r2 - 8003720: 608b str r3, [r1, #8] + 80039be: 4b12 ldr r3, [pc, #72] @ (8003a08 ) + 80039c0: 689b ldr r3, [r3, #8] + 80039c2: f423 4260 bic.w r2, r3, #57344 @ 0xe000 + 80039c6: 687b ldr r3, [r7, #4] + 80039c8: 691b ldr r3, [r3, #16] + 80039ca: 00db lsls r3, r3, #3 + 80039cc: 490e ldr r1, [pc, #56] @ (8003a08 ) + 80039ce: 4313 orrs r3, r2 + 80039d0: 608b str r3, [r1, #8] } /* Update the SystemCoreClock global variable */ SystemCoreClock = HAL_RCC_GetSysClockFreq() >> AHBPrescTable[(RCC->CFGR & RCC_CFGR_HPRE)>> RCC_CFGR_HPRE_Pos]; - 8003722: f000 f887 bl 8003834 - 8003726: 4602 mov r2, r0 - 8003728: 4b0b ldr r3, [pc, #44] @ (8003758 ) - 800372a: 689b ldr r3, [r3, #8] - 800372c: 091b lsrs r3, r3, #4 - 800372e: f003 030f and.w r3, r3, #15 - 8003732: 490a ldr r1, [pc, #40] @ (800375c ) - 8003734: 5ccb ldrb r3, [r1, r3] - 8003736: fa22 f303 lsr.w r3, r2, r3 - 800373a: 4a09 ldr r2, [pc, #36] @ (8003760 ) - 800373c: 6013 str r3, [r2, #0] + 80039d2: f000 f887 bl 8003ae4 + 80039d6: 4602 mov r2, r0 + 80039d8: 4b0b ldr r3, [pc, #44] @ (8003a08 ) + 80039da: 689b ldr r3, [r3, #8] + 80039dc: 091b lsrs r3, r3, #4 + 80039de: f003 030f and.w r3, r3, #15 + 80039e2: 490a ldr r1, [pc, #40] @ (8003a0c ) + 80039e4: 5ccb ldrb r3, [r1, r3] + 80039e6: fa22 f303 lsr.w r3, r2, r3 + 80039ea: 4a09 ldr r2, [pc, #36] @ (8003a10 ) + 80039ec: 6013 str r3, [r2, #0] /* Configure the source of time base considering new system clocks settings */ HAL_InitTick (uwTickPrio); - 800373e: 4b09 ldr r3, [pc, #36] @ (8003764 ) - 8003740: 681b ldr r3, [r3, #0] - 8003742: 4618 mov r0, r3 - 8003744: f7fd feea bl 800151c + 80039ee: 4b09 ldr r3, [pc, #36] @ (8003a14 ) + 80039f0: 681b ldr r3, [r3, #0] + 80039f2: 4618 mov r0, r3 + 80039f4: f7fd fdb8 bl 8001568 return HAL_OK; - 8003748: 2300 movs r3, #0 + 80039f8: 2300 movs r3, #0 } - 800374a: 4618 mov r0, r3 - 800374c: 3710 adds r7, #16 - 800374e: 46bd mov sp, r7 - 8003750: bd80 pop {r7, pc} - 8003752: bf00 nop - 8003754: 40023c00 .word 0x40023c00 - 8003758: 40023800 .word 0x40023800 - 800375c: 08005a44 .word 0x08005a44 - 8003760: 20000008 .word 0x20000008 - 8003764: 2000000c .word 0x2000000c + 80039fa: 4618 mov r0, r3 + 80039fc: 3710 adds r7, #16 + 80039fe: 46bd mov sp, r7 + 8003a00: bd80 pop {r7, pc} + 8003a02: bf00 nop + 8003a04: 40023c00 .word 0x40023c00 + 8003a08: 40023800 .word 0x40023800 + 8003a0c: 08005f0c .word 0x08005f0c + 8003a10: 20000008 .word 0x20000008 + 8003a14: 2000000c .word 0x2000000c -08003768 : +08003a18 : * @note The SystemCoreClock CMSIS variable is used to store System Clock Frequency * and updated within this function * @retval HCLK frequency */ uint32_t HAL_RCC_GetHCLKFreq(void) { - 8003768: b480 push {r7} - 800376a: af00 add r7, sp, #0 + 8003a18: b480 push {r7} + 8003a1a: af00 add r7, sp, #0 return SystemCoreClock; - 800376c: 4b03 ldr r3, [pc, #12] @ (800377c ) - 800376e: 681b ldr r3, [r3, #0] + 8003a1c: 4b03 ldr r3, [pc, #12] @ (8003a2c ) + 8003a1e: 681b ldr r3, [r3, #0] } - 8003770: 4618 mov r0, r3 - 8003772: 46bd mov sp, r7 - 8003774: f85d 7b04 ldr.w r7, [sp], #4 - 8003778: 4770 bx lr - 800377a: bf00 nop - 800377c: 20000008 .word 0x20000008 + 8003a20: 4618 mov r0, r3 + 8003a22: 46bd mov sp, r7 + 8003a24: f85d 7b04 ldr.w r7, [sp], #4 + 8003a28: 4770 bx lr + 8003a2a: bf00 nop + 8003a2c: 20000008 .word 0x20000008 -08003780 : +08003a30 : * @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 */ uint32_t HAL_RCC_GetPCLK1Freq(void) { - 8003780: b580 push {r7, lr} - 8003782: af00 add r7, sp, #0 + 8003a30: b580 push {r7, lr} + 8003a32: af00 add r7, sp, #0 /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/ return (HAL_RCC_GetHCLKFreq() >> APBPrescTable[(RCC->CFGR & RCC_CFGR_PPRE1)>> RCC_CFGR_PPRE1_Pos]); - 8003784: f7ff fff0 bl 8003768 - 8003788: 4602 mov r2, r0 - 800378a: 4b05 ldr r3, [pc, #20] @ (80037a0 ) - 800378c: 689b ldr r3, [r3, #8] - 800378e: 0a9b lsrs r3, r3, #10 - 8003790: f003 0307 and.w r3, r3, #7 - 8003794: 4903 ldr r1, [pc, #12] @ (80037a4 ) - 8003796: 5ccb ldrb r3, [r1, r3] - 8003798: fa22 f303 lsr.w r3, r2, r3 + 8003a34: f7ff fff0 bl 8003a18 + 8003a38: 4602 mov r2, r0 + 8003a3a: 4b05 ldr r3, [pc, #20] @ (8003a50 ) + 8003a3c: 689b ldr r3, [r3, #8] + 8003a3e: 0a9b lsrs r3, r3, #10 + 8003a40: f003 0307 and.w r3, r3, #7 + 8003a44: 4903 ldr r1, [pc, #12] @ (8003a54 ) + 8003a46: 5ccb ldrb r3, [r1, r3] + 8003a48: fa22 f303 lsr.w r3, r2, r3 } - 800379c: 4618 mov r0, r3 - 800379e: bd80 pop {r7, pc} - 80037a0: 40023800 .word 0x40023800 - 80037a4: 08005a54 .word 0x08005a54 + 8003a4c: 4618 mov r0, r3 + 8003a4e: bd80 pop {r7, pc} + 8003a50: 40023800 .word 0x40023800 + 8003a54: 08005f1c .word 0x08005f1c -080037a8 : +08003a58 : * @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 */ uint32_t HAL_RCC_GetPCLK2Freq(void) { - 80037a8: b580 push {r7, lr} - 80037aa: af00 add r7, sp, #0 + 8003a58: b580 push {r7, lr} + 8003a5a: af00 add r7, sp, #0 /* Get HCLK source and Compute PCLK2 frequency ---------------------------*/ return (HAL_RCC_GetHCLKFreq()>> APBPrescTable[(RCC->CFGR & RCC_CFGR_PPRE2)>> RCC_CFGR_PPRE2_Pos]); - 80037ac: f7ff ffdc bl 8003768 - 80037b0: 4602 mov r2, r0 - 80037b2: 4b05 ldr r3, [pc, #20] @ (80037c8 ) - 80037b4: 689b ldr r3, [r3, #8] - 80037b6: 0b5b lsrs r3, r3, #13 - 80037b8: f003 0307 and.w r3, r3, #7 - 80037bc: 4903 ldr r1, [pc, #12] @ (80037cc ) - 80037be: 5ccb ldrb r3, [r1, r3] - 80037c0: fa22 f303 lsr.w r3, r2, r3 + 8003a5c: f7ff ffdc bl 8003a18 + 8003a60: 4602 mov r2, r0 + 8003a62: 4b05 ldr r3, [pc, #20] @ (8003a78 ) + 8003a64: 689b ldr r3, [r3, #8] + 8003a66: 0b5b lsrs r3, r3, #13 + 8003a68: f003 0307 and.w r3, r3, #7 + 8003a6c: 4903 ldr r1, [pc, #12] @ (8003a7c ) + 8003a6e: 5ccb ldrb r3, [r1, r3] + 8003a70: fa22 f303 lsr.w r3, r2, r3 } - 80037c4: 4618 mov r0, r3 - 80037c6: bd80 pop {r7, pc} - 80037c8: 40023800 .word 0x40023800 - 80037cc: 08005a54 .word 0x08005a54 + 8003a74: 4618 mov r0, r3 + 8003a76: bd80 pop {r7, pc} + 8003a78: 40023800 .word 0x40023800 + 8003a7c: 08005f1c .word 0x08005f1c -080037d0 : +08003a80 : * will be configured. * @param pFLatency Pointer on the Flash Latency. * @retval None */ void HAL_RCC_GetClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t *pFLatency) { - 80037d0: b480 push {r7} - 80037d2: b083 sub sp, #12 - 80037d4: af00 add r7, sp, #0 - 80037d6: 6078 str r0, [r7, #4] - 80037d8: 6039 str r1, [r7, #0] + 8003a80: b480 push {r7} + 8003a82: b083 sub sp, #12 + 8003a84: af00 add r7, sp, #0 + 8003a86: 6078 str r0, [r7, #4] + 8003a88: 6039 str r1, [r7, #0] /* Set all possible values for the Clock type parameter --------------------*/ RCC_ClkInitStruct->ClockType = RCC_CLOCKTYPE_SYSCLK | RCC_CLOCKTYPE_HCLK | RCC_CLOCKTYPE_PCLK1 | RCC_CLOCKTYPE_PCLK2; - 80037da: 687b ldr r3, [r7, #4] - 80037dc: 220f movs r2, #15 - 80037de: 601a str r2, [r3, #0] + 8003a8a: 687b ldr r3, [r7, #4] + 8003a8c: 220f movs r2, #15 + 8003a8e: 601a str r2, [r3, #0] /* Get the SYSCLK configuration --------------------------------------------*/ RCC_ClkInitStruct->SYSCLKSource = (uint32_t)(RCC->CFGR & RCC_CFGR_SW); - 80037e0: 4b12 ldr r3, [pc, #72] @ (800382c ) - 80037e2: 689b ldr r3, [r3, #8] - 80037e4: f003 0203 and.w r2, r3, #3 - 80037e8: 687b ldr r3, [r7, #4] - 80037ea: 605a str r2, [r3, #4] + 8003a90: 4b12 ldr r3, [pc, #72] @ (8003adc ) + 8003a92: 689b ldr r3, [r3, #8] + 8003a94: f003 0203 and.w r2, r3, #3 + 8003a98: 687b ldr r3, [r7, #4] + 8003a9a: 605a str r2, [r3, #4] /* Get the HCLK configuration ----------------------------------------------*/ RCC_ClkInitStruct->AHBCLKDivider = (uint32_t)(RCC->CFGR & RCC_CFGR_HPRE); - 80037ec: 4b0f ldr r3, [pc, #60] @ (800382c ) - 80037ee: 689b ldr r3, [r3, #8] - 80037f0: f003 02f0 and.w r2, r3, #240 @ 0xf0 - 80037f4: 687b ldr r3, [r7, #4] - 80037f6: 609a str r2, [r3, #8] + 8003a9c: 4b0f ldr r3, [pc, #60] @ (8003adc ) + 8003a9e: 689b ldr r3, [r3, #8] + 8003aa0: f003 02f0 and.w r2, r3, #240 @ 0xf0 + 8003aa4: 687b ldr r3, [r7, #4] + 8003aa6: 609a str r2, [r3, #8] /* Get the APB1 configuration ----------------------------------------------*/ RCC_ClkInitStruct->APB1CLKDivider = (uint32_t)(RCC->CFGR & RCC_CFGR_PPRE1); - 80037f8: 4b0c ldr r3, [pc, #48] @ (800382c ) - 80037fa: 689b ldr r3, [r3, #8] - 80037fc: f403 52e0 and.w r2, r3, #7168 @ 0x1c00 - 8003800: 687b ldr r3, [r7, #4] - 8003802: 60da str r2, [r3, #12] + 8003aa8: 4b0c ldr r3, [pc, #48] @ (8003adc ) + 8003aaa: 689b ldr r3, [r3, #8] + 8003aac: f403 52e0 and.w r2, r3, #7168 @ 0x1c00 + 8003ab0: 687b ldr r3, [r7, #4] + 8003ab2: 60da str r2, [r3, #12] /* Get the APB2 configuration ----------------------------------------------*/ RCC_ClkInitStruct->APB2CLKDivider = (uint32_t)((RCC->CFGR & RCC_CFGR_PPRE2) >> 3U); - 8003804: 4b09 ldr r3, [pc, #36] @ (800382c ) - 8003806: 689b ldr r3, [r3, #8] - 8003808: 08db lsrs r3, r3, #3 - 800380a: f403 52e0 and.w r2, r3, #7168 @ 0x1c00 - 800380e: 687b ldr r3, [r7, #4] - 8003810: 611a str r2, [r3, #16] + 8003ab4: 4b09 ldr r3, [pc, #36] @ (8003adc ) + 8003ab6: 689b ldr r3, [r3, #8] + 8003ab8: 08db lsrs r3, r3, #3 + 8003aba: f403 52e0 and.w r2, r3, #7168 @ 0x1c00 + 8003abe: 687b ldr r3, [r7, #4] + 8003ac0: 611a str r2, [r3, #16] /* Get the Flash Wait State (Latency) configuration ------------------------*/ *pFLatency = (uint32_t)(FLASH->ACR & FLASH_ACR_LATENCY); - 8003812: 4b07 ldr r3, [pc, #28] @ (8003830 ) - 8003814: 681b ldr r3, [r3, #0] - 8003816: f003 020f and.w r2, r3, #15 - 800381a: 683b ldr r3, [r7, #0] - 800381c: 601a str r2, [r3, #0] + 8003ac2: 4b07 ldr r3, [pc, #28] @ (8003ae0 ) + 8003ac4: 681b ldr r3, [r3, #0] + 8003ac6: f003 020f and.w r2, r3, #15 + 8003aca: 683b ldr r3, [r7, #0] + 8003acc: 601a str r2, [r3, #0] } - 800381e: bf00 nop - 8003820: 370c adds r7, #12 - 8003822: 46bd mov sp, r7 - 8003824: f85d 7b04 ldr.w r7, [sp], #4 - 8003828: 4770 bx lr - 800382a: bf00 nop - 800382c: 40023800 .word 0x40023800 - 8003830: 40023c00 .word 0x40023c00 + 8003ace: bf00 nop + 8003ad0: 370c adds r7, #12 + 8003ad2: 46bd mov sp, r7 + 8003ad4: f85d 7b04 ldr.w r7, [sp], #4 + 8003ad8: 4770 bx lr + 8003ada: bf00 nop + 8003adc: 40023800 .word 0x40023800 + 8003ae0: 40023c00 .word 0x40023c00 -08003834 : +08003ae4 : * * * @retval SYSCLK frequency */ uint32_t HAL_RCC_GetSysClockFreq(void) { - 8003834: e92d 4fb0 stmdb sp!, {r4, r5, r7, r8, r9, sl, fp, lr} - 8003838: b0ae sub sp, #184 @ 0xb8 - 800383a: af00 add r7, sp, #0 + 8003ae4: e92d 4fb0 stmdb sp!, {r4, r5, r7, r8, r9, sl, fp, lr} + 8003ae8: b0ae sub sp, #184 @ 0xb8 + 8003aea: af00 add r7, sp, #0 uint32_t pllm = 0U; - 800383c: 2300 movs r3, #0 - 800383e: f8c7 30ac str.w r3, [r7, #172] @ 0xac + 8003aec: 2300 movs r3, #0 + 8003aee: f8c7 30ac str.w r3, [r7, #172] @ 0xac uint32_t pllvco = 0U; - 8003842: 2300 movs r3, #0 - 8003844: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 + 8003af2: 2300 movs r3, #0 + 8003af4: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 uint32_t pllp = 0U; - 8003848: 2300 movs r3, #0 - 800384a: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8 + 8003af8: 2300 movs r3, #0 + 8003afa: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8 uint32_t pllr = 0U; - 800384e: 2300 movs r3, #0 - 8003850: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4 + 8003afe: 2300 movs r3, #0 + 8003b00: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4 uint32_t sysclockfreq = 0U; - 8003854: 2300 movs r3, #0 - 8003856: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 + 8003b04: 2300 movs r3, #0 + 8003b06: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 /* Get SYSCLK source -------------------------------------------------------*/ switch (RCC->CFGR & RCC_CFGR_SWS) - 800385a: 4bcb ldr r3, [pc, #812] @ (8003b88 ) - 800385c: 689b ldr r3, [r3, #8] - 800385e: f003 030c and.w r3, r3, #12 - 8003862: 2b0c cmp r3, #12 - 8003864: f200 8206 bhi.w 8003c74 - 8003868: a201 add r2, pc, #4 @ (adr r2, 8003870 ) - 800386a: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 800386e: bf00 nop - 8003870: 080038a5 .word 0x080038a5 - 8003874: 08003c75 .word 0x08003c75 - 8003878: 08003c75 .word 0x08003c75 - 800387c: 08003c75 .word 0x08003c75 - 8003880: 080038ad .word 0x080038ad - 8003884: 08003c75 .word 0x08003c75 - 8003888: 08003c75 .word 0x08003c75 - 800388c: 08003c75 .word 0x08003c75 - 8003890: 080038b5 .word 0x080038b5 - 8003894: 08003c75 .word 0x08003c75 - 8003898: 08003c75 .word 0x08003c75 - 800389c: 08003c75 .word 0x08003c75 - 80038a0: 08003aa5 .word 0x08003aa5 + 8003b0a: 4bcb ldr r3, [pc, #812] @ (8003e38 ) + 8003b0c: 689b ldr r3, [r3, #8] + 8003b0e: f003 030c and.w r3, r3, #12 + 8003b12: 2b0c cmp r3, #12 + 8003b14: f200 8206 bhi.w 8003f24 + 8003b18: a201 add r2, pc, #4 @ (adr r2, 8003b20 ) + 8003b1a: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 8003b1e: bf00 nop + 8003b20: 08003b55 .word 0x08003b55 + 8003b24: 08003f25 .word 0x08003f25 + 8003b28: 08003f25 .word 0x08003f25 + 8003b2c: 08003f25 .word 0x08003f25 + 8003b30: 08003b5d .word 0x08003b5d + 8003b34: 08003f25 .word 0x08003f25 + 8003b38: 08003f25 .word 0x08003f25 + 8003b3c: 08003f25 .word 0x08003f25 + 8003b40: 08003b65 .word 0x08003b65 + 8003b44: 08003f25 .word 0x08003f25 + 8003b48: 08003f25 .word 0x08003f25 + 8003b4c: 08003f25 .word 0x08003f25 + 8003b50: 08003d55 .word 0x08003d55 { case RCC_CFGR_SWS_HSI: /* HSI used as system clock source */ { sysclockfreq = HSI_VALUE; - 80038a4: 4bb9 ldr r3, [pc, #740] @ (8003b8c ) - 80038a6: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 + 8003b54: 4bb9 ldr r3, [pc, #740] @ (8003e3c ) + 8003b56: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 break; - 80038aa: e1e7 b.n 8003c7c + 8003b5a: e1e7 b.n 8003f2c } case RCC_CFGR_SWS_HSE: /* HSE used as system clock source */ { sysclockfreq = HSE_VALUE; - 80038ac: 4bb8 ldr r3, [pc, #736] @ (8003b90 ) - 80038ae: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 + 8003b5c: 4bb8 ldr r3, [pc, #736] @ (8003e40 ) + 8003b5e: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 break; - 80038b2: e1e3 b.n 8003c7c + 8003b62: e1e3 b.n 8003f2c } case RCC_CFGR_SWS_PLL: /* PLL/PLLP used as system clock source */ { /* PLL_VCO = (HSE_VALUE or HSI_VALUE / PLLM) * PLLN SYSCLK = PLL_VCO / PLLP */ pllm = RCC->PLLCFGR & RCC_PLLCFGR_PLLM; - 80038b4: 4bb4 ldr r3, [pc, #720] @ (8003b88 ) - 80038b6: 685b ldr r3, [r3, #4] - 80038b8: f003 033f and.w r3, r3, #63 @ 0x3f - 80038bc: f8c7 30ac str.w r3, [r7, #172] @ 0xac + 8003b64: 4bb4 ldr r3, [pc, #720] @ (8003e38 ) + 8003b66: 685b ldr r3, [r3, #4] + 8003b68: f003 033f and.w r3, r3, #63 @ 0x3f + 8003b6c: f8c7 30ac str.w r3, [r7, #172] @ 0xac if(__HAL_RCC_GET_PLL_OSCSOURCE() != RCC_PLLSOURCE_HSI) - 80038c0: 4bb1 ldr r3, [pc, #708] @ (8003b88 ) - 80038c2: 685b ldr r3, [r3, #4] - 80038c4: f403 0380 and.w r3, r3, #4194304 @ 0x400000 - 80038c8: 2b00 cmp r3, #0 - 80038ca: d071 beq.n 80039b0 + 8003b70: 4bb1 ldr r3, [pc, #708] @ (8003e38 ) + 8003b72: 685b ldr r3, [r3, #4] + 8003b74: f403 0380 and.w r3, r3, #4194304 @ 0x400000 + 8003b78: 2b00 cmp r3, #0 + 8003b7a: d071 beq.n 8003c60 { /* HSE used as PLL clock source */ pllvco = (uint32_t) ((((uint64_t) HSE_VALUE * ((uint64_t) ((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> RCC_PLLCFGR_PLLN_Pos)))) / (uint64_t)pllm); - 80038cc: 4bae ldr r3, [pc, #696] @ (8003b88 ) - 80038ce: 685b ldr r3, [r3, #4] - 80038d0: 099b lsrs r3, r3, #6 - 80038d2: 2200 movs r2, #0 - 80038d4: f8c7 3098 str.w r3, [r7, #152] @ 0x98 - 80038d8: f8c7 209c str.w r2, [r7, #156] @ 0x9c - 80038dc: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98 - 80038e0: f3c3 0308 ubfx r3, r3, #0, #9 - 80038e4: f8c7 3090 str.w r3, [r7, #144] @ 0x90 - 80038e8: 2300 movs r3, #0 - 80038ea: f8c7 3094 str.w r3, [r7, #148] @ 0x94 - 80038ee: e9d7 4524 ldrd r4, r5, [r7, #144] @ 0x90 - 80038f2: 4622 mov r2, r4 - 80038f4: 462b mov r3, r5 - 80038f6: f04f 0000 mov.w r0, #0 - 80038fa: f04f 0100 mov.w r1, #0 - 80038fe: 0159 lsls r1, r3, #5 - 8003900: ea41 61d2 orr.w r1, r1, r2, lsr #27 - 8003904: 0150 lsls r0, r2, #5 - 8003906: 4602 mov r2, r0 - 8003908: 460b mov r3, r1 - 800390a: 4621 mov r1, r4 - 800390c: 1a51 subs r1, r2, r1 - 800390e: 6439 str r1, [r7, #64] @ 0x40 - 8003910: 4629 mov r1, r5 - 8003912: eb63 0301 sbc.w r3, r3, r1 - 8003916: 647b str r3, [r7, #68] @ 0x44 - 8003918: f04f 0200 mov.w r2, #0 - 800391c: f04f 0300 mov.w r3, #0 - 8003920: e9d7 8910 ldrd r8, r9, [r7, #64] @ 0x40 - 8003924: 4649 mov r1, r9 - 8003926: 018b lsls r3, r1, #6 - 8003928: 4641 mov r1, r8 - 800392a: ea43 6391 orr.w r3, r3, r1, lsr #26 - 800392e: 4641 mov r1, r8 - 8003930: 018a lsls r2, r1, #6 - 8003932: 4641 mov r1, r8 - 8003934: 1a51 subs r1, r2, r1 - 8003936: 63b9 str r1, [r7, #56] @ 0x38 - 8003938: 4649 mov r1, r9 - 800393a: eb63 0301 sbc.w r3, r3, r1 - 800393e: 63fb str r3, [r7, #60] @ 0x3c - 8003940: f04f 0200 mov.w r2, #0 - 8003944: f04f 0300 mov.w r3, #0 - 8003948: e9d7 890e ldrd r8, r9, [r7, #56] @ 0x38 - 800394c: 4649 mov r1, r9 - 800394e: 00cb lsls r3, r1, #3 - 8003950: 4641 mov r1, r8 - 8003952: ea43 7351 orr.w r3, r3, r1, lsr #29 - 8003956: 4641 mov r1, r8 - 8003958: 00ca lsls r2, r1, #3 - 800395a: 4610 mov r0, r2 - 800395c: 4619 mov r1, r3 - 800395e: 4603 mov r3, r0 - 8003960: 4622 mov r2, r4 - 8003962: 189b adds r3, r3, r2 - 8003964: 633b str r3, [r7, #48] @ 0x30 - 8003966: 462b mov r3, r5 - 8003968: 460a mov r2, r1 - 800396a: eb42 0303 adc.w r3, r2, r3 - 800396e: 637b str r3, [r7, #52] @ 0x34 - 8003970: f04f 0200 mov.w r2, #0 - 8003974: f04f 0300 mov.w r3, #0 - 8003978: e9d7 450c ldrd r4, r5, [r7, #48] @ 0x30 - 800397c: 4629 mov r1, r5 - 800397e: 024b lsls r3, r1, #9 - 8003980: 4621 mov r1, r4 - 8003982: ea43 53d1 orr.w r3, r3, r1, lsr #23 - 8003986: 4621 mov r1, r4 - 8003988: 024a lsls r2, r1, #9 - 800398a: 4610 mov r0, r2 - 800398c: 4619 mov r1, r3 - 800398e: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac - 8003992: 2200 movs r2, #0 - 8003994: f8c7 3088 str.w r3, [r7, #136] @ 0x88 - 8003998: f8c7 208c str.w r2, [r7, #140] @ 0x8c - 800399c: e9d7 2322 ldrd r2, r3, [r7, #136] @ 0x88 - 80039a0: f7fc fc30 bl 8000204 <__aeabi_uldivmod> - 80039a4: 4602 mov r2, r0 - 80039a6: 460b mov r3, r1 - 80039a8: 4613 mov r3, r2 - 80039aa: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 - 80039ae: e067 b.n 8003a80 + 8003b7c: 4bae ldr r3, [pc, #696] @ (8003e38 ) + 8003b7e: 685b ldr r3, [r3, #4] + 8003b80: 099b lsrs r3, r3, #6 + 8003b82: 2200 movs r2, #0 + 8003b84: f8c7 3098 str.w r3, [r7, #152] @ 0x98 + 8003b88: f8c7 209c str.w r2, [r7, #156] @ 0x9c + 8003b8c: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98 + 8003b90: f3c3 0308 ubfx r3, r3, #0, #9 + 8003b94: f8c7 3090 str.w r3, [r7, #144] @ 0x90 + 8003b98: 2300 movs r3, #0 + 8003b9a: f8c7 3094 str.w r3, [r7, #148] @ 0x94 + 8003b9e: e9d7 4524 ldrd r4, r5, [r7, #144] @ 0x90 + 8003ba2: 4622 mov r2, r4 + 8003ba4: 462b mov r3, r5 + 8003ba6: f04f 0000 mov.w r0, #0 + 8003baa: f04f 0100 mov.w r1, #0 + 8003bae: 0159 lsls r1, r3, #5 + 8003bb0: ea41 61d2 orr.w r1, r1, r2, lsr #27 + 8003bb4: 0150 lsls r0, r2, #5 + 8003bb6: 4602 mov r2, r0 + 8003bb8: 460b mov r3, r1 + 8003bba: 4621 mov r1, r4 + 8003bbc: 1a51 subs r1, r2, r1 + 8003bbe: 6439 str r1, [r7, #64] @ 0x40 + 8003bc0: 4629 mov r1, r5 + 8003bc2: eb63 0301 sbc.w r3, r3, r1 + 8003bc6: 647b str r3, [r7, #68] @ 0x44 + 8003bc8: f04f 0200 mov.w r2, #0 + 8003bcc: f04f 0300 mov.w r3, #0 + 8003bd0: e9d7 8910 ldrd r8, r9, [r7, #64] @ 0x40 + 8003bd4: 4649 mov r1, r9 + 8003bd6: 018b lsls r3, r1, #6 + 8003bd8: 4641 mov r1, r8 + 8003bda: ea43 6391 orr.w r3, r3, r1, lsr #26 + 8003bde: 4641 mov r1, r8 + 8003be0: 018a lsls r2, r1, #6 + 8003be2: 4641 mov r1, r8 + 8003be4: 1a51 subs r1, r2, r1 + 8003be6: 63b9 str r1, [r7, #56] @ 0x38 + 8003be8: 4649 mov r1, r9 + 8003bea: eb63 0301 sbc.w r3, r3, r1 + 8003bee: 63fb str r3, [r7, #60] @ 0x3c + 8003bf0: f04f 0200 mov.w r2, #0 + 8003bf4: f04f 0300 mov.w r3, #0 + 8003bf8: e9d7 890e ldrd r8, r9, [r7, #56] @ 0x38 + 8003bfc: 4649 mov r1, r9 + 8003bfe: 00cb lsls r3, r1, #3 + 8003c00: 4641 mov r1, r8 + 8003c02: ea43 7351 orr.w r3, r3, r1, lsr #29 + 8003c06: 4641 mov r1, r8 + 8003c08: 00ca lsls r2, r1, #3 + 8003c0a: 4610 mov r0, r2 + 8003c0c: 4619 mov r1, r3 + 8003c0e: 4603 mov r3, r0 + 8003c10: 4622 mov r2, r4 + 8003c12: 189b adds r3, r3, r2 + 8003c14: 633b str r3, [r7, #48] @ 0x30 + 8003c16: 462b mov r3, r5 + 8003c18: 460a mov r2, r1 + 8003c1a: eb42 0303 adc.w r3, r2, r3 + 8003c1e: 637b str r3, [r7, #52] @ 0x34 + 8003c20: f04f 0200 mov.w r2, #0 + 8003c24: f04f 0300 mov.w r3, #0 + 8003c28: e9d7 450c ldrd r4, r5, [r7, #48] @ 0x30 + 8003c2c: 4629 mov r1, r5 + 8003c2e: 024b lsls r3, r1, #9 + 8003c30: 4621 mov r1, r4 + 8003c32: ea43 53d1 orr.w r3, r3, r1, lsr #23 + 8003c36: 4621 mov r1, r4 + 8003c38: 024a lsls r2, r1, #9 + 8003c3a: 4610 mov r0, r2 + 8003c3c: 4619 mov r1, r3 + 8003c3e: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac + 8003c42: 2200 movs r2, #0 + 8003c44: f8c7 3088 str.w r3, [r7, #136] @ 0x88 + 8003c48: f8c7 208c str.w r2, [r7, #140] @ 0x8c + 8003c4c: e9d7 2322 ldrd r2, r3, [r7, #136] @ 0x88 + 8003c50: f7fc fad8 bl 8000204 <__aeabi_uldivmod> + 8003c54: 4602 mov r2, r0 + 8003c56: 460b mov r3, r1 + 8003c58: 4613 mov r3, r2 + 8003c5a: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 + 8003c5e: e067 b.n 8003d30 } else { /* HSI used as PLL clock source */ pllvco = (uint32_t) ((((uint64_t) HSI_VALUE * ((uint64_t) ((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> RCC_PLLCFGR_PLLN_Pos)))) / (uint64_t)pllm); - 80039b0: 4b75 ldr r3, [pc, #468] @ (8003b88 ) - 80039b2: 685b ldr r3, [r3, #4] - 80039b4: 099b lsrs r3, r3, #6 - 80039b6: 2200 movs r2, #0 - 80039b8: f8c7 3080 str.w r3, [r7, #128] @ 0x80 - 80039bc: f8c7 2084 str.w r2, [r7, #132] @ 0x84 - 80039c0: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80 - 80039c4: f3c3 0308 ubfx r3, r3, #0, #9 - 80039c8: 67bb str r3, [r7, #120] @ 0x78 - 80039ca: 2300 movs r3, #0 - 80039cc: 67fb str r3, [r7, #124] @ 0x7c - 80039ce: e9d7 451e ldrd r4, r5, [r7, #120] @ 0x78 - 80039d2: 4622 mov r2, r4 - 80039d4: 462b mov r3, r5 - 80039d6: f04f 0000 mov.w r0, #0 - 80039da: f04f 0100 mov.w r1, #0 - 80039de: 0159 lsls r1, r3, #5 - 80039e0: ea41 61d2 orr.w r1, r1, r2, lsr #27 - 80039e4: 0150 lsls r0, r2, #5 - 80039e6: 4602 mov r2, r0 - 80039e8: 460b mov r3, r1 - 80039ea: 4621 mov r1, r4 - 80039ec: 1a51 subs r1, r2, r1 - 80039ee: 62b9 str r1, [r7, #40] @ 0x28 - 80039f0: 4629 mov r1, r5 - 80039f2: eb63 0301 sbc.w r3, r3, r1 - 80039f6: 62fb str r3, [r7, #44] @ 0x2c - 80039f8: f04f 0200 mov.w r2, #0 - 80039fc: f04f 0300 mov.w r3, #0 - 8003a00: e9d7 890a ldrd r8, r9, [r7, #40] @ 0x28 - 8003a04: 4649 mov r1, r9 - 8003a06: 018b lsls r3, r1, #6 - 8003a08: 4641 mov r1, r8 - 8003a0a: ea43 6391 orr.w r3, r3, r1, lsr #26 - 8003a0e: 4641 mov r1, r8 - 8003a10: 018a lsls r2, r1, #6 - 8003a12: 4641 mov r1, r8 - 8003a14: ebb2 0a01 subs.w sl, r2, r1 - 8003a18: 4649 mov r1, r9 - 8003a1a: eb63 0b01 sbc.w fp, r3, r1 - 8003a1e: f04f 0200 mov.w r2, #0 - 8003a22: f04f 0300 mov.w r3, #0 - 8003a26: ea4f 03cb mov.w r3, fp, lsl #3 - 8003a2a: ea43 735a orr.w r3, r3, sl, lsr #29 - 8003a2e: ea4f 02ca mov.w r2, sl, lsl #3 - 8003a32: 4692 mov sl, r2 - 8003a34: 469b mov fp, r3 - 8003a36: 4623 mov r3, r4 - 8003a38: eb1a 0303 adds.w r3, sl, r3 - 8003a3c: 623b str r3, [r7, #32] - 8003a3e: 462b mov r3, r5 - 8003a40: eb4b 0303 adc.w r3, fp, r3 - 8003a44: 627b str r3, [r7, #36] @ 0x24 - 8003a46: f04f 0200 mov.w r2, #0 - 8003a4a: f04f 0300 mov.w r3, #0 - 8003a4e: e9d7 4508 ldrd r4, r5, [r7, #32] - 8003a52: 4629 mov r1, r5 - 8003a54: 028b lsls r3, r1, #10 - 8003a56: 4621 mov r1, r4 - 8003a58: ea43 5391 orr.w r3, r3, r1, lsr #22 - 8003a5c: 4621 mov r1, r4 - 8003a5e: 028a lsls r2, r1, #10 - 8003a60: 4610 mov r0, r2 - 8003a62: 4619 mov r1, r3 - 8003a64: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac - 8003a68: 2200 movs r2, #0 - 8003a6a: 673b str r3, [r7, #112] @ 0x70 - 8003a6c: 677a str r2, [r7, #116] @ 0x74 - 8003a6e: e9d7 231c ldrd r2, r3, [r7, #112] @ 0x70 - 8003a72: f7fc fbc7 bl 8000204 <__aeabi_uldivmod> - 8003a76: 4602 mov r2, r0 - 8003a78: 460b mov r3, r1 - 8003a7a: 4613 mov r3, r2 - 8003a7c: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 + 8003c60: 4b75 ldr r3, [pc, #468] @ (8003e38 ) + 8003c62: 685b ldr r3, [r3, #4] + 8003c64: 099b lsrs r3, r3, #6 + 8003c66: 2200 movs r2, #0 + 8003c68: f8c7 3080 str.w r3, [r7, #128] @ 0x80 + 8003c6c: f8c7 2084 str.w r2, [r7, #132] @ 0x84 + 8003c70: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80 + 8003c74: f3c3 0308 ubfx r3, r3, #0, #9 + 8003c78: 67bb str r3, [r7, #120] @ 0x78 + 8003c7a: 2300 movs r3, #0 + 8003c7c: 67fb str r3, [r7, #124] @ 0x7c + 8003c7e: e9d7 451e ldrd r4, r5, [r7, #120] @ 0x78 + 8003c82: 4622 mov r2, r4 + 8003c84: 462b mov r3, r5 + 8003c86: f04f 0000 mov.w r0, #0 + 8003c8a: f04f 0100 mov.w r1, #0 + 8003c8e: 0159 lsls r1, r3, #5 + 8003c90: ea41 61d2 orr.w r1, r1, r2, lsr #27 + 8003c94: 0150 lsls r0, r2, #5 + 8003c96: 4602 mov r2, r0 + 8003c98: 460b mov r3, r1 + 8003c9a: 4621 mov r1, r4 + 8003c9c: 1a51 subs r1, r2, r1 + 8003c9e: 62b9 str r1, [r7, #40] @ 0x28 + 8003ca0: 4629 mov r1, r5 + 8003ca2: eb63 0301 sbc.w r3, r3, r1 + 8003ca6: 62fb str r3, [r7, #44] @ 0x2c + 8003ca8: f04f 0200 mov.w r2, #0 + 8003cac: f04f 0300 mov.w r3, #0 + 8003cb0: e9d7 890a ldrd r8, r9, [r7, #40] @ 0x28 + 8003cb4: 4649 mov r1, r9 + 8003cb6: 018b lsls r3, r1, #6 + 8003cb8: 4641 mov r1, r8 + 8003cba: ea43 6391 orr.w r3, r3, r1, lsr #26 + 8003cbe: 4641 mov r1, r8 + 8003cc0: 018a lsls r2, r1, #6 + 8003cc2: 4641 mov r1, r8 + 8003cc4: ebb2 0a01 subs.w sl, r2, r1 + 8003cc8: 4649 mov r1, r9 + 8003cca: eb63 0b01 sbc.w fp, r3, r1 + 8003cce: f04f 0200 mov.w r2, #0 + 8003cd2: f04f 0300 mov.w r3, #0 + 8003cd6: ea4f 03cb mov.w r3, fp, lsl #3 + 8003cda: ea43 735a orr.w r3, r3, sl, lsr #29 + 8003cde: ea4f 02ca mov.w r2, sl, lsl #3 + 8003ce2: 4692 mov sl, r2 + 8003ce4: 469b mov fp, r3 + 8003ce6: 4623 mov r3, r4 + 8003ce8: eb1a 0303 adds.w r3, sl, r3 + 8003cec: 623b str r3, [r7, #32] + 8003cee: 462b mov r3, r5 + 8003cf0: eb4b 0303 adc.w r3, fp, r3 + 8003cf4: 627b str r3, [r7, #36] @ 0x24 + 8003cf6: f04f 0200 mov.w r2, #0 + 8003cfa: f04f 0300 mov.w r3, #0 + 8003cfe: e9d7 4508 ldrd r4, r5, [r7, #32] + 8003d02: 4629 mov r1, r5 + 8003d04: 028b lsls r3, r1, #10 + 8003d06: 4621 mov r1, r4 + 8003d08: ea43 5391 orr.w r3, r3, r1, lsr #22 + 8003d0c: 4621 mov r1, r4 + 8003d0e: 028a lsls r2, r1, #10 + 8003d10: 4610 mov r0, r2 + 8003d12: 4619 mov r1, r3 + 8003d14: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac + 8003d18: 2200 movs r2, #0 + 8003d1a: 673b str r3, [r7, #112] @ 0x70 + 8003d1c: 677a str r2, [r7, #116] @ 0x74 + 8003d1e: e9d7 231c ldrd r2, r3, [r7, #112] @ 0x70 + 8003d22: f7fc fa6f bl 8000204 <__aeabi_uldivmod> + 8003d26: 4602 mov r2, r0 + 8003d28: 460b mov r3, r1 + 8003d2a: 4613 mov r3, r2 + 8003d2c: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 } pllp = ((((RCC->PLLCFGR & RCC_PLLCFGR_PLLP) >> RCC_PLLCFGR_PLLP_Pos) + 1U) *2U); - 8003a80: 4b41 ldr r3, [pc, #260] @ (8003b88 ) - 8003a82: 685b ldr r3, [r3, #4] - 8003a84: 0c1b lsrs r3, r3, #16 - 8003a86: f003 0303 and.w r3, r3, #3 - 8003a8a: 3301 adds r3, #1 - 8003a8c: 005b lsls r3, r3, #1 - 8003a8e: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8 + 8003d30: 4b41 ldr r3, [pc, #260] @ (8003e38 ) + 8003d32: 685b ldr r3, [r3, #4] + 8003d34: 0c1b lsrs r3, r3, #16 + 8003d36: f003 0303 and.w r3, r3, #3 + 8003d3a: 3301 adds r3, #1 + 8003d3c: 005b lsls r3, r3, #1 + 8003d3e: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8 sysclockfreq = pllvco/pllp; - 8003a92: f8d7 20b4 ldr.w r2, [r7, #180] @ 0xb4 - 8003a96: f8d7 30a8 ldr.w r3, [r7, #168] @ 0xa8 - 8003a9a: fbb2 f3f3 udiv r3, r2, r3 - 8003a9e: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 + 8003d42: f8d7 20b4 ldr.w r2, [r7, #180] @ 0xb4 + 8003d46: f8d7 30a8 ldr.w r3, [r7, #168] @ 0xa8 + 8003d4a: fbb2 f3f3 udiv r3, r2, r3 + 8003d4e: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 break; - 8003aa2: e0eb b.n 8003c7c + 8003d52: e0eb b.n 8003f2c } case RCC_CFGR_SWS_PLLR: /* PLL/PLLR used as system clock source */ { /* PLL_VCO = (HSE_VALUE or HSI_VALUE / PLLM) * PLLN SYSCLK = PLL_VCO / PLLR */ pllm = RCC->PLLCFGR & RCC_PLLCFGR_PLLM; - 8003aa4: 4b38 ldr r3, [pc, #224] @ (8003b88 ) - 8003aa6: 685b ldr r3, [r3, #4] - 8003aa8: f003 033f and.w r3, r3, #63 @ 0x3f - 8003aac: f8c7 30ac str.w r3, [r7, #172] @ 0xac + 8003d54: 4b38 ldr r3, [pc, #224] @ (8003e38 ) + 8003d56: 685b ldr r3, [r3, #4] + 8003d58: f003 033f and.w r3, r3, #63 @ 0x3f + 8003d5c: f8c7 30ac str.w r3, [r7, #172] @ 0xac if(__HAL_RCC_GET_PLL_OSCSOURCE() != RCC_PLLSOURCE_HSI) - 8003ab0: 4b35 ldr r3, [pc, #212] @ (8003b88 ) - 8003ab2: 685b ldr r3, [r3, #4] - 8003ab4: f403 0380 and.w r3, r3, #4194304 @ 0x400000 - 8003ab8: 2b00 cmp r3, #0 - 8003aba: d06b beq.n 8003b94 + 8003d60: 4b35 ldr r3, [pc, #212] @ (8003e38 ) + 8003d62: 685b ldr r3, [r3, #4] + 8003d64: f403 0380 and.w r3, r3, #4194304 @ 0x400000 + 8003d68: 2b00 cmp r3, #0 + 8003d6a: d06b beq.n 8003e44 { /* HSE used as PLL clock source */ pllvco = (uint32_t) ((((uint64_t) HSE_VALUE * ((uint64_t) ((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> RCC_PLLCFGR_PLLN_Pos)))) / (uint64_t)pllm); - 8003abc: 4b32 ldr r3, [pc, #200] @ (8003b88 ) - 8003abe: 685b ldr r3, [r3, #4] - 8003ac0: 099b lsrs r3, r3, #6 - 8003ac2: 2200 movs r2, #0 - 8003ac4: 66bb str r3, [r7, #104] @ 0x68 - 8003ac6: 66fa str r2, [r7, #108] @ 0x6c - 8003ac8: 6ebb ldr r3, [r7, #104] @ 0x68 - 8003aca: f3c3 0308 ubfx r3, r3, #0, #9 - 8003ace: 663b str r3, [r7, #96] @ 0x60 - 8003ad0: 2300 movs r3, #0 - 8003ad2: 667b str r3, [r7, #100] @ 0x64 - 8003ad4: e9d7 4518 ldrd r4, r5, [r7, #96] @ 0x60 - 8003ad8: 4622 mov r2, r4 - 8003ada: 462b mov r3, r5 - 8003adc: f04f 0000 mov.w r0, #0 - 8003ae0: f04f 0100 mov.w r1, #0 - 8003ae4: 0159 lsls r1, r3, #5 - 8003ae6: ea41 61d2 orr.w r1, r1, r2, lsr #27 - 8003aea: 0150 lsls r0, r2, #5 - 8003aec: 4602 mov r2, r0 - 8003aee: 460b mov r3, r1 - 8003af0: 4621 mov r1, r4 - 8003af2: 1a51 subs r1, r2, r1 - 8003af4: 61b9 str r1, [r7, #24] - 8003af6: 4629 mov r1, r5 - 8003af8: eb63 0301 sbc.w r3, r3, r1 - 8003afc: 61fb str r3, [r7, #28] - 8003afe: f04f 0200 mov.w r2, #0 - 8003b02: f04f 0300 mov.w r3, #0 - 8003b06: e9d7 ab06 ldrd sl, fp, [r7, #24] - 8003b0a: 4659 mov r1, fp - 8003b0c: 018b lsls r3, r1, #6 - 8003b0e: 4651 mov r1, sl - 8003b10: ea43 6391 orr.w r3, r3, r1, lsr #26 - 8003b14: 4651 mov r1, sl - 8003b16: 018a lsls r2, r1, #6 - 8003b18: 4651 mov r1, sl - 8003b1a: ebb2 0801 subs.w r8, r2, r1 - 8003b1e: 4659 mov r1, fp - 8003b20: eb63 0901 sbc.w r9, r3, r1 - 8003b24: f04f 0200 mov.w r2, #0 - 8003b28: f04f 0300 mov.w r3, #0 - 8003b2c: ea4f 03c9 mov.w r3, r9, lsl #3 - 8003b30: ea43 7358 orr.w r3, r3, r8, lsr #29 - 8003b34: ea4f 02c8 mov.w r2, r8, lsl #3 - 8003b38: 4690 mov r8, r2 - 8003b3a: 4699 mov r9, r3 - 8003b3c: 4623 mov r3, r4 - 8003b3e: eb18 0303 adds.w r3, r8, r3 - 8003b42: 613b str r3, [r7, #16] - 8003b44: 462b mov r3, r5 - 8003b46: eb49 0303 adc.w r3, r9, r3 - 8003b4a: 617b str r3, [r7, #20] - 8003b4c: f04f 0200 mov.w r2, #0 - 8003b50: f04f 0300 mov.w r3, #0 - 8003b54: e9d7 4504 ldrd r4, r5, [r7, #16] - 8003b58: 4629 mov r1, r5 - 8003b5a: 024b lsls r3, r1, #9 - 8003b5c: 4621 mov r1, r4 - 8003b5e: ea43 53d1 orr.w r3, r3, r1, lsr #23 - 8003b62: 4621 mov r1, r4 - 8003b64: 024a lsls r2, r1, #9 - 8003b66: 4610 mov r0, r2 - 8003b68: 4619 mov r1, r3 - 8003b6a: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac - 8003b6e: 2200 movs r2, #0 - 8003b70: 65bb str r3, [r7, #88] @ 0x58 - 8003b72: 65fa str r2, [r7, #92] @ 0x5c - 8003b74: e9d7 2316 ldrd r2, r3, [r7, #88] @ 0x58 - 8003b78: f7fc fb44 bl 8000204 <__aeabi_uldivmod> - 8003b7c: 4602 mov r2, r0 - 8003b7e: 460b mov r3, r1 - 8003b80: 4613 mov r3, r2 - 8003b82: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 - 8003b86: e065 b.n 8003c54 - 8003b88: 40023800 .word 0x40023800 - 8003b8c: 00f42400 .word 0x00f42400 - 8003b90: 007a1200 .word 0x007a1200 + 8003d6c: 4b32 ldr r3, [pc, #200] @ (8003e38 ) + 8003d6e: 685b ldr r3, [r3, #4] + 8003d70: 099b lsrs r3, r3, #6 + 8003d72: 2200 movs r2, #0 + 8003d74: 66bb str r3, [r7, #104] @ 0x68 + 8003d76: 66fa str r2, [r7, #108] @ 0x6c + 8003d78: 6ebb ldr r3, [r7, #104] @ 0x68 + 8003d7a: f3c3 0308 ubfx r3, r3, #0, #9 + 8003d7e: 663b str r3, [r7, #96] @ 0x60 + 8003d80: 2300 movs r3, #0 + 8003d82: 667b str r3, [r7, #100] @ 0x64 + 8003d84: e9d7 4518 ldrd r4, r5, [r7, #96] @ 0x60 + 8003d88: 4622 mov r2, r4 + 8003d8a: 462b mov r3, r5 + 8003d8c: f04f 0000 mov.w r0, #0 + 8003d90: f04f 0100 mov.w r1, #0 + 8003d94: 0159 lsls r1, r3, #5 + 8003d96: ea41 61d2 orr.w r1, r1, r2, lsr #27 + 8003d9a: 0150 lsls r0, r2, #5 + 8003d9c: 4602 mov r2, r0 + 8003d9e: 460b mov r3, r1 + 8003da0: 4621 mov r1, r4 + 8003da2: 1a51 subs r1, r2, r1 + 8003da4: 61b9 str r1, [r7, #24] + 8003da6: 4629 mov r1, r5 + 8003da8: eb63 0301 sbc.w r3, r3, r1 + 8003dac: 61fb str r3, [r7, #28] + 8003dae: f04f 0200 mov.w r2, #0 + 8003db2: f04f 0300 mov.w r3, #0 + 8003db6: e9d7 ab06 ldrd sl, fp, [r7, #24] + 8003dba: 4659 mov r1, fp + 8003dbc: 018b lsls r3, r1, #6 + 8003dbe: 4651 mov r1, sl + 8003dc0: ea43 6391 orr.w r3, r3, r1, lsr #26 + 8003dc4: 4651 mov r1, sl + 8003dc6: 018a lsls r2, r1, #6 + 8003dc8: 4651 mov r1, sl + 8003dca: ebb2 0801 subs.w r8, r2, r1 + 8003dce: 4659 mov r1, fp + 8003dd0: eb63 0901 sbc.w r9, r3, r1 + 8003dd4: f04f 0200 mov.w r2, #0 + 8003dd8: f04f 0300 mov.w r3, #0 + 8003ddc: ea4f 03c9 mov.w r3, r9, lsl #3 + 8003de0: ea43 7358 orr.w r3, r3, r8, lsr #29 + 8003de4: ea4f 02c8 mov.w r2, r8, lsl #3 + 8003de8: 4690 mov r8, r2 + 8003dea: 4699 mov r9, r3 + 8003dec: 4623 mov r3, r4 + 8003dee: eb18 0303 adds.w r3, r8, r3 + 8003df2: 613b str r3, [r7, #16] + 8003df4: 462b mov r3, r5 + 8003df6: eb49 0303 adc.w r3, r9, r3 + 8003dfa: 617b str r3, [r7, #20] + 8003dfc: f04f 0200 mov.w r2, #0 + 8003e00: f04f 0300 mov.w r3, #0 + 8003e04: e9d7 4504 ldrd r4, r5, [r7, #16] + 8003e08: 4629 mov r1, r5 + 8003e0a: 024b lsls r3, r1, #9 + 8003e0c: 4621 mov r1, r4 + 8003e0e: ea43 53d1 orr.w r3, r3, r1, lsr #23 + 8003e12: 4621 mov r1, r4 + 8003e14: 024a lsls r2, r1, #9 + 8003e16: 4610 mov r0, r2 + 8003e18: 4619 mov r1, r3 + 8003e1a: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac + 8003e1e: 2200 movs r2, #0 + 8003e20: 65bb str r3, [r7, #88] @ 0x58 + 8003e22: 65fa str r2, [r7, #92] @ 0x5c + 8003e24: e9d7 2316 ldrd r2, r3, [r7, #88] @ 0x58 + 8003e28: f7fc f9ec bl 8000204 <__aeabi_uldivmod> + 8003e2c: 4602 mov r2, r0 + 8003e2e: 460b mov r3, r1 + 8003e30: 4613 mov r3, r2 + 8003e32: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 + 8003e36: e065 b.n 8003f04 + 8003e38: 40023800 .word 0x40023800 + 8003e3c: 00f42400 .word 0x00f42400 + 8003e40: 007a1200 .word 0x007a1200 } else { /* HSI used as PLL clock source */ pllvco = (uint32_t) ((((uint64_t) HSI_VALUE * ((uint64_t) ((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> RCC_PLLCFGR_PLLN_Pos)))) / (uint64_t)pllm); - 8003b94: 4b3d ldr r3, [pc, #244] @ (8003c8c ) - 8003b96: 685b ldr r3, [r3, #4] - 8003b98: 099b lsrs r3, r3, #6 - 8003b9a: 2200 movs r2, #0 - 8003b9c: 4618 mov r0, r3 - 8003b9e: 4611 mov r1, r2 - 8003ba0: f3c0 0308 ubfx r3, r0, #0, #9 - 8003ba4: 653b str r3, [r7, #80] @ 0x50 - 8003ba6: 2300 movs r3, #0 - 8003ba8: 657b str r3, [r7, #84] @ 0x54 - 8003baa: e9d7 8914 ldrd r8, r9, [r7, #80] @ 0x50 - 8003bae: 4642 mov r2, r8 - 8003bb0: 464b mov r3, r9 - 8003bb2: f04f 0000 mov.w r0, #0 - 8003bb6: f04f 0100 mov.w r1, #0 - 8003bba: 0159 lsls r1, r3, #5 - 8003bbc: ea41 61d2 orr.w r1, r1, r2, lsr #27 - 8003bc0: 0150 lsls r0, r2, #5 - 8003bc2: 4602 mov r2, r0 - 8003bc4: 460b mov r3, r1 - 8003bc6: 4641 mov r1, r8 - 8003bc8: 1a51 subs r1, r2, r1 - 8003bca: 60b9 str r1, [r7, #8] - 8003bcc: 4649 mov r1, r9 - 8003bce: eb63 0301 sbc.w r3, r3, r1 - 8003bd2: 60fb str r3, [r7, #12] - 8003bd4: f04f 0200 mov.w r2, #0 - 8003bd8: f04f 0300 mov.w r3, #0 - 8003bdc: e9d7 ab02 ldrd sl, fp, [r7, #8] - 8003be0: 4659 mov r1, fp - 8003be2: 018b lsls r3, r1, #6 - 8003be4: 4651 mov r1, sl - 8003be6: ea43 6391 orr.w r3, r3, r1, lsr #26 - 8003bea: 4651 mov r1, sl - 8003bec: 018a lsls r2, r1, #6 - 8003bee: 4651 mov r1, sl - 8003bf0: 1a54 subs r4, r2, r1 - 8003bf2: 4659 mov r1, fp - 8003bf4: eb63 0501 sbc.w r5, r3, r1 - 8003bf8: f04f 0200 mov.w r2, #0 - 8003bfc: f04f 0300 mov.w r3, #0 - 8003c00: 00eb lsls r3, r5, #3 - 8003c02: ea43 7354 orr.w r3, r3, r4, lsr #29 - 8003c06: 00e2 lsls r2, r4, #3 - 8003c08: 4614 mov r4, r2 - 8003c0a: 461d mov r5, r3 - 8003c0c: 4643 mov r3, r8 - 8003c0e: 18e3 adds r3, r4, r3 - 8003c10: 603b str r3, [r7, #0] - 8003c12: 464b mov r3, r9 - 8003c14: eb45 0303 adc.w r3, r5, r3 - 8003c18: 607b str r3, [r7, #4] - 8003c1a: f04f 0200 mov.w r2, #0 - 8003c1e: f04f 0300 mov.w r3, #0 - 8003c22: e9d7 4500 ldrd r4, r5, [r7] - 8003c26: 4629 mov r1, r5 - 8003c28: 028b lsls r3, r1, #10 - 8003c2a: 4621 mov r1, r4 - 8003c2c: ea43 5391 orr.w r3, r3, r1, lsr #22 - 8003c30: 4621 mov r1, r4 - 8003c32: 028a lsls r2, r1, #10 - 8003c34: 4610 mov r0, r2 - 8003c36: 4619 mov r1, r3 - 8003c38: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac - 8003c3c: 2200 movs r2, #0 - 8003c3e: 64bb str r3, [r7, #72] @ 0x48 - 8003c40: 64fa str r2, [r7, #76] @ 0x4c - 8003c42: e9d7 2312 ldrd r2, r3, [r7, #72] @ 0x48 - 8003c46: f7fc fadd bl 8000204 <__aeabi_uldivmod> - 8003c4a: 4602 mov r2, r0 - 8003c4c: 460b mov r3, r1 - 8003c4e: 4613 mov r3, r2 - 8003c50: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 + 8003e44: 4b3d ldr r3, [pc, #244] @ (8003f3c ) + 8003e46: 685b ldr r3, [r3, #4] + 8003e48: 099b lsrs r3, r3, #6 + 8003e4a: 2200 movs r2, #0 + 8003e4c: 4618 mov r0, r3 + 8003e4e: 4611 mov r1, r2 + 8003e50: f3c0 0308 ubfx r3, r0, #0, #9 + 8003e54: 653b str r3, [r7, #80] @ 0x50 + 8003e56: 2300 movs r3, #0 + 8003e58: 657b str r3, [r7, #84] @ 0x54 + 8003e5a: e9d7 8914 ldrd r8, r9, [r7, #80] @ 0x50 + 8003e5e: 4642 mov r2, r8 + 8003e60: 464b mov r3, r9 + 8003e62: f04f 0000 mov.w r0, #0 + 8003e66: f04f 0100 mov.w r1, #0 + 8003e6a: 0159 lsls r1, r3, #5 + 8003e6c: ea41 61d2 orr.w r1, r1, r2, lsr #27 + 8003e70: 0150 lsls r0, r2, #5 + 8003e72: 4602 mov r2, r0 + 8003e74: 460b mov r3, r1 + 8003e76: 4641 mov r1, r8 + 8003e78: 1a51 subs r1, r2, r1 + 8003e7a: 60b9 str r1, [r7, #8] + 8003e7c: 4649 mov r1, r9 + 8003e7e: eb63 0301 sbc.w r3, r3, r1 + 8003e82: 60fb str r3, [r7, #12] + 8003e84: f04f 0200 mov.w r2, #0 + 8003e88: f04f 0300 mov.w r3, #0 + 8003e8c: e9d7 ab02 ldrd sl, fp, [r7, #8] + 8003e90: 4659 mov r1, fp + 8003e92: 018b lsls r3, r1, #6 + 8003e94: 4651 mov r1, sl + 8003e96: ea43 6391 orr.w r3, r3, r1, lsr #26 + 8003e9a: 4651 mov r1, sl + 8003e9c: 018a lsls r2, r1, #6 + 8003e9e: 4651 mov r1, sl + 8003ea0: 1a54 subs r4, r2, r1 + 8003ea2: 4659 mov r1, fp + 8003ea4: eb63 0501 sbc.w r5, r3, r1 + 8003ea8: f04f 0200 mov.w r2, #0 + 8003eac: f04f 0300 mov.w r3, #0 + 8003eb0: 00eb lsls r3, r5, #3 + 8003eb2: ea43 7354 orr.w r3, r3, r4, lsr #29 + 8003eb6: 00e2 lsls r2, r4, #3 + 8003eb8: 4614 mov r4, r2 + 8003eba: 461d mov r5, r3 + 8003ebc: 4643 mov r3, r8 + 8003ebe: 18e3 adds r3, r4, r3 + 8003ec0: 603b str r3, [r7, #0] + 8003ec2: 464b mov r3, r9 + 8003ec4: eb45 0303 adc.w r3, r5, r3 + 8003ec8: 607b str r3, [r7, #4] + 8003eca: f04f 0200 mov.w r2, #0 + 8003ece: f04f 0300 mov.w r3, #0 + 8003ed2: e9d7 4500 ldrd r4, r5, [r7] + 8003ed6: 4629 mov r1, r5 + 8003ed8: 028b lsls r3, r1, #10 + 8003eda: 4621 mov r1, r4 + 8003edc: ea43 5391 orr.w r3, r3, r1, lsr #22 + 8003ee0: 4621 mov r1, r4 + 8003ee2: 028a lsls r2, r1, #10 + 8003ee4: 4610 mov r0, r2 + 8003ee6: 4619 mov r1, r3 + 8003ee8: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac + 8003eec: 2200 movs r2, #0 + 8003eee: 64bb str r3, [r7, #72] @ 0x48 + 8003ef0: 64fa str r2, [r7, #76] @ 0x4c + 8003ef2: e9d7 2312 ldrd r2, r3, [r7, #72] @ 0x48 + 8003ef6: f7fc f985 bl 8000204 <__aeabi_uldivmod> + 8003efa: 4602 mov r2, r0 + 8003efc: 460b mov r3, r1 + 8003efe: 4613 mov r3, r2 + 8003f00: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 } pllr = ((RCC->PLLCFGR & RCC_PLLCFGR_PLLR) >> RCC_PLLCFGR_PLLR_Pos); - 8003c54: 4b0d ldr r3, [pc, #52] @ (8003c8c ) - 8003c56: 685b ldr r3, [r3, #4] - 8003c58: 0f1b lsrs r3, r3, #28 - 8003c5a: f003 0307 and.w r3, r3, #7 - 8003c5e: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4 + 8003f04: 4b0d ldr r3, [pc, #52] @ (8003f3c ) + 8003f06: 685b ldr r3, [r3, #4] + 8003f08: 0f1b lsrs r3, r3, #28 + 8003f0a: f003 0307 and.w r3, r3, #7 + 8003f0e: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4 sysclockfreq = pllvco/pllr; - 8003c62: f8d7 20b4 ldr.w r2, [r7, #180] @ 0xb4 - 8003c66: f8d7 30a4 ldr.w r3, [r7, #164] @ 0xa4 - 8003c6a: fbb2 f3f3 udiv r3, r2, r3 - 8003c6e: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 + 8003f12: f8d7 20b4 ldr.w r2, [r7, #180] @ 0xb4 + 8003f16: f8d7 30a4 ldr.w r3, [r7, #164] @ 0xa4 + 8003f1a: fbb2 f3f3 udiv r3, r2, r3 + 8003f1e: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 break; - 8003c72: e003 b.n 8003c7c + 8003f22: e003 b.n 8003f2c } default: { sysclockfreq = HSI_VALUE; - 8003c74: 4b06 ldr r3, [pc, #24] @ (8003c90 ) - 8003c76: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 + 8003f24: 4b06 ldr r3, [pc, #24] @ (8003f40 ) + 8003f26: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 break; - 8003c7a: bf00 nop + 8003f2a: bf00 nop } } return sysclockfreq; - 8003c7c: f8d7 30b0 ldr.w r3, [r7, #176] @ 0xb0 + 8003f2c: f8d7 30b0 ldr.w r3, [r7, #176] @ 0xb0 } - 8003c80: 4618 mov r0, r3 - 8003c82: 37b8 adds r7, #184 @ 0xb8 - 8003c84: 46bd mov sp, r7 - 8003c86: e8bd 8fb0 ldmia.w sp!, {r4, r5, r7, r8, r9, sl, fp, pc} - 8003c8a: bf00 nop - 8003c8c: 40023800 .word 0x40023800 - 8003c90: 00f42400 .word 0x00f42400 + 8003f30: 4618 mov r0, r3 + 8003f32: 37b8 adds r7, #184 @ 0xb8 + 8003f34: 46bd mov sp, r7 + 8003f36: e8bd 8fb0 ldmia.w sp!, {r4, r5, r7, r8, r9, sl, fp, pc} + 8003f3a: bf00 nop + 8003f3c: 40023800 .word 0x40023800 + 8003f40: 00f42400 .word 0x00f42400 -08003c94 : +08003f44 : + * - Peripheral clocks + * - LSI, LSE and RTC clocks + * @retval HAL status + */ +HAL_StatusTypeDef HAL_RCC_DeInit(void) +{ + 8003f44: b580 push {r7, lr} + 8003f46: b082 sub sp, #8 + 8003f48: af00 add r7, sp, #0 + uint32_t tickstart; + + /* Get Start Tick */ + tickstart = HAL_GetTick(); + 8003f4a: f7fd fedb bl 8001d04 + 8003f4e: 6078 str r0, [r7, #4] + + /* Set HSION bit to the reset value */ + SET_BIT(RCC->CR, RCC_CR_HSION); + 8003f50: 4b72 ldr r3, [pc, #456] @ (800411c ) + 8003f52: 681b ldr r3, [r3, #0] + 8003f54: 4a71 ldr r2, [pc, #452] @ (800411c ) + 8003f56: f043 0301 orr.w r3, r3, #1 + 8003f5a: 6013 str r3, [r2, #0] + + /* Wait till HSI is ready */ + while (READ_BIT(RCC->CR, RCC_CR_HSIRDY) == RESET) + 8003f5c: e008 b.n 8003f70 + { + if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE) + 8003f5e: f7fd fed1 bl 8001d04 + 8003f62: 4602 mov r2, r0 + 8003f64: 687b ldr r3, [r7, #4] + 8003f66: 1ad3 subs r3, r2, r3 + 8003f68: 2b02 cmp r3, #2 + 8003f6a: d901 bls.n 8003f70 + { + return HAL_TIMEOUT; + 8003f6c: 2303 movs r3, #3 + 8003f6e: e0d0 b.n 8004112 + while (READ_BIT(RCC->CR, RCC_CR_HSIRDY) == RESET) + 8003f70: 4b6a ldr r3, [pc, #424] @ (800411c ) + 8003f72: 681b ldr r3, [r3, #0] + 8003f74: f003 0302 and.w r3, r3, #2 + 8003f78: 2b00 cmp r3, #0 + 8003f7a: d0f0 beq.n 8003f5e + } + } + + /* Set HSITRIM[4:0] bits to the reset value */ + SET_BIT(RCC->CR, RCC_CR_HSITRIM_4); + 8003f7c: 4b67 ldr r3, [pc, #412] @ (800411c ) + 8003f7e: 681b ldr r3, [r3, #0] + 8003f80: 4a66 ldr r2, [pc, #408] @ (800411c ) + 8003f82: f043 0380 orr.w r3, r3, #128 @ 0x80 + 8003f86: 6013 str r3, [r2, #0] + + /* Get Start Tick */ + tickstart = HAL_GetTick(); + 8003f88: f7fd febc bl 8001d04 + 8003f8c: 6078 str r0, [r7, #4] + + /* Reset CFGR register */ + CLEAR_REG(RCC->CFGR); + 8003f8e: 4b63 ldr r3, [pc, #396] @ (800411c ) + 8003f90: 2200 movs r2, #0 + 8003f92: 609a str r2, [r3, #8] + + /* Wait till clock switch is ready */ + while (READ_BIT(RCC->CFGR, RCC_CFGR_SWS) != RESET) + 8003f94: e00a b.n 8003fac + { + if ((HAL_GetTick() - tickstart) > CLOCKSWITCH_TIMEOUT_VALUE) + 8003f96: f7fd feb5 bl 8001d04 + 8003f9a: 4602 mov r2, r0 + 8003f9c: 687b ldr r3, [r7, #4] + 8003f9e: 1ad3 subs r3, r2, r3 + 8003fa0: f241 3288 movw r2, #5000 @ 0x1388 + 8003fa4: 4293 cmp r3, r2 + 8003fa6: d901 bls.n 8003fac + { + return HAL_TIMEOUT; + 8003fa8: 2303 movs r3, #3 + 8003faa: e0b2 b.n 8004112 + while (READ_BIT(RCC->CFGR, RCC_CFGR_SWS) != RESET) + 8003fac: 4b5b ldr r3, [pc, #364] @ (800411c ) + 8003fae: 689b ldr r3, [r3, #8] + 8003fb0: f003 030c and.w r3, r3, #12 + 8003fb4: 2b00 cmp r3, #0 + 8003fb6: d1ee bne.n 8003f96 + } + } + + /* Get Start Tick */ + tickstart = HAL_GetTick(); + 8003fb8: f7fd fea4 bl 8001d04 + 8003fbc: 6078 str r0, [r7, #4] + + /* Clear HSEON, HSEBYP and CSSON bits */ + CLEAR_BIT(RCC->CR, RCC_CR_HSEON | RCC_CR_HSEBYP | RCC_CR_CSSON); + 8003fbe: 4b57 ldr r3, [pc, #348] @ (800411c ) + 8003fc0: 681b ldr r3, [r3, #0] + 8003fc2: 4a56 ldr r2, [pc, #344] @ (800411c ) + 8003fc4: f423 2350 bic.w r3, r3, #851968 @ 0xd0000 + 8003fc8: 6013 str r3, [r2, #0] + + /* Wait till HSE is disabled */ + while (READ_BIT(RCC->CR, RCC_CR_HSERDY) != RESET) + 8003fca: e008 b.n 8003fde + { + if ((HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE) + 8003fcc: f7fd fe9a bl 8001d04 + 8003fd0: 4602 mov r2, r0 + 8003fd2: 687b ldr r3, [r7, #4] + 8003fd4: 1ad3 subs r3, r2, r3 + 8003fd6: 2b64 cmp r3, #100 @ 0x64 + 8003fd8: d901 bls.n 8003fde + { + return HAL_TIMEOUT; + 8003fda: 2303 movs r3, #3 + 8003fdc: e099 b.n 8004112 + while (READ_BIT(RCC->CR, RCC_CR_HSERDY) != RESET) + 8003fde: 4b4f ldr r3, [pc, #316] @ (800411c ) + 8003fe0: 681b ldr r3, [r3, #0] + 8003fe2: f403 3300 and.w r3, r3, #131072 @ 0x20000 + 8003fe6: 2b00 cmp r3, #0 + 8003fe8: d1f0 bne.n 8003fcc + } + } + + /* Get Start Tick */ + tickstart = HAL_GetTick(); + 8003fea: f7fd fe8b bl 8001d04 + 8003fee: 6078 str r0, [r7, #4] + + /* Clear PLLON bit */ + CLEAR_BIT(RCC->CR, RCC_CR_PLLON); + 8003ff0: 4b4a ldr r3, [pc, #296] @ (800411c ) + 8003ff2: 681b ldr r3, [r3, #0] + 8003ff4: 4a49 ldr r2, [pc, #292] @ (800411c ) + 8003ff6: f023 7380 bic.w r3, r3, #16777216 @ 0x1000000 + 8003ffa: 6013 str r3, [r2, #0] + + /* Wait till PLL is disabled */ + while (READ_BIT(RCC->CR, RCC_CR_PLLRDY) != RESET) + 8003ffc: e008 b.n 8004010 + { + if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) + 8003ffe: f7fd fe81 bl 8001d04 + 8004002: 4602 mov r2, r0 + 8004004: 687b ldr r3, [r7, #4] + 8004006: 1ad3 subs r3, r2, r3 + 8004008: 2b02 cmp r3, #2 + 800400a: d901 bls.n 8004010 + { + return HAL_TIMEOUT; + 800400c: 2303 movs r3, #3 + 800400e: e080 b.n 8004112 + while (READ_BIT(RCC->CR, RCC_CR_PLLRDY) != RESET) + 8004010: 4b42 ldr r3, [pc, #264] @ (800411c ) + 8004012: 681b ldr r3, [r3, #0] + 8004014: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 + 8004018: 2b00 cmp r3, #0 + 800401a: d1f0 bne.n 8003ffe + } + } + +#if defined(RCC_PLLI2S_SUPPORT) + /* Get Start Tick */ + tickstart = HAL_GetTick(); + 800401c: f7fd fe72 bl 8001d04 + 8004020: 6078 str r0, [r7, #4] + + /* Reset PLLI2SON bit */ + CLEAR_BIT(RCC->CR, RCC_CR_PLLI2SON); + 8004022: 4b3e ldr r3, [pc, #248] @ (800411c ) + 8004024: 681b ldr r3, [r3, #0] + 8004026: 4a3d ldr r2, [pc, #244] @ (800411c ) + 8004028: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000 + 800402c: 6013 str r3, [r2, #0] + + /* Wait till PLLI2S is disabled */ + while (READ_BIT(RCC->CR, RCC_CR_PLLI2SRDY) != RESET) + 800402e: e008 b.n 8004042 + { + if ((HAL_GetTick() - tickstart) > PLLI2S_TIMEOUT_VALUE) + 8004030: f7fd fe68 bl 8001d04 + 8004034: 4602 mov r2, r0 + 8004036: 687b ldr r3, [r7, #4] + 8004038: 1ad3 subs r3, r2, r3 + 800403a: 2b02 cmp r3, #2 + 800403c: d901 bls.n 8004042 + { + return HAL_TIMEOUT; + 800403e: 2303 movs r3, #3 + 8004040: e067 b.n 8004112 + while (READ_BIT(RCC->CR, RCC_CR_PLLI2SRDY) != RESET) + 8004042: 4b36 ldr r3, [pc, #216] @ (800411c ) + 8004044: 681b ldr r3, [r3, #0] + 8004046: f003 6300 and.w r3, r3, #134217728 @ 0x8000000 + 800404a: 2b00 cmp r3, #0 + 800404c: d1f0 bne.n 8004030 + } +#endif /* RCC_PLLI2S_SUPPORT */ + +#if defined(RCC_PLLSAI_SUPPORT) + /* Get Start Tick */ + tickstart = HAL_GetTick(); + 800404e: f7fd fe59 bl 8001d04 + 8004052: 6078 str r0, [r7, #4] + + /* Reset PLLSAI bit */ + CLEAR_BIT(RCC->CR, RCC_CR_PLLSAION); + 8004054: 4b31 ldr r3, [pc, #196] @ (800411c ) + 8004056: 681b ldr r3, [r3, #0] + 8004058: 4a30 ldr r2, [pc, #192] @ (800411c ) + 800405a: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000 + 800405e: 6013 str r3, [r2, #0] + + /* Wait till PLLSAI is disabled */ + while (READ_BIT(RCC->CR, RCC_CR_PLLSAIRDY) != RESET) + 8004060: e008 b.n 8004074 + { + if ((HAL_GetTick() - tickstart) > PLLSAI_TIMEOUT_VALUE) + 8004062: f7fd fe4f bl 8001d04 + 8004066: 4602 mov r2, r0 + 8004068: 687b ldr r3, [r7, #4] + 800406a: 1ad3 subs r3, r2, r3 + 800406c: 2b02 cmp r3, #2 + 800406e: d901 bls.n 8004074 + { + return HAL_TIMEOUT; + 8004070: 2303 movs r3, #3 + 8004072: e04e b.n 8004112 + while (READ_BIT(RCC->CR, RCC_CR_PLLSAIRDY) != RESET) + 8004074: 4b29 ldr r3, [pc, #164] @ (800411c ) + 8004076: 681b ldr r3, [r3, #0] + 8004078: f003 5300 and.w r3, r3, #536870912 @ 0x20000000 + 800407c: 2b00 cmp r3, #0 + 800407e: d1f0 bne.n 8004062 +#endif /* RCC_PLLSAI_SUPPORT */ + + /* Once PLL, PLLI2S and PLLSAI are OFF, reset PLLCFGR register to default value */ +#if defined(STM32F412Cx) || defined(STM32F412Rx) || defined(STM32F412Vx) || defined(STM32F412Zx) || defined(STM32F413xx) || \ + defined(STM32F423xx) || defined(STM32F446xx) || defined(STM32F469xx) || defined(STM32F479xx) + RCC->PLLCFGR = RCC_PLLCFGR_PLLM_4 | RCC_PLLCFGR_PLLN_6 | RCC_PLLCFGR_PLLN_7 | RCC_PLLCFGR_PLLQ_2 | RCC_PLLCFGR_PLLR_1; + 8004080: 4b26 ldr r3, [pc, #152] @ (800411c ) + 8004082: 4a27 ldr r2, [pc, #156] @ (8004120 ) + 8004084: 605a str r2, [r3, #4] +#endif /* STM32F412Cx || STM32F412Rx || STM32F412Vx || STM32F412Zx || STM32F413xx || STM32F423xx || STM32F446xx || STM32F469xx || STM32F479xx */ + + /* Reset PLLI2SCFGR register to default value */ +#if defined(STM32F412Cx) || defined(STM32F412Rx) || defined(STM32F412Vx) || defined(STM32F412Zx) || defined(STM32F413xx) || \ + defined(STM32F423xx) || defined(STM32F446xx) + RCC->PLLI2SCFGR = RCC_PLLI2SCFGR_PLLI2SM_4 | RCC_PLLI2SCFGR_PLLI2SN_6 | RCC_PLLI2SCFGR_PLLI2SN_7 | RCC_PLLI2SCFGR_PLLI2SQ_2 | RCC_PLLI2SCFGR_PLLI2SR_1; + 8004086: 4b25 ldr r3, [pc, #148] @ (800411c ) + 8004088: 4a25 ldr r2, [pc, #148] @ (8004120 ) + 800408a: f8c3 2084 str.w r2, [r3, #132] @ 0x84 + + /* Reset PLLSAICFGR register */ +#if defined(STM32F427xx) || defined(STM32F429xx) || defined(STM32F437xx) || defined(STM32F439xx) || defined(STM32F469xx) || defined(STM32F479xx) + RCC->PLLSAICFGR = RCC_PLLSAICFGR_PLLSAIN_6 | RCC_PLLSAICFGR_PLLSAIN_7 | RCC_PLLSAICFGR_PLLSAIQ_2 | RCC_PLLSAICFGR_PLLSAIR_1; +#elif defined(STM32F446xx) + RCC->PLLSAICFGR = RCC_PLLSAICFGR_PLLSAIM_4 | RCC_PLLSAICFGR_PLLSAIN_6 | RCC_PLLSAICFGR_PLLSAIN_7 | RCC_PLLSAICFGR_PLLSAIQ_2; + 800408e: 4b23 ldr r3, [pc, #140] @ (800411c ) + 8004090: 4a24 ldr r2, [pc, #144] @ (8004124 ) + 8004092: f8c3 2088 str.w r2, [r3, #136] @ 0x88 +#endif /* STM32F427xx || STM32F429xx || STM32F437xx || STM32F439xx || STM32F469xx || STM32F479xx */ + + /* Disable all interrupts */ + CLEAR_BIT(RCC->CIR, RCC_CIR_LSIRDYIE | RCC_CIR_LSERDYIE | RCC_CIR_HSIRDYIE | RCC_CIR_HSERDYIE | RCC_CIR_PLLRDYIE); + 8004096: 4b21 ldr r3, [pc, #132] @ (800411c ) + 8004098: 68db ldr r3, [r3, #12] + 800409a: 4a20 ldr r2, [pc, #128] @ (800411c ) + 800409c: f423 53f8 bic.w r3, r3, #7936 @ 0x1f00 + 80040a0: 60d3 str r3, [r2, #12] + +#if defined(RCC_CIR_PLLI2SRDYIE) + CLEAR_BIT(RCC->CIR, RCC_CIR_PLLI2SRDYIE); + 80040a2: 4b1e ldr r3, [pc, #120] @ (800411c ) + 80040a4: 68db ldr r3, [r3, #12] + 80040a6: 4a1d ldr r2, [pc, #116] @ (800411c ) + 80040a8: f423 5300 bic.w r3, r3, #8192 @ 0x2000 + 80040ac: 60d3 str r3, [r2, #12] +#endif /* RCC_CIR_PLLI2SRDYIE */ + +#if defined(RCC_CIR_PLLSAIRDYIE) + CLEAR_BIT(RCC->CIR, RCC_CIR_PLLSAIRDYIE); + 80040ae: 4b1b ldr r3, [pc, #108] @ (800411c ) + 80040b0: 68db ldr r3, [r3, #12] + 80040b2: 4a1a ldr r2, [pc, #104] @ (800411c ) + 80040b4: f423 4380 bic.w r3, r3, #16384 @ 0x4000 + 80040b8: 60d3 str r3, [r2, #12] +#endif /* RCC_CIR_PLLSAIRDYIE */ + + /* Clear all interrupt flags */ + SET_BIT(RCC->CIR, RCC_CIR_LSIRDYC | RCC_CIR_LSERDYC | RCC_CIR_HSIRDYC | RCC_CIR_HSERDYC | RCC_CIR_PLLRDYC | RCC_CIR_CSSC); + 80040ba: 4b18 ldr r3, [pc, #96] @ (800411c ) + 80040bc: 68db ldr r3, [r3, #12] + 80040be: 4a17 ldr r2, [pc, #92] @ (800411c ) + 80040c0: f443 031f orr.w r3, r3, #10420224 @ 0x9f0000 + 80040c4: 60d3 str r3, [r2, #12] + +#if defined(RCC_CIR_PLLI2SRDYC) + SET_BIT(RCC->CIR, RCC_CIR_PLLI2SRDYC); + 80040c6: 4b15 ldr r3, [pc, #84] @ (800411c ) + 80040c8: 68db ldr r3, [r3, #12] + 80040ca: 4a14 ldr r2, [pc, #80] @ (800411c ) + 80040cc: f443 1300 orr.w r3, r3, #2097152 @ 0x200000 + 80040d0: 60d3 str r3, [r2, #12] +#endif /* RCC_CIR_PLLI2SRDYC */ + +#if defined(RCC_CIR_PLLSAIRDYC) + SET_BIT(RCC->CIR, RCC_CIR_PLLSAIRDYC); + 80040d2: 4b12 ldr r3, [pc, #72] @ (800411c ) + 80040d4: 68db ldr r3, [r3, #12] + 80040d6: 4a11 ldr r2, [pc, #68] @ (800411c ) + 80040d8: f443 0380 orr.w r3, r3, #4194304 @ 0x400000 + 80040dc: 60d3 str r3, [r2, #12] +#endif /* RCC_CIR_PLLSAIRDYC */ + + /* Clear LSION bit */ + CLEAR_BIT(RCC->CSR, RCC_CSR_LSION); + 80040de: 4b0f ldr r3, [pc, #60] @ (800411c ) + 80040e0: 6f5b ldr r3, [r3, #116] @ 0x74 + 80040e2: 4a0e ldr r2, [pc, #56] @ (800411c ) + 80040e4: f023 0301 bic.w r3, r3, #1 + 80040e8: 6753 str r3, [r2, #116] @ 0x74 + + /* Reset all CSR flags */ + SET_BIT(RCC->CSR, RCC_CSR_RMVF); + 80040ea: 4b0c ldr r3, [pc, #48] @ (800411c ) + 80040ec: 6f5b ldr r3, [r3, #116] @ 0x74 + 80040ee: 4a0b ldr r2, [pc, #44] @ (800411c ) + 80040f0: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000 + 80040f4: 6753 str r3, [r2, #116] @ 0x74 + + /* Update the SystemCoreClock global variable */ + SystemCoreClock = HSI_VALUE; + 80040f6: 4b0c ldr r3, [pc, #48] @ (8004128 ) + 80040f8: 4a0c ldr r2, [pc, #48] @ (800412c ) + 80040fa: 601a str r2, [r3, #0] + + /* Adapt Systick interrupt period */ + if(HAL_InitTick(uwTickPrio) != HAL_OK) + 80040fc: 4b0c ldr r3, [pc, #48] @ (8004130 ) + 80040fe: 681b ldr r3, [r3, #0] + 8004100: 4618 mov r0, r3 + 8004102: f7fd fa31 bl 8001568 + 8004106: 4603 mov r3, r0 + 8004108: 2b00 cmp r3, #0 + 800410a: d001 beq.n 8004110 + { + return HAL_ERROR; + 800410c: 2301 movs r3, #1 + 800410e: e000 b.n 8004112 + } + else + { + return HAL_OK; + 8004110: 2300 movs r3, #0 + } +} + 8004112: 4618 mov r0, r3 + 8004114: 3708 adds r7, #8 + 8004116: 46bd mov sp, r7 + 8004118: bd80 pop {r7, pc} + 800411a: bf00 nop + 800411c: 40023800 .word 0x40023800 + 8004120: 24003010 .word 0x24003010 + 8004124: 04003010 .word 0x04003010 + 8004128: 20000008 .word 0x20000008 + 800412c: 00f42400 .word 0x00f42400 + 8004130: 2000000c .word 0x2000000c + +08004134 : * @note This function add the PLL/PLLR factor management during PLL configuration this feature * is only available in STM32F410xx/STM32F446xx/STM32F469xx/STM32F479xx/STM32F412Zx/STM32F412Vx/STM32F412Rx/STM32F412Cx devices * @retval HAL status */ HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct) { - 8003c94: b580 push {r7, lr} - 8003c96: b086 sub sp, #24 - 8003c98: af00 add r7, sp, #0 - 8003c9a: 6078 str r0, [r7, #4] + 8004134: b580 push {r7, lr} + 8004136: b086 sub sp, #24 + 8004138: af00 add r7, sp, #0 + 800413a: 6078 str r0, [r7, #4] uint32_t tickstart, pll_config; /* Check Null pointer */ if(RCC_OscInitStruct == NULL) - 8003c9c: 687b ldr r3, [r7, #4] - 8003c9e: 2b00 cmp r3, #0 - 8003ca0: d101 bne.n 8003ca6 + 800413c: 687b ldr r3, [r7, #4] + 800413e: 2b00 cmp r3, #0 + 8004140: d101 bne.n 8004146 { return HAL_ERROR; - 8003ca2: 2301 movs r3, #1 - 8003ca4: e28d b.n 80041c2 + 8004142: 2301 movs r3, #1 + 8004144: e28d b.n 8004662 } /* Check the parameters */ assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType)); /*------------------------------- HSE Configuration ------------------------*/ if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE) - 8003ca6: 687b ldr r3, [r7, #4] - 8003ca8: 681b ldr r3, [r3, #0] - 8003caa: f003 0301 and.w r3, r3, #1 - 8003cae: 2b00 cmp r3, #0 - 8003cb0: f000 8083 beq.w 8003dba + 8004146: 687b ldr r3, [r7, #4] + 8004148: 681b ldr r3, [r3, #0] + 800414a: f003 0301 and.w r3, r3, #1 + 800414e: 2b00 cmp r3, #0 + 8004150: f000 8083 beq.w 800425a { /* Check the parameters */ assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState)); /* When the HSE is used as system clock or clock source for PLL in these cases HSE will not disabled */ #if defined(STM32F446xx) if((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_HSE) ||\ - 8003cb4: 4b94 ldr r3, [pc, #592] @ (8003f08 ) - 8003cb6: 689b ldr r3, [r3, #8] - 8003cb8: f003 030c and.w r3, r3, #12 - 8003cbc: 2b04 cmp r3, #4 - 8003cbe: d019 beq.n 8003cf4 + 8004154: 4b94 ldr r3, [pc, #592] @ (80043a8 ) + 8004156: 689b ldr r3, [r3, #8] + 8004158: f003 030c and.w r3, r3, #12 + 800415c: 2b04 cmp r3, #4 + 800415e: d019 beq.n 8004194 ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLL) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSE)) ||\ - 8003cc0: 4b91 ldr r3, [pc, #580] @ (8003f08 ) - 8003cc2: 689b ldr r3, [r3, #8] - 8003cc4: f003 030c and.w r3, r3, #12 + 8004160: 4b91 ldr r3, [pc, #580] @ (80043a8 ) + 8004162: 689b ldr r3, [r3, #8] + 8004164: f003 030c and.w r3, r3, #12 if((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_HSE) ||\ - 8003cc8: 2b08 cmp r3, #8 - 8003cca: d106 bne.n 8003cda + 8004168: 2b08 cmp r3, #8 + 800416a: d106 bne.n 800417a ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLL) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSE)) ||\ - 8003ccc: 4b8e ldr r3, [pc, #568] @ (8003f08 ) - 8003cce: 685b ldr r3, [r3, #4] - 8003cd0: f403 0380 and.w r3, r3, #4194304 @ 0x400000 - 8003cd4: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000 - 8003cd8: d00c beq.n 8003cf4 + 800416c: 4b8e ldr r3, [pc, #568] @ (80043a8 ) + 800416e: 685b ldr r3, [r3, #4] + 8004170: f403 0380 and.w r3, r3, #4194304 @ 0x400000 + 8004174: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000 + 8004178: d00c beq.n 8004194 ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLLR) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSE))) - 8003cda: 4b8b ldr r3, [pc, #556] @ (8003f08 ) - 8003cdc: 689b ldr r3, [r3, #8] - 8003cde: f003 030c and.w r3, r3, #12 + 800417a: 4b8b ldr r3, [pc, #556] @ (80043a8 ) + 800417c: 689b ldr r3, [r3, #8] + 800417e: f003 030c and.w r3, r3, #12 ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLL) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSE)) ||\ - 8003ce2: 2b0c cmp r3, #12 - 8003ce4: d112 bne.n 8003d0c + 8004182: 2b0c cmp r3, #12 + 8004184: d112 bne.n 80041ac ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLLR) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSE))) - 8003ce6: 4b88 ldr r3, [pc, #544] @ (8003f08 ) - 8003ce8: 685b ldr r3, [r3, #4] - 8003cea: f403 0380 and.w r3, r3, #4194304 @ 0x400000 - 8003cee: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000 - 8003cf2: d10b bne.n 8003d0c + 8004186: 4b88 ldr r3, [pc, #544] @ (80043a8 ) + 8004188: 685b ldr r3, [r3, #4] + 800418a: f403 0380 and.w r3, r3, #4194304 @ 0x400000 + 800418e: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000 + 8004192: d10b bne.n 80041ac #else if((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_HSE) ||\ ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLL) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSE))) #endif /* STM32F446xx */ { if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) - 8003cf4: 4b84 ldr r3, [pc, #528] @ (8003f08 ) - 8003cf6: 681b ldr r3, [r3, #0] - 8003cf8: f403 3300 and.w r3, r3, #131072 @ 0x20000 - 8003cfc: 2b00 cmp r3, #0 - 8003cfe: d05b beq.n 8003db8 - 8003d00: 687b ldr r3, [r7, #4] - 8003d02: 685b ldr r3, [r3, #4] - 8003d04: 2b00 cmp r3, #0 - 8003d06: d157 bne.n 8003db8 + 8004194: 4b84 ldr r3, [pc, #528] @ (80043a8 ) + 8004196: 681b ldr r3, [r3, #0] + 8004198: f403 3300 and.w r3, r3, #131072 @ 0x20000 + 800419c: 2b00 cmp r3, #0 + 800419e: d05b beq.n 8004258 + 80041a0: 687b ldr r3, [r7, #4] + 80041a2: 685b ldr r3, [r3, #4] + 80041a4: 2b00 cmp r3, #0 + 80041a6: d157 bne.n 8004258 { return HAL_ERROR; - 8003d08: 2301 movs r3, #1 - 8003d0a: e25a b.n 80041c2 + 80041a8: 2301 movs r3, #1 + 80041aa: e25a b.n 8004662 } } else { /* Set the new HSE configuration ---------------------------------------*/ __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState); - 8003d0c: 687b ldr r3, [r7, #4] - 8003d0e: 685b ldr r3, [r3, #4] - 8003d10: f5b3 3f80 cmp.w r3, #65536 @ 0x10000 - 8003d14: d106 bne.n 8003d24 - 8003d16: 4b7c ldr r3, [pc, #496] @ (8003f08 ) - 8003d18: 681b ldr r3, [r3, #0] - 8003d1a: 4a7b ldr r2, [pc, #492] @ (8003f08 ) - 8003d1c: f443 3380 orr.w r3, r3, #65536 @ 0x10000 - 8003d20: 6013 str r3, [r2, #0] - 8003d22: e01d b.n 8003d60 - 8003d24: 687b ldr r3, [r7, #4] - 8003d26: 685b ldr r3, [r3, #4] - 8003d28: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000 - 8003d2c: d10c bne.n 8003d48 - 8003d2e: 4b76 ldr r3, [pc, #472] @ (8003f08 ) - 8003d30: 681b ldr r3, [r3, #0] - 8003d32: 4a75 ldr r2, [pc, #468] @ (8003f08 ) - 8003d34: f443 2380 orr.w r3, r3, #262144 @ 0x40000 - 8003d38: 6013 str r3, [r2, #0] - 8003d3a: 4b73 ldr r3, [pc, #460] @ (8003f08 ) - 8003d3c: 681b ldr r3, [r3, #0] - 8003d3e: 4a72 ldr r2, [pc, #456] @ (8003f08 ) - 8003d40: f443 3380 orr.w r3, r3, #65536 @ 0x10000 - 8003d44: 6013 str r3, [r2, #0] - 8003d46: e00b b.n 8003d60 - 8003d48: 4b6f ldr r3, [pc, #444] @ (8003f08 ) - 8003d4a: 681b ldr r3, [r3, #0] - 8003d4c: 4a6e ldr r2, [pc, #440] @ (8003f08 ) - 8003d4e: f423 3380 bic.w r3, r3, #65536 @ 0x10000 - 8003d52: 6013 str r3, [r2, #0] - 8003d54: 4b6c ldr r3, [pc, #432] @ (8003f08 ) - 8003d56: 681b ldr r3, [r3, #0] - 8003d58: 4a6b ldr r2, [pc, #428] @ (8003f08 ) - 8003d5a: f423 2380 bic.w r3, r3, #262144 @ 0x40000 - 8003d5e: 6013 str r3, [r2, #0] + 80041ac: 687b ldr r3, [r7, #4] + 80041ae: 685b ldr r3, [r3, #4] + 80041b0: f5b3 3f80 cmp.w r3, #65536 @ 0x10000 + 80041b4: d106 bne.n 80041c4 + 80041b6: 4b7c ldr r3, [pc, #496] @ (80043a8 ) + 80041b8: 681b ldr r3, [r3, #0] + 80041ba: 4a7b ldr r2, [pc, #492] @ (80043a8 ) + 80041bc: f443 3380 orr.w r3, r3, #65536 @ 0x10000 + 80041c0: 6013 str r3, [r2, #0] + 80041c2: e01d b.n 8004200 + 80041c4: 687b ldr r3, [r7, #4] + 80041c6: 685b ldr r3, [r3, #4] + 80041c8: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000 + 80041cc: d10c bne.n 80041e8 + 80041ce: 4b76 ldr r3, [pc, #472] @ (80043a8 ) + 80041d0: 681b ldr r3, [r3, #0] + 80041d2: 4a75 ldr r2, [pc, #468] @ (80043a8 ) + 80041d4: f443 2380 orr.w r3, r3, #262144 @ 0x40000 + 80041d8: 6013 str r3, [r2, #0] + 80041da: 4b73 ldr r3, [pc, #460] @ (80043a8 ) + 80041dc: 681b ldr r3, [r3, #0] + 80041de: 4a72 ldr r2, [pc, #456] @ (80043a8 ) + 80041e0: f443 3380 orr.w r3, r3, #65536 @ 0x10000 + 80041e4: 6013 str r3, [r2, #0] + 80041e6: e00b b.n 8004200 + 80041e8: 4b6f ldr r3, [pc, #444] @ (80043a8 ) + 80041ea: 681b ldr r3, [r3, #0] + 80041ec: 4a6e ldr r2, [pc, #440] @ (80043a8 ) + 80041ee: f423 3380 bic.w r3, r3, #65536 @ 0x10000 + 80041f2: 6013 str r3, [r2, #0] + 80041f4: 4b6c ldr r3, [pc, #432] @ (80043a8 ) + 80041f6: 681b ldr r3, [r3, #0] + 80041f8: 4a6b ldr r2, [pc, #428] @ (80043a8 ) + 80041fa: f423 2380 bic.w r3, r3, #262144 @ 0x40000 + 80041fe: 6013 str r3, [r2, #0] /* Check the HSE State */ if((RCC_OscInitStruct->HSEState) != RCC_HSE_OFF) - 8003d60: 687b ldr r3, [r7, #4] - 8003d62: 685b ldr r3, [r3, #4] - 8003d64: 2b00 cmp r3, #0 - 8003d66: d013 beq.n 8003d90 + 8004200: 687b ldr r3, [r7, #4] + 8004202: 685b ldr r3, [r3, #4] + 8004204: 2b00 cmp r3, #0 + 8004206: d013 beq.n 8004230 { /* Get Start Tick*/ tickstart = HAL_GetTick(); - 8003d68: f7fd ff70 bl 8001c4c - 8003d6c: 6138 str r0, [r7, #16] + 8004208: f7fd fd7c bl 8001d04 + 800420c: 6138 str r0, [r7, #16] /* Wait till HSE is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) - 8003d6e: e008 b.n 8003d82 + 800420e: e008 b.n 8004222 { if((HAL_GetTick() - tickstart ) > HSE_TIMEOUT_VALUE) - 8003d70: f7fd ff6c bl 8001c4c - 8003d74: 4602 mov r2, r0 - 8003d76: 693b ldr r3, [r7, #16] - 8003d78: 1ad3 subs r3, r2, r3 - 8003d7a: 2b64 cmp r3, #100 @ 0x64 - 8003d7c: d901 bls.n 8003d82 + 8004210: f7fd fd78 bl 8001d04 + 8004214: 4602 mov r2, r0 + 8004216: 693b ldr r3, [r7, #16] + 8004218: 1ad3 subs r3, r2, r3 + 800421a: 2b64 cmp r3, #100 @ 0x64 + 800421c: d901 bls.n 8004222 { return HAL_TIMEOUT; - 8003d7e: 2303 movs r3, #3 - 8003d80: e21f b.n 80041c2 + 800421e: 2303 movs r3, #3 + 8004220: e21f b.n 8004662 while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) - 8003d82: 4b61 ldr r3, [pc, #388] @ (8003f08 ) - 8003d84: 681b ldr r3, [r3, #0] - 8003d86: f403 3300 and.w r3, r3, #131072 @ 0x20000 - 8003d8a: 2b00 cmp r3, #0 - 8003d8c: d0f0 beq.n 8003d70 - 8003d8e: e014 b.n 8003dba + 8004222: 4b61 ldr r3, [pc, #388] @ (80043a8 ) + 8004224: 681b ldr r3, [r3, #0] + 8004226: f403 3300 and.w r3, r3, #131072 @ 0x20000 + 800422a: 2b00 cmp r3, #0 + 800422c: d0f0 beq.n 8004210 + 800422e: e014 b.n 800425a } } else { /* Get Start Tick*/ tickstart = HAL_GetTick(); - 8003d90: f7fd ff5c bl 8001c4c - 8003d94: 6138 str r0, [r7, #16] + 8004230: f7fd fd68 bl 8001d04 + 8004234: 6138 str r0, [r7, #16] /* Wait till HSE is bypassed or disabled */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) - 8003d96: e008 b.n 8003daa + 8004236: e008 b.n 800424a { if((HAL_GetTick() - tickstart ) > HSE_TIMEOUT_VALUE) - 8003d98: f7fd ff58 bl 8001c4c - 8003d9c: 4602 mov r2, r0 - 8003d9e: 693b ldr r3, [r7, #16] - 8003da0: 1ad3 subs r3, r2, r3 - 8003da2: 2b64 cmp r3, #100 @ 0x64 - 8003da4: d901 bls.n 8003daa + 8004238: f7fd fd64 bl 8001d04 + 800423c: 4602 mov r2, r0 + 800423e: 693b ldr r3, [r7, #16] + 8004240: 1ad3 subs r3, r2, r3 + 8004242: 2b64 cmp r3, #100 @ 0x64 + 8004244: d901 bls.n 800424a { return HAL_TIMEOUT; - 8003da6: 2303 movs r3, #3 - 8003da8: e20b b.n 80041c2 + 8004246: 2303 movs r3, #3 + 8004248: e20b b.n 8004662 while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) - 8003daa: 4b57 ldr r3, [pc, #348] @ (8003f08 ) - 8003dac: 681b ldr r3, [r3, #0] - 8003dae: f403 3300 and.w r3, r3, #131072 @ 0x20000 - 8003db2: 2b00 cmp r3, #0 - 8003db4: d1f0 bne.n 8003d98 - 8003db6: e000 b.n 8003dba + 800424a: 4b57 ldr r3, [pc, #348] @ (80043a8 ) + 800424c: 681b ldr r3, [r3, #0] + 800424e: f403 3300 and.w r3, r3, #131072 @ 0x20000 + 8004252: 2b00 cmp r3, #0 + 8004254: d1f0 bne.n 8004238 + 8004256: e000 b.n 800425a if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) - 8003db8: bf00 nop + 8004258: bf00 nop } } } } /*----------------------------- HSI Configuration --------------------------*/ if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI) - 8003dba: 687b ldr r3, [r7, #4] - 8003dbc: 681b ldr r3, [r3, #0] - 8003dbe: f003 0302 and.w r3, r3, #2 - 8003dc2: 2b00 cmp r3, #0 - 8003dc4: d06f beq.n 8003ea6 + 800425a: 687b ldr r3, [r7, #4] + 800425c: 681b ldr r3, [r3, #0] + 800425e: f003 0302 and.w r3, r3, #2 + 8004262: 2b00 cmp r3, #0 + 8004264: d06f beq.n 8004346 assert_param(IS_RCC_HSI(RCC_OscInitStruct->HSIState)); assert_param(IS_RCC_CALIBRATION_VALUE(RCC_OscInitStruct->HSICalibrationValue)); /* Check if HSI is used as system clock or as PLL source when PLL is selected as system clock */ #if defined(STM32F446xx) if((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_HSI) ||\ - 8003dc6: 4b50 ldr r3, [pc, #320] @ (8003f08 ) - 8003dc8: 689b ldr r3, [r3, #8] - 8003dca: f003 030c and.w r3, r3, #12 - 8003dce: 2b00 cmp r3, #0 - 8003dd0: d017 beq.n 8003e02 + 8004266: 4b50 ldr r3, [pc, #320] @ (80043a8 ) + 8004268: 689b ldr r3, [r3, #8] + 800426a: f003 030c and.w r3, r3, #12 + 800426e: 2b00 cmp r3, #0 + 8004270: d017 beq.n 80042a2 ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLL) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSI)) ||\ - 8003dd2: 4b4d ldr r3, [pc, #308] @ (8003f08 ) - 8003dd4: 689b ldr r3, [r3, #8] - 8003dd6: f003 030c and.w r3, r3, #12 + 8004272: 4b4d ldr r3, [pc, #308] @ (80043a8 ) + 8004274: 689b ldr r3, [r3, #8] + 8004276: f003 030c and.w r3, r3, #12 if((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_HSI) ||\ - 8003dda: 2b08 cmp r3, #8 - 8003ddc: d105 bne.n 8003dea + 800427a: 2b08 cmp r3, #8 + 800427c: d105 bne.n 800428a ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLL) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSI)) ||\ - 8003dde: 4b4a ldr r3, [pc, #296] @ (8003f08 ) - 8003de0: 685b ldr r3, [r3, #4] - 8003de2: f403 0380 and.w r3, r3, #4194304 @ 0x400000 - 8003de6: 2b00 cmp r3, #0 - 8003de8: d00b beq.n 8003e02 + 800427e: 4b4a ldr r3, [pc, #296] @ (80043a8 ) + 8004280: 685b ldr r3, [r3, #4] + 8004282: f403 0380 and.w r3, r3, #4194304 @ 0x400000 + 8004286: 2b00 cmp r3, #0 + 8004288: d00b beq.n 80042a2 ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLLR) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSI))) - 8003dea: 4b47 ldr r3, [pc, #284] @ (8003f08 ) - 8003dec: 689b ldr r3, [r3, #8] - 8003dee: f003 030c and.w r3, r3, #12 + 800428a: 4b47 ldr r3, [pc, #284] @ (80043a8 ) + 800428c: 689b ldr r3, [r3, #8] + 800428e: f003 030c and.w r3, r3, #12 ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLL) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSI)) ||\ - 8003df2: 2b0c cmp r3, #12 - 8003df4: d11c bne.n 8003e30 + 8004292: 2b0c cmp r3, #12 + 8004294: d11c bne.n 80042d0 ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLLR) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSI))) - 8003df6: 4b44 ldr r3, [pc, #272] @ (8003f08 ) - 8003df8: 685b ldr r3, [r3, #4] - 8003dfa: f403 0380 and.w r3, r3, #4194304 @ 0x400000 - 8003dfe: 2b00 cmp r3, #0 - 8003e00: d116 bne.n 8003e30 + 8004296: 4b44 ldr r3, [pc, #272] @ (80043a8 ) + 8004298: 685b ldr r3, [r3, #4] + 800429a: f403 0380 and.w r3, r3, #4194304 @ 0x400000 + 800429e: 2b00 cmp r3, #0 + 80042a0: d116 bne.n 80042d0 if((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_HSI) ||\ ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLL) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSI))) #endif /* STM32F446xx */ { /* When HSI is used as system clock it will not disabled */ if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) && (RCC_OscInitStruct->HSIState != RCC_HSI_ON)) - 8003e02: 4b41 ldr r3, [pc, #260] @ (8003f08 ) - 8003e04: 681b ldr r3, [r3, #0] - 8003e06: f003 0302 and.w r3, r3, #2 - 8003e0a: 2b00 cmp r3, #0 - 8003e0c: d005 beq.n 8003e1a - 8003e0e: 687b ldr r3, [r7, #4] - 8003e10: 68db ldr r3, [r3, #12] - 8003e12: 2b01 cmp r3, #1 - 8003e14: d001 beq.n 8003e1a + 80042a2: 4b41 ldr r3, [pc, #260] @ (80043a8 ) + 80042a4: 681b ldr r3, [r3, #0] + 80042a6: f003 0302 and.w r3, r3, #2 + 80042aa: 2b00 cmp r3, #0 + 80042ac: d005 beq.n 80042ba + 80042ae: 687b ldr r3, [r7, #4] + 80042b0: 68db ldr r3, [r3, #12] + 80042b2: 2b01 cmp r3, #1 + 80042b4: d001 beq.n 80042ba { return HAL_ERROR; - 8003e16: 2301 movs r3, #1 - 8003e18: e1d3 b.n 80041c2 + 80042b6: 2301 movs r3, #1 + 80042b8: e1d3 b.n 8004662 } /* Otherwise, just the calibration is allowed */ else { /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/ __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue); - 8003e1a: 4b3b ldr r3, [pc, #236] @ (8003f08 ) - 8003e1c: 681b ldr r3, [r3, #0] - 8003e1e: f023 02f8 bic.w r2, r3, #248 @ 0xf8 - 8003e22: 687b ldr r3, [r7, #4] - 8003e24: 691b ldr r3, [r3, #16] - 8003e26: 00db lsls r3, r3, #3 - 8003e28: 4937 ldr r1, [pc, #220] @ (8003f08 ) - 8003e2a: 4313 orrs r3, r2 - 8003e2c: 600b str r3, [r1, #0] + 80042ba: 4b3b ldr r3, [pc, #236] @ (80043a8 ) + 80042bc: 681b ldr r3, [r3, #0] + 80042be: f023 02f8 bic.w r2, r3, #248 @ 0xf8 + 80042c2: 687b ldr r3, [r7, #4] + 80042c4: 691b ldr r3, [r3, #16] + 80042c6: 00db lsls r3, r3, #3 + 80042c8: 4937 ldr r1, [pc, #220] @ (80043a8 ) + 80042ca: 4313 orrs r3, r2 + 80042cc: 600b str r3, [r1, #0] if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) && (RCC_OscInitStruct->HSIState != RCC_HSI_ON)) - 8003e2e: e03a b.n 8003ea6 + 80042ce: e03a b.n 8004346 } } else { /* Check the HSI State */ if((RCC_OscInitStruct->HSIState)!= RCC_HSI_OFF) - 8003e30: 687b ldr r3, [r7, #4] - 8003e32: 68db ldr r3, [r3, #12] - 8003e34: 2b00 cmp r3, #0 - 8003e36: d020 beq.n 8003e7a + 80042d0: 687b ldr r3, [r7, #4] + 80042d2: 68db ldr r3, [r3, #12] + 80042d4: 2b00 cmp r3, #0 + 80042d6: d020 beq.n 800431a { /* Enable the Internal High Speed oscillator (HSI). */ __HAL_RCC_HSI_ENABLE(); - 8003e38: 4b34 ldr r3, [pc, #208] @ (8003f0c ) - 8003e3a: 2201 movs r2, #1 - 8003e3c: 601a str r2, [r3, #0] + 80042d8: 4b34 ldr r3, [pc, #208] @ (80043ac ) + 80042da: 2201 movs r2, #1 + 80042dc: 601a str r2, [r3, #0] /* Get Start Tick*/ tickstart = HAL_GetTick(); - 8003e3e: f7fd ff05 bl 8001c4c - 8003e42: 6138 str r0, [r7, #16] + 80042de: f7fd fd11 bl 8001d04 + 80042e2: 6138 str r0, [r7, #16] /* Wait till HSI is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) - 8003e44: e008 b.n 8003e58 + 80042e4: e008 b.n 80042f8 { if((HAL_GetTick() - tickstart ) > HSI_TIMEOUT_VALUE) - 8003e46: f7fd ff01 bl 8001c4c - 8003e4a: 4602 mov r2, r0 - 8003e4c: 693b ldr r3, [r7, #16] - 8003e4e: 1ad3 subs r3, r2, r3 - 8003e50: 2b02 cmp r3, #2 - 8003e52: d901 bls.n 8003e58 + 80042e6: f7fd fd0d bl 8001d04 + 80042ea: 4602 mov r2, r0 + 80042ec: 693b ldr r3, [r7, #16] + 80042ee: 1ad3 subs r3, r2, r3 + 80042f0: 2b02 cmp r3, #2 + 80042f2: d901 bls.n 80042f8 { return HAL_TIMEOUT; - 8003e54: 2303 movs r3, #3 - 8003e56: e1b4 b.n 80041c2 + 80042f4: 2303 movs r3, #3 + 80042f6: e1b4 b.n 8004662 while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) - 8003e58: 4b2b ldr r3, [pc, #172] @ (8003f08 ) - 8003e5a: 681b ldr r3, [r3, #0] - 8003e5c: f003 0302 and.w r3, r3, #2 - 8003e60: 2b00 cmp r3, #0 - 8003e62: d0f0 beq.n 8003e46 + 80042f8: 4b2b ldr r3, [pc, #172] @ (80043a8 ) + 80042fa: 681b ldr r3, [r3, #0] + 80042fc: f003 0302 and.w r3, r3, #2 + 8004300: 2b00 cmp r3, #0 + 8004302: d0f0 beq.n 80042e6 } } /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/ __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue); - 8003e64: 4b28 ldr r3, [pc, #160] @ (8003f08 ) - 8003e66: 681b ldr r3, [r3, #0] - 8003e68: f023 02f8 bic.w r2, r3, #248 @ 0xf8 - 8003e6c: 687b ldr r3, [r7, #4] - 8003e6e: 691b ldr r3, [r3, #16] - 8003e70: 00db lsls r3, r3, #3 - 8003e72: 4925 ldr r1, [pc, #148] @ (8003f08 ) - 8003e74: 4313 orrs r3, r2 - 8003e76: 600b str r3, [r1, #0] - 8003e78: e015 b.n 8003ea6 + 8004304: 4b28 ldr r3, [pc, #160] @ (80043a8 ) + 8004306: 681b ldr r3, [r3, #0] + 8004308: f023 02f8 bic.w r2, r3, #248 @ 0xf8 + 800430c: 687b ldr r3, [r7, #4] + 800430e: 691b ldr r3, [r3, #16] + 8004310: 00db lsls r3, r3, #3 + 8004312: 4925 ldr r1, [pc, #148] @ (80043a8 ) + 8004314: 4313 orrs r3, r2 + 8004316: 600b str r3, [r1, #0] + 8004318: e015 b.n 8004346 } else { /* Disable the Internal High Speed oscillator (HSI). */ __HAL_RCC_HSI_DISABLE(); - 8003e7a: 4b24 ldr r3, [pc, #144] @ (8003f0c ) - 8003e7c: 2200 movs r2, #0 - 8003e7e: 601a str r2, [r3, #0] + 800431a: 4b24 ldr r3, [pc, #144] @ (80043ac ) + 800431c: 2200 movs r2, #0 + 800431e: 601a str r2, [r3, #0] /* Get Start Tick*/ tickstart = HAL_GetTick(); - 8003e80: f7fd fee4 bl 8001c4c - 8003e84: 6138 str r0, [r7, #16] + 8004320: f7fd fcf0 bl 8001d04 + 8004324: 6138 str r0, [r7, #16] /* Wait till HSI is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) - 8003e86: e008 b.n 8003e9a + 8004326: e008 b.n 800433a { if((HAL_GetTick() - tickstart ) > HSI_TIMEOUT_VALUE) - 8003e88: f7fd fee0 bl 8001c4c - 8003e8c: 4602 mov r2, r0 - 8003e8e: 693b ldr r3, [r7, #16] - 8003e90: 1ad3 subs r3, r2, r3 - 8003e92: 2b02 cmp r3, #2 - 8003e94: d901 bls.n 8003e9a + 8004328: f7fd fcec bl 8001d04 + 800432c: 4602 mov r2, r0 + 800432e: 693b ldr r3, [r7, #16] + 8004330: 1ad3 subs r3, r2, r3 + 8004332: 2b02 cmp r3, #2 + 8004334: d901 bls.n 800433a { return HAL_TIMEOUT; - 8003e96: 2303 movs r3, #3 - 8003e98: e193 b.n 80041c2 + 8004336: 2303 movs r3, #3 + 8004338: e193 b.n 8004662 while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) - 8003e9a: 4b1b ldr r3, [pc, #108] @ (8003f08 ) - 8003e9c: 681b ldr r3, [r3, #0] - 8003e9e: f003 0302 and.w r3, r3, #2 - 8003ea2: 2b00 cmp r3, #0 - 8003ea4: d1f0 bne.n 8003e88 + 800433a: 4b1b ldr r3, [pc, #108] @ (80043a8 ) + 800433c: 681b ldr r3, [r3, #0] + 800433e: f003 0302 and.w r3, r3, #2 + 8004342: 2b00 cmp r3, #0 + 8004344: d1f0 bne.n 8004328 } } } } /*------------------------------ LSI Configuration -------------------------*/ if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSI) == RCC_OSCILLATORTYPE_LSI) - 8003ea6: 687b ldr r3, [r7, #4] - 8003ea8: 681b ldr r3, [r3, #0] - 8003eaa: f003 0308 and.w r3, r3, #8 - 8003eae: 2b00 cmp r3, #0 - 8003eb0: d036 beq.n 8003f20 + 8004346: 687b ldr r3, [r7, #4] + 8004348: 681b ldr r3, [r3, #0] + 800434a: f003 0308 and.w r3, r3, #8 + 800434e: 2b00 cmp r3, #0 + 8004350: d036 beq.n 80043c0 { /* Check the parameters */ assert_param(IS_RCC_LSI(RCC_OscInitStruct->LSIState)); /* Check the LSI State */ if((RCC_OscInitStruct->LSIState)!= RCC_LSI_OFF) - 8003eb2: 687b ldr r3, [r7, #4] - 8003eb4: 695b ldr r3, [r3, #20] - 8003eb6: 2b00 cmp r3, #0 - 8003eb8: d016 beq.n 8003ee8 + 8004352: 687b ldr r3, [r7, #4] + 8004354: 695b ldr r3, [r3, #20] + 8004356: 2b00 cmp r3, #0 + 8004358: d016 beq.n 8004388 { /* Enable the Internal Low Speed oscillator (LSI). */ __HAL_RCC_LSI_ENABLE(); - 8003eba: 4b15 ldr r3, [pc, #84] @ (8003f10 ) - 8003ebc: 2201 movs r2, #1 - 8003ebe: 601a str r2, [r3, #0] + 800435a: 4b15 ldr r3, [pc, #84] @ (80043b0 ) + 800435c: 2201 movs r2, #1 + 800435e: 601a str r2, [r3, #0] /* Get Start Tick*/ tickstart = HAL_GetTick(); - 8003ec0: f7fd fec4 bl 8001c4c - 8003ec4: 6138 str r0, [r7, #16] + 8004360: f7fd fcd0 bl 8001d04 + 8004364: 6138 str r0, [r7, #16] /* Wait till LSI is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET) - 8003ec6: e008 b.n 8003eda + 8004366: e008 b.n 800437a { if((HAL_GetTick() - tickstart ) > LSI_TIMEOUT_VALUE) - 8003ec8: f7fd fec0 bl 8001c4c - 8003ecc: 4602 mov r2, r0 - 8003ece: 693b ldr r3, [r7, #16] - 8003ed0: 1ad3 subs r3, r2, r3 - 8003ed2: 2b02 cmp r3, #2 - 8003ed4: d901 bls.n 8003eda + 8004368: f7fd fccc bl 8001d04 + 800436c: 4602 mov r2, r0 + 800436e: 693b ldr r3, [r7, #16] + 8004370: 1ad3 subs r3, r2, r3 + 8004372: 2b02 cmp r3, #2 + 8004374: d901 bls.n 800437a { return HAL_TIMEOUT; - 8003ed6: 2303 movs r3, #3 - 8003ed8: e173 b.n 80041c2 + 8004376: 2303 movs r3, #3 + 8004378: e173 b.n 8004662 while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET) - 8003eda: 4b0b ldr r3, [pc, #44] @ (8003f08 ) - 8003edc: 6f5b ldr r3, [r3, #116] @ 0x74 - 8003ede: f003 0302 and.w r3, r3, #2 - 8003ee2: 2b00 cmp r3, #0 - 8003ee4: d0f0 beq.n 8003ec8 - 8003ee6: e01b b.n 8003f20 + 800437a: 4b0b ldr r3, [pc, #44] @ (80043a8 ) + 800437c: 6f5b ldr r3, [r3, #116] @ 0x74 + 800437e: f003 0302 and.w r3, r3, #2 + 8004382: 2b00 cmp r3, #0 + 8004384: d0f0 beq.n 8004368 + 8004386: e01b b.n 80043c0 } } else { /* Disable the Internal Low Speed oscillator (LSI). */ __HAL_RCC_LSI_DISABLE(); - 8003ee8: 4b09 ldr r3, [pc, #36] @ (8003f10 ) - 8003eea: 2200 movs r2, #0 - 8003eec: 601a str r2, [r3, #0] + 8004388: 4b09 ldr r3, [pc, #36] @ (80043b0 ) + 800438a: 2200 movs r2, #0 + 800438c: 601a str r2, [r3, #0] /* Get Start Tick*/ tickstart = HAL_GetTick(); - 8003eee: f7fd fead bl 8001c4c - 8003ef2: 6138 str r0, [r7, #16] + 800438e: f7fd fcb9 bl 8001d04 + 8004392: 6138 str r0, [r7, #16] /* Wait till LSI is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET) - 8003ef4: e00e b.n 8003f14 + 8004394: e00e b.n 80043b4 { if((HAL_GetTick() - tickstart ) > LSI_TIMEOUT_VALUE) - 8003ef6: f7fd fea9 bl 8001c4c - 8003efa: 4602 mov r2, r0 - 8003efc: 693b ldr r3, [r7, #16] - 8003efe: 1ad3 subs r3, r2, r3 - 8003f00: 2b02 cmp r3, #2 - 8003f02: d907 bls.n 8003f14 + 8004396: f7fd fcb5 bl 8001d04 + 800439a: 4602 mov r2, r0 + 800439c: 693b ldr r3, [r7, #16] + 800439e: 1ad3 subs r3, r2, r3 + 80043a0: 2b02 cmp r3, #2 + 80043a2: d907 bls.n 80043b4 { return HAL_TIMEOUT; - 8003f04: 2303 movs r3, #3 - 8003f06: e15c b.n 80041c2 - 8003f08: 40023800 .word 0x40023800 - 8003f0c: 42470000 .word 0x42470000 - 8003f10: 42470e80 .word 0x42470e80 + 80043a4: 2303 movs r3, #3 + 80043a6: e15c b.n 8004662 + 80043a8: 40023800 .word 0x40023800 + 80043ac: 42470000 .word 0x42470000 + 80043b0: 42470e80 .word 0x42470e80 while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET) - 8003f14: 4b8a ldr r3, [pc, #552] @ (8004140 ) - 8003f16: 6f5b ldr r3, [r3, #116] @ 0x74 - 8003f18: f003 0302 and.w r3, r3, #2 - 8003f1c: 2b00 cmp r3, #0 - 8003f1e: d1ea bne.n 8003ef6 + 80043b4: 4b8a ldr r3, [pc, #552] @ (80045e0 ) + 80043b6: 6f5b ldr r3, [r3, #116] @ 0x74 + 80043b8: f003 0302 and.w r3, r3, #2 + 80043bc: 2b00 cmp r3, #0 + 80043be: d1ea bne.n 8004396 } } } } /*------------------------------ LSE Configuration -------------------------*/ if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSE) == RCC_OSCILLATORTYPE_LSE) - 8003f20: 687b ldr r3, [r7, #4] - 8003f22: 681b ldr r3, [r3, #0] - 8003f24: f003 0304 and.w r3, r3, #4 - 8003f28: 2b00 cmp r3, #0 - 8003f2a: f000 8097 beq.w 800405c + 80043c0: 687b ldr r3, [r7, #4] + 80043c2: 681b ldr r3, [r3, #0] + 80043c4: f003 0304 and.w r3, r3, #4 + 80043c8: 2b00 cmp r3, #0 + 80043ca: f000 8097 beq.w 80044fc { FlagStatus pwrclkchanged = RESET; - 8003f2e: 2300 movs r3, #0 - 8003f30: 75fb strb r3, [r7, #23] + 80043ce: 2300 movs r3, #0 + 80043d0: 75fb strb r3, [r7, #23] /* 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 of necessary */ if(__HAL_RCC_PWR_IS_CLK_DISABLED()) - 8003f32: 4b83 ldr r3, [pc, #524] @ (8004140 ) - 8003f34: 6c1b ldr r3, [r3, #64] @ 0x40 - 8003f36: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 - 8003f3a: 2b00 cmp r3, #0 - 8003f3c: d10f bne.n 8003f5e + 80043d2: 4b83 ldr r3, [pc, #524] @ (80045e0 ) + 80043d4: 6c1b ldr r3, [r3, #64] @ 0x40 + 80043d6: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 + 80043da: 2b00 cmp r3, #0 + 80043dc: d10f bne.n 80043fe { __HAL_RCC_PWR_CLK_ENABLE(); - 8003f3e: 2300 movs r3, #0 - 8003f40: 60bb str r3, [r7, #8] - 8003f42: 4b7f ldr r3, [pc, #508] @ (8004140 ) - 8003f44: 6c1b ldr r3, [r3, #64] @ 0x40 - 8003f46: 4a7e ldr r2, [pc, #504] @ (8004140 ) - 8003f48: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 - 8003f4c: 6413 str r3, [r2, #64] @ 0x40 - 8003f4e: 4b7c ldr r3, [pc, #496] @ (8004140 ) - 8003f50: 6c1b ldr r3, [r3, #64] @ 0x40 - 8003f52: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 - 8003f56: 60bb str r3, [r7, #8] - 8003f58: 68bb ldr r3, [r7, #8] + 80043de: 2300 movs r3, #0 + 80043e0: 60bb str r3, [r7, #8] + 80043e2: 4b7f ldr r3, [pc, #508] @ (80045e0 ) + 80043e4: 6c1b ldr r3, [r3, #64] @ 0x40 + 80043e6: 4a7e ldr r2, [pc, #504] @ (80045e0 ) + 80043e8: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 + 80043ec: 6413 str r3, [r2, #64] @ 0x40 + 80043ee: 4b7c ldr r3, [pc, #496] @ (80045e0 ) + 80043f0: 6c1b ldr r3, [r3, #64] @ 0x40 + 80043f2: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 + 80043f6: 60bb str r3, [r7, #8] + 80043f8: 68bb ldr r3, [r7, #8] pwrclkchanged = SET; - 8003f5a: 2301 movs r3, #1 - 8003f5c: 75fb strb r3, [r7, #23] + 80043fa: 2301 movs r3, #1 + 80043fc: 75fb strb r3, [r7, #23] } if(HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) - 8003f5e: 4b79 ldr r3, [pc, #484] @ (8004144 ) - 8003f60: 681b ldr r3, [r3, #0] - 8003f62: f403 7380 and.w r3, r3, #256 @ 0x100 - 8003f66: 2b00 cmp r3, #0 - 8003f68: d118 bne.n 8003f9c + 80043fe: 4b79 ldr r3, [pc, #484] @ (80045e4 ) + 8004400: 681b ldr r3, [r3, #0] + 8004402: f403 7380 and.w r3, r3, #256 @ 0x100 + 8004406: 2b00 cmp r3, #0 + 8004408: d118 bne.n 800443c { /* Enable write access to Backup domain */ SET_BIT(PWR->CR, PWR_CR_DBP); - 8003f6a: 4b76 ldr r3, [pc, #472] @ (8004144 ) - 8003f6c: 681b ldr r3, [r3, #0] - 8003f6e: 4a75 ldr r2, [pc, #468] @ (8004144 ) - 8003f70: f443 7380 orr.w r3, r3, #256 @ 0x100 - 8003f74: 6013 str r3, [r2, #0] + 800440a: 4b76 ldr r3, [pc, #472] @ (80045e4 ) + 800440c: 681b ldr r3, [r3, #0] + 800440e: 4a75 ldr r2, [pc, #468] @ (80045e4 ) + 8004410: f443 7380 orr.w r3, r3, #256 @ 0x100 + 8004414: 6013 str r3, [r2, #0] /* Wait for Backup domain Write protection disable */ tickstart = HAL_GetTick(); - 8003f76: f7fd fe69 bl 8001c4c - 8003f7a: 6138 str r0, [r7, #16] + 8004416: f7fd fc75 bl 8001d04 + 800441a: 6138 str r0, [r7, #16] while(HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) - 8003f7c: e008 b.n 8003f90 + 800441c: e008 b.n 8004430 { if((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE) - 8003f7e: f7fd fe65 bl 8001c4c - 8003f82: 4602 mov r2, r0 - 8003f84: 693b ldr r3, [r7, #16] - 8003f86: 1ad3 subs r3, r2, r3 - 8003f88: 2b02 cmp r3, #2 - 8003f8a: d901 bls.n 8003f90 + 800441e: f7fd fc71 bl 8001d04 + 8004422: 4602 mov r2, r0 + 8004424: 693b ldr r3, [r7, #16] + 8004426: 1ad3 subs r3, r2, r3 + 8004428: 2b02 cmp r3, #2 + 800442a: d901 bls.n 8004430 { return HAL_TIMEOUT; - 8003f8c: 2303 movs r3, #3 - 8003f8e: e118 b.n 80041c2 + 800442c: 2303 movs r3, #3 + 800442e: e118 b.n 8004662 while(HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) - 8003f90: 4b6c ldr r3, [pc, #432] @ (8004144 ) - 8003f92: 681b ldr r3, [r3, #0] - 8003f94: f403 7380 and.w r3, r3, #256 @ 0x100 - 8003f98: 2b00 cmp r3, #0 - 8003f9a: d0f0 beq.n 8003f7e + 8004430: 4b6c ldr r3, [pc, #432] @ (80045e4 ) + 8004432: 681b ldr r3, [r3, #0] + 8004434: f403 7380 and.w r3, r3, #256 @ 0x100 + 8004438: 2b00 cmp r3, #0 + 800443a: d0f0 beq.n 800441e } } } /* Set the new LSE configuration -----------------------------------------*/ __HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState); - 8003f9c: 687b ldr r3, [r7, #4] - 8003f9e: 689b ldr r3, [r3, #8] - 8003fa0: 2b01 cmp r3, #1 - 8003fa2: d106 bne.n 8003fb2 - 8003fa4: 4b66 ldr r3, [pc, #408] @ (8004140 ) - 8003fa6: 6f1b ldr r3, [r3, #112] @ 0x70 - 8003fa8: 4a65 ldr r2, [pc, #404] @ (8004140 ) - 8003faa: f043 0301 orr.w r3, r3, #1 - 8003fae: 6713 str r3, [r2, #112] @ 0x70 - 8003fb0: e01c b.n 8003fec - 8003fb2: 687b ldr r3, [r7, #4] - 8003fb4: 689b ldr r3, [r3, #8] - 8003fb6: 2b05 cmp r3, #5 - 8003fb8: d10c bne.n 8003fd4 - 8003fba: 4b61 ldr r3, [pc, #388] @ (8004140 ) - 8003fbc: 6f1b ldr r3, [r3, #112] @ 0x70 - 8003fbe: 4a60 ldr r2, [pc, #384] @ (8004140 ) - 8003fc0: f043 0304 orr.w r3, r3, #4 - 8003fc4: 6713 str r3, [r2, #112] @ 0x70 - 8003fc6: 4b5e ldr r3, [pc, #376] @ (8004140 ) - 8003fc8: 6f1b ldr r3, [r3, #112] @ 0x70 - 8003fca: 4a5d ldr r2, [pc, #372] @ (8004140 ) - 8003fcc: f043 0301 orr.w r3, r3, #1 - 8003fd0: 6713 str r3, [r2, #112] @ 0x70 - 8003fd2: e00b b.n 8003fec - 8003fd4: 4b5a ldr r3, [pc, #360] @ (8004140 ) - 8003fd6: 6f1b ldr r3, [r3, #112] @ 0x70 - 8003fd8: 4a59 ldr r2, [pc, #356] @ (8004140 ) - 8003fda: f023 0301 bic.w r3, r3, #1 - 8003fde: 6713 str r3, [r2, #112] @ 0x70 - 8003fe0: 4b57 ldr r3, [pc, #348] @ (8004140 ) - 8003fe2: 6f1b ldr r3, [r3, #112] @ 0x70 - 8003fe4: 4a56 ldr r2, [pc, #344] @ (8004140 ) - 8003fe6: f023 0304 bic.w r3, r3, #4 - 8003fea: 6713 str r3, [r2, #112] @ 0x70 + 800443c: 687b ldr r3, [r7, #4] + 800443e: 689b ldr r3, [r3, #8] + 8004440: 2b01 cmp r3, #1 + 8004442: d106 bne.n 8004452 + 8004444: 4b66 ldr r3, [pc, #408] @ (80045e0 ) + 8004446: 6f1b ldr r3, [r3, #112] @ 0x70 + 8004448: 4a65 ldr r2, [pc, #404] @ (80045e0 ) + 800444a: f043 0301 orr.w r3, r3, #1 + 800444e: 6713 str r3, [r2, #112] @ 0x70 + 8004450: e01c b.n 800448c + 8004452: 687b ldr r3, [r7, #4] + 8004454: 689b ldr r3, [r3, #8] + 8004456: 2b05 cmp r3, #5 + 8004458: d10c bne.n 8004474 + 800445a: 4b61 ldr r3, [pc, #388] @ (80045e0 ) + 800445c: 6f1b ldr r3, [r3, #112] @ 0x70 + 800445e: 4a60 ldr r2, [pc, #384] @ (80045e0 ) + 8004460: f043 0304 orr.w r3, r3, #4 + 8004464: 6713 str r3, [r2, #112] @ 0x70 + 8004466: 4b5e ldr r3, [pc, #376] @ (80045e0 ) + 8004468: 6f1b ldr r3, [r3, #112] @ 0x70 + 800446a: 4a5d ldr r2, [pc, #372] @ (80045e0 ) + 800446c: f043 0301 orr.w r3, r3, #1 + 8004470: 6713 str r3, [r2, #112] @ 0x70 + 8004472: e00b b.n 800448c + 8004474: 4b5a ldr r3, [pc, #360] @ (80045e0 ) + 8004476: 6f1b ldr r3, [r3, #112] @ 0x70 + 8004478: 4a59 ldr r2, [pc, #356] @ (80045e0 ) + 800447a: f023 0301 bic.w r3, r3, #1 + 800447e: 6713 str r3, [r2, #112] @ 0x70 + 8004480: 4b57 ldr r3, [pc, #348] @ (80045e0 ) + 8004482: 6f1b ldr r3, [r3, #112] @ 0x70 + 8004484: 4a56 ldr r2, [pc, #344] @ (80045e0 ) + 8004486: f023 0304 bic.w r3, r3, #4 + 800448a: 6713 str r3, [r2, #112] @ 0x70 /* Check the LSE State */ if((RCC_OscInitStruct->LSEState) != RCC_LSE_OFF) - 8003fec: 687b ldr r3, [r7, #4] - 8003fee: 689b ldr r3, [r3, #8] - 8003ff0: 2b00 cmp r3, #0 - 8003ff2: d015 beq.n 8004020 + 800448c: 687b ldr r3, [r7, #4] + 800448e: 689b ldr r3, [r3, #8] + 8004490: 2b00 cmp r3, #0 + 8004492: d015 beq.n 80044c0 { /* Get Start Tick*/ tickstart = HAL_GetTick(); - 8003ff4: f7fd fe2a bl 8001c4c - 8003ff8: 6138 str r0, [r7, #16] + 8004494: f7fd fc36 bl 8001d04 + 8004498: 6138 str r0, [r7, #16] /* Wait till LSE is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) - 8003ffa: e00a b.n 8004012 + 800449a: e00a b.n 80044b2 { if((HAL_GetTick() - tickstart ) > RCC_LSE_TIMEOUT_VALUE) - 8003ffc: f7fd fe26 bl 8001c4c - 8004000: 4602 mov r2, r0 - 8004002: 693b ldr r3, [r7, #16] - 8004004: 1ad3 subs r3, r2, r3 - 8004006: f241 3288 movw r2, #5000 @ 0x1388 - 800400a: 4293 cmp r3, r2 - 800400c: d901 bls.n 8004012 + 800449c: f7fd fc32 bl 8001d04 + 80044a0: 4602 mov r2, r0 + 80044a2: 693b ldr r3, [r7, #16] + 80044a4: 1ad3 subs r3, r2, r3 + 80044a6: f241 3288 movw r2, #5000 @ 0x1388 + 80044aa: 4293 cmp r3, r2 + 80044ac: d901 bls.n 80044b2 { return HAL_TIMEOUT; - 800400e: 2303 movs r3, #3 - 8004010: e0d7 b.n 80041c2 + 80044ae: 2303 movs r3, #3 + 80044b0: e0d7 b.n 8004662 while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) - 8004012: 4b4b ldr r3, [pc, #300] @ (8004140 ) - 8004014: 6f1b ldr r3, [r3, #112] @ 0x70 - 8004016: f003 0302 and.w r3, r3, #2 - 800401a: 2b00 cmp r3, #0 - 800401c: d0ee beq.n 8003ffc - 800401e: e014 b.n 800404a + 80044b2: 4b4b ldr r3, [pc, #300] @ (80045e0 ) + 80044b4: 6f1b ldr r3, [r3, #112] @ 0x70 + 80044b6: f003 0302 and.w r3, r3, #2 + 80044ba: 2b00 cmp r3, #0 + 80044bc: d0ee beq.n 800449c + 80044be: e014 b.n 80044ea } } else { /* Get Start Tick*/ tickstart = HAL_GetTick(); - 8004020: f7fd fe14 bl 8001c4c - 8004024: 6138 str r0, [r7, #16] + 80044c0: f7fd fc20 bl 8001d04 + 80044c4: 6138 str r0, [r7, #16] /* Wait till LSE is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET) - 8004026: e00a b.n 800403e + 80044c6: e00a b.n 80044de { if((HAL_GetTick() - tickstart ) > RCC_LSE_TIMEOUT_VALUE) - 8004028: f7fd fe10 bl 8001c4c - 800402c: 4602 mov r2, r0 - 800402e: 693b ldr r3, [r7, #16] - 8004030: 1ad3 subs r3, r2, r3 - 8004032: f241 3288 movw r2, #5000 @ 0x1388 - 8004036: 4293 cmp r3, r2 - 8004038: d901 bls.n 800403e + 80044c8: f7fd fc1c bl 8001d04 + 80044cc: 4602 mov r2, r0 + 80044ce: 693b ldr r3, [r7, #16] + 80044d0: 1ad3 subs r3, r2, r3 + 80044d2: f241 3288 movw r2, #5000 @ 0x1388 + 80044d6: 4293 cmp r3, r2 + 80044d8: d901 bls.n 80044de { return HAL_TIMEOUT; - 800403a: 2303 movs r3, #3 - 800403c: e0c1 b.n 80041c2 + 80044da: 2303 movs r3, #3 + 80044dc: e0c1 b.n 8004662 while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET) - 800403e: 4b40 ldr r3, [pc, #256] @ (8004140 ) - 8004040: 6f1b ldr r3, [r3, #112] @ 0x70 - 8004042: f003 0302 and.w r3, r3, #2 - 8004046: 2b00 cmp r3, #0 - 8004048: d1ee bne.n 8004028 + 80044de: 4b40 ldr r3, [pc, #256] @ (80045e0 ) + 80044e0: 6f1b ldr r3, [r3, #112] @ 0x70 + 80044e2: f003 0302 and.w r3, r3, #2 + 80044e6: 2b00 cmp r3, #0 + 80044e8: d1ee bne.n 80044c8 } } } /* Restore clock configuration if changed */ if(pwrclkchanged == SET) - 800404a: 7dfb ldrb r3, [r7, #23] - 800404c: 2b01 cmp r3, #1 - 800404e: d105 bne.n 800405c + 80044ea: 7dfb ldrb r3, [r7, #23] + 80044ec: 2b01 cmp r3, #1 + 80044ee: d105 bne.n 80044fc { __HAL_RCC_PWR_CLK_DISABLE(); - 8004050: 4b3b ldr r3, [pc, #236] @ (8004140 ) - 8004052: 6c1b ldr r3, [r3, #64] @ 0x40 - 8004054: 4a3a ldr r2, [pc, #232] @ (8004140 ) - 8004056: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000 - 800405a: 6413 str r3, [r2, #64] @ 0x40 + 80044f0: 4b3b ldr r3, [pc, #236] @ (80045e0 ) + 80044f2: 6c1b ldr r3, [r3, #64] @ 0x40 + 80044f4: 4a3a ldr r2, [pc, #232] @ (80045e0 ) + 80044f6: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000 + 80044fa: 6413 str r3, [r2, #64] @ 0x40 } } /*-------------------------------- PLL Configuration -----------------------*/ /* Check the parameters */ assert_param(IS_RCC_PLL(RCC_OscInitStruct->PLL.PLLState)); if ((RCC_OscInitStruct->PLL.PLLState) != RCC_PLL_NONE) - 800405c: 687b ldr r3, [r7, #4] - 800405e: 699b ldr r3, [r3, #24] - 8004060: 2b00 cmp r3, #0 - 8004062: f000 80ad beq.w 80041c0 + 80044fc: 687b ldr r3, [r7, #4] + 80044fe: 699b ldr r3, [r3, #24] + 8004500: 2b00 cmp r3, #0 + 8004502: f000 80ad beq.w 8004660 { /* Check if the PLL is used as system clock or not */ if(__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_CFGR_SWS_PLL) - 8004066: 4b36 ldr r3, [pc, #216] @ (8004140 ) - 8004068: 689b ldr r3, [r3, #8] - 800406a: f003 030c and.w r3, r3, #12 - 800406e: 2b08 cmp r3, #8 - 8004070: d060 beq.n 8004134 + 8004506: 4b36 ldr r3, [pc, #216] @ (80045e0 ) + 8004508: 689b ldr r3, [r3, #8] + 800450a: f003 030c and.w r3, r3, #12 + 800450e: 2b08 cmp r3, #8 + 8004510: d060 beq.n 80045d4 { if((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_ON) - 8004072: 687b ldr r3, [r7, #4] - 8004074: 699b ldr r3, [r3, #24] - 8004076: 2b02 cmp r3, #2 - 8004078: d145 bne.n 8004106 + 8004512: 687b ldr r3, [r7, #4] + 8004514: 699b ldr r3, [r3, #24] + 8004516: 2b02 cmp r3, #2 + 8004518: d145 bne.n 80045a6 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(); - 800407a: 4b33 ldr r3, [pc, #204] @ (8004148 ) - 800407c: 2200 movs r2, #0 - 800407e: 601a str r2, [r3, #0] + 800451a: 4b33 ldr r3, [pc, #204] @ (80045e8 ) + 800451c: 2200 movs r2, #0 + 800451e: 601a str r2, [r3, #0] /* Get Start Tick*/ tickstart = HAL_GetTick(); - 8004080: f7fd fde4 bl 8001c4c - 8004084: 6138 str r0, [r7, #16] + 8004520: f7fd fbf0 bl 8001d04 + 8004524: 6138 str r0, [r7, #16] /* Wait till PLL is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 8004086: e008 b.n 800409a + 8004526: e008 b.n 800453a { if((HAL_GetTick() - tickstart ) > PLL_TIMEOUT_VALUE) - 8004088: f7fd fde0 bl 8001c4c - 800408c: 4602 mov r2, r0 - 800408e: 693b ldr r3, [r7, #16] - 8004090: 1ad3 subs r3, r2, r3 - 8004092: 2b02 cmp r3, #2 - 8004094: d901 bls.n 800409a + 8004528: f7fd fbec bl 8001d04 + 800452c: 4602 mov r2, r0 + 800452e: 693b ldr r3, [r7, #16] + 8004530: 1ad3 subs r3, r2, r3 + 8004532: 2b02 cmp r3, #2 + 8004534: d901 bls.n 800453a { return HAL_TIMEOUT; - 8004096: 2303 movs r3, #3 - 8004098: e093 b.n 80041c2 + 8004536: 2303 movs r3, #3 + 8004538: e093 b.n 8004662 while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 800409a: 4b29 ldr r3, [pc, #164] @ (8004140 ) - 800409c: 681b ldr r3, [r3, #0] - 800409e: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 - 80040a2: 2b00 cmp r3, #0 - 80040a4: d1f0 bne.n 8004088 + 800453a: 4b29 ldr r3, [pc, #164] @ (80045e0 ) + 800453c: 681b ldr r3, [r3, #0] + 800453e: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 + 8004542: 2b00 cmp r3, #0 + 8004544: d1f0 bne.n 8004528 } } /* Configure the main PLL clock source, multiplication and division factors. */ WRITE_REG(RCC->PLLCFGR, (RCC_OscInitStruct->PLL.PLLSource | \ - 80040a6: 687b ldr r3, [r7, #4] - 80040a8: 69da ldr r2, [r3, #28] - 80040aa: 687b ldr r3, [r7, #4] - 80040ac: 6a1b ldr r3, [r3, #32] - 80040ae: 431a orrs r2, r3 - 80040b0: 687b ldr r3, [r7, #4] - 80040b2: 6a5b ldr r3, [r3, #36] @ 0x24 - 80040b4: 019b lsls r3, r3, #6 - 80040b6: 431a orrs r2, r3 - 80040b8: 687b ldr r3, [r7, #4] - 80040ba: 6a9b ldr r3, [r3, #40] @ 0x28 - 80040bc: 085b lsrs r3, r3, #1 - 80040be: 3b01 subs r3, #1 - 80040c0: 041b lsls r3, r3, #16 - 80040c2: 431a orrs r2, r3 - 80040c4: 687b ldr r3, [r7, #4] - 80040c6: 6adb ldr r3, [r3, #44] @ 0x2c - 80040c8: 061b lsls r3, r3, #24 - 80040ca: 431a orrs r2, r3 - 80040cc: 687b ldr r3, [r7, #4] - 80040ce: 6b1b ldr r3, [r3, #48] @ 0x30 - 80040d0: 071b lsls r3, r3, #28 - 80040d2: 491b ldr r1, [pc, #108] @ (8004140 ) - 80040d4: 4313 orrs r3, r2 - 80040d6: 604b str r3, [r1, #4] + 8004546: 687b ldr r3, [r7, #4] + 8004548: 69da ldr r2, [r3, #28] + 800454a: 687b ldr r3, [r7, #4] + 800454c: 6a1b ldr r3, [r3, #32] + 800454e: 431a orrs r2, r3 + 8004550: 687b ldr r3, [r7, #4] + 8004552: 6a5b ldr r3, [r3, #36] @ 0x24 + 8004554: 019b lsls r3, r3, #6 + 8004556: 431a orrs r2, r3 + 8004558: 687b ldr r3, [r7, #4] + 800455a: 6a9b ldr r3, [r3, #40] @ 0x28 + 800455c: 085b lsrs r3, r3, #1 + 800455e: 3b01 subs r3, #1 + 8004560: 041b lsls r3, r3, #16 + 8004562: 431a orrs r2, r3 + 8004564: 687b ldr r3, [r7, #4] + 8004566: 6adb ldr r3, [r3, #44] @ 0x2c + 8004568: 061b lsls r3, r3, #24 + 800456a: 431a orrs r2, r3 + 800456c: 687b ldr r3, [r7, #4] + 800456e: 6b1b ldr r3, [r3, #48] @ 0x30 + 8004570: 071b lsls r3, r3, #28 + 8004572: 491b ldr r1, [pc, #108] @ (80045e0 ) + 8004574: 4313 orrs r3, r2 + 8004576: 604b str r3, [r1, #4] (RCC_OscInitStruct->PLL.PLLN << RCC_PLLCFGR_PLLN_Pos) | \ (((RCC_OscInitStruct->PLL.PLLP >> 1U) - 1U) << RCC_PLLCFGR_PLLP_Pos) | \ (RCC_OscInitStruct->PLL.PLLQ << RCC_PLLCFGR_PLLQ_Pos) | \ (RCC_OscInitStruct->PLL.PLLR << RCC_PLLCFGR_PLLR_Pos))); /* Enable the main PLL. */ __HAL_RCC_PLL_ENABLE(); - 80040d8: 4b1b ldr r3, [pc, #108] @ (8004148 ) - 80040da: 2201 movs r2, #1 - 80040dc: 601a str r2, [r3, #0] + 8004578: 4b1b ldr r3, [pc, #108] @ (80045e8 ) + 800457a: 2201 movs r2, #1 + 800457c: 601a str r2, [r3, #0] /* Get Start Tick*/ tickstart = HAL_GetTick(); - 80040de: f7fd fdb5 bl 8001c4c - 80040e2: 6138 str r0, [r7, #16] + 800457e: f7fd fbc1 bl 8001d04 + 8004582: 6138 str r0, [r7, #16] /* Wait till PLL is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) - 80040e4: e008 b.n 80040f8 + 8004584: e008 b.n 8004598 { if((HAL_GetTick() - tickstart ) > PLL_TIMEOUT_VALUE) - 80040e6: f7fd fdb1 bl 8001c4c - 80040ea: 4602 mov r2, r0 - 80040ec: 693b ldr r3, [r7, #16] - 80040ee: 1ad3 subs r3, r2, r3 - 80040f0: 2b02 cmp r3, #2 - 80040f2: d901 bls.n 80040f8 + 8004586: f7fd fbbd bl 8001d04 + 800458a: 4602 mov r2, r0 + 800458c: 693b ldr r3, [r7, #16] + 800458e: 1ad3 subs r3, r2, r3 + 8004590: 2b02 cmp r3, #2 + 8004592: d901 bls.n 8004598 { return HAL_TIMEOUT; - 80040f4: 2303 movs r3, #3 - 80040f6: e064 b.n 80041c2 + 8004594: 2303 movs r3, #3 + 8004596: e064 b.n 8004662 while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) - 80040f8: 4b11 ldr r3, [pc, #68] @ (8004140 ) - 80040fa: 681b ldr r3, [r3, #0] - 80040fc: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 - 8004100: 2b00 cmp r3, #0 - 8004102: d0f0 beq.n 80040e6 - 8004104: e05c b.n 80041c0 + 8004598: 4b11 ldr r3, [pc, #68] @ (80045e0 ) + 800459a: 681b ldr r3, [r3, #0] + 800459c: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 + 80045a0: 2b00 cmp r3, #0 + 80045a2: d0f0 beq.n 8004586 + 80045a4: e05c b.n 8004660 } } else { /* Disable the main PLL. */ __HAL_RCC_PLL_DISABLE(); - 8004106: 4b10 ldr r3, [pc, #64] @ (8004148 ) - 8004108: 2200 movs r2, #0 - 800410a: 601a str r2, [r3, #0] + 80045a6: 4b10 ldr r3, [pc, #64] @ (80045e8 ) + 80045a8: 2200 movs r2, #0 + 80045aa: 601a str r2, [r3, #0] /* Get Start Tick*/ tickstart = HAL_GetTick(); - 800410c: f7fd fd9e bl 8001c4c - 8004110: 6138 str r0, [r7, #16] + 80045ac: f7fd fbaa bl 8001d04 + 80045b0: 6138 str r0, [r7, #16] /* Wait till PLL is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 8004112: e008 b.n 8004126 + 80045b2: e008 b.n 80045c6 { if((HAL_GetTick() - tickstart ) > PLL_TIMEOUT_VALUE) - 8004114: f7fd fd9a bl 8001c4c - 8004118: 4602 mov r2, r0 - 800411a: 693b ldr r3, [r7, #16] - 800411c: 1ad3 subs r3, r2, r3 - 800411e: 2b02 cmp r3, #2 - 8004120: d901 bls.n 8004126 + 80045b4: f7fd fba6 bl 8001d04 + 80045b8: 4602 mov r2, r0 + 80045ba: 693b ldr r3, [r7, #16] + 80045bc: 1ad3 subs r3, r2, r3 + 80045be: 2b02 cmp r3, #2 + 80045c0: d901 bls.n 80045c6 { return HAL_TIMEOUT; - 8004122: 2303 movs r3, #3 - 8004124: e04d b.n 80041c2 + 80045c2: 2303 movs r3, #3 + 80045c4: e04d b.n 8004662 while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 8004126: 4b06 ldr r3, [pc, #24] @ (8004140 ) - 8004128: 681b ldr r3, [r3, #0] - 800412a: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 - 800412e: 2b00 cmp r3, #0 - 8004130: d1f0 bne.n 8004114 - 8004132: e045 b.n 80041c0 + 80045c6: 4b06 ldr r3, [pc, #24] @ (80045e0 ) + 80045c8: 681b ldr r3, [r3, #0] + 80045ca: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 + 80045ce: 2b00 cmp r3, #0 + 80045d0: d1f0 bne.n 80045b4 + 80045d2: e045 b.n 8004660 } } else { /* Check if there is a request to disable the PLL used as System clock source */ if((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) - 8004134: 687b ldr r3, [r7, #4] - 8004136: 699b ldr r3, [r3, #24] - 8004138: 2b01 cmp r3, #1 - 800413a: d107 bne.n 800414c + 80045d4: 687b ldr r3, [r7, #4] + 80045d6: 699b ldr r3, [r3, #24] + 80045d8: 2b01 cmp r3, #1 + 80045da: d107 bne.n 80045ec { return HAL_ERROR; - 800413c: 2301 movs r3, #1 - 800413e: e040 b.n 80041c2 - 8004140: 40023800 .word 0x40023800 - 8004144: 40007000 .word 0x40007000 - 8004148: 42470060 .word 0x42470060 + 80045dc: 2301 movs r3, #1 + 80045de: e040 b.n 8004662 + 80045e0: 40023800 .word 0x40023800 + 80045e4: 40007000 .word 0x40007000 + 80045e8: 42470060 .word 0x42470060 } else { /* Do not return HAL_ERROR if request repeats the current configuration */ pll_config = RCC->PLLCFGR; - 800414c: 4b1f ldr r3, [pc, #124] @ (80041cc ) - 800414e: 685b ldr r3, [r3, #4] - 8004150: 60fb str r3, [r7, #12] + 80045ec: 4b1f ldr r3, [pc, #124] @ (800466c ) + 80045ee: 685b ldr r3, [r3, #4] + 80045f0: 60fb str r3, [r7, #12] #if defined (RCC_PLLCFGR_PLLR) if (((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) || - 8004152: 687b ldr r3, [r7, #4] - 8004154: 699b ldr r3, [r3, #24] - 8004156: 2b01 cmp r3, #1 - 8004158: d030 beq.n 80041bc + 80045f2: 687b ldr r3, [r7, #4] + 80045f4: 699b ldr r3, [r3, #24] + 80045f6: 2b01 cmp r3, #1 + 80045f8: d030 beq.n 800465c (READ_BIT(pll_config, RCC_PLLCFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) || - 800415a: 68fb ldr r3, [r7, #12] - 800415c: f403 0280 and.w r2, r3, #4194304 @ 0x400000 - 8004160: 687b ldr r3, [r7, #4] - 8004162: 69db ldr r3, [r3, #28] + 80045fa: 68fb ldr r3, [r7, #12] + 80045fc: f403 0280 and.w r2, r3, #4194304 @ 0x400000 + 8004600: 687b ldr r3, [r7, #4] + 8004602: 69db ldr r3, [r3, #28] if (((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) || - 8004164: 429a cmp r2, r3 - 8004166: d129 bne.n 80041bc + 8004604: 429a cmp r2, r3 + 8004606: d129 bne.n 800465c (READ_BIT(pll_config, RCC_PLLCFGR_PLLM) != (RCC_OscInitStruct->PLL.PLLM) << RCC_PLLCFGR_PLLM_Pos) || - 8004168: 68fb ldr r3, [r7, #12] - 800416a: f003 023f and.w r2, r3, #63 @ 0x3f - 800416e: 687b ldr r3, [r7, #4] - 8004170: 6a1b ldr r3, [r3, #32] + 8004608: 68fb ldr r3, [r7, #12] + 800460a: f003 023f and.w r2, r3, #63 @ 0x3f + 800460e: 687b ldr r3, [r7, #4] + 8004610: 6a1b ldr r3, [r3, #32] (READ_BIT(pll_config, RCC_PLLCFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) || - 8004172: 429a cmp r2, r3 - 8004174: d122 bne.n 80041bc + 8004612: 429a cmp r2, r3 + 8004614: d122 bne.n 800465c (READ_BIT(pll_config, RCC_PLLCFGR_PLLN) != (RCC_OscInitStruct->PLL.PLLN) << RCC_PLLCFGR_PLLN_Pos) || - 8004176: 68fa ldr r2, [r7, #12] - 8004178: f647 73c0 movw r3, #32704 @ 0x7fc0 - 800417c: 4013 ands r3, r2 - 800417e: 687a ldr r2, [r7, #4] - 8004180: 6a52 ldr r2, [r2, #36] @ 0x24 - 8004182: 0192 lsls r2, r2, #6 + 8004616: 68fa ldr r2, [r7, #12] + 8004618: f647 73c0 movw r3, #32704 @ 0x7fc0 + 800461c: 4013 ands r3, r2 + 800461e: 687a ldr r2, [r7, #4] + 8004620: 6a52 ldr r2, [r2, #36] @ 0x24 + 8004622: 0192 lsls r2, r2, #6 (READ_BIT(pll_config, RCC_PLLCFGR_PLLM) != (RCC_OscInitStruct->PLL.PLLM) << RCC_PLLCFGR_PLLM_Pos) || - 8004184: 4293 cmp r3, r2 - 8004186: d119 bne.n 80041bc + 8004624: 4293 cmp r3, r2 + 8004626: d119 bne.n 800465c (READ_BIT(pll_config, RCC_PLLCFGR_PLLP) != (((RCC_OscInitStruct->PLL.PLLP >> 1U) - 1U)) << RCC_PLLCFGR_PLLP_Pos) || - 8004188: 68fb ldr r3, [r7, #12] - 800418a: f403 3240 and.w r2, r3, #196608 @ 0x30000 - 800418e: 687b ldr r3, [r7, #4] - 8004190: 6a9b ldr r3, [r3, #40] @ 0x28 - 8004192: 085b lsrs r3, r3, #1 - 8004194: 3b01 subs r3, #1 - 8004196: 041b lsls r3, r3, #16 + 8004628: 68fb ldr r3, [r7, #12] + 800462a: f403 3240 and.w r2, r3, #196608 @ 0x30000 + 800462e: 687b ldr r3, [r7, #4] + 8004630: 6a9b ldr r3, [r3, #40] @ 0x28 + 8004632: 085b lsrs r3, r3, #1 + 8004634: 3b01 subs r3, #1 + 8004636: 041b lsls r3, r3, #16 (READ_BIT(pll_config, RCC_PLLCFGR_PLLN) != (RCC_OscInitStruct->PLL.PLLN) << RCC_PLLCFGR_PLLN_Pos) || - 8004198: 429a cmp r2, r3 - 800419a: d10f bne.n 80041bc + 8004638: 429a cmp r2, r3 + 800463a: d10f bne.n 800465c (READ_BIT(pll_config, RCC_PLLCFGR_PLLQ) != (RCC_OscInitStruct->PLL.PLLQ << RCC_PLLCFGR_PLLQ_Pos)) || - 800419c: 68fb ldr r3, [r7, #12] - 800419e: f003 6270 and.w r2, r3, #251658240 @ 0xf000000 - 80041a2: 687b ldr r3, [r7, #4] - 80041a4: 6adb ldr r3, [r3, #44] @ 0x2c - 80041a6: 061b lsls r3, r3, #24 + 800463c: 68fb ldr r3, [r7, #12] + 800463e: f003 6270 and.w r2, r3, #251658240 @ 0xf000000 + 8004642: 687b ldr r3, [r7, #4] + 8004644: 6adb ldr r3, [r3, #44] @ 0x2c + 8004646: 061b lsls r3, r3, #24 (READ_BIT(pll_config, RCC_PLLCFGR_PLLP) != (((RCC_OscInitStruct->PLL.PLLP >> 1U) - 1U)) << RCC_PLLCFGR_PLLP_Pos) || - 80041a8: 429a cmp r2, r3 - 80041aa: d107 bne.n 80041bc + 8004648: 429a cmp r2, r3 + 800464a: d107 bne.n 800465c (READ_BIT(pll_config, RCC_PLLCFGR_PLLR) != (RCC_OscInitStruct->PLL.PLLR << RCC_PLLCFGR_PLLR_Pos))) - 80041ac: 68fb ldr r3, [r7, #12] - 80041ae: f003 42e0 and.w r2, r3, #1879048192 @ 0x70000000 - 80041b2: 687b ldr r3, [r7, #4] - 80041b4: 6b1b ldr r3, [r3, #48] @ 0x30 - 80041b6: 071b lsls r3, r3, #28 + 800464c: 68fb ldr r3, [r7, #12] + 800464e: f003 42e0 and.w r2, r3, #1879048192 @ 0x70000000 + 8004652: 687b ldr r3, [r7, #4] + 8004654: 6b1b ldr r3, [r3, #48] @ 0x30 + 8004656: 071b lsls r3, r3, #28 (READ_BIT(pll_config, RCC_PLLCFGR_PLLQ) != (RCC_OscInitStruct->PLL.PLLQ << RCC_PLLCFGR_PLLQ_Pos)) || - 80041b8: 429a cmp r2, r3 - 80041ba: d001 beq.n 80041c0 + 8004658: 429a cmp r2, r3 + 800465a: d001 beq.n 8004660 (READ_BIT(pll_config, RCC_PLLCFGR_PLLN) != (RCC_OscInitStruct->PLL.PLLN) << RCC_PLLCFGR_PLLN_Pos) || (READ_BIT(pll_config, RCC_PLLCFGR_PLLP) != (((RCC_OscInitStruct->PLL.PLLP >> 1U) - 1U)) << RCC_PLLCFGR_PLLP_Pos) || (READ_BIT(pll_config, RCC_PLLCFGR_PLLQ) != (RCC_OscInitStruct->PLL.PLLQ << RCC_PLLCFGR_PLLQ_Pos))) #endif { return HAL_ERROR; - 80041bc: 2301 movs r3, #1 - 80041be: e000 b.n 80041c2 + 800465c: 2301 movs r3, #1 + 800465e: e000 b.n 8004662 } } } } return HAL_OK; - 80041c0: 2300 movs r3, #0 + 8004660: 2300 movs r3, #0 } - 80041c2: 4618 mov r0, r3 - 80041c4: 3718 adds r7, #24 - 80041c6: 46bd mov sp, r7 - 80041c8: bd80 pop {r7, pc} - 80041ca: bf00 nop - 80041cc: 40023800 .word 0x40023800 + 8004662: 4618 mov r0, r3 + 8004664: 3718 adds r7, #24 + 8004666: 46bd mov sp, r7 + 8004668: bd80 pop {r7, pc} + 800466a: bf00 nop + 800466c: 40023800 .word 0x40023800 -080041d0 : +08004670 : * @param hspi pointer to a SPI_HandleTypeDef structure that contains * the configuration information for SPI module. * @retval HAL status */ HAL_StatusTypeDef HAL_SPI_Init(SPI_HandleTypeDef *hspi) { - 80041d0: b580 push {r7, lr} - 80041d2: b082 sub sp, #8 - 80041d4: af00 add r7, sp, #0 - 80041d6: 6078 str r0, [r7, #4] + 8004670: b580 push {r7, lr} + 8004672: b082 sub sp, #8 + 8004674: af00 add r7, sp, #0 + 8004676: 6078 str r0, [r7, #4] /* Check the SPI handle allocation */ if (hspi == NULL) - 80041d8: 687b ldr r3, [r7, #4] - 80041da: 2b00 cmp r3, #0 - 80041dc: d101 bne.n 80041e2 + 8004678: 687b ldr r3, [r7, #4] + 800467a: 2b00 cmp r3, #0 + 800467c: d101 bne.n 8004682 { return HAL_ERROR; - 80041de: 2301 movs r3, #1 - 80041e0: e07b b.n 80042da + 800467e: 2301 movs r3, #1 + 8004680: e07b b.n 800477a assert_param(IS_SPI_DATASIZE(hspi->Init.DataSize)); assert_param(IS_SPI_NSS(hspi->Init.NSS)); assert_param(IS_SPI_BAUDRATE_PRESCALER(hspi->Init.BaudRatePrescaler)); assert_param(IS_SPI_FIRST_BIT(hspi->Init.FirstBit)); assert_param(IS_SPI_TIMODE(hspi->Init.TIMode)); if (hspi->Init.TIMode == SPI_TIMODE_DISABLE) - 80041e2: 687b ldr r3, [r7, #4] - 80041e4: 6a5b ldr r3, [r3, #36] @ 0x24 - 80041e6: 2b00 cmp r3, #0 - 80041e8: d108 bne.n 80041fc + 8004682: 687b ldr r3, [r7, #4] + 8004684: 6a5b ldr r3, [r3, #36] @ 0x24 + 8004686: 2b00 cmp r3, #0 + 8004688: d108 bne.n 800469c { assert_param(IS_SPI_CPOL(hspi->Init.CLKPolarity)); assert_param(IS_SPI_CPHA(hspi->Init.CLKPhase)); if (hspi->Init.Mode == SPI_MODE_MASTER) - 80041ea: 687b ldr r3, [r7, #4] - 80041ec: 685b ldr r3, [r3, #4] - 80041ee: f5b3 7f82 cmp.w r3, #260 @ 0x104 - 80041f2: d009 beq.n 8004208 + 800468a: 687b ldr r3, [r7, #4] + 800468c: 685b ldr r3, [r3, #4] + 800468e: f5b3 7f82 cmp.w r3, #260 @ 0x104 + 8004692: d009 beq.n 80046a8 assert_param(IS_SPI_BAUDRATE_PRESCALER(hspi->Init.BaudRatePrescaler)); } else { /* Baudrate prescaler not use in Motoraola Slave mode. force to default value */ hspi->Init.BaudRatePrescaler = SPI_BAUDRATEPRESCALER_2; - 80041f4: 687b ldr r3, [r7, #4] - 80041f6: 2200 movs r2, #0 - 80041f8: 61da str r2, [r3, #28] - 80041fa: e005 b.n 8004208 + 8004694: 687b ldr r3, [r7, #4] + 8004696: 2200 movs r2, #0 + 8004698: 61da str r2, [r3, #28] + 800469a: e005 b.n 80046a8 else { assert_param(IS_SPI_BAUDRATE_PRESCALER(hspi->Init.BaudRatePrescaler)); /* Force polarity and phase to TI protocaol requirements */ hspi->Init.CLKPolarity = SPI_POLARITY_LOW; - 80041fc: 687b ldr r3, [r7, #4] - 80041fe: 2200 movs r2, #0 - 8004200: 611a str r2, [r3, #16] + 800469c: 687b ldr r3, [r7, #4] + 800469e: 2200 movs r2, #0 + 80046a0: 611a str r2, [r3, #16] hspi->Init.CLKPhase = SPI_PHASE_1EDGE; - 8004202: 687b ldr r3, [r7, #4] - 8004204: 2200 movs r2, #0 - 8004206: 615a str r2, [r3, #20] + 80046a2: 687b ldr r3, [r7, #4] + 80046a4: 2200 movs r2, #0 + 80046a6: 615a str r2, [r3, #20] if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) { assert_param(IS_SPI_CRC_POLYNOMIAL(hspi->Init.CRCPolynomial)); } #else hspi->Init.CRCCalculation = SPI_CRCCALCULATION_DISABLE; - 8004208: 687b ldr r3, [r7, #4] - 800420a: 2200 movs r2, #0 - 800420c: 629a str r2, [r3, #40] @ 0x28 + 80046a8: 687b ldr r3, [r7, #4] + 80046aa: 2200 movs r2, #0 + 80046ac: 629a str r2, [r3, #40] @ 0x28 #endif /* USE_SPI_CRC */ if (hspi->State == HAL_SPI_STATE_RESET) - 800420e: 687b ldr r3, [r7, #4] - 8004210: f893 3051 ldrb.w r3, [r3, #81] @ 0x51 - 8004214: b2db uxtb r3, r3 - 8004216: 2b00 cmp r3, #0 - 8004218: d106 bne.n 8004228 + 80046ae: 687b ldr r3, [r7, #4] + 80046b0: f893 3051 ldrb.w r3, [r3, #81] @ 0x51 + 80046b4: b2db uxtb r3, r3 + 80046b6: 2b00 cmp r3, #0 + 80046b8: d106 bne.n 80046c8 { /* Allocate lock resource and initialize it */ hspi->Lock = HAL_UNLOCKED; - 800421a: 687b ldr r3, [r7, #4] - 800421c: 2200 movs r2, #0 - 800421e: f883 2050 strb.w r2, [r3, #80] @ 0x50 + 80046ba: 687b ldr r3, [r7, #4] + 80046bc: 2200 movs r2, #0 + 80046be: f883 2050 strb.w r2, [r3, #80] @ 0x50 /* Init the low level hardware : GPIO, CLOCK, NVIC... */ hspi->MspInitCallback(hspi); #else /* Init the low level hardware : GPIO, CLOCK, NVIC... */ HAL_SPI_MspInit(hspi); - 8004222: 6878 ldr r0, [r7, #4] - 8004224: f7fd f8e2 bl 80013ec + 80046c2: 6878 ldr r0, [r7, #4] + 80046c4: f7fc feb8 bl 8001438 #endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ } hspi->State = HAL_SPI_STATE_BUSY; - 8004228: 687b ldr r3, [r7, #4] - 800422a: 2202 movs r2, #2 - 800422c: f883 2051 strb.w r2, [r3, #81] @ 0x51 + 80046c8: 687b ldr r3, [r7, #4] + 80046ca: 2202 movs r2, #2 + 80046cc: f883 2051 strb.w r2, [r3, #81] @ 0x51 /* Disable the selected SPI peripheral */ __HAL_SPI_DISABLE(hspi); - 8004230: 687b ldr r3, [r7, #4] - 8004232: 681b ldr r3, [r3, #0] - 8004234: 681a ldr r2, [r3, #0] - 8004236: 687b ldr r3, [r7, #4] - 8004238: 681b ldr r3, [r3, #0] - 800423a: f022 0240 bic.w r2, r2, #64 @ 0x40 - 800423e: 601a str r2, [r3, #0] + 80046d0: 687b ldr r3, [r7, #4] + 80046d2: 681b ldr r3, [r3, #0] + 80046d4: 681a ldr r2, [r3, #0] + 80046d6: 687b ldr r3, [r7, #4] + 80046d8: 681b ldr r3, [r3, #0] + 80046da: f022 0240 bic.w r2, r2, #64 @ 0x40 + 80046de: 601a str r2, [r3, #0] /*----------------------- SPIx CR1 & CR2 Configuration ---------------------*/ /* Configure : SPI Mode, Communication Mode, Data size, Clock polarity and phase, NSS management, Communication speed, First bit and CRC calculation state */ WRITE_REG(hspi->Instance->CR1, ((hspi->Init.Mode & (SPI_CR1_MSTR | SPI_CR1_SSI)) | - 8004240: 687b ldr r3, [r7, #4] - 8004242: 685b ldr r3, [r3, #4] - 8004244: f403 7282 and.w r2, r3, #260 @ 0x104 - 8004248: 687b ldr r3, [r7, #4] - 800424a: 689b ldr r3, [r3, #8] - 800424c: f403 4304 and.w r3, r3, #33792 @ 0x8400 - 8004250: 431a orrs r2, r3 - 8004252: 687b ldr r3, [r7, #4] - 8004254: 68db ldr r3, [r3, #12] - 8004256: f403 6300 and.w r3, r3, #2048 @ 0x800 - 800425a: 431a orrs r2, r3 - 800425c: 687b ldr r3, [r7, #4] - 800425e: 691b ldr r3, [r3, #16] - 8004260: f003 0302 and.w r3, r3, #2 - 8004264: 431a orrs r2, r3 - 8004266: 687b ldr r3, [r7, #4] - 8004268: 695b ldr r3, [r3, #20] - 800426a: f003 0301 and.w r3, r3, #1 - 800426e: 431a orrs r2, r3 - 8004270: 687b ldr r3, [r7, #4] - 8004272: 699b ldr r3, [r3, #24] - 8004274: f403 7300 and.w r3, r3, #512 @ 0x200 - 8004278: 431a orrs r2, r3 - 800427a: 687b ldr r3, [r7, #4] - 800427c: 69db ldr r3, [r3, #28] - 800427e: f003 0338 and.w r3, r3, #56 @ 0x38 - 8004282: 431a orrs r2, r3 - 8004284: 687b ldr r3, [r7, #4] - 8004286: 6a1b ldr r3, [r3, #32] - 8004288: f003 0380 and.w r3, r3, #128 @ 0x80 - 800428c: ea42 0103 orr.w r1, r2, r3 - 8004290: 687b ldr r3, [r7, #4] - 8004292: 6a9b ldr r3, [r3, #40] @ 0x28 - 8004294: f403 5200 and.w r2, r3, #8192 @ 0x2000 - 8004298: 687b ldr r3, [r7, #4] - 800429a: 681b ldr r3, [r3, #0] - 800429c: 430a orrs r2, r1 - 800429e: 601a str r2, [r3, #0] + 80046e0: 687b ldr r3, [r7, #4] + 80046e2: 685b ldr r3, [r3, #4] + 80046e4: f403 7282 and.w r2, r3, #260 @ 0x104 + 80046e8: 687b ldr r3, [r7, #4] + 80046ea: 689b ldr r3, [r3, #8] + 80046ec: f403 4304 and.w r3, r3, #33792 @ 0x8400 + 80046f0: 431a orrs r2, r3 + 80046f2: 687b ldr r3, [r7, #4] + 80046f4: 68db ldr r3, [r3, #12] + 80046f6: f403 6300 and.w r3, r3, #2048 @ 0x800 + 80046fa: 431a orrs r2, r3 + 80046fc: 687b ldr r3, [r7, #4] + 80046fe: 691b ldr r3, [r3, #16] + 8004700: f003 0302 and.w r3, r3, #2 + 8004704: 431a orrs r2, r3 + 8004706: 687b ldr r3, [r7, #4] + 8004708: 695b ldr r3, [r3, #20] + 800470a: f003 0301 and.w r3, r3, #1 + 800470e: 431a orrs r2, r3 + 8004710: 687b ldr r3, [r7, #4] + 8004712: 699b ldr r3, [r3, #24] + 8004714: f403 7300 and.w r3, r3, #512 @ 0x200 + 8004718: 431a orrs r2, r3 + 800471a: 687b ldr r3, [r7, #4] + 800471c: 69db ldr r3, [r3, #28] + 800471e: f003 0338 and.w r3, r3, #56 @ 0x38 + 8004722: 431a orrs r2, r3 + 8004724: 687b ldr r3, [r7, #4] + 8004726: 6a1b ldr r3, [r3, #32] + 8004728: f003 0380 and.w r3, r3, #128 @ 0x80 + 800472c: ea42 0103 orr.w r1, r2, r3 + 8004730: 687b ldr r3, [r7, #4] + 8004732: 6a9b ldr r3, [r3, #40] @ 0x28 + 8004734: f403 5200 and.w r2, r3, #8192 @ 0x2000 + 8004738: 687b ldr r3, [r7, #4] + 800473a: 681b ldr r3, [r3, #0] + 800473c: 430a orrs r2, r1 + 800473e: 601a str r2, [r3, #0] (hspi->Init.BaudRatePrescaler & SPI_CR1_BR_Msk) | (hspi->Init.FirstBit & SPI_CR1_LSBFIRST) | (hspi->Init.CRCCalculation & SPI_CR1_CRCEN))); /* Configure : NSS management, TI Mode */ WRITE_REG(hspi->Instance->CR2, (((hspi->Init.NSS >> 16U) & SPI_CR2_SSOE) | (hspi->Init.TIMode & SPI_CR2_FRF))); - 80042a0: 687b ldr r3, [r7, #4] - 80042a2: 699b ldr r3, [r3, #24] - 80042a4: 0c1b lsrs r3, r3, #16 - 80042a6: f003 0104 and.w r1, r3, #4 - 80042aa: 687b ldr r3, [r7, #4] - 80042ac: 6a5b ldr r3, [r3, #36] @ 0x24 - 80042ae: f003 0210 and.w r2, r3, #16 - 80042b2: 687b ldr r3, [r7, #4] - 80042b4: 681b ldr r3, [r3, #0] - 80042b6: 430a orrs r2, r1 - 80042b8: 605a str r2, [r3, #4] + 8004740: 687b ldr r3, [r7, #4] + 8004742: 699b ldr r3, [r3, #24] + 8004744: 0c1b lsrs r3, r3, #16 + 8004746: f003 0104 and.w r1, r3, #4 + 800474a: 687b ldr r3, [r7, #4] + 800474c: 6a5b ldr r3, [r3, #36] @ 0x24 + 800474e: f003 0210 and.w r2, r3, #16 + 8004752: 687b ldr r3, [r7, #4] + 8004754: 681b ldr r3, [r3, #0] + 8004756: 430a orrs r2, r1 + 8004758: 605a str r2, [r3, #4] } #endif /* USE_SPI_CRC */ #if defined(SPI_I2SCFGR_I2SMOD) /* Activate the SPI mode (Make sure that I2SMOD bit in I2SCFGR register is reset) */ CLEAR_BIT(hspi->Instance->I2SCFGR, SPI_I2SCFGR_I2SMOD); - 80042ba: 687b ldr r3, [r7, #4] - 80042bc: 681b ldr r3, [r3, #0] - 80042be: 69da ldr r2, [r3, #28] - 80042c0: 687b ldr r3, [r7, #4] - 80042c2: 681b ldr r3, [r3, #0] - 80042c4: f422 6200 bic.w r2, r2, #2048 @ 0x800 - 80042c8: 61da str r2, [r3, #28] + 800475a: 687b ldr r3, [r7, #4] + 800475c: 681b ldr r3, [r3, #0] + 800475e: 69da ldr r2, [r3, #28] + 8004760: 687b ldr r3, [r7, #4] + 8004762: 681b ldr r3, [r3, #0] + 8004764: f422 6200 bic.w r2, r2, #2048 @ 0x800 + 8004768: 61da str r2, [r3, #28] #endif /* SPI_I2SCFGR_I2SMOD */ hspi->ErrorCode = HAL_SPI_ERROR_NONE; - 80042ca: 687b ldr r3, [r7, #4] - 80042cc: 2200 movs r2, #0 - 80042ce: 655a str r2, [r3, #84] @ 0x54 + 800476a: 687b ldr r3, [r7, #4] + 800476c: 2200 movs r2, #0 + 800476e: 655a str r2, [r3, #84] @ 0x54 hspi->State = HAL_SPI_STATE_READY; - 80042d0: 687b ldr r3, [r7, #4] - 80042d2: 2201 movs r2, #1 - 80042d4: f883 2051 strb.w r2, [r3, #81] @ 0x51 + 8004770: 687b ldr r3, [r7, #4] + 8004772: 2201 movs r2, #1 + 8004774: f883 2051 strb.w r2, [r3, #81] @ 0x51 return HAL_OK; - 80042d8: 2300 movs r3, #0 + 8004778: 2300 movs r3, #0 } - 80042da: 4618 mov r0, r3 - 80042dc: 3708 adds r7, #8 - 80042de: 46bd mov sp, r7 - 80042e0: bd80 pop {r7, pc} + 800477a: 4618 mov r0, r3 + 800477c: 3708 adds r7, #8 + 800477e: 46bd mov sp, r7 + 8004780: bd80 pop {r7, pc} ... -080042e4 : +08004784 : * @param hspi pointer to a SPI_HandleTypeDef structure that contains * the configuration information for the specified SPI module. * @retval None */ void HAL_SPI_IRQHandler(SPI_HandleTypeDef *hspi) { - 80042e4: b580 push {r7, lr} - 80042e6: b088 sub sp, #32 - 80042e8: af00 add r7, sp, #0 - 80042ea: 6078 str r0, [r7, #4] + 8004784: b580 push {r7, lr} + 8004786: b088 sub sp, #32 + 8004788: af00 add r7, sp, #0 + 800478a: 6078 str r0, [r7, #4] uint32_t itsource = hspi->Instance->CR2; - 80042ec: 687b ldr r3, [r7, #4] - 80042ee: 681b ldr r3, [r3, #0] - 80042f0: 685b ldr r3, [r3, #4] - 80042f2: 61fb str r3, [r7, #28] + 800478c: 687b ldr r3, [r7, #4] + 800478e: 681b ldr r3, [r3, #0] + 8004790: 685b ldr r3, [r3, #4] + 8004792: 61fb str r3, [r7, #28] uint32_t itflag = hspi->Instance->SR; - 80042f4: 687b ldr r3, [r7, #4] - 80042f6: 681b ldr r3, [r3, #0] - 80042f8: 689b ldr r3, [r3, #8] - 80042fa: 61bb str r3, [r7, #24] + 8004794: 687b ldr r3, [r7, #4] + 8004796: 681b ldr r3, [r3, #0] + 8004798: 689b ldr r3, [r3, #8] + 800479a: 61bb str r3, [r7, #24] /* SPI in mode Receiver ----------------------------------------------------*/ if ((SPI_CHECK_FLAG(itflag, SPI_FLAG_OVR) == RESET) && - 80042fc: 69bb ldr r3, [r7, #24] - 80042fe: f003 0340 and.w r3, r3, #64 @ 0x40 - 8004302: 2b00 cmp r3, #0 - 8004304: d10e bne.n 8004324 + 800479c: 69bb ldr r3, [r7, #24] + 800479e: f003 0340 and.w r3, r3, #64 @ 0x40 + 80047a2: 2b00 cmp r3, #0 + 80047a4: d10e bne.n 80047c4 (SPI_CHECK_FLAG(itflag, SPI_FLAG_RXNE) != RESET) && (SPI_CHECK_IT_SOURCE(itsource, SPI_IT_RXNE) != RESET)) - 8004306: 69bb ldr r3, [r7, #24] - 8004308: f003 0301 and.w r3, r3, #1 + 80047a6: 69bb ldr r3, [r7, #24] + 80047a8: f003 0301 and.w r3, r3, #1 if ((SPI_CHECK_FLAG(itflag, SPI_FLAG_OVR) == RESET) && - 800430c: 2b00 cmp r3, #0 - 800430e: d009 beq.n 8004324 + 80047ac: 2b00 cmp r3, #0 + 80047ae: d009 beq.n 80047c4 (SPI_CHECK_FLAG(itflag, SPI_FLAG_RXNE) != RESET) && (SPI_CHECK_IT_SOURCE(itsource, SPI_IT_RXNE) != RESET)) - 8004310: 69fb ldr r3, [r7, #28] - 8004312: f003 0340 and.w r3, r3, #64 @ 0x40 - 8004316: 2b00 cmp r3, #0 - 8004318: d004 beq.n 8004324 + 80047b0: 69fb ldr r3, [r7, #28] + 80047b2: f003 0340 and.w r3, r3, #64 @ 0x40 + 80047b6: 2b00 cmp r3, #0 + 80047b8: d004 beq.n 80047c4 { hspi->RxISR(hspi); - 800431a: 687b ldr r3, [r7, #4] - 800431c: 6c1b ldr r3, [r3, #64] @ 0x40 - 800431e: 6878 ldr r0, [r7, #4] - 8004320: 4798 blx r3 + 80047ba: 687b ldr r3, [r7, #4] + 80047bc: 6c1b ldr r3, [r3, #64] @ 0x40 + 80047be: 6878 ldr r0, [r7, #4] + 80047c0: 4798 blx r3 return; - 8004322: e0ce b.n 80044c2 + 80047c2: e0ce b.n 8004962 } /* SPI in mode Transmitter -------------------------------------------------*/ if ((SPI_CHECK_FLAG(itflag, SPI_FLAG_TXE) != RESET) && (SPI_CHECK_IT_SOURCE(itsource, SPI_IT_TXE) != RESET)) - 8004324: 69bb ldr r3, [r7, #24] - 8004326: f003 0302 and.w r3, r3, #2 - 800432a: 2b00 cmp r3, #0 - 800432c: d009 beq.n 8004342 - 800432e: 69fb ldr r3, [r7, #28] - 8004330: f003 0380 and.w r3, r3, #128 @ 0x80 - 8004334: 2b00 cmp r3, #0 - 8004336: d004 beq.n 8004342 + 80047c4: 69bb ldr r3, [r7, #24] + 80047c6: f003 0302 and.w r3, r3, #2 + 80047ca: 2b00 cmp r3, #0 + 80047cc: d009 beq.n 80047e2 + 80047ce: 69fb ldr r3, [r7, #28] + 80047d0: f003 0380 and.w r3, r3, #128 @ 0x80 + 80047d4: 2b00 cmp r3, #0 + 80047d6: d004 beq.n 80047e2 { hspi->TxISR(hspi); - 8004338: 687b ldr r3, [r7, #4] - 800433a: 6c5b ldr r3, [r3, #68] @ 0x44 - 800433c: 6878 ldr r0, [r7, #4] - 800433e: 4798 blx r3 + 80047d8: 687b ldr r3, [r7, #4] + 80047da: 6c5b ldr r3, [r3, #68] @ 0x44 + 80047dc: 6878 ldr r0, [r7, #4] + 80047de: 4798 blx r3 return; - 8004340: e0bf b.n 80044c2 + 80047e0: e0bf b.n 8004962 } /* SPI in Error Treatment --------------------------------------------------*/ if (((SPI_CHECK_FLAG(itflag, SPI_FLAG_MODF) != RESET) || (SPI_CHECK_FLAG(itflag, SPI_FLAG_OVR) != RESET) - 8004342: 69bb ldr r3, [r7, #24] - 8004344: f003 0320 and.w r3, r3, #32 - 8004348: 2b00 cmp r3, #0 - 800434a: d10a bne.n 8004362 - 800434c: 69bb ldr r3, [r7, #24] - 800434e: f003 0340 and.w r3, r3, #64 @ 0x40 - 8004352: 2b00 cmp r3, #0 - 8004354: d105 bne.n 8004362 + 80047e2: 69bb ldr r3, [r7, #24] + 80047e4: f003 0320 and.w r3, r3, #32 + 80047e8: 2b00 cmp r3, #0 + 80047ea: d10a bne.n 8004802 + 80047ec: 69bb ldr r3, [r7, #24] + 80047ee: f003 0340 and.w r3, r3, #64 @ 0x40 + 80047f2: 2b00 cmp r3, #0 + 80047f4: d105 bne.n 8004802 || (SPI_CHECK_FLAG(itflag, SPI_FLAG_FRE) != RESET)) && (SPI_CHECK_IT_SOURCE(itsource, SPI_IT_ERR) != RESET)) - 8004356: 69bb ldr r3, [r7, #24] - 8004358: f403 7380 and.w r3, r3, #256 @ 0x100 - 800435c: 2b00 cmp r3, #0 - 800435e: f000 80b0 beq.w 80044c2 - 8004362: 69fb ldr r3, [r7, #28] - 8004364: f003 0320 and.w r3, r3, #32 - 8004368: 2b00 cmp r3, #0 - 800436a: f000 80aa beq.w 80044c2 + 80047f6: 69bb ldr r3, [r7, #24] + 80047f8: f403 7380 and.w r3, r3, #256 @ 0x100 + 80047fc: 2b00 cmp r3, #0 + 80047fe: f000 80b0 beq.w 8004962 + 8004802: 69fb ldr r3, [r7, #28] + 8004804: f003 0320 and.w r3, r3, #32 + 8004808: 2b00 cmp r3, #0 + 800480a: f000 80aa beq.w 8004962 { /* SPI Overrun error interrupt occurred ----------------------------------*/ if (SPI_CHECK_FLAG(itflag, SPI_FLAG_OVR) != RESET) - 800436e: 69bb ldr r3, [r7, #24] - 8004370: f003 0340 and.w r3, r3, #64 @ 0x40 - 8004374: 2b00 cmp r3, #0 - 8004376: d023 beq.n 80043c0 + 800480e: 69bb ldr r3, [r7, #24] + 8004810: f003 0340 and.w r3, r3, #64 @ 0x40 + 8004814: 2b00 cmp r3, #0 + 8004816: d023 beq.n 8004860 { if (hspi->State != HAL_SPI_STATE_BUSY_TX) - 8004378: 687b ldr r3, [r7, #4] - 800437a: f893 3051 ldrb.w r3, [r3, #81] @ 0x51 - 800437e: b2db uxtb r3, r3 - 8004380: 2b03 cmp r3, #3 - 8004382: d011 beq.n 80043a8 + 8004818: 687b ldr r3, [r7, #4] + 800481a: f893 3051 ldrb.w r3, [r3, #81] @ 0x51 + 800481e: b2db uxtb r3, r3 + 8004820: 2b03 cmp r3, #3 + 8004822: d011 beq.n 8004848 { SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_OVR); - 8004384: 687b ldr r3, [r7, #4] - 8004386: 6d5b ldr r3, [r3, #84] @ 0x54 - 8004388: f043 0204 orr.w r2, r3, #4 - 800438c: 687b ldr r3, [r7, #4] - 800438e: 655a str r2, [r3, #84] @ 0x54 + 8004824: 687b ldr r3, [r7, #4] + 8004826: 6d5b ldr r3, [r3, #84] @ 0x54 + 8004828: f043 0204 orr.w r2, r3, #4 + 800482c: 687b ldr r3, [r7, #4] + 800482e: 655a str r2, [r3, #84] @ 0x54 __HAL_SPI_CLEAR_OVRFLAG(hspi); - 8004390: 2300 movs r3, #0 - 8004392: 617b str r3, [r7, #20] - 8004394: 687b ldr r3, [r7, #4] - 8004396: 681b ldr r3, [r3, #0] - 8004398: 68db ldr r3, [r3, #12] - 800439a: 617b str r3, [r7, #20] - 800439c: 687b ldr r3, [r7, #4] - 800439e: 681b ldr r3, [r3, #0] - 80043a0: 689b ldr r3, [r3, #8] - 80043a2: 617b str r3, [r7, #20] - 80043a4: 697b ldr r3, [r7, #20] - 80043a6: e00b b.n 80043c0 + 8004830: 2300 movs r3, #0 + 8004832: 617b str r3, [r7, #20] + 8004834: 687b ldr r3, [r7, #4] + 8004836: 681b ldr r3, [r3, #0] + 8004838: 68db ldr r3, [r3, #12] + 800483a: 617b str r3, [r7, #20] + 800483c: 687b ldr r3, [r7, #4] + 800483e: 681b ldr r3, [r3, #0] + 8004840: 689b ldr r3, [r3, #8] + 8004842: 617b str r3, [r7, #20] + 8004844: 697b ldr r3, [r7, #20] + 8004846: e00b b.n 8004860 } else { __HAL_SPI_CLEAR_OVRFLAG(hspi); - 80043a8: 2300 movs r3, #0 - 80043aa: 613b str r3, [r7, #16] - 80043ac: 687b ldr r3, [r7, #4] - 80043ae: 681b ldr r3, [r3, #0] - 80043b0: 68db ldr r3, [r3, #12] - 80043b2: 613b str r3, [r7, #16] - 80043b4: 687b ldr r3, [r7, #4] - 80043b6: 681b ldr r3, [r3, #0] - 80043b8: 689b ldr r3, [r3, #8] - 80043ba: 613b str r3, [r7, #16] - 80043bc: 693b ldr r3, [r7, #16] + 8004848: 2300 movs r3, #0 + 800484a: 613b str r3, [r7, #16] + 800484c: 687b ldr r3, [r7, #4] + 800484e: 681b ldr r3, [r3, #0] + 8004850: 68db ldr r3, [r3, #12] + 8004852: 613b str r3, [r7, #16] + 8004854: 687b ldr r3, [r7, #4] + 8004856: 681b ldr r3, [r3, #0] + 8004858: 689b ldr r3, [r3, #8] + 800485a: 613b str r3, [r7, #16] + 800485c: 693b ldr r3, [r7, #16] return; - 80043be: e080 b.n 80044c2 + 800485e: e080 b.n 8004962 } } /* SPI Mode Fault error interrupt occurred -------------------------------*/ if (SPI_CHECK_FLAG(itflag, SPI_FLAG_MODF) != RESET) - 80043c0: 69bb ldr r3, [r7, #24] - 80043c2: f003 0320 and.w r3, r3, #32 - 80043c6: 2b00 cmp r3, #0 - 80043c8: d014 beq.n 80043f4 + 8004860: 69bb ldr r3, [r7, #24] + 8004862: f003 0320 and.w r3, r3, #32 + 8004866: 2b00 cmp r3, #0 + 8004868: d014 beq.n 8004894 { SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_MODF); - 80043ca: 687b ldr r3, [r7, #4] - 80043cc: 6d5b ldr r3, [r3, #84] @ 0x54 - 80043ce: f043 0201 orr.w r2, r3, #1 - 80043d2: 687b ldr r3, [r7, #4] - 80043d4: 655a str r2, [r3, #84] @ 0x54 + 800486a: 687b ldr r3, [r7, #4] + 800486c: 6d5b ldr r3, [r3, #84] @ 0x54 + 800486e: f043 0201 orr.w r2, r3, #1 + 8004872: 687b ldr r3, [r7, #4] + 8004874: 655a str r2, [r3, #84] @ 0x54 __HAL_SPI_CLEAR_MODFFLAG(hspi); - 80043d6: 2300 movs r3, #0 - 80043d8: 60fb str r3, [r7, #12] - 80043da: 687b ldr r3, [r7, #4] - 80043dc: 681b ldr r3, [r3, #0] - 80043de: 689b ldr r3, [r3, #8] - 80043e0: 60fb str r3, [r7, #12] - 80043e2: 687b ldr r3, [r7, #4] - 80043e4: 681b ldr r3, [r3, #0] - 80043e6: 681a ldr r2, [r3, #0] - 80043e8: 687b ldr r3, [r7, #4] - 80043ea: 681b ldr r3, [r3, #0] - 80043ec: f022 0240 bic.w r2, r2, #64 @ 0x40 - 80043f0: 601a str r2, [r3, #0] - 80043f2: 68fb ldr r3, [r7, #12] + 8004876: 2300 movs r3, #0 + 8004878: 60fb str r3, [r7, #12] + 800487a: 687b ldr r3, [r7, #4] + 800487c: 681b ldr r3, [r3, #0] + 800487e: 689b ldr r3, [r3, #8] + 8004880: 60fb str r3, [r7, #12] + 8004882: 687b ldr r3, [r7, #4] + 8004884: 681b ldr r3, [r3, #0] + 8004886: 681a ldr r2, [r3, #0] + 8004888: 687b ldr r3, [r7, #4] + 800488a: 681b ldr r3, [r3, #0] + 800488c: f022 0240 bic.w r2, r2, #64 @ 0x40 + 8004890: 601a str r2, [r3, #0] + 8004892: 68fb ldr r3, [r7, #12] } /* SPI Frame error interrupt occurred ------------------------------------*/ if (SPI_CHECK_FLAG(itflag, SPI_FLAG_FRE) != RESET) - 80043f4: 69bb ldr r3, [r7, #24] - 80043f6: f403 7380 and.w r3, r3, #256 @ 0x100 - 80043fa: 2b00 cmp r3, #0 - 80043fc: d00c beq.n 8004418 + 8004894: 69bb ldr r3, [r7, #24] + 8004896: f403 7380 and.w r3, r3, #256 @ 0x100 + 800489a: 2b00 cmp r3, #0 + 800489c: d00c beq.n 80048b8 { SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_FRE); - 80043fe: 687b ldr r3, [r7, #4] - 8004400: 6d5b ldr r3, [r3, #84] @ 0x54 - 8004402: f043 0208 orr.w r2, r3, #8 - 8004406: 687b ldr r3, [r7, #4] - 8004408: 655a str r2, [r3, #84] @ 0x54 + 800489e: 687b ldr r3, [r7, #4] + 80048a0: 6d5b ldr r3, [r3, #84] @ 0x54 + 80048a2: f043 0208 orr.w r2, r3, #8 + 80048a6: 687b ldr r3, [r7, #4] + 80048a8: 655a str r2, [r3, #84] @ 0x54 __HAL_SPI_CLEAR_FREFLAG(hspi); - 800440a: 2300 movs r3, #0 - 800440c: 60bb str r3, [r7, #8] - 800440e: 687b ldr r3, [r7, #4] - 8004410: 681b ldr r3, [r3, #0] - 8004412: 689b ldr r3, [r3, #8] - 8004414: 60bb str r3, [r7, #8] - 8004416: 68bb ldr r3, [r7, #8] + 80048aa: 2300 movs r3, #0 + 80048ac: 60bb str r3, [r7, #8] + 80048ae: 687b ldr r3, [r7, #4] + 80048b0: 681b ldr r3, [r3, #0] + 80048b2: 689b ldr r3, [r3, #8] + 80048b4: 60bb str r3, [r7, #8] + 80048b6: 68bb ldr r3, [r7, #8] } if (hspi->ErrorCode != HAL_SPI_ERROR_NONE) - 8004418: 687b ldr r3, [r7, #4] - 800441a: 6d5b ldr r3, [r3, #84] @ 0x54 - 800441c: 2b00 cmp r3, #0 - 800441e: d04f beq.n 80044c0 + 80048b8: 687b ldr r3, [r7, #4] + 80048ba: 6d5b ldr r3, [r3, #84] @ 0x54 + 80048bc: 2b00 cmp r3, #0 + 80048be: d04f beq.n 8004960 { /* Disable all interrupts */ __HAL_SPI_DISABLE_IT(hspi, SPI_IT_RXNE | SPI_IT_TXE | SPI_IT_ERR); - 8004420: 687b ldr r3, [r7, #4] - 8004422: 681b ldr r3, [r3, #0] - 8004424: 685a ldr r2, [r3, #4] - 8004426: 687b ldr r3, [r7, #4] - 8004428: 681b ldr r3, [r3, #0] - 800442a: f022 02e0 bic.w r2, r2, #224 @ 0xe0 - 800442e: 605a str r2, [r3, #4] + 80048c0: 687b ldr r3, [r7, #4] + 80048c2: 681b ldr r3, [r3, #0] + 80048c4: 685a ldr r2, [r3, #4] + 80048c6: 687b ldr r3, [r7, #4] + 80048c8: 681b ldr r3, [r3, #0] + 80048ca: f022 02e0 bic.w r2, r2, #224 @ 0xe0 + 80048ce: 605a str r2, [r3, #4] hspi->State = HAL_SPI_STATE_READY; - 8004430: 687b ldr r3, [r7, #4] - 8004432: 2201 movs r2, #1 - 8004434: f883 2051 strb.w r2, [r3, #81] @ 0x51 + 80048d0: 687b ldr r3, [r7, #4] + 80048d2: 2201 movs r2, #1 + 80048d4: f883 2051 strb.w r2, [r3, #81] @ 0x51 /* Disable the SPI DMA requests if enabled */ if ((HAL_IS_BIT_SET(itsource, SPI_CR2_TXDMAEN)) || (HAL_IS_BIT_SET(itsource, SPI_CR2_RXDMAEN))) - 8004438: 69fb ldr r3, [r7, #28] - 800443a: f003 0302 and.w r3, r3, #2 - 800443e: 2b00 cmp r3, #0 - 8004440: d104 bne.n 800444c - 8004442: 69fb ldr r3, [r7, #28] - 8004444: f003 0301 and.w r3, r3, #1 - 8004448: 2b00 cmp r3, #0 - 800444a: d034 beq.n 80044b6 + 80048d8: 69fb ldr r3, [r7, #28] + 80048da: f003 0302 and.w r3, r3, #2 + 80048de: 2b00 cmp r3, #0 + 80048e0: d104 bne.n 80048ec + 80048e2: 69fb ldr r3, [r7, #28] + 80048e4: f003 0301 and.w r3, r3, #1 + 80048e8: 2b00 cmp r3, #0 + 80048ea: d034 beq.n 8004956 { CLEAR_BIT(hspi->Instance->CR2, (SPI_CR2_TXDMAEN | SPI_CR2_RXDMAEN)); - 800444c: 687b ldr r3, [r7, #4] - 800444e: 681b ldr r3, [r3, #0] - 8004450: 685a ldr r2, [r3, #4] - 8004452: 687b ldr r3, [r7, #4] - 8004454: 681b ldr r3, [r3, #0] - 8004456: f022 0203 bic.w r2, r2, #3 - 800445a: 605a str r2, [r3, #4] + 80048ec: 687b ldr r3, [r7, #4] + 80048ee: 681b ldr r3, [r3, #0] + 80048f0: 685a ldr r2, [r3, #4] + 80048f2: 687b ldr r3, [r7, #4] + 80048f4: 681b ldr r3, [r3, #0] + 80048f6: f022 0203 bic.w r2, r2, #3 + 80048fa: 605a str r2, [r3, #4] /* Abort the SPI DMA Rx channel */ if (hspi->hdmarx != NULL) - 800445c: 687b ldr r3, [r7, #4] - 800445e: 6cdb ldr r3, [r3, #76] @ 0x4c - 8004460: 2b00 cmp r3, #0 - 8004462: d011 beq.n 8004488 + 80048fc: 687b ldr r3, [r7, #4] + 80048fe: 6cdb ldr r3, [r3, #76] @ 0x4c + 8004900: 2b00 cmp r3, #0 + 8004902: d011 beq.n 8004928 { /* Set the SPI DMA Abort callback : will lead to call HAL_SPI_ErrorCallback() at end of DMA abort procedure */ hspi->hdmarx->XferAbortCallback = SPI_DMAAbortOnError; - 8004464: 687b ldr r3, [r7, #4] - 8004466: 6cdb ldr r3, [r3, #76] @ 0x4c - 8004468: 4a17 ldr r2, [pc, #92] @ (80044c8 ) - 800446a: 651a str r2, [r3, #80] @ 0x50 + 8004904: 687b ldr r3, [r7, #4] + 8004906: 6cdb ldr r3, [r3, #76] @ 0x4c + 8004908: 4a17 ldr r2, [pc, #92] @ (8004968 ) + 800490a: 651a str r2, [r3, #80] @ 0x50 if (HAL_OK != HAL_DMA_Abort_IT(hspi->hdmarx)) - 800446c: 687b ldr r3, [r7, #4] - 800446e: 6cdb ldr r3, [r3, #76] @ 0x4c - 8004470: 4618 mov r0, r3 - 8004472: f7fe fbbd bl 8002bf0 - 8004476: 4603 mov r3, r0 - 8004478: 2b00 cmp r3, #0 - 800447a: d005 beq.n 8004488 + 800490c: 687b ldr r3, [r7, #4] + 800490e: 6cdb ldr r3, [r3, #76] @ 0x4c + 8004910: 4618 mov r0, r3 + 8004912: f7fe fac5 bl 8002ea0 + 8004916: 4603 mov r3, r0 + 8004918: 2b00 cmp r3, #0 + 800491a: d005 beq.n 8004928 { SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_ABORT); - 800447c: 687b ldr r3, [r7, #4] - 800447e: 6d5b ldr r3, [r3, #84] @ 0x54 - 8004480: f043 0240 orr.w r2, r3, #64 @ 0x40 - 8004484: 687b ldr r3, [r7, #4] - 8004486: 655a str r2, [r3, #84] @ 0x54 + 800491c: 687b ldr r3, [r7, #4] + 800491e: 6d5b ldr r3, [r3, #84] @ 0x54 + 8004920: f043 0240 orr.w r2, r3, #64 @ 0x40 + 8004924: 687b ldr r3, [r7, #4] + 8004926: 655a str r2, [r3, #84] @ 0x54 } } /* Abort the SPI DMA Tx channel */ if (hspi->hdmatx != NULL) - 8004488: 687b ldr r3, [r7, #4] - 800448a: 6c9b ldr r3, [r3, #72] @ 0x48 - 800448c: 2b00 cmp r3, #0 - 800448e: d016 beq.n 80044be + 8004928: 687b ldr r3, [r7, #4] + 800492a: 6c9b ldr r3, [r3, #72] @ 0x48 + 800492c: 2b00 cmp r3, #0 + 800492e: d016 beq.n 800495e { /* Set the SPI DMA Abort callback : will lead to call HAL_SPI_ErrorCallback() at end of DMA abort procedure */ hspi->hdmatx->XferAbortCallback = SPI_DMAAbortOnError; - 8004490: 687b ldr r3, [r7, #4] - 8004492: 6c9b ldr r3, [r3, #72] @ 0x48 - 8004494: 4a0c ldr r2, [pc, #48] @ (80044c8 ) - 8004496: 651a str r2, [r3, #80] @ 0x50 + 8004930: 687b ldr r3, [r7, #4] + 8004932: 6c9b ldr r3, [r3, #72] @ 0x48 + 8004934: 4a0c ldr r2, [pc, #48] @ (8004968 ) + 8004936: 651a str r2, [r3, #80] @ 0x50 if (HAL_OK != HAL_DMA_Abort_IT(hspi->hdmatx)) - 8004498: 687b ldr r3, [r7, #4] - 800449a: 6c9b ldr r3, [r3, #72] @ 0x48 - 800449c: 4618 mov r0, r3 - 800449e: f7fe fba7 bl 8002bf0 - 80044a2: 4603 mov r3, r0 - 80044a4: 2b00 cmp r3, #0 - 80044a6: d00a beq.n 80044be + 8004938: 687b ldr r3, [r7, #4] + 800493a: 6c9b ldr r3, [r3, #72] @ 0x48 + 800493c: 4618 mov r0, r3 + 800493e: f7fe faaf bl 8002ea0 + 8004942: 4603 mov r3, r0 + 8004944: 2b00 cmp r3, #0 + 8004946: d00a beq.n 800495e { SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_ABORT); - 80044a8: 687b ldr r3, [r7, #4] - 80044aa: 6d5b ldr r3, [r3, #84] @ 0x54 - 80044ac: f043 0240 orr.w r2, r3, #64 @ 0x40 - 80044b0: 687b ldr r3, [r7, #4] - 80044b2: 655a str r2, [r3, #84] @ 0x54 + 8004948: 687b ldr r3, [r7, #4] + 800494a: 6d5b ldr r3, [r3, #84] @ 0x54 + 800494c: f043 0240 orr.w r2, r3, #64 @ 0x40 + 8004950: 687b ldr r3, [r7, #4] + 8004952: 655a str r2, [r3, #84] @ 0x54 if (hspi->hdmatx != NULL) - 80044b4: e003 b.n 80044be + 8004954: e003 b.n 800495e { /* Call user error callback */ #if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) hspi->ErrorCallback(hspi); #else HAL_SPI_ErrorCallback(hspi); - 80044b6: 6878 ldr r0, [r7, #4] - 80044b8: f000 f808 bl 80044cc + 8004956: 6878 ldr r0, [r7, #4] + 8004958: f000 f808 bl 800496c #endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ } } return; - 80044bc: e000 b.n 80044c0 + 800495c: e000 b.n 8004960 if (hspi->hdmatx != NULL) - 80044be: bf00 nop + 800495e: bf00 nop return; - 80044c0: bf00 nop + 8004960: bf00 nop } } - 80044c2: 3720 adds r7, #32 - 80044c4: 46bd mov sp, r7 - 80044c6: bd80 pop {r7, pc} - 80044c8: 080044e1 .word 0x080044e1 + 8004962: 3720 adds r7, #32 + 8004964: 46bd mov sp, r7 + 8004966: bd80 pop {r7, pc} + 8004968: 08004981 .word 0x08004981 -080044cc : +0800496c : * @param hspi pointer to a SPI_HandleTypeDef structure that contains * the configuration information for SPI module. * @retval None */ __weak void HAL_SPI_ErrorCallback(SPI_HandleTypeDef *hspi) { - 80044cc: b480 push {r7} - 80044ce: b083 sub sp, #12 - 80044d0: af00 add r7, sp, #0 - 80044d2: 6078 str r0, [r7, #4] + 800496c: b480 push {r7} + 800496e: b083 sub sp, #12 + 8004970: af00 add r7, sp, #0 + 8004972: 6078 str r0, [r7, #4] the HAL_SPI_ErrorCallback should be implemented in the user file */ /* NOTE : The ErrorCode parameter in the hspi handle is updated by the SPI processes and user can use HAL_SPI_GetError() API to check the latest error occurred */ } - 80044d4: bf00 nop - 80044d6: 370c adds r7, #12 - 80044d8: 46bd mov sp, r7 - 80044da: f85d 7b04 ldr.w r7, [sp], #4 - 80044de: 4770 bx lr + 8004974: bf00 nop + 8004976: 370c adds r7, #12 + 8004978: 46bd mov sp, r7 + 800497a: f85d 7b04 ldr.w r7, [sp], #4 + 800497e: 4770 bx lr -080044e0 : +08004980 : * (To be called at end of DMA Abort procedure following error occurrence). * @param hdma DMA handle. * @retval None */ static void SPI_DMAAbortOnError(DMA_HandleTypeDef *hdma) { - 80044e0: b580 push {r7, lr} - 80044e2: b084 sub sp, #16 - 80044e4: af00 add r7, sp, #0 - 80044e6: 6078 str r0, [r7, #4] + 8004980: b580 push {r7, lr} + 8004982: b084 sub sp, #16 + 8004984: af00 add r7, sp, #0 + 8004986: 6078 str r0, [r7, #4] SPI_HandleTypeDef *hspi = (SPI_HandleTypeDef *)(((DMA_HandleTypeDef *)hdma)->Parent); /* Derogation MISRAC2012-Rule-11.5 */ - 80044e8: 687b ldr r3, [r7, #4] - 80044ea: 6b9b ldr r3, [r3, #56] @ 0x38 - 80044ec: 60fb str r3, [r7, #12] + 8004988: 687b ldr r3, [r7, #4] + 800498a: 6b9b ldr r3, [r3, #56] @ 0x38 + 800498c: 60fb str r3, [r7, #12] hspi->RxXferCount = 0U; - 80044ee: 68fb ldr r3, [r7, #12] - 80044f0: 2200 movs r2, #0 - 80044f2: 87da strh r2, [r3, #62] @ 0x3e + 800498e: 68fb ldr r3, [r7, #12] + 8004990: 2200 movs r2, #0 + 8004992: 87da strh r2, [r3, #62] @ 0x3e hspi->TxXferCount = 0U; - 80044f4: 68fb ldr r3, [r7, #12] - 80044f6: 2200 movs r2, #0 - 80044f8: 86da strh r2, [r3, #54] @ 0x36 + 8004994: 68fb ldr r3, [r7, #12] + 8004996: 2200 movs r2, #0 + 8004998: 86da strh r2, [r3, #54] @ 0x36 /* Call user error callback */ #if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) hspi->ErrorCallback(hspi); #else HAL_SPI_ErrorCallback(hspi); - 80044fa: 68f8 ldr r0, [r7, #12] - 80044fc: f7ff ffe6 bl 80044cc + 800499a: 68f8 ldr r0, [r7, #12] + 800499c: f7ff ffe6 bl 800496c #endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ } - 8004500: bf00 nop - 8004502: 3710 adds r7, #16 - 8004504: 46bd mov sp, r7 - 8004506: bd80 pop {r7, pc} + 80049a0: bf00 nop + 80049a2: 3710 adds r7, #16 + 80049a4: 46bd mov sp, r7 + 80049a6: bd80 pop {r7, pc} -08004508 : +080049a8 : * 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) { - 8004508: b580 push {r7, lr} - 800450a: b082 sub sp, #8 - 800450c: af00 add r7, sp, #0 - 800450e: 6078 str r0, [r7, #4] + 80049a8: b580 push {r7, lr} + 80049aa: b082 sub sp, #8 + 80049ac: af00 add r7, sp, #0 + 80049ae: 6078 str r0, [r7, #4] /* Check the TIM handle allocation */ if (htim == NULL) - 8004510: 687b ldr r3, [r7, #4] - 8004512: 2b00 cmp r3, #0 - 8004514: d101 bne.n 800451a + 80049b0: 687b ldr r3, [r7, #4] + 80049b2: 2b00 cmp r3, #0 + 80049b4: d101 bne.n 80049ba { return HAL_ERROR; - 8004516: 2301 movs r3, #1 - 8004518: e041 b.n 800459e + 80049b6: 2301 movs r3, #1 + 80049b8: e041 b.n 8004a3e 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) - 800451a: 687b ldr r3, [r7, #4] - 800451c: f893 303d ldrb.w r3, [r3, #61] @ 0x3d - 8004520: b2db uxtb r3, r3 - 8004522: 2b00 cmp r3, #0 - 8004524: d106 bne.n 8004534 + 80049ba: 687b ldr r3, [r7, #4] + 80049bc: f893 303d ldrb.w r3, [r3, #61] @ 0x3d + 80049c0: b2db uxtb r3, r3 + 80049c2: 2b00 cmp r3, #0 + 80049c4: d106 bne.n 80049d4 { /* Allocate lock resource and initialize it */ htim->Lock = HAL_UNLOCKED; - 8004526: 687b ldr r3, [r7, #4] - 8004528: 2200 movs r2, #0 - 800452a: f883 203c strb.w r2, [r3, #60] @ 0x3c + 80049c6: 687b ldr r3, [r7, #4] + 80049c8: 2200 movs r2, #0 + 80049ca: 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); - 800452e: 6878 ldr r0, [r7, #4] - 8004530: f7fd fa2c bl 800198c + 80049ce: 6878 ldr r0, [r7, #4] + 80049d0: f7fd f802 bl 80019d8 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } /* Set the TIM state */ htim->State = HAL_TIM_STATE_BUSY; - 8004534: 687b ldr r3, [r7, #4] - 8004536: 2202 movs r2, #2 - 8004538: f883 203d strb.w r2, [r3, #61] @ 0x3d + 80049d4: 687b ldr r3, [r7, #4] + 80049d6: 2202 movs r2, #2 + 80049d8: f883 203d strb.w r2, [r3, #61] @ 0x3d /* Set the Time Base configuration */ TIM_Base_SetConfig(htim->Instance, &htim->Init); - 800453c: 687b ldr r3, [r7, #4] - 800453e: 681a ldr r2, [r3, #0] - 8004540: 687b ldr r3, [r7, #4] - 8004542: 3304 adds r3, #4 - 8004544: 4619 mov r1, r3 - 8004546: 4610 mov r0, r2 - 8004548: f000 fb9a bl 8004c80 + 80049dc: 687b ldr r3, [r7, #4] + 80049de: 681a ldr r2, [r3, #0] + 80049e0: 687b ldr r3, [r7, #4] + 80049e2: 3304 adds r3, #4 + 80049e4: 4619 mov r1, r3 + 80049e6: 4610 mov r0, r2 + 80049e8: f000 fb9a bl 8005120 /* Initialize the DMA burst operation state */ htim->DMABurstState = HAL_DMA_BURST_STATE_READY; - 800454c: 687b ldr r3, [r7, #4] - 800454e: 2201 movs r2, #1 - 8004550: f883 2046 strb.w r2, [r3, #70] @ 0x46 + 80049ec: 687b ldr r3, [r7, #4] + 80049ee: 2201 movs r2, #1 + 80049f0: f883 2046 strb.w r2, [r3, #70] @ 0x46 /* Initialize the TIM channels state */ TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); - 8004554: 687b ldr r3, [r7, #4] - 8004556: 2201 movs r2, #1 - 8004558: f883 203e strb.w r2, [r3, #62] @ 0x3e - 800455c: 687b ldr r3, [r7, #4] - 800455e: 2201 movs r2, #1 - 8004560: f883 203f strb.w r2, [r3, #63] @ 0x3f - 8004564: 687b ldr r3, [r7, #4] - 8004566: 2201 movs r2, #1 - 8004568: f883 2040 strb.w r2, [r3, #64] @ 0x40 - 800456c: 687b ldr r3, [r7, #4] - 800456e: 2201 movs r2, #1 - 8004570: f883 2041 strb.w r2, [r3, #65] @ 0x41 + 80049f4: 687b ldr r3, [r7, #4] + 80049f6: 2201 movs r2, #1 + 80049f8: f883 203e strb.w r2, [r3, #62] @ 0x3e + 80049fc: 687b ldr r3, [r7, #4] + 80049fe: 2201 movs r2, #1 + 8004a00: f883 203f strb.w r2, [r3, #63] @ 0x3f + 8004a04: 687b ldr r3, [r7, #4] + 8004a06: 2201 movs r2, #1 + 8004a08: f883 2040 strb.w r2, [r3, #64] @ 0x40 + 8004a0c: 687b ldr r3, [r7, #4] + 8004a0e: 2201 movs r2, #1 + 8004a10: f883 2041 strb.w r2, [r3, #65] @ 0x41 TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); - 8004574: 687b ldr r3, [r7, #4] - 8004576: 2201 movs r2, #1 - 8004578: f883 2042 strb.w r2, [r3, #66] @ 0x42 - 800457c: 687b ldr r3, [r7, #4] - 800457e: 2201 movs r2, #1 - 8004580: f883 2043 strb.w r2, [r3, #67] @ 0x43 - 8004584: 687b ldr r3, [r7, #4] - 8004586: 2201 movs r2, #1 - 8004588: f883 2044 strb.w r2, [r3, #68] @ 0x44 - 800458c: 687b ldr r3, [r7, #4] - 800458e: 2201 movs r2, #1 - 8004590: f883 2045 strb.w r2, [r3, #69] @ 0x45 + 8004a14: 687b ldr r3, [r7, #4] + 8004a16: 2201 movs r2, #1 + 8004a18: f883 2042 strb.w r2, [r3, #66] @ 0x42 + 8004a1c: 687b ldr r3, [r7, #4] + 8004a1e: 2201 movs r2, #1 + 8004a20: f883 2043 strb.w r2, [r3, #67] @ 0x43 + 8004a24: 687b ldr r3, [r7, #4] + 8004a26: 2201 movs r2, #1 + 8004a28: f883 2044 strb.w r2, [r3, #68] @ 0x44 + 8004a2c: 687b ldr r3, [r7, #4] + 8004a2e: 2201 movs r2, #1 + 8004a30: f883 2045 strb.w r2, [r3, #69] @ 0x45 /* Initialize the TIM state*/ htim->State = HAL_TIM_STATE_READY; - 8004594: 687b ldr r3, [r7, #4] - 8004596: 2201 movs r2, #1 - 8004598: f883 203d strb.w r2, [r3, #61] @ 0x3d + 8004a34: 687b ldr r3, [r7, #4] + 8004a36: 2201 movs r2, #1 + 8004a38: f883 203d strb.w r2, [r3, #61] @ 0x3d return HAL_OK; - 800459c: 2300 movs r3, #0 + 8004a3c: 2300 movs r3, #0 } - 800459e: 4618 mov r0, r3 - 80045a0: 3708 adds r7, #8 - 80045a2: 46bd mov sp, r7 - 80045a4: bd80 pop {r7, pc} + 8004a3e: 4618 mov r0, r3 + 8004a40: 3708 adds r7, #8 + 8004a42: 46bd mov sp, r7 + 8004a44: bd80 pop {r7, pc} ... -080045a8 : +08004a48 : * @brief Starts the TIM Base generation in interrupt mode. * @param htim TIM Base handle * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_Base_Start_IT(TIM_HandleTypeDef *htim) { - 80045a8: b480 push {r7} - 80045aa: b085 sub sp, #20 - 80045ac: af00 add r7, sp, #0 - 80045ae: 6078 str r0, [r7, #4] + 8004a48: b480 push {r7} + 8004a4a: b085 sub sp, #20 + 8004a4c: af00 add r7, sp, #0 + 8004a4e: 6078 str r0, [r7, #4] /* Check the parameters */ assert_param(IS_TIM_INSTANCE(htim->Instance)); /* Check the TIM state */ if (htim->State != HAL_TIM_STATE_READY) - 80045b0: 687b ldr r3, [r7, #4] - 80045b2: f893 303d ldrb.w r3, [r3, #61] @ 0x3d - 80045b6: b2db uxtb r3, r3 - 80045b8: 2b01 cmp r3, #1 - 80045ba: d001 beq.n 80045c0 + 8004a50: 687b ldr r3, [r7, #4] + 8004a52: f893 303d ldrb.w r3, [r3, #61] @ 0x3d + 8004a56: b2db uxtb r3, r3 + 8004a58: 2b01 cmp r3, #1 + 8004a5a: d001 beq.n 8004a60 { return HAL_ERROR; - 80045bc: 2301 movs r3, #1 - 80045be: e04e b.n 800465e + 8004a5c: 2301 movs r3, #1 + 8004a5e: e04e b.n 8004afe } /* Set the TIM state */ htim->State = HAL_TIM_STATE_BUSY; - 80045c0: 687b ldr r3, [r7, #4] - 80045c2: 2202 movs r2, #2 - 80045c4: f883 203d strb.w r2, [r3, #61] @ 0x3d + 8004a60: 687b ldr r3, [r7, #4] + 8004a62: 2202 movs r2, #2 + 8004a64: f883 203d strb.w r2, [r3, #61] @ 0x3d /* Enable the TIM Update interrupt */ __HAL_TIM_ENABLE_IT(htim, TIM_IT_UPDATE); - 80045c8: 687b ldr r3, [r7, #4] - 80045ca: 681b ldr r3, [r3, #0] - 80045cc: 68da ldr r2, [r3, #12] - 80045ce: 687b ldr r3, [r7, #4] - 80045d0: 681b ldr r3, [r3, #0] - 80045d2: f042 0201 orr.w r2, r2, #1 - 80045d6: 60da str r2, [r3, #12] + 8004a68: 687b ldr r3, [r7, #4] + 8004a6a: 681b ldr r3, [r3, #0] + 8004a6c: 68da ldr r2, [r3, #12] + 8004a6e: 687b ldr r3, [r7, #4] + 8004a70: 681b ldr r3, [r3, #0] + 8004a72: f042 0201 orr.w r2, r2, #1 + 8004a76: 60da str r2, [r3, #12] /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */ if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) - 80045d8: 687b ldr r3, [r7, #4] - 80045da: 681b ldr r3, [r3, #0] - 80045dc: 4a23 ldr r2, [pc, #140] @ (800466c ) - 80045de: 4293 cmp r3, r2 - 80045e0: d022 beq.n 8004628 - 80045e2: 687b ldr r3, [r7, #4] - 80045e4: 681b ldr r3, [r3, #0] - 80045e6: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 - 80045ea: d01d beq.n 8004628 - 80045ec: 687b ldr r3, [r7, #4] - 80045ee: 681b ldr r3, [r3, #0] - 80045f0: 4a1f ldr r2, [pc, #124] @ (8004670 ) - 80045f2: 4293 cmp r3, r2 - 80045f4: d018 beq.n 8004628 - 80045f6: 687b ldr r3, [r7, #4] - 80045f8: 681b ldr r3, [r3, #0] - 80045fa: 4a1e ldr r2, [pc, #120] @ (8004674 ) - 80045fc: 4293 cmp r3, r2 - 80045fe: d013 beq.n 8004628 - 8004600: 687b ldr r3, [r7, #4] - 8004602: 681b ldr r3, [r3, #0] - 8004604: 4a1c ldr r2, [pc, #112] @ (8004678 ) - 8004606: 4293 cmp r3, r2 - 8004608: d00e beq.n 8004628 - 800460a: 687b ldr r3, [r7, #4] - 800460c: 681b ldr r3, [r3, #0] - 800460e: 4a1b ldr r2, [pc, #108] @ (800467c ) - 8004610: 4293 cmp r3, r2 - 8004612: d009 beq.n 8004628 - 8004614: 687b ldr r3, [r7, #4] - 8004616: 681b ldr r3, [r3, #0] - 8004618: 4a19 ldr r2, [pc, #100] @ (8004680 ) - 800461a: 4293 cmp r3, r2 - 800461c: d004 beq.n 8004628 - 800461e: 687b ldr r3, [r7, #4] - 8004620: 681b ldr r3, [r3, #0] - 8004622: 4a18 ldr r2, [pc, #96] @ (8004684 ) - 8004624: 4293 cmp r3, r2 - 8004626: d111 bne.n 800464c + 8004a78: 687b ldr r3, [r7, #4] + 8004a7a: 681b ldr r3, [r3, #0] + 8004a7c: 4a23 ldr r2, [pc, #140] @ (8004b0c ) + 8004a7e: 4293 cmp r3, r2 + 8004a80: d022 beq.n 8004ac8 + 8004a82: 687b ldr r3, [r7, #4] + 8004a84: 681b ldr r3, [r3, #0] + 8004a86: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 + 8004a8a: d01d beq.n 8004ac8 + 8004a8c: 687b ldr r3, [r7, #4] + 8004a8e: 681b ldr r3, [r3, #0] + 8004a90: 4a1f ldr r2, [pc, #124] @ (8004b10 ) + 8004a92: 4293 cmp r3, r2 + 8004a94: d018 beq.n 8004ac8 + 8004a96: 687b ldr r3, [r7, #4] + 8004a98: 681b ldr r3, [r3, #0] + 8004a9a: 4a1e ldr r2, [pc, #120] @ (8004b14 ) + 8004a9c: 4293 cmp r3, r2 + 8004a9e: d013 beq.n 8004ac8 + 8004aa0: 687b ldr r3, [r7, #4] + 8004aa2: 681b ldr r3, [r3, #0] + 8004aa4: 4a1c ldr r2, [pc, #112] @ (8004b18 ) + 8004aa6: 4293 cmp r3, r2 + 8004aa8: d00e beq.n 8004ac8 + 8004aaa: 687b ldr r3, [r7, #4] + 8004aac: 681b ldr r3, [r3, #0] + 8004aae: 4a1b ldr r2, [pc, #108] @ (8004b1c ) + 8004ab0: 4293 cmp r3, r2 + 8004ab2: d009 beq.n 8004ac8 + 8004ab4: 687b ldr r3, [r7, #4] + 8004ab6: 681b ldr r3, [r3, #0] + 8004ab8: 4a19 ldr r2, [pc, #100] @ (8004b20 ) + 8004aba: 4293 cmp r3, r2 + 8004abc: d004 beq.n 8004ac8 + 8004abe: 687b ldr r3, [r7, #4] + 8004ac0: 681b ldr r3, [r3, #0] + 8004ac2: 4a18 ldr r2, [pc, #96] @ (8004b24 ) + 8004ac4: 4293 cmp r3, r2 + 8004ac6: d111 bne.n 8004aec { tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; - 8004628: 687b ldr r3, [r7, #4] - 800462a: 681b ldr r3, [r3, #0] - 800462c: 689b ldr r3, [r3, #8] - 800462e: f003 0307 and.w r3, r3, #7 - 8004632: 60fb str r3, [r7, #12] + 8004ac8: 687b ldr r3, [r7, #4] + 8004aca: 681b ldr r3, [r3, #0] + 8004acc: 689b ldr r3, [r3, #8] + 8004ace: f003 0307 and.w r3, r3, #7 + 8004ad2: 60fb str r3, [r7, #12] if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) - 8004634: 68fb ldr r3, [r7, #12] - 8004636: 2b06 cmp r3, #6 - 8004638: d010 beq.n 800465c + 8004ad4: 68fb ldr r3, [r7, #12] + 8004ad6: 2b06 cmp r3, #6 + 8004ad8: d010 beq.n 8004afc { __HAL_TIM_ENABLE(htim); - 800463a: 687b ldr r3, [r7, #4] - 800463c: 681b ldr r3, [r3, #0] - 800463e: 681a ldr r2, [r3, #0] - 8004640: 687b ldr r3, [r7, #4] - 8004642: 681b ldr r3, [r3, #0] - 8004644: f042 0201 orr.w r2, r2, #1 - 8004648: 601a str r2, [r3, #0] + 8004ada: 687b ldr r3, [r7, #4] + 8004adc: 681b ldr r3, [r3, #0] + 8004ade: 681a ldr r2, [r3, #0] + 8004ae0: 687b ldr r3, [r7, #4] + 8004ae2: 681b ldr r3, [r3, #0] + 8004ae4: f042 0201 orr.w r2, r2, #1 + 8004ae8: 601a str r2, [r3, #0] if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) - 800464a: e007 b.n 800465c + 8004aea: e007 b.n 8004afc } } else { __HAL_TIM_ENABLE(htim); - 800464c: 687b ldr r3, [r7, #4] - 800464e: 681b ldr r3, [r3, #0] - 8004650: 681a ldr r2, [r3, #0] - 8004652: 687b ldr r3, [r7, #4] - 8004654: 681b ldr r3, [r3, #0] - 8004656: f042 0201 orr.w r2, r2, #1 - 800465a: 601a str r2, [r3, #0] + 8004aec: 687b ldr r3, [r7, #4] + 8004aee: 681b ldr r3, [r3, #0] + 8004af0: 681a ldr r2, [r3, #0] + 8004af2: 687b ldr r3, [r7, #4] + 8004af4: 681b ldr r3, [r3, #0] + 8004af6: f042 0201 orr.w r2, r2, #1 + 8004afa: 601a str r2, [r3, #0] } /* Return function status */ return HAL_OK; - 800465c: 2300 movs r3, #0 + 8004afc: 2300 movs r3, #0 } - 800465e: 4618 mov r0, r3 - 8004660: 3714 adds r7, #20 - 8004662: 46bd mov sp, r7 - 8004664: f85d 7b04 ldr.w r7, [sp], #4 - 8004668: 4770 bx lr - 800466a: bf00 nop - 800466c: 40010000 .word 0x40010000 - 8004670: 40000400 .word 0x40000400 - 8004674: 40000800 .word 0x40000800 - 8004678: 40000c00 .word 0x40000c00 - 800467c: 40010400 .word 0x40010400 - 8004680: 40014000 .word 0x40014000 - 8004684: 40001800 .word 0x40001800 + 8004afe: 4618 mov r0, r3 + 8004b00: 3714 adds r7, #20 + 8004b02: 46bd mov sp, r7 + 8004b04: f85d 7b04 ldr.w r7, [sp], #4 + 8004b08: 4770 bx lr + 8004b0a: bf00 nop + 8004b0c: 40010000 .word 0x40010000 + 8004b10: 40000400 .word 0x40000400 + 8004b14: 40000800 .word 0x40000800 + 8004b18: 40000c00 .word 0x40000c00 + 8004b1c: 40010400 .word 0x40010400 + 8004b20: 40014000 .word 0x40014000 + 8004b24: 40001800 .word 0x40001800 -08004688 : +08004b28 : * Ex: call @ref HAL_TIM_PWM_DeInit() before HAL_TIM_PWM_Init() * @param htim TIM PWM handle * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_PWM_Init(TIM_HandleTypeDef *htim) { - 8004688: b580 push {r7, lr} - 800468a: b082 sub sp, #8 - 800468c: af00 add r7, sp, #0 - 800468e: 6078 str r0, [r7, #4] + 8004b28: b580 push {r7, lr} + 8004b2a: b082 sub sp, #8 + 8004b2c: af00 add r7, sp, #0 + 8004b2e: 6078 str r0, [r7, #4] /* Check the TIM handle allocation */ if (htim == NULL) - 8004690: 687b ldr r3, [r7, #4] - 8004692: 2b00 cmp r3, #0 - 8004694: d101 bne.n 800469a + 8004b30: 687b ldr r3, [r7, #4] + 8004b32: 2b00 cmp r3, #0 + 8004b34: d101 bne.n 8004b3a { return HAL_ERROR; - 8004696: 2301 movs r3, #1 - 8004698: e041 b.n 800471e + 8004b36: 2301 movs r3, #1 + 8004b38: e041 b.n 8004bbe 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) - 800469a: 687b ldr r3, [r7, #4] - 800469c: f893 303d ldrb.w r3, [r3, #61] @ 0x3d - 80046a0: b2db uxtb r3, r3 - 80046a2: 2b00 cmp r3, #0 - 80046a4: d106 bne.n 80046b4 + 8004b3a: 687b ldr r3, [r7, #4] + 8004b3c: f893 303d ldrb.w r3, [r3, #61] @ 0x3d + 8004b40: b2db uxtb r3, r3 + 8004b42: 2b00 cmp r3, #0 + 8004b44: d106 bne.n 8004b54 { /* Allocate lock resource and initialize it */ htim->Lock = HAL_UNLOCKED; - 80046a6: 687b ldr r3, [r7, #4] - 80046a8: 2200 movs r2, #0 - 80046aa: f883 203c strb.w r2, [r3, #60] @ 0x3c + 8004b46: 687b ldr r3, [r7, #4] + 8004b48: 2200 movs r2, #0 + 8004b4a: f883 203c strb.w r2, [r3, #60] @ 0x3c } /* Init the low level hardware : GPIO, CLOCK, NVIC */ htim->PWM_MspInitCallback(htim); #else /* Init the low level hardware : GPIO, CLOCK, NVIC and DMA */ HAL_TIM_PWM_MspInit(htim); - 80046ae: 6878 ldr r0, [r7, #4] - 80046b0: f000 f839 bl 8004726 + 8004b4e: 6878 ldr r0, [r7, #4] + 8004b50: f000 f839 bl 8004bc6 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } /* Set the TIM state */ htim->State = HAL_TIM_STATE_BUSY; - 80046b4: 687b ldr r3, [r7, #4] - 80046b6: 2202 movs r2, #2 - 80046b8: f883 203d strb.w r2, [r3, #61] @ 0x3d + 8004b54: 687b ldr r3, [r7, #4] + 8004b56: 2202 movs r2, #2 + 8004b58: f883 203d strb.w r2, [r3, #61] @ 0x3d /* Init the base time for the PWM */ TIM_Base_SetConfig(htim->Instance, &htim->Init); - 80046bc: 687b ldr r3, [r7, #4] - 80046be: 681a ldr r2, [r3, #0] - 80046c0: 687b ldr r3, [r7, #4] - 80046c2: 3304 adds r3, #4 - 80046c4: 4619 mov r1, r3 - 80046c6: 4610 mov r0, r2 - 80046c8: f000 fada bl 8004c80 + 8004b5c: 687b ldr r3, [r7, #4] + 8004b5e: 681a ldr r2, [r3, #0] + 8004b60: 687b ldr r3, [r7, #4] + 8004b62: 3304 adds r3, #4 + 8004b64: 4619 mov r1, r3 + 8004b66: 4610 mov r0, r2 + 8004b68: f000 fada bl 8005120 /* Initialize the DMA burst operation state */ htim->DMABurstState = HAL_DMA_BURST_STATE_READY; - 80046cc: 687b ldr r3, [r7, #4] - 80046ce: 2201 movs r2, #1 - 80046d0: f883 2046 strb.w r2, [r3, #70] @ 0x46 + 8004b6c: 687b ldr r3, [r7, #4] + 8004b6e: 2201 movs r2, #1 + 8004b70: f883 2046 strb.w r2, [r3, #70] @ 0x46 /* Initialize the TIM channels state */ TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); - 80046d4: 687b ldr r3, [r7, #4] - 80046d6: 2201 movs r2, #1 - 80046d8: f883 203e strb.w r2, [r3, #62] @ 0x3e - 80046dc: 687b ldr r3, [r7, #4] - 80046de: 2201 movs r2, #1 - 80046e0: f883 203f strb.w r2, [r3, #63] @ 0x3f - 80046e4: 687b ldr r3, [r7, #4] - 80046e6: 2201 movs r2, #1 - 80046e8: f883 2040 strb.w r2, [r3, #64] @ 0x40 - 80046ec: 687b ldr r3, [r7, #4] - 80046ee: 2201 movs r2, #1 - 80046f0: f883 2041 strb.w r2, [r3, #65] @ 0x41 + 8004b74: 687b ldr r3, [r7, #4] + 8004b76: 2201 movs r2, #1 + 8004b78: f883 203e strb.w r2, [r3, #62] @ 0x3e + 8004b7c: 687b ldr r3, [r7, #4] + 8004b7e: 2201 movs r2, #1 + 8004b80: f883 203f strb.w r2, [r3, #63] @ 0x3f + 8004b84: 687b ldr r3, [r7, #4] + 8004b86: 2201 movs r2, #1 + 8004b88: f883 2040 strb.w r2, [r3, #64] @ 0x40 + 8004b8c: 687b ldr r3, [r7, #4] + 8004b8e: 2201 movs r2, #1 + 8004b90: f883 2041 strb.w r2, [r3, #65] @ 0x41 TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); - 80046f4: 687b ldr r3, [r7, #4] - 80046f6: 2201 movs r2, #1 - 80046f8: f883 2042 strb.w r2, [r3, #66] @ 0x42 - 80046fc: 687b ldr r3, [r7, #4] - 80046fe: 2201 movs r2, #1 - 8004700: f883 2043 strb.w r2, [r3, #67] @ 0x43 - 8004704: 687b ldr r3, [r7, #4] - 8004706: 2201 movs r2, #1 - 8004708: f883 2044 strb.w r2, [r3, #68] @ 0x44 - 800470c: 687b ldr r3, [r7, #4] - 800470e: 2201 movs r2, #1 - 8004710: f883 2045 strb.w r2, [r3, #69] @ 0x45 + 8004b94: 687b ldr r3, [r7, #4] + 8004b96: 2201 movs r2, #1 + 8004b98: f883 2042 strb.w r2, [r3, #66] @ 0x42 + 8004b9c: 687b ldr r3, [r7, #4] + 8004b9e: 2201 movs r2, #1 + 8004ba0: f883 2043 strb.w r2, [r3, #67] @ 0x43 + 8004ba4: 687b ldr r3, [r7, #4] + 8004ba6: 2201 movs r2, #1 + 8004ba8: f883 2044 strb.w r2, [r3, #68] @ 0x44 + 8004bac: 687b ldr r3, [r7, #4] + 8004bae: 2201 movs r2, #1 + 8004bb0: f883 2045 strb.w r2, [r3, #69] @ 0x45 /* Initialize the TIM state*/ htim->State = HAL_TIM_STATE_READY; - 8004714: 687b ldr r3, [r7, #4] - 8004716: 2201 movs r2, #1 - 8004718: f883 203d strb.w r2, [r3, #61] @ 0x3d + 8004bb4: 687b ldr r3, [r7, #4] + 8004bb6: 2201 movs r2, #1 + 8004bb8: f883 203d strb.w r2, [r3, #61] @ 0x3d return HAL_OK; - 800471c: 2300 movs r3, #0 + 8004bbc: 2300 movs r3, #0 } - 800471e: 4618 mov r0, r3 - 8004720: 3708 adds r7, #8 - 8004722: 46bd mov sp, r7 - 8004724: bd80 pop {r7, pc} + 8004bbe: 4618 mov r0, r3 + 8004bc0: 3708 adds r7, #8 + 8004bc2: 46bd mov sp, r7 + 8004bc4: bd80 pop {r7, pc} -08004726 : +08004bc6 : * @brief Initializes the TIM PWM MSP. * @param htim TIM PWM handle * @retval None */ __weak void HAL_TIM_PWM_MspInit(TIM_HandleTypeDef *htim) { - 8004726: b480 push {r7} - 8004728: b083 sub sp, #12 - 800472a: af00 add r7, sp, #0 - 800472c: 6078 str r0, [r7, #4] + 8004bc6: b480 push {r7} + 8004bc8: b083 sub sp, #12 + 8004bca: af00 add r7, sp, #0 + 8004bcc: 6078 str r0, [r7, #4] UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIM_PWM_MspInit could be implemented in the user file */ } - 800472e: bf00 nop - 8004730: 370c adds r7, #12 - 8004732: 46bd mov sp, r7 - 8004734: f85d 7b04 ldr.w r7, [sp], #4 - 8004738: 4770 bx lr + 8004bce: bf00 nop + 8004bd0: 370c adds r7, #12 + 8004bd2: 46bd mov sp, r7 + 8004bd4: f85d 7b04 ldr.w r7, [sp], #4 + 8004bd8: 4770 bx lr -0800473a : +08004bda : * @brief This function handles TIM interrupts requests. * @param htim TIM handle * @retval None */ void HAL_TIM_IRQHandler(TIM_HandleTypeDef *htim) { - 800473a: b580 push {r7, lr} - 800473c: b084 sub sp, #16 - 800473e: af00 add r7, sp, #0 - 8004740: 6078 str r0, [r7, #4] + 8004bda: b580 push {r7, lr} + 8004bdc: b084 sub sp, #16 + 8004bde: af00 add r7, sp, #0 + 8004be0: 6078 str r0, [r7, #4] uint32_t itsource = htim->Instance->DIER; - 8004742: 687b ldr r3, [r7, #4] - 8004744: 681b ldr r3, [r3, #0] - 8004746: 68db ldr r3, [r3, #12] - 8004748: 60fb str r3, [r7, #12] + 8004be2: 687b ldr r3, [r7, #4] + 8004be4: 681b ldr r3, [r3, #0] + 8004be6: 68db ldr r3, [r3, #12] + 8004be8: 60fb str r3, [r7, #12] uint32_t itflag = htim->Instance->SR; - 800474a: 687b ldr r3, [r7, #4] - 800474c: 681b ldr r3, [r3, #0] - 800474e: 691b ldr r3, [r3, #16] - 8004750: 60bb str r3, [r7, #8] + 8004bea: 687b ldr r3, [r7, #4] + 8004bec: 681b ldr r3, [r3, #0] + 8004bee: 691b ldr r3, [r3, #16] + 8004bf0: 60bb str r3, [r7, #8] /* Capture compare 1 event */ if ((itflag & (TIM_FLAG_CC1)) == (TIM_FLAG_CC1)) - 8004752: 68bb ldr r3, [r7, #8] - 8004754: f003 0302 and.w r3, r3, #2 - 8004758: 2b00 cmp r3, #0 - 800475a: d020 beq.n 800479e + 8004bf2: 68bb ldr r3, [r7, #8] + 8004bf4: f003 0302 and.w r3, r3, #2 + 8004bf8: 2b00 cmp r3, #0 + 8004bfa: d020 beq.n 8004c3e { if ((itsource & (TIM_IT_CC1)) == (TIM_IT_CC1)) - 800475c: 68fb ldr r3, [r7, #12] - 800475e: f003 0302 and.w r3, r3, #2 - 8004762: 2b00 cmp r3, #0 - 8004764: d01b beq.n 800479e + 8004bfc: 68fb ldr r3, [r7, #12] + 8004bfe: f003 0302 and.w r3, r3, #2 + 8004c02: 2b00 cmp r3, #0 + 8004c04: d01b beq.n 8004c3e { { __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC1); - 8004766: 687b ldr r3, [r7, #4] - 8004768: 681b ldr r3, [r3, #0] - 800476a: f06f 0202 mvn.w r2, #2 - 800476e: 611a str r2, [r3, #16] + 8004c06: 687b ldr r3, [r7, #4] + 8004c08: 681b ldr r3, [r3, #0] + 8004c0a: f06f 0202 mvn.w r2, #2 + 8004c0e: 611a str r2, [r3, #16] htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1; - 8004770: 687b ldr r3, [r7, #4] - 8004772: 2201 movs r2, #1 - 8004774: 771a strb r2, [r3, #28] + 8004c10: 687b ldr r3, [r7, #4] + 8004c12: 2201 movs r2, #1 + 8004c14: 771a strb r2, [r3, #28] /* Input capture event */ if ((htim->Instance->CCMR1 & TIM_CCMR1_CC1S) != 0x00U) - 8004776: 687b ldr r3, [r7, #4] - 8004778: 681b ldr r3, [r3, #0] - 800477a: 699b ldr r3, [r3, #24] - 800477c: f003 0303 and.w r3, r3, #3 - 8004780: 2b00 cmp r3, #0 - 8004782: d003 beq.n 800478c + 8004c16: 687b ldr r3, [r7, #4] + 8004c18: 681b ldr r3, [r3, #0] + 8004c1a: 699b ldr r3, [r3, #24] + 8004c1c: f003 0303 and.w r3, r3, #3 + 8004c20: 2b00 cmp r3, #0 + 8004c22: d003 beq.n 8004c2c { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->IC_CaptureCallback(htim); #else HAL_TIM_IC_CaptureCallback(htim); - 8004784: 6878 ldr r0, [r7, #4] - 8004786: f000 fa5c bl 8004c42 - 800478a: e005 b.n 8004798 + 8004c24: 6878 ldr r0, [r7, #4] + 8004c26: f000 fa5c bl 80050e2 + 8004c2a: e005 b.n 8004c38 { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->OC_DelayElapsedCallback(htim); htim->PWM_PulseFinishedCallback(htim); #else HAL_TIM_OC_DelayElapsedCallback(htim); - 800478c: 6878 ldr r0, [r7, #4] - 800478e: f000 fa4e bl 8004c2e + 8004c2c: 6878 ldr r0, [r7, #4] + 8004c2e: f000 fa4e bl 80050ce HAL_TIM_PWM_PulseFinishedCallback(htim); - 8004792: 6878 ldr r0, [r7, #4] - 8004794: f000 fa5f bl 8004c56 + 8004c32: 6878 ldr r0, [r7, #4] + 8004c34: f000 fa5f bl 80050f6 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; - 8004798: 687b ldr r3, [r7, #4] - 800479a: 2200 movs r2, #0 - 800479c: 771a strb r2, [r3, #28] + 8004c38: 687b ldr r3, [r7, #4] + 8004c3a: 2200 movs r2, #0 + 8004c3c: 771a strb r2, [r3, #28] } } } /* Capture compare 2 event */ if ((itflag & (TIM_FLAG_CC2)) == (TIM_FLAG_CC2)) - 800479e: 68bb ldr r3, [r7, #8] - 80047a0: f003 0304 and.w r3, r3, #4 - 80047a4: 2b00 cmp r3, #0 - 80047a6: d020 beq.n 80047ea + 8004c3e: 68bb ldr r3, [r7, #8] + 8004c40: f003 0304 and.w r3, r3, #4 + 8004c44: 2b00 cmp r3, #0 + 8004c46: d020 beq.n 8004c8a { if ((itsource & (TIM_IT_CC2)) == (TIM_IT_CC2)) - 80047a8: 68fb ldr r3, [r7, #12] - 80047aa: f003 0304 and.w r3, r3, #4 - 80047ae: 2b00 cmp r3, #0 - 80047b0: d01b beq.n 80047ea + 8004c48: 68fb ldr r3, [r7, #12] + 8004c4a: f003 0304 and.w r3, r3, #4 + 8004c4e: 2b00 cmp r3, #0 + 8004c50: d01b beq.n 8004c8a { __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC2); - 80047b2: 687b ldr r3, [r7, #4] - 80047b4: 681b ldr r3, [r3, #0] - 80047b6: f06f 0204 mvn.w r2, #4 - 80047ba: 611a str r2, [r3, #16] + 8004c52: 687b ldr r3, [r7, #4] + 8004c54: 681b ldr r3, [r3, #0] + 8004c56: f06f 0204 mvn.w r2, #4 + 8004c5a: 611a str r2, [r3, #16] htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2; - 80047bc: 687b ldr r3, [r7, #4] - 80047be: 2202 movs r2, #2 - 80047c0: 771a strb r2, [r3, #28] + 8004c5c: 687b ldr r3, [r7, #4] + 8004c5e: 2202 movs r2, #2 + 8004c60: 771a strb r2, [r3, #28] /* Input capture event */ if ((htim->Instance->CCMR1 & TIM_CCMR1_CC2S) != 0x00U) - 80047c2: 687b ldr r3, [r7, #4] - 80047c4: 681b ldr r3, [r3, #0] - 80047c6: 699b ldr r3, [r3, #24] - 80047c8: f403 7340 and.w r3, r3, #768 @ 0x300 - 80047cc: 2b00 cmp r3, #0 - 80047ce: d003 beq.n 80047d8 + 8004c62: 687b ldr r3, [r7, #4] + 8004c64: 681b ldr r3, [r3, #0] + 8004c66: 699b ldr r3, [r3, #24] + 8004c68: f403 7340 and.w r3, r3, #768 @ 0x300 + 8004c6c: 2b00 cmp r3, #0 + 8004c6e: d003 beq.n 8004c78 { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->IC_CaptureCallback(htim); #else HAL_TIM_IC_CaptureCallback(htim); - 80047d0: 6878 ldr r0, [r7, #4] - 80047d2: f000 fa36 bl 8004c42 - 80047d6: e005 b.n 80047e4 + 8004c70: 6878 ldr r0, [r7, #4] + 8004c72: f000 fa36 bl 80050e2 + 8004c76: e005 b.n 8004c84 { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->OC_DelayElapsedCallback(htim); htim->PWM_PulseFinishedCallback(htim); #else HAL_TIM_OC_DelayElapsedCallback(htim); - 80047d8: 6878 ldr r0, [r7, #4] - 80047da: f000 fa28 bl 8004c2e + 8004c78: 6878 ldr r0, [r7, #4] + 8004c7a: f000 fa28 bl 80050ce HAL_TIM_PWM_PulseFinishedCallback(htim); - 80047de: 6878 ldr r0, [r7, #4] - 80047e0: f000 fa39 bl 8004c56 + 8004c7e: 6878 ldr r0, [r7, #4] + 8004c80: f000 fa39 bl 80050f6 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; - 80047e4: 687b ldr r3, [r7, #4] - 80047e6: 2200 movs r2, #0 - 80047e8: 771a strb r2, [r3, #28] + 8004c84: 687b ldr r3, [r7, #4] + 8004c86: 2200 movs r2, #0 + 8004c88: 771a strb r2, [r3, #28] } } /* Capture compare 3 event */ if ((itflag & (TIM_FLAG_CC3)) == (TIM_FLAG_CC3)) - 80047ea: 68bb ldr r3, [r7, #8] - 80047ec: f003 0308 and.w r3, r3, #8 - 80047f0: 2b00 cmp r3, #0 - 80047f2: d020 beq.n 8004836 + 8004c8a: 68bb ldr r3, [r7, #8] + 8004c8c: f003 0308 and.w r3, r3, #8 + 8004c90: 2b00 cmp r3, #0 + 8004c92: d020 beq.n 8004cd6 { if ((itsource & (TIM_IT_CC3)) == (TIM_IT_CC3)) - 80047f4: 68fb ldr r3, [r7, #12] - 80047f6: f003 0308 and.w r3, r3, #8 - 80047fa: 2b00 cmp r3, #0 - 80047fc: d01b beq.n 8004836 + 8004c94: 68fb ldr r3, [r7, #12] + 8004c96: f003 0308 and.w r3, r3, #8 + 8004c9a: 2b00 cmp r3, #0 + 8004c9c: d01b beq.n 8004cd6 { __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC3); - 80047fe: 687b ldr r3, [r7, #4] - 8004800: 681b ldr r3, [r3, #0] - 8004802: f06f 0208 mvn.w r2, #8 - 8004806: 611a str r2, [r3, #16] + 8004c9e: 687b ldr r3, [r7, #4] + 8004ca0: 681b ldr r3, [r3, #0] + 8004ca2: f06f 0208 mvn.w r2, #8 + 8004ca6: 611a str r2, [r3, #16] htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3; - 8004808: 687b ldr r3, [r7, #4] - 800480a: 2204 movs r2, #4 - 800480c: 771a strb r2, [r3, #28] + 8004ca8: 687b ldr r3, [r7, #4] + 8004caa: 2204 movs r2, #4 + 8004cac: 771a strb r2, [r3, #28] /* Input capture event */ if ((htim->Instance->CCMR2 & TIM_CCMR2_CC3S) != 0x00U) - 800480e: 687b ldr r3, [r7, #4] - 8004810: 681b ldr r3, [r3, #0] - 8004812: 69db ldr r3, [r3, #28] - 8004814: f003 0303 and.w r3, r3, #3 - 8004818: 2b00 cmp r3, #0 - 800481a: d003 beq.n 8004824 + 8004cae: 687b ldr r3, [r7, #4] + 8004cb0: 681b ldr r3, [r3, #0] + 8004cb2: 69db ldr r3, [r3, #28] + 8004cb4: f003 0303 and.w r3, r3, #3 + 8004cb8: 2b00 cmp r3, #0 + 8004cba: d003 beq.n 8004cc4 { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->IC_CaptureCallback(htim); #else HAL_TIM_IC_CaptureCallback(htim); - 800481c: 6878 ldr r0, [r7, #4] - 800481e: f000 fa10 bl 8004c42 - 8004822: e005 b.n 8004830 + 8004cbc: 6878 ldr r0, [r7, #4] + 8004cbe: f000 fa10 bl 80050e2 + 8004cc2: e005 b.n 8004cd0 { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->OC_DelayElapsedCallback(htim); htim->PWM_PulseFinishedCallback(htim); #else HAL_TIM_OC_DelayElapsedCallback(htim); - 8004824: 6878 ldr r0, [r7, #4] - 8004826: f000 fa02 bl 8004c2e + 8004cc4: 6878 ldr r0, [r7, #4] + 8004cc6: f000 fa02 bl 80050ce HAL_TIM_PWM_PulseFinishedCallback(htim); - 800482a: 6878 ldr r0, [r7, #4] - 800482c: f000 fa13 bl 8004c56 + 8004cca: 6878 ldr r0, [r7, #4] + 8004ccc: f000 fa13 bl 80050f6 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; - 8004830: 687b ldr r3, [r7, #4] - 8004832: 2200 movs r2, #0 - 8004834: 771a strb r2, [r3, #28] + 8004cd0: 687b ldr r3, [r7, #4] + 8004cd2: 2200 movs r2, #0 + 8004cd4: 771a strb r2, [r3, #28] } } /* Capture compare 4 event */ if ((itflag & (TIM_FLAG_CC4)) == (TIM_FLAG_CC4)) - 8004836: 68bb ldr r3, [r7, #8] - 8004838: f003 0310 and.w r3, r3, #16 - 800483c: 2b00 cmp r3, #0 - 800483e: d020 beq.n 8004882 + 8004cd6: 68bb ldr r3, [r7, #8] + 8004cd8: f003 0310 and.w r3, r3, #16 + 8004cdc: 2b00 cmp r3, #0 + 8004cde: d020 beq.n 8004d22 { if ((itsource & (TIM_IT_CC4)) == (TIM_IT_CC4)) - 8004840: 68fb ldr r3, [r7, #12] - 8004842: f003 0310 and.w r3, r3, #16 - 8004846: 2b00 cmp r3, #0 - 8004848: d01b beq.n 8004882 + 8004ce0: 68fb ldr r3, [r7, #12] + 8004ce2: f003 0310 and.w r3, r3, #16 + 8004ce6: 2b00 cmp r3, #0 + 8004ce8: d01b beq.n 8004d22 { __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC4); - 800484a: 687b ldr r3, [r7, #4] - 800484c: 681b ldr r3, [r3, #0] - 800484e: f06f 0210 mvn.w r2, #16 - 8004852: 611a str r2, [r3, #16] + 8004cea: 687b ldr r3, [r7, #4] + 8004cec: 681b ldr r3, [r3, #0] + 8004cee: f06f 0210 mvn.w r2, #16 + 8004cf2: 611a str r2, [r3, #16] htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4; - 8004854: 687b ldr r3, [r7, #4] - 8004856: 2208 movs r2, #8 - 8004858: 771a strb r2, [r3, #28] + 8004cf4: 687b ldr r3, [r7, #4] + 8004cf6: 2208 movs r2, #8 + 8004cf8: 771a strb r2, [r3, #28] /* Input capture event */ if ((htim->Instance->CCMR2 & TIM_CCMR2_CC4S) != 0x00U) - 800485a: 687b ldr r3, [r7, #4] - 800485c: 681b ldr r3, [r3, #0] - 800485e: 69db ldr r3, [r3, #28] - 8004860: f403 7340 and.w r3, r3, #768 @ 0x300 - 8004864: 2b00 cmp r3, #0 - 8004866: d003 beq.n 8004870 + 8004cfa: 687b ldr r3, [r7, #4] + 8004cfc: 681b ldr r3, [r3, #0] + 8004cfe: 69db ldr r3, [r3, #28] + 8004d00: f403 7340 and.w r3, r3, #768 @ 0x300 + 8004d04: 2b00 cmp r3, #0 + 8004d06: d003 beq.n 8004d10 { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->IC_CaptureCallback(htim); #else HAL_TIM_IC_CaptureCallback(htim); - 8004868: 6878 ldr r0, [r7, #4] - 800486a: f000 f9ea bl 8004c42 - 800486e: e005 b.n 800487c + 8004d08: 6878 ldr r0, [r7, #4] + 8004d0a: f000 f9ea bl 80050e2 + 8004d0e: e005 b.n 8004d1c { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->OC_DelayElapsedCallback(htim); htim->PWM_PulseFinishedCallback(htim); #else HAL_TIM_OC_DelayElapsedCallback(htim); - 8004870: 6878 ldr r0, [r7, #4] - 8004872: f000 f9dc bl 8004c2e + 8004d10: 6878 ldr r0, [r7, #4] + 8004d12: f000 f9dc bl 80050ce HAL_TIM_PWM_PulseFinishedCallback(htim); - 8004876: 6878 ldr r0, [r7, #4] - 8004878: f000 f9ed bl 8004c56 + 8004d16: 6878 ldr r0, [r7, #4] + 8004d18: f000 f9ed bl 80050f6 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; - 800487c: 687b ldr r3, [r7, #4] - 800487e: 2200 movs r2, #0 - 8004880: 771a strb r2, [r3, #28] + 8004d1c: 687b ldr r3, [r7, #4] + 8004d1e: 2200 movs r2, #0 + 8004d20: 771a strb r2, [r3, #28] } } /* TIM Update event */ if ((itflag & (TIM_FLAG_UPDATE)) == (TIM_FLAG_UPDATE)) - 8004882: 68bb ldr r3, [r7, #8] - 8004884: f003 0301 and.w r3, r3, #1 - 8004888: 2b00 cmp r3, #0 - 800488a: d00c beq.n 80048a6 + 8004d22: 68bb ldr r3, [r7, #8] + 8004d24: f003 0301 and.w r3, r3, #1 + 8004d28: 2b00 cmp r3, #0 + 8004d2a: d00c beq.n 8004d46 { if ((itsource & (TIM_IT_UPDATE)) == (TIM_IT_UPDATE)) - 800488c: 68fb ldr r3, [r7, #12] - 800488e: f003 0301 and.w r3, r3, #1 - 8004892: 2b00 cmp r3, #0 - 8004894: d007 beq.n 80048a6 + 8004d2c: 68fb ldr r3, [r7, #12] + 8004d2e: f003 0301 and.w r3, r3, #1 + 8004d32: 2b00 cmp r3, #0 + 8004d34: d007 beq.n 8004d46 { __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_UPDATE); - 8004896: 687b ldr r3, [r7, #4] - 8004898: 681b ldr r3, [r3, #0] - 800489a: f06f 0201 mvn.w r2, #1 - 800489e: 611a str r2, [r3, #16] + 8004d36: 687b ldr r3, [r7, #4] + 8004d38: 681b ldr r3, [r3, #0] + 8004d3a: f06f 0201 mvn.w r2, #1 + 8004d3e: 611a str r2, [r3, #16] #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->PeriodElapsedCallback(htim); #else HAL_TIM_PeriodElapsedCallback(htim); - 80048a0: 6878 ldr r0, [r7, #4] - 80048a2: f7fc fd55 bl 8001350 + 8004d40: 6878 ldr r0, [r7, #4] + 8004d42: f7fc fb2b bl 800139c #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } } /* TIM Break input event */ if ((itflag & (TIM_FLAG_BREAK)) == (TIM_FLAG_BREAK)) - 80048a6: 68bb ldr r3, [r7, #8] - 80048a8: f003 0380 and.w r3, r3, #128 @ 0x80 - 80048ac: 2b00 cmp r3, #0 - 80048ae: d00c beq.n 80048ca + 8004d46: 68bb ldr r3, [r7, #8] + 8004d48: f003 0380 and.w r3, r3, #128 @ 0x80 + 8004d4c: 2b00 cmp r3, #0 + 8004d4e: d00c beq.n 8004d6a { if ((itsource & (TIM_IT_BREAK)) == (TIM_IT_BREAK)) - 80048b0: 68fb ldr r3, [r7, #12] - 80048b2: f003 0380 and.w r3, r3, #128 @ 0x80 - 80048b6: 2b00 cmp r3, #0 - 80048b8: d007 beq.n 80048ca + 8004d50: 68fb ldr r3, [r7, #12] + 8004d52: f003 0380 and.w r3, r3, #128 @ 0x80 + 8004d56: 2b00 cmp r3, #0 + 8004d58: d007 beq.n 8004d6a { __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_BREAK); - 80048ba: 687b ldr r3, [r7, #4] - 80048bc: 681b ldr r3, [r3, #0] - 80048be: f06f 0280 mvn.w r2, #128 @ 0x80 - 80048c2: 611a str r2, [r3, #16] + 8004d5a: 687b ldr r3, [r7, #4] + 8004d5c: 681b ldr r3, [r3, #0] + 8004d5e: f06f 0280 mvn.w r2, #128 @ 0x80 + 8004d62: 611a str r2, [r3, #16] #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->BreakCallback(htim); #else HAL_TIMEx_BreakCallback(htim); - 80048c4: 6878 ldr r0, [r7, #4] - 80048c6: f000 fda9 bl 800541c + 8004d64: 6878 ldr r0, [r7, #4] + 8004d66: f000 fda9 bl 80058bc #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } } /* TIM Trigger detection event */ if ((itflag & (TIM_FLAG_TRIGGER)) == (TIM_FLAG_TRIGGER)) - 80048ca: 68bb ldr r3, [r7, #8] - 80048cc: f003 0340 and.w r3, r3, #64 @ 0x40 - 80048d0: 2b00 cmp r3, #0 - 80048d2: d00c beq.n 80048ee + 8004d6a: 68bb ldr r3, [r7, #8] + 8004d6c: f003 0340 and.w r3, r3, #64 @ 0x40 + 8004d70: 2b00 cmp r3, #0 + 8004d72: d00c beq.n 8004d8e { if ((itsource & (TIM_IT_TRIGGER)) == (TIM_IT_TRIGGER)) - 80048d4: 68fb ldr r3, [r7, #12] - 80048d6: f003 0340 and.w r3, r3, #64 @ 0x40 - 80048da: 2b00 cmp r3, #0 - 80048dc: d007 beq.n 80048ee + 8004d74: 68fb ldr r3, [r7, #12] + 8004d76: f003 0340 and.w r3, r3, #64 @ 0x40 + 8004d7a: 2b00 cmp r3, #0 + 8004d7c: d007 beq.n 8004d8e { __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_TRIGGER); - 80048de: 687b ldr r3, [r7, #4] - 80048e0: 681b ldr r3, [r3, #0] - 80048e2: f06f 0240 mvn.w r2, #64 @ 0x40 - 80048e6: 611a str r2, [r3, #16] + 8004d7e: 687b ldr r3, [r7, #4] + 8004d80: 681b ldr r3, [r3, #0] + 8004d82: f06f 0240 mvn.w r2, #64 @ 0x40 + 8004d86: 611a str r2, [r3, #16] #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->TriggerCallback(htim); #else HAL_TIM_TriggerCallback(htim); - 80048e8: 6878 ldr r0, [r7, #4] - 80048ea: f000 f9be bl 8004c6a + 8004d88: 6878 ldr r0, [r7, #4] + 8004d8a: f000 f9be bl 800510a #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } } /* TIM commutation event */ if ((itflag & (TIM_FLAG_COM)) == (TIM_FLAG_COM)) - 80048ee: 68bb ldr r3, [r7, #8] - 80048f0: f003 0320 and.w r3, r3, #32 - 80048f4: 2b00 cmp r3, #0 - 80048f6: d00c beq.n 8004912 + 8004d8e: 68bb ldr r3, [r7, #8] + 8004d90: f003 0320 and.w r3, r3, #32 + 8004d94: 2b00 cmp r3, #0 + 8004d96: d00c beq.n 8004db2 { if ((itsource & (TIM_IT_COM)) == (TIM_IT_COM)) - 80048f8: 68fb ldr r3, [r7, #12] - 80048fa: f003 0320 and.w r3, r3, #32 - 80048fe: 2b00 cmp r3, #0 - 8004900: d007 beq.n 8004912 + 8004d98: 68fb ldr r3, [r7, #12] + 8004d9a: f003 0320 and.w r3, r3, #32 + 8004d9e: 2b00 cmp r3, #0 + 8004da0: d007 beq.n 8004db2 { __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_COM); - 8004902: 687b ldr r3, [r7, #4] - 8004904: 681b ldr r3, [r3, #0] - 8004906: f06f 0220 mvn.w r2, #32 - 800490a: 611a str r2, [r3, #16] + 8004da2: 687b ldr r3, [r7, #4] + 8004da4: 681b ldr r3, [r3, #0] + 8004da6: f06f 0220 mvn.w r2, #32 + 8004daa: 611a str r2, [r3, #16] #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->CommutationCallback(htim); #else HAL_TIMEx_CommutCallback(htim); - 800490c: 6878 ldr r0, [r7, #4] - 800490e: f000 fd7b bl 8005408 + 8004dac: 6878 ldr r0, [r7, #4] + 8004dae: f000 fd7b bl 80058a8 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } } } - 8004912: bf00 nop - 8004914: 3710 adds r7, #16 - 8004916: 46bd mov sp, r7 - 8004918: bd80 pop {r7, pc} + 8004db2: bf00 nop + 8004db4: 3710 adds r7, #16 + 8004db6: 46bd mov sp, r7 + 8004db8: bd80 pop {r7, pc} ... -0800491c : +08004dbc : * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_PWM_ConfigChannel(TIM_HandleTypeDef *htim, const TIM_OC_InitTypeDef *sConfig, uint32_t Channel) { - 800491c: b580 push {r7, lr} - 800491e: b086 sub sp, #24 - 8004920: af00 add r7, sp, #0 - 8004922: 60f8 str r0, [r7, #12] - 8004924: 60b9 str r1, [r7, #8] - 8004926: 607a str r2, [r7, #4] + 8004dbc: b580 push {r7, lr} + 8004dbe: b086 sub sp, #24 + 8004dc0: af00 add r7, sp, #0 + 8004dc2: 60f8 str r0, [r7, #12] + 8004dc4: 60b9 str r1, [r7, #8] + 8004dc6: 607a str r2, [r7, #4] HAL_StatusTypeDef status = HAL_OK; - 8004928: 2300 movs r3, #0 - 800492a: 75fb strb r3, [r7, #23] + 8004dc8: 2300 movs r3, #0 + 8004dca: 75fb strb r3, [r7, #23] assert_param(IS_TIM_PWM_MODE(sConfig->OCMode)); assert_param(IS_TIM_OC_POLARITY(sConfig->OCPolarity)); assert_param(IS_TIM_FAST_STATE(sConfig->OCFastMode)); /* Process Locked */ __HAL_LOCK(htim); - 800492c: 68fb ldr r3, [r7, #12] - 800492e: f893 303c ldrb.w r3, [r3, #60] @ 0x3c - 8004932: 2b01 cmp r3, #1 - 8004934: d101 bne.n 800493a - 8004936: 2302 movs r3, #2 - 8004938: e0ae b.n 8004a98 - 800493a: 68fb ldr r3, [r7, #12] - 800493c: 2201 movs r2, #1 - 800493e: f883 203c strb.w r2, [r3, #60] @ 0x3c + 8004dcc: 68fb ldr r3, [r7, #12] + 8004dce: f893 303c ldrb.w r3, [r3, #60] @ 0x3c + 8004dd2: 2b01 cmp r3, #1 + 8004dd4: d101 bne.n 8004dda + 8004dd6: 2302 movs r3, #2 + 8004dd8: e0ae b.n 8004f38 + 8004dda: 68fb ldr r3, [r7, #12] + 8004ddc: 2201 movs r2, #1 + 8004dde: f883 203c strb.w r2, [r3, #60] @ 0x3c switch (Channel) - 8004942: 687b ldr r3, [r7, #4] - 8004944: 2b0c cmp r3, #12 - 8004946: f200 809f bhi.w 8004a88 - 800494a: a201 add r2, pc, #4 @ (adr r2, 8004950 ) - 800494c: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 8004950: 08004985 .word 0x08004985 - 8004954: 08004a89 .word 0x08004a89 - 8004958: 08004a89 .word 0x08004a89 - 800495c: 08004a89 .word 0x08004a89 - 8004960: 080049c5 .word 0x080049c5 - 8004964: 08004a89 .word 0x08004a89 - 8004968: 08004a89 .word 0x08004a89 - 800496c: 08004a89 .word 0x08004a89 - 8004970: 08004a07 .word 0x08004a07 - 8004974: 08004a89 .word 0x08004a89 - 8004978: 08004a89 .word 0x08004a89 - 800497c: 08004a89 .word 0x08004a89 - 8004980: 08004a47 .word 0x08004a47 + 8004de2: 687b ldr r3, [r7, #4] + 8004de4: 2b0c cmp r3, #12 + 8004de6: f200 809f bhi.w 8004f28 + 8004dea: a201 add r2, pc, #4 @ (adr r2, 8004df0 ) + 8004dec: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 8004df0: 08004e25 .word 0x08004e25 + 8004df4: 08004f29 .word 0x08004f29 + 8004df8: 08004f29 .word 0x08004f29 + 8004dfc: 08004f29 .word 0x08004f29 + 8004e00: 08004e65 .word 0x08004e65 + 8004e04: 08004f29 .word 0x08004f29 + 8004e08: 08004f29 .word 0x08004f29 + 8004e0c: 08004f29 .word 0x08004f29 + 8004e10: 08004ea7 .word 0x08004ea7 + 8004e14: 08004f29 .word 0x08004f29 + 8004e18: 08004f29 .word 0x08004f29 + 8004e1c: 08004f29 .word 0x08004f29 + 8004e20: 08004ee7 .word 0x08004ee7 { /* Check the parameters */ assert_param(IS_TIM_CC1_INSTANCE(htim->Instance)); /* Configure the Channel 1 in PWM mode */ TIM_OC1_SetConfig(htim->Instance, sConfig); - 8004984: 68fb ldr r3, [r7, #12] - 8004986: 681b ldr r3, [r3, #0] - 8004988: 68b9 ldr r1, [r7, #8] - 800498a: 4618 mov r0, r3 - 800498c: f000 fa24 bl 8004dd8 + 8004e24: 68fb ldr r3, [r7, #12] + 8004e26: 681b ldr r3, [r3, #0] + 8004e28: 68b9 ldr r1, [r7, #8] + 8004e2a: 4618 mov r0, r3 + 8004e2c: f000 fa24 bl 8005278 /* Set the Preload enable bit for channel1 */ htim->Instance->CCMR1 |= TIM_CCMR1_OC1PE; - 8004990: 68fb ldr r3, [r7, #12] - 8004992: 681b ldr r3, [r3, #0] - 8004994: 699a ldr r2, [r3, #24] - 8004996: 68fb ldr r3, [r7, #12] - 8004998: 681b ldr r3, [r3, #0] - 800499a: f042 0208 orr.w r2, r2, #8 - 800499e: 619a str r2, [r3, #24] + 8004e30: 68fb ldr r3, [r7, #12] + 8004e32: 681b ldr r3, [r3, #0] + 8004e34: 699a ldr r2, [r3, #24] + 8004e36: 68fb ldr r3, [r7, #12] + 8004e38: 681b ldr r3, [r3, #0] + 8004e3a: f042 0208 orr.w r2, r2, #8 + 8004e3e: 619a str r2, [r3, #24] /* Configure the Output Fast mode */ htim->Instance->CCMR1 &= ~TIM_CCMR1_OC1FE; - 80049a0: 68fb ldr r3, [r7, #12] - 80049a2: 681b ldr r3, [r3, #0] - 80049a4: 699a ldr r2, [r3, #24] - 80049a6: 68fb ldr r3, [r7, #12] - 80049a8: 681b ldr r3, [r3, #0] - 80049aa: f022 0204 bic.w r2, r2, #4 - 80049ae: 619a str r2, [r3, #24] + 8004e40: 68fb ldr r3, [r7, #12] + 8004e42: 681b ldr r3, [r3, #0] + 8004e44: 699a ldr r2, [r3, #24] + 8004e46: 68fb ldr r3, [r7, #12] + 8004e48: 681b ldr r3, [r3, #0] + 8004e4a: f022 0204 bic.w r2, r2, #4 + 8004e4e: 619a str r2, [r3, #24] htim->Instance->CCMR1 |= sConfig->OCFastMode; - 80049b0: 68fb ldr r3, [r7, #12] - 80049b2: 681b ldr r3, [r3, #0] - 80049b4: 6999 ldr r1, [r3, #24] - 80049b6: 68bb ldr r3, [r7, #8] - 80049b8: 691a ldr r2, [r3, #16] - 80049ba: 68fb ldr r3, [r7, #12] - 80049bc: 681b ldr r3, [r3, #0] - 80049be: 430a orrs r2, r1 - 80049c0: 619a str r2, [r3, #24] + 8004e50: 68fb ldr r3, [r7, #12] + 8004e52: 681b ldr r3, [r3, #0] + 8004e54: 6999 ldr r1, [r3, #24] + 8004e56: 68bb ldr r3, [r7, #8] + 8004e58: 691a ldr r2, [r3, #16] + 8004e5a: 68fb ldr r3, [r7, #12] + 8004e5c: 681b ldr r3, [r3, #0] + 8004e5e: 430a orrs r2, r1 + 8004e60: 619a str r2, [r3, #24] break; - 80049c2: e064 b.n 8004a8e + 8004e62: e064 b.n 8004f2e { /* Check the parameters */ assert_param(IS_TIM_CC2_INSTANCE(htim->Instance)); /* Configure the Channel 2 in PWM mode */ TIM_OC2_SetConfig(htim->Instance, sConfig); - 80049c4: 68fb ldr r3, [r7, #12] - 80049c6: 681b ldr r3, [r3, #0] - 80049c8: 68b9 ldr r1, [r7, #8] - 80049ca: 4618 mov r0, r3 - 80049cc: f000 fa74 bl 8004eb8 + 8004e64: 68fb ldr r3, [r7, #12] + 8004e66: 681b ldr r3, [r3, #0] + 8004e68: 68b9 ldr r1, [r7, #8] + 8004e6a: 4618 mov r0, r3 + 8004e6c: f000 fa74 bl 8005358 /* Set the Preload enable bit for channel2 */ htim->Instance->CCMR1 |= TIM_CCMR1_OC2PE; - 80049d0: 68fb ldr r3, [r7, #12] - 80049d2: 681b ldr r3, [r3, #0] - 80049d4: 699a ldr r2, [r3, #24] - 80049d6: 68fb ldr r3, [r7, #12] - 80049d8: 681b ldr r3, [r3, #0] - 80049da: f442 6200 orr.w r2, r2, #2048 @ 0x800 - 80049de: 619a str r2, [r3, #24] + 8004e70: 68fb ldr r3, [r7, #12] + 8004e72: 681b ldr r3, [r3, #0] + 8004e74: 699a ldr r2, [r3, #24] + 8004e76: 68fb ldr r3, [r7, #12] + 8004e78: 681b ldr r3, [r3, #0] + 8004e7a: f442 6200 orr.w r2, r2, #2048 @ 0x800 + 8004e7e: 619a str r2, [r3, #24] /* Configure the Output Fast mode */ htim->Instance->CCMR1 &= ~TIM_CCMR1_OC2FE; - 80049e0: 68fb ldr r3, [r7, #12] - 80049e2: 681b ldr r3, [r3, #0] - 80049e4: 699a ldr r2, [r3, #24] - 80049e6: 68fb ldr r3, [r7, #12] - 80049e8: 681b ldr r3, [r3, #0] - 80049ea: f422 6280 bic.w r2, r2, #1024 @ 0x400 - 80049ee: 619a str r2, [r3, #24] + 8004e80: 68fb ldr r3, [r7, #12] + 8004e82: 681b ldr r3, [r3, #0] + 8004e84: 699a ldr r2, [r3, #24] + 8004e86: 68fb ldr r3, [r7, #12] + 8004e88: 681b ldr r3, [r3, #0] + 8004e8a: f422 6280 bic.w r2, r2, #1024 @ 0x400 + 8004e8e: 619a str r2, [r3, #24] htim->Instance->CCMR1 |= sConfig->OCFastMode << 8U; - 80049f0: 68fb ldr r3, [r7, #12] - 80049f2: 681b ldr r3, [r3, #0] - 80049f4: 6999 ldr r1, [r3, #24] - 80049f6: 68bb ldr r3, [r7, #8] - 80049f8: 691b ldr r3, [r3, #16] - 80049fa: 021a lsls r2, r3, #8 - 80049fc: 68fb ldr r3, [r7, #12] - 80049fe: 681b ldr r3, [r3, #0] - 8004a00: 430a orrs r2, r1 - 8004a02: 619a str r2, [r3, #24] + 8004e90: 68fb ldr r3, [r7, #12] + 8004e92: 681b ldr r3, [r3, #0] + 8004e94: 6999 ldr r1, [r3, #24] + 8004e96: 68bb ldr r3, [r7, #8] + 8004e98: 691b ldr r3, [r3, #16] + 8004e9a: 021a lsls r2, r3, #8 + 8004e9c: 68fb ldr r3, [r7, #12] + 8004e9e: 681b ldr r3, [r3, #0] + 8004ea0: 430a orrs r2, r1 + 8004ea2: 619a str r2, [r3, #24] break; - 8004a04: e043 b.n 8004a8e + 8004ea4: e043 b.n 8004f2e { /* Check the parameters */ assert_param(IS_TIM_CC3_INSTANCE(htim->Instance)); /* Configure the Channel 3 in PWM mode */ TIM_OC3_SetConfig(htim->Instance, sConfig); - 8004a06: 68fb ldr r3, [r7, #12] - 8004a08: 681b ldr r3, [r3, #0] - 8004a0a: 68b9 ldr r1, [r7, #8] - 8004a0c: 4618 mov r0, r3 - 8004a0e: f000 fac9 bl 8004fa4 + 8004ea6: 68fb ldr r3, [r7, #12] + 8004ea8: 681b ldr r3, [r3, #0] + 8004eaa: 68b9 ldr r1, [r7, #8] + 8004eac: 4618 mov r0, r3 + 8004eae: f000 fac9 bl 8005444 /* Set the Preload enable bit for channel3 */ htim->Instance->CCMR2 |= TIM_CCMR2_OC3PE; - 8004a12: 68fb ldr r3, [r7, #12] - 8004a14: 681b ldr r3, [r3, #0] - 8004a16: 69da ldr r2, [r3, #28] - 8004a18: 68fb ldr r3, [r7, #12] - 8004a1a: 681b ldr r3, [r3, #0] - 8004a1c: f042 0208 orr.w r2, r2, #8 - 8004a20: 61da str r2, [r3, #28] + 8004eb2: 68fb ldr r3, [r7, #12] + 8004eb4: 681b ldr r3, [r3, #0] + 8004eb6: 69da ldr r2, [r3, #28] + 8004eb8: 68fb ldr r3, [r7, #12] + 8004eba: 681b ldr r3, [r3, #0] + 8004ebc: f042 0208 orr.w r2, r2, #8 + 8004ec0: 61da str r2, [r3, #28] /* Configure the Output Fast mode */ htim->Instance->CCMR2 &= ~TIM_CCMR2_OC3FE; - 8004a22: 68fb ldr r3, [r7, #12] - 8004a24: 681b ldr r3, [r3, #0] - 8004a26: 69da ldr r2, [r3, #28] - 8004a28: 68fb ldr r3, [r7, #12] - 8004a2a: 681b ldr r3, [r3, #0] - 8004a2c: f022 0204 bic.w r2, r2, #4 - 8004a30: 61da str r2, [r3, #28] + 8004ec2: 68fb ldr r3, [r7, #12] + 8004ec4: 681b ldr r3, [r3, #0] + 8004ec6: 69da ldr r2, [r3, #28] + 8004ec8: 68fb ldr r3, [r7, #12] + 8004eca: 681b ldr r3, [r3, #0] + 8004ecc: f022 0204 bic.w r2, r2, #4 + 8004ed0: 61da str r2, [r3, #28] htim->Instance->CCMR2 |= sConfig->OCFastMode; - 8004a32: 68fb ldr r3, [r7, #12] - 8004a34: 681b ldr r3, [r3, #0] - 8004a36: 69d9 ldr r1, [r3, #28] - 8004a38: 68bb ldr r3, [r7, #8] - 8004a3a: 691a ldr r2, [r3, #16] - 8004a3c: 68fb ldr r3, [r7, #12] - 8004a3e: 681b ldr r3, [r3, #0] - 8004a40: 430a orrs r2, r1 - 8004a42: 61da str r2, [r3, #28] + 8004ed2: 68fb ldr r3, [r7, #12] + 8004ed4: 681b ldr r3, [r3, #0] + 8004ed6: 69d9 ldr r1, [r3, #28] + 8004ed8: 68bb ldr r3, [r7, #8] + 8004eda: 691a ldr r2, [r3, #16] + 8004edc: 68fb ldr r3, [r7, #12] + 8004ede: 681b ldr r3, [r3, #0] + 8004ee0: 430a orrs r2, r1 + 8004ee2: 61da str r2, [r3, #28] break; - 8004a44: e023 b.n 8004a8e + 8004ee4: e023 b.n 8004f2e { /* Check the parameters */ assert_param(IS_TIM_CC4_INSTANCE(htim->Instance)); /* Configure the Channel 4 in PWM mode */ TIM_OC4_SetConfig(htim->Instance, sConfig); - 8004a46: 68fb ldr r3, [r7, #12] - 8004a48: 681b ldr r3, [r3, #0] - 8004a4a: 68b9 ldr r1, [r7, #8] - 8004a4c: 4618 mov r0, r3 - 8004a4e: f000 fb1d bl 800508c + 8004ee6: 68fb ldr r3, [r7, #12] + 8004ee8: 681b ldr r3, [r3, #0] + 8004eea: 68b9 ldr r1, [r7, #8] + 8004eec: 4618 mov r0, r3 + 8004eee: f000 fb1d bl 800552c /* Set the Preload enable bit for channel4 */ htim->Instance->CCMR2 |= TIM_CCMR2_OC4PE; - 8004a52: 68fb ldr r3, [r7, #12] - 8004a54: 681b ldr r3, [r3, #0] - 8004a56: 69da ldr r2, [r3, #28] - 8004a58: 68fb ldr r3, [r7, #12] - 8004a5a: 681b ldr r3, [r3, #0] - 8004a5c: f442 6200 orr.w r2, r2, #2048 @ 0x800 - 8004a60: 61da str r2, [r3, #28] + 8004ef2: 68fb ldr r3, [r7, #12] + 8004ef4: 681b ldr r3, [r3, #0] + 8004ef6: 69da ldr r2, [r3, #28] + 8004ef8: 68fb ldr r3, [r7, #12] + 8004efa: 681b ldr r3, [r3, #0] + 8004efc: f442 6200 orr.w r2, r2, #2048 @ 0x800 + 8004f00: 61da str r2, [r3, #28] /* Configure the Output Fast mode */ htim->Instance->CCMR2 &= ~TIM_CCMR2_OC4FE; - 8004a62: 68fb ldr r3, [r7, #12] - 8004a64: 681b ldr r3, [r3, #0] - 8004a66: 69da ldr r2, [r3, #28] - 8004a68: 68fb ldr r3, [r7, #12] - 8004a6a: 681b ldr r3, [r3, #0] - 8004a6c: f422 6280 bic.w r2, r2, #1024 @ 0x400 - 8004a70: 61da str r2, [r3, #28] + 8004f02: 68fb ldr r3, [r7, #12] + 8004f04: 681b ldr r3, [r3, #0] + 8004f06: 69da ldr r2, [r3, #28] + 8004f08: 68fb ldr r3, [r7, #12] + 8004f0a: 681b ldr r3, [r3, #0] + 8004f0c: f422 6280 bic.w r2, r2, #1024 @ 0x400 + 8004f10: 61da str r2, [r3, #28] htim->Instance->CCMR2 |= sConfig->OCFastMode << 8U; - 8004a72: 68fb ldr r3, [r7, #12] - 8004a74: 681b ldr r3, [r3, #0] - 8004a76: 69d9 ldr r1, [r3, #28] - 8004a78: 68bb ldr r3, [r7, #8] - 8004a7a: 691b ldr r3, [r3, #16] - 8004a7c: 021a lsls r2, r3, #8 - 8004a7e: 68fb ldr r3, [r7, #12] - 8004a80: 681b ldr r3, [r3, #0] - 8004a82: 430a orrs r2, r1 - 8004a84: 61da str r2, [r3, #28] + 8004f12: 68fb ldr r3, [r7, #12] + 8004f14: 681b ldr r3, [r3, #0] + 8004f16: 69d9 ldr r1, [r3, #28] + 8004f18: 68bb ldr r3, [r7, #8] + 8004f1a: 691b ldr r3, [r3, #16] + 8004f1c: 021a lsls r2, r3, #8 + 8004f1e: 68fb ldr r3, [r7, #12] + 8004f20: 681b ldr r3, [r3, #0] + 8004f22: 430a orrs r2, r1 + 8004f24: 61da str r2, [r3, #28] break; - 8004a86: e002 b.n 8004a8e + 8004f26: e002 b.n 8004f2e } default: status = HAL_ERROR; - 8004a88: 2301 movs r3, #1 - 8004a8a: 75fb strb r3, [r7, #23] + 8004f28: 2301 movs r3, #1 + 8004f2a: 75fb strb r3, [r7, #23] break; - 8004a8c: bf00 nop + 8004f2c: bf00 nop } __HAL_UNLOCK(htim); - 8004a8e: 68fb ldr r3, [r7, #12] - 8004a90: 2200 movs r2, #0 - 8004a92: f883 203c strb.w r2, [r3, #60] @ 0x3c + 8004f2e: 68fb ldr r3, [r7, #12] + 8004f30: 2200 movs r2, #0 + 8004f32: f883 203c strb.w r2, [r3, #60] @ 0x3c return status; - 8004a96: 7dfb ldrb r3, [r7, #23] + 8004f36: 7dfb ldrb r3, [r7, #23] } - 8004a98: 4618 mov r0, r3 - 8004a9a: 3718 adds r7, #24 - 8004a9c: 46bd mov sp, r7 - 8004a9e: bd80 pop {r7, pc} + 8004f38: 4618 mov r0, r3 + 8004f3a: 3718 adds r7, #24 + 8004f3c: 46bd mov sp, r7 + 8004f3e: bd80 pop {r7, pc} -08004aa0 : +08004f40 : * @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) { - 8004aa0: b580 push {r7, lr} - 8004aa2: b084 sub sp, #16 - 8004aa4: af00 add r7, sp, #0 - 8004aa6: 6078 str r0, [r7, #4] - 8004aa8: 6039 str r1, [r7, #0] + 8004f40: b580 push {r7, lr} + 8004f42: b084 sub sp, #16 + 8004f44: af00 add r7, sp, #0 + 8004f46: 6078 str r0, [r7, #4] + 8004f48: 6039 str r1, [r7, #0] HAL_StatusTypeDef status = HAL_OK; - 8004aaa: 2300 movs r3, #0 - 8004aac: 73fb strb r3, [r7, #15] + 8004f4a: 2300 movs r3, #0 + 8004f4c: 73fb strb r3, [r7, #15] uint32_t tmpsmcr; /* Process Locked */ __HAL_LOCK(htim); - 8004aae: 687b ldr r3, [r7, #4] - 8004ab0: f893 303c ldrb.w r3, [r3, #60] @ 0x3c - 8004ab4: 2b01 cmp r3, #1 - 8004ab6: d101 bne.n 8004abc - 8004ab8: 2302 movs r3, #2 - 8004aba: e0b4 b.n 8004c26 - 8004abc: 687b ldr r3, [r7, #4] - 8004abe: 2201 movs r2, #1 - 8004ac0: f883 203c strb.w r2, [r3, #60] @ 0x3c + 8004f4e: 687b ldr r3, [r7, #4] + 8004f50: f893 303c ldrb.w r3, [r3, #60] @ 0x3c + 8004f54: 2b01 cmp r3, #1 + 8004f56: d101 bne.n 8004f5c + 8004f58: 2302 movs r3, #2 + 8004f5a: e0b4 b.n 80050c6 + 8004f5c: 687b ldr r3, [r7, #4] + 8004f5e: 2201 movs r2, #1 + 8004f60: f883 203c strb.w r2, [r3, #60] @ 0x3c htim->State = HAL_TIM_STATE_BUSY; - 8004ac4: 687b ldr r3, [r7, #4] - 8004ac6: 2202 movs r2, #2 - 8004ac8: f883 203d strb.w r2, [r3, #61] @ 0x3d + 8004f64: 687b ldr r3, [r7, #4] + 8004f66: 2202 movs r2, #2 + 8004f68: 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; - 8004acc: 687b ldr r3, [r7, #4] - 8004ace: 681b ldr r3, [r3, #0] - 8004ad0: 689b ldr r3, [r3, #8] - 8004ad2: 60bb str r3, [r7, #8] + 8004f6c: 687b ldr r3, [r7, #4] + 8004f6e: 681b ldr r3, [r3, #0] + 8004f70: 689b ldr r3, [r3, #8] + 8004f72: 60bb str r3, [r7, #8] tmpsmcr &= ~(TIM_SMCR_SMS | TIM_SMCR_TS); - 8004ad4: 68bb ldr r3, [r7, #8] - 8004ad6: f023 0377 bic.w r3, r3, #119 @ 0x77 - 8004ada: 60bb str r3, [r7, #8] + 8004f74: 68bb ldr r3, [r7, #8] + 8004f76: f023 0377 bic.w r3, r3, #119 @ 0x77 + 8004f7a: 60bb str r3, [r7, #8] tmpsmcr &= ~(TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP); - 8004adc: 68bb ldr r3, [r7, #8] - 8004ade: f423 437f bic.w r3, r3, #65280 @ 0xff00 - 8004ae2: 60bb str r3, [r7, #8] + 8004f7c: 68bb ldr r3, [r7, #8] + 8004f7e: f423 437f bic.w r3, r3, #65280 @ 0xff00 + 8004f82: 60bb str r3, [r7, #8] htim->Instance->SMCR = tmpsmcr; - 8004ae4: 687b ldr r3, [r7, #4] - 8004ae6: 681b ldr r3, [r3, #0] - 8004ae8: 68ba ldr r2, [r7, #8] - 8004aea: 609a str r2, [r3, #8] + 8004f84: 687b ldr r3, [r7, #4] + 8004f86: 681b ldr r3, [r3, #0] + 8004f88: 68ba ldr r2, [r7, #8] + 8004f8a: 609a str r2, [r3, #8] switch (sClockSourceConfig->ClockSource) - 8004aec: 683b ldr r3, [r7, #0] - 8004aee: 681b ldr r3, [r3, #0] - 8004af0: f5b3 5f00 cmp.w r3, #8192 @ 0x2000 - 8004af4: d03e beq.n 8004b74 - 8004af6: f5b3 5f00 cmp.w r3, #8192 @ 0x2000 - 8004afa: f200 8087 bhi.w 8004c0c - 8004afe: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 - 8004b02: f000 8086 beq.w 8004c12 - 8004b06: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 - 8004b0a: d87f bhi.n 8004c0c - 8004b0c: 2b70 cmp r3, #112 @ 0x70 - 8004b0e: d01a beq.n 8004b46 - 8004b10: 2b70 cmp r3, #112 @ 0x70 - 8004b12: d87b bhi.n 8004c0c - 8004b14: 2b60 cmp r3, #96 @ 0x60 - 8004b16: d050 beq.n 8004bba - 8004b18: 2b60 cmp r3, #96 @ 0x60 - 8004b1a: d877 bhi.n 8004c0c - 8004b1c: 2b50 cmp r3, #80 @ 0x50 - 8004b1e: d03c beq.n 8004b9a - 8004b20: 2b50 cmp r3, #80 @ 0x50 - 8004b22: d873 bhi.n 8004c0c - 8004b24: 2b40 cmp r3, #64 @ 0x40 - 8004b26: d058 beq.n 8004bda - 8004b28: 2b40 cmp r3, #64 @ 0x40 - 8004b2a: d86f bhi.n 8004c0c - 8004b2c: 2b30 cmp r3, #48 @ 0x30 - 8004b2e: d064 beq.n 8004bfa - 8004b30: 2b30 cmp r3, #48 @ 0x30 - 8004b32: d86b bhi.n 8004c0c - 8004b34: 2b20 cmp r3, #32 - 8004b36: d060 beq.n 8004bfa - 8004b38: 2b20 cmp r3, #32 - 8004b3a: d867 bhi.n 8004c0c - 8004b3c: 2b00 cmp r3, #0 - 8004b3e: d05c beq.n 8004bfa - 8004b40: 2b10 cmp r3, #16 - 8004b42: d05a beq.n 8004bfa - 8004b44: e062 b.n 8004c0c + 8004f8c: 683b ldr r3, [r7, #0] + 8004f8e: 681b ldr r3, [r3, #0] + 8004f90: f5b3 5f00 cmp.w r3, #8192 @ 0x2000 + 8004f94: d03e beq.n 8005014 + 8004f96: f5b3 5f00 cmp.w r3, #8192 @ 0x2000 + 8004f9a: f200 8087 bhi.w 80050ac + 8004f9e: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 + 8004fa2: f000 8086 beq.w 80050b2 + 8004fa6: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 + 8004faa: d87f bhi.n 80050ac + 8004fac: 2b70 cmp r3, #112 @ 0x70 + 8004fae: d01a beq.n 8004fe6 + 8004fb0: 2b70 cmp r3, #112 @ 0x70 + 8004fb2: d87b bhi.n 80050ac + 8004fb4: 2b60 cmp r3, #96 @ 0x60 + 8004fb6: d050 beq.n 800505a + 8004fb8: 2b60 cmp r3, #96 @ 0x60 + 8004fba: d877 bhi.n 80050ac + 8004fbc: 2b50 cmp r3, #80 @ 0x50 + 8004fbe: d03c beq.n 800503a + 8004fc0: 2b50 cmp r3, #80 @ 0x50 + 8004fc2: d873 bhi.n 80050ac + 8004fc4: 2b40 cmp r3, #64 @ 0x40 + 8004fc6: d058 beq.n 800507a + 8004fc8: 2b40 cmp r3, #64 @ 0x40 + 8004fca: d86f bhi.n 80050ac + 8004fcc: 2b30 cmp r3, #48 @ 0x30 + 8004fce: d064 beq.n 800509a + 8004fd0: 2b30 cmp r3, #48 @ 0x30 + 8004fd2: d86b bhi.n 80050ac + 8004fd4: 2b20 cmp r3, #32 + 8004fd6: d060 beq.n 800509a + 8004fd8: 2b20 cmp r3, #32 + 8004fda: d867 bhi.n 80050ac + 8004fdc: 2b00 cmp r3, #0 + 8004fde: d05c beq.n 800509a + 8004fe0: 2b10 cmp r3, #16 + 8004fe2: d05a beq.n 800509a + 8004fe4: e062 b.n 80050ac 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, - 8004b46: 687b ldr r3, [r7, #4] - 8004b48: 6818 ldr r0, [r3, #0] + 8004fe6: 687b ldr r3, [r7, #4] + 8004fe8: 6818 ldr r0, [r3, #0] sClockSourceConfig->ClockPrescaler, - 8004b4a: 683b ldr r3, [r7, #0] - 8004b4c: 6899 ldr r1, [r3, #8] + 8004fea: 683b ldr r3, [r7, #0] + 8004fec: 6899 ldr r1, [r3, #8] sClockSourceConfig->ClockPolarity, - 8004b4e: 683b ldr r3, [r7, #0] - 8004b50: 685a ldr r2, [r3, #4] + 8004fee: 683b ldr r3, [r7, #0] + 8004ff0: 685a ldr r2, [r3, #4] sClockSourceConfig->ClockFilter); - 8004b52: 683b ldr r3, [r7, #0] - 8004b54: 68db ldr r3, [r3, #12] + 8004ff2: 683b ldr r3, [r7, #0] + 8004ff4: 68db ldr r3, [r3, #12] TIM_ETR_SetConfig(htim->Instance, - 8004b56: f000 fb69 bl 800522c + 8004ff6: f000 fb69 bl 80056cc /* Select the External clock mode1 and the ETRF trigger */ tmpsmcr = htim->Instance->SMCR; - 8004b5a: 687b ldr r3, [r7, #4] - 8004b5c: 681b ldr r3, [r3, #0] - 8004b5e: 689b ldr r3, [r3, #8] - 8004b60: 60bb str r3, [r7, #8] + 8004ffa: 687b ldr r3, [r7, #4] + 8004ffc: 681b ldr r3, [r3, #0] + 8004ffe: 689b ldr r3, [r3, #8] + 8005000: 60bb str r3, [r7, #8] tmpsmcr |= (TIM_SLAVEMODE_EXTERNAL1 | TIM_CLOCKSOURCE_ETRMODE1); - 8004b62: 68bb ldr r3, [r7, #8] - 8004b64: f043 0377 orr.w r3, r3, #119 @ 0x77 - 8004b68: 60bb str r3, [r7, #8] + 8005002: 68bb ldr r3, [r7, #8] + 8005004: f043 0377 orr.w r3, r3, #119 @ 0x77 + 8005008: 60bb str r3, [r7, #8] /* Write to TIMx SMCR */ htim->Instance->SMCR = tmpsmcr; - 8004b6a: 687b ldr r3, [r7, #4] - 8004b6c: 681b ldr r3, [r3, #0] - 8004b6e: 68ba ldr r2, [r7, #8] - 8004b70: 609a str r2, [r3, #8] + 800500a: 687b ldr r3, [r7, #4] + 800500c: 681b ldr r3, [r3, #0] + 800500e: 68ba ldr r2, [r7, #8] + 8005010: 609a str r2, [r3, #8] break; - 8004b72: e04f b.n 8004c14 + 8005012: e04f b.n 80050b4 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, - 8004b74: 687b ldr r3, [r7, #4] - 8004b76: 6818 ldr r0, [r3, #0] + 8005014: 687b ldr r3, [r7, #4] + 8005016: 6818 ldr r0, [r3, #0] sClockSourceConfig->ClockPrescaler, - 8004b78: 683b ldr r3, [r7, #0] - 8004b7a: 6899 ldr r1, [r3, #8] + 8005018: 683b ldr r3, [r7, #0] + 800501a: 6899 ldr r1, [r3, #8] sClockSourceConfig->ClockPolarity, - 8004b7c: 683b ldr r3, [r7, #0] - 8004b7e: 685a ldr r2, [r3, #4] + 800501c: 683b ldr r3, [r7, #0] + 800501e: 685a ldr r2, [r3, #4] sClockSourceConfig->ClockFilter); - 8004b80: 683b ldr r3, [r7, #0] - 8004b82: 68db ldr r3, [r3, #12] + 8005020: 683b ldr r3, [r7, #0] + 8005022: 68db ldr r3, [r3, #12] TIM_ETR_SetConfig(htim->Instance, - 8004b84: f000 fb52 bl 800522c + 8005024: f000 fb52 bl 80056cc /* Enable the External clock mode2 */ htim->Instance->SMCR |= TIM_SMCR_ECE; - 8004b88: 687b ldr r3, [r7, #4] - 8004b8a: 681b ldr r3, [r3, #0] - 8004b8c: 689a ldr r2, [r3, #8] - 8004b8e: 687b ldr r3, [r7, #4] - 8004b90: 681b ldr r3, [r3, #0] - 8004b92: f442 4280 orr.w r2, r2, #16384 @ 0x4000 - 8004b96: 609a str r2, [r3, #8] + 8005028: 687b ldr r3, [r7, #4] + 800502a: 681b ldr r3, [r3, #0] + 800502c: 689a ldr r2, [r3, #8] + 800502e: 687b ldr r3, [r7, #4] + 8005030: 681b ldr r3, [r3, #0] + 8005032: f442 4280 orr.w r2, r2, #16384 @ 0x4000 + 8005036: 609a str r2, [r3, #8] break; - 8004b98: e03c b.n 8004c14 + 8005038: e03c b.n 80050b4 /* 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, - 8004b9a: 687b ldr r3, [r7, #4] - 8004b9c: 6818 ldr r0, [r3, #0] + 800503a: 687b ldr r3, [r7, #4] + 800503c: 6818 ldr r0, [r3, #0] sClockSourceConfig->ClockPolarity, - 8004b9e: 683b ldr r3, [r7, #0] - 8004ba0: 6859 ldr r1, [r3, #4] + 800503e: 683b ldr r3, [r7, #0] + 8005040: 6859 ldr r1, [r3, #4] sClockSourceConfig->ClockFilter); - 8004ba2: 683b ldr r3, [r7, #0] - 8004ba4: 68db ldr r3, [r3, #12] + 8005042: 683b ldr r3, [r7, #0] + 8005044: 68db ldr r3, [r3, #12] TIM_TI1_ConfigInputStage(htim->Instance, - 8004ba6: 461a mov r2, r3 - 8004ba8: f000 fac6 bl 8005138 + 8005046: 461a mov r2, r3 + 8005048: f000 fac6 bl 80055d8 TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI1); - 8004bac: 687b ldr r3, [r7, #4] - 8004bae: 681b ldr r3, [r3, #0] - 8004bb0: 2150 movs r1, #80 @ 0x50 - 8004bb2: 4618 mov r0, r3 - 8004bb4: f000 fb1f bl 80051f6 + 800504c: 687b ldr r3, [r7, #4] + 800504e: 681b ldr r3, [r3, #0] + 8005050: 2150 movs r1, #80 @ 0x50 + 8005052: 4618 mov r0, r3 + 8005054: f000 fb1f bl 8005696 break; - 8004bb8: e02c b.n 8004c14 + 8005058: e02c b.n 80050b4 /* 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, - 8004bba: 687b ldr r3, [r7, #4] - 8004bbc: 6818 ldr r0, [r3, #0] + 800505a: 687b ldr r3, [r7, #4] + 800505c: 6818 ldr r0, [r3, #0] sClockSourceConfig->ClockPolarity, - 8004bbe: 683b ldr r3, [r7, #0] - 8004bc0: 6859 ldr r1, [r3, #4] + 800505e: 683b ldr r3, [r7, #0] + 8005060: 6859 ldr r1, [r3, #4] sClockSourceConfig->ClockFilter); - 8004bc2: 683b ldr r3, [r7, #0] - 8004bc4: 68db ldr r3, [r3, #12] + 8005062: 683b ldr r3, [r7, #0] + 8005064: 68db ldr r3, [r3, #12] TIM_TI2_ConfigInputStage(htim->Instance, - 8004bc6: 461a mov r2, r3 - 8004bc8: f000 fae5 bl 8005196 + 8005066: 461a mov r2, r3 + 8005068: f000 fae5 bl 8005636 TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI2); - 8004bcc: 687b ldr r3, [r7, #4] - 8004bce: 681b ldr r3, [r3, #0] - 8004bd0: 2160 movs r1, #96 @ 0x60 - 8004bd2: 4618 mov r0, r3 - 8004bd4: f000 fb0f bl 80051f6 + 800506c: 687b ldr r3, [r7, #4] + 800506e: 681b ldr r3, [r3, #0] + 8005070: 2160 movs r1, #96 @ 0x60 + 8005072: 4618 mov r0, r3 + 8005074: f000 fb0f bl 8005696 break; - 8004bd8: e01c b.n 8004c14 + 8005078: e01c b.n 80050b4 /* 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, - 8004bda: 687b ldr r3, [r7, #4] - 8004bdc: 6818 ldr r0, [r3, #0] + 800507a: 687b ldr r3, [r7, #4] + 800507c: 6818 ldr r0, [r3, #0] sClockSourceConfig->ClockPolarity, - 8004bde: 683b ldr r3, [r7, #0] - 8004be0: 6859 ldr r1, [r3, #4] + 800507e: 683b ldr r3, [r7, #0] + 8005080: 6859 ldr r1, [r3, #4] sClockSourceConfig->ClockFilter); - 8004be2: 683b ldr r3, [r7, #0] - 8004be4: 68db ldr r3, [r3, #12] + 8005082: 683b ldr r3, [r7, #0] + 8005084: 68db ldr r3, [r3, #12] TIM_TI1_ConfigInputStage(htim->Instance, - 8004be6: 461a mov r2, r3 - 8004be8: f000 faa6 bl 8005138 + 8005086: 461a mov r2, r3 + 8005088: f000 faa6 bl 80055d8 TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI1ED); - 8004bec: 687b ldr r3, [r7, #4] - 8004bee: 681b ldr r3, [r3, #0] - 8004bf0: 2140 movs r1, #64 @ 0x40 - 8004bf2: 4618 mov r0, r3 - 8004bf4: f000 faff bl 80051f6 + 800508c: 687b ldr r3, [r7, #4] + 800508e: 681b ldr r3, [r3, #0] + 8005090: 2140 movs r1, #64 @ 0x40 + 8005092: 4618 mov r0, r3 + 8005094: f000 faff bl 8005696 break; - 8004bf8: e00c b.n 8004c14 + 8005098: e00c b.n 80050b4 case TIM_CLOCKSOURCE_ITR3: { /* Check whether or not the timer instance supports internal trigger input */ assert_param(IS_TIM_CLOCKSOURCE_ITRX_INSTANCE(htim->Instance)); TIM_ITRx_SetConfig(htim->Instance, sClockSourceConfig->ClockSource); - 8004bfa: 687b ldr r3, [r7, #4] - 8004bfc: 681a ldr r2, [r3, #0] - 8004bfe: 683b ldr r3, [r7, #0] - 8004c00: 681b ldr r3, [r3, #0] - 8004c02: 4619 mov r1, r3 - 8004c04: 4610 mov r0, r2 - 8004c06: f000 faf6 bl 80051f6 + 800509a: 687b ldr r3, [r7, #4] + 800509c: 681a ldr r2, [r3, #0] + 800509e: 683b ldr r3, [r7, #0] + 80050a0: 681b ldr r3, [r3, #0] + 80050a2: 4619 mov r1, r3 + 80050a4: 4610 mov r0, r2 + 80050a6: f000 faf6 bl 8005696 break; - 8004c0a: e003 b.n 8004c14 + 80050aa: e003 b.n 80050b4 } default: status = HAL_ERROR; - 8004c0c: 2301 movs r3, #1 - 8004c0e: 73fb strb r3, [r7, #15] + 80050ac: 2301 movs r3, #1 + 80050ae: 73fb strb r3, [r7, #15] break; - 8004c10: e000 b.n 8004c14 + 80050b0: e000 b.n 80050b4 break; - 8004c12: bf00 nop + 80050b2: bf00 nop } htim->State = HAL_TIM_STATE_READY; - 8004c14: 687b ldr r3, [r7, #4] - 8004c16: 2201 movs r2, #1 - 8004c18: f883 203d strb.w r2, [r3, #61] @ 0x3d + 80050b4: 687b ldr r3, [r7, #4] + 80050b6: 2201 movs r2, #1 + 80050b8: f883 203d strb.w r2, [r3, #61] @ 0x3d __HAL_UNLOCK(htim); - 8004c1c: 687b ldr r3, [r7, #4] - 8004c1e: 2200 movs r2, #0 - 8004c20: f883 203c strb.w r2, [r3, #60] @ 0x3c + 80050bc: 687b ldr r3, [r7, #4] + 80050be: 2200 movs r2, #0 + 80050c0: f883 203c strb.w r2, [r3, #60] @ 0x3c return status; - 8004c24: 7bfb ldrb r3, [r7, #15] + 80050c4: 7bfb ldrb r3, [r7, #15] } - 8004c26: 4618 mov r0, r3 - 8004c28: 3710 adds r7, #16 - 8004c2a: 46bd mov sp, r7 - 8004c2c: bd80 pop {r7, pc} + 80050c6: 4618 mov r0, r3 + 80050c8: 3710 adds r7, #16 + 80050ca: 46bd mov sp, r7 + 80050cc: bd80 pop {r7, pc} -08004c2e : +080050ce : * @brief Output Compare callback in non-blocking mode * @param htim TIM OC handle * @retval None */ __weak void HAL_TIM_OC_DelayElapsedCallback(TIM_HandleTypeDef *htim) { - 8004c2e: b480 push {r7} - 8004c30: b083 sub sp, #12 - 8004c32: af00 add r7, sp, #0 - 8004c34: 6078 str r0, [r7, #4] + 80050ce: b480 push {r7} + 80050d0: b083 sub sp, #12 + 80050d2: af00 add r7, sp, #0 + 80050d4: 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 */ } - 8004c36: bf00 nop - 8004c38: 370c adds r7, #12 - 8004c3a: 46bd mov sp, r7 - 8004c3c: f85d 7b04 ldr.w r7, [sp], #4 - 8004c40: 4770 bx lr + 80050d6: bf00 nop + 80050d8: 370c adds r7, #12 + 80050da: 46bd mov sp, r7 + 80050dc: f85d 7b04 ldr.w r7, [sp], #4 + 80050e0: 4770 bx lr -08004c42 : +080050e2 : * @brief Input Capture callback in non-blocking mode * @param htim TIM IC handle * @retval None */ __weak void HAL_TIM_IC_CaptureCallback(TIM_HandleTypeDef *htim) { - 8004c42: b480 push {r7} - 8004c44: b083 sub sp, #12 - 8004c46: af00 add r7, sp, #0 - 8004c48: 6078 str r0, [r7, #4] + 80050e2: b480 push {r7} + 80050e4: b083 sub sp, #12 + 80050e6: af00 add r7, sp, #0 + 80050e8: 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 */ } - 8004c4a: bf00 nop - 8004c4c: 370c adds r7, #12 - 8004c4e: 46bd mov sp, r7 - 8004c50: f85d 7b04 ldr.w r7, [sp], #4 - 8004c54: 4770 bx lr + 80050ea: bf00 nop + 80050ec: 370c adds r7, #12 + 80050ee: 46bd mov sp, r7 + 80050f0: f85d 7b04 ldr.w r7, [sp], #4 + 80050f4: 4770 bx lr -08004c56 : +080050f6 : * @brief PWM Pulse finished callback in non-blocking mode * @param htim TIM handle * @retval None */ __weak void HAL_TIM_PWM_PulseFinishedCallback(TIM_HandleTypeDef *htim) { - 8004c56: b480 push {r7} - 8004c58: b083 sub sp, #12 - 8004c5a: af00 add r7, sp, #0 - 8004c5c: 6078 str r0, [r7, #4] + 80050f6: b480 push {r7} + 80050f8: b083 sub sp, #12 + 80050fa: af00 add r7, sp, #0 + 80050fc: 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 */ } - 8004c5e: bf00 nop - 8004c60: 370c adds r7, #12 - 8004c62: 46bd mov sp, r7 - 8004c64: f85d 7b04 ldr.w r7, [sp], #4 - 8004c68: 4770 bx lr + 80050fe: bf00 nop + 8005100: 370c adds r7, #12 + 8005102: 46bd mov sp, r7 + 8005104: f85d 7b04 ldr.w r7, [sp], #4 + 8005108: 4770 bx lr -08004c6a : +0800510a : * @brief Hall Trigger detection callback in non-blocking mode * @param htim TIM handle * @retval None */ __weak void HAL_TIM_TriggerCallback(TIM_HandleTypeDef *htim) { - 8004c6a: b480 push {r7} - 8004c6c: b083 sub sp, #12 - 8004c6e: af00 add r7, sp, #0 - 8004c70: 6078 str r0, [r7, #4] + 800510a: b480 push {r7} + 800510c: b083 sub sp, #12 + 800510e: af00 add r7, sp, #0 + 8005110: 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 */ } - 8004c72: bf00 nop - 8004c74: 370c adds r7, #12 - 8004c76: 46bd mov sp, r7 - 8004c78: f85d 7b04 ldr.w r7, [sp], #4 - 8004c7c: 4770 bx lr + 8005112: bf00 nop + 8005114: 370c adds r7, #12 + 8005116: 46bd mov sp, r7 + 8005118: f85d 7b04 ldr.w r7, [sp], #4 + 800511c: 4770 bx lr ... -08004c80 : +08005120 : * @param TIMx TIM peripheral * @param Structure TIM Base configuration structure * @retval None */ void TIM_Base_SetConfig(TIM_TypeDef *TIMx, const TIM_Base_InitTypeDef *Structure) { - 8004c80: b480 push {r7} - 8004c82: b085 sub sp, #20 - 8004c84: af00 add r7, sp, #0 - 8004c86: 6078 str r0, [r7, #4] - 8004c88: 6039 str r1, [r7, #0] + 8005120: b480 push {r7} + 8005122: b085 sub sp, #20 + 8005124: af00 add r7, sp, #0 + 8005126: 6078 str r0, [r7, #4] + 8005128: 6039 str r1, [r7, #0] uint32_t tmpcr1; tmpcr1 = TIMx->CR1; - 8004c8a: 687b ldr r3, [r7, #4] - 8004c8c: 681b ldr r3, [r3, #0] - 8004c8e: 60fb str r3, [r7, #12] + 800512a: 687b ldr r3, [r7, #4] + 800512c: 681b ldr r3, [r3, #0] + 800512e: 60fb str r3, [r7, #12] /* Set TIM Time Base Unit parameters ---------------------------------------*/ if (IS_TIM_COUNTER_MODE_SELECT_INSTANCE(TIMx)) - 8004c90: 687b ldr r3, [r7, #4] - 8004c92: 4a46 ldr r2, [pc, #280] @ (8004dac ) - 8004c94: 4293 cmp r3, r2 - 8004c96: d013 beq.n 8004cc0 - 8004c98: 687b ldr r3, [r7, #4] - 8004c9a: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 - 8004c9e: d00f beq.n 8004cc0 - 8004ca0: 687b ldr r3, [r7, #4] - 8004ca2: 4a43 ldr r2, [pc, #268] @ (8004db0 ) - 8004ca4: 4293 cmp r3, r2 - 8004ca6: d00b beq.n 8004cc0 - 8004ca8: 687b ldr r3, [r7, #4] - 8004caa: 4a42 ldr r2, [pc, #264] @ (8004db4 ) - 8004cac: 4293 cmp r3, r2 - 8004cae: d007 beq.n 8004cc0 - 8004cb0: 687b ldr r3, [r7, #4] - 8004cb2: 4a41 ldr r2, [pc, #260] @ (8004db8 ) - 8004cb4: 4293 cmp r3, r2 - 8004cb6: d003 beq.n 8004cc0 - 8004cb8: 687b ldr r3, [r7, #4] - 8004cba: 4a40 ldr r2, [pc, #256] @ (8004dbc ) - 8004cbc: 4293 cmp r3, r2 - 8004cbe: d108 bne.n 8004cd2 + 8005130: 687b ldr r3, [r7, #4] + 8005132: 4a46 ldr r2, [pc, #280] @ (800524c ) + 8005134: 4293 cmp r3, r2 + 8005136: d013 beq.n 8005160 + 8005138: 687b ldr r3, [r7, #4] + 800513a: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 + 800513e: d00f beq.n 8005160 + 8005140: 687b ldr r3, [r7, #4] + 8005142: 4a43 ldr r2, [pc, #268] @ (8005250 ) + 8005144: 4293 cmp r3, r2 + 8005146: d00b beq.n 8005160 + 8005148: 687b ldr r3, [r7, #4] + 800514a: 4a42 ldr r2, [pc, #264] @ (8005254 ) + 800514c: 4293 cmp r3, r2 + 800514e: d007 beq.n 8005160 + 8005150: 687b ldr r3, [r7, #4] + 8005152: 4a41 ldr r2, [pc, #260] @ (8005258 ) + 8005154: 4293 cmp r3, r2 + 8005156: d003 beq.n 8005160 + 8005158: 687b ldr r3, [r7, #4] + 800515a: 4a40 ldr r2, [pc, #256] @ (800525c ) + 800515c: 4293 cmp r3, r2 + 800515e: d108 bne.n 8005172 { /* Select the Counter Mode */ tmpcr1 &= ~(TIM_CR1_DIR | TIM_CR1_CMS); - 8004cc0: 68fb ldr r3, [r7, #12] - 8004cc2: f023 0370 bic.w r3, r3, #112 @ 0x70 - 8004cc6: 60fb str r3, [r7, #12] + 8005160: 68fb ldr r3, [r7, #12] + 8005162: f023 0370 bic.w r3, r3, #112 @ 0x70 + 8005166: 60fb str r3, [r7, #12] tmpcr1 |= Structure->CounterMode; - 8004cc8: 683b ldr r3, [r7, #0] - 8004cca: 685b ldr r3, [r3, #4] - 8004ccc: 68fa ldr r2, [r7, #12] - 8004cce: 4313 orrs r3, r2 - 8004cd0: 60fb str r3, [r7, #12] + 8005168: 683b ldr r3, [r7, #0] + 800516a: 685b ldr r3, [r3, #4] + 800516c: 68fa ldr r2, [r7, #12] + 800516e: 4313 orrs r3, r2 + 8005170: 60fb str r3, [r7, #12] } if (IS_TIM_CLOCK_DIVISION_INSTANCE(TIMx)) - 8004cd2: 687b ldr r3, [r7, #4] - 8004cd4: 4a35 ldr r2, [pc, #212] @ (8004dac ) - 8004cd6: 4293 cmp r3, r2 - 8004cd8: d02b beq.n 8004d32 - 8004cda: 687b ldr r3, [r7, #4] - 8004cdc: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 - 8004ce0: d027 beq.n 8004d32 - 8004ce2: 687b ldr r3, [r7, #4] - 8004ce4: 4a32 ldr r2, [pc, #200] @ (8004db0 ) - 8004ce6: 4293 cmp r3, r2 - 8004ce8: d023 beq.n 8004d32 - 8004cea: 687b ldr r3, [r7, #4] - 8004cec: 4a31 ldr r2, [pc, #196] @ (8004db4 ) - 8004cee: 4293 cmp r3, r2 - 8004cf0: d01f beq.n 8004d32 - 8004cf2: 687b ldr r3, [r7, #4] - 8004cf4: 4a30 ldr r2, [pc, #192] @ (8004db8 ) - 8004cf6: 4293 cmp r3, r2 - 8004cf8: d01b beq.n 8004d32 - 8004cfa: 687b ldr r3, [r7, #4] - 8004cfc: 4a2f ldr r2, [pc, #188] @ (8004dbc ) - 8004cfe: 4293 cmp r3, r2 - 8004d00: d017 beq.n 8004d32 - 8004d02: 687b ldr r3, [r7, #4] - 8004d04: 4a2e ldr r2, [pc, #184] @ (8004dc0 ) - 8004d06: 4293 cmp r3, r2 - 8004d08: d013 beq.n 8004d32 - 8004d0a: 687b ldr r3, [r7, #4] - 8004d0c: 4a2d ldr r2, [pc, #180] @ (8004dc4 ) - 8004d0e: 4293 cmp r3, r2 - 8004d10: d00f beq.n 8004d32 - 8004d12: 687b ldr r3, [r7, #4] - 8004d14: 4a2c ldr r2, [pc, #176] @ (8004dc8 ) - 8004d16: 4293 cmp r3, r2 - 8004d18: d00b beq.n 8004d32 - 8004d1a: 687b ldr r3, [r7, #4] - 8004d1c: 4a2b ldr r2, [pc, #172] @ (8004dcc ) - 8004d1e: 4293 cmp r3, r2 - 8004d20: d007 beq.n 8004d32 - 8004d22: 687b ldr r3, [r7, #4] - 8004d24: 4a2a ldr r2, [pc, #168] @ (8004dd0 ) - 8004d26: 4293 cmp r3, r2 - 8004d28: d003 beq.n 8004d32 - 8004d2a: 687b ldr r3, [r7, #4] - 8004d2c: 4a29 ldr r2, [pc, #164] @ (8004dd4 ) - 8004d2e: 4293 cmp r3, r2 - 8004d30: d108 bne.n 8004d44 + 8005172: 687b ldr r3, [r7, #4] + 8005174: 4a35 ldr r2, [pc, #212] @ (800524c ) + 8005176: 4293 cmp r3, r2 + 8005178: d02b beq.n 80051d2 + 800517a: 687b ldr r3, [r7, #4] + 800517c: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 + 8005180: d027 beq.n 80051d2 + 8005182: 687b ldr r3, [r7, #4] + 8005184: 4a32 ldr r2, [pc, #200] @ (8005250 ) + 8005186: 4293 cmp r3, r2 + 8005188: d023 beq.n 80051d2 + 800518a: 687b ldr r3, [r7, #4] + 800518c: 4a31 ldr r2, [pc, #196] @ (8005254 ) + 800518e: 4293 cmp r3, r2 + 8005190: d01f beq.n 80051d2 + 8005192: 687b ldr r3, [r7, #4] + 8005194: 4a30 ldr r2, [pc, #192] @ (8005258 ) + 8005196: 4293 cmp r3, r2 + 8005198: d01b beq.n 80051d2 + 800519a: 687b ldr r3, [r7, #4] + 800519c: 4a2f ldr r2, [pc, #188] @ (800525c ) + 800519e: 4293 cmp r3, r2 + 80051a0: d017 beq.n 80051d2 + 80051a2: 687b ldr r3, [r7, #4] + 80051a4: 4a2e ldr r2, [pc, #184] @ (8005260 ) + 80051a6: 4293 cmp r3, r2 + 80051a8: d013 beq.n 80051d2 + 80051aa: 687b ldr r3, [r7, #4] + 80051ac: 4a2d ldr r2, [pc, #180] @ (8005264 ) + 80051ae: 4293 cmp r3, r2 + 80051b0: d00f beq.n 80051d2 + 80051b2: 687b ldr r3, [r7, #4] + 80051b4: 4a2c ldr r2, [pc, #176] @ (8005268 ) + 80051b6: 4293 cmp r3, r2 + 80051b8: d00b beq.n 80051d2 + 80051ba: 687b ldr r3, [r7, #4] + 80051bc: 4a2b ldr r2, [pc, #172] @ (800526c ) + 80051be: 4293 cmp r3, r2 + 80051c0: d007 beq.n 80051d2 + 80051c2: 687b ldr r3, [r7, #4] + 80051c4: 4a2a ldr r2, [pc, #168] @ (8005270 ) + 80051c6: 4293 cmp r3, r2 + 80051c8: d003 beq.n 80051d2 + 80051ca: 687b ldr r3, [r7, #4] + 80051cc: 4a29 ldr r2, [pc, #164] @ (8005274 ) + 80051ce: 4293 cmp r3, r2 + 80051d0: d108 bne.n 80051e4 { /* Set the clock division */ tmpcr1 &= ~TIM_CR1_CKD; - 8004d32: 68fb ldr r3, [r7, #12] - 8004d34: f423 7340 bic.w r3, r3, #768 @ 0x300 - 8004d38: 60fb str r3, [r7, #12] + 80051d2: 68fb ldr r3, [r7, #12] + 80051d4: f423 7340 bic.w r3, r3, #768 @ 0x300 + 80051d8: 60fb str r3, [r7, #12] tmpcr1 |= (uint32_t)Structure->ClockDivision; - 8004d3a: 683b ldr r3, [r7, #0] - 8004d3c: 68db ldr r3, [r3, #12] - 8004d3e: 68fa ldr r2, [r7, #12] - 8004d40: 4313 orrs r3, r2 - 8004d42: 60fb str r3, [r7, #12] + 80051da: 683b ldr r3, [r7, #0] + 80051dc: 68db ldr r3, [r3, #12] + 80051de: 68fa ldr r2, [r7, #12] + 80051e0: 4313 orrs r3, r2 + 80051e2: 60fb str r3, [r7, #12] } /* Set the auto-reload preload */ MODIFY_REG(tmpcr1, TIM_CR1_ARPE, Structure->AutoReloadPreload); - 8004d44: 68fb ldr r3, [r7, #12] - 8004d46: f023 0280 bic.w r2, r3, #128 @ 0x80 - 8004d4a: 683b ldr r3, [r7, #0] - 8004d4c: 695b ldr r3, [r3, #20] - 8004d4e: 4313 orrs r3, r2 - 8004d50: 60fb str r3, [r7, #12] + 80051e4: 68fb ldr r3, [r7, #12] + 80051e6: f023 0280 bic.w r2, r3, #128 @ 0x80 + 80051ea: 683b ldr r3, [r7, #0] + 80051ec: 695b ldr r3, [r3, #20] + 80051ee: 4313 orrs r3, r2 + 80051f0: 60fb str r3, [r7, #12] TIMx->CR1 = tmpcr1; - 8004d52: 687b ldr r3, [r7, #4] - 8004d54: 68fa ldr r2, [r7, #12] - 8004d56: 601a str r2, [r3, #0] + 80051f2: 687b ldr r3, [r7, #4] + 80051f4: 68fa ldr r2, [r7, #12] + 80051f6: 601a str r2, [r3, #0] /* Set the Autoreload value */ TIMx->ARR = (uint32_t)Structure->Period ; - 8004d58: 683b ldr r3, [r7, #0] - 8004d5a: 689a ldr r2, [r3, #8] - 8004d5c: 687b ldr r3, [r7, #4] - 8004d5e: 62da str r2, [r3, #44] @ 0x2c + 80051f8: 683b ldr r3, [r7, #0] + 80051fa: 689a ldr r2, [r3, #8] + 80051fc: 687b ldr r3, [r7, #4] + 80051fe: 62da str r2, [r3, #44] @ 0x2c /* Set the Prescaler value */ TIMx->PSC = Structure->Prescaler; - 8004d60: 683b ldr r3, [r7, #0] - 8004d62: 681a ldr r2, [r3, #0] - 8004d64: 687b ldr r3, [r7, #4] - 8004d66: 629a str r2, [r3, #40] @ 0x28 + 8005200: 683b ldr r3, [r7, #0] + 8005202: 681a ldr r2, [r3, #0] + 8005204: 687b ldr r3, [r7, #4] + 8005206: 629a str r2, [r3, #40] @ 0x28 if (IS_TIM_REPETITION_COUNTER_INSTANCE(TIMx)) - 8004d68: 687b ldr r3, [r7, #4] - 8004d6a: 4a10 ldr r2, [pc, #64] @ (8004dac ) - 8004d6c: 4293 cmp r3, r2 - 8004d6e: d003 beq.n 8004d78 - 8004d70: 687b ldr r3, [r7, #4] - 8004d72: 4a12 ldr r2, [pc, #72] @ (8004dbc ) - 8004d74: 4293 cmp r3, r2 - 8004d76: d103 bne.n 8004d80 + 8005208: 687b ldr r3, [r7, #4] + 800520a: 4a10 ldr r2, [pc, #64] @ (800524c ) + 800520c: 4293 cmp r3, r2 + 800520e: d003 beq.n 8005218 + 8005210: 687b ldr r3, [r7, #4] + 8005212: 4a12 ldr r2, [pc, #72] @ (800525c ) + 8005214: 4293 cmp r3, r2 + 8005216: d103 bne.n 8005220 { /* Set the Repetition Counter value */ TIMx->RCR = Structure->RepetitionCounter; - 8004d78: 683b ldr r3, [r7, #0] - 8004d7a: 691a ldr r2, [r3, #16] - 8004d7c: 687b ldr r3, [r7, #4] - 8004d7e: 631a str r2, [r3, #48] @ 0x30 + 8005218: 683b ldr r3, [r7, #0] + 800521a: 691a ldr r2, [r3, #16] + 800521c: 687b ldr r3, [r7, #4] + 800521e: 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; - 8004d80: 687b ldr r3, [r7, #4] - 8004d82: 2201 movs r2, #1 - 8004d84: 615a str r2, [r3, #20] + 8005220: 687b ldr r3, [r7, #4] + 8005222: 2201 movs r2, #1 + 8005224: 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)) - 8004d86: 687b ldr r3, [r7, #4] - 8004d88: 691b ldr r3, [r3, #16] - 8004d8a: f003 0301 and.w r3, r3, #1 - 8004d8e: 2b01 cmp r3, #1 - 8004d90: d105 bne.n 8004d9e + 8005226: 687b ldr r3, [r7, #4] + 8005228: 691b ldr r3, [r3, #16] + 800522a: f003 0301 and.w r3, r3, #1 + 800522e: 2b01 cmp r3, #1 + 8005230: d105 bne.n 800523e { /* Clear the update flag */ CLEAR_BIT(TIMx->SR, TIM_FLAG_UPDATE); - 8004d92: 687b ldr r3, [r7, #4] - 8004d94: 691b ldr r3, [r3, #16] - 8004d96: f023 0201 bic.w r2, r3, #1 - 8004d9a: 687b ldr r3, [r7, #4] - 8004d9c: 611a str r2, [r3, #16] + 8005232: 687b ldr r3, [r7, #4] + 8005234: 691b ldr r3, [r3, #16] + 8005236: f023 0201 bic.w r2, r3, #1 + 800523a: 687b ldr r3, [r7, #4] + 800523c: 611a str r2, [r3, #16] } } - 8004d9e: bf00 nop - 8004da0: 3714 adds r7, #20 - 8004da2: 46bd mov sp, r7 - 8004da4: f85d 7b04 ldr.w r7, [sp], #4 - 8004da8: 4770 bx lr - 8004daa: bf00 nop - 8004dac: 40010000 .word 0x40010000 - 8004db0: 40000400 .word 0x40000400 - 8004db4: 40000800 .word 0x40000800 - 8004db8: 40000c00 .word 0x40000c00 - 8004dbc: 40010400 .word 0x40010400 - 8004dc0: 40014000 .word 0x40014000 - 8004dc4: 40014400 .word 0x40014400 - 8004dc8: 40014800 .word 0x40014800 - 8004dcc: 40001800 .word 0x40001800 - 8004dd0: 40001c00 .word 0x40001c00 - 8004dd4: 40002000 .word 0x40002000 + 800523e: bf00 nop + 8005240: 3714 adds r7, #20 + 8005242: 46bd mov sp, r7 + 8005244: f85d 7b04 ldr.w r7, [sp], #4 + 8005248: 4770 bx lr + 800524a: bf00 nop + 800524c: 40010000 .word 0x40010000 + 8005250: 40000400 .word 0x40000400 + 8005254: 40000800 .word 0x40000800 + 8005258: 40000c00 .word 0x40000c00 + 800525c: 40010400 .word 0x40010400 + 8005260: 40014000 .word 0x40014000 + 8005264: 40014400 .word 0x40014400 + 8005268: 40014800 .word 0x40014800 + 800526c: 40001800 .word 0x40001800 + 8005270: 40001c00 .word 0x40001c00 + 8005274: 40002000 .word 0x40002000 -08004dd8 : +08005278 : * @param TIMx to select the TIM peripheral * @param OC_Config The output configuration structure * @retval None */ static void TIM_OC1_SetConfig(TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config) { - 8004dd8: b480 push {r7} - 8004dda: b087 sub sp, #28 - 8004ddc: af00 add r7, sp, #0 - 8004dde: 6078 str r0, [r7, #4] - 8004de0: 6039 str r1, [r7, #0] + 8005278: b480 push {r7} + 800527a: b087 sub sp, #28 + 800527c: af00 add r7, sp, #0 + 800527e: 6078 str r0, [r7, #4] + 8005280: 6039 str r1, [r7, #0] uint32_t tmpccmrx; uint32_t tmpccer; uint32_t tmpcr2; /* Get the TIMx CCER register value */ tmpccer = TIMx->CCER; - 8004de2: 687b ldr r3, [r7, #4] - 8004de4: 6a1b ldr r3, [r3, #32] - 8004de6: 617b str r3, [r7, #20] + 8005282: 687b ldr r3, [r7, #4] + 8005284: 6a1b ldr r3, [r3, #32] + 8005286: 617b str r3, [r7, #20] /* Disable the Channel 1: Reset the CC1E Bit */ TIMx->CCER &= ~TIM_CCER_CC1E; - 8004de8: 687b ldr r3, [r7, #4] - 8004dea: 6a1b ldr r3, [r3, #32] - 8004dec: f023 0201 bic.w r2, r3, #1 - 8004df0: 687b ldr r3, [r7, #4] - 8004df2: 621a str r2, [r3, #32] + 8005288: 687b ldr r3, [r7, #4] + 800528a: 6a1b ldr r3, [r3, #32] + 800528c: f023 0201 bic.w r2, r3, #1 + 8005290: 687b ldr r3, [r7, #4] + 8005292: 621a str r2, [r3, #32] /* Get the TIMx CR2 register value */ tmpcr2 = TIMx->CR2; - 8004df4: 687b ldr r3, [r7, #4] - 8004df6: 685b ldr r3, [r3, #4] - 8004df8: 613b str r3, [r7, #16] + 8005294: 687b ldr r3, [r7, #4] + 8005296: 685b ldr r3, [r3, #4] + 8005298: 613b str r3, [r7, #16] /* Get the TIMx CCMR1 register value */ tmpccmrx = TIMx->CCMR1; - 8004dfa: 687b ldr r3, [r7, #4] - 8004dfc: 699b ldr r3, [r3, #24] - 8004dfe: 60fb str r3, [r7, #12] + 800529a: 687b ldr r3, [r7, #4] + 800529c: 699b ldr r3, [r3, #24] + 800529e: 60fb str r3, [r7, #12] /* Reset the Output Compare Mode Bits */ tmpccmrx &= ~TIM_CCMR1_OC1M; - 8004e00: 68fb ldr r3, [r7, #12] - 8004e02: f023 0370 bic.w r3, r3, #112 @ 0x70 - 8004e06: 60fb str r3, [r7, #12] + 80052a0: 68fb ldr r3, [r7, #12] + 80052a2: f023 0370 bic.w r3, r3, #112 @ 0x70 + 80052a6: 60fb str r3, [r7, #12] tmpccmrx &= ~TIM_CCMR1_CC1S; - 8004e08: 68fb ldr r3, [r7, #12] - 8004e0a: f023 0303 bic.w r3, r3, #3 - 8004e0e: 60fb str r3, [r7, #12] + 80052a8: 68fb ldr r3, [r7, #12] + 80052aa: f023 0303 bic.w r3, r3, #3 + 80052ae: 60fb str r3, [r7, #12] /* Select the Output Compare Mode */ tmpccmrx |= OC_Config->OCMode; - 8004e10: 683b ldr r3, [r7, #0] - 8004e12: 681b ldr r3, [r3, #0] - 8004e14: 68fa ldr r2, [r7, #12] - 8004e16: 4313 orrs r3, r2 - 8004e18: 60fb str r3, [r7, #12] + 80052b0: 683b ldr r3, [r7, #0] + 80052b2: 681b ldr r3, [r3, #0] + 80052b4: 68fa ldr r2, [r7, #12] + 80052b6: 4313 orrs r3, r2 + 80052b8: 60fb str r3, [r7, #12] /* Reset the Output Polarity level */ tmpccer &= ~TIM_CCER_CC1P; - 8004e1a: 697b ldr r3, [r7, #20] - 8004e1c: f023 0302 bic.w r3, r3, #2 - 8004e20: 617b str r3, [r7, #20] + 80052ba: 697b ldr r3, [r7, #20] + 80052bc: f023 0302 bic.w r3, r3, #2 + 80052c0: 617b str r3, [r7, #20] /* Set the Output Compare Polarity */ tmpccer |= OC_Config->OCPolarity; - 8004e22: 683b ldr r3, [r7, #0] - 8004e24: 689b ldr r3, [r3, #8] - 8004e26: 697a ldr r2, [r7, #20] - 8004e28: 4313 orrs r3, r2 - 8004e2a: 617b str r3, [r7, #20] + 80052c2: 683b ldr r3, [r7, #0] + 80052c4: 689b ldr r3, [r3, #8] + 80052c6: 697a ldr r2, [r7, #20] + 80052c8: 4313 orrs r3, r2 + 80052ca: 617b str r3, [r7, #20] if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_1)) - 8004e2c: 687b ldr r3, [r7, #4] - 8004e2e: 4a20 ldr r2, [pc, #128] @ (8004eb0 ) - 8004e30: 4293 cmp r3, r2 - 8004e32: d003 beq.n 8004e3c - 8004e34: 687b ldr r3, [r7, #4] - 8004e36: 4a1f ldr r2, [pc, #124] @ (8004eb4 ) - 8004e38: 4293 cmp r3, r2 - 8004e3a: d10c bne.n 8004e56 + 80052cc: 687b ldr r3, [r7, #4] + 80052ce: 4a20 ldr r2, [pc, #128] @ (8005350 ) + 80052d0: 4293 cmp r3, r2 + 80052d2: d003 beq.n 80052dc + 80052d4: 687b ldr r3, [r7, #4] + 80052d6: 4a1f ldr r2, [pc, #124] @ (8005354 ) + 80052d8: 4293 cmp r3, r2 + 80052da: d10c bne.n 80052f6 { /* Check parameters */ assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity)); /* Reset the Output N Polarity level */ tmpccer &= ~TIM_CCER_CC1NP; - 8004e3c: 697b ldr r3, [r7, #20] - 8004e3e: f023 0308 bic.w r3, r3, #8 - 8004e42: 617b str r3, [r7, #20] + 80052dc: 697b ldr r3, [r7, #20] + 80052de: f023 0308 bic.w r3, r3, #8 + 80052e2: 617b str r3, [r7, #20] /* Set the Output N Polarity */ tmpccer |= OC_Config->OCNPolarity; - 8004e44: 683b ldr r3, [r7, #0] - 8004e46: 68db ldr r3, [r3, #12] - 8004e48: 697a ldr r2, [r7, #20] - 8004e4a: 4313 orrs r3, r2 - 8004e4c: 617b str r3, [r7, #20] + 80052e4: 683b ldr r3, [r7, #0] + 80052e6: 68db ldr r3, [r3, #12] + 80052e8: 697a ldr r2, [r7, #20] + 80052ea: 4313 orrs r3, r2 + 80052ec: 617b str r3, [r7, #20] /* Reset the Output N State */ tmpccer &= ~TIM_CCER_CC1NE; - 8004e4e: 697b ldr r3, [r7, #20] - 8004e50: f023 0304 bic.w r3, r3, #4 - 8004e54: 617b str r3, [r7, #20] + 80052ee: 697b ldr r3, [r7, #20] + 80052f0: f023 0304 bic.w r3, r3, #4 + 80052f4: 617b str r3, [r7, #20] } if (IS_TIM_BREAK_INSTANCE(TIMx)) - 8004e56: 687b ldr r3, [r7, #4] - 8004e58: 4a15 ldr r2, [pc, #84] @ (8004eb0 ) - 8004e5a: 4293 cmp r3, r2 - 8004e5c: d003 beq.n 8004e66 - 8004e5e: 687b ldr r3, [r7, #4] - 8004e60: 4a14 ldr r2, [pc, #80] @ (8004eb4 ) - 8004e62: 4293 cmp r3, r2 - 8004e64: d111 bne.n 8004e8a + 80052f6: 687b ldr r3, [r7, #4] + 80052f8: 4a15 ldr r2, [pc, #84] @ (8005350 ) + 80052fa: 4293 cmp r3, r2 + 80052fc: d003 beq.n 8005306 + 80052fe: 687b ldr r3, [r7, #4] + 8005300: 4a14 ldr r2, [pc, #80] @ (8005354 ) + 8005302: 4293 cmp r3, r2 + 8005304: d111 bne.n 800532a /* Check parameters */ assert_param(IS_TIM_OCNIDLE_STATE(OC_Config->OCNIdleState)); assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState)); /* Reset the Output Compare and Output Compare N IDLE State */ tmpcr2 &= ~TIM_CR2_OIS1; - 8004e66: 693b ldr r3, [r7, #16] - 8004e68: f423 7380 bic.w r3, r3, #256 @ 0x100 - 8004e6c: 613b str r3, [r7, #16] + 8005306: 693b ldr r3, [r7, #16] + 8005308: f423 7380 bic.w r3, r3, #256 @ 0x100 + 800530c: 613b str r3, [r7, #16] tmpcr2 &= ~TIM_CR2_OIS1N; - 8004e6e: 693b ldr r3, [r7, #16] - 8004e70: f423 7300 bic.w r3, r3, #512 @ 0x200 - 8004e74: 613b str r3, [r7, #16] + 800530e: 693b ldr r3, [r7, #16] + 8005310: f423 7300 bic.w r3, r3, #512 @ 0x200 + 8005314: 613b str r3, [r7, #16] /* Set the Output Idle state */ tmpcr2 |= OC_Config->OCIdleState; - 8004e76: 683b ldr r3, [r7, #0] - 8004e78: 695b ldr r3, [r3, #20] - 8004e7a: 693a ldr r2, [r7, #16] - 8004e7c: 4313 orrs r3, r2 - 8004e7e: 613b str r3, [r7, #16] + 8005316: 683b ldr r3, [r7, #0] + 8005318: 695b ldr r3, [r3, #20] + 800531a: 693a ldr r2, [r7, #16] + 800531c: 4313 orrs r3, r2 + 800531e: 613b str r3, [r7, #16] /* Set the Output N Idle state */ tmpcr2 |= OC_Config->OCNIdleState; - 8004e80: 683b ldr r3, [r7, #0] - 8004e82: 699b ldr r3, [r3, #24] - 8004e84: 693a ldr r2, [r7, #16] - 8004e86: 4313 orrs r3, r2 - 8004e88: 613b str r3, [r7, #16] + 8005320: 683b ldr r3, [r7, #0] + 8005322: 699b ldr r3, [r3, #24] + 8005324: 693a ldr r2, [r7, #16] + 8005326: 4313 orrs r3, r2 + 8005328: 613b str r3, [r7, #16] } /* Write to TIMx CR2 */ TIMx->CR2 = tmpcr2; - 8004e8a: 687b ldr r3, [r7, #4] - 8004e8c: 693a ldr r2, [r7, #16] - 8004e8e: 605a str r2, [r3, #4] + 800532a: 687b ldr r3, [r7, #4] + 800532c: 693a ldr r2, [r7, #16] + 800532e: 605a str r2, [r3, #4] /* Write to TIMx CCMR1 */ TIMx->CCMR1 = tmpccmrx; - 8004e90: 687b ldr r3, [r7, #4] - 8004e92: 68fa ldr r2, [r7, #12] - 8004e94: 619a str r2, [r3, #24] + 8005330: 687b ldr r3, [r7, #4] + 8005332: 68fa ldr r2, [r7, #12] + 8005334: 619a str r2, [r3, #24] /* Set the Capture Compare Register value */ TIMx->CCR1 = OC_Config->Pulse; - 8004e96: 683b ldr r3, [r7, #0] - 8004e98: 685a ldr r2, [r3, #4] - 8004e9a: 687b ldr r3, [r7, #4] - 8004e9c: 635a str r2, [r3, #52] @ 0x34 + 8005336: 683b ldr r3, [r7, #0] + 8005338: 685a ldr r2, [r3, #4] + 800533a: 687b ldr r3, [r7, #4] + 800533c: 635a str r2, [r3, #52] @ 0x34 /* Write to TIMx CCER */ TIMx->CCER = tmpccer; - 8004e9e: 687b ldr r3, [r7, #4] - 8004ea0: 697a ldr r2, [r7, #20] - 8004ea2: 621a str r2, [r3, #32] + 800533e: 687b ldr r3, [r7, #4] + 8005340: 697a ldr r2, [r7, #20] + 8005342: 621a str r2, [r3, #32] } - 8004ea4: bf00 nop - 8004ea6: 371c adds r7, #28 - 8004ea8: 46bd mov sp, r7 - 8004eaa: f85d 7b04 ldr.w r7, [sp], #4 - 8004eae: 4770 bx lr - 8004eb0: 40010000 .word 0x40010000 - 8004eb4: 40010400 .word 0x40010400 + 8005344: bf00 nop + 8005346: 371c adds r7, #28 + 8005348: 46bd mov sp, r7 + 800534a: f85d 7b04 ldr.w r7, [sp], #4 + 800534e: 4770 bx lr + 8005350: 40010000 .word 0x40010000 + 8005354: 40010400 .word 0x40010400 -08004eb8 : +08005358 : * @param TIMx to select the TIM peripheral * @param OC_Config The output configuration structure * @retval None */ void TIM_OC2_SetConfig(TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config) { - 8004eb8: b480 push {r7} - 8004eba: b087 sub sp, #28 - 8004ebc: af00 add r7, sp, #0 - 8004ebe: 6078 str r0, [r7, #4] - 8004ec0: 6039 str r1, [r7, #0] + 8005358: b480 push {r7} + 800535a: b087 sub sp, #28 + 800535c: af00 add r7, sp, #0 + 800535e: 6078 str r0, [r7, #4] + 8005360: 6039 str r1, [r7, #0] uint32_t tmpccmrx; uint32_t tmpccer; uint32_t tmpcr2; /* Get the TIMx CCER register value */ tmpccer = TIMx->CCER; - 8004ec2: 687b ldr r3, [r7, #4] - 8004ec4: 6a1b ldr r3, [r3, #32] - 8004ec6: 617b str r3, [r7, #20] + 8005362: 687b ldr r3, [r7, #4] + 8005364: 6a1b ldr r3, [r3, #32] + 8005366: 617b str r3, [r7, #20] /* Disable the Channel 2: Reset the CC2E Bit */ TIMx->CCER &= ~TIM_CCER_CC2E; - 8004ec8: 687b ldr r3, [r7, #4] - 8004eca: 6a1b ldr r3, [r3, #32] - 8004ecc: f023 0210 bic.w r2, r3, #16 - 8004ed0: 687b ldr r3, [r7, #4] - 8004ed2: 621a str r2, [r3, #32] + 8005368: 687b ldr r3, [r7, #4] + 800536a: 6a1b ldr r3, [r3, #32] + 800536c: f023 0210 bic.w r2, r3, #16 + 8005370: 687b ldr r3, [r7, #4] + 8005372: 621a str r2, [r3, #32] /* Get the TIMx CR2 register value */ tmpcr2 = TIMx->CR2; - 8004ed4: 687b ldr r3, [r7, #4] - 8004ed6: 685b ldr r3, [r3, #4] - 8004ed8: 613b str r3, [r7, #16] + 8005374: 687b ldr r3, [r7, #4] + 8005376: 685b ldr r3, [r3, #4] + 8005378: 613b str r3, [r7, #16] /* Get the TIMx CCMR1 register value */ tmpccmrx = TIMx->CCMR1; - 8004eda: 687b ldr r3, [r7, #4] - 8004edc: 699b ldr r3, [r3, #24] - 8004ede: 60fb str r3, [r7, #12] + 800537a: 687b ldr r3, [r7, #4] + 800537c: 699b ldr r3, [r3, #24] + 800537e: 60fb str r3, [r7, #12] /* Reset the Output Compare mode and Capture/Compare selection Bits */ tmpccmrx &= ~TIM_CCMR1_OC2M; - 8004ee0: 68fb ldr r3, [r7, #12] - 8004ee2: f423 43e0 bic.w r3, r3, #28672 @ 0x7000 - 8004ee6: 60fb str r3, [r7, #12] + 8005380: 68fb ldr r3, [r7, #12] + 8005382: f423 43e0 bic.w r3, r3, #28672 @ 0x7000 + 8005386: 60fb str r3, [r7, #12] tmpccmrx &= ~TIM_CCMR1_CC2S; - 8004ee8: 68fb ldr r3, [r7, #12] - 8004eea: f423 7340 bic.w r3, r3, #768 @ 0x300 - 8004eee: 60fb str r3, [r7, #12] + 8005388: 68fb ldr r3, [r7, #12] + 800538a: f423 7340 bic.w r3, r3, #768 @ 0x300 + 800538e: 60fb str r3, [r7, #12] /* Select the Output Compare Mode */ tmpccmrx |= (OC_Config->OCMode << 8U); - 8004ef0: 683b ldr r3, [r7, #0] - 8004ef2: 681b ldr r3, [r3, #0] - 8004ef4: 021b lsls r3, r3, #8 - 8004ef6: 68fa ldr r2, [r7, #12] - 8004ef8: 4313 orrs r3, r2 - 8004efa: 60fb str r3, [r7, #12] + 8005390: 683b ldr r3, [r7, #0] + 8005392: 681b ldr r3, [r3, #0] + 8005394: 021b lsls r3, r3, #8 + 8005396: 68fa ldr r2, [r7, #12] + 8005398: 4313 orrs r3, r2 + 800539a: 60fb str r3, [r7, #12] /* Reset the Output Polarity level */ tmpccer &= ~TIM_CCER_CC2P; - 8004efc: 697b ldr r3, [r7, #20] - 8004efe: f023 0320 bic.w r3, r3, #32 - 8004f02: 617b str r3, [r7, #20] + 800539c: 697b ldr r3, [r7, #20] + 800539e: f023 0320 bic.w r3, r3, #32 + 80053a2: 617b str r3, [r7, #20] /* Set the Output Compare Polarity */ tmpccer |= (OC_Config->OCPolarity << 4U); - 8004f04: 683b ldr r3, [r7, #0] - 8004f06: 689b ldr r3, [r3, #8] - 8004f08: 011b lsls r3, r3, #4 - 8004f0a: 697a ldr r2, [r7, #20] - 8004f0c: 4313 orrs r3, r2 - 8004f0e: 617b str r3, [r7, #20] + 80053a4: 683b ldr r3, [r7, #0] + 80053a6: 689b ldr r3, [r3, #8] + 80053a8: 011b lsls r3, r3, #4 + 80053aa: 697a ldr r2, [r7, #20] + 80053ac: 4313 orrs r3, r2 + 80053ae: 617b str r3, [r7, #20] if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_2)) - 8004f10: 687b ldr r3, [r7, #4] - 8004f12: 4a22 ldr r2, [pc, #136] @ (8004f9c ) - 8004f14: 4293 cmp r3, r2 - 8004f16: d003 beq.n 8004f20 - 8004f18: 687b ldr r3, [r7, #4] - 8004f1a: 4a21 ldr r2, [pc, #132] @ (8004fa0 ) - 8004f1c: 4293 cmp r3, r2 - 8004f1e: d10d bne.n 8004f3c + 80053b0: 687b ldr r3, [r7, #4] + 80053b2: 4a22 ldr r2, [pc, #136] @ (800543c ) + 80053b4: 4293 cmp r3, r2 + 80053b6: d003 beq.n 80053c0 + 80053b8: 687b ldr r3, [r7, #4] + 80053ba: 4a21 ldr r2, [pc, #132] @ (8005440 ) + 80053bc: 4293 cmp r3, r2 + 80053be: d10d bne.n 80053dc { assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity)); /* Reset the Output N Polarity level */ tmpccer &= ~TIM_CCER_CC2NP; - 8004f20: 697b ldr r3, [r7, #20] - 8004f22: f023 0380 bic.w r3, r3, #128 @ 0x80 - 8004f26: 617b str r3, [r7, #20] + 80053c0: 697b ldr r3, [r7, #20] + 80053c2: f023 0380 bic.w r3, r3, #128 @ 0x80 + 80053c6: 617b str r3, [r7, #20] /* Set the Output N Polarity */ tmpccer |= (OC_Config->OCNPolarity << 4U); - 8004f28: 683b ldr r3, [r7, #0] - 8004f2a: 68db ldr r3, [r3, #12] - 8004f2c: 011b lsls r3, r3, #4 - 8004f2e: 697a ldr r2, [r7, #20] - 8004f30: 4313 orrs r3, r2 - 8004f32: 617b str r3, [r7, #20] + 80053c8: 683b ldr r3, [r7, #0] + 80053ca: 68db ldr r3, [r3, #12] + 80053cc: 011b lsls r3, r3, #4 + 80053ce: 697a ldr r2, [r7, #20] + 80053d0: 4313 orrs r3, r2 + 80053d2: 617b str r3, [r7, #20] /* Reset the Output N State */ tmpccer &= ~TIM_CCER_CC2NE; - 8004f34: 697b ldr r3, [r7, #20] - 8004f36: f023 0340 bic.w r3, r3, #64 @ 0x40 - 8004f3a: 617b str r3, [r7, #20] + 80053d4: 697b ldr r3, [r7, #20] + 80053d6: f023 0340 bic.w r3, r3, #64 @ 0x40 + 80053da: 617b str r3, [r7, #20] } if (IS_TIM_BREAK_INSTANCE(TIMx)) - 8004f3c: 687b ldr r3, [r7, #4] - 8004f3e: 4a17 ldr r2, [pc, #92] @ (8004f9c ) - 8004f40: 4293 cmp r3, r2 - 8004f42: d003 beq.n 8004f4c - 8004f44: 687b ldr r3, [r7, #4] - 8004f46: 4a16 ldr r2, [pc, #88] @ (8004fa0 ) - 8004f48: 4293 cmp r3, r2 - 8004f4a: d113 bne.n 8004f74 + 80053dc: 687b ldr r3, [r7, #4] + 80053de: 4a17 ldr r2, [pc, #92] @ (800543c ) + 80053e0: 4293 cmp r3, r2 + 80053e2: d003 beq.n 80053ec + 80053e4: 687b ldr r3, [r7, #4] + 80053e6: 4a16 ldr r2, [pc, #88] @ (8005440 ) + 80053e8: 4293 cmp r3, r2 + 80053ea: d113 bne.n 8005414 /* Check parameters */ assert_param(IS_TIM_OCNIDLE_STATE(OC_Config->OCNIdleState)); assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState)); /* Reset the Output Compare and Output Compare N IDLE State */ tmpcr2 &= ~TIM_CR2_OIS2; - 8004f4c: 693b ldr r3, [r7, #16] - 8004f4e: f423 6380 bic.w r3, r3, #1024 @ 0x400 - 8004f52: 613b str r3, [r7, #16] + 80053ec: 693b ldr r3, [r7, #16] + 80053ee: f423 6380 bic.w r3, r3, #1024 @ 0x400 + 80053f2: 613b str r3, [r7, #16] tmpcr2 &= ~TIM_CR2_OIS2N; - 8004f54: 693b ldr r3, [r7, #16] - 8004f56: f423 6300 bic.w r3, r3, #2048 @ 0x800 - 8004f5a: 613b str r3, [r7, #16] + 80053f4: 693b ldr r3, [r7, #16] + 80053f6: f423 6300 bic.w r3, r3, #2048 @ 0x800 + 80053fa: 613b str r3, [r7, #16] /* Set the Output Idle state */ tmpcr2 |= (OC_Config->OCIdleState << 2U); - 8004f5c: 683b ldr r3, [r7, #0] - 8004f5e: 695b ldr r3, [r3, #20] - 8004f60: 009b lsls r3, r3, #2 - 8004f62: 693a ldr r2, [r7, #16] - 8004f64: 4313 orrs r3, r2 - 8004f66: 613b str r3, [r7, #16] + 80053fc: 683b ldr r3, [r7, #0] + 80053fe: 695b ldr r3, [r3, #20] + 8005400: 009b lsls r3, r3, #2 + 8005402: 693a ldr r2, [r7, #16] + 8005404: 4313 orrs r3, r2 + 8005406: 613b str r3, [r7, #16] /* Set the Output N Idle state */ tmpcr2 |= (OC_Config->OCNIdleState << 2U); - 8004f68: 683b ldr r3, [r7, #0] - 8004f6a: 699b ldr r3, [r3, #24] - 8004f6c: 009b lsls r3, r3, #2 - 8004f6e: 693a ldr r2, [r7, #16] - 8004f70: 4313 orrs r3, r2 - 8004f72: 613b str r3, [r7, #16] + 8005408: 683b ldr r3, [r7, #0] + 800540a: 699b ldr r3, [r3, #24] + 800540c: 009b lsls r3, r3, #2 + 800540e: 693a ldr r2, [r7, #16] + 8005410: 4313 orrs r3, r2 + 8005412: 613b str r3, [r7, #16] } /* Write to TIMx CR2 */ TIMx->CR2 = tmpcr2; - 8004f74: 687b ldr r3, [r7, #4] - 8004f76: 693a ldr r2, [r7, #16] - 8004f78: 605a str r2, [r3, #4] + 8005414: 687b ldr r3, [r7, #4] + 8005416: 693a ldr r2, [r7, #16] + 8005418: 605a str r2, [r3, #4] /* Write to TIMx CCMR1 */ TIMx->CCMR1 = tmpccmrx; - 8004f7a: 687b ldr r3, [r7, #4] - 8004f7c: 68fa ldr r2, [r7, #12] - 8004f7e: 619a str r2, [r3, #24] + 800541a: 687b ldr r3, [r7, #4] + 800541c: 68fa ldr r2, [r7, #12] + 800541e: 619a str r2, [r3, #24] /* Set the Capture Compare Register value */ TIMx->CCR2 = OC_Config->Pulse; - 8004f80: 683b ldr r3, [r7, #0] - 8004f82: 685a ldr r2, [r3, #4] - 8004f84: 687b ldr r3, [r7, #4] - 8004f86: 639a str r2, [r3, #56] @ 0x38 + 8005420: 683b ldr r3, [r7, #0] + 8005422: 685a ldr r2, [r3, #4] + 8005424: 687b ldr r3, [r7, #4] + 8005426: 639a str r2, [r3, #56] @ 0x38 /* Write to TIMx CCER */ TIMx->CCER = tmpccer; - 8004f88: 687b ldr r3, [r7, #4] - 8004f8a: 697a ldr r2, [r7, #20] - 8004f8c: 621a str r2, [r3, #32] + 8005428: 687b ldr r3, [r7, #4] + 800542a: 697a ldr r2, [r7, #20] + 800542c: 621a str r2, [r3, #32] } - 8004f8e: bf00 nop - 8004f90: 371c adds r7, #28 - 8004f92: 46bd mov sp, r7 - 8004f94: f85d 7b04 ldr.w r7, [sp], #4 - 8004f98: 4770 bx lr - 8004f9a: bf00 nop - 8004f9c: 40010000 .word 0x40010000 - 8004fa0: 40010400 .word 0x40010400 + 800542e: bf00 nop + 8005430: 371c adds r7, #28 + 8005432: 46bd mov sp, r7 + 8005434: f85d 7b04 ldr.w r7, [sp], #4 + 8005438: 4770 bx lr + 800543a: bf00 nop + 800543c: 40010000 .word 0x40010000 + 8005440: 40010400 .word 0x40010400 -08004fa4 : +08005444 : * @param TIMx to select the TIM peripheral * @param OC_Config The output configuration structure * @retval None */ static void TIM_OC3_SetConfig(TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config) { - 8004fa4: b480 push {r7} - 8004fa6: b087 sub sp, #28 - 8004fa8: af00 add r7, sp, #0 - 8004faa: 6078 str r0, [r7, #4] - 8004fac: 6039 str r1, [r7, #0] + 8005444: b480 push {r7} + 8005446: b087 sub sp, #28 + 8005448: af00 add r7, sp, #0 + 800544a: 6078 str r0, [r7, #4] + 800544c: 6039 str r1, [r7, #0] uint32_t tmpccmrx; uint32_t tmpccer; uint32_t tmpcr2; /* Get the TIMx CCER register value */ tmpccer = TIMx->CCER; - 8004fae: 687b ldr r3, [r7, #4] - 8004fb0: 6a1b ldr r3, [r3, #32] - 8004fb2: 617b str r3, [r7, #20] + 800544e: 687b ldr r3, [r7, #4] + 8005450: 6a1b ldr r3, [r3, #32] + 8005452: 617b str r3, [r7, #20] /* Disable the Channel 3: Reset the CC2E Bit */ TIMx->CCER &= ~TIM_CCER_CC3E; - 8004fb4: 687b ldr r3, [r7, #4] - 8004fb6: 6a1b ldr r3, [r3, #32] - 8004fb8: f423 7280 bic.w r2, r3, #256 @ 0x100 - 8004fbc: 687b ldr r3, [r7, #4] - 8004fbe: 621a str r2, [r3, #32] + 8005454: 687b ldr r3, [r7, #4] + 8005456: 6a1b ldr r3, [r3, #32] + 8005458: f423 7280 bic.w r2, r3, #256 @ 0x100 + 800545c: 687b ldr r3, [r7, #4] + 800545e: 621a str r2, [r3, #32] /* Get the TIMx CR2 register value */ tmpcr2 = TIMx->CR2; - 8004fc0: 687b ldr r3, [r7, #4] - 8004fc2: 685b ldr r3, [r3, #4] - 8004fc4: 613b str r3, [r7, #16] + 8005460: 687b ldr r3, [r7, #4] + 8005462: 685b ldr r3, [r3, #4] + 8005464: 613b str r3, [r7, #16] /* Get the TIMx CCMR2 register value */ tmpccmrx = TIMx->CCMR2; - 8004fc6: 687b ldr r3, [r7, #4] - 8004fc8: 69db ldr r3, [r3, #28] - 8004fca: 60fb str r3, [r7, #12] + 8005466: 687b ldr r3, [r7, #4] + 8005468: 69db ldr r3, [r3, #28] + 800546a: 60fb str r3, [r7, #12] /* Reset the Output Compare mode and Capture/Compare selection Bits */ tmpccmrx &= ~TIM_CCMR2_OC3M; - 8004fcc: 68fb ldr r3, [r7, #12] - 8004fce: f023 0370 bic.w r3, r3, #112 @ 0x70 - 8004fd2: 60fb str r3, [r7, #12] + 800546c: 68fb ldr r3, [r7, #12] + 800546e: f023 0370 bic.w r3, r3, #112 @ 0x70 + 8005472: 60fb str r3, [r7, #12] tmpccmrx &= ~TIM_CCMR2_CC3S; - 8004fd4: 68fb ldr r3, [r7, #12] - 8004fd6: f023 0303 bic.w r3, r3, #3 - 8004fda: 60fb str r3, [r7, #12] + 8005474: 68fb ldr r3, [r7, #12] + 8005476: f023 0303 bic.w r3, r3, #3 + 800547a: 60fb str r3, [r7, #12] /* Select the Output Compare Mode */ tmpccmrx |= OC_Config->OCMode; - 8004fdc: 683b ldr r3, [r7, #0] - 8004fde: 681b ldr r3, [r3, #0] - 8004fe0: 68fa ldr r2, [r7, #12] - 8004fe2: 4313 orrs r3, r2 - 8004fe4: 60fb str r3, [r7, #12] + 800547c: 683b ldr r3, [r7, #0] + 800547e: 681b ldr r3, [r3, #0] + 8005480: 68fa ldr r2, [r7, #12] + 8005482: 4313 orrs r3, r2 + 8005484: 60fb str r3, [r7, #12] /* Reset the Output Polarity level */ tmpccer &= ~TIM_CCER_CC3P; - 8004fe6: 697b ldr r3, [r7, #20] - 8004fe8: f423 7300 bic.w r3, r3, #512 @ 0x200 - 8004fec: 617b str r3, [r7, #20] + 8005486: 697b ldr r3, [r7, #20] + 8005488: f423 7300 bic.w r3, r3, #512 @ 0x200 + 800548c: 617b str r3, [r7, #20] /* Set the Output Compare Polarity */ tmpccer |= (OC_Config->OCPolarity << 8U); - 8004fee: 683b ldr r3, [r7, #0] - 8004ff0: 689b ldr r3, [r3, #8] - 8004ff2: 021b lsls r3, r3, #8 - 8004ff4: 697a ldr r2, [r7, #20] - 8004ff6: 4313 orrs r3, r2 - 8004ff8: 617b str r3, [r7, #20] + 800548e: 683b ldr r3, [r7, #0] + 8005490: 689b ldr r3, [r3, #8] + 8005492: 021b lsls r3, r3, #8 + 8005494: 697a ldr r2, [r7, #20] + 8005496: 4313 orrs r3, r2 + 8005498: 617b str r3, [r7, #20] if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_3)) - 8004ffa: 687b ldr r3, [r7, #4] - 8004ffc: 4a21 ldr r2, [pc, #132] @ (8005084 ) - 8004ffe: 4293 cmp r3, r2 - 8005000: d003 beq.n 800500a - 8005002: 687b ldr r3, [r7, #4] - 8005004: 4a20 ldr r2, [pc, #128] @ (8005088 ) - 8005006: 4293 cmp r3, r2 - 8005008: d10d bne.n 8005026 + 800549a: 687b ldr r3, [r7, #4] + 800549c: 4a21 ldr r2, [pc, #132] @ (8005524 ) + 800549e: 4293 cmp r3, r2 + 80054a0: d003 beq.n 80054aa + 80054a2: 687b ldr r3, [r7, #4] + 80054a4: 4a20 ldr r2, [pc, #128] @ (8005528 ) + 80054a6: 4293 cmp r3, r2 + 80054a8: d10d bne.n 80054c6 { assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity)); /* Reset the Output N Polarity level */ tmpccer &= ~TIM_CCER_CC3NP; - 800500a: 697b ldr r3, [r7, #20] - 800500c: f423 6300 bic.w r3, r3, #2048 @ 0x800 - 8005010: 617b str r3, [r7, #20] + 80054aa: 697b ldr r3, [r7, #20] + 80054ac: f423 6300 bic.w r3, r3, #2048 @ 0x800 + 80054b0: 617b str r3, [r7, #20] /* Set the Output N Polarity */ tmpccer |= (OC_Config->OCNPolarity << 8U); - 8005012: 683b ldr r3, [r7, #0] - 8005014: 68db ldr r3, [r3, #12] - 8005016: 021b lsls r3, r3, #8 - 8005018: 697a ldr r2, [r7, #20] - 800501a: 4313 orrs r3, r2 - 800501c: 617b str r3, [r7, #20] + 80054b2: 683b ldr r3, [r7, #0] + 80054b4: 68db ldr r3, [r3, #12] + 80054b6: 021b lsls r3, r3, #8 + 80054b8: 697a ldr r2, [r7, #20] + 80054ba: 4313 orrs r3, r2 + 80054bc: 617b str r3, [r7, #20] /* Reset the Output N State */ tmpccer &= ~TIM_CCER_CC3NE; - 800501e: 697b ldr r3, [r7, #20] - 8005020: f423 6380 bic.w r3, r3, #1024 @ 0x400 - 8005024: 617b str r3, [r7, #20] + 80054be: 697b ldr r3, [r7, #20] + 80054c0: f423 6380 bic.w r3, r3, #1024 @ 0x400 + 80054c4: 617b str r3, [r7, #20] } if (IS_TIM_BREAK_INSTANCE(TIMx)) - 8005026: 687b ldr r3, [r7, #4] - 8005028: 4a16 ldr r2, [pc, #88] @ (8005084 ) - 800502a: 4293 cmp r3, r2 - 800502c: d003 beq.n 8005036 - 800502e: 687b ldr r3, [r7, #4] - 8005030: 4a15 ldr r2, [pc, #84] @ (8005088 ) - 8005032: 4293 cmp r3, r2 - 8005034: d113 bne.n 800505e + 80054c6: 687b ldr r3, [r7, #4] + 80054c8: 4a16 ldr r2, [pc, #88] @ (8005524 ) + 80054ca: 4293 cmp r3, r2 + 80054cc: d003 beq.n 80054d6 + 80054ce: 687b ldr r3, [r7, #4] + 80054d0: 4a15 ldr r2, [pc, #84] @ (8005528 ) + 80054d2: 4293 cmp r3, r2 + 80054d4: d113 bne.n 80054fe /* Check parameters */ assert_param(IS_TIM_OCNIDLE_STATE(OC_Config->OCNIdleState)); assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState)); /* Reset the Output Compare and Output Compare N IDLE State */ tmpcr2 &= ~TIM_CR2_OIS3; - 8005036: 693b ldr r3, [r7, #16] - 8005038: f423 5380 bic.w r3, r3, #4096 @ 0x1000 - 800503c: 613b str r3, [r7, #16] + 80054d6: 693b ldr r3, [r7, #16] + 80054d8: f423 5380 bic.w r3, r3, #4096 @ 0x1000 + 80054dc: 613b str r3, [r7, #16] tmpcr2 &= ~TIM_CR2_OIS3N; - 800503e: 693b ldr r3, [r7, #16] - 8005040: f423 5300 bic.w r3, r3, #8192 @ 0x2000 - 8005044: 613b str r3, [r7, #16] + 80054de: 693b ldr r3, [r7, #16] + 80054e0: f423 5300 bic.w r3, r3, #8192 @ 0x2000 + 80054e4: 613b str r3, [r7, #16] /* Set the Output Idle state */ tmpcr2 |= (OC_Config->OCIdleState << 4U); - 8005046: 683b ldr r3, [r7, #0] - 8005048: 695b ldr r3, [r3, #20] - 800504a: 011b lsls r3, r3, #4 - 800504c: 693a ldr r2, [r7, #16] - 800504e: 4313 orrs r3, r2 - 8005050: 613b str r3, [r7, #16] + 80054e6: 683b ldr r3, [r7, #0] + 80054e8: 695b ldr r3, [r3, #20] + 80054ea: 011b lsls r3, r3, #4 + 80054ec: 693a ldr r2, [r7, #16] + 80054ee: 4313 orrs r3, r2 + 80054f0: 613b str r3, [r7, #16] /* Set the Output N Idle state */ tmpcr2 |= (OC_Config->OCNIdleState << 4U); - 8005052: 683b ldr r3, [r7, #0] - 8005054: 699b ldr r3, [r3, #24] - 8005056: 011b lsls r3, r3, #4 - 8005058: 693a ldr r2, [r7, #16] - 800505a: 4313 orrs r3, r2 - 800505c: 613b str r3, [r7, #16] + 80054f2: 683b ldr r3, [r7, #0] + 80054f4: 699b ldr r3, [r3, #24] + 80054f6: 011b lsls r3, r3, #4 + 80054f8: 693a ldr r2, [r7, #16] + 80054fa: 4313 orrs r3, r2 + 80054fc: 613b str r3, [r7, #16] } /* Write to TIMx CR2 */ TIMx->CR2 = tmpcr2; - 800505e: 687b ldr r3, [r7, #4] - 8005060: 693a ldr r2, [r7, #16] - 8005062: 605a str r2, [r3, #4] + 80054fe: 687b ldr r3, [r7, #4] + 8005500: 693a ldr r2, [r7, #16] + 8005502: 605a str r2, [r3, #4] /* Write to TIMx CCMR2 */ TIMx->CCMR2 = tmpccmrx; - 8005064: 687b ldr r3, [r7, #4] - 8005066: 68fa ldr r2, [r7, #12] - 8005068: 61da str r2, [r3, #28] + 8005504: 687b ldr r3, [r7, #4] + 8005506: 68fa ldr r2, [r7, #12] + 8005508: 61da str r2, [r3, #28] /* Set the Capture Compare Register value */ TIMx->CCR3 = OC_Config->Pulse; - 800506a: 683b ldr r3, [r7, #0] - 800506c: 685a ldr r2, [r3, #4] - 800506e: 687b ldr r3, [r7, #4] - 8005070: 63da str r2, [r3, #60] @ 0x3c + 800550a: 683b ldr r3, [r7, #0] + 800550c: 685a ldr r2, [r3, #4] + 800550e: 687b ldr r3, [r7, #4] + 8005510: 63da str r2, [r3, #60] @ 0x3c /* Write to TIMx CCER */ TIMx->CCER = tmpccer; - 8005072: 687b ldr r3, [r7, #4] - 8005074: 697a ldr r2, [r7, #20] - 8005076: 621a str r2, [r3, #32] + 8005512: 687b ldr r3, [r7, #4] + 8005514: 697a ldr r2, [r7, #20] + 8005516: 621a str r2, [r3, #32] } - 8005078: bf00 nop - 800507a: 371c adds r7, #28 - 800507c: 46bd mov sp, r7 - 800507e: f85d 7b04 ldr.w r7, [sp], #4 - 8005082: 4770 bx lr - 8005084: 40010000 .word 0x40010000 - 8005088: 40010400 .word 0x40010400 + 8005518: bf00 nop + 800551a: 371c adds r7, #28 + 800551c: 46bd mov sp, r7 + 800551e: f85d 7b04 ldr.w r7, [sp], #4 + 8005522: 4770 bx lr + 8005524: 40010000 .word 0x40010000 + 8005528: 40010400 .word 0x40010400 -0800508c : +0800552c : * @param TIMx to select the TIM peripheral * @param OC_Config The output configuration structure * @retval None */ static void TIM_OC4_SetConfig(TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config) { - 800508c: b480 push {r7} - 800508e: b087 sub sp, #28 - 8005090: af00 add r7, sp, #0 - 8005092: 6078 str r0, [r7, #4] - 8005094: 6039 str r1, [r7, #0] + 800552c: b480 push {r7} + 800552e: b087 sub sp, #28 + 8005530: af00 add r7, sp, #0 + 8005532: 6078 str r0, [r7, #4] + 8005534: 6039 str r1, [r7, #0] uint32_t tmpccmrx; uint32_t tmpccer; uint32_t tmpcr2; /* Get the TIMx CCER register value */ tmpccer = TIMx->CCER; - 8005096: 687b ldr r3, [r7, #4] - 8005098: 6a1b ldr r3, [r3, #32] - 800509a: 613b str r3, [r7, #16] + 8005536: 687b ldr r3, [r7, #4] + 8005538: 6a1b ldr r3, [r3, #32] + 800553a: 613b str r3, [r7, #16] /* Disable the Channel 4: Reset the CC4E Bit */ TIMx->CCER &= ~TIM_CCER_CC4E; - 800509c: 687b ldr r3, [r7, #4] - 800509e: 6a1b ldr r3, [r3, #32] - 80050a0: f423 5280 bic.w r2, r3, #4096 @ 0x1000 - 80050a4: 687b ldr r3, [r7, #4] - 80050a6: 621a str r2, [r3, #32] + 800553c: 687b ldr r3, [r7, #4] + 800553e: 6a1b ldr r3, [r3, #32] + 8005540: f423 5280 bic.w r2, r3, #4096 @ 0x1000 + 8005544: 687b ldr r3, [r7, #4] + 8005546: 621a str r2, [r3, #32] /* Get the TIMx CR2 register value */ tmpcr2 = TIMx->CR2; - 80050a8: 687b ldr r3, [r7, #4] - 80050aa: 685b ldr r3, [r3, #4] - 80050ac: 617b str r3, [r7, #20] + 8005548: 687b ldr r3, [r7, #4] + 800554a: 685b ldr r3, [r3, #4] + 800554c: 617b str r3, [r7, #20] /* Get the TIMx CCMR2 register value */ tmpccmrx = TIMx->CCMR2; - 80050ae: 687b ldr r3, [r7, #4] - 80050b0: 69db ldr r3, [r3, #28] - 80050b2: 60fb str r3, [r7, #12] + 800554e: 687b ldr r3, [r7, #4] + 8005550: 69db ldr r3, [r3, #28] + 8005552: 60fb str r3, [r7, #12] /* Reset the Output Compare mode and Capture/Compare selection Bits */ tmpccmrx &= ~TIM_CCMR2_OC4M; - 80050b4: 68fb ldr r3, [r7, #12] - 80050b6: f423 43e0 bic.w r3, r3, #28672 @ 0x7000 - 80050ba: 60fb str r3, [r7, #12] + 8005554: 68fb ldr r3, [r7, #12] + 8005556: f423 43e0 bic.w r3, r3, #28672 @ 0x7000 + 800555a: 60fb str r3, [r7, #12] tmpccmrx &= ~TIM_CCMR2_CC4S; - 80050bc: 68fb ldr r3, [r7, #12] - 80050be: f423 7340 bic.w r3, r3, #768 @ 0x300 - 80050c2: 60fb str r3, [r7, #12] + 800555c: 68fb ldr r3, [r7, #12] + 800555e: f423 7340 bic.w r3, r3, #768 @ 0x300 + 8005562: 60fb str r3, [r7, #12] /* Select the Output Compare Mode */ tmpccmrx |= (OC_Config->OCMode << 8U); - 80050c4: 683b ldr r3, [r7, #0] - 80050c6: 681b ldr r3, [r3, #0] - 80050c8: 021b lsls r3, r3, #8 - 80050ca: 68fa ldr r2, [r7, #12] - 80050cc: 4313 orrs r3, r2 - 80050ce: 60fb str r3, [r7, #12] + 8005564: 683b ldr r3, [r7, #0] + 8005566: 681b ldr r3, [r3, #0] + 8005568: 021b lsls r3, r3, #8 + 800556a: 68fa ldr r2, [r7, #12] + 800556c: 4313 orrs r3, r2 + 800556e: 60fb str r3, [r7, #12] /* Reset the Output Polarity level */ tmpccer &= ~TIM_CCER_CC4P; - 80050d0: 693b ldr r3, [r7, #16] - 80050d2: f423 5300 bic.w r3, r3, #8192 @ 0x2000 - 80050d6: 613b str r3, [r7, #16] + 8005570: 693b ldr r3, [r7, #16] + 8005572: f423 5300 bic.w r3, r3, #8192 @ 0x2000 + 8005576: 613b str r3, [r7, #16] /* Set the Output Compare Polarity */ tmpccer |= (OC_Config->OCPolarity << 12U); - 80050d8: 683b ldr r3, [r7, #0] - 80050da: 689b ldr r3, [r3, #8] - 80050dc: 031b lsls r3, r3, #12 - 80050de: 693a ldr r2, [r7, #16] - 80050e0: 4313 orrs r3, r2 - 80050e2: 613b str r3, [r7, #16] + 8005578: 683b ldr r3, [r7, #0] + 800557a: 689b ldr r3, [r3, #8] + 800557c: 031b lsls r3, r3, #12 + 800557e: 693a ldr r2, [r7, #16] + 8005580: 4313 orrs r3, r2 + 8005582: 613b str r3, [r7, #16] if (IS_TIM_BREAK_INSTANCE(TIMx)) - 80050e4: 687b ldr r3, [r7, #4] - 80050e6: 4a12 ldr r2, [pc, #72] @ (8005130 ) - 80050e8: 4293 cmp r3, r2 - 80050ea: d003 beq.n 80050f4 - 80050ec: 687b ldr r3, [r7, #4] - 80050ee: 4a11 ldr r2, [pc, #68] @ (8005134 ) - 80050f0: 4293 cmp r3, r2 - 80050f2: d109 bne.n 8005108 + 8005584: 687b ldr r3, [r7, #4] + 8005586: 4a12 ldr r2, [pc, #72] @ (80055d0 ) + 8005588: 4293 cmp r3, r2 + 800558a: d003 beq.n 8005594 + 800558c: 687b ldr r3, [r7, #4] + 800558e: 4a11 ldr r2, [pc, #68] @ (80055d4 ) + 8005590: 4293 cmp r3, r2 + 8005592: d109 bne.n 80055a8 { /* Check parameters */ assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState)); /* Reset the Output Compare IDLE State */ tmpcr2 &= ~TIM_CR2_OIS4; - 80050f4: 697b ldr r3, [r7, #20] - 80050f6: f423 4380 bic.w r3, r3, #16384 @ 0x4000 - 80050fa: 617b str r3, [r7, #20] + 8005594: 697b ldr r3, [r7, #20] + 8005596: f423 4380 bic.w r3, r3, #16384 @ 0x4000 + 800559a: 617b str r3, [r7, #20] /* Set the Output Idle state */ tmpcr2 |= (OC_Config->OCIdleState << 6U); - 80050fc: 683b ldr r3, [r7, #0] - 80050fe: 695b ldr r3, [r3, #20] - 8005100: 019b lsls r3, r3, #6 - 8005102: 697a ldr r2, [r7, #20] - 8005104: 4313 orrs r3, r2 - 8005106: 617b str r3, [r7, #20] + 800559c: 683b ldr r3, [r7, #0] + 800559e: 695b ldr r3, [r3, #20] + 80055a0: 019b lsls r3, r3, #6 + 80055a2: 697a ldr r2, [r7, #20] + 80055a4: 4313 orrs r3, r2 + 80055a6: 617b str r3, [r7, #20] } /* Write to TIMx CR2 */ TIMx->CR2 = tmpcr2; - 8005108: 687b ldr r3, [r7, #4] - 800510a: 697a ldr r2, [r7, #20] - 800510c: 605a str r2, [r3, #4] + 80055a8: 687b ldr r3, [r7, #4] + 80055aa: 697a ldr r2, [r7, #20] + 80055ac: 605a str r2, [r3, #4] /* Write to TIMx CCMR2 */ TIMx->CCMR2 = tmpccmrx; - 800510e: 687b ldr r3, [r7, #4] - 8005110: 68fa ldr r2, [r7, #12] - 8005112: 61da str r2, [r3, #28] + 80055ae: 687b ldr r3, [r7, #4] + 80055b0: 68fa ldr r2, [r7, #12] + 80055b2: 61da str r2, [r3, #28] /* Set the Capture Compare Register value */ TIMx->CCR4 = OC_Config->Pulse; - 8005114: 683b ldr r3, [r7, #0] - 8005116: 685a ldr r2, [r3, #4] - 8005118: 687b ldr r3, [r7, #4] - 800511a: 641a str r2, [r3, #64] @ 0x40 + 80055b4: 683b ldr r3, [r7, #0] + 80055b6: 685a ldr r2, [r3, #4] + 80055b8: 687b ldr r3, [r7, #4] + 80055ba: 641a str r2, [r3, #64] @ 0x40 /* Write to TIMx CCER */ TIMx->CCER = tmpccer; - 800511c: 687b ldr r3, [r7, #4] - 800511e: 693a ldr r2, [r7, #16] - 8005120: 621a str r2, [r3, #32] + 80055bc: 687b ldr r3, [r7, #4] + 80055be: 693a ldr r2, [r7, #16] + 80055c0: 621a str r2, [r3, #32] } - 8005122: bf00 nop - 8005124: 371c adds r7, #28 - 8005126: 46bd mov sp, r7 - 8005128: f85d 7b04 ldr.w r7, [sp], #4 - 800512c: 4770 bx lr - 800512e: bf00 nop - 8005130: 40010000 .word 0x40010000 - 8005134: 40010400 .word 0x40010400 + 80055c2: bf00 nop + 80055c4: 371c adds r7, #28 + 80055c6: 46bd mov sp, r7 + 80055c8: f85d 7b04 ldr.w r7, [sp], #4 + 80055cc: 4770 bx lr + 80055ce: bf00 nop + 80055d0: 40010000 .word 0x40010000 + 80055d4: 40010400 .word 0x40010400 -08005138 : +080055d8 : * @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) { - 8005138: b480 push {r7} - 800513a: b087 sub sp, #28 - 800513c: af00 add r7, sp, #0 - 800513e: 60f8 str r0, [r7, #12] - 8005140: 60b9 str r1, [r7, #8] - 8005142: 607a str r2, [r7, #4] + 80055d8: b480 push {r7} + 80055da: b087 sub sp, #28 + 80055dc: af00 add r7, sp, #0 + 80055de: 60f8 str r0, [r7, #12] + 80055e0: 60b9 str r1, [r7, #8] + 80055e2: 607a str r2, [r7, #4] uint32_t tmpccmr1; uint32_t tmpccer; /* Disable the Channel 1: Reset the CC1E Bit */ tmpccer = TIMx->CCER; - 8005144: 68fb ldr r3, [r7, #12] - 8005146: 6a1b ldr r3, [r3, #32] - 8005148: 617b str r3, [r7, #20] + 80055e4: 68fb ldr r3, [r7, #12] + 80055e6: 6a1b ldr r3, [r3, #32] + 80055e8: 617b str r3, [r7, #20] TIMx->CCER &= ~TIM_CCER_CC1E; - 800514a: 68fb ldr r3, [r7, #12] - 800514c: 6a1b ldr r3, [r3, #32] - 800514e: f023 0201 bic.w r2, r3, #1 - 8005152: 68fb ldr r3, [r7, #12] - 8005154: 621a str r2, [r3, #32] + 80055ea: 68fb ldr r3, [r7, #12] + 80055ec: 6a1b ldr r3, [r3, #32] + 80055ee: f023 0201 bic.w r2, r3, #1 + 80055f2: 68fb ldr r3, [r7, #12] + 80055f4: 621a str r2, [r3, #32] tmpccmr1 = TIMx->CCMR1; - 8005156: 68fb ldr r3, [r7, #12] - 8005158: 699b ldr r3, [r3, #24] - 800515a: 613b str r3, [r7, #16] + 80055f6: 68fb ldr r3, [r7, #12] + 80055f8: 699b ldr r3, [r3, #24] + 80055fa: 613b str r3, [r7, #16] /* Set the filter */ tmpccmr1 &= ~TIM_CCMR1_IC1F; - 800515c: 693b ldr r3, [r7, #16] - 800515e: f023 03f0 bic.w r3, r3, #240 @ 0xf0 - 8005162: 613b str r3, [r7, #16] + 80055fc: 693b ldr r3, [r7, #16] + 80055fe: f023 03f0 bic.w r3, r3, #240 @ 0xf0 + 8005602: 613b str r3, [r7, #16] tmpccmr1 |= (TIM_ICFilter << 4U); - 8005164: 687b ldr r3, [r7, #4] - 8005166: 011b lsls r3, r3, #4 - 8005168: 693a ldr r2, [r7, #16] - 800516a: 4313 orrs r3, r2 - 800516c: 613b str r3, [r7, #16] + 8005604: 687b ldr r3, [r7, #4] + 8005606: 011b lsls r3, r3, #4 + 8005608: 693a ldr r2, [r7, #16] + 800560a: 4313 orrs r3, r2 + 800560c: 613b str r3, [r7, #16] /* Select the Polarity and set the CC1E Bit */ tmpccer &= ~(TIM_CCER_CC1P | TIM_CCER_CC1NP); - 800516e: 697b ldr r3, [r7, #20] - 8005170: f023 030a bic.w r3, r3, #10 - 8005174: 617b str r3, [r7, #20] + 800560e: 697b ldr r3, [r7, #20] + 8005610: f023 030a bic.w r3, r3, #10 + 8005614: 617b str r3, [r7, #20] tmpccer |= TIM_ICPolarity; - 8005176: 697a ldr r2, [r7, #20] - 8005178: 68bb ldr r3, [r7, #8] - 800517a: 4313 orrs r3, r2 - 800517c: 617b str r3, [r7, #20] + 8005616: 697a ldr r2, [r7, #20] + 8005618: 68bb ldr r3, [r7, #8] + 800561a: 4313 orrs r3, r2 + 800561c: 617b str r3, [r7, #20] /* Write to TIMx CCMR1 and CCER registers */ TIMx->CCMR1 = tmpccmr1; - 800517e: 68fb ldr r3, [r7, #12] - 8005180: 693a ldr r2, [r7, #16] - 8005182: 619a str r2, [r3, #24] + 800561e: 68fb ldr r3, [r7, #12] + 8005620: 693a ldr r2, [r7, #16] + 8005622: 619a str r2, [r3, #24] TIMx->CCER = tmpccer; - 8005184: 68fb ldr r3, [r7, #12] - 8005186: 697a ldr r2, [r7, #20] - 8005188: 621a str r2, [r3, #32] + 8005624: 68fb ldr r3, [r7, #12] + 8005626: 697a ldr r2, [r7, #20] + 8005628: 621a str r2, [r3, #32] } - 800518a: bf00 nop - 800518c: 371c adds r7, #28 - 800518e: 46bd mov sp, r7 - 8005190: f85d 7b04 ldr.w r7, [sp], #4 - 8005194: 4770 bx lr + 800562a: bf00 nop + 800562c: 371c adds r7, #28 + 800562e: 46bd mov sp, r7 + 8005630: f85d 7b04 ldr.w r7, [sp], #4 + 8005634: 4770 bx lr -08005196 : +08005636 : * @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) { - 8005196: b480 push {r7} - 8005198: b087 sub sp, #28 - 800519a: af00 add r7, sp, #0 - 800519c: 60f8 str r0, [r7, #12] - 800519e: 60b9 str r1, [r7, #8] - 80051a0: 607a str r2, [r7, #4] + 8005636: b480 push {r7} + 8005638: b087 sub sp, #28 + 800563a: af00 add r7, sp, #0 + 800563c: 60f8 str r0, [r7, #12] + 800563e: 60b9 str r1, [r7, #8] + 8005640: 607a str r2, [r7, #4] uint32_t tmpccmr1; uint32_t tmpccer; /* Disable the Channel 2: Reset the CC2E Bit */ tmpccer = TIMx->CCER; - 80051a2: 68fb ldr r3, [r7, #12] - 80051a4: 6a1b ldr r3, [r3, #32] - 80051a6: 617b str r3, [r7, #20] + 8005642: 68fb ldr r3, [r7, #12] + 8005644: 6a1b ldr r3, [r3, #32] + 8005646: 617b str r3, [r7, #20] TIMx->CCER &= ~TIM_CCER_CC2E; - 80051a8: 68fb ldr r3, [r7, #12] - 80051aa: 6a1b ldr r3, [r3, #32] - 80051ac: f023 0210 bic.w r2, r3, #16 - 80051b0: 68fb ldr r3, [r7, #12] - 80051b2: 621a str r2, [r3, #32] + 8005648: 68fb ldr r3, [r7, #12] + 800564a: 6a1b ldr r3, [r3, #32] + 800564c: f023 0210 bic.w r2, r3, #16 + 8005650: 68fb ldr r3, [r7, #12] + 8005652: 621a str r2, [r3, #32] tmpccmr1 = TIMx->CCMR1; - 80051b4: 68fb ldr r3, [r7, #12] - 80051b6: 699b ldr r3, [r3, #24] - 80051b8: 613b str r3, [r7, #16] + 8005654: 68fb ldr r3, [r7, #12] + 8005656: 699b ldr r3, [r3, #24] + 8005658: 613b str r3, [r7, #16] /* Set the filter */ tmpccmr1 &= ~TIM_CCMR1_IC2F; - 80051ba: 693b ldr r3, [r7, #16] - 80051bc: f423 4370 bic.w r3, r3, #61440 @ 0xf000 - 80051c0: 613b str r3, [r7, #16] + 800565a: 693b ldr r3, [r7, #16] + 800565c: f423 4370 bic.w r3, r3, #61440 @ 0xf000 + 8005660: 613b str r3, [r7, #16] tmpccmr1 |= (TIM_ICFilter << 12U); - 80051c2: 687b ldr r3, [r7, #4] - 80051c4: 031b lsls r3, r3, #12 - 80051c6: 693a ldr r2, [r7, #16] - 80051c8: 4313 orrs r3, r2 - 80051ca: 613b str r3, [r7, #16] + 8005662: 687b ldr r3, [r7, #4] + 8005664: 031b lsls r3, r3, #12 + 8005666: 693a ldr r2, [r7, #16] + 8005668: 4313 orrs r3, r2 + 800566a: 613b str r3, [r7, #16] /* Select the Polarity and set the CC2E Bit */ tmpccer &= ~(TIM_CCER_CC2P | TIM_CCER_CC2NP); - 80051cc: 697b ldr r3, [r7, #20] - 80051ce: f023 03a0 bic.w r3, r3, #160 @ 0xa0 - 80051d2: 617b str r3, [r7, #20] + 800566c: 697b ldr r3, [r7, #20] + 800566e: f023 03a0 bic.w r3, r3, #160 @ 0xa0 + 8005672: 617b str r3, [r7, #20] tmpccer |= (TIM_ICPolarity << 4U); - 80051d4: 68bb ldr r3, [r7, #8] - 80051d6: 011b lsls r3, r3, #4 - 80051d8: 697a ldr r2, [r7, #20] - 80051da: 4313 orrs r3, r2 - 80051dc: 617b str r3, [r7, #20] + 8005674: 68bb ldr r3, [r7, #8] + 8005676: 011b lsls r3, r3, #4 + 8005678: 697a ldr r2, [r7, #20] + 800567a: 4313 orrs r3, r2 + 800567c: 617b str r3, [r7, #20] /* Write to TIMx CCMR1 and CCER registers */ TIMx->CCMR1 = tmpccmr1 ; - 80051de: 68fb ldr r3, [r7, #12] - 80051e0: 693a ldr r2, [r7, #16] - 80051e2: 619a str r2, [r3, #24] + 800567e: 68fb ldr r3, [r7, #12] + 8005680: 693a ldr r2, [r7, #16] + 8005682: 619a str r2, [r3, #24] TIMx->CCER = tmpccer; - 80051e4: 68fb ldr r3, [r7, #12] - 80051e6: 697a ldr r2, [r7, #20] - 80051e8: 621a str r2, [r3, #32] + 8005684: 68fb ldr r3, [r7, #12] + 8005686: 697a ldr r2, [r7, #20] + 8005688: 621a str r2, [r3, #32] } - 80051ea: bf00 nop - 80051ec: 371c adds r7, #28 - 80051ee: 46bd mov sp, r7 - 80051f0: f85d 7b04 ldr.w r7, [sp], #4 - 80051f4: 4770 bx lr + 800568a: bf00 nop + 800568c: 371c adds r7, #28 + 800568e: 46bd mov sp, r7 + 8005690: f85d 7b04 ldr.w r7, [sp], #4 + 8005694: 4770 bx lr -080051f6 : +08005696 : * @arg TIM_TS_TI2FP2: Filtered Timer Input 2 * @arg TIM_TS_ETRF: External Trigger input * @retval None */ static void TIM_ITRx_SetConfig(TIM_TypeDef *TIMx, uint32_t InputTriggerSource) { - 80051f6: b480 push {r7} - 80051f8: b085 sub sp, #20 - 80051fa: af00 add r7, sp, #0 - 80051fc: 6078 str r0, [r7, #4] - 80051fe: 6039 str r1, [r7, #0] + 8005696: b480 push {r7} + 8005698: b085 sub sp, #20 + 800569a: af00 add r7, sp, #0 + 800569c: 6078 str r0, [r7, #4] + 800569e: 6039 str r1, [r7, #0] uint32_t tmpsmcr; /* Get the TIMx SMCR register value */ tmpsmcr = TIMx->SMCR; - 8005200: 687b ldr r3, [r7, #4] - 8005202: 689b ldr r3, [r3, #8] - 8005204: 60fb str r3, [r7, #12] + 80056a0: 687b ldr r3, [r7, #4] + 80056a2: 689b ldr r3, [r3, #8] + 80056a4: 60fb str r3, [r7, #12] /* Reset the TS Bits */ tmpsmcr &= ~TIM_SMCR_TS; - 8005206: 68fb ldr r3, [r7, #12] - 8005208: f023 0370 bic.w r3, r3, #112 @ 0x70 - 800520c: 60fb str r3, [r7, #12] + 80056a6: 68fb ldr r3, [r7, #12] + 80056a8: f023 0370 bic.w r3, r3, #112 @ 0x70 + 80056ac: 60fb str r3, [r7, #12] /* Set the Input Trigger source and the slave mode*/ tmpsmcr |= (InputTriggerSource | TIM_SLAVEMODE_EXTERNAL1); - 800520e: 683a ldr r2, [r7, #0] - 8005210: 68fb ldr r3, [r7, #12] - 8005212: 4313 orrs r3, r2 - 8005214: f043 0307 orr.w r3, r3, #7 - 8005218: 60fb str r3, [r7, #12] + 80056ae: 683a ldr r2, [r7, #0] + 80056b0: 68fb ldr r3, [r7, #12] + 80056b2: 4313 orrs r3, r2 + 80056b4: f043 0307 orr.w r3, r3, #7 + 80056b8: 60fb str r3, [r7, #12] /* Write to TIMx SMCR */ TIMx->SMCR = tmpsmcr; - 800521a: 687b ldr r3, [r7, #4] - 800521c: 68fa ldr r2, [r7, #12] - 800521e: 609a str r2, [r3, #8] + 80056ba: 687b ldr r3, [r7, #4] + 80056bc: 68fa ldr r2, [r7, #12] + 80056be: 609a str r2, [r3, #8] } - 8005220: bf00 nop - 8005222: 3714 adds r7, #20 - 8005224: 46bd mov sp, r7 - 8005226: f85d 7b04 ldr.w r7, [sp], #4 - 800522a: 4770 bx lr + 80056c0: bf00 nop + 80056c2: 3714 adds r7, #20 + 80056c4: 46bd mov sp, r7 + 80056c6: f85d 7b04 ldr.w r7, [sp], #4 + 80056ca: 4770 bx lr -0800522c : +080056cc : * 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) { - 800522c: b480 push {r7} - 800522e: b087 sub sp, #28 - 8005230: af00 add r7, sp, #0 - 8005232: 60f8 str r0, [r7, #12] - 8005234: 60b9 str r1, [r7, #8] - 8005236: 607a str r2, [r7, #4] - 8005238: 603b str r3, [r7, #0] + 80056cc: b480 push {r7} + 80056ce: b087 sub sp, #28 + 80056d0: af00 add r7, sp, #0 + 80056d2: 60f8 str r0, [r7, #12] + 80056d4: 60b9 str r1, [r7, #8] + 80056d6: 607a str r2, [r7, #4] + 80056d8: 603b str r3, [r7, #0] uint32_t tmpsmcr; tmpsmcr = TIMx->SMCR; - 800523a: 68fb ldr r3, [r7, #12] - 800523c: 689b ldr r3, [r3, #8] - 800523e: 617b str r3, [r7, #20] + 80056da: 68fb ldr r3, [r7, #12] + 80056dc: 689b ldr r3, [r3, #8] + 80056de: 617b str r3, [r7, #20] /* Reset the ETR Bits */ tmpsmcr &= ~(TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP); - 8005240: 697b ldr r3, [r7, #20] - 8005242: f423 437f bic.w r3, r3, #65280 @ 0xff00 - 8005246: 617b str r3, [r7, #20] + 80056e0: 697b ldr r3, [r7, #20] + 80056e2: f423 437f bic.w r3, r3, #65280 @ 0xff00 + 80056e6: 617b str r3, [r7, #20] /* Set the Prescaler, the Filter value and the Polarity */ tmpsmcr |= (uint32_t)(TIM_ExtTRGPrescaler | (TIM_ExtTRGPolarity | (ExtTRGFilter << 8U))); - 8005248: 683b ldr r3, [r7, #0] - 800524a: 021a lsls r2, r3, #8 - 800524c: 687b ldr r3, [r7, #4] - 800524e: 431a orrs r2, r3 - 8005250: 68bb ldr r3, [r7, #8] - 8005252: 4313 orrs r3, r2 - 8005254: 697a ldr r2, [r7, #20] - 8005256: 4313 orrs r3, r2 - 8005258: 617b str r3, [r7, #20] + 80056e8: 683b ldr r3, [r7, #0] + 80056ea: 021a lsls r2, r3, #8 + 80056ec: 687b ldr r3, [r7, #4] + 80056ee: 431a orrs r2, r3 + 80056f0: 68bb ldr r3, [r7, #8] + 80056f2: 4313 orrs r3, r2 + 80056f4: 697a ldr r2, [r7, #20] + 80056f6: 4313 orrs r3, r2 + 80056f8: 617b str r3, [r7, #20] /* Write to TIMx SMCR */ TIMx->SMCR = tmpsmcr; - 800525a: 68fb ldr r3, [r7, #12] - 800525c: 697a ldr r2, [r7, #20] - 800525e: 609a str r2, [r3, #8] + 80056fa: 68fb ldr r3, [r7, #12] + 80056fc: 697a ldr r2, [r7, #20] + 80056fe: 609a str r2, [r3, #8] } - 8005260: bf00 nop - 8005262: 371c adds r7, #28 - 8005264: 46bd mov sp, r7 - 8005266: f85d 7b04 ldr.w r7, [sp], #4 - 800526a: 4770 bx lr + 8005700: bf00 nop + 8005702: 371c adds r7, #28 + 8005704: 46bd mov sp, r7 + 8005706: f85d 7b04 ldr.w r7, [sp], #4 + 800570a: 4770 bx lr -0800526c : +0800570c : * mode. * @retval HAL status */ HAL_StatusTypeDef HAL_TIMEx_MasterConfigSynchronization(TIM_HandleTypeDef *htim, const TIM_MasterConfigTypeDef *sMasterConfig) { - 800526c: b480 push {r7} - 800526e: b085 sub sp, #20 - 8005270: af00 add r7, sp, #0 - 8005272: 6078 str r0, [r7, #4] - 8005274: 6039 str r1, [r7, #0] + 800570c: b480 push {r7} + 800570e: b085 sub sp, #20 + 8005710: af00 add r7, sp, #0 + 8005712: 6078 str r0, [r7, #4] + 8005714: 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); - 8005276: 687b ldr r3, [r7, #4] - 8005278: f893 303c ldrb.w r3, [r3, #60] @ 0x3c - 800527c: 2b01 cmp r3, #1 - 800527e: d101 bne.n 8005284 - 8005280: 2302 movs r3, #2 - 8005282: e05a b.n 800533a - 8005284: 687b ldr r3, [r7, #4] - 8005286: 2201 movs r2, #1 - 8005288: f883 203c strb.w r2, [r3, #60] @ 0x3c + 8005716: 687b ldr r3, [r7, #4] + 8005718: f893 303c ldrb.w r3, [r3, #60] @ 0x3c + 800571c: 2b01 cmp r3, #1 + 800571e: d101 bne.n 8005724 + 8005720: 2302 movs r3, #2 + 8005722: e05a b.n 80057da + 8005724: 687b ldr r3, [r7, #4] + 8005726: 2201 movs r2, #1 + 8005728: f883 203c strb.w r2, [r3, #60] @ 0x3c /* Change the handler state */ htim->State = HAL_TIM_STATE_BUSY; - 800528c: 687b ldr r3, [r7, #4] - 800528e: 2202 movs r2, #2 - 8005290: f883 203d strb.w r2, [r3, #61] @ 0x3d + 800572c: 687b ldr r3, [r7, #4] + 800572e: 2202 movs r2, #2 + 8005730: f883 203d strb.w r2, [r3, #61] @ 0x3d /* Get the TIMx CR2 register value */ tmpcr2 = htim->Instance->CR2; - 8005294: 687b ldr r3, [r7, #4] - 8005296: 681b ldr r3, [r3, #0] - 8005298: 685b ldr r3, [r3, #4] - 800529a: 60fb str r3, [r7, #12] + 8005734: 687b ldr r3, [r7, #4] + 8005736: 681b ldr r3, [r3, #0] + 8005738: 685b ldr r3, [r3, #4] + 800573a: 60fb str r3, [r7, #12] /* Get the TIMx SMCR register value */ tmpsmcr = htim->Instance->SMCR; - 800529c: 687b ldr r3, [r7, #4] - 800529e: 681b ldr r3, [r3, #0] - 80052a0: 689b ldr r3, [r3, #8] - 80052a2: 60bb str r3, [r7, #8] + 800573c: 687b ldr r3, [r7, #4] + 800573e: 681b ldr r3, [r3, #0] + 8005740: 689b ldr r3, [r3, #8] + 8005742: 60bb str r3, [r7, #8] /* Reset the MMS Bits */ tmpcr2 &= ~TIM_CR2_MMS; - 80052a4: 68fb ldr r3, [r7, #12] - 80052a6: f023 0370 bic.w r3, r3, #112 @ 0x70 - 80052aa: 60fb str r3, [r7, #12] + 8005744: 68fb ldr r3, [r7, #12] + 8005746: f023 0370 bic.w r3, r3, #112 @ 0x70 + 800574a: 60fb str r3, [r7, #12] /* Select the TRGO source */ tmpcr2 |= sMasterConfig->MasterOutputTrigger; - 80052ac: 683b ldr r3, [r7, #0] - 80052ae: 681b ldr r3, [r3, #0] - 80052b0: 68fa ldr r2, [r7, #12] - 80052b2: 4313 orrs r3, r2 - 80052b4: 60fb str r3, [r7, #12] + 800574c: 683b ldr r3, [r7, #0] + 800574e: 681b ldr r3, [r3, #0] + 8005750: 68fa ldr r2, [r7, #12] + 8005752: 4313 orrs r3, r2 + 8005754: 60fb str r3, [r7, #12] /* Update TIMx CR2 */ htim->Instance->CR2 = tmpcr2; - 80052b6: 687b ldr r3, [r7, #4] - 80052b8: 681b ldr r3, [r3, #0] - 80052ba: 68fa ldr r2, [r7, #12] - 80052bc: 605a str r2, [r3, #4] + 8005756: 687b ldr r3, [r7, #4] + 8005758: 681b ldr r3, [r3, #0] + 800575a: 68fa ldr r2, [r7, #12] + 800575c: 605a str r2, [r3, #4] if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) - 80052be: 687b ldr r3, [r7, #4] - 80052c0: 681b ldr r3, [r3, #0] - 80052c2: 4a21 ldr r2, [pc, #132] @ (8005348 ) - 80052c4: 4293 cmp r3, r2 - 80052c6: d022 beq.n 800530e - 80052c8: 687b ldr r3, [r7, #4] - 80052ca: 681b ldr r3, [r3, #0] - 80052cc: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 - 80052d0: d01d beq.n 800530e - 80052d2: 687b ldr r3, [r7, #4] - 80052d4: 681b ldr r3, [r3, #0] - 80052d6: 4a1d ldr r2, [pc, #116] @ (800534c ) - 80052d8: 4293 cmp r3, r2 - 80052da: d018 beq.n 800530e - 80052dc: 687b ldr r3, [r7, #4] - 80052de: 681b ldr r3, [r3, #0] - 80052e0: 4a1b ldr r2, [pc, #108] @ (8005350 ) - 80052e2: 4293 cmp r3, r2 - 80052e4: d013 beq.n 800530e - 80052e6: 687b ldr r3, [r7, #4] - 80052e8: 681b ldr r3, [r3, #0] - 80052ea: 4a1a ldr r2, [pc, #104] @ (8005354 ) - 80052ec: 4293 cmp r3, r2 - 80052ee: d00e beq.n 800530e - 80052f0: 687b ldr r3, [r7, #4] - 80052f2: 681b ldr r3, [r3, #0] - 80052f4: 4a18 ldr r2, [pc, #96] @ (8005358 ) - 80052f6: 4293 cmp r3, r2 - 80052f8: d009 beq.n 800530e - 80052fa: 687b ldr r3, [r7, #4] - 80052fc: 681b ldr r3, [r3, #0] - 80052fe: 4a17 ldr r2, [pc, #92] @ (800535c ) - 8005300: 4293 cmp r3, r2 - 8005302: d004 beq.n 800530e - 8005304: 687b ldr r3, [r7, #4] - 8005306: 681b ldr r3, [r3, #0] - 8005308: 4a15 ldr r2, [pc, #84] @ (8005360 ) - 800530a: 4293 cmp r3, r2 - 800530c: d10c bne.n 8005328 + 800575e: 687b ldr r3, [r7, #4] + 8005760: 681b ldr r3, [r3, #0] + 8005762: 4a21 ldr r2, [pc, #132] @ (80057e8 ) + 8005764: 4293 cmp r3, r2 + 8005766: d022 beq.n 80057ae + 8005768: 687b ldr r3, [r7, #4] + 800576a: 681b ldr r3, [r3, #0] + 800576c: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 + 8005770: d01d beq.n 80057ae + 8005772: 687b ldr r3, [r7, #4] + 8005774: 681b ldr r3, [r3, #0] + 8005776: 4a1d ldr r2, [pc, #116] @ (80057ec ) + 8005778: 4293 cmp r3, r2 + 800577a: d018 beq.n 80057ae + 800577c: 687b ldr r3, [r7, #4] + 800577e: 681b ldr r3, [r3, #0] + 8005780: 4a1b ldr r2, [pc, #108] @ (80057f0 ) + 8005782: 4293 cmp r3, r2 + 8005784: d013 beq.n 80057ae + 8005786: 687b ldr r3, [r7, #4] + 8005788: 681b ldr r3, [r3, #0] + 800578a: 4a1a ldr r2, [pc, #104] @ (80057f4 ) + 800578c: 4293 cmp r3, r2 + 800578e: d00e beq.n 80057ae + 8005790: 687b ldr r3, [r7, #4] + 8005792: 681b ldr r3, [r3, #0] + 8005794: 4a18 ldr r2, [pc, #96] @ (80057f8 ) + 8005796: 4293 cmp r3, r2 + 8005798: d009 beq.n 80057ae + 800579a: 687b ldr r3, [r7, #4] + 800579c: 681b ldr r3, [r3, #0] + 800579e: 4a17 ldr r2, [pc, #92] @ (80057fc ) + 80057a0: 4293 cmp r3, r2 + 80057a2: d004 beq.n 80057ae + 80057a4: 687b ldr r3, [r7, #4] + 80057a6: 681b ldr r3, [r3, #0] + 80057a8: 4a15 ldr r2, [pc, #84] @ (8005800 ) + 80057aa: 4293 cmp r3, r2 + 80057ac: d10c bne.n 80057c8 { /* Reset the MSM Bit */ tmpsmcr &= ~TIM_SMCR_MSM; - 800530e: 68bb ldr r3, [r7, #8] - 8005310: f023 0380 bic.w r3, r3, #128 @ 0x80 - 8005314: 60bb str r3, [r7, #8] + 80057ae: 68bb ldr r3, [r7, #8] + 80057b0: f023 0380 bic.w r3, r3, #128 @ 0x80 + 80057b4: 60bb str r3, [r7, #8] /* Set master mode */ tmpsmcr |= sMasterConfig->MasterSlaveMode; - 8005316: 683b ldr r3, [r7, #0] - 8005318: 685b ldr r3, [r3, #4] - 800531a: 68ba ldr r2, [r7, #8] - 800531c: 4313 orrs r3, r2 - 800531e: 60bb str r3, [r7, #8] + 80057b6: 683b ldr r3, [r7, #0] + 80057b8: 685b ldr r3, [r3, #4] + 80057ba: 68ba ldr r2, [r7, #8] + 80057bc: 4313 orrs r3, r2 + 80057be: 60bb str r3, [r7, #8] /* Update TIMx SMCR */ htim->Instance->SMCR = tmpsmcr; - 8005320: 687b ldr r3, [r7, #4] - 8005322: 681b ldr r3, [r3, #0] - 8005324: 68ba ldr r2, [r7, #8] - 8005326: 609a str r2, [r3, #8] + 80057c0: 687b ldr r3, [r7, #4] + 80057c2: 681b ldr r3, [r3, #0] + 80057c4: 68ba ldr r2, [r7, #8] + 80057c6: 609a str r2, [r3, #8] } /* Change the htim state */ htim->State = HAL_TIM_STATE_READY; - 8005328: 687b ldr r3, [r7, #4] - 800532a: 2201 movs r2, #1 - 800532c: f883 203d strb.w r2, [r3, #61] @ 0x3d + 80057c8: 687b ldr r3, [r7, #4] + 80057ca: 2201 movs r2, #1 + 80057cc: f883 203d strb.w r2, [r3, #61] @ 0x3d __HAL_UNLOCK(htim); - 8005330: 687b ldr r3, [r7, #4] - 8005332: 2200 movs r2, #0 - 8005334: f883 203c strb.w r2, [r3, #60] @ 0x3c + 80057d0: 687b ldr r3, [r7, #4] + 80057d2: 2200 movs r2, #0 + 80057d4: f883 203c strb.w r2, [r3, #60] @ 0x3c return HAL_OK; - 8005338: 2300 movs r3, #0 + 80057d8: 2300 movs r3, #0 } - 800533a: 4618 mov r0, r3 - 800533c: 3714 adds r7, #20 - 800533e: 46bd mov sp, r7 - 8005340: f85d 7b04 ldr.w r7, [sp], #4 - 8005344: 4770 bx lr - 8005346: bf00 nop - 8005348: 40010000 .word 0x40010000 - 800534c: 40000400 .word 0x40000400 - 8005350: 40000800 .word 0x40000800 - 8005354: 40000c00 .word 0x40000c00 - 8005358: 40010400 .word 0x40010400 - 800535c: 40014000 .word 0x40014000 - 8005360: 40001800 .word 0x40001800 + 80057da: 4618 mov r0, r3 + 80057dc: 3714 adds r7, #20 + 80057de: 46bd mov sp, r7 + 80057e0: f85d 7b04 ldr.w r7, [sp], #4 + 80057e4: 4770 bx lr + 80057e6: bf00 nop + 80057e8: 40010000 .word 0x40010000 + 80057ec: 40000400 .word 0x40000400 + 80057f0: 40000800 .word 0x40000800 + 80057f4: 40000c00 .word 0x40000c00 + 80057f8: 40010400 .word 0x40010400 + 80057fc: 40014000 .word 0x40014000 + 8005800: 40001800 .word 0x40001800 -08005364 : +08005804 : * interrupt can be enabled by calling the @ref __HAL_TIM_ENABLE_IT macro. * @retval HAL status */ HAL_StatusTypeDef HAL_TIMEx_ConfigBreakDeadTime(TIM_HandleTypeDef *htim, const TIM_BreakDeadTimeConfigTypeDef *sBreakDeadTimeConfig) { - 8005364: b480 push {r7} - 8005366: b085 sub sp, #20 - 8005368: af00 add r7, sp, #0 - 800536a: 6078 str r0, [r7, #4] - 800536c: 6039 str r1, [r7, #0] + 8005804: b480 push {r7} + 8005806: b085 sub sp, #20 + 8005808: af00 add r7, sp, #0 + 800580a: 6078 str r0, [r7, #4] + 800580c: 6039 str r1, [r7, #0] /* Keep this variable initialized to 0 as it is used to configure BDTR register */ uint32_t tmpbdtr = 0U; - 800536e: 2300 movs r3, #0 - 8005370: 60fb str r3, [r7, #12] + 800580e: 2300 movs r3, #0 + 8005810: 60fb str r3, [r7, #12] assert_param(IS_TIM_BREAK_STATE(sBreakDeadTimeConfig->BreakState)); assert_param(IS_TIM_BREAK_POLARITY(sBreakDeadTimeConfig->BreakPolarity)); assert_param(IS_TIM_AUTOMATIC_OUTPUT_STATE(sBreakDeadTimeConfig->AutomaticOutput)); /* Check input state */ __HAL_LOCK(htim); - 8005372: 687b ldr r3, [r7, #4] - 8005374: f893 303c ldrb.w r3, [r3, #60] @ 0x3c - 8005378: 2b01 cmp r3, #1 - 800537a: d101 bne.n 8005380 - 800537c: 2302 movs r3, #2 - 800537e: e03d b.n 80053fc - 8005380: 687b ldr r3, [r7, #4] - 8005382: 2201 movs r2, #1 - 8005384: f883 203c strb.w r2, [r3, #60] @ 0x3c + 8005812: 687b ldr r3, [r7, #4] + 8005814: f893 303c ldrb.w r3, [r3, #60] @ 0x3c + 8005818: 2b01 cmp r3, #1 + 800581a: d101 bne.n 8005820 + 800581c: 2302 movs r3, #2 + 800581e: e03d b.n 800589c + 8005820: 687b ldr r3, [r7, #4] + 8005822: 2201 movs r2, #1 + 8005824: f883 203c strb.w r2, [r3, #60] @ 0x3c /* Set the Lock level, the Break enable Bit and the Polarity, the OSSR State, the OSSI State, the dead time value and the Automatic Output Enable Bit */ /* Set the BDTR bits */ MODIFY_REG(tmpbdtr, TIM_BDTR_DTG, sBreakDeadTimeConfig->DeadTime); - 8005388: 68fb ldr r3, [r7, #12] - 800538a: f023 02ff bic.w r2, r3, #255 @ 0xff - 800538e: 683b ldr r3, [r7, #0] - 8005390: 68db ldr r3, [r3, #12] - 8005392: 4313 orrs r3, r2 - 8005394: 60fb str r3, [r7, #12] + 8005828: 68fb ldr r3, [r7, #12] + 800582a: f023 02ff bic.w r2, r3, #255 @ 0xff + 800582e: 683b ldr r3, [r7, #0] + 8005830: 68db ldr r3, [r3, #12] + 8005832: 4313 orrs r3, r2 + 8005834: 60fb str r3, [r7, #12] MODIFY_REG(tmpbdtr, TIM_BDTR_LOCK, sBreakDeadTimeConfig->LockLevel); - 8005396: 68fb ldr r3, [r7, #12] - 8005398: f423 7240 bic.w r2, r3, #768 @ 0x300 - 800539c: 683b ldr r3, [r7, #0] - 800539e: 689b ldr r3, [r3, #8] - 80053a0: 4313 orrs r3, r2 - 80053a2: 60fb str r3, [r7, #12] + 8005836: 68fb ldr r3, [r7, #12] + 8005838: f423 7240 bic.w r2, r3, #768 @ 0x300 + 800583c: 683b ldr r3, [r7, #0] + 800583e: 689b ldr r3, [r3, #8] + 8005840: 4313 orrs r3, r2 + 8005842: 60fb str r3, [r7, #12] MODIFY_REG(tmpbdtr, TIM_BDTR_OSSI, sBreakDeadTimeConfig->OffStateIDLEMode); - 80053a4: 68fb ldr r3, [r7, #12] - 80053a6: f423 6280 bic.w r2, r3, #1024 @ 0x400 - 80053aa: 683b ldr r3, [r7, #0] - 80053ac: 685b ldr r3, [r3, #4] - 80053ae: 4313 orrs r3, r2 - 80053b0: 60fb str r3, [r7, #12] + 8005844: 68fb ldr r3, [r7, #12] + 8005846: f423 6280 bic.w r2, r3, #1024 @ 0x400 + 800584a: 683b ldr r3, [r7, #0] + 800584c: 685b ldr r3, [r3, #4] + 800584e: 4313 orrs r3, r2 + 8005850: 60fb str r3, [r7, #12] MODIFY_REG(tmpbdtr, TIM_BDTR_OSSR, sBreakDeadTimeConfig->OffStateRunMode); - 80053b2: 68fb ldr r3, [r7, #12] - 80053b4: f423 6200 bic.w r2, r3, #2048 @ 0x800 - 80053b8: 683b ldr r3, [r7, #0] - 80053ba: 681b ldr r3, [r3, #0] - 80053bc: 4313 orrs r3, r2 - 80053be: 60fb str r3, [r7, #12] + 8005852: 68fb ldr r3, [r7, #12] + 8005854: f423 6200 bic.w r2, r3, #2048 @ 0x800 + 8005858: 683b ldr r3, [r7, #0] + 800585a: 681b ldr r3, [r3, #0] + 800585c: 4313 orrs r3, r2 + 800585e: 60fb str r3, [r7, #12] MODIFY_REG(tmpbdtr, TIM_BDTR_BKE, sBreakDeadTimeConfig->BreakState); - 80053c0: 68fb ldr r3, [r7, #12] - 80053c2: f423 5280 bic.w r2, r3, #4096 @ 0x1000 - 80053c6: 683b ldr r3, [r7, #0] - 80053c8: 691b ldr r3, [r3, #16] - 80053ca: 4313 orrs r3, r2 - 80053cc: 60fb str r3, [r7, #12] + 8005860: 68fb ldr r3, [r7, #12] + 8005862: f423 5280 bic.w r2, r3, #4096 @ 0x1000 + 8005866: 683b ldr r3, [r7, #0] + 8005868: 691b ldr r3, [r3, #16] + 800586a: 4313 orrs r3, r2 + 800586c: 60fb str r3, [r7, #12] MODIFY_REG(tmpbdtr, TIM_BDTR_BKP, sBreakDeadTimeConfig->BreakPolarity); - 80053ce: 68fb ldr r3, [r7, #12] - 80053d0: f423 5200 bic.w r2, r3, #8192 @ 0x2000 - 80053d4: 683b ldr r3, [r7, #0] - 80053d6: 695b ldr r3, [r3, #20] - 80053d8: 4313 orrs r3, r2 - 80053da: 60fb str r3, [r7, #12] + 800586e: 68fb ldr r3, [r7, #12] + 8005870: f423 5200 bic.w r2, r3, #8192 @ 0x2000 + 8005874: 683b ldr r3, [r7, #0] + 8005876: 695b ldr r3, [r3, #20] + 8005878: 4313 orrs r3, r2 + 800587a: 60fb str r3, [r7, #12] MODIFY_REG(tmpbdtr, TIM_BDTR_AOE, sBreakDeadTimeConfig->AutomaticOutput); - 80053dc: 68fb ldr r3, [r7, #12] - 80053de: f423 4280 bic.w r2, r3, #16384 @ 0x4000 - 80053e2: 683b ldr r3, [r7, #0] - 80053e4: 69db ldr r3, [r3, #28] - 80053e6: 4313 orrs r3, r2 - 80053e8: 60fb str r3, [r7, #12] + 800587c: 68fb ldr r3, [r7, #12] + 800587e: f423 4280 bic.w r2, r3, #16384 @ 0x4000 + 8005882: 683b ldr r3, [r7, #0] + 8005884: 69db ldr r3, [r3, #28] + 8005886: 4313 orrs r3, r2 + 8005888: 60fb str r3, [r7, #12] /* Set TIMx_BDTR */ htim->Instance->BDTR = tmpbdtr; - 80053ea: 687b ldr r3, [r7, #4] - 80053ec: 681b ldr r3, [r3, #0] - 80053ee: 68fa ldr r2, [r7, #12] - 80053f0: 645a str r2, [r3, #68] @ 0x44 + 800588a: 687b ldr r3, [r7, #4] + 800588c: 681b ldr r3, [r3, #0] + 800588e: 68fa ldr r2, [r7, #12] + 8005890: 645a str r2, [r3, #68] @ 0x44 __HAL_UNLOCK(htim); - 80053f2: 687b ldr r3, [r7, #4] - 80053f4: 2200 movs r2, #0 - 80053f6: f883 203c strb.w r2, [r3, #60] @ 0x3c + 8005892: 687b ldr r3, [r7, #4] + 8005894: 2200 movs r2, #0 + 8005896: f883 203c strb.w r2, [r3, #60] @ 0x3c return HAL_OK; - 80053fa: 2300 movs r3, #0 + 800589a: 2300 movs r3, #0 } - 80053fc: 4618 mov r0, r3 - 80053fe: 3714 adds r7, #20 - 8005400: 46bd mov sp, r7 - 8005402: f85d 7b04 ldr.w r7, [sp], #4 - 8005406: 4770 bx lr + 800589c: 4618 mov r0, r3 + 800589e: 3714 adds r7, #20 + 80058a0: 46bd mov sp, r7 + 80058a2: f85d 7b04 ldr.w r7, [sp], #4 + 80058a6: 4770 bx lr -08005408 : +080058a8 : * @brief Commutation callback in non-blocking mode * @param htim TIM handle * @retval None */ __weak void HAL_TIMEx_CommutCallback(TIM_HandleTypeDef *htim) { - 8005408: b480 push {r7} - 800540a: b083 sub sp, #12 - 800540c: af00 add r7, sp, #0 - 800540e: 6078 str r0, [r7, #4] + 80058a8: b480 push {r7} + 80058aa: b083 sub sp, #12 + 80058ac: af00 add r7, sp, #0 + 80058ae: 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 */ } - 8005410: bf00 nop - 8005412: 370c adds r7, #12 - 8005414: 46bd mov sp, r7 - 8005416: f85d 7b04 ldr.w r7, [sp], #4 - 800541a: 4770 bx lr + 80058b0: bf00 nop + 80058b2: 370c adds r7, #12 + 80058b4: 46bd mov sp, r7 + 80058b6: f85d 7b04 ldr.w r7, [sp], #4 + 80058ba: 4770 bx lr -0800541c : +080058bc : * @brief Break detection callback in non-blocking mode * @param htim TIM handle * @retval None */ __weak void HAL_TIMEx_BreakCallback(TIM_HandleTypeDef *htim) { - 800541c: b480 push {r7} - 800541e: b083 sub sp, #12 - 8005420: af00 add r7, sp, #0 - 8005422: 6078 str r0, [r7, #4] + 80058bc: b480 push {r7} + 80058be: b083 sub sp, #12 + 80058c0: af00 add r7, sp, #0 + 80058c2: 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 */ } - 8005424: bf00 nop - 8005426: 370c adds r7, #12 - 8005428: 46bd mov sp, r7 - 800542a: f85d 7b04 ldr.w r7, [sp], #4 - 800542e: 4770 bx lr + 80058c4: bf00 nop + 80058c6: 370c adds r7, #12 + 80058c8: 46bd mov sp, r7 + 80058ca: f85d 7b04 ldr.w r7, [sp], #4 + 80058ce: 4770 bx lr -08005430 : +080058d0 : * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval HAL status */ HAL_StatusTypeDef HAL_UART_Init(UART_HandleTypeDef *huart) { - 8005430: b580 push {r7, lr} - 8005432: b082 sub sp, #8 - 8005434: af00 add r7, sp, #0 - 8005436: 6078 str r0, [r7, #4] + 80058d0: b580 push {r7, lr} + 80058d2: b082 sub sp, #8 + 80058d4: af00 add r7, sp, #0 + 80058d6: 6078 str r0, [r7, #4] /* Check the UART handle allocation */ if (huart == NULL) - 8005438: 687b ldr r3, [r7, #4] - 800543a: 2b00 cmp r3, #0 - 800543c: d101 bne.n 8005442 + 80058d8: 687b ldr r3, [r7, #4] + 80058da: 2b00 cmp r3, #0 + 80058dc: d101 bne.n 80058e2 { return HAL_ERROR; - 800543e: 2301 movs r3, #1 - 8005440: e042 b.n 80054c8 + 80058de: 2301 movs r3, #1 + 80058e0: e042 b.n 8005968 assert_param(IS_UART_INSTANCE(huart->Instance)); } assert_param(IS_UART_WORD_LENGTH(huart->Init.WordLength)); assert_param(IS_UART_OVERSAMPLING(huart->Init.OverSampling)); if (huart->gState == HAL_UART_STATE_RESET) - 8005442: 687b ldr r3, [r7, #4] - 8005444: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 - 8005448: b2db uxtb r3, r3 - 800544a: 2b00 cmp r3, #0 - 800544c: d106 bne.n 800545c + 80058e2: 687b ldr r3, [r7, #4] + 80058e4: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 + 80058e8: b2db uxtb r3, r3 + 80058ea: 2b00 cmp r3, #0 + 80058ec: d106 bne.n 80058fc { /* Allocate lock resource and initialize it */ huart->Lock = HAL_UNLOCKED; - 800544e: 687b ldr r3, [r7, #4] - 8005450: 2200 movs r2, #0 - 8005452: f883 2040 strb.w r2, [r3, #64] @ 0x40 + 80058ee: 687b ldr r3, [r7, #4] + 80058f0: 2200 movs r2, #0 + 80058f2: f883 2040 strb.w r2, [r3, #64] @ 0x40 /* Init the low level hardware */ huart->MspInitCallback(huart); #else /* Init the low level hardware : GPIO, CLOCK */ HAL_UART_MspInit(huart); - 8005456: 6878 ldr r0, [r7, #4] - 8005458: f7fc fb50 bl 8001afc + 80058f6: 6878 ldr r0, [r7, #4] + 80058f8: f7fc f926 bl 8001b48 #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */ } huart->gState = HAL_UART_STATE_BUSY; - 800545c: 687b ldr r3, [r7, #4] - 800545e: 2224 movs r2, #36 @ 0x24 - 8005460: f883 2041 strb.w r2, [r3, #65] @ 0x41 + 80058fc: 687b ldr r3, [r7, #4] + 80058fe: 2224 movs r2, #36 @ 0x24 + 8005900: f883 2041 strb.w r2, [r3, #65] @ 0x41 /* Disable the peripheral */ __HAL_UART_DISABLE(huart); - 8005464: 687b ldr r3, [r7, #4] - 8005466: 681b ldr r3, [r3, #0] - 8005468: 68da ldr r2, [r3, #12] - 800546a: 687b ldr r3, [r7, #4] - 800546c: 681b ldr r3, [r3, #0] - 800546e: f422 5200 bic.w r2, r2, #8192 @ 0x2000 - 8005472: 60da str r2, [r3, #12] + 8005904: 687b ldr r3, [r7, #4] + 8005906: 681b ldr r3, [r3, #0] + 8005908: 68da ldr r2, [r3, #12] + 800590a: 687b ldr r3, [r7, #4] + 800590c: 681b ldr r3, [r3, #0] + 800590e: f422 5200 bic.w r2, r2, #8192 @ 0x2000 + 8005912: 60da str r2, [r3, #12] /* Set the UART Communication parameters */ UART_SetConfig(huart); - 8005474: 6878 ldr r0, [r7, #4] - 8005476: f000 f82b bl 80054d0 + 8005914: 6878 ldr r0, [r7, #4] + 8005916: f000 f82b bl 8005970 /* 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)); - 800547a: 687b ldr r3, [r7, #4] - 800547c: 681b ldr r3, [r3, #0] - 800547e: 691a ldr r2, [r3, #16] - 8005480: 687b ldr r3, [r7, #4] - 8005482: 681b ldr r3, [r3, #0] - 8005484: f422 4290 bic.w r2, r2, #18432 @ 0x4800 - 8005488: 611a str r2, [r3, #16] + 800591a: 687b ldr r3, [r7, #4] + 800591c: 681b ldr r3, [r3, #0] + 800591e: 691a ldr r2, [r3, #16] + 8005920: 687b ldr r3, [r7, #4] + 8005922: 681b ldr r3, [r3, #0] + 8005924: f422 4290 bic.w r2, r2, #18432 @ 0x4800 + 8005928: 611a str r2, [r3, #16] CLEAR_BIT(huart->Instance->CR3, (USART_CR3_SCEN | USART_CR3_HDSEL | USART_CR3_IREN)); - 800548a: 687b ldr r3, [r7, #4] - 800548c: 681b ldr r3, [r3, #0] - 800548e: 695a ldr r2, [r3, #20] - 8005490: 687b ldr r3, [r7, #4] - 8005492: 681b ldr r3, [r3, #0] - 8005494: f022 022a bic.w r2, r2, #42 @ 0x2a - 8005498: 615a str r2, [r3, #20] + 800592a: 687b ldr r3, [r7, #4] + 800592c: 681b ldr r3, [r3, #0] + 800592e: 695a ldr r2, [r3, #20] + 8005930: 687b ldr r3, [r7, #4] + 8005932: 681b ldr r3, [r3, #0] + 8005934: f022 022a bic.w r2, r2, #42 @ 0x2a + 8005938: 615a str r2, [r3, #20] /* Enable the peripheral */ __HAL_UART_ENABLE(huart); - 800549a: 687b ldr r3, [r7, #4] - 800549c: 681b ldr r3, [r3, #0] - 800549e: 68da ldr r2, [r3, #12] - 80054a0: 687b ldr r3, [r7, #4] - 80054a2: 681b ldr r3, [r3, #0] - 80054a4: f442 5200 orr.w r2, r2, #8192 @ 0x2000 - 80054a8: 60da str r2, [r3, #12] + 800593a: 687b ldr r3, [r7, #4] + 800593c: 681b ldr r3, [r3, #0] + 800593e: 68da ldr r2, [r3, #12] + 8005940: 687b ldr r3, [r7, #4] + 8005942: 681b ldr r3, [r3, #0] + 8005944: f442 5200 orr.w r2, r2, #8192 @ 0x2000 + 8005948: 60da str r2, [r3, #12] /* Initialize the UART state */ huart->ErrorCode = HAL_UART_ERROR_NONE; - 80054aa: 687b ldr r3, [r7, #4] - 80054ac: 2200 movs r2, #0 - 80054ae: 645a str r2, [r3, #68] @ 0x44 + 800594a: 687b ldr r3, [r7, #4] + 800594c: 2200 movs r2, #0 + 800594e: 645a str r2, [r3, #68] @ 0x44 huart->gState = HAL_UART_STATE_READY; - 80054b0: 687b ldr r3, [r7, #4] - 80054b2: 2220 movs r2, #32 - 80054b4: f883 2041 strb.w r2, [r3, #65] @ 0x41 + 8005950: 687b ldr r3, [r7, #4] + 8005952: 2220 movs r2, #32 + 8005954: f883 2041 strb.w r2, [r3, #65] @ 0x41 huart->RxState = HAL_UART_STATE_READY; - 80054b8: 687b ldr r3, [r7, #4] - 80054ba: 2220 movs r2, #32 - 80054bc: f883 2042 strb.w r2, [r3, #66] @ 0x42 + 8005958: 687b ldr r3, [r7, #4] + 800595a: 2220 movs r2, #32 + 800595c: f883 2042 strb.w r2, [r3, #66] @ 0x42 huart->RxEventType = HAL_UART_RXEVENT_TC; - 80054c0: 687b ldr r3, [r7, #4] - 80054c2: 2200 movs r2, #0 - 80054c4: 635a str r2, [r3, #52] @ 0x34 + 8005960: 687b ldr r3, [r7, #4] + 8005962: 2200 movs r2, #0 + 8005964: 635a str r2, [r3, #52] @ 0x34 return HAL_OK; - 80054c6: 2300 movs r3, #0 + 8005966: 2300 movs r3, #0 } - 80054c8: 4618 mov r0, r3 - 80054ca: 3708 adds r7, #8 - 80054cc: 46bd mov sp, r7 - 80054ce: bd80 pop {r7, pc} + 8005968: 4618 mov r0, r3 + 800596a: 3708 adds r7, #8 + 800596c: 46bd mov sp, r7 + 800596e: bd80 pop {r7, pc} -080054d0 : +08005970 : * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval None */ static void UART_SetConfig(UART_HandleTypeDef *huart) { - 80054d0: e92d 4fb0 stmdb sp!, {r4, r5, r7, r8, r9, sl, fp, lr} - 80054d4: b0c0 sub sp, #256 @ 0x100 - 80054d6: af00 add r7, sp, #0 - 80054d8: f8c7 00f4 str.w r0, [r7, #244] @ 0xf4 + 8005970: e92d 4fb0 stmdb sp!, {r4, r5, r7, r8, r9, sl, fp, lr} + 8005974: b0c0 sub sp, #256 @ 0x100 + 8005976: af00 add r7, sp, #0 + 8005978: f8c7 00f4 str.w r0, [r7, #244] @ 0xf4 assert_param(IS_UART_MODE(huart->Init.Mode)); /*-------------------------- 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); - 80054dc: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 80054e0: 681b ldr r3, [r3, #0] - 80054e2: 691b ldr r3, [r3, #16] - 80054e4: f423 5040 bic.w r0, r3, #12288 @ 0x3000 - 80054e8: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 80054ec: 68d9 ldr r1, [r3, #12] - 80054ee: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 80054f2: 681a ldr r2, [r3, #0] - 80054f4: ea40 0301 orr.w r3, r0, r1 - 80054f8: 6113 str r3, [r2, #16] + 800597c: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8005980: 681b ldr r3, [r3, #0] + 8005982: 691b ldr r3, [r3, #16] + 8005984: f423 5040 bic.w r0, r3, #12288 @ 0x3000 + 8005988: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 800598c: 68d9 ldr r1, [r3, #12] + 800598e: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8005992: 681a ldr r2, [r3, #0] + 8005994: ea40 0301 orr.w r3, r0, r1 + 8005998: 6113 str r3, [r2, #16] 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; - 80054fa: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 80054fe: 689a ldr r2, [r3, #8] - 8005500: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 8005504: 691b ldr r3, [r3, #16] - 8005506: 431a orrs r2, r3 - 8005508: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 800550c: 695b ldr r3, [r3, #20] - 800550e: 431a orrs r2, r3 - 8005510: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 8005514: 69db ldr r3, [r3, #28] - 8005516: 4313 orrs r3, r2 - 8005518: f8c7 30f8 str.w r3, [r7, #248] @ 0xf8 + 800599a: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 800599e: 689a ldr r2, [r3, #8] + 80059a0: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 80059a4: 691b ldr r3, [r3, #16] + 80059a6: 431a orrs r2, r3 + 80059a8: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 80059ac: 695b ldr r3, [r3, #20] + 80059ae: 431a orrs r2, r3 + 80059b0: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 80059b4: 69db ldr r3, [r3, #28] + 80059b6: 4313 orrs r3, r2 + 80059b8: f8c7 30f8 str.w r3, [r7, #248] @ 0xf8 MODIFY_REG(huart->Instance->CR1, - 800551c: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 8005520: 681b ldr r3, [r3, #0] - 8005522: 68db ldr r3, [r3, #12] - 8005524: f423 4116 bic.w r1, r3, #38400 @ 0x9600 - 8005528: f021 010c bic.w r1, r1, #12 - 800552c: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 8005530: 681a ldr r2, [r3, #0] - 8005532: f8d7 30f8 ldr.w r3, [r7, #248] @ 0xf8 - 8005536: 430b orrs r3, r1 - 8005538: 60d3 str r3, [r2, #12] + 80059bc: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 80059c0: 681b ldr r3, [r3, #0] + 80059c2: 68db ldr r3, [r3, #12] + 80059c4: f423 4116 bic.w r1, r3, #38400 @ 0x9600 + 80059c8: f021 010c bic.w r1, r1, #12 + 80059cc: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 80059d0: 681a ldr r2, [r3, #0] + 80059d2: f8d7 30f8 ldr.w r3, [r7, #248] @ 0xf8 + 80059d6: 430b orrs r3, r1 + 80059d8: 60d3 str r3, [r2, #12] (uint32_t)(USART_CR1_M | USART_CR1_PCE | USART_CR1_PS | USART_CR1_TE | USART_CR1_RE | USART_CR1_OVER8), tmpreg); /*-------------------------- USART CR3 Configuration -----------------------*/ /* Configure the UART HFC: Set CTSE and RTSE bits according to huart->Init.HwFlowCtl value */ MODIFY_REG(huart->Instance->CR3, (USART_CR3_RTSE | USART_CR3_CTSE), huart->Init.HwFlowCtl); - 800553a: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 800553e: 681b ldr r3, [r3, #0] - 8005540: 695b ldr r3, [r3, #20] - 8005542: f423 7040 bic.w r0, r3, #768 @ 0x300 - 8005546: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 800554a: 6999 ldr r1, [r3, #24] - 800554c: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 8005550: 681a ldr r2, [r3, #0] - 8005552: ea40 0301 orr.w r3, r0, r1 - 8005556: 6153 str r3, [r2, #20] + 80059da: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 80059de: 681b ldr r3, [r3, #0] + 80059e0: 695b ldr r3, [r3, #20] + 80059e2: f423 7040 bic.w r0, r3, #768 @ 0x300 + 80059e6: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 80059ea: 6999 ldr r1, [r3, #24] + 80059ec: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 80059f0: 681a ldr r2, [r3, #0] + 80059f2: ea40 0301 orr.w r3, r0, r1 + 80059f6: 6153 str r3, [r2, #20] if ((huart->Instance == USART1) || (huart->Instance == USART6) || (huart->Instance == UART9) || (huart->Instance == UART10)) { pclk = HAL_RCC_GetPCLK2Freq(); } #elif defined(USART6) if ((huart->Instance == USART1) || (huart->Instance == USART6)) - 8005558: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 800555c: 681a ldr r2, [r3, #0] - 800555e: 4b8f ldr r3, [pc, #572] @ (800579c ) - 8005560: 429a cmp r2, r3 - 8005562: d005 beq.n 8005570 - 8005564: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 8005568: 681a ldr r2, [r3, #0] - 800556a: 4b8d ldr r3, [pc, #564] @ (80057a0 ) - 800556c: 429a cmp r2, r3 - 800556e: d104 bne.n 800557a + 80059f8: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 80059fc: 681a ldr r2, [r3, #0] + 80059fe: 4b8f ldr r3, [pc, #572] @ (8005c3c ) + 8005a00: 429a cmp r2, r3 + 8005a02: d005 beq.n 8005a10 + 8005a04: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8005a08: 681a ldr r2, [r3, #0] + 8005a0a: 4b8d ldr r3, [pc, #564] @ (8005c40 ) + 8005a0c: 429a cmp r2, r3 + 8005a0e: d104 bne.n 8005a1a { pclk = HAL_RCC_GetPCLK2Freq(); - 8005570: f7fe f91a bl 80037a8 - 8005574: f8c7 00fc str.w r0, [r7, #252] @ 0xfc - 8005578: e003 b.n 8005582 + 8005a10: f7fe f822 bl 8003a58 + 8005a14: f8c7 00fc str.w r0, [r7, #252] @ 0xfc + 8005a18: e003 b.n 8005a22 pclk = HAL_RCC_GetPCLK2Freq(); } #endif /* USART6 */ else { pclk = HAL_RCC_GetPCLK1Freq(); - 800557a: f7fe f901 bl 8003780 - 800557e: f8c7 00fc str.w r0, [r7, #252] @ 0xfc + 8005a1a: f7fe f809 bl 8003a30 + 8005a1e: f8c7 00fc str.w r0, [r7, #252] @ 0xfc } /*-------------------------- USART BRR Configuration ---------------------*/ if (huart->Init.OverSampling == UART_OVERSAMPLING_8) - 8005582: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 8005586: 69db ldr r3, [r3, #28] - 8005588: f5b3 4f00 cmp.w r3, #32768 @ 0x8000 - 800558c: f040 810c bne.w 80057a8 + 8005a22: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8005a26: 69db ldr r3, [r3, #28] + 8005a28: f5b3 4f00 cmp.w r3, #32768 @ 0x8000 + 8005a2c: f040 810c bne.w 8005c48 { huart->Instance->BRR = UART_BRR_SAMPLING8(pclk, huart->Init.BaudRate); - 8005590: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc - 8005594: 2200 movs r2, #0 - 8005596: f8c7 30e8 str.w r3, [r7, #232] @ 0xe8 - 800559a: f8c7 20ec str.w r2, [r7, #236] @ 0xec - 800559e: e9d7 453a ldrd r4, r5, [r7, #232] @ 0xe8 - 80055a2: 4622 mov r2, r4 - 80055a4: 462b mov r3, r5 - 80055a6: 1891 adds r1, r2, r2 - 80055a8: 65b9 str r1, [r7, #88] @ 0x58 - 80055aa: 415b adcs r3, r3 - 80055ac: 65fb str r3, [r7, #92] @ 0x5c - 80055ae: e9d7 2316 ldrd r2, r3, [r7, #88] @ 0x58 - 80055b2: 4621 mov r1, r4 - 80055b4: eb12 0801 adds.w r8, r2, r1 - 80055b8: 4629 mov r1, r5 - 80055ba: eb43 0901 adc.w r9, r3, r1 - 80055be: f04f 0200 mov.w r2, #0 - 80055c2: f04f 0300 mov.w r3, #0 - 80055c6: ea4f 03c9 mov.w r3, r9, lsl #3 - 80055ca: ea43 7358 orr.w r3, r3, r8, lsr #29 - 80055ce: ea4f 02c8 mov.w r2, r8, lsl #3 - 80055d2: 4690 mov r8, r2 - 80055d4: 4699 mov r9, r3 - 80055d6: 4623 mov r3, r4 - 80055d8: eb18 0303 adds.w r3, r8, r3 - 80055dc: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0 - 80055e0: 462b mov r3, r5 - 80055e2: eb49 0303 adc.w r3, r9, r3 - 80055e6: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4 - 80055ea: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 80055ee: 685b ldr r3, [r3, #4] - 80055f0: 2200 movs r2, #0 - 80055f2: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8 - 80055f6: f8c7 20dc str.w r2, [r7, #220] @ 0xdc - 80055fa: e9d7 1236 ldrd r1, r2, [r7, #216] @ 0xd8 - 80055fe: 460b mov r3, r1 - 8005600: 18db adds r3, r3, r3 - 8005602: 653b str r3, [r7, #80] @ 0x50 - 8005604: 4613 mov r3, r2 - 8005606: eb42 0303 adc.w r3, r2, r3 - 800560a: 657b str r3, [r7, #84] @ 0x54 - 800560c: e9d7 2314 ldrd r2, r3, [r7, #80] @ 0x50 - 8005610: e9d7 0138 ldrd r0, r1, [r7, #224] @ 0xe0 - 8005614: f7fa fdf6 bl 8000204 <__aeabi_uldivmod> - 8005618: 4602 mov r2, r0 - 800561a: 460b mov r3, r1 - 800561c: 4b61 ldr r3, [pc, #388] @ (80057a4 ) - 800561e: fba3 2302 umull r2, r3, r3, r2 - 8005622: 095b lsrs r3, r3, #5 - 8005624: 011c lsls r4, r3, #4 - 8005626: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc - 800562a: 2200 movs r2, #0 - 800562c: f8c7 30d0 str.w r3, [r7, #208] @ 0xd0 - 8005630: f8c7 20d4 str.w r2, [r7, #212] @ 0xd4 - 8005634: e9d7 8934 ldrd r8, r9, [r7, #208] @ 0xd0 - 8005638: 4642 mov r2, r8 - 800563a: 464b mov r3, r9 - 800563c: 1891 adds r1, r2, r2 - 800563e: 64b9 str r1, [r7, #72] @ 0x48 - 8005640: 415b adcs r3, r3 - 8005642: 64fb str r3, [r7, #76] @ 0x4c - 8005644: e9d7 2312 ldrd r2, r3, [r7, #72] @ 0x48 - 8005648: 4641 mov r1, r8 - 800564a: eb12 0a01 adds.w sl, r2, r1 - 800564e: 4649 mov r1, r9 - 8005650: eb43 0b01 adc.w fp, r3, r1 - 8005654: f04f 0200 mov.w r2, #0 - 8005658: f04f 0300 mov.w r3, #0 - 800565c: ea4f 03cb mov.w r3, fp, lsl #3 - 8005660: ea43 735a orr.w r3, r3, sl, lsr #29 - 8005664: ea4f 02ca mov.w r2, sl, lsl #3 - 8005668: 4692 mov sl, r2 - 800566a: 469b mov fp, r3 - 800566c: 4643 mov r3, r8 - 800566e: eb1a 0303 adds.w r3, sl, r3 - 8005672: f8c7 30c8 str.w r3, [r7, #200] @ 0xc8 - 8005676: 464b mov r3, r9 - 8005678: eb4b 0303 adc.w r3, fp, r3 - 800567c: f8c7 30cc str.w r3, [r7, #204] @ 0xcc - 8005680: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 8005684: 685b ldr r3, [r3, #4] - 8005686: 2200 movs r2, #0 - 8005688: f8c7 30c0 str.w r3, [r7, #192] @ 0xc0 - 800568c: f8c7 20c4 str.w r2, [r7, #196] @ 0xc4 - 8005690: e9d7 1230 ldrd r1, r2, [r7, #192] @ 0xc0 - 8005694: 460b mov r3, r1 - 8005696: 18db adds r3, r3, r3 - 8005698: 643b str r3, [r7, #64] @ 0x40 - 800569a: 4613 mov r3, r2 - 800569c: eb42 0303 adc.w r3, r2, r3 - 80056a0: 647b str r3, [r7, #68] @ 0x44 - 80056a2: e9d7 2310 ldrd r2, r3, [r7, #64] @ 0x40 - 80056a6: e9d7 0132 ldrd r0, r1, [r7, #200] @ 0xc8 - 80056aa: f7fa fdab bl 8000204 <__aeabi_uldivmod> - 80056ae: 4602 mov r2, r0 - 80056b0: 460b mov r3, r1 - 80056b2: 4611 mov r1, r2 - 80056b4: 4b3b ldr r3, [pc, #236] @ (80057a4 ) - 80056b6: fba3 2301 umull r2, r3, r3, r1 - 80056ba: 095b lsrs r3, r3, #5 - 80056bc: 2264 movs r2, #100 @ 0x64 - 80056be: fb02 f303 mul.w r3, r2, r3 - 80056c2: 1acb subs r3, r1, r3 - 80056c4: 00db lsls r3, r3, #3 - 80056c6: f103 0232 add.w r2, r3, #50 @ 0x32 - 80056ca: 4b36 ldr r3, [pc, #216] @ (80057a4 ) - 80056cc: fba3 2302 umull r2, r3, r3, r2 - 80056d0: 095b lsrs r3, r3, #5 - 80056d2: 005b lsls r3, r3, #1 - 80056d4: f403 73f8 and.w r3, r3, #496 @ 0x1f0 - 80056d8: 441c add r4, r3 - 80056da: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc - 80056de: 2200 movs r2, #0 - 80056e0: f8c7 30b8 str.w r3, [r7, #184] @ 0xb8 - 80056e4: f8c7 20bc str.w r2, [r7, #188] @ 0xbc - 80056e8: e9d7 892e ldrd r8, r9, [r7, #184] @ 0xb8 - 80056ec: 4642 mov r2, r8 - 80056ee: 464b mov r3, r9 - 80056f0: 1891 adds r1, r2, r2 - 80056f2: 63b9 str r1, [r7, #56] @ 0x38 - 80056f4: 415b adcs r3, r3 - 80056f6: 63fb str r3, [r7, #60] @ 0x3c - 80056f8: e9d7 230e ldrd r2, r3, [r7, #56] @ 0x38 - 80056fc: 4641 mov r1, r8 - 80056fe: 1851 adds r1, r2, r1 - 8005700: 6339 str r1, [r7, #48] @ 0x30 - 8005702: 4649 mov r1, r9 - 8005704: 414b adcs r3, r1 - 8005706: 637b str r3, [r7, #52] @ 0x34 - 8005708: f04f 0200 mov.w r2, #0 - 800570c: f04f 0300 mov.w r3, #0 - 8005710: e9d7 ab0c ldrd sl, fp, [r7, #48] @ 0x30 - 8005714: 4659 mov r1, fp - 8005716: 00cb lsls r3, r1, #3 - 8005718: 4651 mov r1, sl - 800571a: ea43 7351 orr.w r3, r3, r1, lsr #29 - 800571e: 4651 mov r1, sl - 8005720: 00ca lsls r2, r1, #3 - 8005722: 4610 mov r0, r2 - 8005724: 4619 mov r1, r3 - 8005726: 4603 mov r3, r0 - 8005728: 4642 mov r2, r8 - 800572a: 189b adds r3, r3, r2 - 800572c: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 - 8005730: 464b mov r3, r9 - 8005732: 460a mov r2, r1 - 8005734: eb42 0303 adc.w r3, r2, r3 - 8005738: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 - 800573c: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 8005740: 685b ldr r3, [r3, #4] - 8005742: 2200 movs r2, #0 - 8005744: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8 - 8005748: f8c7 20ac str.w r2, [r7, #172] @ 0xac - 800574c: e9d7 122a ldrd r1, r2, [r7, #168] @ 0xa8 - 8005750: 460b mov r3, r1 - 8005752: 18db adds r3, r3, r3 - 8005754: 62bb str r3, [r7, #40] @ 0x28 - 8005756: 4613 mov r3, r2 - 8005758: eb42 0303 adc.w r3, r2, r3 - 800575c: 62fb str r3, [r7, #44] @ 0x2c - 800575e: e9d7 230a ldrd r2, r3, [r7, #40] @ 0x28 - 8005762: e9d7 012c ldrd r0, r1, [r7, #176] @ 0xb0 - 8005766: f7fa fd4d bl 8000204 <__aeabi_uldivmod> - 800576a: 4602 mov r2, r0 - 800576c: 460b mov r3, r1 - 800576e: 4b0d ldr r3, [pc, #52] @ (80057a4 ) - 8005770: fba3 1302 umull r1, r3, r3, r2 - 8005774: 095b lsrs r3, r3, #5 - 8005776: 2164 movs r1, #100 @ 0x64 - 8005778: fb01 f303 mul.w r3, r1, r3 - 800577c: 1ad3 subs r3, r2, r3 - 800577e: 00db lsls r3, r3, #3 - 8005780: 3332 adds r3, #50 @ 0x32 - 8005782: 4a08 ldr r2, [pc, #32] @ (80057a4 ) - 8005784: fba2 2303 umull r2, r3, r2, r3 - 8005788: 095b lsrs r3, r3, #5 - 800578a: f003 0207 and.w r2, r3, #7 - 800578e: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 8005792: 681b ldr r3, [r3, #0] - 8005794: 4422 add r2, r4 - 8005796: 609a str r2, [r3, #8] + 8005a30: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc + 8005a34: 2200 movs r2, #0 + 8005a36: f8c7 30e8 str.w r3, [r7, #232] @ 0xe8 + 8005a3a: f8c7 20ec str.w r2, [r7, #236] @ 0xec + 8005a3e: e9d7 453a ldrd r4, r5, [r7, #232] @ 0xe8 + 8005a42: 4622 mov r2, r4 + 8005a44: 462b mov r3, r5 + 8005a46: 1891 adds r1, r2, r2 + 8005a48: 65b9 str r1, [r7, #88] @ 0x58 + 8005a4a: 415b adcs r3, r3 + 8005a4c: 65fb str r3, [r7, #92] @ 0x5c + 8005a4e: e9d7 2316 ldrd r2, r3, [r7, #88] @ 0x58 + 8005a52: 4621 mov r1, r4 + 8005a54: eb12 0801 adds.w r8, r2, r1 + 8005a58: 4629 mov r1, r5 + 8005a5a: eb43 0901 adc.w r9, r3, r1 + 8005a5e: f04f 0200 mov.w r2, #0 + 8005a62: f04f 0300 mov.w r3, #0 + 8005a66: ea4f 03c9 mov.w r3, r9, lsl #3 + 8005a6a: ea43 7358 orr.w r3, r3, r8, lsr #29 + 8005a6e: ea4f 02c8 mov.w r2, r8, lsl #3 + 8005a72: 4690 mov r8, r2 + 8005a74: 4699 mov r9, r3 + 8005a76: 4623 mov r3, r4 + 8005a78: eb18 0303 adds.w r3, r8, r3 + 8005a7c: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0 + 8005a80: 462b mov r3, r5 + 8005a82: eb49 0303 adc.w r3, r9, r3 + 8005a86: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4 + 8005a8a: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8005a8e: 685b ldr r3, [r3, #4] + 8005a90: 2200 movs r2, #0 + 8005a92: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8 + 8005a96: f8c7 20dc str.w r2, [r7, #220] @ 0xdc + 8005a9a: e9d7 1236 ldrd r1, r2, [r7, #216] @ 0xd8 + 8005a9e: 460b mov r3, r1 + 8005aa0: 18db adds r3, r3, r3 + 8005aa2: 653b str r3, [r7, #80] @ 0x50 + 8005aa4: 4613 mov r3, r2 + 8005aa6: eb42 0303 adc.w r3, r2, r3 + 8005aaa: 657b str r3, [r7, #84] @ 0x54 + 8005aac: e9d7 2314 ldrd r2, r3, [r7, #80] @ 0x50 + 8005ab0: e9d7 0138 ldrd r0, r1, [r7, #224] @ 0xe0 + 8005ab4: f7fa fba6 bl 8000204 <__aeabi_uldivmod> + 8005ab8: 4602 mov r2, r0 + 8005aba: 460b mov r3, r1 + 8005abc: 4b61 ldr r3, [pc, #388] @ (8005c44 ) + 8005abe: fba3 2302 umull r2, r3, r3, r2 + 8005ac2: 095b lsrs r3, r3, #5 + 8005ac4: 011c lsls r4, r3, #4 + 8005ac6: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc + 8005aca: 2200 movs r2, #0 + 8005acc: f8c7 30d0 str.w r3, [r7, #208] @ 0xd0 + 8005ad0: f8c7 20d4 str.w r2, [r7, #212] @ 0xd4 + 8005ad4: e9d7 8934 ldrd r8, r9, [r7, #208] @ 0xd0 + 8005ad8: 4642 mov r2, r8 + 8005ada: 464b mov r3, r9 + 8005adc: 1891 adds r1, r2, r2 + 8005ade: 64b9 str r1, [r7, #72] @ 0x48 + 8005ae0: 415b adcs r3, r3 + 8005ae2: 64fb str r3, [r7, #76] @ 0x4c + 8005ae4: e9d7 2312 ldrd r2, r3, [r7, #72] @ 0x48 + 8005ae8: 4641 mov r1, r8 + 8005aea: eb12 0a01 adds.w sl, r2, r1 + 8005aee: 4649 mov r1, r9 + 8005af0: eb43 0b01 adc.w fp, r3, r1 + 8005af4: f04f 0200 mov.w r2, #0 + 8005af8: f04f 0300 mov.w r3, #0 + 8005afc: ea4f 03cb mov.w r3, fp, lsl #3 + 8005b00: ea43 735a orr.w r3, r3, sl, lsr #29 + 8005b04: ea4f 02ca mov.w r2, sl, lsl #3 + 8005b08: 4692 mov sl, r2 + 8005b0a: 469b mov fp, r3 + 8005b0c: 4643 mov r3, r8 + 8005b0e: eb1a 0303 adds.w r3, sl, r3 + 8005b12: f8c7 30c8 str.w r3, [r7, #200] @ 0xc8 + 8005b16: 464b mov r3, r9 + 8005b18: eb4b 0303 adc.w r3, fp, r3 + 8005b1c: f8c7 30cc str.w r3, [r7, #204] @ 0xcc + 8005b20: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8005b24: 685b ldr r3, [r3, #4] + 8005b26: 2200 movs r2, #0 + 8005b28: f8c7 30c0 str.w r3, [r7, #192] @ 0xc0 + 8005b2c: f8c7 20c4 str.w r2, [r7, #196] @ 0xc4 + 8005b30: e9d7 1230 ldrd r1, r2, [r7, #192] @ 0xc0 + 8005b34: 460b mov r3, r1 + 8005b36: 18db adds r3, r3, r3 + 8005b38: 643b str r3, [r7, #64] @ 0x40 + 8005b3a: 4613 mov r3, r2 + 8005b3c: eb42 0303 adc.w r3, r2, r3 + 8005b40: 647b str r3, [r7, #68] @ 0x44 + 8005b42: e9d7 2310 ldrd r2, r3, [r7, #64] @ 0x40 + 8005b46: e9d7 0132 ldrd r0, r1, [r7, #200] @ 0xc8 + 8005b4a: f7fa fb5b bl 8000204 <__aeabi_uldivmod> + 8005b4e: 4602 mov r2, r0 + 8005b50: 460b mov r3, r1 + 8005b52: 4611 mov r1, r2 + 8005b54: 4b3b ldr r3, [pc, #236] @ (8005c44 ) + 8005b56: fba3 2301 umull r2, r3, r3, r1 + 8005b5a: 095b lsrs r3, r3, #5 + 8005b5c: 2264 movs r2, #100 @ 0x64 + 8005b5e: fb02 f303 mul.w r3, r2, r3 + 8005b62: 1acb subs r3, r1, r3 + 8005b64: 00db lsls r3, r3, #3 + 8005b66: f103 0232 add.w r2, r3, #50 @ 0x32 + 8005b6a: 4b36 ldr r3, [pc, #216] @ (8005c44 ) + 8005b6c: fba3 2302 umull r2, r3, r3, r2 + 8005b70: 095b lsrs r3, r3, #5 + 8005b72: 005b lsls r3, r3, #1 + 8005b74: f403 73f8 and.w r3, r3, #496 @ 0x1f0 + 8005b78: 441c add r4, r3 + 8005b7a: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc + 8005b7e: 2200 movs r2, #0 + 8005b80: f8c7 30b8 str.w r3, [r7, #184] @ 0xb8 + 8005b84: f8c7 20bc str.w r2, [r7, #188] @ 0xbc + 8005b88: e9d7 892e ldrd r8, r9, [r7, #184] @ 0xb8 + 8005b8c: 4642 mov r2, r8 + 8005b8e: 464b mov r3, r9 + 8005b90: 1891 adds r1, r2, r2 + 8005b92: 63b9 str r1, [r7, #56] @ 0x38 + 8005b94: 415b adcs r3, r3 + 8005b96: 63fb str r3, [r7, #60] @ 0x3c + 8005b98: e9d7 230e ldrd r2, r3, [r7, #56] @ 0x38 + 8005b9c: 4641 mov r1, r8 + 8005b9e: 1851 adds r1, r2, r1 + 8005ba0: 6339 str r1, [r7, #48] @ 0x30 + 8005ba2: 4649 mov r1, r9 + 8005ba4: 414b adcs r3, r1 + 8005ba6: 637b str r3, [r7, #52] @ 0x34 + 8005ba8: f04f 0200 mov.w r2, #0 + 8005bac: f04f 0300 mov.w r3, #0 + 8005bb0: e9d7 ab0c ldrd sl, fp, [r7, #48] @ 0x30 + 8005bb4: 4659 mov r1, fp + 8005bb6: 00cb lsls r3, r1, #3 + 8005bb8: 4651 mov r1, sl + 8005bba: ea43 7351 orr.w r3, r3, r1, lsr #29 + 8005bbe: 4651 mov r1, sl + 8005bc0: 00ca lsls r2, r1, #3 + 8005bc2: 4610 mov r0, r2 + 8005bc4: 4619 mov r1, r3 + 8005bc6: 4603 mov r3, r0 + 8005bc8: 4642 mov r2, r8 + 8005bca: 189b adds r3, r3, r2 + 8005bcc: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 + 8005bd0: 464b mov r3, r9 + 8005bd2: 460a mov r2, r1 + 8005bd4: eb42 0303 adc.w r3, r2, r3 + 8005bd8: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 + 8005bdc: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8005be0: 685b ldr r3, [r3, #4] + 8005be2: 2200 movs r2, #0 + 8005be4: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8 + 8005be8: f8c7 20ac str.w r2, [r7, #172] @ 0xac + 8005bec: e9d7 122a ldrd r1, r2, [r7, #168] @ 0xa8 + 8005bf0: 460b mov r3, r1 + 8005bf2: 18db adds r3, r3, r3 + 8005bf4: 62bb str r3, [r7, #40] @ 0x28 + 8005bf6: 4613 mov r3, r2 + 8005bf8: eb42 0303 adc.w r3, r2, r3 + 8005bfc: 62fb str r3, [r7, #44] @ 0x2c + 8005bfe: e9d7 230a ldrd r2, r3, [r7, #40] @ 0x28 + 8005c02: e9d7 012c ldrd r0, r1, [r7, #176] @ 0xb0 + 8005c06: f7fa fafd bl 8000204 <__aeabi_uldivmod> + 8005c0a: 4602 mov r2, r0 + 8005c0c: 460b mov r3, r1 + 8005c0e: 4b0d ldr r3, [pc, #52] @ (8005c44 ) + 8005c10: fba3 1302 umull r1, r3, r3, r2 + 8005c14: 095b lsrs r3, r3, #5 + 8005c16: 2164 movs r1, #100 @ 0x64 + 8005c18: fb01 f303 mul.w r3, r1, r3 + 8005c1c: 1ad3 subs r3, r2, r3 + 8005c1e: 00db lsls r3, r3, #3 + 8005c20: 3332 adds r3, #50 @ 0x32 + 8005c22: 4a08 ldr r2, [pc, #32] @ (8005c44 ) + 8005c24: fba2 2303 umull r2, r3, r2, r3 + 8005c28: 095b lsrs r3, r3, #5 + 8005c2a: f003 0207 and.w r2, r3, #7 + 8005c2e: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8005c32: 681b ldr r3, [r3, #0] + 8005c34: 4422 add r2, r4 + 8005c36: 609a str r2, [r3, #8] } else { huart->Instance->BRR = UART_BRR_SAMPLING16(pclk, huart->Init.BaudRate); } } - 8005798: e106 b.n 80059a8 - 800579a: bf00 nop - 800579c: 40011000 .word 0x40011000 - 80057a0: 40011400 .word 0x40011400 - 80057a4: 51eb851f .word 0x51eb851f + 8005c38: e106 b.n 8005e48 + 8005c3a: bf00 nop + 8005c3c: 40011000 .word 0x40011000 + 8005c40: 40011400 .word 0x40011400 + 8005c44: 51eb851f .word 0x51eb851f huart->Instance->BRR = UART_BRR_SAMPLING16(pclk, huart->Init.BaudRate); - 80057a8: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc - 80057ac: 2200 movs r2, #0 - 80057ae: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0 - 80057b2: f8c7 20a4 str.w r2, [r7, #164] @ 0xa4 - 80057b6: e9d7 8928 ldrd r8, r9, [r7, #160] @ 0xa0 - 80057ba: 4642 mov r2, r8 - 80057bc: 464b mov r3, r9 - 80057be: 1891 adds r1, r2, r2 - 80057c0: 6239 str r1, [r7, #32] - 80057c2: 415b adcs r3, r3 - 80057c4: 627b str r3, [r7, #36] @ 0x24 - 80057c6: e9d7 2308 ldrd r2, r3, [r7, #32] - 80057ca: 4641 mov r1, r8 - 80057cc: 1854 adds r4, r2, r1 - 80057ce: 4649 mov r1, r9 - 80057d0: eb43 0501 adc.w r5, r3, r1 - 80057d4: f04f 0200 mov.w r2, #0 - 80057d8: f04f 0300 mov.w r3, #0 - 80057dc: 00eb lsls r3, r5, #3 - 80057de: ea43 7354 orr.w r3, r3, r4, lsr #29 - 80057e2: 00e2 lsls r2, r4, #3 - 80057e4: 4614 mov r4, r2 - 80057e6: 461d mov r5, r3 - 80057e8: 4643 mov r3, r8 - 80057ea: 18e3 adds r3, r4, r3 - 80057ec: f8c7 3098 str.w r3, [r7, #152] @ 0x98 - 80057f0: 464b mov r3, r9 - 80057f2: eb45 0303 adc.w r3, r5, r3 - 80057f6: f8c7 309c str.w r3, [r7, #156] @ 0x9c - 80057fa: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 80057fe: 685b ldr r3, [r3, #4] - 8005800: 2200 movs r2, #0 - 8005802: f8c7 3090 str.w r3, [r7, #144] @ 0x90 - 8005806: f8c7 2094 str.w r2, [r7, #148] @ 0x94 - 800580a: f04f 0200 mov.w r2, #0 - 800580e: f04f 0300 mov.w r3, #0 - 8005812: e9d7 4524 ldrd r4, r5, [r7, #144] @ 0x90 - 8005816: 4629 mov r1, r5 - 8005818: 008b lsls r3, r1, #2 - 800581a: 4621 mov r1, r4 - 800581c: ea43 7391 orr.w r3, r3, r1, lsr #30 - 8005820: 4621 mov r1, r4 - 8005822: 008a lsls r2, r1, #2 - 8005824: e9d7 0126 ldrd r0, r1, [r7, #152] @ 0x98 - 8005828: f7fa fcec bl 8000204 <__aeabi_uldivmod> - 800582c: 4602 mov r2, r0 - 800582e: 460b mov r3, r1 - 8005830: 4b60 ldr r3, [pc, #384] @ (80059b4 ) - 8005832: fba3 2302 umull r2, r3, r3, r2 - 8005836: 095b lsrs r3, r3, #5 - 8005838: 011c lsls r4, r3, #4 - 800583a: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc - 800583e: 2200 movs r2, #0 - 8005840: f8c7 3088 str.w r3, [r7, #136] @ 0x88 - 8005844: f8c7 208c str.w r2, [r7, #140] @ 0x8c - 8005848: e9d7 8922 ldrd r8, r9, [r7, #136] @ 0x88 - 800584c: 4642 mov r2, r8 - 800584e: 464b mov r3, r9 - 8005850: 1891 adds r1, r2, r2 - 8005852: 61b9 str r1, [r7, #24] - 8005854: 415b adcs r3, r3 - 8005856: 61fb str r3, [r7, #28] - 8005858: e9d7 2306 ldrd r2, r3, [r7, #24] - 800585c: 4641 mov r1, r8 - 800585e: 1851 adds r1, r2, r1 - 8005860: 6139 str r1, [r7, #16] - 8005862: 4649 mov r1, r9 - 8005864: 414b adcs r3, r1 - 8005866: 617b str r3, [r7, #20] - 8005868: f04f 0200 mov.w r2, #0 - 800586c: f04f 0300 mov.w r3, #0 - 8005870: e9d7 ab04 ldrd sl, fp, [r7, #16] - 8005874: 4659 mov r1, fp - 8005876: 00cb lsls r3, r1, #3 - 8005878: 4651 mov r1, sl - 800587a: ea43 7351 orr.w r3, r3, r1, lsr #29 - 800587e: 4651 mov r1, sl - 8005880: 00ca lsls r2, r1, #3 - 8005882: 4610 mov r0, r2 - 8005884: 4619 mov r1, r3 - 8005886: 4603 mov r3, r0 - 8005888: 4642 mov r2, r8 - 800588a: 189b adds r3, r3, r2 - 800588c: f8c7 3080 str.w r3, [r7, #128] @ 0x80 - 8005890: 464b mov r3, r9 - 8005892: 460a mov r2, r1 - 8005894: eb42 0303 adc.w r3, r2, r3 - 8005898: f8c7 3084 str.w r3, [r7, #132] @ 0x84 - 800589c: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 80058a0: 685b ldr r3, [r3, #4] - 80058a2: 2200 movs r2, #0 - 80058a4: 67bb str r3, [r7, #120] @ 0x78 - 80058a6: 67fa str r2, [r7, #124] @ 0x7c - 80058a8: f04f 0200 mov.w r2, #0 - 80058ac: f04f 0300 mov.w r3, #0 - 80058b0: e9d7 891e ldrd r8, r9, [r7, #120] @ 0x78 - 80058b4: 4649 mov r1, r9 - 80058b6: 008b lsls r3, r1, #2 - 80058b8: 4641 mov r1, r8 - 80058ba: ea43 7391 orr.w r3, r3, r1, lsr #30 - 80058be: 4641 mov r1, r8 - 80058c0: 008a lsls r2, r1, #2 - 80058c2: e9d7 0120 ldrd r0, r1, [r7, #128] @ 0x80 - 80058c6: f7fa fc9d bl 8000204 <__aeabi_uldivmod> - 80058ca: 4602 mov r2, r0 - 80058cc: 460b mov r3, r1 - 80058ce: 4611 mov r1, r2 - 80058d0: 4b38 ldr r3, [pc, #224] @ (80059b4 ) - 80058d2: fba3 2301 umull r2, r3, r3, r1 - 80058d6: 095b lsrs r3, r3, #5 - 80058d8: 2264 movs r2, #100 @ 0x64 - 80058da: fb02 f303 mul.w r3, r2, r3 - 80058de: 1acb subs r3, r1, r3 - 80058e0: 011b lsls r3, r3, #4 - 80058e2: 3332 adds r3, #50 @ 0x32 - 80058e4: 4a33 ldr r2, [pc, #204] @ (80059b4 ) - 80058e6: fba2 2303 umull r2, r3, r2, r3 - 80058ea: 095b lsrs r3, r3, #5 - 80058ec: f003 03f0 and.w r3, r3, #240 @ 0xf0 - 80058f0: 441c add r4, r3 - 80058f2: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc - 80058f6: 2200 movs r2, #0 - 80058f8: 673b str r3, [r7, #112] @ 0x70 - 80058fa: 677a str r2, [r7, #116] @ 0x74 - 80058fc: e9d7 891c ldrd r8, r9, [r7, #112] @ 0x70 - 8005900: 4642 mov r2, r8 - 8005902: 464b mov r3, r9 - 8005904: 1891 adds r1, r2, r2 - 8005906: 60b9 str r1, [r7, #8] - 8005908: 415b adcs r3, r3 - 800590a: 60fb str r3, [r7, #12] - 800590c: e9d7 2302 ldrd r2, r3, [r7, #8] - 8005910: 4641 mov r1, r8 - 8005912: 1851 adds r1, r2, r1 - 8005914: 6039 str r1, [r7, #0] - 8005916: 4649 mov r1, r9 - 8005918: 414b adcs r3, r1 - 800591a: 607b str r3, [r7, #4] - 800591c: f04f 0200 mov.w r2, #0 - 8005920: f04f 0300 mov.w r3, #0 - 8005924: e9d7 ab00 ldrd sl, fp, [r7] - 8005928: 4659 mov r1, fp - 800592a: 00cb lsls r3, r1, #3 - 800592c: 4651 mov r1, sl - 800592e: ea43 7351 orr.w r3, r3, r1, lsr #29 - 8005932: 4651 mov r1, sl - 8005934: 00ca lsls r2, r1, #3 - 8005936: 4610 mov r0, r2 - 8005938: 4619 mov r1, r3 - 800593a: 4603 mov r3, r0 - 800593c: 4642 mov r2, r8 - 800593e: 189b adds r3, r3, r2 - 8005940: 66bb str r3, [r7, #104] @ 0x68 - 8005942: 464b mov r3, r9 - 8005944: 460a mov r2, r1 - 8005946: eb42 0303 adc.w r3, r2, r3 - 800594a: 66fb str r3, [r7, #108] @ 0x6c - 800594c: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 8005950: 685b ldr r3, [r3, #4] - 8005952: 2200 movs r2, #0 - 8005954: 663b str r3, [r7, #96] @ 0x60 - 8005956: 667a str r2, [r7, #100] @ 0x64 - 8005958: f04f 0200 mov.w r2, #0 - 800595c: f04f 0300 mov.w r3, #0 - 8005960: e9d7 8918 ldrd r8, r9, [r7, #96] @ 0x60 - 8005964: 4649 mov r1, r9 - 8005966: 008b lsls r3, r1, #2 - 8005968: 4641 mov r1, r8 - 800596a: ea43 7391 orr.w r3, r3, r1, lsr #30 - 800596e: 4641 mov r1, r8 - 8005970: 008a lsls r2, r1, #2 - 8005972: e9d7 011a ldrd r0, r1, [r7, #104] @ 0x68 - 8005976: f7fa fc45 bl 8000204 <__aeabi_uldivmod> - 800597a: 4602 mov r2, r0 - 800597c: 460b mov r3, r1 - 800597e: 4b0d ldr r3, [pc, #52] @ (80059b4 ) - 8005980: fba3 1302 umull r1, r3, r3, r2 - 8005984: 095b lsrs r3, r3, #5 - 8005986: 2164 movs r1, #100 @ 0x64 - 8005988: fb01 f303 mul.w r3, r1, r3 - 800598c: 1ad3 subs r3, r2, r3 - 800598e: 011b lsls r3, r3, #4 - 8005990: 3332 adds r3, #50 @ 0x32 - 8005992: 4a08 ldr r2, [pc, #32] @ (80059b4 ) - 8005994: fba2 2303 umull r2, r3, r2, r3 - 8005998: 095b lsrs r3, r3, #5 - 800599a: f003 020f and.w r2, r3, #15 - 800599e: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 80059a2: 681b ldr r3, [r3, #0] - 80059a4: 4422 add r2, r4 - 80059a6: 609a str r2, [r3, #8] + 8005c48: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc + 8005c4c: 2200 movs r2, #0 + 8005c4e: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0 + 8005c52: f8c7 20a4 str.w r2, [r7, #164] @ 0xa4 + 8005c56: e9d7 8928 ldrd r8, r9, [r7, #160] @ 0xa0 + 8005c5a: 4642 mov r2, r8 + 8005c5c: 464b mov r3, r9 + 8005c5e: 1891 adds r1, r2, r2 + 8005c60: 6239 str r1, [r7, #32] + 8005c62: 415b adcs r3, r3 + 8005c64: 627b str r3, [r7, #36] @ 0x24 + 8005c66: e9d7 2308 ldrd r2, r3, [r7, #32] + 8005c6a: 4641 mov r1, r8 + 8005c6c: 1854 adds r4, r2, r1 + 8005c6e: 4649 mov r1, r9 + 8005c70: eb43 0501 adc.w r5, r3, r1 + 8005c74: f04f 0200 mov.w r2, #0 + 8005c78: f04f 0300 mov.w r3, #0 + 8005c7c: 00eb lsls r3, r5, #3 + 8005c7e: ea43 7354 orr.w r3, r3, r4, lsr #29 + 8005c82: 00e2 lsls r2, r4, #3 + 8005c84: 4614 mov r4, r2 + 8005c86: 461d mov r5, r3 + 8005c88: 4643 mov r3, r8 + 8005c8a: 18e3 adds r3, r4, r3 + 8005c8c: f8c7 3098 str.w r3, [r7, #152] @ 0x98 + 8005c90: 464b mov r3, r9 + 8005c92: eb45 0303 adc.w r3, r5, r3 + 8005c96: f8c7 309c str.w r3, [r7, #156] @ 0x9c + 8005c9a: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8005c9e: 685b ldr r3, [r3, #4] + 8005ca0: 2200 movs r2, #0 + 8005ca2: f8c7 3090 str.w r3, [r7, #144] @ 0x90 + 8005ca6: f8c7 2094 str.w r2, [r7, #148] @ 0x94 + 8005caa: f04f 0200 mov.w r2, #0 + 8005cae: f04f 0300 mov.w r3, #0 + 8005cb2: e9d7 4524 ldrd r4, r5, [r7, #144] @ 0x90 + 8005cb6: 4629 mov r1, r5 + 8005cb8: 008b lsls r3, r1, #2 + 8005cba: 4621 mov r1, r4 + 8005cbc: ea43 7391 orr.w r3, r3, r1, lsr #30 + 8005cc0: 4621 mov r1, r4 + 8005cc2: 008a lsls r2, r1, #2 + 8005cc4: e9d7 0126 ldrd r0, r1, [r7, #152] @ 0x98 + 8005cc8: f7fa fa9c bl 8000204 <__aeabi_uldivmod> + 8005ccc: 4602 mov r2, r0 + 8005cce: 460b mov r3, r1 + 8005cd0: 4b60 ldr r3, [pc, #384] @ (8005e54 ) + 8005cd2: fba3 2302 umull r2, r3, r3, r2 + 8005cd6: 095b lsrs r3, r3, #5 + 8005cd8: 011c lsls r4, r3, #4 + 8005cda: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc + 8005cde: 2200 movs r2, #0 + 8005ce0: f8c7 3088 str.w r3, [r7, #136] @ 0x88 + 8005ce4: f8c7 208c str.w r2, [r7, #140] @ 0x8c + 8005ce8: e9d7 8922 ldrd r8, r9, [r7, #136] @ 0x88 + 8005cec: 4642 mov r2, r8 + 8005cee: 464b mov r3, r9 + 8005cf0: 1891 adds r1, r2, r2 + 8005cf2: 61b9 str r1, [r7, #24] + 8005cf4: 415b adcs r3, r3 + 8005cf6: 61fb str r3, [r7, #28] + 8005cf8: e9d7 2306 ldrd r2, r3, [r7, #24] + 8005cfc: 4641 mov r1, r8 + 8005cfe: 1851 adds r1, r2, r1 + 8005d00: 6139 str r1, [r7, #16] + 8005d02: 4649 mov r1, r9 + 8005d04: 414b adcs r3, r1 + 8005d06: 617b str r3, [r7, #20] + 8005d08: f04f 0200 mov.w r2, #0 + 8005d0c: f04f 0300 mov.w r3, #0 + 8005d10: e9d7 ab04 ldrd sl, fp, [r7, #16] + 8005d14: 4659 mov r1, fp + 8005d16: 00cb lsls r3, r1, #3 + 8005d18: 4651 mov r1, sl + 8005d1a: ea43 7351 orr.w r3, r3, r1, lsr #29 + 8005d1e: 4651 mov r1, sl + 8005d20: 00ca lsls r2, r1, #3 + 8005d22: 4610 mov r0, r2 + 8005d24: 4619 mov r1, r3 + 8005d26: 4603 mov r3, r0 + 8005d28: 4642 mov r2, r8 + 8005d2a: 189b adds r3, r3, r2 + 8005d2c: f8c7 3080 str.w r3, [r7, #128] @ 0x80 + 8005d30: 464b mov r3, r9 + 8005d32: 460a mov r2, r1 + 8005d34: eb42 0303 adc.w r3, r2, r3 + 8005d38: f8c7 3084 str.w r3, [r7, #132] @ 0x84 + 8005d3c: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8005d40: 685b ldr r3, [r3, #4] + 8005d42: 2200 movs r2, #0 + 8005d44: 67bb str r3, [r7, #120] @ 0x78 + 8005d46: 67fa str r2, [r7, #124] @ 0x7c + 8005d48: f04f 0200 mov.w r2, #0 + 8005d4c: f04f 0300 mov.w r3, #0 + 8005d50: e9d7 891e ldrd r8, r9, [r7, #120] @ 0x78 + 8005d54: 4649 mov r1, r9 + 8005d56: 008b lsls r3, r1, #2 + 8005d58: 4641 mov r1, r8 + 8005d5a: ea43 7391 orr.w r3, r3, r1, lsr #30 + 8005d5e: 4641 mov r1, r8 + 8005d60: 008a lsls r2, r1, #2 + 8005d62: e9d7 0120 ldrd r0, r1, [r7, #128] @ 0x80 + 8005d66: f7fa fa4d bl 8000204 <__aeabi_uldivmod> + 8005d6a: 4602 mov r2, r0 + 8005d6c: 460b mov r3, r1 + 8005d6e: 4611 mov r1, r2 + 8005d70: 4b38 ldr r3, [pc, #224] @ (8005e54 ) + 8005d72: fba3 2301 umull r2, r3, r3, r1 + 8005d76: 095b lsrs r3, r3, #5 + 8005d78: 2264 movs r2, #100 @ 0x64 + 8005d7a: fb02 f303 mul.w r3, r2, r3 + 8005d7e: 1acb subs r3, r1, r3 + 8005d80: 011b lsls r3, r3, #4 + 8005d82: 3332 adds r3, #50 @ 0x32 + 8005d84: 4a33 ldr r2, [pc, #204] @ (8005e54 ) + 8005d86: fba2 2303 umull r2, r3, r2, r3 + 8005d8a: 095b lsrs r3, r3, #5 + 8005d8c: f003 03f0 and.w r3, r3, #240 @ 0xf0 + 8005d90: 441c add r4, r3 + 8005d92: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc + 8005d96: 2200 movs r2, #0 + 8005d98: 673b str r3, [r7, #112] @ 0x70 + 8005d9a: 677a str r2, [r7, #116] @ 0x74 + 8005d9c: e9d7 891c ldrd r8, r9, [r7, #112] @ 0x70 + 8005da0: 4642 mov r2, r8 + 8005da2: 464b mov r3, r9 + 8005da4: 1891 adds r1, r2, r2 + 8005da6: 60b9 str r1, [r7, #8] + 8005da8: 415b adcs r3, r3 + 8005daa: 60fb str r3, [r7, #12] + 8005dac: e9d7 2302 ldrd r2, r3, [r7, #8] + 8005db0: 4641 mov r1, r8 + 8005db2: 1851 adds r1, r2, r1 + 8005db4: 6039 str r1, [r7, #0] + 8005db6: 4649 mov r1, r9 + 8005db8: 414b adcs r3, r1 + 8005dba: 607b str r3, [r7, #4] + 8005dbc: f04f 0200 mov.w r2, #0 + 8005dc0: f04f 0300 mov.w r3, #0 + 8005dc4: e9d7 ab00 ldrd sl, fp, [r7] + 8005dc8: 4659 mov r1, fp + 8005dca: 00cb lsls r3, r1, #3 + 8005dcc: 4651 mov r1, sl + 8005dce: ea43 7351 orr.w r3, r3, r1, lsr #29 + 8005dd2: 4651 mov r1, sl + 8005dd4: 00ca lsls r2, r1, #3 + 8005dd6: 4610 mov r0, r2 + 8005dd8: 4619 mov r1, r3 + 8005dda: 4603 mov r3, r0 + 8005ddc: 4642 mov r2, r8 + 8005dde: 189b adds r3, r3, r2 + 8005de0: 66bb str r3, [r7, #104] @ 0x68 + 8005de2: 464b mov r3, r9 + 8005de4: 460a mov r2, r1 + 8005de6: eb42 0303 adc.w r3, r2, r3 + 8005dea: 66fb str r3, [r7, #108] @ 0x6c + 8005dec: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8005df0: 685b ldr r3, [r3, #4] + 8005df2: 2200 movs r2, #0 + 8005df4: 663b str r3, [r7, #96] @ 0x60 + 8005df6: 667a str r2, [r7, #100] @ 0x64 + 8005df8: f04f 0200 mov.w r2, #0 + 8005dfc: f04f 0300 mov.w r3, #0 + 8005e00: e9d7 8918 ldrd r8, r9, [r7, #96] @ 0x60 + 8005e04: 4649 mov r1, r9 + 8005e06: 008b lsls r3, r1, #2 + 8005e08: 4641 mov r1, r8 + 8005e0a: ea43 7391 orr.w r3, r3, r1, lsr #30 + 8005e0e: 4641 mov r1, r8 + 8005e10: 008a lsls r2, r1, #2 + 8005e12: e9d7 011a ldrd r0, r1, [r7, #104] @ 0x68 + 8005e16: f7fa f9f5 bl 8000204 <__aeabi_uldivmod> + 8005e1a: 4602 mov r2, r0 + 8005e1c: 460b mov r3, r1 + 8005e1e: 4b0d ldr r3, [pc, #52] @ (8005e54 ) + 8005e20: fba3 1302 umull r1, r3, r3, r2 + 8005e24: 095b lsrs r3, r3, #5 + 8005e26: 2164 movs r1, #100 @ 0x64 + 8005e28: fb01 f303 mul.w r3, r1, r3 + 8005e2c: 1ad3 subs r3, r2, r3 + 8005e2e: 011b lsls r3, r3, #4 + 8005e30: 3332 adds r3, #50 @ 0x32 + 8005e32: 4a08 ldr r2, [pc, #32] @ (8005e54 ) + 8005e34: fba2 2303 umull r2, r3, r2, r3 + 8005e38: 095b lsrs r3, r3, #5 + 8005e3a: f003 020f and.w r2, r3, #15 + 8005e3e: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8005e42: 681b ldr r3, [r3, #0] + 8005e44: 4422 add r2, r4 + 8005e46: 609a str r2, [r3, #8] } - 80059a8: bf00 nop - 80059aa: f507 7780 add.w r7, r7, #256 @ 0x100 - 80059ae: 46bd mov sp, r7 - 80059b0: e8bd 8fb0 ldmia.w sp!, {r4, r5, r7, r8, r9, sl, fp, pc} - 80059b4: 51eb851f .word 0x51eb851f + 8005e48: bf00 nop + 8005e4a: f507 7780 add.w r7, r7, #256 @ 0x100 + 8005e4e: 46bd mov sp, r7 + 8005e50: e8bd 8fb0 ldmia.w sp!, {r4, r5, r7, r8, r9, sl, fp, pc} + 8005e54: 51eb851f .word 0x51eb851f -080059b8 : - 80059b8: 4402 add r2, r0 - 80059ba: 4603 mov r3, r0 - 80059bc: 4293 cmp r3, r2 - 80059be: d100 bne.n 80059c2 - 80059c0: 4770 bx lr - 80059c2: f803 1b01 strb.w r1, [r3], #1 - 80059c6: e7f9 b.n 80059bc +08005e58 : + 8005e58: 4402 add r2, r0 + 8005e5a: 4603 mov r3, r0 + 8005e5c: 4293 cmp r3, r2 + 8005e5e: d100 bne.n 8005e62 + 8005e60: 4770 bx lr + 8005e62: f803 1b01 strb.w r1, [r3], #1 + 8005e66: e7f9 b.n 8005e5c -080059c8 <__libc_init_array>: - 80059c8: b570 push {r4, r5, r6, lr} - 80059ca: 4d0d ldr r5, [pc, #52] @ (8005a00 <__libc_init_array+0x38>) - 80059cc: 4c0d ldr r4, [pc, #52] @ (8005a04 <__libc_init_array+0x3c>) - 80059ce: 1b64 subs r4, r4, r5 - 80059d0: 10a4 asrs r4, r4, #2 - 80059d2: 2600 movs r6, #0 - 80059d4: 42a6 cmp r6, r4 - 80059d6: d109 bne.n 80059ec <__libc_init_array+0x24> - 80059d8: 4d0b ldr r5, [pc, #44] @ (8005a08 <__libc_init_array+0x40>) - 80059da: 4c0c ldr r4, [pc, #48] @ (8005a0c <__libc_init_array+0x44>) - 80059dc: f000 f826 bl 8005a2c <_init> - 80059e0: 1b64 subs r4, r4, r5 - 80059e2: 10a4 asrs r4, r4, #2 - 80059e4: 2600 movs r6, #0 - 80059e6: 42a6 cmp r6, r4 - 80059e8: d105 bne.n 80059f6 <__libc_init_array+0x2e> - 80059ea: bd70 pop {r4, r5, r6, pc} - 80059ec: f855 3b04 ldr.w r3, [r5], #4 - 80059f0: 4798 blx r3 - 80059f2: 3601 adds r6, #1 - 80059f4: e7ee b.n 80059d4 <__libc_init_array+0xc> - 80059f6: f855 3b04 ldr.w r3, [r5], #4 - 80059fa: 4798 blx r3 - 80059fc: 3601 adds r6, #1 - 80059fe: e7f2 b.n 80059e6 <__libc_init_array+0x1e> - 8005a00: 08005a64 .word 0x08005a64 - 8005a04: 08005a64 .word 0x08005a64 - 8005a08: 08005a64 .word 0x08005a64 - 8005a0c: 08005a68 .word 0x08005a68 +08005e68 <__libc_init_array>: + 8005e68: b570 push {r4, r5, r6, lr} + 8005e6a: 4d0d ldr r5, [pc, #52] @ (8005ea0 <__libc_init_array+0x38>) + 8005e6c: 4c0d ldr r4, [pc, #52] @ (8005ea4 <__libc_init_array+0x3c>) + 8005e6e: 1b64 subs r4, r4, r5 + 8005e70: 10a4 asrs r4, r4, #2 + 8005e72: 2600 movs r6, #0 + 8005e74: 42a6 cmp r6, r4 + 8005e76: d109 bne.n 8005e8c <__libc_init_array+0x24> + 8005e78: 4d0b ldr r5, [pc, #44] @ (8005ea8 <__libc_init_array+0x40>) + 8005e7a: 4c0c ldr r4, [pc, #48] @ (8005eac <__libc_init_array+0x44>) + 8005e7c: f000 f826 bl 8005ecc <_init> + 8005e80: 1b64 subs r4, r4, r5 + 8005e82: 10a4 asrs r4, r4, #2 + 8005e84: 2600 movs r6, #0 + 8005e86: 42a6 cmp r6, r4 + 8005e88: d105 bne.n 8005e96 <__libc_init_array+0x2e> + 8005e8a: bd70 pop {r4, r5, r6, pc} + 8005e8c: f855 3b04 ldr.w r3, [r5], #4 + 8005e90: 4798 blx r3 + 8005e92: 3601 adds r6, #1 + 8005e94: e7ee b.n 8005e74 <__libc_init_array+0xc> + 8005e96: f855 3b04 ldr.w r3, [r5], #4 + 8005e9a: 4798 blx r3 + 8005e9c: 3601 adds r6, #1 + 8005e9e: e7f2 b.n 8005e86 <__libc_init_array+0x1e> + 8005ea0: 08005f2c .word 0x08005f2c + 8005ea4: 08005f2c .word 0x08005f2c + 8005ea8: 08005f2c .word 0x08005f2c + 8005eac: 08005f30 .word 0x08005f30 -08005a10 : - 8005a10: 440a add r2, r1 - 8005a12: 4291 cmp r1, r2 - 8005a14: f100 33ff add.w r3, r0, #4294967295 - 8005a18: d100 bne.n 8005a1c - 8005a1a: 4770 bx lr - 8005a1c: b510 push {r4, lr} - 8005a1e: f811 4b01 ldrb.w r4, [r1], #1 - 8005a22: f803 4f01 strb.w r4, [r3, #1]! - 8005a26: 4291 cmp r1, r2 - 8005a28: d1f9 bne.n 8005a1e - 8005a2a: bd10 pop {r4, pc} +08005eb0 : + 8005eb0: 440a add r2, r1 + 8005eb2: 4291 cmp r1, r2 + 8005eb4: f100 33ff add.w r3, r0, #4294967295 + 8005eb8: d100 bne.n 8005ebc + 8005eba: 4770 bx lr + 8005ebc: b510 push {r4, lr} + 8005ebe: f811 4b01 ldrb.w r4, [r1], #1 + 8005ec2: f803 4f01 strb.w r4, [r3, #1]! + 8005ec6: 4291 cmp r1, r2 + 8005ec8: d1f9 bne.n 8005ebe + 8005eca: bd10 pop {r4, pc} -08005a2c <_init>: - 8005a2c: b5f8 push {r3, r4, r5, r6, r7, lr} - 8005a2e: bf00 nop - 8005a30: bcf8 pop {r3, r4, r5, r6, r7} - 8005a32: bc08 pop {r3} - 8005a34: 469e mov lr, r3 - 8005a36: 4770 bx lr +08005ecc <_init>: + 8005ecc: b5f8 push {r3, r4, r5, r6, r7, lr} + 8005ece: bf00 nop + 8005ed0: bcf8 pop {r3, r4, r5, r6, r7} + 8005ed2: bc08 pop {r3} + 8005ed4: 469e mov lr, r3 + 8005ed6: 4770 bx lr -08005a38 <_fini>: - 8005a38: b5f8 push {r3, r4, r5, r6, r7, lr} - 8005a3a: bf00 nop - 8005a3c: bcf8 pop {r3, r4, r5, r6, r7} - 8005a3e: bc08 pop {r3} - 8005a40: 469e mov lr, r3 - 8005a42: 4770 bx lr +08005ed8 <_fini>: + 8005ed8: b5f8 push {r3, r4, r5, r6, r7, lr} + 8005eda: bf00 nop + 8005edc: bcf8 pop {r3, r4, r5, r6, r7} + 8005ede: bc08 pop {r3} + 8005ee0: 469e mov lr, r3 + 8005ee2: 4770 bx lr diff --git a/controller/fw/bootloader/Debug/bootloader_.map b/controller/fw/bootloader/Debug/bootloader_.map index 2f54d00..8acce44 100644 --- a/controller/fw/bootloader/Debug/bootloader_.map +++ b/controller/fw/bootloader/Debug/bootloader_.map @@ -499,13 +499,15 @@ 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 .text 0x00000000 0x0 ./Core/Src/main.o .data 0x00000000 0x0 ./Core/Src/main.o .bss 0x00000000 0x0 ./Core/Src/main.o .bss.app_valid 0x00000000 0x1 ./Core/Src/main.o + .bss.jump 0x00000000 0x4 ./Core/Src/main.o .debug_macro 0x00000000 0xab4 ./Core/Src/main.o + .debug_macro 0x00000000 0x2ad ./Core/Src/main.o + .debug_macro 0x00000000 0x2e ./Core/Src/main.o .debug_macro 0x00000000 0x28 ./Core/Src/main.o .debug_macro 0x00000000 0x22 ./Core/Src/main.o .debug_macro 0x00000000 0x8e ./Core/Src/main.o @@ -519,35 +521,10 @@ Discarded input sections .debug_macro 0x00000000 0x1011 ./Core/Src/main.o .debug_macro 0x00000000 0x11f ./Core/Src/main.o .debug_macro 0x00000000 0x16749 ./Core/Src/main.o - .debug_macro 0x00000000 0x61 ./Core/Src/main.o - .debug_macro 0x00000000 0x2a ./Core/Src/main.o - .debug_macro 0x00000000 0x43 ./Core/Src/main.o - .debug_macro 0x00000000 0x34 ./Core/Src/main.o - .debug_macro 0x00000000 0x16 ./Core/Src/main.o - .debug_macro 0x00000000 0x9e ./Core/Src/main.o - .debug_macro 0x00000000 0x369 ./Core/Src/main.o - .debug_macro 0x00000000 0x10b ./Core/Src/main.o - .debug_macro 0x00000000 0x10 ./Core/Src/main.o - .debug_macro 0x00000000 0x16 ./Core/Src/main.o - .debug_macro 0x00000000 0x43 ./Core/Src/main.o - .debug_macro 0x00000000 0x34 ./Core/Src/main.o - .debug_macro 0x00000000 0x10 ./Core/Src/main.o - .debug_macro 0x00000000 0x58 ./Core/Src/main.o - .debug_macro 0x00000000 0x8e ./Core/Src/main.o - .debug_macro 0x00000000 0x1c ./Core/Src/main.o - .debug_macro 0x00000000 0x177 ./Core/Src/main.o - .debug_macro 0x00000000 0x16 ./Core/Src/main.o - .debug_macro 0x00000000 0x16 ./Core/Src/main.o - .debug_macro 0x00000000 0x146 ./Core/Src/main.o - .debug_macro 0x00000000 0x16 ./Core/Src/main.o - .debug_macro 0x00000000 0x35 ./Core/Src/main.o - .debug_macro 0x00000000 0x16 ./Core/Src/main.o - .debug_macro 0x00000000 0x29 ./Core/Src/main.o - .debug_macro 0x00000000 0x2ad ./Core/Src/main.o - .debug_macro 0x00000000 0x2e ./Core/Src/main.o .debug_macro 0x00000000 0x6d ./Core/Src/main.o .debug_macro 0x00000000 0x368c ./Core/Src/main.o - .debug_macro 0x00000000 0x56 ./Core/Src/main.o + .debug_macro 0x00000000 0x189 ./Core/Src/main.o + .debug_macro 0x00000000 0x5c ./Core/Src/main.o .debug_macro 0x00000000 0xca5 ./Core/Src/main.o .debug_macro 0x00000000 0x9e9 ./Core/Src/main.o .debug_macro 0x00000000 0x115 ./Core/Src/main.o @@ -574,6 +551,28 @@ Discarded input sections .debug_macro 0x00000000 0x2aa ./Core/Src/main.o .debug_macro 0x00000000 0x126 ./Core/Src/main.o .debug_macro 0x00000000 0xac ./Core/Src/main.o + .debug_macro 0x00000000 0x61 ./Core/Src/main.o + .debug_macro 0x00000000 0x2a ./Core/Src/main.o + .debug_macro 0x00000000 0x43 ./Core/Src/main.o + .debug_macro 0x00000000 0x34 ./Core/Src/main.o + .debug_macro 0x00000000 0x16 ./Core/Src/main.o + .debug_macro 0x00000000 0x35 ./Core/Src/main.o + .debug_macro 0x00000000 0x369 ./Core/Src/main.o + .debug_macro 0x00000000 0x10 ./Core/Src/main.o + .debug_macro 0x00000000 0x16 ./Core/Src/main.o + .debug_macro 0x00000000 0x43 ./Core/Src/main.o + .debug_macro 0x00000000 0x34 ./Core/Src/main.o + .debug_macro 0x00000000 0x10 ./Core/Src/main.o + .debug_macro 0x00000000 0x58 ./Core/Src/main.o + .debug_macro 0x00000000 0x8e ./Core/Src/main.o + .debug_macro 0x00000000 0x1c ./Core/Src/main.o + .debug_macro 0x00000000 0x177 ./Core/Src/main.o + .debug_macro 0x00000000 0x16 ./Core/Src/main.o + .debug_macro 0x00000000 0x16 ./Core/Src/main.o + .debug_macro 0x00000000 0x146 ./Core/Src/main.o + .debug_macro 0x00000000 0x16 ./Core/Src/main.o + .debug_macro 0x00000000 0x16 ./Core/Src/main.o + .debug_macro 0x00000000 0x29 ./Core/Src/main.o .debug_macro 0x00000000 0x76 ./Core/Src/main.o .debug_macro 0x00000000 0x22 ./Core/Src/main.o .group 0x00000000 0xc ./Core/Src/spi.o @@ -1090,7 +1089,7 @@ Discarded input sections .debug_macro 0x00000000 0x16 ./Core/Src/syscalls.o .debug_macro 0x00000000 0xce ./Core/Src/syscalls.o .debug_line 0x00000000 0x983 ./Core/Src/syscalls.o - .debug_str 0x00000000 0x98a1 ./Core/Src/syscalls.o + .debug_str 0x00000000 0x98bc ./Core/Src/syscalls.o .comment 0x00000000 0x44 ./Core/Src/syscalls.o .debug_frame 0x00000000 0x2ac ./Core/Src/syscalls.o .ARM.attributes @@ -1153,7 +1152,7 @@ Discarded input sections .debug_macro 0x00000000 0x6a ./Core/Src/sysmem.o .debug_macro 0x00000000 0x1df ./Core/Src/sysmem.o .debug_line 0x00000000 0x654 ./Core/Src/sysmem.o - .debug_str 0x00000000 0x60b9 ./Core/Src/sysmem.o + .debug_str 0x00000000 0x60d4 ./Core/Src/sysmem.o .comment 0x00000000 0x44 ./Core/Src/sysmem.o .debug_frame 0x00000000 0x34 ./Core/Src/sysmem.o .ARM.attributes @@ -1498,12 +1497,8 @@ Discarded input sections .text 0x00000000 0x0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o .data 0x00000000 0x0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o .bss 0x00000000 0x0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o - .text.HAL_DeInit - 0x00000000 0x5c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o .text.HAL_MspInit 0x00000000 0xe ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o - .text.HAL_MspDeInit - 0x00000000 0xe ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o .text.HAL_InitTick 0x00000000 0x60 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o .text.HAL_GetTickPrio @@ -1895,10 +1890,6 @@ Discarded input sections 0x00000000 0x14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_can.o .text.HAL_CAN_MspDeInit 0x00000000 0x14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_can.o - .text.HAL_CAN_ConfigFilter - 0x00000000 0x1c0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_can.o - .text.HAL_CAN_Start - 0x00000000 0x88 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_can.o .text.HAL_CAN_Stop 0x00000000 0x92 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_can.o .text.HAL_CAN_RequestSleep @@ -1915,6 +1906,8 @@ Discarded input sections 0x00000000 0x48 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_can.o .text.HAL_CAN_GetTxTimestamp 0x00000000 0x6a ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_can.o + .text.HAL_CAN_GetRxFifoFillLevel + 0x00000000 0x50 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_can.o .text.HAL_CAN_ActivateNotification 0x00000000 0x4c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_can.o .text.HAL_CAN_DeactivateNotification @@ -2373,7 +2366,7 @@ Discarded input sections .debug_macro 0x00000000 0x2aa ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma_ex.o .debug_macro 0x00000000 0x126 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma_ex.o .debug_line 0x00000000 0x1422 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma_ex.o - .debug_str 0x00000000 0xd951e ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma_ex.o + .debug_str 0x00000000 0xd9539 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma_ex.o .comment 0x00000000 0x44 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma_ex.o .debug_frame 0x00000000 0xac ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma_ex.o .ARM.attributes @@ -2497,7 +2490,7 @@ Discarded input sections .debug_macro 0x00000000 0x2aa ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.o .debug_macro 0x00000000 0x126 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.o .debug_line 0x00000000 0xaa1 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.o - .debug_str 0x00000000 0xd93c5 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.o + .debug_str 0x00000000 0xd93e0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.o .comment 0x00000000 0x44 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.o .debug_frame 0x00000000 0x174 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.o .ARM.attributes @@ -2846,7 +2839,7 @@ Discarded input sections .debug_macro 0x00000000 0x2aa ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ramfunc.o .debug_macro 0x00000000 0x126 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ramfunc.o .debug_line 0x00000000 0x7ea ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ramfunc.o - .debug_str 0x00000000 0xd9397 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ramfunc.o + .debug_str 0x00000000 0xd93b2 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ramfunc.o .comment 0x00000000 0x44 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ramfunc.o .debug_frame 0x00000000 0xb0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ramfunc.o .ARM.attributes @@ -3091,7 +3084,7 @@ Discarded input sections .debug_macro 0x00000000 0x2aa ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr.o .debug_macro 0x00000000 0x126 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr.o .debug_line 0x00000000 0x9a7 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr.o - .debug_str 0x00000000 0xd95a5 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr.o + .debug_str 0x00000000 0xd95c0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr.o .comment 0x00000000 0x44 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr.o .debug_frame 0x00000000 0x264 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr.o .ARM.attributes @@ -3380,8 +3373,6 @@ Discarded input sections 0x00000000 0x9c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o .text.HAL_RCCEx_DisablePLLSAI 0x00000000 0x48 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o - .text.HAL_RCC_DeInit - 0x00000000 0x1f0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o .text.HAL_RCC_GetOscConfig 0x00000000 0x138 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o .debug_macro 0x00000000 0xab4 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o @@ -4308,7 +4299,7 @@ Discarded input sections .debug_macro 0x00000000 0x11 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_adc.o .debug_macro 0x00000000 0xab4 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_adc.o .debug_line 0x00000000 0x57 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_adc.o - .debug_str 0x00000000 0x2e06 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_adc.o + .debug_str 0x00000000 0x2e21 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_adc.o .comment 0x00000000 0x44 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_adc.o .ARM.attributes 0x00000000 0x34 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_adc.o @@ -4550,7 +4541,7 @@ Memory Configuration Name Origin Length Attributes RAM 0x20000000 0x00020000 xrw -FLASH 0x08000000 0x00080000 xr +FLASH 0x08000000 0x00078000 xr *default* 0x00000000 0xffffffff Linker script and memory map @@ -4625,7 +4616,7 @@ LOAD D:/CubeIDE/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mc 0x08000000 g_pfnVectors 0x080001c4 . = ALIGN (0x4) -.text 0x080001c4 0x5880 +.text 0x080001c4 0x5d20 0x080001c4 . = ALIGN (0x4) *(.text) .text 0x080001c4 0x40 D:/CubeIDE/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/thumb/v7e-m+fp/hard/crtbegin.o @@ -4699,495 +4690,509 @@ LOAD D:/CubeIDE/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mc 0x08000e98 0x40 ./Core/Src/main.o 0x08000e98 verify_firmware .text.process_can_message - 0x08000ed8 0x138 ./Core/Src/main.o + 0x08000ed8 0x13c ./Core/Src/main.o 0x08000ed8 process_can_message .text.jump_to_app - 0x08001010 0x64 ./Core/Src/main.o - 0x08001010 jump_to_app + 0x08001014 0x6c ./Core/Src/main.o + 0x08001014 jump_to_app .text.is_app_valid - 0x08001074 0xb0 ./Core/Src/main.o - 0x08001074 is_app_valid - .text.main 0x08001124 0x130 ./Core/Src/main.o - 0x08001124 main + 0x08001080 0xb0 ./Core/Src/main.o + 0x08001080 is_app_valid + .text.main 0x08001130 0x170 ./Core/Src/main.o + 0x08001130 main .text.SystemClock_Config - 0x08001254 0xe4 ./Core/Src/main.o - 0x08001254 SystemClock_Config + 0x080012a0 0xe4 ./Core/Src/main.o + 0x080012a0 SystemClock_Config .text.MX_NVIC_Init - 0x08001338 0x18 ./Core/Src/main.o + 0x08001384 0x18 ./Core/Src/main.o .text.HAL_TIM_PeriodElapsedCallback - 0x08001350 0x1e ./Core/Src/main.o - 0x08001350 HAL_TIM_PeriodElapsedCallback + 0x0800139c 0x1e ./Core/Src/main.o + 0x0800139c HAL_TIM_PeriodElapsedCallback .text.Error_Handler - 0x0800136e 0xc ./Core/Src/main.o - 0x0800136e Error_Handler - *fill* 0x0800137a 0x2 + 0x080013ba 0xc ./Core/Src/main.o + 0x080013ba Error_Handler + *fill* 0x080013c6 0x2 .text.MX_SPI2_Init - 0x0800137c 0x70 ./Core/Src/spi.o - 0x0800137c MX_SPI2_Init + 0x080013c8 0x70 ./Core/Src/spi.o + 0x080013c8 MX_SPI2_Init .text.HAL_SPI_MspInit - 0x080013ec 0xe0 ./Core/Src/spi.o - 0x080013ec HAL_SPI_MspInit + 0x08001438 0xe0 ./Core/Src/spi.o + 0x08001438 HAL_SPI_MspInit .text.HAL_MspInit - 0x080014cc 0x50 ./Core/Src/stm32f4xx_hal_msp.o - 0x080014cc HAL_MspInit + 0x08001518 0x50 ./Core/Src/stm32f4xx_hal_msp.o + 0x08001518 HAL_MspInit .text.HAL_InitTick - 0x0800151c 0xf8 ./Core/Src/stm32f4xx_hal_timebase_tim.o - 0x0800151c HAL_InitTick + 0x08001568 0xf8 ./Core/Src/stm32f4xx_hal_timebase_tim.o + 0x08001568 HAL_InitTick .text.NMI_Handler - 0x08001614 0x8 ./Core/Src/stm32f4xx_it.o - 0x08001614 NMI_Handler + 0x08001660 0x8 ./Core/Src/stm32f4xx_it.o + 0x08001660 NMI_Handler .text.HardFault_Handler - 0x0800161c 0x8 ./Core/Src/stm32f4xx_it.o - 0x0800161c HardFault_Handler + 0x08001668 0x8 ./Core/Src/stm32f4xx_it.o + 0x08001668 HardFault_Handler .text.MemManage_Handler - 0x08001624 0x8 ./Core/Src/stm32f4xx_it.o - 0x08001624 MemManage_Handler + 0x08001670 0x8 ./Core/Src/stm32f4xx_it.o + 0x08001670 MemManage_Handler .text.BusFault_Handler - 0x0800162c 0x8 ./Core/Src/stm32f4xx_it.o - 0x0800162c BusFault_Handler + 0x08001678 0x8 ./Core/Src/stm32f4xx_it.o + 0x08001678 BusFault_Handler .text.UsageFault_Handler - 0x08001634 0x8 ./Core/Src/stm32f4xx_it.o - 0x08001634 UsageFault_Handler + 0x08001680 0x8 ./Core/Src/stm32f4xx_it.o + 0x08001680 UsageFault_Handler .text.SVC_Handler - 0x0800163c 0xe ./Core/Src/stm32f4xx_it.o - 0x0800163c SVC_Handler + 0x08001688 0xe ./Core/Src/stm32f4xx_it.o + 0x08001688 SVC_Handler .text.DebugMon_Handler - 0x0800164a 0xe ./Core/Src/stm32f4xx_it.o - 0x0800164a DebugMon_Handler + 0x08001696 0xe ./Core/Src/stm32f4xx_it.o + 0x08001696 DebugMon_Handler .text.PendSV_Handler - 0x08001658 0xe ./Core/Src/stm32f4xx_it.o - 0x08001658 PendSV_Handler + 0x080016a4 0xe ./Core/Src/stm32f4xx_it.o + 0x080016a4 PendSV_Handler .text.SysTick_Handler - 0x08001666 0xe ./Core/Src/stm32f4xx_it.o - 0x08001666 SysTick_Handler + 0x080016b2 0xe ./Core/Src/stm32f4xx_it.o + 0x080016b2 SysTick_Handler .text.ADC_IRQHandler - 0x08001674 0x14 ./Core/Src/stm32f4xx_it.o - 0x08001674 ADC_IRQHandler + 0x080016c0 0x14 ./Core/Src/stm32f4xx_it.o + 0x080016c0 ADC_IRQHandler .text.TIM2_IRQHandler - 0x08001688 0x14 ./Core/Src/stm32f4xx_it.o - 0x08001688 TIM2_IRQHandler + 0x080016d4 0x14 ./Core/Src/stm32f4xx_it.o + 0x080016d4 TIM2_IRQHandler .text.TIM3_IRQHandler - 0x0800169c 0x14 ./Core/Src/stm32f4xx_it.o - 0x0800169c TIM3_IRQHandler + 0x080016e8 0x14 ./Core/Src/stm32f4xx_it.o + 0x080016e8 TIM3_IRQHandler .text.SPI2_IRQHandler - 0x080016b0 0x14 ./Core/Src/stm32f4xx_it.o - 0x080016b0 SPI2_IRQHandler + 0x080016fc 0x14 ./Core/Src/stm32f4xx_it.o + 0x080016fc SPI2_IRQHandler .text.SystemInit - 0x080016c4 0x24 ./Core/Src/system_stm32f4xx.o - 0x080016c4 SystemInit + 0x08001710 0x24 ./Core/Src/system_stm32f4xx.o + 0x08001710 SystemInit .text.MX_TIM1_Init - 0x080016e8 0x170 ./Core/Src/tim.o - 0x080016e8 MX_TIM1_Init + 0x08001734 0x170 ./Core/Src/tim.o + 0x08001734 MX_TIM1_Init .text.MX_TIM3_Init - 0x08001858 0x98 ./Core/Src/tim.o - 0x08001858 MX_TIM3_Init + 0x080018a4 0x98 ./Core/Src/tim.o + 0x080018a4 MX_TIM3_Init .text.MX_TIM5_Init - 0x080018f0 0x9c ./Core/Src/tim.o - 0x080018f0 MX_TIM5_Init + 0x0800193c 0x9c ./Core/Src/tim.o + 0x0800193c MX_TIM5_Init .text.HAL_TIM_Base_MspInit - 0x0800198c 0xa8 ./Core/Src/tim.o - 0x0800198c HAL_TIM_Base_MspInit + 0x080019d8 0xa8 ./Core/Src/tim.o + 0x080019d8 HAL_TIM_Base_MspInit .text.HAL_TIM_MspPostInit - 0x08001a34 0x74 ./Core/Src/tim.o - 0x08001a34 HAL_TIM_MspPostInit + 0x08001a80 0x74 ./Core/Src/tim.o + 0x08001a80 HAL_TIM_MspPostInit .text.MX_USART1_UART_Init - 0x08001aa8 0x54 ./Core/Src/usart.o - 0x08001aa8 MX_USART1_UART_Init + 0x08001af4 0x54 ./Core/Src/usart.o + 0x08001af4 MX_USART1_UART_Init .text.HAL_UART_MspInit - 0x08001afc 0x90 ./Core/Src/usart.o - 0x08001afc HAL_UART_MspInit + 0x08001b48 0x90 ./Core/Src/usart.o + 0x08001b48 HAL_UART_MspInit .text.Reset_Handler - 0x08001b8c 0x50 ./Core/Startup/startup_stm32f446retx.o - 0x08001b8c Reset_Handler + 0x08001bd8 0x50 ./Core/Startup/startup_stm32f446retx.o + 0x08001bd8 Reset_Handler .text.Default_Handler - 0x08001bdc 0x2 ./Core/Startup/startup_stm32f446retx.o - 0x08001bdc RTC_Alarm_IRQHandler - 0x08001bdc EXTI2_IRQHandler - 0x08001bdc TIM8_CC_IRQHandler - 0x08001bdc FMPI2C1_EV_IRQHandler - 0x08001bdc SPI4_IRQHandler - 0x08001bdc TIM1_CC_IRQHandler - 0x08001bdc DMA2_Stream5_IRQHandler - 0x08001bdc DMA1_Stream5_IRQHandler - 0x08001bdc PVD_IRQHandler - 0x08001bdc SDIO_IRQHandler - 0x08001bdc TAMP_STAMP_IRQHandler - 0x08001bdc CAN2_RX1_IRQHandler - 0x08001bdc EXTI3_IRQHandler - 0x08001bdc TIM8_TRG_COM_TIM14_IRQHandler - 0x08001bdc TIM1_UP_TIM10_IRQHandler - 0x08001bdc TIM8_UP_TIM13_IRQHandler - 0x08001bdc I2C3_ER_IRQHandler - 0x08001bdc EXTI0_IRQHandler - 0x08001bdc I2C2_EV_IRQHandler - 0x08001bdc DMA1_Stream2_IRQHandler - 0x08001bdc CAN1_RX0_IRQHandler - 0x08001bdc FPU_IRQHandler - 0x08001bdc OTG_HS_WKUP_IRQHandler - 0x08001bdc CAN2_SCE_IRQHandler - 0x08001bdc DMA2_Stream2_IRQHandler - 0x08001bdc SPI1_IRQHandler - 0x08001bdc TIM6_DAC_IRQHandler - 0x08001bdc TIM1_BRK_TIM9_IRQHandler - 0x08001bdc DCMI_IRQHandler - 0x08001bdc CAN2_RX0_IRQHandler - 0x08001bdc DMA2_Stream3_IRQHandler - 0x08001bdc SAI2_IRQHandler - 0x08001bdc USART6_IRQHandler - 0x08001bdc USART3_IRQHandler - 0x08001bdc CAN1_RX1_IRQHandler - 0x08001bdc UART5_IRQHandler - 0x08001bdc DMA2_Stream0_IRQHandler - 0x08001bdc TIM4_IRQHandler - 0x08001bdc QUADSPI_IRQHandler - 0x08001bdc I2C1_EV_IRQHandler - 0x08001bdc DMA1_Stream6_IRQHandler - 0x08001bdc DMA1_Stream1_IRQHandler - 0x08001bdc UART4_IRQHandler - 0x08001bdc RCC_IRQHandler - 0x08001bdc TIM8_BRK_TIM12_IRQHandler - 0x08001bdc Default_Handler - 0x08001bdc CEC_IRQHandler - 0x08001bdc EXTI15_10_IRQHandler - 0x08001bdc DMA1_Stream7_IRQHandler - 0x08001bdc TIM7_IRQHandler - 0x08001bdc CAN2_TX_IRQHandler - 0x08001bdc TIM5_IRQHandler - 0x08001bdc DMA2_Stream7_IRQHandler - 0x08001bdc I2C3_EV_IRQHandler - 0x08001bdc EXTI9_5_IRQHandler - 0x08001bdc RTC_WKUP_IRQHandler - 0x08001bdc SPDIF_RX_IRQHandler - 0x08001bdc OTG_HS_EP1_IN_IRQHandler - 0x08001bdc DMA1_Stream0_IRQHandler - 0x08001bdc CAN1_TX_IRQHandler - 0x08001bdc FMPI2C1_ER_IRQHandler - 0x08001bdc EXTI4_IRQHandler - 0x08001bdc OTG_HS_EP1_OUT_IRQHandler - 0x08001bdc WWDG_IRQHandler - 0x08001bdc OTG_FS_WKUP_IRQHandler - 0x08001bdc TIM1_TRG_COM_TIM11_IRQHandler - 0x08001bdc OTG_HS_IRQHandler - 0x08001bdc EXTI1_IRQHandler - 0x08001bdc USART2_IRQHandler - 0x08001bdc I2C2_ER_IRQHandler - 0x08001bdc DMA2_Stream1_IRQHandler - 0x08001bdc CAN1_SCE_IRQHandler - 0x08001bdc FLASH_IRQHandler - 0x08001bdc DMA2_Stream4_IRQHandler - 0x08001bdc USART1_IRQHandler - 0x08001bdc OTG_FS_IRQHandler - 0x08001bdc SPI3_IRQHandler - 0x08001bdc DMA1_Stream4_IRQHandler - 0x08001bdc I2C1_ER_IRQHandler - 0x08001bdc FMC_IRQHandler - 0x08001bdc DMA2_Stream6_IRQHandler - 0x08001bdc SAI1_IRQHandler - 0x08001bdc DMA1_Stream3_IRQHandler - *fill* 0x08001bde 0x2 + 0x08001c28 0x2 ./Core/Startup/startup_stm32f446retx.o + 0x08001c28 RTC_Alarm_IRQHandler + 0x08001c28 EXTI2_IRQHandler + 0x08001c28 TIM8_CC_IRQHandler + 0x08001c28 FMPI2C1_EV_IRQHandler + 0x08001c28 SPI4_IRQHandler + 0x08001c28 TIM1_CC_IRQHandler + 0x08001c28 DMA2_Stream5_IRQHandler + 0x08001c28 DMA1_Stream5_IRQHandler + 0x08001c28 PVD_IRQHandler + 0x08001c28 SDIO_IRQHandler + 0x08001c28 TAMP_STAMP_IRQHandler + 0x08001c28 CAN2_RX1_IRQHandler + 0x08001c28 EXTI3_IRQHandler + 0x08001c28 TIM8_TRG_COM_TIM14_IRQHandler + 0x08001c28 TIM1_UP_TIM10_IRQHandler + 0x08001c28 TIM8_UP_TIM13_IRQHandler + 0x08001c28 I2C3_ER_IRQHandler + 0x08001c28 EXTI0_IRQHandler + 0x08001c28 I2C2_EV_IRQHandler + 0x08001c28 DMA1_Stream2_IRQHandler + 0x08001c28 CAN1_RX0_IRQHandler + 0x08001c28 FPU_IRQHandler + 0x08001c28 OTG_HS_WKUP_IRQHandler + 0x08001c28 CAN2_SCE_IRQHandler + 0x08001c28 DMA2_Stream2_IRQHandler + 0x08001c28 SPI1_IRQHandler + 0x08001c28 TIM6_DAC_IRQHandler + 0x08001c28 TIM1_BRK_TIM9_IRQHandler + 0x08001c28 DCMI_IRQHandler + 0x08001c28 CAN2_RX0_IRQHandler + 0x08001c28 DMA2_Stream3_IRQHandler + 0x08001c28 SAI2_IRQHandler + 0x08001c28 USART6_IRQHandler + 0x08001c28 USART3_IRQHandler + 0x08001c28 CAN1_RX1_IRQHandler + 0x08001c28 UART5_IRQHandler + 0x08001c28 DMA2_Stream0_IRQHandler + 0x08001c28 TIM4_IRQHandler + 0x08001c28 QUADSPI_IRQHandler + 0x08001c28 I2C1_EV_IRQHandler + 0x08001c28 DMA1_Stream6_IRQHandler + 0x08001c28 DMA1_Stream1_IRQHandler + 0x08001c28 UART4_IRQHandler + 0x08001c28 RCC_IRQHandler + 0x08001c28 TIM8_BRK_TIM12_IRQHandler + 0x08001c28 Default_Handler + 0x08001c28 CEC_IRQHandler + 0x08001c28 EXTI15_10_IRQHandler + 0x08001c28 DMA1_Stream7_IRQHandler + 0x08001c28 TIM7_IRQHandler + 0x08001c28 CAN2_TX_IRQHandler + 0x08001c28 TIM5_IRQHandler + 0x08001c28 DMA2_Stream7_IRQHandler + 0x08001c28 I2C3_EV_IRQHandler + 0x08001c28 EXTI9_5_IRQHandler + 0x08001c28 RTC_WKUP_IRQHandler + 0x08001c28 SPDIF_RX_IRQHandler + 0x08001c28 OTG_HS_EP1_IN_IRQHandler + 0x08001c28 DMA1_Stream0_IRQHandler + 0x08001c28 CAN1_TX_IRQHandler + 0x08001c28 FMPI2C1_ER_IRQHandler + 0x08001c28 EXTI4_IRQHandler + 0x08001c28 OTG_HS_EP1_OUT_IRQHandler + 0x08001c28 WWDG_IRQHandler + 0x08001c28 OTG_FS_WKUP_IRQHandler + 0x08001c28 TIM1_TRG_COM_TIM11_IRQHandler + 0x08001c28 OTG_HS_IRQHandler + 0x08001c28 EXTI1_IRQHandler + 0x08001c28 USART2_IRQHandler + 0x08001c28 I2C2_ER_IRQHandler + 0x08001c28 DMA2_Stream1_IRQHandler + 0x08001c28 CAN1_SCE_IRQHandler + 0x08001c28 FLASH_IRQHandler + 0x08001c28 DMA2_Stream4_IRQHandler + 0x08001c28 USART1_IRQHandler + 0x08001c28 OTG_FS_IRQHandler + 0x08001c28 SPI3_IRQHandler + 0x08001c28 DMA1_Stream4_IRQHandler + 0x08001c28 I2C1_ER_IRQHandler + 0x08001c28 FMC_IRQHandler + 0x08001c28 DMA2_Stream6_IRQHandler + 0x08001c28 SAI1_IRQHandler + 0x08001c28 DMA1_Stream3_IRQHandler + *fill* 0x08001c2a 0x2 .text.HAL_Init - 0x08001be0 0x44 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o - 0x08001be0 HAL_Init + 0x08001c2c 0x44 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o + 0x08001c2c HAL_Init + .text.HAL_DeInit + 0x08001c70 0x5c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o + 0x08001c70 HAL_DeInit + .text.HAL_MspDeInit + 0x08001ccc 0xe ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o + 0x08001ccc HAL_MspDeInit + *fill* 0x08001cda 0x2 .text.HAL_IncTick - 0x08001c24 0x28 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o - 0x08001c24 HAL_IncTick + 0x08001cdc 0x28 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o + 0x08001cdc HAL_IncTick .text.HAL_GetTick - 0x08001c4c 0x18 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o - 0x08001c4c HAL_GetTick + 0x08001d04 0x18 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o + 0x08001d04 HAL_GetTick .text.HAL_Delay - 0x08001c64 0x48 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o - 0x08001c64 HAL_Delay + 0x08001d1c 0x48 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o + 0x08001d1c HAL_Delay .text.HAL_ADC_Init - 0x08001cac 0x86 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc.o - 0x08001cac HAL_ADC_Init + 0x08001d64 0x86 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc.o + 0x08001d64 HAL_ADC_Init .text.HAL_ADC_IRQHandler - 0x08001d32 0x220 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc.o - 0x08001d32 HAL_ADC_IRQHandler + 0x08001dea 0x220 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc.o + 0x08001dea HAL_ADC_IRQHandler .text.HAL_ADC_ConvCpltCallback - 0x08001f52 0x14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc.o - 0x08001f52 HAL_ADC_ConvCpltCallback + 0x0800200a 0x14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc.o + 0x0800200a HAL_ADC_ConvCpltCallback .text.HAL_ADC_LevelOutOfWindowCallback - 0x08001f66 0x14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc.o - 0x08001f66 HAL_ADC_LevelOutOfWindowCallback + 0x0800201e 0x14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc.o + 0x0800201e HAL_ADC_LevelOutOfWindowCallback .text.HAL_ADC_ErrorCallback - 0x08001f7a 0x14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc.o - 0x08001f7a HAL_ADC_ErrorCallback - *fill* 0x08001f8e 0x2 + 0x08002032 0x14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc.o + 0x08002032 HAL_ADC_ErrorCallback + *fill* 0x08002046 0x2 .text.HAL_ADC_ConfigChannel - 0x08001f90 0x264 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc.o - 0x08001f90 HAL_ADC_ConfigChannel + 0x08002048 0x264 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc.o + 0x08002048 HAL_ADC_ConfigChannel .text.ADC_Init - 0x080021f4 0x1f8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc.o + 0x080022ac 0x1f8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc.o .text.HAL_ADCEx_InjectedConvCpltCallback - 0x080023ec 0x14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc_ex.o - 0x080023ec HAL_ADCEx_InjectedConvCpltCallback + 0x080024a4 0x14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc_ex.o + 0x080024a4 HAL_ADCEx_InjectedConvCpltCallback .text.HAL_CAN_Init - 0x08002400 0x1f6 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_can.o - 0x08002400 HAL_CAN_Init + 0x080024b8 0x1f6 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_can.o + 0x080024b8 HAL_CAN_Init + *fill* 0x080026ae 0x2 + .text.HAL_CAN_ConfigFilter + 0x080026b0 0x1c0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_can.o + 0x080026b0 HAL_CAN_ConfigFilter + .text.HAL_CAN_Start + 0x08002870 0x88 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_can.o + 0x08002870 HAL_CAN_Start .text.HAL_CAN_AddTxMessage - 0x080025f6 0x1a0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_can.o - 0x080025f6 HAL_CAN_AddTxMessage + 0x080028f8 0x1a0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_can.o + 0x080028f8 HAL_CAN_AddTxMessage .text.HAL_CAN_GetRxMessage - 0x08002796 0x244 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_can.o - 0x08002796 HAL_CAN_GetRxMessage - .text.HAL_CAN_GetRxFifoFillLevel - 0x080029da 0x50 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_can.o - 0x080029da HAL_CAN_GetRxFifoFillLevel - *fill* 0x08002a2a 0x2 + 0x08002a98 0x244 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_can.o + 0x08002a98 HAL_CAN_GetRxMessage .text.__NVIC_SetPriorityGrouping - 0x08002a2c 0x48 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + 0x08002cdc 0x48 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o .text.__NVIC_GetPriorityGrouping - 0x08002a74 0x1c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + 0x08002d24 0x1c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o .text.__NVIC_EnableIRQ - 0x08002a90 0x3c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + 0x08002d40 0x3c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o .text.__NVIC_SetPriority - 0x08002acc 0x54 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + 0x08002d7c 0x54 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o .text.NVIC_EncodePriority - 0x08002b20 0x66 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + 0x08002dd0 0x66 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o .text.HAL_NVIC_SetPriorityGrouping - 0x08002b86 0x16 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o - 0x08002b86 HAL_NVIC_SetPriorityGrouping + 0x08002e36 0x16 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + 0x08002e36 HAL_NVIC_SetPriorityGrouping .text.HAL_NVIC_SetPriority - 0x08002b9c 0x38 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o - 0x08002b9c HAL_NVIC_SetPriority + 0x08002e4c 0x38 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + 0x08002e4c HAL_NVIC_SetPriority .text.HAL_NVIC_EnableIRQ - 0x08002bd4 0x1c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o - 0x08002bd4 HAL_NVIC_EnableIRQ + 0x08002e84 0x1c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + 0x08002e84 HAL_NVIC_EnableIRQ .text.HAL_DMA_Abort_IT - 0x08002bf0 0x44 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o - 0x08002bf0 HAL_DMA_Abort_IT + 0x08002ea0 0x44 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o + 0x08002ea0 HAL_DMA_Abort_IT .text.HAL_FLASH_Program - 0x08002c34 0xa8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.o - 0x08002c34 HAL_FLASH_Program + 0x08002ee4 0xa8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.o + 0x08002ee4 HAL_FLASH_Program .text.FLASH_WaitForLastOperation - 0x08002cdc 0x80 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.o - 0x08002cdc FLASH_WaitForLastOperation + 0x08002f8c 0x80 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.o + 0x08002f8c FLASH_WaitForLastOperation .text.FLASH_Program_DoubleWord - 0x08002d5c 0x64 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.o + 0x0800300c 0x64 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.o .text.FLASH_Program_Word - 0x08002dc0 0x44 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.o + 0x08003070 0x44 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.o .text.FLASH_Program_HalfWord - 0x08002e04 0x48 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.o + 0x080030b4 0x48 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.o .text.FLASH_Program_Byte - 0x08002e4c 0x44 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.o + 0x080030fc 0x44 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.o .text.FLASH_SetErrorCode - 0x08002e90 0xcc ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.o + 0x08003140 0xcc ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.o .text.HAL_FLASHEx_Erase - 0x08002f5c 0xe0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.o - 0x08002f5c HAL_FLASHEx_Erase + 0x0800320c 0xe0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.o + 0x0800320c HAL_FLASHEx_Erase .text.FLASH_MassErase - 0x0800303c 0x48 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.o + 0x080032ec 0x48 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.o .text.FLASH_Erase_Sector - 0x08003084 0x90 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.o - 0x08003084 FLASH_Erase_Sector + 0x08003334 0x90 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.o + 0x08003334 FLASH_Erase_Sector .text.FLASH_FlushCaches - 0x08003114 0x8c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.o - 0x08003114 FLASH_FlushCaches + 0x080033c4 0x8c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.o + 0x080033c4 FLASH_FlushCaches .text.HAL_GPIO_Init - 0x080031a0 0x328 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o - 0x080031a0 HAL_GPIO_Init + 0x08003450 0x328 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o + 0x08003450 HAL_GPIO_Init .text.HAL_GPIO_WritePin - 0x080034c8 0x32 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o - 0x080034c8 HAL_GPIO_WritePin - *fill* 0x080034fa 0x2 + 0x08003778 0x32 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o + 0x08003778 HAL_GPIO_WritePin + *fill* 0x080037aa 0x2 .text.HAL_PWREx_EnableOverDrive - 0x080034fc 0xa0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.o - 0x080034fc HAL_PWREx_EnableOverDrive + 0x080037ac 0xa0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.o + 0x080037ac HAL_PWREx_EnableOverDrive .text.HAL_RCC_ClockConfig - 0x0800359c 0x1cc ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o - 0x0800359c HAL_RCC_ClockConfig + 0x0800384c 0x1cc ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o + 0x0800384c HAL_RCC_ClockConfig .text.HAL_RCC_GetHCLKFreq - 0x08003768 0x18 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o - 0x08003768 HAL_RCC_GetHCLKFreq + 0x08003a18 0x18 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o + 0x08003a18 HAL_RCC_GetHCLKFreq .text.HAL_RCC_GetPCLK1Freq - 0x08003780 0x28 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o - 0x08003780 HAL_RCC_GetPCLK1Freq + 0x08003a30 0x28 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o + 0x08003a30 HAL_RCC_GetPCLK1Freq .text.HAL_RCC_GetPCLK2Freq - 0x080037a8 0x28 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o - 0x080037a8 HAL_RCC_GetPCLK2Freq + 0x08003a58 0x28 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o + 0x08003a58 HAL_RCC_GetPCLK2Freq .text.HAL_RCC_GetClockConfig - 0x080037d0 0x64 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o - 0x080037d0 HAL_RCC_GetClockConfig + 0x08003a80 0x64 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o + 0x08003a80 HAL_RCC_GetClockConfig .text.HAL_RCC_GetSysClockFreq - 0x08003834 0x460 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o - 0x08003834 HAL_RCC_GetSysClockFreq + 0x08003ae4 0x460 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o + 0x08003ae4 HAL_RCC_GetSysClockFreq + .text.HAL_RCC_DeInit + 0x08003f44 0x1f0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o + 0x08003f44 HAL_RCC_DeInit .text.HAL_RCC_OscConfig - 0x08003c94 0x53c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o - 0x08003c94 HAL_RCC_OscConfig + 0x08004134 0x53c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o + 0x08004134 HAL_RCC_OscConfig .text.HAL_SPI_Init - 0x080041d0 0x112 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_spi.o - 0x080041d0 HAL_SPI_Init - *fill* 0x080042e2 0x2 + 0x08004670 0x112 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_spi.o + 0x08004670 HAL_SPI_Init + *fill* 0x08004782 0x2 .text.HAL_SPI_IRQHandler - 0x080042e4 0x1e8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_spi.o - 0x080042e4 HAL_SPI_IRQHandler + 0x08004784 0x1e8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_spi.o + 0x08004784 HAL_SPI_IRQHandler .text.HAL_SPI_ErrorCallback - 0x080044cc 0x14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_spi.o - 0x080044cc HAL_SPI_ErrorCallback + 0x0800496c 0x14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_spi.o + 0x0800496c HAL_SPI_ErrorCallback .text.SPI_DMAAbortOnError - 0x080044e0 0x28 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_spi.o + 0x08004980 0x28 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_spi.o .text.HAL_TIM_Base_Init - 0x08004508 0x9e ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - 0x08004508 HAL_TIM_Base_Init - *fill* 0x080045a6 0x2 + 0x080049a8 0x9e ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x080049a8 HAL_TIM_Base_Init + *fill* 0x08004a46 0x2 .text.HAL_TIM_Base_Start_IT - 0x080045a8 0xe0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - 0x080045a8 HAL_TIM_Base_Start_IT + 0x08004a48 0xe0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x08004a48 HAL_TIM_Base_Start_IT .text.HAL_TIM_PWM_Init - 0x08004688 0x9e ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - 0x08004688 HAL_TIM_PWM_Init + 0x08004b28 0x9e ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x08004b28 HAL_TIM_PWM_Init .text.HAL_TIM_PWM_MspInit - 0x08004726 0x14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - 0x08004726 HAL_TIM_PWM_MspInit + 0x08004bc6 0x14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x08004bc6 HAL_TIM_PWM_MspInit .text.HAL_TIM_IRQHandler - 0x0800473a 0x1e0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - 0x0800473a HAL_TIM_IRQHandler - *fill* 0x0800491a 0x2 + 0x08004bda 0x1e0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x08004bda HAL_TIM_IRQHandler + *fill* 0x08004dba 0x2 .text.HAL_TIM_PWM_ConfigChannel - 0x0800491c 0x184 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - 0x0800491c HAL_TIM_PWM_ConfigChannel + 0x08004dbc 0x184 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x08004dbc HAL_TIM_PWM_ConfigChannel .text.HAL_TIM_ConfigClockSource - 0x08004aa0 0x18e ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - 0x08004aa0 HAL_TIM_ConfigClockSource + 0x08004f40 0x18e ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x08004f40 HAL_TIM_ConfigClockSource .text.HAL_TIM_OC_DelayElapsedCallback - 0x08004c2e 0x14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - 0x08004c2e HAL_TIM_OC_DelayElapsedCallback + 0x080050ce 0x14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x080050ce HAL_TIM_OC_DelayElapsedCallback .text.HAL_TIM_IC_CaptureCallback - 0x08004c42 0x14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - 0x08004c42 HAL_TIM_IC_CaptureCallback + 0x080050e2 0x14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x080050e2 HAL_TIM_IC_CaptureCallback .text.HAL_TIM_PWM_PulseFinishedCallback - 0x08004c56 0x14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - 0x08004c56 HAL_TIM_PWM_PulseFinishedCallback + 0x080050f6 0x14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x080050f6 HAL_TIM_PWM_PulseFinishedCallback .text.HAL_TIM_TriggerCallback - 0x08004c6a 0x14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - 0x08004c6a HAL_TIM_TriggerCallback - *fill* 0x08004c7e 0x2 + 0x0800510a 0x14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x0800510a HAL_TIM_TriggerCallback + *fill* 0x0800511e 0x2 .text.TIM_Base_SetConfig - 0x08004c80 0x158 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - 0x08004c80 TIM_Base_SetConfig + 0x08005120 0x158 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x08005120 TIM_Base_SetConfig .text.TIM_OC1_SetConfig - 0x08004dd8 0xe0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x08005278 0xe0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o .text.TIM_OC2_SetConfig - 0x08004eb8 0xec ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - 0x08004eb8 TIM_OC2_SetConfig + 0x08005358 0xec ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x08005358 TIM_OC2_SetConfig .text.TIM_OC3_SetConfig - 0x08004fa4 0xe8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x08005444 0xe8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o .text.TIM_OC4_SetConfig - 0x0800508c 0xac ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x0800552c 0xac ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o .text.TIM_TI1_ConfigInputStage - 0x08005138 0x5e ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x080055d8 0x5e ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o .text.TIM_TI2_ConfigInputStage - 0x08005196 0x60 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x08005636 0x60 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o .text.TIM_ITRx_SetConfig - 0x080051f6 0x36 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x08005696 0x36 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o .text.TIM_ETR_SetConfig - 0x0800522c 0x40 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - 0x0800522c TIM_ETR_SetConfig + 0x080056cc 0x40 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x080056cc TIM_ETR_SetConfig .text.HAL_TIMEx_MasterConfigSynchronization - 0x0800526c 0xf8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o - 0x0800526c HAL_TIMEx_MasterConfigSynchronization + 0x0800570c 0xf8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o + 0x0800570c HAL_TIMEx_MasterConfigSynchronization .text.HAL_TIMEx_ConfigBreakDeadTime - 0x08005364 0xa4 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o - 0x08005364 HAL_TIMEx_ConfigBreakDeadTime + 0x08005804 0xa4 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o + 0x08005804 HAL_TIMEx_ConfigBreakDeadTime .text.HAL_TIMEx_CommutCallback - 0x08005408 0x14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o - 0x08005408 HAL_TIMEx_CommutCallback + 0x080058a8 0x14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o + 0x080058a8 HAL_TIMEx_CommutCallback .text.HAL_TIMEx_BreakCallback - 0x0800541c 0x14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o - 0x0800541c HAL_TIMEx_BreakCallback + 0x080058bc 0x14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o + 0x080058bc HAL_TIMEx_BreakCallback .text.HAL_UART_Init - 0x08005430 0xa0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o - 0x08005430 HAL_UART_Init + 0x080058d0 0xa0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x080058d0 HAL_UART_Init .text.UART_SetConfig - 0x080054d0 0x4e8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o - .text.memset 0x080059b8 0x10 D:/CubeIDE/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-memset.o) - 0x080059b8 memset + 0x08005970 0x4e8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + .text.memset 0x08005e58 0x10 D:/CubeIDE/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-memset.o) + 0x08005e58 memset .text.__libc_init_array - 0x080059c8 0x48 D:/CubeIDE/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-init.o) - 0x080059c8 __libc_init_array - .text.memcpy 0x08005a10 0x1c D:/CubeIDE/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-memcpy-stub.o) - 0x08005a10 memcpy + 0x08005e68 0x48 D:/CubeIDE/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-init.o) + 0x08005e68 __libc_init_array + .text.memcpy 0x08005eb0 0x1c D:/CubeIDE/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-memcpy-stub.o) + 0x08005eb0 memcpy *(.glue_7) - .glue_7 0x08005a2c 0x0 linker stubs + .glue_7 0x08005ecc 0x0 linker stubs *(.glue_7t) - .glue_7t 0x08005a2c 0x0 linker stubs + .glue_7t 0x08005ecc 0x0 linker stubs *(.eh_frame) - .eh_frame 0x08005a2c 0x0 D:/CubeIDE/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/thumb/v7e-m+fp/hard/crtbegin.o + .eh_frame 0x08005ecc 0x0 D:/CubeIDE/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/thumb/v7e-m+fp/hard/crtbegin.o *(.init) - .init 0x08005a2c 0x4 D:/CubeIDE/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/thumb/v7e-m+fp/hard/crti.o - 0x08005a2c _init - .init 0x08005a30 0x8 D:/CubeIDE/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/thumb/v7e-m+fp/hard/crtn.o + .init 0x08005ecc 0x4 D:/CubeIDE/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/thumb/v7e-m+fp/hard/crti.o + 0x08005ecc _init + .init 0x08005ed0 0x8 D:/CubeIDE/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/thumb/v7e-m+fp/hard/crtn.o *(.fini) - .fini 0x08005a38 0x4 D:/CubeIDE/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/thumb/v7e-m+fp/hard/crti.o - 0x08005a38 _fini - .fini 0x08005a3c 0x8 D:/CubeIDE/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/thumb/v7e-m+fp/hard/crtn.o - 0x08005a44 . = ALIGN (0x4) - 0x08005a44 _etext = . + .fini 0x08005ed8 0x4 D:/CubeIDE/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/thumb/v7e-m+fp/hard/crti.o + 0x08005ed8 _fini + .fini 0x08005edc 0x8 D:/CubeIDE/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/thumb/v7e-m+fp/hard/crtn.o + 0x08005ee4 . = ALIGN (0x4) + 0x08005ee4 _etext = . -.vfp11_veneer 0x08005a44 0x0 - .vfp11_veneer 0x08005a44 0x0 linker stubs +.vfp11_veneer 0x08005ee4 0x0 + .vfp11_veneer 0x08005ee4 0x0 linker stubs -.v4_bx 0x08005a44 0x0 - .v4_bx 0x08005a44 0x0 linker stubs +.v4_bx 0x08005ee4 0x0 + .v4_bx 0x08005ee4 0x0 linker stubs -.iplt 0x08005a44 0x0 - .iplt 0x08005a44 0x0 D:/CubeIDE/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/thumb/v7e-m+fp/hard/crtbegin.o +.iplt 0x08005ee4 0x0 + .iplt 0x08005ee4 0x0 D:/CubeIDE/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/thumb/v7e-m+fp/hard/crtbegin.o -.rodata 0x08005a44 0x18 - 0x08005a44 . = ALIGN (0x4) +.rodata 0x08005ee4 0x40 + 0x08005ee4 . = ALIGN (0x4) *(.rodata) + .rodata 0x08005ee4 0x28 ./Core/Src/main.o *(.rodata*) .rodata.AHBPrescTable - 0x08005a44 0x10 ./Core/Src/system_stm32f4xx.o - 0x08005a44 AHBPrescTable + 0x08005f0c 0x10 ./Core/Src/system_stm32f4xx.o + 0x08005f0c AHBPrescTable .rodata.APBPrescTable - 0x08005a54 0x8 ./Core/Src/system_stm32f4xx.o - 0x08005a54 APBPrescTable - 0x08005a5c . = ALIGN (0x4) + 0x08005f1c 0x8 ./Core/Src/system_stm32f4xx.o + 0x08005f1c APBPrescTable + 0x08005f24 . = ALIGN (0x4) -.ARM.extab 0x08005a5c 0x0 - 0x08005a5c . = ALIGN (0x4) +.ARM.extab 0x08005f24 0x0 + 0x08005f24 . = ALIGN (0x4) *(.ARM.extab* .gnu.linkonce.armextab.*) - 0x08005a5c . = ALIGN (0x4) + 0x08005f24 . = ALIGN (0x4) -.ARM 0x08005a5c 0x8 - 0x08005a5c . = ALIGN (0x4) - 0x08005a5c __exidx_start = . +.ARM 0x08005f24 0x8 + 0x08005f24 . = ALIGN (0x4) + 0x08005f24 __exidx_start = . *(.ARM.exidx*) - .ARM.exidx 0x08005a5c 0x8 D:/CubeIDE/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/thumb/v7e-m+fp/hard\libgcc.a(_udivmoddi4.o) - 0x08005a64 __exidx_end = . - 0x08005a64 . = ALIGN (0x4) + .ARM.exidx 0x08005f24 0x8 D:/CubeIDE/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/thumb/v7e-m+fp/hard\libgcc.a(_udivmoddi4.o) + 0x08005f2c __exidx_end = . + 0x08005f2c . = ALIGN (0x4) -.preinit_array 0x08005a64 0x0 - 0x08005a64 . = ALIGN (0x4) - 0x08005a64 PROVIDE (__preinit_array_start = .) +.preinit_array 0x08005f2c 0x0 + 0x08005f2c . = ALIGN (0x4) + 0x08005f2c PROVIDE (__preinit_array_start = .) *(.preinit_array*) - 0x08005a64 PROVIDE (__preinit_array_end = .) - 0x08005a64 . = ALIGN (0x4) + 0x08005f2c PROVIDE (__preinit_array_end = .) + 0x08005f2c . = ALIGN (0x4) -.init_array 0x08005a64 0x4 - 0x08005a64 . = ALIGN (0x4) - 0x08005a64 PROVIDE (__init_array_start = .) +.init_array 0x08005f2c 0x4 + 0x08005f2c . = ALIGN (0x4) + 0x08005f2c PROVIDE (__init_array_start = .) *(SORT_BY_NAME(.init_array.*)) *(.init_array*) - .init_array 0x08005a64 0x4 D:/CubeIDE/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/thumb/v7e-m+fp/hard/crtbegin.o - 0x08005a68 PROVIDE (__init_array_end = .) - 0x08005a68 . = ALIGN (0x4) + .init_array 0x08005f2c 0x4 D:/CubeIDE/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/thumb/v7e-m+fp/hard/crtbegin.o + 0x08005f30 PROVIDE (__init_array_end = .) + 0x08005f30 . = ALIGN (0x4) -.fini_array 0x08005a68 0x4 - 0x08005a68 . = ALIGN (0x4) +.fini_array 0x08005f30 0x4 + 0x08005f30 . = ALIGN (0x4) [!provide] PROVIDE (__fini_array_start = .) *(SORT_BY_NAME(.fini_array.*)) *(.fini_array*) - .fini_array 0x08005a68 0x4 D:/CubeIDE/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/thumb/v7e-m+fp/hard/crtbegin.o + .fini_array 0x08005f30 0x4 D:/CubeIDE/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/thumb/v7e-m+fp/hard/crtbegin.o [!provide] PROVIDE (__fini_array_end = .) - 0x08005a6c . = ALIGN (0x4) - 0x08005a6c _sidata = LOADADDR (.data) + 0x08005f34 . = ALIGN (0x4) + 0x08005f34 _sidata = LOADADDR (.data) -.rel.dyn 0x08005a6c 0x0 - .rel.iplt 0x08005a6c 0x0 D:/CubeIDE/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/thumb/v7e-m+fp/hard/crtbegin.o +.rel.dyn 0x08005f34 0x0 + .rel.iplt 0x08005f34 0x0 D:/CubeIDE/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/thumb/v7e-m+fp/hard/crtbegin.o -.data 0x20000000 0x14 load address 0x08005a6c +.data 0x20000000 0x14 load address 0x08005f34 0x20000000 . = ALIGN (0x4) 0x20000000 _sdata = . *(.data) @@ -5210,11 +5215,11 @@ LOAD D:/CubeIDE/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mc *fill* 0x20000011 0x3 0x20000014 _edata = . -.igot.plt 0x20000014 0x0 load address 0x08005a80 +.igot.plt 0x20000014 0x0 load address 0x08005f48 .igot.plt 0x20000014 0x0 D:/CubeIDE/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/thumb/v7e-m+fp/hard/crtbegin.o 0x20000014 . = ALIGN (0x4) -.bss 0x20000014 0x2b8 load address 0x08005a80 +.bss 0x20000014 0x2b4 load address 0x08005f48 0x20000014 _sbss = . 0x20000014 __bss_start__ = _sbss *(.bss) @@ -5234,51 +5239,48 @@ LOAD D:/CubeIDE/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mc .bss.fw_crc 0x200000d0 0x2 ./Core/Src/main.o 0x200000d0 fw_crc *fill* 0x200000d2 0x2 - .bss.jump 0x200000d4 0x4 ./Core/Src/main.o - 0x200000d4 jump .bss.flash_record - 0x200000d8 0x4 ./Core/Src/main.o + 0x200000d4 0x4 ./Core/Src/main.o .bss.ptr_flash - 0x200000dc 0x4 ./Core/Src/main.o - .bss.msg_id 0x200000e0 0x4 ./Core/Src/main.o - 0x200000e0 msg_id - .bss.id_x 0x200000e4 0x2 ./Core/Src/main.o - 0x200000e4 id_x - .bss.msg_ch 0x200000e6 0x1 ./Core/Src/main.o - 0x200000e6 msg_ch - *fill* 0x200000e7 0x1 - .bss.hspi2 0x200000e8 0x58 ./Core/Src/spi.o - 0x200000e8 hspi2 - .bss.htim2 0x20000140 0x48 ./Core/Src/stm32f4xx_hal_timebase_tim.o - 0x20000140 htim2 - .bss.htim1 0x20000188 0x48 ./Core/Src/tim.o - 0x20000188 htim1 - .bss.htim3 0x200001d0 0x48 ./Core/Src/tim.o - 0x200001d0 htim3 - .bss.htim5 0x20000218 0x48 ./Core/Src/tim.o - 0x20000218 htim5 - .bss.huart1 0x20000260 0x48 ./Core/Src/usart.o - 0x20000260 huart1 - .bss.uwTick 0x200002a8 0x4 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o - 0x200002a8 uwTick - .bss.pFlash 0x200002ac 0x20 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.o - 0x200002ac pFlash + 0x200000d8 0x4 ./Core/Src/main.o + .bss.msg_id 0x200000dc 0x4 ./Core/Src/main.o + 0x200000dc msg_id + .bss.id_x 0x200000e0 0x2 ./Core/Src/main.o + 0x200000e0 id_x + .bss.msg_ch 0x200000e2 0x1 ./Core/Src/main.o + 0x200000e2 msg_ch + *fill* 0x200000e3 0x1 + .bss.hspi2 0x200000e4 0x58 ./Core/Src/spi.o + 0x200000e4 hspi2 + .bss.htim2 0x2000013c 0x48 ./Core/Src/stm32f4xx_hal_timebase_tim.o + 0x2000013c htim2 + .bss.htim1 0x20000184 0x48 ./Core/Src/tim.o + 0x20000184 htim1 + .bss.htim3 0x200001cc 0x48 ./Core/Src/tim.o + 0x200001cc htim3 + .bss.htim5 0x20000214 0x48 ./Core/Src/tim.o + 0x20000214 htim5 + .bss.huart1 0x2000025c 0x48 ./Core/Src/usart.o + 0x2000025c huart1 + .bss.uwTick 0x200002a4 0x4 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o + 0x200002a4 uwTick + .bss.pFlash 0x200002a8 0x20 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.o + 0x200002a8 pFlash *(COMMON) - 0x200002cc . = ALIGN (0x4) - 0x200002cc _ebss = . - 0x200002cc __bss_end__ = _ebss + 0x200002c8 . = ALIGN (0x4) + 0x200002c8 _ebss = . + 0x200002c8 __bss_end__ = _ebss ._user_heap_stack - 0x200002cc 0x604 load address 0x08005a80 - 0x200002d0 . = ALIGN (0x8) - *fill* 0x200002cc 0x4 + 0x200002c8 0x600 load address 0x08005f48 + 0x200002c8 . = ALIGN (0x8) [!provide] PROVIDE (end = .) - 0x200002d0 PROVIDE (_end = .) - 0x200004d0 . = (. + _Min_Heap_Size) - *fill* 0x200002d0 0x200 - 0x200008d0 . = (. + _Min_Stack_Size) - *fill* 0x200004d0 0x400 - 0x200008d0 . = ALIGN (0x8) + 0x200002c8 PROVIDE (_end = .) + 0x200004c8 . = (. + _Min_Heap_Size) + *fill* 0x200002c8 0x200 + 0x200008c8 . = (. + _Min_Stack_Size) + *fill* 0x200004c8 0x400 + 0x200008c8 . = ALIGN (0x8) /DISCARD/ libc.a(*) @@ -5370,67 +5372,67 @@ LOAD D:/CubeIDE/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mc LOAD D:/CubeIDE/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libm.a LOAD D:/CubeIDE/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/thumb/v7e-m+fp/hard\libgcc.a -.debug_info 0x00000000 0x17a70 +.debug_info 0x00000000 0x17b68 .debug_info 0x00000000 0xc45 ./Core/Src/adc.o .debug_info 0x00000c45 0x89c ./Core/Src/can.o .debug_info 0x000014e1 0x735 ./Core/Src/flash.o .debug_info 0x00001c16 0x439 ./Core/Src/gpio.o - .debug_info 0x0000204f 0x1b2f ./Core/Src/main.o - .debug_info 0x00003b7e 0xc1d ./Core/Src/spi.o - .debug_info 0x0000479b 0x299 ./Core/Src/stm32f4xx_hal_msp.o - .debug_info 0x00004a34 0xc44 ./Core/Src/stm32f4xx_hal_timebase_tim.o - .debug_info 0x00005678 0xc5d ./Core/Src/stm32f4xx_it.o - .debug_info 0x000062d5 0x54a ./Core/Src/system_stm32f4xx.o - .debug_info 0x0000681f 0x102b ./Core/Src/tim.o - .debug_info 0x0000784a 0x94d ./Core/Src/usart.o - .debug_info 0x00008197 0x30 ./Core/Startup/startup_stm32f446retx.o - .debug_info 0x000081c7 0x99a ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o - .debug_info 0x00008b61 0xcd4 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc.o - .debug_info 0x00009835 0xb59 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc_ex.o - .debug_info 0x0000a38e 0xf44 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_can.o - .debug_info 0x0000b2d2 0xd75 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o - .debug_info 0x0000c047 0x8e7 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o - .debug_info 0x0000c92e 0x57d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.o - .debug_info 0x0000ceab 0x7db ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.o - .debug_info 0x0000d686 0x70b ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o - .debug_info 0x0000dd91 0x6da ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.o - .debug_info 0x0000e46b 0x8ed ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o - .debug_info 0x0000ed58 0x956 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o - .debug_info 0x0000f6ae 0x15fb ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_spi.o - .debug_info 0x00010ca9 0x299d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - .debug_info 0x00013646 0x14db ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o - .debug_info 0x00014b21 0x2f4f ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + .debug_info 0x0000204f 0x1c27 ./Core/Src/main.o + .debug_info 0x00003c76 0xc1d ./Core/Src/spi.o + .debug_info 0x00004893 0x299 ./Core/Src/stm32f4xx_hal_msp.o + .debug_info 0x00004b2c 0xc44 ./Core/Src/stm32f4xx_hal_timebase_tim.o + .debug_info 0x00005770 0xc5d ./Core/Src/stm32f4xx_it.o + .debug_info 0x000063cd 0x54a ./Core/Src/system_stm32f4xx.o + .debug_info 0x00006917 0x102b ./Core/Src/tim.o + .debug_info 0x00007942 0x94d ./Core/Src/usart.o + .debug_info 0x0000828f 0x30 ./Core/Startup/startup_stm32f446retx.o + .debug_info 0x000082bf 0x99a ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o + .debug_info 0x00008c59 0xcd4 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc.o + .debug_info 0x0000992d 0xb59 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc_ex.o + .debug_info 0x0000a486 0xf44 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_can.o + .debug_info 0x0000b3ca 0xd75 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + .debug_info 0x0000c13f 0x8e7 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o + .debug_info 0x0000ca26 0x57d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.o + .debug_info 0x0000cfa3 0x7db ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.o + .debug_info 0x0000d77e 0x70b ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o + .debug_info 0x0000de89 0x6da ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.o + .debug_info 0x0000e563 0x8ed ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o + .debug_info 0x0000ee50 0x956 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o + .debug_info 0x0000f7a6 0x15fb ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_spi.o + .debug_info 0x00010da1 0x299d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + .debug_info 0x0001373e 0x14db ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o + .debug_info 0x00014c19 0x2f4f ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o -.debug_abbrev 0x00000000 0x3f43 +.debug_abbrev 0x00000000 0x3f50 .debug_abbrev 0x00000000 0x210 ./Core/Src/adc.o .debug_abbrev 0x00000210 0x200 ./Core/Src/can.o .debug_abbrev 0x00000410 0x2e1 ./Core/Src/flash.o .debug_abbrev 0x000006f1 0x152 ./Core/Src/gpio.o - .debug_abbrev 0x00000843 0x45b ./Core/Src/main.o - .debug_abbrev 0x00000c9e 0x212 ./Core/Src/spi.o - .debug_abbrev 0x00000eb0 0xd8 ./Core/Src/stm32f4xx_hal_msp.o - .debug_abbrev 0x00000f88 0x1f4 ./Core/Src/stm32f4xx_hal_timebase_tim.o - .debug_abbrev 0x0000117c 0x194 ./Core/Src/stm32f4xx_it.o - .debug_abbrev 0x00001310 0x11a ./Core/Src/system_stm32f4xx.o - .debug_abbrev 0x0000142a 0x258 ./Core/Src/tim.o - .debug_abbrev 0x00001682 0x1f9 ./Core/Src/usart.o - .debug_abbrev 0x0000187b 0x24 ./Core/Startup/startup_stm32f446retx.o - .debug_abbrev 0x0000189f 0x214 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o - .debug_abbrev 0x00001ab3 0x252 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc.o - .debug_abbrev 0x00001d05 0x270 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc_ex.o - .debug_abbrev 0x00001f75 0x25a ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_can.o - .debug_abbrev 0x000021cf 0x328 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o - .debug_abbrev 0x000024f7 0x264 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o - .debug_abbrev 0x0000275b 0x28c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.o - .debug_abbrev 0x000029e7 0x26c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.o - .debug_abbrev 0x00002c53 0x1d4 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o - .debug_abbrev 0x00002e27 0x1cf ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.o - .debug_abbrev 0x00002ff6 0x2b6 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o - .debug_abbrev 0x000032ac 0x20a ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o - .debug_abbrev 0x000034b6 0x284 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_spi.o - .debug_abbrev 0x0000373a 0x278 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - .debug_abbrev 0x000039b2 0x283 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o - .debug_abbrev 0x00003c35 0x30e ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + .debug_abbrev 0x00000843 0x468 ./Core/Src/main.o + .debug_abbrev 0x00000cab 0x212 ./Core/Src/spi.o + .debug_abbrev 0x00000ebd 0xd8 ./Core/Src/stm32f4xx_hal_msp.o + .debug_abbrev 0x00000f95 0x1f4 ./Core/Src/stm32f4xx_hal_timebase_tim.o + .debug_abbrev 0x00001189 0x194 ./Core/Src/stm32f4xx_it.o + .debug_abbrev 0x0000131d 0x11a ./Core/Src/system_stm32f4xx.o + .debug_abbrev 0x00001437 0x258 ./Core/Src/tim.o + .debug_abbrev 0x0000168f 0x1f9 ./Core/Src/usart.o + .debug_abbrev 0x00001888 0x24 ./Core/Startup/startup_stm32f446retx.o + .debug_abbrev 0x000018ac 0x214 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o + .debug_abbrev 0x00001ac0 0x252 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc.o + .debug_abbrev 0x00001d12 0x270 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc_ex.o + .debug_abbrev 0x00001f82 0x25a ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_can.o + .debug_abbrev 0x000021dc 0x328 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + .debug_abbrev 0x00002504 0x264 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o + .debug_abbrev 0x00002768 0x28c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.o + .debug_abbrev 0x000029f4 0x26c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.o + .debug_abbrev 0x00002c60 0x1d4 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o + .debug_abbrev 0x00002e34 0x1cf ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.o + .debug_abbrev 0x00003003 0x2b6 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o + .debug_abbrev 0x000032b9 0x20a ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o + .debug_abbrev 0x000034c3 0x284 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_spi.o + .debug_abbrev 0x00003747 0x278 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + .debug_abbrev 0x000039bf 0x283 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o + .debug_abbrev 0x00003c42 0x30e ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o .debug_aranges 0x00000000 0x14c0 .debug_aranges @@ -5553,7 +5555,7 @@ LOAD D:/CubeIDE/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mc .debug_rnglists 0x00000e52 0x1bc ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o -.debug_macro 0x00000000 0x25b05 +.debug_macro 0x00000000 0x25b09 .debug_macro 0x00000000 0x223 ./Core/Src/adc.o .debug_macro 0x00000223 0xab4 ./Core/Src/adc.o .debug_macro 0x00000cd7 0x2ad ./Core/Src/adc.o @@ -5631,122 +5633,122 @@ LOAD D:/CubeIDE/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mc .debug_macro 0x0002240e 0x76 ./Core/Src/flash.o .debug_macro 0x00022484 0x22 ./Core/Src/flash.o .debug_macro 0x000224a6 0x223 ./Core/Src/gpio.o - .debug_macro 0x000226c9 0x386 ./Core/Src/main.o - .debug_macro 0x00022a4f 0x88 ./Core/Src/main.o - .debug_macro 0x00022ad7 0x223 ./Core/Src/spi.o - .debug_macro 0x00022cfa 0x219 ./Core/Src/stm32f4xx_hal_msp.o - .debug_macro 0x00022f13 0x20a ./Core/Src/stm32f4xx_hal_timebase_tim.o - .debug_macro 0x0002311d 0x223 ./Core/Src/stm32f4xx_it.o - .debug_macro 0x00023340 0x20a ./Core/Src/system_stm32f4xx.o - .debug_macro 0x0002354a 0x223 ./Core/Src/tim.o - .debug_macro 0x0002376d 0x223 ./Core/Src/usart.o - .debug_macro 0x00023990 0x26a ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o - .debug_macro 0x00023bfa 0x20b ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc.o - .debug_macro 0x00023e05 0x20a ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc_ex.o - .debug_macro 0x0002400f 0x219 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_can.o - .debug_macro 0x00024228 0x20a ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o - .debug_macro 0x00024432 0x210 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o - .debug_macro 0x00024642 0x210 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.o - .debug_macro 0x00024852 0x210 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.o - .debug_macro 0x00024a62 0x210 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o - .debug_macro 0x00024c72 0x222 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.o - .debug_macro 0x00024e94 0x22e ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o - .debug_macro 0x000250c2 0x20a ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o - .debug_macro 0x000252cc 0x219 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_spi.o - .debug_macro 0x000254e5 0x20b ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - .debug_macro 0x000256f0 0x20a ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o - .debug_macro 0x000258fa 0x20b ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + .debug_macro 0x000226c9 0x38a ./Core/Src/main.o + .debug_macro 0x00022a53 0x88 ./Core/Src/main.o + .debug_macro 0x00022adb 0x223 ./Core/Src/spi.o + .debug_macro 0x00022cfe 0x219 ./Core/Src/stm32f4xx_hal_msp.o + .debug_macro 0x00022f17 0x20a ./Core/Src/stm32f4xx_hal_timebase_tim.o + .debug_macro 0x00023121 0x223 ./Core/Src/stm32f4xx_it.o + .debug_macro 0x00023344 0x20a ./Core/Src/system_stm32f4xx.o + .debug_macro 0x0002354e 0x223 ./Core/Src/tim.o + .debug_macro 0x00023771 0x223 ./Core/Src/usart.o + .debug_macro 0x00023994 0x26a ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o + .debug_macro 0x00023bfe 0x20b ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc.o + .debug_macro 0x00023e09 0x20a ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc_ex.o + .debug_macro 0x00024013 0x219 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_can.o + .debug_macro 0x0002422c 0x20a ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + .debug_macro 0x00024436 0x210 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o + .debug_macro 0x00024646 0x210 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.o + .debug_macro 0x00024856 0x210 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.o + .debug_macro 0x00024a66 0x210 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o + .debug_macro 0x00024c76 0x222 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.o + .debug_macro 0x00024e98 0x22e ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o + .debug_macro 0x000250c6 0x20a ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o + .debug_macro 0x000252d0 0x219 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_spi.o + .debug_macro 0x000254e9 0x20b ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + .debug_macro 0x000256f4 0x20a ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o + .debug_macro 0x000258fe 0x20b ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o -.debug_line 0x00000000 0x1b6d6 +.debug_line 0x00000000 0x1b718 .debug_line 0x00000000 0x852 ./Core/Src/adc.o .debug_line 0x00000852 0x817 ./Core/Src/can.o .debug_line 0x00001069 0xe58 ./Core/Src/flash.o .debug_line 0x00001ec1 0x7f8 ./Core/Src/gpio.o - .debug_line 0x000026b9 0xe05 ./Core/Src/main.o - .debug_line 0x000034be 0x82e ./Core/Src/spi.o - .debug_line 0x00003cec 0x7a7 ./Core/Src/stm32f4xx_hal_msp.o - .debug_line 0x00004493 0x823 ./Core/Src/stm32f4xx_hal_timebase_tim.o - .debug_line 0x00004cb6 0x8c5 ./Core/Src/stm32f4xx_it.o - .debug_line 0x0000557b 0x82c ./Core/Src/system_stm32f4xx.o - .debug_line 0x00005da7 0x987 ./Core/Src/tim.o - .debug_line 0x0000672e 0x811 ./Core/Src/usart.o - .debug_line 0x00006f3f 0x7a ./Core/Startup/startup_stm32f446retx.o - .debug_line 0x00006fb9 0xa95 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o - .debug_line 0x00007a4e 0x1329 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc.o - .debug_line 0x00008d77 0xf91 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc_ex.o - .debug_line 0x00009d08 0x1244 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_can.o - .debug_line 0x0000af4c 0xd5d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o - .debug_line 0x0000bca9 0x1005 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o - .debug_line 0x0000ccae 0xb6c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.o - .debug_line 0x0000d81a 0xc6f ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.o - .debug_line 0x0000e489 0xc0d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o - .debug_line 0x0000f096 0x9be ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.o - .debug_line 0x0000fa54 0xe14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o - .debug_line 0x00010868 0x14b3 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o - .debug_line 0x00011d1b 0x1d90 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_spi.o - .debug_line 0x00013aab 0x3839 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - .debug_line 0x000172e4 0x1a8b ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o - .debug_line 0x00018d6f 0x2967 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + .debug_line 0x000026b9 0xe47 ./Core/Src/main.o + .debug_line 0x00003500 0x82e ./Core/Src/spi.o + .debug_line 0x00003d2e 0x7a7 ./Core/Src/stm32f4xx_hal_msp.o + .debug_line 0x000044d5 0x823 ./Core/Src/stm32f4xx_hal_timebase_tim.o + .debug_line 0x00004cf8 0x8c5 ./Core/Src/stm32f4xx_it.o + .debug_line 0x000055bd 0x82c ./Core/Src/system_stm32f4xx.o + .debug_line 0x00005de9 0x987 ./Core/Src/tim.o + .debug_line 0x00006770 0x811 ./Core/Src/usart.o + .debug_line 0x00006f81 0x7a ./Core/Startup/startup_stm32f446retx.o + .debug_line 0x00006ffb 0xa95 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o + .debug_line 0x00007a90 0x1329 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc.o + .debug_line 0x00008db9 0xf91 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc_ex.o + .debug_line 0x00009d4a 0x1244 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_can.o + .debug_line 0x0000af8e 0xd5d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + .debug_line 0x0000bceb 0x1005 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o + .debug_line 0x0000ccf0 0xb6c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.o + .debug_line 0x0000d85c 0xc6f ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.o + .debug_line 0x0000e4cb 0xc0d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o + .debug_line 0x0000f0d8 0x9be ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.o + .debug_line 0x0000fa96 0xe14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o + .debug_line 0x000108aa 0x14b3 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o + .debug_line 0x00011d5d 0x1d90 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_spi.o + .debug_line 0x00013aed 0x3839 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + .debug_line 0x00017326 0x1a8b ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o + .debug_line 0x00018db1 0x2967 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o -.debug_str 0x00000000 0xe2d70 - .debug_str 0x00000000 0xd9c54 ./Core/Src/adc.o - 0xd9fc7 (size before relaxing) - .debug_str 0x000d9c54 0x26c ./Core/Src/can.o - 0xd98b6 (size before relaxing) - .debug_str 0x000d9ec0 0x3cde ./Core/Src/flash.o - 0xdd182 (size before relaxing) - .debug_str 0x000ddb9e 0x68 ./Core/Src/gpio.o - 0xd9608 (size before relaxing) - .debug_str 0x000ddc06 0x8c1 ./Core/Src/main.o - 0xde479 (size before relaxing) - .debug_str 0x000de4c7 0x207 ./Core/Src/spi.o - 0xda009 (size before relaxing) - .debug_str 0x000de6ce 0x2c ./Core/Src/stm32f4xx_hal_msp.o - 0xd953d (size before relaxing) - .debug_str 0x000de6fa 0x107 ./Core/Src/stm32f4xx_hal_timebase_tim.o - 0xd9ea7 (size before relaxing) - .debug_str 0x000de801 0x12c ./Core/Src/stm32f4xx_it.o - 0xd9ddf (size before relaxing) - .debug_str 0x000de92d 0x87 ./Core/Src/system_stm32f4xx.o - 0xd936f (size before relaxing) - .debug_str 0x000de9b4 0x287 ./Core/Src/tim.o - 0xda37e (size before relaxing) - .debug_str 0x000dec3b 0x1e4 ./Core/Src/usart.o - 0xd9ac5 (size before relaxing) - .debug_str 0x000dee1f 0x44 ./Core/Startup/startup_stm32f446retx.o - 0x6c (size before relaxing) - .debug_str 0x000dee63 0x59c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o - 0xd9f34 (size before relaxing) - .debug_str 0x000df3ff 0x2b3 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc.o - 0xd9937 (size before relaxing) - .debug_str 0x000df6b2 0x2df ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc_ex.o - 0xd998b (size before relaxing) - .debug_str 0x000df991 0x4eb ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_can.o - 0xd9a44 (size before relaxing) - .debug_str 0x000dfe7c 0x305 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o - 0xd9c59 (size before relaxing) - .debug_str 0x000e0181 0x2f6 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o - 0xd9764 (size before relaxing) - .debug_str 0x000e0477 0x2ac ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.o - 0xd953a (size before relaxing) - .debug_str 0x000e0723 0x2ae ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.o - 0xd965d (size before relaxing) - .debug_str 0x000e09d1 0x121 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o - 0xd94ea (size before relaxing) - .debug_str 0x000e0af2 0x135 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.o - 0xd9547 (size before relaxing) - .debug_str 0x000e0c27 0x1f2 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o - 0xd97a8 (size before relaxing) - .debug_str 0x000e0e19 0x31c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o - 0xd97db (size before relaxing) - .debug_str 0x000e1135 0x549 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_spi.o - 0xd9c0e (size before relaxing) - .debug_str 0x000e167e 0xd0f ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - 0xda6d4 (size before relaxing) - .debug_str 0x000e238d 0x3e1 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o - 0xd9ee0 (size before relaxing) - .debug_str 0x000e276e 0x602 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o - 0xd9d5f (size before relaxing) +.debug_str 0x00000000 0xe2db8 + .debug_str 0x00000000 0xd9c6f ./Core/Src/adc.o + 0xd9fe2 (size before relaxing) + .debug_str 0x000d9c6f 0x26c ./Core/Src/can.o + 0xd98d1 (size before relaxing) + .debug_str 0x000d9edb 0x3cde ./Core/Src/flash.o + 0xdd19d (size before relaxing) + .debug_str 0x000ddbb9 0x68 ./Core/Src/gpio.o + 0xd9623 (size before relaxing) + .debug_str 0x000ddc21 0x9ae ./Core/Src/main.o + 0xde58c (size before relaxing) + .debug_str 0x000de5cf 0x207 ./Core/Src/spi.o + 0xda024 (size before relaxing) + .debug_str 0x000de7d6 0x2c ./Core/Src/stm32f4xx_hal_msp.o + 0xd9558 (size before relaxing) + .debug_str 0x000de802 0x107 ./Core/Src/stm32f4xx_hal_timebase_tim.o + 0xd9ec2 (size before relaxing) + .debug_str 0x000de909 0x12c ./Core/Src/stm32f4xx_it.o + 0xd9dfa (size before relaxing) + .debug_str 0x000dea35 0x87 ./Core/Src/system_stm32f4xx.o + 0xd938a (size before relaxing) + .debug_str 0x000deabc 0x287 ./Core/Src/tim.o + 0xda399 (size before relaxing) + .debug_str 0x000ded43 0x1e4 ./Core/Src/usart.o + 0xd9ae0 (size before relaxing) + .debug_str 0x000def27 0x44 ./Core/Startup/startup_stm32f446retx.o + 0x87 (size before relaxing) + .debug_str 0x000def6b 0x591 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o + 0xd9f4f (size before relaxing) + .debug_str 0x000df4fc 0x2b3 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc.o + 0xd9952 (size before relaxing) + .debug_str 0x000df7af 0x2df ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc_ex.o + 0xd99a6 (size before relaxing) + .debug_str 0x000dfa8e 0x445 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_can.o + 0xd9a5f (size before relaxing) + .debug_str 0x000dfed3 0x305 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + 0xd9c74 (size before relaxing) + .debug_str 0x000e01d8 0x2f6 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o + 0xd977f (size before relaxing) + .debug_str 0x000e04ce 0x2ac ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.o + 0xd9555 (size before relaxing) + .debug_str 0x000e077a 0x2ae ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.o + 0xd9678 (size before relaxing) + .debug_str 0x000e0a28 0x121 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o + 0xd9505 (size before relaxing) + .debug_str 0x000e0b49 0x135 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.o + 0xd9562 (size before relaxing) + .debug_str 0x000e0c7e 0x1e3 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o + 0xd97c3 (size before relaxing) + .debug_str 0x000e0e61 0x31c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o + 0xd97f6 (size before relaxing) + .debug_str 0x000e117d 0x549 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_spi.o + 0xd9c29 (size before relaxing) + .debug_str 0x000e16c6 0xd0f ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0xda6ef (size before relaxing) + .debug_str 0x000e23d5 0x3e1 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o + 0xd9efb (size before relaxing) + .debug_str 0x000e27b6 0x602 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0xd9d7a (size before relaxing) .comment 0x00000000 0x43 .comment 0x00000000 0x43 ./Core/Src/adc.o @@ -5815,6 +5817,6 @@ LOAD D:/CubeIDE/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mc .debug_frame 0x00005594 0x34 D:/CubeIDE/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/thumb/v7e-m+fp/hard\libgcc.a(_udivmoddi4.o) .debug_line_str - 0x00000000 0x50 + 0x00000000 0x6b .debug_line_str - 0x00000000 0x50 ./Core/Startup/startup_stm32f446retx.o + 0x00000000 0x6b ./Core/Startup/startup_stm32f446retx.o diff --git a/controller/fw/bootloader/STM32F446RETX_FLASH.ld b/controller/fw/bootloader/STM32F446RETX_FLASH.ld index 53a24be..dcf85f2 100644 --- a/controller/fw/bootloader/STM32F446RETX_FLASH.ld +++ b/controller/fw/bootloader/STM32F446RETX_FLASH.ld @@ -45,7 +45,7 @@ _Min_Stack_Size = 0x400; /* required amount of stack */ MEMORY { RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 128K - FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 512K + FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 512K - 32K } /* Sections */ diff --git a/controller/fw/bootloader/bootloader_.ioc b/controller/fw/bootloader/bootloader_.ioc index 645c4fd..192b212 100644 --- a/controller/fw/bootloader/bootloader_.ioc +++ b/controller/fw/bootloader/bootloader_.ioc @@ -16,12 +16,13 @@ ADC2.SamplingTime-6\#ChannelRegularConversion=ADC_SAMPLETIME_3CYCLES CAD.formats= CAD.pinconfig= CAD.provider= +CAN2.ABOM=ENABLE CAN2.BS1=CAN_BS1_12TQ CAN2.BS2=CAN_BS2_2TQ CAN2.CalculateBaudRate=1000000 -CAN2.CalculateTimeBit=999 +CAN2.CalculateTimeBit=1000 CAN2.CalculateTimeQuantum=66.66666666666666 -CAN2.IPParameters=CalculateTimeQuantum,CalculateTimeBit,CalculateBaudRate,Prescaler,BS1,BS2 +CAN2.IPParameters=CalculateTimeQuantum,CalculateTimeBit,CalculateBaudRate,Prescaler,BS1,BS2,ABOM CAN2.Prescaler=3 File.Version=6 GPIO.groupedBy=Group By Peripherals @@ -215,7 +216,7 @@ ProjectManager.ToolChainLocation= ProjectManager.UAScriptAfterPath= ProjectManager.UAScriptBeforePath= ProjectManager.UnderRoot=true -ProjectManager.functionlistsort=1-MX_GPIO_Init-GPIO-false-HAL-true,2-SystemClock_Config-RCC-false-HAL-false,3-MX_TIM1_Init-TIM1-false-HAL-true,4-MX_USART1_UART_Init-USART1-false-HAL-true,5-MX_SPI2_Init-SPI2-false-HAL-true,6-MX_TIM3_Init-TIM3-false-HAL-true,7-MX_ADC2_Init-ADC2-false-HAL-true,8-MX_TIM5_Init-TIM5-false-HAL-true +ProjectManager.functionlistsort=1-MX_GPIO_Init-GPIO-false-HAL-true,2-SystemClock_Config-RCC-false-HAL-false,3-MX_TIM1_Init-TIM1-false-HAL-true,4-MX_USART1_UART_Init-USART1-false-HAL-true,5-MX_SPI2_Init-SPI2-false-HAL-true,6-MX_TIM3_Init-TIM3-false-HAL-true,7-MX_ADC2_Init-ADC2-false-HAL-true,8-MX_TIM5_Init-TIM5-false-HAL-true,9-MX_CAN2_Init-CAN2-false-HAL-true RCC.AHBFreq_Value=180000000 RCC.APB1CLKDivider=RCC_HCLK_DIV4 RCC.APB1Freq_Value=45000000 diff --git a/controller/fw/bootloader/bootloader_.launch b/controller/fw/bootloader/bootloader_.launch new file mode 100644 index 0000000..38b174c --- /dev/null +++ b/controller/fw/bootloader/bootloader_.launch @@ -0,0 +1,83 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +