diff --git a/103ze/.settings/language.settings.xml b/103ze/.settings/language.settings.xml index 87ef363..90db629 100644 --- a/103ze/.settings/language.settings.xml +++ b/103ze/.settings/language.settings.xml @@ -13,7 +13,7 @@ - + @@ -37,7 +37,7 @@ - + diff --git a/103ze/.settings/stm32cubeide.project.prefs b/103ze/.settings/stm32cubeide.project.prefs index ce30672..5c690d3 100644 --- a/103ze/.settings/stm32cubeide.project.prefs +++ b/103ze/.settings/stm32cubeide.project.prefs @@ -1,4 +1,4 @@ 66BE74F758C12D739921AEA421D593D3=3 -8DF89ED150041C4CBC7CB9A9CAA90856=C51B2B4ECCDABDF7BBEE78EFB628823D -DC22A860405A8BF2F2C095E5B6529F12=C51B2B4ECCDABDF7BBEE78EFB628823D +8DF89ED150041C4CBC7CB9A9CAA90856=DE78FCE0BA5B3294914EFBF8CCE3C6CE +DC22A860405A8BF2F2C095E5B6529F12=C0E5DD146C4FCAF07F69BC2160CDF33F eclipse.preferences.version=1 diff --git a/103ze/Debug/103ze_code.bin b/103ze/Debug/103ze_code.bin index 0f14643..3382a07 100644 Binary files a/103ze/Debug/103ze_code.bin and b/103ze/Debug/103ze_code.bin differ diff --git a/103ze/Debug/103ze_code.elf b/103ze/Debug/103ze_code.elf index fac0123..67cb5fb 100644 Binary files a/103ze/Debug/103ze_code.elf and b/103ze/Debug/103ze_code.elf differ diff --git a/103ze/Debug/103ze_code.list b/103ze/Debug/103ze_code.list index 2838b51..91d25ba 100644 --- a/103ze/Debug/103ze_code.list +++ b/103ze/Debug/103ze_code.list @@ -5,45 +5,45 @@ Sections: Idx Name Size VMA LMA File off Algn 0 .isr_vector 000001e4 08000000 08000000 00010000 2**0 CONTENTS, ALLOC, LOAD, READONLY, DATA - 1 .text 00003a80 080001e4 080001e4 000101e4 2**2 + 1 .text 00006664 080001e4 080001e4 000101e4 2**2 CONTENTS, ALLOC, LOAD, READONLY, CODE - 2 .rodata 00000a98 08003c64 08003c64 00013c64 2**2 + 2 .rodata 00000b9c 08006848 08006848 00016848 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA - 3 .ARM.extab 00000000 080046fc 080046fc 00020024 2**0 + 3 .ARM.extab 00000000 080073e4 080073e4 00020088 2**0 CONTENTS - 4 .ARM 00000000 080046fc 080046fc 00020024 2**0 + 4 .ARM 00000000 080073e4 080073e4 00020088 2**0 CONTENTS - 5 .preinit_array 00000000 080046fc 080046fc 00020024 2**0 + 5 .preinit_array 00000000 080073e4 080073e4 00020088 2**0 CONTENTS, ALLOC, LOAD, DATA - 6 .init_array 00000004 080046fc 080046fc 000146fc 2**2 + 6 .init_array 00000004 080073e4 080073e4 000173e4 2**2 CONTENTS, ALLOC, LOAD, DATA - 7 .fini_array 00000004 08004700 08004700 00014700 2**2 + 7 .fini_array 00000004 080073e8 080073e8 000173e8 2**2 CONTENTS, ALLOC, LOAD, DATA - 8 .data 00000024 20000000 08004704 00020000 2**2 + 8 .data 00000088 20000000 080073ec 00020000 2**2 CONTENTS, ALLOC, LOAD, DATA - 9 .bss 0000056c 20000024 08004728 00020024 2**2 + 9 .bss 000007d8 20000088 08007474 00020088 2**2 ALLOC - 10 ._user_heap_stack 00001000 20000590 08004728 00020590 2**0 + 10 ._user_heap_stack 00001000 20000860 08007474 00020860 2**0 ALLOC - 11 .ARM.attributes 00000029 00000000 00000000 00020024 2**0 + 11 .ARM.attributes 00000029 00000000 00000000 00020088 2**0 CONTENTS, READONLY - 12 .debug_info 0000bb02 00000000 00000000 0002004d 2**0 + 12 .debug_info 0000ed98 00000000 00000000 000200b1 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 13 .debug_abbrev 000026e2 00000000 00000000 0002bb4f 2**0 + 13 .debug_abbrev 00002ced 00000000 00000000 0002ee49 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 14 .debug_aranges 000009c8 00000000 00000000 0002e238 2**3 + 14 .debug_aranges 00000c18 00000000 00000000 00031b38 2**3 CONTENTS, READONLY, DEBUGGING, OCTETS - 15 .debug_ranges 00000890 00000000 00000000 0002ec00 2**3 + 15 .debug_ranges 00000ab0 00000000 00000000 00032750 2**3 CONTENTS, READONLY, DEBUGGING, OCTETS - 16 .debug_macro 0001a202 00000000 00000000 0002f490 2**0 + 16 .debug_macro 0001abc9 00000000 00000000 00033200 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 17 .debug_line 0000c6fc 00000000 00000000 00049692 2**0 + 17 .debug_line 000102bc 00000000 00000000 0004ddc9 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 18 .debug_str 00092d57 00000000 00000000 00055d8e 2**0 + 18 .debug_str 00093fbe 00000000 00000000 0005e085 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 19 .comment 00000053 00000000 00000000 000e8ae5 2**0 + 19 .comment 00000053 00000000 00000000 000f2043 2**0 CONTENTS, READONLY - 20 .debug_frame 000024c8 00000000 00000000 000e8b38 2**2 + 20 .debug_frame 000032d8 00000000 00000000 000f2098 2**2 CONTENTS, READONLY, DEBUGGING, OCTETS Disassembly of section .text: @@ -60,9 +60,9 @@ Disassembly of section .text: 80001f6: 2301 movs r3, #1 80001f8: 7023 strb r3, [r4, #0] 80001fa: bd10 pop {r4, pc} - 80001fc: 20000024 .word 0x20000024 + 80001fc: 20000088 .word 0x20000088 8000200: 00000000 .word 0x00000000 - 8000204: 08003c4c .word 0x08003c4c + 8000204: 08006830 .word 0x08006830 08000208 : 8000208: b508 push {r3, lr} @@ -73,8 +73,8 @@ Disassembly of section .text: 8000212: f3af 8000 nop.w 8000216: bd08 pop {r3, pc} 8000218: 00000000 .word 0x00000000 - 800021c: 20000028 .word 0x20000028 - 8000220: 08003c4c .word 0x08003c4c + 800021c: 2000008c .word 0x2000008c + 8000220: 08006830 .word 0x08006830 08000224
: /** @@ -91,7 +91,7 @@ int main(void) /* Reset of all peripherals, Initializes the Flash interface and the Systick. */ HAL_Init(); - 8000228: f000 faa8 bl 800077c + 8000228: f000 fade bl 80007e8 /* USER CODE BEGIN Init */ /* USER CODE END Init */ @@ -111,10 +111,10 @@ int main(void) MX_SPI2_Init(); 8000238: f000 f84a bl 80002d0 MX_FATFS_Init(); - 800023c: f002 f838 bl 80022b0 + 800023c: f002 f86e bl 800231c /* USER CODE BEGIN 2 */ my_main(); - 8000240: f002 f90a bl 8002458 + 8000240: f004 fa84 bl 800474c /* USER CODE END 2 */ @@ -138,7 +138,7 @@ void SystemClock_Config(void) 8000250: 2228 movs r2, #40 ; 0x28 8000252: 2100 movs r1, #0 8000254: 4618 mov r0, r3 - 8000256: f003 fcf1 bl 8003c3c + 8000256: f005 fea9 bl 8005fac RCC_ClkInitTypeDef RCC_ClkInitStruct = {0}; 800025a: 1d3b adds r3, r7, #4 800025c: 2200 movs r2, #0 @@ -175,7 +175,7 @@ void SystemClock_Config(void) if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) 800028a: f107 0318 add.w r3, r7, #24 800028e: 4618 mov r0, r3 - 8000290: f000 fd8a bl 8000da8 + 8000290: f000 fdc0 bl 8000e14 8000294: 4603 mov r3, r0 8000296: 2b00 cmp r3, #0 8000298: d001 beq.n 800029e @@ -206,7 +206,7 @@ void SystemClock_Config(void) 80002b4: 1d3b adds r3, r7, #4 80002b6: 2102 movs r1, #2 80002b8: 4618 mov r0, r3 - 80002ba: f000 fff5 bl 80012a8 + 80002ba: f001 f82b bl 8001314 80002be: 4603 mov r3, r0 80002c0: 2b00 cmp r3, #0 80002c2: d001 beq.n 80002c8 @@ -284,7 +284,7 @@ static void MX_SPI2_Init(void) 800031e: 62da str r2, [r3, #44] ; 0x2c if (HAL_SPI_Init(&hspi2) != HAL_OK) 8000320: 4804 ldr r0, [pc, #16] ; (8000334 ) - 8000322: f001 f929 bl 8001578 + 8000322: f001 f95f bl 80015e4 8000326: 4603 mov r3, r0 8000328: 2b00 cmp r3, #0 800032a: d001 beq.n 8000330 @@ -299,7 +299,7 @@ static void MX_SPI2_Init(void) } 8000330: bf00 nop 8000332: bd80 pop {r7, pc} - 8000334: 20000054 .word 0x20000054 + 8000334: 200000e4 .word 0x200000e4 8000338: 40003800 .word 0x40003800 0800033c : @@ -382,14 +382,14 @@ static void MX_GPIO_Init(void) 80003c8: 2200 movs r2, #0 80003ca: f241 0101 movw r1, #4097 ; 0x1001 80003ce: 481c ldr r0, [pc, #112] ; (8000440 ) - 80003d0: f000 fcd2 bl 8000d78 + 80003d0: f000 fd08 bl 8000de4 /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(SD_E_GPIO_Port, SD_E_Pin, GPIO_PIN_RESET); 80003d4: 2200 movs r2, #0 80003d6: 2104 movs r1, #4 80003d8: 481a ldr r0, [pc, #104] ; (8000444 ) - 80003da: f000 fccd bl 8000d78 + 80003da: f000 fd03 bl 8000de4 /*Configure GPIO pin : LCD_BL_Pin */ GPIO_InitStruct.Pin = LCD_BL_Pin; @@ -408,7 +408,7 @@ static void MX_GPIO_Init(void) 80003ee: f107 0318 add.w r3, r7, #24 80003f2: 4619 mov r1, r3 80003f4: 4812 ldr r0, [pc, #72] ; (8000440 ) - 80003f6: f000 fb2b bl 8000a50 + 80003f6: f000 fb61 bl 8000abc /*Configure GPIO pin : FLASH_E_Pin */ GPIO_InitStruct.Pin = FLASH_E_Pin; @@ -427,7 +427,7 @@ static void MX_GPIO_Init(void) 800040c: f107 0318 add.w r3, r7, #24 8000410: 4619 mov r1, r3 8000412: 480b ldr r0, [pc, #44] ; (8000440 ) - 8000414: f000 fb1c bl 8000a50 + 8000414: f000 fb52 bl 8000abc /*Configure GPIO pin : SD_E_Pin */ GPIO_InitStruct.Pin = SD_E_Pin; @@ -446,7 +446,7 @@ static void MX_GPIO_Init(void) 8000428: f107 0318 add.w r3, r7, #24 800042c: 4619 mov r1, r3 800042e: 4805 ldr r0, [pc, #20] ; (8000444 ) - 8000430: f000 fb0e bl 8000a50 + 8000430: f000 fb44 bl 8000abc } 8000434: bf00 nop @@ -575,7 +575,7 @@ static void MX_FSMC_Init(void) 80004dc: 2200 movs r2, #0 80004de: 4619 mov r1, r3 80004e0: 4808 ldr r0, [pc, #32] ; (8000504 ) - 80004e2: f001 fdc1 bl 8002068 + 80004e2: f001 fdf7 bl 80020d4 80004e6: 4603 mov r3, r0 80004e8: 2b00 cmp r3, #0 80004ea: d001 beq.n 80004f0 @@ -602,7 +602,7 @@ static void MX_FSMC_Init(void) 80004fe: 3720 adds r7, #32 8000500: 46bd mov sp, r7 8000502: bd80 pop {r7, pc} - 8000504: 200000ac .word 0x200000ac + 8000504: 2000013c .word 0x2000013c 8000508: a0000104 .word 0xa0000104 800050c: 40010000 .word 0x40010000 @@ -768,7 +768,7 @@ void HAL_SPI_MspInit(SPI_HandleTypeDef* hspi) 80005de: f107 0310 add.w r3, r7, #16 80005e2: 4619 mov r1, r3 80005e4: 480b ldr r0, [pc, #44] ; (8000614 ) - 80005e6: f000 fa33 bl 8000a50 + 80005e6: f000 fa69 bl 8000abc GPIO_InitStruct.Pin = GPIO_PIN_14; 80005ea: f44f 4380 mov.w r3, #16384 ; 0x4000 @@ -783,7 +783,7 @@ void HAL_SPI_MspInit(SPI_HandleTypeDef* hspi) 80005f8: f107 0310 add.w r3, r7, #16 80005fc: 4619 mov r1, r3 80005fe: 4805 ldr r0, [pc, #20] ; (8000614 ) - 8000600: f000 fa26 bl 8000a50 + 8000600: f000 fa5c bl 8000abc /* USER CODE BEGIN SPI2_MspInit 1 */ /* USER CODE END SPI2_MspInit 1 */ @@ -860,7 +860,7 @@ static void HAL_FSMC_MspInit(void){ 8000660: f107 0308 add.w r3, r7, #8 8000664: 4619 mov r1, r3 8000666: 4813 ldr r0, [pc, #76] ; (80006b4 ) - 8000668: f000 f9f2 bl 8000a50 + 8000668: f000 fa28 bl 8000abc GPIO_InitStruct.Pin = GPIO_PIN_7|GPIO_PIN_8|GPIO_PIN_9|GPIO_PIN_10 800066c: f64f 7380 movw r3, #65408 ; 0xff80 @@ -877,7 +877,7 @@ static void HAL_FSMC_MspInit(void){ 800067a: f107 0308 add.w r3, r7, #8 800067e: 4619 mov r1, r3 8000680: 480d ldr r0, [pc, #52] ; (80006b8 ) - 8000682: f000 f9e5 bl 8000a50 + 8000682: f000 fa1b bl 8000abc GPIO_InitStruct.Pin = GPIO_PIN_8|GPIO_PIN_9|GPIO_PIN_10|GPIO_PIN_14 8000686: f24c 7333 movw r3, #50995 ; 0xc733 @@ -894,7 +894,7 @@ static void HAL_FSMC_MspInit(void){ 8000694: f107 0308 add.w r3, r7, #8 8000698: 4619 mov r1, r3 800069a: 4808 ldr r0, [pc, #32] ; (80006bc ) - 800069c: f000 f9d8 bl 8000a50 + 800069c: f000 fa0e bl 8000abc 80006a0: e000 b.n 80006a4 return; 80006a2: bf00 nop @@ -907,7 +907,7 @@ static void HAL_FSMC_MspInit(void){ 80006a6: 46bd mov sp, r7 80006a8: bd80 pop {r7, pc} 80006aa: bf00 nop - 80006ac: 20000040 .word 0x20000040 + 80006ac: 200000a4 .word 0x200000a4 80006b0: 40021000 .word 0x40021000 80006b4: 40012000 .word 0x40012000 80006b8: 40011800 .word 0x40011800 @@ -1083,9137 +1083,15346 @@ void SysTick_Handler(void) /* USER CODE END SysTick_IRQn 0 */ HAL_IncTick(); - 800071a: f000 f875 bl 8000808 + 800071a: f000 f8ab bl 8000874 /* USER CODE BEGIN SysTick_IRQn 1 */ /* USER CODE END SysTick_IRQn 1 */ } 800071e: bf00 nop 8000720: bd80 pop {r7, pc} + ... -08000722 : +08000724 <_sbrk>: + * + * @param incr Memory size + * @return Pointer to allocated memory + */ +void *_sbrk(ptrdiff_t incr) +{ + 8000724: b580 push {r7, lr} + 8000726: b086 sub sp, #24 + 8000728: af00 add r7, sp, #0 + 800072a: 6078 str r0, [r7, #4] + extern uint8_t _end; /* Symbol defined in the linker script */ + extern uint8_t _estack; /* Symbol defined in the linker script */ + extern uint32_t _Min_Stack_Size; /* Symbol defined in the linker script */ + const uint32_t stack_limit = (uint32_t)&_estack - (uint32_t)&_Min_Stack_Size; + 800072c: 4a14 ldr r2, [pc, #80] ; (8000780 <_sbrk+0x5c>) + 800072e: 4b15 ldr r3, [pc, #84] ; (8000784 <_sbrk+0x60>) + 8000730: 1ad3 subs r3, r2, r3 + 8000732: 617b str r3, [r7, #20] + const uint8_t *max_heap = (uint8_t *)stack_limit; + 8000734: 697b ldr r3, [r7, #20] + 8000736: 613b str r3, [r7, #16] + uint8_t *prev_heap_end; + + /* Initialize heap end at first call */ + if (NULL == __sbrk_heap_end) + 8000738: 4b13 ldr r3, [pc, #76] ; (8000788 <_sbrk+0x64>) + 800073a: 681b ldr r3, [r3, #0] + 800073c: 2b00 cmp r3, #0 + 800073e: d102 bne.n 8000746 <_sbrk+0x22> + { + __sbrk_heap_end = &_end; + 8000740: 4b11 ldr r3, [pc, #68] ; (8000788 <_sbrk+0x64>) + 8000742: 4a12 ldr r2, [pc, #72] ; (800078c <_sbrk+0x68>) + 8000744: 601a str r2, [r3, #0] + } + + /* Protect heap from growing into the reserved MSP stack */ + if (__sbrk_heap_end + incr > max_heap) + 8000746: 4b10 ldr r3, [pc, #64] ; (8000788 <_sbrk+0x64>) + 8000748: 681a ldr r2, [r3, #0] + 800074a: 687b ldr r3, [r7, #4] + 800074c: 4413 add r3, r2 + 800074e: 693a ldr r2, [r7, #16] + 8000750: 429a cmp r2, r3 + 8000752: d207 bcs.n 8000764 <_sbrk+0x40> + { + errno = ENOMEM; + 8000754: f005 fc00 bl 8005f58 <__errno> + 8000758: 4603 mov r3, r0 + 800075a: 220c movs r2, #12 + 800075c: 601a str r2, [r3, #0] + return (void *)-1; + 800075e: f04f 33ff mov.w r3, #4294967295 + 8000762: e009 b.n 8000778 <_sbrk+0x54> + } + + prev_heap_end = __sbrk_heap_end; + 8000764: 4b08 ldr r3, [pc, #32] ; (8000788 <_sbrk+0x64>) + 8000766: 681b ldr r3, [r3, #0] + 8000768: 60fb str r3, [r7, #12] + __sbrk_heap_end += incr; + 800076a: 4b07 ldr r3, [pc, #28] ; (8000788 <_sbrk+0x64>) + 800076c: 681a ldr r2, [r3, #0] + 800076e: 687b ldr r3, [r7, #4] + 8000770: 4413 add r3, r2 + 8000772: 4a05 ldr r2, [pc, #20] ; (8000788 <_sbrk+0x64>) + 8000774: 6013 str r3, [r2, #0] + + return (void *)prev_heap_end; + 8000776: 68fb ldr r3, [r7, #12] +} + 8000778: 4618 mov r0, r3 + 800077a: 3718 adds r7, #24 + 800077c: 46bd mov sp, r7 + 800077e: bd80 pop {r7, pc} + 8000780: 20010000 .word 0x20010000 + 8000784: 00000800 .word 0x00000800 + 8000788: 200000a8 .word 0x200000a8 + 800078c: 20000860 .word 0x20000860 + +08000790 : * @note This function should be used only after reset. * @param None * @retval None */ void SystemInit (void) { - 8000722: b480 push {r7} - 8000724: af00 add r7, sp, #0 + 8000790: b480 push {r7} + 8000792: af00 add r7, sp, #0 /* 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 */ } - 8000726: bf00 nop - 8000728: 46bd mov sp, r7 - 800072a: bc80 pop {r7} - 800072c: 4770 bx lr - ... + 8000794: bf00 nop + 8000796: 46bd mov sp, r7 + 8000798: bc80 pop {r7} + 800079a: 4770 bx lr -08000730 : +0800079c : .weak Reset_Handler .type Reset_Handler, %function Reset_Handler: /* Copy the data segment initializers from flash to SRAM */ movs r1, #0 - 8000730: 2100 movs r1, #0 + 800079c: 2100 movs r1, #0 b LoopCopyDataInit - 8000732: e003 b.n 800073c + 800079e: e003 b.n 80007a8 -08000734 : +080007a0 : CopyDataInit: ldr r3, =_sidata - 8000734: 4b0b ldr r3, [pc, #44] ; (8000764 ) + 80007a0: 4b0b ldr r3, [pc, #44] ; (80007d0 ) ldr r3, [r3, r1] - 8000736: 585b ldr r3, [r3, r1] + 80007a2: 585b ldr r3, [r3, r1] str r3, [r0, r1] - 8000738: 5043 str r3, [r0, r1] + 80007a4: 5043 str r3, [r0, r1] adds r1, r1, #4 - 800073a: 3104 adds r1, #4 + 80007a6: 3104 adds r1, #4 -0800073c : +080007a8 : LoopCopyDataInit: ldr r0, =_sdata - 800073c: 480a ldr r0, [pc, #40] ; (8000768 ) + 80007a8: 480a ldr r0, [pc, #40] ; (80007d4 ) ldr r3, =_edata - 800073e: 4b0b ldr r3, [pc, #44] ; (800076c ) + 80007aa: 4b0b ldr r3, [pc, #44] ; (80007d8 ) adds r2, r0, r1 - 8000740: 1842 adds r2, r0, r1 + 80007ac: 1842 adds r2, r0, r1 cmp r2, r3 - 8000742: 429a cmp r2, r3 + 80007ae: 429a cmp r2, r3 bcc CopyDataInit - 8000744: d3f6 bcc.n 8000734 + 80007b0: d3f6 bcc.n 80007a0 ldr r2, =_sbss - 8000746: 4a0a ldr r2, [pc, #40] ; (8000770 ) + 80007b2: 4a0a ldr r2, [pc, #40] ; (80007dc ) b LoopFillZerobss - 8000748: e002 b.n 8000750 + 80007b4: e002 b.n 80007bc -0800074a : +080007b6 : /* Zero fill the bss segment. */ FillZerobss: movs r3, #0 - 800074a: 2300 movs r3, #0 + 80007b6: 2300 movs r3, #0 str r3, [r2], #4 - 800074c: f842 3b04 str.w r3, [r2], #4 + 80007b8: f842 3b04 str.w r3, [r2], #4 -08000750 : +080007bc : LoopFillZerobss: ldr r3, = _ebss - 8000750: 4b08 ldr r3, [pc, #32] ; (8000774 ) + 80007bc: 4b08 ldr r3, [pc, #32] ; (80007e0 ) cmp r2, r3 - 8000752: 429a cmp r2, r3 + 80007be: 429a cmp r2, r3 bcc FillZerobss - 8000754: d3f9 bcc.n 800074a + 80007c0: d3f9 bcc.n 80007b6 /* Call the clock system intitialization function.*/ bl SystemInit - 8000756: f7ff ffe4 bl 8000722 + 80007c2: f7ff ffe5 bl 8000790 /* Call static constructors */ bl __libc_init_array - 800075a: f003 fa4b bl 8003bf4 <__libc_init_array> + 80007c6: f005 fbcd bl 8005f64 <__libc_init_array> /* Call the application's entry point.*/ bl main - 800075e: f7ff fd61 bl 8000224
+ 80007ca: f7ff fd2b bl 8000224
bx lr - 8000762: 4770 bx lr + 80007ce: 4770 bx lr ldr r3, =_sidata - 8000764: 08004704 .word 0x08004704 + 80007d0: 080073ec .word 0x080073ec ldr r0, =_sdata - 8000768: 20000000 .word 0x20000000 + 80007d4: 20000000 .word 0x20000000 ldr r3, =_edata - 800076c: 20000024 .word 0x20000024 + 80007d8: 20000088 .word 0x20000088 ldr r2, =_sbss - 8000770: 20000024 .word 0x20000024 + 80007dc: 20000088 .word 0x20000088 ldr r3, = _ebss - 8000774: 20000590 .word 0x20000590 + 80007e0: 20000860 .word 0x20000860 -08000778 : +080007e4 : * @retval : None */ .section .text.Default_Handler,"ax",%progbits Default_Handler: Infinite_Loop: b Infinite_Loop - 8000778: e7fe b.n 8000778 + 80007e4: e7fe b.n 80007e4 ... -0800077c : +080007e8 : * 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) { - 800077c: b580 push {r7, lr} - 800077e: af00 add r7, sp, #0 + 80007e8: b580 push {r7, lr} + 80007ea: af00 add r7, sp, #0 defined(STM32F102x6) || defined(STM32F102xB) || \ defined(STM32F103x6) || defined(STM32F103xB) || defined(STM32F103xE) || defined(STM32F103xG) || \ defined(STM32F105xC) || defined(STM32F107xC) /* Prefetch buffer is not available on value line devices */ __HAL_FLASH_PREFETCH_BUFFER_ENABLE(); - 8000780: 4b08 ldr r3, [pc, #32] ; (80007a4 ) - 8000782: 681b ldr r3, [r3, #0] - 8000784: 4a07 ldr r2, [pc, #28] ; (80007a4 ) - 8000786: f043 0310 orr.w r3, r3, #16 - 800078a: 6013 str r3, [r2, #0] + 80007ec: 4b08 ldr r3, [pc, #32] ; (8000810 ) + 80007ee: 681b ldr r3, [r3, #0] + 80007f0: 4a07 ldr r2, [pc, #28] ; (8000810 ) + 80007f2: f043 0310 orr.w r3, r3, #16 + 80007f6: 6013 str r3, [r2, #0] #endif #endif /* PREFETCH_ENABLE */ /* Set Interrupt Group Priority */ HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4); - 800078c: 2003 movs r0, #3 - 800078e: f000 f92b bl 80009e8 + 80007f8: 2003 movs r0, #3 + 80007fa: f000 f92b bl 8000a54 /* Use systick as time base source and configure 1ms tick (default clock after Reset is HSI) */ HAL_InitTick(TICK_INT_PRIORITY); - 8000792: 2000 movs r0, #0 - 8000794: f000 f808 bl 80007a8 + 80007fe: 2000 movs r0, #0 + 8000800: f000 f808 bl 8000814 /* Init the low level hardware */ HAL_MspInit(); - 8000798: f7ff fec0 bl 800051c + 8000804: f7ff fe8a bl 800051c /* Return function status */ return HAL_OK; - 800079c: 2300 movs r3, #0 + 8000808: 2300 movs r3, #0 } - 800079e: 4618 mov r0, r3 - 80007a0: bd80 pop {r7, pc} - 80007a2: bf00 nop - 80007a4: 40022000 .word 0x40022000 + 800080a: 4618 mov r0, r3 + 800080c: bd80 pop {r7, pc} + 800080e: bf00 nop + 8000810: 40022000 .word 0x40022000 -080007a8 : +08000814 : * implementation in user file. * @param TickPriority Tick interrupt priority. * @retval HAL status */ __weak HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority) { - 80007a8: b580 push {r7, lr} - 80007aa: b082 sub sp, #8 - 80007ac: af00 add r7, sp, #0 - 80007ae: 6078 str r0, [r7, #4] + 8000814: b580 push {r7, lr} + 8000816: b082 sub sp, #8 + 8000818: af00 add r7, sp, #0 + 800081a: 6078 str r0, [r7, #4] /* Configure the SysTick to have interrupt in 1ms time basis*/ if (HAL_SYSTICK_Config(SystemCoreClock / (1000U / uwTickFreq)) > 0U) - 80007b0: 4b12 ldr r3, [pc, #72] ; (80007fc ) - 80007b2: 681a ldr r2, [r3, #0] - 80007b4: 4b12 ldr r3, [pc, #72] ; (8000800 ) - 80007b6: 781b ldrb r3, [r3, #0] - 80007b8: 4619 mov r1, r3 - 80007ba: f44f 737a mov.w r3, #1000 ; 0x3e8 - 80007be: fbb3 f3f1 udiv r3, r3, r1 - 80007c2: fbb2 f3f3 udiv r3, r2, r3 - 80007c6: 4618 mov r0, r3 - 80007c8: f000 f935 bl 8000a36 - 80007cc: 4603 mov r3, r0 - 80007ce: 2b00 cmp r3, #0 - 80007d0: d001 beq.n 80007d6 + 800081c: 4b12 ldr r3, [pc, #72] ; (8000868 ) + 800081e: 681a ldr r2, [r3, #0] + 8000820: 4b12 ldr r3, [pc, #72] ; (800086c ) + 8000822: 781b ldrb r3, [r3, #0] + 8000824: 4619 mov r1, r3 + 8000826: f44f 737a mov.w r3, #1000 ; 0x3e8 + 800082a: fbb3 f3f1 udiv r3, r3, r1 + 800082e: fbb2 f3f3 udiv r3, r2, r3 + 8000832: 4618 mov r0, r3 + 8000834: f000 f935 bl 8000aa2 + 8000838: 4603 mov r3, r0 + 800083a: 2b00 cmp r3, #0 + 800083c: d001 beq.n 8000842 { return HAL_ERROR; - 80007d2: 2301 movs r3, #1 - 80007d4: e00e b.n 80007f4 + 800083e: 2301 movs r3, #1 + 8000840: e00e b.n 8000860 } /* Configure the SysTick IRQ priority */ if (TickPriority < (1UL << __NVIC_PRIO_BITS)) - 80007d6: 687b ldr r3, [r7, #4] - 80007d8: 2b0f cmp r3, #15 - 80007da: d80a bhi.n 80007f2 + 8000842: 687b ldr r3, [r7, #4] + 8000844: 2b0f cmp r3, #15 + 8000846: d80a bhi.n 800085e { HAL_NVIC_SetPriority(SysTick_IRQn, TickPriority, 0U); - 80007dc: 2200 movs r2, #0 - 80007de: 6879 ldr r1, [r7, #4] - 80007e0: f04f 30ff mov.w r0, #4294967295 - 80007e4: f000 f90b bl 80009fe + 8000848: 2200 movs r2, #0 + 800084a: 6879 ldr r1, [r7, #4] + 800084c: f04f 30ff mov.w r0, #4294967295 + 8000850: f000 f90b bl 8000a6a uwTickPrio = TickPriority; - 80007e8: 4a06 ldr r2, [pc, #24] ; (8000804 ) - 80007ea: 687b ldr r3, [r7, #4] - 80007ec: 6013 str r3, [r2, #0] + 8000854: 4a06 ldr r2, [pc, #24] ; (8000870 ) + 8000856: 687b ldr r3, [r7, #4] + 8000858: 6013 str r3, [r2, #0] { return HAL_ERROR; } /* Return function status */ return HAL_OK; - 80007ee: 2300 movs r3, #0 - 80007f0: e000 b.n 80007f4 + 800085a: 2300 movs r3, #0 + 800085c: e000 b.n 8000860 return HAL_ERROR; - 80007f2: 2301 movs r3, #1 + 800085e: 2301 movs r3, #1 } - 80007f4: 4618 mov r0, r3 - 80007f6: 3708 adds r7, #8 - 80007f8: 46bd mov sp, r7 - 80007fa: bd80 pop {r7, pc} - 80007fc: 20000000 .word 0x20000000 - 8000800: 20000008 .word 0x20000008 - 8000804: 20000004 .word 0x20000004 + 8000860: 4618 mov r0, r3 + 8000862: 3708 adds r7, #8 + 8000864: 46bd mov sp, r7 + 8000866: bd80 pop {r7, pc} + 8000868: 20000000 .word 0x20000000 + 800086c: 20000008 .word 0x20000008 + 8000870: 20000004 .word 0x20000004 -08000808 : +08000874 : * @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) { - 8000808: b480 push {r7} - 800080a: af00 add r7, sp, #0 + 8000874: b480 push {r7} + 8000876: af00 add r7, sp, #0 uwTick += uwTickFreq; - 800080c: 4b05 ldr r3, [pc, #20] ; (8000824 ) - 800080e: 781b ldrb r3, [r3, #0] - 8000810: 461a mov r2, r3 - 8000812: 4b05 ldr r3, [pc, #20] ; (8000828 ) - 8000814: 681b ldr r3, [r3, #0] - 8000816: 4413 add r3, r2 - 8000818: 4a03 ldr r2, [pc, #12] ; (8000828 ) - 800081a: 6013 str r3, [r2, #0] + 8000878: 4b05 ldr r3, [pc, #20] ; (8000890 ) + 800087a: 781b ldrb r3, [r3, #0] + 800087c: 461a mov r2, r3 + 800087e: 4b05 ldr r3, [pc, #20] ; (8000894 ) + 8000880: 681b ldr r3, [r3, #0] + 8000882: 4413 add r3, r2 + 8000884: 4a03 ldr r2, [pc, #12] ; (8000894 ) + 8000886: 6013 str r3, [r2, #0] } - 800081c: bf00 nop - 800081e: 46bd mov sp, r7 - 8000820: bc80 pop {r7} - 8000822: 4770 bx lr - 8000824: 20000008 .word 0x20000008 - 8000828: 200000f4 .word 0x200000f4 + 8000888: bf00 nop + 800088a: 46bd mov sp, r7 + 800088c: bc80 pop {r7} + 800088e: 4770 bx lr + 8000890: 20000008 .word 0x20000008 + 8000894: 20000184 .word 0x20000184 -0800082c : +08000898 : * @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) { - 800082c: b480 push {r7} - 800082e: af00 add r7, sp, #0 + 8000898: b480 push {r7} + 800089a: af00 add r7, sp, #0 return uwTick; - 8000830: 4b02 ldr r3, [pc, #8] ; (800083c ) - 8000832: 681b ldr r3, [r3, #0] + 800089c: 4b02 ldr r3, [pc, #8] ; (80008a8 ) + 800089e: 681b ldr r3, [r3, #0] } - 8000834: 4618 mov r0, r3 - 8000836: 46bd mov sp, r7 - 8000838: bc80 pop {r7} - 800083a: 4770 bx lr - 800083c: 200000f4 .word 0x200000f4 + 80008a0: 4618 mov r0, r3 + 80008a2: 46bd mov sp, r7 + 80008a4: bc80 pop {r7} + 80008a6: 4770 bx lr + 80008a8: 20000184 .word 0x20000184 -08000840 : +080008ac : * implementations in user file. * @param Delay specifies the delay time length, in milliseconds. * @retval None */ __weak void HAL_Delay(uint32_t Delay) { - 8000840: b580 push {r7, lr} - 8000842: b084 sub sp, #16 - 8000844: af00 add r7, sp, #0 - 8000846: 6078 str r0, [r7, #4] + 80008ac: b580 push {r7, lr} + 80008ae: b084 sub sp, #16 + 80008b0: af00 add r7, sp, #0 + 80008b2: 6078 str r0, [r7, #4] uint32_t tickstart = HAL_GetTick(); - 8000848: f7ff fff0 bl 800082c - 800084c: 60b8 str r0, [r7, #8] + 80008b4: f7ff fff0 bl 8000898 + 80008b8: 60b8 str r0, [r7, #8] uint32_t wait = Delay; - 800084e: 687b ldr r3, [r7, #4] - 8000850: 60fb str r3, [r7, #12] + 80008ba: 687b ldr r3, [r7, #4] + 80008bc: 60fb str r3, [r7, #12] /* Add a freq to guarantee minimum wait */ if (wait < HAL_MAX_DELAY) - 8000852: 68fb ldr r3, [r7, #12] - 8000854: f1b3 3fff cmp.w r3, #4294967295 - 8000858: d005 beq.n 8000866 + 80008be: 68fb ldr r3, [r7, #12] + 80008c0: f1b3 3fff cmp.w r3, #4294967295 + 80008c4: d005 beq.n 80008d2 { wait += (uint32_t)(uwTickFreq); - 800085a: 4b0a ldr r3, [pc, #40] ; (8000884 ) - 800085c: 781b ldrb r3, [r3, #0] - 800085e: 461a mov r2, r3 - 8000860: 68fb ldr r3, [r7, #12] - 8000862: 4413 add r3, r2 - 8000864: 60fb str r3, [r7, #12] + 80008c6: 4b0a ldr r3, [pc, #40] ; (80008f0 ) + 80008c8: 781b ldrb r3, [r3, #0] + 80008ca: 461a mov r2, r3 + 80008cc: 68fb ldr r3, [r7, #12] + 80008ce: 4413 add r3, r2 + 80008d0: 60fb str r3, [r7, #12] } while ((HAL_GetTick() - tickstart) < wait) - 8000866: bf00 nop - 8000868: f7ff ffe0 bl 800082c - 800086c: 4602 mov r2, r0 - 800086e: 68bb ldr r3, [r7, #8] - 8000870: 1ad3 subs r3, r2, r3 - 8000872: 68fa ldr r2, [r7, #12] - 8000874: 429a cmp r2, r3 - 8000876: d8f7 bhi.n 8000868 + 80008d2: bf00 nop + 80008d4: f7ff ffe0 bl 8000898 + 80008d8: 4602 mov r2, r0 + 80008da: 68bb ldr r3, [r7, #8] + 80008dc: 1ad3 subs r3, r2, r3 + 80008de: 68fa ldr r2, [r7, #12] + 80008e0: 429a cmp r2, r3 + 80008e2: d8f7 bhi.n 80008d4 { } } - 8000878: bf00 nop - 800087a: bf00 nop - 800087c: 3710 adds r7, #16 - 800087e: 46bd mov sp, r7 - 8000880: bd80 pop {r7, pc} - 8000882: bf00 nop - 8000884: 20000008 .word 0x20000008 + 80008e4: bf00 nop + 80008e6: bf00 nop + 80008e8: 3710 adds r7, #16 + 80008ea: 46bd mov sp, r7 + 80008ec: bd80 pop {r7, pc} + 80008ee: bf00 nop + 80008f0: 20000008 .word 0x20000008 -08000888 <__NVIC_SetPriorityGrouping>: +080008f4 <__NVIC_SetPriorityGrouping>: In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set. \param [in] PriorityGroup Priority grouping field. */ __STATIC_INLINE void __NVIC_SetPriorityGrouping(uint32_t PriorityGroup) { - 8000888: b480 push {r7} - 800088a: b085 sub sp, #20 - 800088c: af00 add r7, sp, #0 - 800088e: 6078 str r0, [r7, #4] + 80008f4: b480 push {r7} + 80008f6: b085 sub sp, #20 + 80008f8: af00 add r7, sp, #0 + 80008fa: 6078 str r0, [r7, #4] uint32_t reg_value; uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - 8000890: 687b ldr r3, [r7, #4] - 8000892: f003 0307 and.w r3, r3, #7 - 8000896: 60fb str r3, [r7, #12] + 80008fc: 687b ldr r3, [r7, #4] + 80008fe: f003 0307 and.w r3, r3, #7 + 8000902: 60fb str r3, [r7, #12] reg_value = SCB->AIRCR; /* read old register configuration */ - 8000898: 4b0c ldr r3, [pc, #48] ; (80008cc <__NVIC_SetPriorityGrouping+0x44>) - 800089a: 68db ldr r3, [r3, #12] - 800089c: 60bb str r3, [r7, #8] + 8000904: 4b0c ldr r3, [pc, #48] ; (8000938 <__NVIC_SetPriorityGrouping+0x44>) + 8000906: 68db ldr r3, [r3, #12] + 8000908: 60bb str r3, [r7, #8] reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */ - 800089e: 68ba ldr r2, [r7, #8] - 80008a0: f64f 03ff movw r3, #63743 ; 0xf8ff - 80008a4: 4013 ands r3, r2 - 80008a6: 60bb str r3, [r7, #8] + 800090a: 68ba ldr r2, [r7, #8] + 800090c: f64f 03ff movw r3, #63743 ; 0xf8ff + 8000910: 4013 ands r3, r2 + 8000912: 60bb str r3, [r7, #8] reg_value = (reg_value | ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | (PriorityGroupTmp << SCB_AIRCR_PRIGROUP_Pos) ); /* Insert write key and priority group */ - 80008a8: 68fb ldr r3, [r7, #12] - 80008aa: 021a lsls r2, r3, #8 + 8000914: 68fb ldr r3, [r7, #12] + 8000916: 021a lsls r2, r3, #8 ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | - 80008ac: 68bb ldr r3, [r7, #8] - 80008ae: 4313 orrs r3, r2 + 8000918: 68bb ldr r3, [r7, #8] + 800091a: 4313 orrs r3, r2 reg_value = (reg_value | - 80008b0: f043 63bf orr.w r3, r3, #100139008 ; 0x5f80000 - 80008b4: f443 3300 orr.w r3, r3, #131072 ; 0x20000 - 80008b8: 60bb str r3, [r7, #8] + 800091c: f043 63bf orr.w r3, r3, #100139008 ; 0x5f80000 + 8000920: f443 3300 orr.w r3, r3, #131072 ; 0x20000 + 8000924: 60bb str r3, [r7, #8] SCB->AIRCR = reg_value; - 80008ba: 4a04 ldr r2, [pc, #16] ; (80008cc <__NVIC_SetPriorityGrouping+0x44>) - 80008bc: 68bb ldr r3, [r7, #8] - 80008be: 60d3 str r3, [r2, #12] + 8000926: 4a04 ldr r2, [pc, #16] ; (8000938 <__NVIC_SetPriorityGrouping+0x44>) + 8000928: 68bb ldr r3, [r7, #8] + 800092a: 60d3 str r3, [r2, #12] } - 80008c0: bf00 nop - 80008c2: 3714 adds r7, #20 - 80008c4: 46bd mov sp, r7 - 80008c6: bc80 pop {r7} - 80008c8: 4770 bx lr - 80008ca: bf00 nop - 80008cc: e000ed00 .word 0xe000ed00 + 800092c: bf00 nop + 800092e: 3714 adds r7, #20 + 8000930: 46bd mov sp, r7 + 8000932: bc80 pop {r7} + 8000934: 4770 bx lr + 8000936: bf00 nop + 8000938: e000ed00 .word 0xe000ed00 -080008d0 <__NVIC_GetPriorityGrouping>: +0800093c <__NVIC_GetPriorityGrouping>: \brief Get Priority Grouping \details Reads the priority grouping field from the NVIC Interrupt Controller. \return Priority grouping field (SCB->AIRCR [10:8] PRIGROUP field). */ __STATIC_INLINE uint32_t __NVIC_GetPriorityGrouping(void) { - 80008d0: b480 push {r7} - 80008d2: af00 add r7, sp, #0 + 800093c: b480 push {r7} + 800093e: af00 add r7, sp, #0 return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos)); - 80008d4: 4b04 ldr r3, [pc, #16] ; (80008e8 <__NVIC_GetPriorityGrouping+0x18>) - 80008d6: 68db ldr r3, [r3, #12] - 80008d8: 0a1b lsrs r3, r3, #8 - 80008da: f003 0307 and.w r3, r3, #7 + 8000940: 4b04 ldr r3, [pc, #16] ; (8000954 <__NVIC_GetPriorityGrouping+0x18>) + 8000942: 68db ldr r3, [r3, #12] + 8000944: 0a1b lsrs r3, r3, #8 + 8000946: f003 0307 and.w r3, r3, #7 } - 80008de: 4618 mov r0, r3 - 80008e0: 46bd mov sp, r7 - 80008e2: bc80 pop {r7} - 80008e4: 4770 bx lr - 80008e6: bf00 nop - 80008e8: e000ed00 .word 0xe000ed00 + 800094a: 4618 mov r0, r3 + 800094c: 46bd mov sp, r7 + 800094e: bc80 pop {r7} + 8000950: 4770 bx lr + 8000952: bf00 nop + 8000954: e000ed00 .word 0xe000ed00 -080008ec <__NVIC_SetPriority>: +08000958 <__NVIC_SetPriority>: \param [in] IRQn Interrupt number. \param [in] priority Priority to set. \note The priority cannot be set for every processor exception. */ __STATIC_INLINE void __NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) { - 80008ec: b480 push {r7} - 80008ee: b083 sub sp, #12 - 80008f0: af00 add r7, sp, #0 - 80008f2: 4603 mov r3, r0 - 80008f4: 6039 str r1, [r7, #0] - 80008f6: 71fb strb r3, [r7, #7] + 8000958: b480 push {r7} + 800095a: b083 sub sp, #12 + 800095c: af00 add r7, sp, #0 + 800095e: 4603 mov r3, r0 + 8000960: 6039 str r1, [r7, #0] + 8000962: 71fb strb r3, [r7, #7] if ((int32_t)(IRQn) >= 0) - 80008f8: f997 3007 ldrsb.w r3, [r7, #7] - 80008fc: 2b00 cmp r3, #0 - 80008fe: db0a blt.n 8000916 <__NVIC_SetPriority+0x2a> + 8000964: f997 3007 ldrsb.w r3, [r7, #7] + 8000968: 2b00 cmp r3, #0 + 800096a: db0a blt.n 8000982 <__NVIC_SetPriority+0x2a> { NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); - 8000900: 683b ldr r3, [r7, #0] - 8000902: b2da uxtb r2, r3 - 8000904: 490c ldr r1, [pc, #48] ; (8000938 <__NVIC_SetPriority+0x4c>) - 8000906: f997 3007 ldrsb.w r3, [r7, #7] - 800090a: 0112 lsls r2, r2, #4 - 800090c: b2d2 uxtb r2, r2 - 800090e: 440b add r3, r1 - 8000910: f883 2300 strb.w r2, [r3, #768] ; 0x300 + 800096c: 683b ldr r3, [r7, #0] + 800096e: b2da uxtb r2, r3 + 8000970: 490c ldr r1, [pc, #48] ; (80009a4 <__NVIC_SetPriority+0x4c>) + 8000972: f997 3007 ldrsb.w r3, [r7, #7] + 8000976: 0112 lsls r2, r2, #4 + 8000978: b2d2 uxtb r2, r2 + 800097a: 440b add r3, r1 + 800097c: f883 2300 strb.w r2, [r3, #768] ; 0x300 } else { SCB->SHP[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); } } - 8000914: e00a b.n 800092c <__NVIC_SetPriority+0x40> + 8000980: e00a b.n 8000998 <__NVIC_SetPriority+0x40> SCB->SHP[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); - 8000916: 683b ldr r3, [r7, #0] - 8000918: b2da uxtb r2, r3 - 800091a: 4908 ldr r1, [pc, #32] ; (800093c <__NVIC_SetPriority+0x50>) - 800091c: 79fb ldrb r3, [r7, #7] - 800091e: f003 030f and.w r3, r3, #15 - 8000922: 3b04 subs r3, #4 - 8000924: 0112 lsls r2, r2, #4 - 8000926: b2d2 uxtb r2, r2 - 8000928: 440b add r3, r1 - 800092a: 761a strb r2, [r3, #24] + 8000982: 683b ldr r3, [r7, #0] + 8000984: b2da uxtb r2, r3 + 8000986: 4908 ldr r1, [pc, #32] ; (80009a8 <__NVIC_SetPriority+0x50>) + 8000988: 79fb ldrb r3, [r7, #7] + 800098a: f003 030f and.w r3, r3, #15 + 800098e: 3b04 subs r3, #4 + 8000990: 0112 lsls r2, r2, #4 + 8000992: b2d2 uxtb r2, r2 + 8000994: 440b add r3, r1 + 8000996: 761a strb r2, [r3, #24] } - 800092c: bf00 nop - 800092e: 370c adds r7, #12 - 8000930: 46bd mov sp, r7 - 8000932: bc80 pop {r7} - 8000934: 4770 bx lr - 8000936: bf00 nop - 8000938: e000e100 .word 0xe000e100 - 800093c: e000ed00 .word 0xe000ed00 + 8000998: bf00 nop + 800099a: 370c adds r7, #12 + 800099c: 46bd mov sp, r7 + 800099e: bc80 pop {r7} + 80009a0: 4770 bx lr + 80009a2: bf00 nop + 80009a4: e000e100 .word 0xe000e100 + 80009a8: e000ed00 .word 0xe000ed00 -08000940 : +080009ac : \param [in] PreemptPriority Preemptive priority value (starting from 0). \param [in] SubPriority Subpriority value (starting from 0). \return Encoded priority. Value can be used in the function \ref NVIC_SetPriority(). */ __STATIC_INLINE uint32_t NVIC_EncodePriority (uint32_t PriorityGroup, uint32_t PreemptPriority, uint32_t SubPriority) { - 8000940: b480 push {r7} - 8000942: b089 sub sp, #36 ; 0x24 - 8000944: af00 add r7, sp, #0 - 8000946: 60f8 str r0, [r7, #12] - 8000948: 60b9 str r1, [r7, #8] - 800094a: 607a str r2, [r7, #4] + 80009ac: b480 push {r7} + 80009ae: b089 sub sp, #36 ; 0x24 + 80009b0: af00 add r7, sp, #0 + 80009b2: 60f8 str r0, [r7, #12] + 80009b4: 60b9 str r1, [r7, #8] + 80009b6: 607a str r2, [r7, #4] uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - 800094c: 68fb ldr r3, [r7, #12] - 800094e: f003 0307 and.w r3, r3, #7 - 8000952: 61fb str r3, [r7, #28] + 80009b8: 68fb ldr r3, [r7, #12] + 80009ba: f003 0307 and.w r3, r3, #7 + 80009be: 61fb str r3, [r7, #28] uint32_t PreemptPriorityBits; uint32_t SubPriorityBits; PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); - 8000954: 69fb ldr r3, [r7, #28] - 8000956: f1c3 0307 rsb r3, r3, #7 - 800095a: 2b04 cmp r3, #4 - 800095c: bf28 it cs - 800095e: 2304 movcs r3, #4 - 8000960: 61bb str r3, [r7, #24] + 80009c0: 69fb ldr r3, [r7, #28] + 80009c2: f1c3 0307 rsb r3, r3, #7 + 80009c6: 2b04 cmp r3, #4 + 80009c8: bf28 it cs + 80009ca: 2304 movcs r3, #4 + 80009cc: 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)); - 8000962: 69fb ldr r3, [r7, #28] - 8000964: 3304 adds r3, #4 - 8000966: 2b06 cmp r3, #6 - 8000968: d902 bls.n 8000970 - 800096a: 69fb ldr r3, [r7, #28] - 800096c: 3b03 subs r3, #3 - 800096e: e000 b.n 8000972 - 8000970: 2300 movs r3, #0 - 8000972: 617b str r3, [r7, #20] + 80009ce: 69fb ldr r3, [r7, #28] + 80009d0: 3304 adds r3, #4 + 80009d2: 2b06 cmp r3, #6 + 80009d4: d902 bls.n 80009dc + 80009d6: 69fb ldr r3, [r7, #28] + 80009d8: 3b03 subs r3, #3 + 80009da: e000 b.n 80009de + 80009dc: 2300 movs r3, #0 + 80009de: 617b str r3, [r7, #20] return ( ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | - 8000974: f04f 32ff mov.w r2, #4294967295 - 8000978: 69bb ldr r3, [r7, #24] - 800097a: fa02 f303 lsl.w r3, r2, r3 - 800097e: 43da mvns r2, r3 - 8000980: 68bb ldr r3, [r7, #8] - 8000982: 401a ands r2, r3 - 8000984: 697b ldr r3, [r7, #20] - 8000986: 409a lsls r2, r3 + 80009e0: f04f 32ff mov.w r2, #4294967295 + 80009e4: 69bb ldr r3, [r7, #24] + 80009e6: fa02 f303 lsl.w r3, r2, r3 + 80009ea: 43da mvns r2, r3 + 80009ec: 68bb ldr r3, [r7, #8] + 80009ee: 401a ands r2, r3 + 80009f0: 697b ldr r3, [r7, #20] + 80009f2: 409a lsls r2, r3 ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL))) - 8000988: f04f 31ff mov.w r1, #4294967295 - 800098c: 697b ldr r3, [r7, #20] - 800098e: fa01 f303 lsl.w r3, r1, r3 - 8000992: 43d9 mvns r1, r3 - 8000994: 687b ldr r3, [r7, #4] - 8000996: 400b ands r3, r1 + 80009f4: f04f 31ff mov.w r1, #4294967295 + 80009f8: 697b ldr r3, [r7, #20] + 80009fa: fa01 f303 lsl.w r3, r1, r3 + 80009fe: 43d9 mvns r1, r3 + 8000a00: 687b ldr r3, [r7, #4] + 8000a02: 400b ands r3, r1 ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | - 8000998: 4313 orrs r3, r2 + 8000a04: 4313 orrs r3, r2 ); } - 800099a: 4618 mov r0, r3 - 800099c: 3724 adds r7, #36 ; 0x24 - 800099e: 46bd mov sp, r7 - 80009a0: bc80 pop {r7} - 80009a2: 4770 bx lr + 8000a06: 4618 mov r0, r3 + 8000a08: 3724 adds r7, #36 ; 0x24 + 8000a0a: 46bd mov sp, r7 + 8000a0c: bc80 pop {r7} + 8000a0e: 4770 bx lr -080009a4 : +08000a10 : \note When the variable __Vendor_SysTickConfig is set to 1, then the function SysTick_Config is not included. In this case, the file device.h must contain a vendor-specific implementation of this function. */ __STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) { - 80009a4: b580 push {r7, lr} - 80009a6: b082 sub sp, #8 - 80009a8: af00 add r7, sp, #0 - 80009aa: 6078 str r0, [r7, #4] + 8000a10: b580 push {r7, lr} + 8000a12: b082 sub sp, #8 + 8000a14: af00 add r7, sp, #0 + 8000a16: 6078 str r0, [r7, #4] if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) - 80009ac: 687b ldr r3, [r7, #4] - 80009ae: 3b01 subs r3, #1 - 80009b0: f1b3 7f80 cmp.w r3, #16777216 ; 0x1000000 - 80009b4: d301 bcc.n 80009ba + 8000a18: 687b ldr r3, [r7, #4] + 8000a1a: 3b01 subs r3, #1 + 8000a1c: f1b3 7f80 cmp.w r3, #16777216 ; 0x1000000 + 8000a20: d301 bcc.n 8000a26 { return (1UL); /* Reload value impossible */ - 80009b6: 2301 movs r3, #1 - 80009b8: e00f b.n 80009da + 8000a22: 2301 movs r3, #1 + 8000a24: e00f b.n 8000a46 } SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ - 80009ba: 4a0a ldr r2, [pc, #40] ; (80009e4 ) - 80009bc: 687b ldr r3, [r7, #4] - 80009be: 3b01 subs r3, #1 - 80009c0: 6053 str r3, [r2, #4] + 8000a26: 4a0a ldr r2, [pc, #40] ; (8000a50 ) + 8000a28: 687b ldr r3, [r7, #4] + 8000a2a: 3b01 subs r3, #1 + 8000a2c: 6053 str r3, [r2, #4] NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ - 80009c2: 210f movs r1, #15 - 80009c4: f04f 30ff mov.w r0, #4294967295 - 80009c8: f7ff ff90 bl 80008ec <__NVIC_SetPriority> + 8000a2e: 210f movs r1, #15 + 8000a30: f04f 30ff mov.w r0, #4294967295 + 8000a34: f7ff ff90 bl 8000958 <__NVIC_SetPriority> SysTick->VAL = 0UL; /* Load the SysTick Counter Value */ - 80009cc: 4b05 ldr r3, [pc, #20] ; (80009e4 ) - 80009ce: 2200 movs r2, #0 - 80009d0: 609a str r2, [r3, #8] + 8000a38: 4b05 ldr r3, [pc, #20] ; (8000a50 ) + 8000a3a: 2200 movs r2, #0 + 8000a3c: 609a str r2, [r3, #8] SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | - 80009d2: 4b04 ldr r3, [pc, #16] ; (80009e4 ) - 80009d4: 2207 movs r2, #7 - 80009d6: 601a str r2, [r3, #0] + 8000a3e: 4b04 ldr r3, [pc, #16] ; (8000a50 ) + 8000a40: 2207 movs r2, #7 + 8000a42: 601a str r2, [r3, #0] SysTick_CTRL_TICKINT_Msk | SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ return (0UL); /* Function successful */ - 80009d8: 2300 movs r3, #0 + 8000a44: 2300 movs r3, #0 } - 80009da: 4618 mov r0, r3 - 80009dc: 3708 adds r7, #8 - 80009de: 46bd mov sp, r7 - 80009e0: bd80 pop {r7, pc} - 80009e2: bf00 nop - 80009e4: e000e010 .word 0xe000e010 + 8000a46: 4618 mov r0, r3 + 8000a48: 3708 adds r7, #8 + 8000a4a: 46bd mov sp, r7 + 8000a4c: bd80 pop {r7, pc} + 8000a4e: bf00 nop + 8000a50: e000e010 .word 0xe000e010 -080009e8 : +08000a54 : * @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) { - 80009e8: b580 push {r7, lr} - 80009ea: b082 sub sp, #8 - 80009ec: af00 add r7, sp, #0 - 80009ee: 6078 str r0, [r7, #4] + 8000a54: b580 push {r7, lr} + 8000a56: b082 sub sp, #8 + 8000a58: af00 add r7, sp, #0 + 8000a5a: 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); - 80009f0: 6878 ldr r0, [r7, #4] - 80009f2: f7ff ff49 bl 8000888 <__NVIC_SetPriorityGrouping> + 8000a5c: 6878 ldr r0, [r7, #4] + 8000a5e: f7ff ff49 bl 80008f4 <__NVIC_SetPriorityGrouping> } - 80009f6: bf00 nop - 80009f8: 3708 adds r7, #8 - 80009fa: 46bd mov sp, r7 - 80009fc: bd80 pop {r7, pc} + 8000a62: bf00 nop + 8000a64: 3708 adds r7, #8 + 8000a66: 46bd mov sp, r7 + 8000a68: bd80 pop {r7, pc} -080009fe : +08000a6a : * 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) { - 80009fe: b580 push {r7, lr} - 8000a00: b086 sub sp, #24 - 8000a02: af00 add r7, sp, #0 - 8000a04: 4603 mov r3, r0 - 8000a06: 60b9 str r1, [r7, #8] - 8000a08: 607a str r2, [r7, #4] - 8000a0a: 73fb strb r3, [r7, #15] + 8000a6a: b580 push {r7, lr} + 8000a6c: b086 sub sp, #24 + 8000a6e: af00 add r7, sp, #0 + 8000a70: 4603 mov r3, r0 + 8000a72: 60b9 str r1, [r7, #8] + 8000a74: 607a str r2, [r7, #4] + 8000a76: 73fb strb r3, [r7, #15] uint32_t prioritygroup = 0x00U; - 8000a0c: 2300 movs r3, #0 - 8000a0e: 617b str r3, [r7, #20] + 8000a78: 2300 movs r3, #0 + 8000a7a: 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(); - 8000a10: f7ff ff5e bl 80008d0 <__NVIC_GetPriorityGrouping> - 8000a14: 6178 str r0, [r7, #20] + 8000a7c: f7ff ff5e bl 800093c <__NVIC_GetPriorityGrouping> + 8000a80: 6178 str r0, [r7, #20] NVIC_SetPriority(IRQn, NVIC_EncodePriority(prioritygroup, PreemptPriority, SubPriority)); - 8000a16: 687a ldr r2, [r7, #4] - 8000a18: 68b9 ldr r1, [r7, #8] - 8000a1a: 6978 ldr r0, [r7, #20] - 8000a1c: f7ff ff90 bl 8000940 - 8000a20: 4602 mov r2, r0 - 8000a22: f997 300f ldrsb.w r3, [r7, #15] - 8000a26: 4611 mov r1, r2 - 8000a28: 4618 mov r0, r3 - 8000a2a: f7ff ff5f bl 80008ec <__NVIC_SetPriority> + 8000a82: 687a ldr r2, [r7, #4] + 8000a84: 68b9 ldr r1, [r7, #8] + 8000a86: 6978 ldr r0, [r7, #20] + 8000a88: f7ff ff90 bl 80009ac + 8000a8c: 4602 mov r2, r0 + 8000a8e: f997 300f ldrsb.w r3, [r7, #15] + 8000a92: 4611 mov r1, r2 + 8000a94: 4618 mov r0, r3 + 8000a96: f7ff ff5f bl 8000958 <__NVIC_SetPriority> } - 8000a2e: bf00 nop - 8000a30: 3718 adds r7, #24 - 8000a32: 46bd mov sp, r7 - 8000a34: bd80 pop {r7, pc} + 8000a9a: bf00 nop + 8000a9c: 3718 adds r7, #24 + 8000a9e: 46bd mov sp, r7 + 8000aa0: bd80 pop {r7, pc} -08000a36 : +08000aa2 : * @param TicksNumb: Specifies the ticks Number of ticks between two interrupts. * @retval status: - 0 Function succeeded. * - 1 Function failed. */ uint32_t HAL_SYSTICK_Config(uint32_t TicksNumb) { - 8000a36: b580 push {r7, lr} - 8000a38: b082 sub sp, #8 - 8000a3a: af00 add r7, sp, #0 - 8000a3c: 6078 str r0, [r7, #4] + 8000aa2: b580 push {r7, lr} + 8000aa4: b082 sub sp, #8 + 8000aa6: af00 add r7, sp, #0 + 8000aa8: 6078 str r0, [r7, #4] return SysTick_Config(TicksNumb); - 8000a3e: 6878 ldr r0, [r7, #4] - 8000a40: f7ff ffb0 bl 80009a4 - 8000a44: 4603 mov r3, r0 + 8000aaa: 6878 ldr r0, [r7, #4] + 8000aac: f7ff ffb0 bl 8000a10 + 8000ab0: 4603 mov r3, r0 } - 8000a46: 4618 mov r0, r3 - 8000a48: 3708 adds r7, #8 - 8000a4a: 46bd mov sp, r7 - 8000a4c: bd80 pop {r7, pc} + 8000ab2: 4618 mov r0, r3 + 8000ab4: 3708 adds r7, #8 + 8000ab6: 46bd mov sp, r7 + 8000ab8: bd80 pop {r7, pc} ... -08000a50 : +08000abc : * @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) { - 8000a50: b480 push {r7} - 8000a52: b08b sub sp, #44 ; 0x2c - 8000a54: af00 add r7, sp, #0 - 8000a56: 6078 str r0, [r7, #4] - 8000a58: 6039 str r1, [r7, #0] + 8000abc: b480 push {r7} + 8000abe: b08b sub sp, #44 ; 0x2c + 8000ac0: af00 add r7, sp, #0 + 8000ac2: 6078 str r0, [r7, #4] + 8000ac4: 6039 str r1, [r7, #0] uint32_t position = 0x00u; - 8000a5a: 2300 movs r3, #0 - 8000a5c: 627b str r3, [r7, #36] ; 0x24 + 8000ac6: 2300 movs r3, #0 + 8000ac8: 627b str r3, [r7, #36] ; 0x24 uint32_t ioposition; uint32_t iocurrent; uint32_t temp; uint32_t config = 0x00u; - 8000a5e: 2300 movs r3, #0 - 8000a60: 623b str r3, [r7, #32] + 8000aca: 2300 movs r3, #0 + 8000acc: 623b str r3, [r7, #32] assert_param(IS_GPIO_ALL_INSTANCE(GPIOx)); assert_param(IS_GPIO_PIN(GPIO_Init->Pin)); assert_param(IS_GPIO_MODE(GPIO_Init->Mode)); /* Configure the port pins */ while (((GPIO_Init->Pin) >> position) != 0x00u) - 8000a62: e179 b.n 8000d58 + 8000ace: e179 b.n 8000dc4 { /* Get the IO position */ ioposition = (0x01uL << position); - 8000a64: 2201 movs r2, #1 - 8000a66: 6a7b ldr r3, [r7, #36] ; 0x24 - 8000a68: fa02 f303 lsl.w r3, r2, r3 - 8000a6c: 61fb str r3, [r7, #28] + 8000ad0: 2201 movs r2, #1 + 8000ad2: 6a7b ldr r3, [r7, #36] ; 0x24 + 8000ad4: fa02 f303 lsl.w r3, r2, r3 + 8000ad8: 61fb str r3, [r7, #28] /* Get the current IO position */ iocurrent = (uint32_t)(GPIO_Init->Pin) & ioposition; - 8000a6e: 683b ldr r3, [r7, #0] - 8000a70: 681b ldr r3, [r3, #0] - 8000a72: 69fa ldr r2, [r7, #28] - 8000a74: 4013 ands r3, r2 - 8000a76: 61bb str r3, [r7, #24] + 8000ada: 683b ldr r3, [r7, #0] + 8000adc: 681b ldr r3, [r3, #0] + 8000ade: 69fa ldr r2, [r7, #28] + 8000ae0: 4013 ands r3, r2 + 8000ae2: 61bb str r3, [r7, #24] if (iocurrent == ioposition) - 8000a78: 69ba ldr r2, [r7, #24] - 8000a7a: 69fb ldr r3, [r7, #28] - 8000a7c: 429a cmp r2, r3 - 8000a7e: f040 8168 bne.w 8000d52 + 8000ae4: 69ba ldr r2, [r7, #24] + 8000ae6: 69fb ldr r3, [r7, #28] + 8000ae8: 429a cmp r2, r3 + 8000aea: f040 8168 bne.w 8000dbe { /* Check the Alternate function parameters */ assert_param(IS_GPIO_AF_INSTANCE(GPIOx)); /* Based on the required mode, filling config variable with MODEy[1:0] and CNFy[3:2] corresponding bits */ switch (GPIO_Init->Mode) - 8000a82: 683b ldr r3, [r7, #0] - 8000a84: 685b ldr r3, [r3, #4] - 8000a86: 4aa0 ldr r2, [pc, #640] ; (8000d08 ) - 8000a88: 4293 cmp r3, r2 - 8000a8a: d05e beq.n 8000b4a - 8000a8c: 4a9e ldr r2, [pc, #632] ; (8000d08 ) - 8000a8e: 4293 cmp r3, r2 - 8000a90: d875 bhi.n 8000b7e - 8000a92: 4a9e ldr r2, [pc, #632] ; (8000d0c ) - 8000a94: 4293 cmp r3, r2 - 8000a96: d058 beq.n 8000b4a - 8000a98: 4a9c ldr r2, [pc, #624] ; (8000d0c ) - 8000a9a: 4293 cmp r3, r2 - 8000a9c: d86f bhi.n 8000b7e - 8000a9e: 4a9c ldr r2, [pc, #624] ; (8000d10 ) - 8000aa0: 4293 cmp r3, r2 - 8000aa2: d052 beq.n 8000b4a - 8000aa4: 4a9a ldr r2, [pc, #616] ; (8000d10 ) - 8000aa6: 4293 cmp r3, r2 - 8000aa8: d869 bhi.n 8000b7e - 8000aaa: 4a9a ldr r2, [pc, #616] ; (8000d14 ) - 8000aac: 4293 cmp r3, r2 - 8000aae: d04c beq.n 8000b4a - 8000ab0: 4a98 ldr r2, [pc, #608] ; (8000d14 ) - 8000ab2: 4293 cmp r3, r2 - 8000ab4: d863 bhi.n 8000b7e - 8000ab6: 4a98 ldr r2, [pc, #608] ; (8000d18 ) - 8000ab8: 4293 cmp r3, r2 - 8000aba: d046 beq.n 8000b4a - 8000abc: 4a96 ldr r2, [pc, #600] ; (8000d18 ) - 8000abe: 4293 cmp r3, r2 - 8000ac0: d85d bhi.n 8000b7e - 8000ac2: 2b12 cmp r3, #18 - 8000ac4: d82a bhi.n 8000b1c - 8000ac6: 2b12 cmp r3, #18 - 8000ac8: d859 bhi.n 8000b7e - 8000aca: a201 add r2, pc, #4 ; (adr r2, 8000ad0 ) - 8000acc: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 8000ad0: 08000b4b .word 0x08000b4b - 8000ad4: 08000b25 .word 0x08000b25 - 8000ad8: 08000b37 .word 0x08000b37 - 8000adc: 08000b79 .word 0x08000b79 - 8000ae0: 08000b7f .word 0x08000b7f - 8000ae4: 08000b7f .word 0x08000b7f - 8000ae8: 08000b7f .word 0x08000b7f - 8000aec: 08000b7f .word 0x08000b7f - 8000af0: 08000b7f .word 0x08000b7f - 8000af4: 08000b7f .word 0x08000b7f - 8000af8: 08000b7f .word 0x08000b7f - 8000afc: 08000b7f .word 0x08000b7f - 8000b00: 08000b7f .word 0x08000b7f - 8000b04: 08000b7f .word 0x08000b7f - 8000b08: 08000b7f .word 0x08000b7f - 8000b0c: 08000b7f .word 0x08000b7f - 8000b10: 08000b7f .word 0x08000b7f - 8000b14: 08000b2d .word 0x08000b2d - 8000b18: 08000b41 .word 0x08000b41 - 8000b1c: 4a7f ldr r2, [pc, #508] ; (8000d1c ) + 8000aee: 683b ldr r3, [r7, #0] + 8000af0: 685b ldr r3, [r3, #4] + 8000af2: 4aa0 ldr r2, [pc, #640] ; (8000d74 ) + 8000af4: 4293 cmp r3, r2 + 8000af6: d05e beq.n 8000bb6 + 8000af8: 4a9e ldr r2, [pc, #632] ; (8000d74 ) + 8000afa: 4293 cmp r3, r2 + 8000afc: d875 bhi.n 8000bea + 8000afe: 4a9e ldr r2, [pc, #632] ; (8000d78 ) + 8000b00: 4293 cmp r3, r2 + 8000b02: d058 beq.n 8000bb6 + 8000b04: 4a9c ldr r2, [pc, #624] ; (8000d78 ) + 8000b06: 4293 cmp r3, r2 + 8000b08: d86f bhi.n 8000bea + 8000b0a: 4a9c ldr r2, [pc, #624] ; (8000d7c ) + 8000b0c: 4293 cmp r3, r2 + 8000b0e: d052 beq.n 8000bb6 + 8000b10: 4a9a ldr r2, [pc, #616] ; (8000d7c ) + 8000b12: 4293 cmp r3, r2 + 8000b14: d869 bhi.n 8000bea + 8000b16: 4a9a ldr r2, [pc, #616] ; (8000d80 ) + 8000b18: 4293 cmp r3, r2 + 8000b1a: d04c beq.n 8000bb6 + 8000b1c: 4a98 ldr r2, [pc, #608] ; (8000d80 ) 8000b1e: 4293 cmp r3, r2 - 8000b20: d013 beq.n 8000b4a + 8000b20: d863 bhi.n 8000bea + 8000b22: 4a98 ldr r2, [pc, #608] ; (8000d84 ) + 8000b24: 4293 cmp r3, r2 + 8000b26: d046 beq.n 8000bb6 + 8000b28: 4a96 ldr r2, [pc, #600] ; (8000d84 ) + 8000b2a: 4293 cmp r3, r2 + 8000b2c: d85d bhi.n 8000bea + 8000b2e: 2b12 cmp r3, #18 + 8000b30: d82a bhi.n 8000b88 + 8000b32: 2b12 cmp r3, #18 + 8000b34: d859 bhi.n 8000bea + 8000b36: a201 add r2, pc, #4 ; (adr r2, 8000b3c ) + 8000b38: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 8000b3c: 08000bb7 .word 0x08000bb7 + 8000b40: 08000b91 .word 0x08000b91 + 8000b44: 08000ba3 .word 0x08000ba3 + 8000b48: 08000be5 .word 0x08000be5 + 8000b4c: 08000beb .word 0x08000beb + 8000b50: 08000beb .word 0x08000beb + 8000b54: 08000beb .word 0x08000beb + 8000b58: 08000beb .word 0x08000beb + 8000b5c: 08000beb .word 0x08000beb + 8000b60: 08000beb .word 0x08000beb + 8000b64: 08000beb .word 0x08000beb + 8000b68: 08000beb .word 0x08000beb + 8000b6c: 08000beb .word 0x08000beb + 8000b70: 08000beb .word 0x08000beb + 8000b74: 08000beb .word 0x08000beb + 8000b78: 08000beb .word 0x08000beb + 8000b7c: 08000beb .word 0x08000beb + 8000b80: 08000b99 .word 0x08000b99 + 8000b84: 08000bad .word 0x08000bad + 8000b88: 4a7f ldr r2, [pc, #508] ; (8000d88 ) + 8000b8a: 4293 cmp r3, r2 + 8000b8c: d013 beq.n 8000bb6 config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_ANALOG; break; /* Parameters are checked with assert_param */ default: break; - 8000b22: e02c b.n 8000b7e + 8000b8e: e02c b.n 8000bea config = GPIO_Init->Speed + GPIO_CR_CNF_GP_OUTPUT_PP; - 8000b24: 683b ldr r3, [r7, #0] - 8000b26: 68db ldr r3, [r3, #12] - 8000b28: 623b str r3, [r7, #32] + 8000b90: 683b ldr r3, [r7, #0] + 8000b92: 68db ldr r3, [r3, #12] + 8000b94: 623b str r3, [r7, #32] break; - 8000b2a: e029 b.n 8000b80 + 8000b96: e029 b.n 8000bec config = GPIO_Init->Speed + GPIO_CR_CNF_GP_OUTPUT_OD; - 8000b2c: 683b ldr r3, [r7, #0] - 8000b2e: 68db ldr r3, [r3, #12] - 8000b30: 3304 adds r3, #4 - 8000b32: 623b str r3, [r7, #32] + 8000b98: 683b ldr r3, [r7, #0] + 8000b9a: 68db ldr r3, [r3, #12] + 8000b9c: 3304 adds r3, #4 + 8000b9e: 623b str r3, [r7, #32] break; - 8000b34: e024 b.n 8000b80 + 8000ba0: e024 b.n 8000bec config = GPIO_Init->Speed + GPIO_CR_CNF_AF_OUTPUT_PP; - 8000b36: 683b ldr r3, [r7, #0] - 8000b38: 68db ldr r3, [r3, #12] - 8000b3a: 3308 adds r3, #8 - 8000b3c: 623b str r3, [r7, #32] + 8000ba2: 683b ldr r3, [r7, #0] + 8000ba4: 68db ldr r3, [r3, #12] + 8000ba6: 3308 adds r3, #8 + 8000ba8: 623b str r3, [r7, #32] break; - 8000b3e: e01f b.n 8000b80 + 8000baa: e01f b.n 8000bec config = GPIO_Init->Speed + GPIO_CR_CNF_AF_OUTPUT_OD; - 8000b40: 683b ldr r3, [r7, #0] - 8000b42: 68db ldr r3, [r3, #12] - 8000b44: 330c adds r3, #12 - 8000b46: 623b str r3, [r7, #32] + 8000bac: 683b ldr r3, [r7, #0] + 8000bae: 68db ldr r3, [r3, #12] + 8000bb0: 330c adds r3, #12 + 8000bb2: 623b str r3, [r7, #32] break; - 8000b48: e01a b.n 8000b80 + 8000bb4: e01a b.n 8000bec if (GPIO_Init->Pull == GPIO_NOPULL) - 8000b4a: 683b ldr r3, [r7, #0] - 8000b4c: 689b ldr r3, [r3, #8] - 8000b4e: 2b00 cmp r3, #0 - 8000b50: d102 bne.n 8000b58 + 8000bb6: 683b ldr r3, [r7, #0] + 8000bb8: 689b ldr r3, [r3, #8] + 8000bba: 2b00 cmp r3, #0 + 8000bbc: d102 bne.n 8000bc4 config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_INPUT_FLOATING; - 8000b52: 2304 movs r3, #4 - 8000b54: 623b str r3, [r7, #32] + 8000bbe: 2304 movs r3, #4 + 8000bc0: 623b str r3, [r7, #32] break; - 8000b56: e013 b.n 8000b80 + 8000bc2: e013 b.n 8000bec else if (GPIO_Init->Pull == GPIO_PULLUP) - 8000b58: 683b ldr r3, [r7, #0] - 8000b5a: 689b ldr r3, [r3, #8] - 8000b5c: 2b01 cmp r3, #1 - 8000b5e: d105 bne.n 8000b6c + 8000bc4: 683b ldr r3, [r7, #0] + 8000bc6: 689b ldr r3, [r3, #8] + 8000bc8: 2b01 cmp r3, #1 + 8000bca: d105 bne.n 8000bd8 config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_INPUT_PU_PD; - 8000b60: 2308 movs r3, #8 - 8000b62: 623b str r3, [r7, #32] + 8000bcc: 2308 movs r3, #8 + 8000bce: 623b str r3, [r7, #32] GPIOx->BSRR = ioposition; - 8000b64: 687b ldr r3, [r7, #4] - 8000b66: 69fa ldr r2, [r7, #28] - 8000b68: 611a str r2, [r3, #16] + 8000bd0: 687b ldr r3, [r7, #4] + 8000bd2: 69fa ldr r2, [r7, #28] + 8000bd4: 611a str r2, [r3, #16] break; - 8000b6a: e009 b.n 8000b80 + 8000bd6: e009 b.n 8000bec config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_INPUT_PU_PD; - 8000b6c: 2308 movs r3, #8 - 8000b6e: 623b str r3, [r7, #32] + 8000bd8: 2308 movs r3, #8 + 8000bda: 623b str r3, [r7, #32] GPIOx->BRR = ioposition; - 8000b70: 687b ldr r3, [r7, #4] - 8000b72: 69fa ldr r2, [r7, #28] - 8000b74: 615a str r2, [r3, #20] + 8000bdc: 687b ldr r3, [r7, #4] + 8000bde: 69fa ldr r2, [r7, #28] + 8000be0: 615a str r2, [r3, #20] break; - 8000b76: e003 b.n 8000b80 + 8000be2: e003 b.n 8000bec config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_ANALOG; - 8000b78: 2300 movs r3, #0 - 8000b7a: 623b str r3, [r7, #32] + 8000be4: 2300 movs r3, #0 + 8000be6: 623b str r3, [r7, #32] break; - 8000b7c: e000 b.n 8000b80 + 8000be8: e000 b.n 8000bec break; - 8000b7e: bf00 nop + 8000bea: bf00 nop } /* Check if the current bit belongs to first half or last half of the pin count number in order to address CRH or CRL register*/ configregister = (iocurrent < GPIO_PIN_8) ? &GPIOx->CRL : &GPIOx->CRH; - 8000b80: 69bb ldr r3, [r7, #24] - 8000b82: 2bff cmp r3, #255 ; 0xff - 8000b84: d801 bhi.n 8000b8a - 8000b86: 687b ldr r3, [r7, #4] - 8000b88: e001 b.n 8000b8e - 8000b8a: 687b ldr r3, [r7, #4] - 8000b8c: 3304 adds r3, #4 - 8000b8e: 617b str r3, [r7, #20] + 8000bec: 69bb ldr r3, [r7, #24] + 8000bee: 2bff cmp r3, #255 ; 0xff + 8000bf0: d801 bhi.n 8000bf6 + 8000bf2: 687b ldr r3, [r7, #4] + 8000bf4: e001 b.n 8000bfa + 8000bf6: 687b ldr r3, [r7, #4] + 8000bf8: 3304 adds r3, #4 + 8000bfa: 617b str r3, [r7, #20] registeroffset = (iocurrent < GPIO_PIN_8) ? (position << 2u) : ((position - 8u) << 2u); - 8000b90: 69bb ldr r3, [r7, #24] - 8000b92: 2bff cmp r3, #255 ; 0xff - 8000b94: d802 bhi.n 8000b9c - 8000b96: 6a7b ldr r3, [r7, #36] ; 0x24 - 8000b98: 009b lsls r3, r3, #2 - 8000b9a: e002 b.n 8000ba2 - 8000b9c: 6a7b ldr r3, [r7, #36] ; 0x24 - 8000b9e: 3b08 subs r3, #8 - 8000ba0: 009b lsls r3, r3, #2 - 8000ba2: 613b str r3, [r7, #16] + 8000bfc: 69bb ldr r3, [r7, #24] + 8000bfe: 2bff cmp r3, #255 ; 0xff + 8000c00: d802 bhi.n 8000c08 + 8000c02: 6a7b ldr r3, [r7, #36] ; 0x24 + 8000c04: 009b lsls r3, r3, #2 + 8000c06: e002 b.n 8000c0e + 8000c08: 6a7b ldr r3, [r7, #36] ; 0x24 + 8000c0a: 3b08 subs r3, #8 + 8000c0c: 009b lsls r3, r3, #2 + 8000c0e: 613b str r3, [r7, #16] /* Apply the new configuration of the pin to the register */ MODIFY_REG((*configregister), ((GPIO_CRL_MODE0 | GPIO_CRL_CNF0) << registeroffset), (config << registeroffset)); - 8000ba4: 697b ldr r3, [r7, #20] - 8000ba6: 681a ldr r2, [r3, #0] - 8000ba8: 210f movs r1, #15 - 8000baa: 693b ldr r3, [r7, #16] - 8000bac: fa01 f303 lsl.w r3, r1, r3 - 8000bb0: 43db mvns r3, r3 - 8000bb2: 401a ands r2, r3 - 8000bb4: 6a39 ldr r1, [r7, #32] - 8000bb6: 693b ldr r3, [r7, #16] - 8000bb8: fa01 f303 lsl.w r3, r1, r3 - 8000bbc: 431a orrs r2, r3 - 8000bbe: 697b ldr r3, [r7, #20] - 8000bc0: 601a str r2, [r3, #0] + 8000c10: 697b ldr r3, [r7, #20] + 8000c12: 681a ldr r2, [r3, #0] + 8000c14: 210f movs r1, #15 + 8000c16: 693b ldr r3, [r7, #16] + 8000c18: fa01 f303 lsl.w r3, r1, r3 + 8000c1c: 43db mvns r3, r3 + 8000c1e: 401a ands r2, r3 + 8000c20: 6a39 ldr r1, [r7, #32] + 8000c22: 693b ldr r3, [r7, #16] + 8000c24: fa01 f303 lsl.w r3, r1, r3 + 8000c28: 431a orrs r2, r3 + 8000c2a: 697b ldr r3, [r7, #20] + 8000c2c: 601a str r2, [r3, #0] /*--------------------- EXTI Mode Configuration ------------------------*/ /* Configure the External Interrupt or event for the current IO */ if ((GPIO_Init->Mode & EXTI_MODE) == EXTI_MODE) - 8000bc2: 683b ldr r3, [r7, #0] - 8000bc4: 685b ldr r3, [r3, #4] - 8000bc6: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 - 8000bca: 2b00 cmp r3, #0 - 8000bcc: f000 80c1 beq.w 8000d52 + 8000c2e: 683b ldr r3, [r7, #0] + 8000c30: 685b ldr r3, [r3, #4] + 8000c32: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 + 8000c36: 2b00 cmp r3, #0 + 8000c38: f000 80c1 beq.w 8000dbe { /* Enable AFIO Clock */ __HAL_RCC_AFIO_CLK_ENABLE(); - 8000bd0: 4b53 ldr r3, [pc, #332] ; (8000d20 ) - 8000bd2: 699b ldr r3, [r3, #24] - 8000bd4: 4a52 ldr r2, [pc, #328] ; (8000d20 ) - 8000bd6: f043 0301 orr.w r3, r3, #1 - 8000bda: 6193 str r3, [r2, #24] - 8000bdc: 4b50 ldr r3, [pc, #320] ; (8000d20 ) - 8000bde: 699b ldr r3, [r3, #24] - 8000be0: f003 0301 and.w r3, r3, #1 - 8000be4: 60bb str r3, [r7, #8] - 8000be6: 68bb ldr r3, [r7, #8] + 8000c3c: 4b53 ldr r3, [pc, #332] ; (8000d8c ) + 8000c3e: 699b ldr r3, [r3, #24] + 8000c40: 4a52 ldr r2, [pc, #328] ; (8000d8c ) + 8000c42: f043 0301 orr.w r3, r3, #1 + 8000c46: 6193 str r3, [r2, #24] + 8000c48: 4b50 ldr r3, [pc, #320] ; (8000d8c ) + 8000c4a: 699b ldr r3, [r3, #24] + 8000c4c: f003 0301 and.w r3, r3, #1 + 8000c50: 60bb str r3, [r7, #8] + 8000c52: 68bb ldr r3, [r7, #8] temp = AFIO->EXTICR[position >> 2u]; - 8000be8: 4a4e ldr r2, [pc, #312] ; (8000d24 ) - 8000bea: 6a7b ldr r3, [r7, #36] ; 0x24 - 8000bec: 089b lsrs r3, r3, #2 - 8000bee: 3302 adds r3, #2 - 8000bf0: f852 3023 ldr.w r3, [r2, r3, lsl #2] - 8000bf4: 60fb str r3, [r7, #12] + 8000c54: 4a4e ldr r2, [pc, #312] ; (8000d90 ) + 8000c56: 6a7b ldr r3, [r7, #36] ; 0x24 + 8000c58: 089b lsrs r3, r3, #2 + 8000c5a: 3302 adds r3, #2 + 8000c5c: f852 3023 ldr.w r3, [r2, r3, lsl #2] + 8000c60: 60fb str r3, [r7, #12] CLEAR_BIT(temp, (0x0Fu) << (4u * (position & 0x03u))); - 8000bf6: 6a7b ldr r3, [r7, #36] ; 0x24 - 8000bf8: f003 0303 and.w r3, r3, #3 - 8000bfc: 009b lsls r3, r3, #2 - 8000bfe: 220f movs r2, #15 - 8000c00: fa02 f303 lsl.w r3, r2, r3 - 8000c04: 43db mvns r3, r3 - 8000c06: 68fa ldr r2, [r7, #12] - 8000c08: 4013 ands r3, r2 - 8000c0a: 60fb str r3, [r7, #12] + 8000c62: 6a7b ldr r3, [r7, #36] ; 0x24 + 8000c64: f003 0303 and.w r3, r3, #3 + 8000c68: 009b lsls r3, r3, #2 + 8000c6a: 220f movs r2, #15 + 8000c6c: fa02 f303 lsl.w r3, r2, r3 + 8000c70: 43db mvns r3, r3 + 8000c72: 68fa ldr r2, [r7, #12] + 8000c74: 4013 ands r3, r2 + 8000c76: 60fb str r3, [r7, #12] SET_BIT(temp, (GPIO_GET_INDEX(GPIOx)) << (4u * (position & 0x03u))); - 8000c0c: 687b ldr r3, [r7, #4] - 8000c0e: 4a46 ldr r2, [pc, #280] ; (8000d28 ) - 8000c10: 4293 cmp r3, r2 - 8000c12: d01f beq.n 8000c54 - 8000c14: 687b ldr r3, [r7, #4] - 8000c16: 4a45 ldr r2, [pc, #276] ; (8000d2c ) - 8000c18: 4293 cmp r3, r2 - 8000c1a: d019 beq.n 8000c50 - 8000c1c: 687b ldr r3, [r7, #4] - 8000c1e: 4a44 ldr r2, [pc, #272] ; (8000d30 ) - 8000c20: 4293 cmp r3, r2 - 8000c22: d013 beq.n 8000c4c - 8000c24: 687b ldr r3, [r7, #4] - 8000c26: 4a43 ldr r2, [pc, #268] ; (8000d34 ) - 8000c28: 4293 cmp r3, r2 - 8000c2a: d00d beq.n 8000c48 - 8000c2c: 687b ldr r3, [r7, #4] - 8000c2e: 4a42 ldr r2, [pc, #264] ; (8000d38 ) - 8000c30: 4293 cmp r3, r2 - 8000c32: d007 beq.n 8000c44 - 8000c34: 687b ldr r3, [r7, #4] - 8000c36: 4a41 ldr r2, [pc, #260] ; (8000d3c ) - 8000c38: 4293 cmp r3, r2 - 8000c3a: d101 bne.n 8000c40 - 8000c3c: 2305 movs r3, #5 - 8000c3e: e00a b.n 8000c56 - 8000c40: 2306 movs r3, #6 - 8000c42: e008 b.n 8000c56 - 8000c44: 2304 movs r3, #4 - 8000c46: e006 b.n 8000c56 - 8000c48: 2303 movs r3, #3 - 8000c4a: e004 b.n 8000c56 - 8000c4c: 2302 movs r3, #2 - 8000c4e: e002 b.n 8000c56 - 8000c50: 2301 movs r3, #1 - 8000c52: e000 b.n 8000c56 - 8000c54: 2300 movs r3, #0 - 8000c56: 6a7a ldr r2, [r7, #36] ; 0x24 - 8000c58: f002 0203 and.w r2, r2, #3 - 8000c5c: 0092 lsls r2, r2, #2 - 8000c5e: 4093 lsls r3, r2 - 8000c60: 68fa ldr r2, [r7, #12] - 8000c62: 4313 orrs r3, r2 - 8000c64: 60fb str r3, [r7, #12] + 8000c78: 687b ldr r3, [r7, #4] + 8000c7a: 4a46 ldr r2, [pc, #280] ; (8000d94 ) + 8000c7c: 4293 cmp r3, r2 + 8000c7e: d01f beq.n 8000cc0 + 8000c80: 687b ldr r3, [r7, #4] + 8000c82: 4a45 ldr r2, [pc, #276] ; (8000d98 ) + 8000c84: 4293 cmp r3, r2 + 8000c86: d019 beq.n 8000cbc + 8000c88: 687b ldr r3, [r7, #4] + 8000c8a: 4a44 ldr r2, [pc, #272] ; (8000d9c ) + 8000c8c: 4293 cmp r3, r2 + 8000c8e: d013 beq.n 8000cb8 + 8000c90: 687b ldr r3, [r7, #4] + 8000c92: 4a43 ldr r2, [pc, #268] ; (8000da0 ) + 8000c94: 4293 cmp r3, r2 + 8000c96: d00d beq.n 8000cb4 + 8000c98: 687b ldr r3, [r7, #4] + 8000c9a: 4a42 ldr r2, [pc, #264] ; (8000da4 ) + 8000c9c: 4293 cmp r3, r2 + 8000c9e: d007 beq.n 8000cb0 + 8000ca0: 687b ldr r3, [r7, #4] + 8000ca2: 4a41 ldr r2, [pc, #260] ; (8000da8 ) + 8000ca4: 4293 cmp r3, r2 + 8000ca6: d101 bne.n 8000cac + 8000ca8: 2305 movs r3, #5 + 8000caa: e00a b.n 8000cc2 + 8000cac: 2306 movs r3, #6 + 8000cae: e008 b.n 8000cc2 + 8000cb0: 2304 movs r3, #4 + 8000cb2: e006 b.n 8000cc2 + 8000cb4: 2303 movs r3, #3 + 8000cb6: e004 b.n 8000cc2 + 8000cb8: 2302 movs r3, #2 + 8000cba: e002 b.n 8000cc2 + 8000cbc: 2301 movs r3, #1 + 8000cbe: e000 b.n 8000cc2 + 8000cc0: 2300 movs r3, #0 + 8000cc2: 6a7a ldr r2, [r7, #36] ; 0x24 + 8000cc4: f002 0203 and.w r2, r2, #3 + 8000cc8: 0092 lsls r2, r2, #2 + 8000cca: 4093 lsls r3, r2 + 8000ccc: 68fa ldr r2, [r7, #12] + 8000cce: 4313 orrs r3, r2 + 8000cd0: 60fb str r3, [r7, #12] AFIO->EXTICR[position >> 2u] = temp; - 8000c66: 492f ldr r1, [pc, #188] ; (8000d24 ) - 8000c68: 6a7b ldr r3, [r7, #36] ; 0x24 - 8000c6a: 089b lsrs r3, r3, #2 - 8000c6c: 3302 adds r3, #2 - 8000c6e: 68fa ldr r2, [r7, #12] - 8000c70: f841 2023 str.w r2, [r1, r3, lsl #2] + 8000cd2: 492f ldr r1, [pc, #188] ; (8000d90 ) + 8000cd4: 6a7b ldr r3, [r7, #36] ; 0x24 + 8000cd6: 089b lsrs r3, r3, #2 + 8000cd8: 3302 adds r3, #2 + 8000cda: 68fa ldr r2, [r7, #12] + 8000cdc: f841 2023 str.w r2, [r1, r3, lsl #2] /* Configure the interrupt mask */ if ((GPIO_Init->Mode & GPIO_MODE_IT) == GPIO_MODE_IT) - 8000c74: 683b ldr r3, [r7, #0] - 8000c76: 685b ldr r3, [r3, #4] - 8000c78: f403 3380 and.w r3, r3, #65536 ; 0x10000 - 8000c7c: 2b00 cmp r3, #0 - 8000c7e: d006 beq.n 8000c8e + 8000ce0: 683b ldr r3, [r7, #0] + 8000ce2: 685b ldr r3, [r3, #4] + 8000ce4: f403 3380 and.w r3, r3, #65536 ; 0x10000 + 8000ce8: 2b00 cmp r3, #0 + 8000cea: d006 beq.n 8000cfa { SET_BIT(EXTI->IMR, iocurrent); - 8000c80: 4b2f ldr r3, [pc, #188] ; (8000d40 ) - 8000c82: 681a ldr r2, [r3, #0] - 8000c84: 492e ldr r1, [pc, #184] ; (8000d40 ) - 8000c86: 69bb ldr r3, [r7, #24] - 8000c88: 4313 orrs r3, r2 - 8000c8a: 600b str r3, [r1, #0] - 8000c8c: e006 b.n 8000c9c + 8000cec: 4b2f ldr r3, [pc, #188] ; (8000dac ) + 8000cee: 681a ldr r2, [r3, #0] + 8000cf0: 492e ldr r1, [pc, #184] ; (8000dac ) + 8000cf2: 69bb ldr r3, [r7, #24] + 8000cf4: 4313 orrs r3, r2 + 8000cf6: 600b str r3, [r1, #0] + 8000cf8: e006 b.n 8000d08 } else { CLEAR_BIT(EXTI->IMR, iocurrent); - 8000c8e: 4b2c ldr r3, [pc, #176] ; (8000d40 ) - 8000c90: 681a ldr r2, [r3, #0] - 8000c92: 69bb ldr r3, [r7, #24] - 8000c94: 43db mvns r3, r3 - 8000c96: 492a ldr r1, [pc, #168] ; (8000d40 ) - 8000c98: 4013 ands r3, r2 - 8000c9a: 600b str r3, [r1, #0] + 8000cfa: 4b2c ldr r3, [pc, #176] ; (8000dac ) + 8000cfc: 681a ldr r2, [r3, #0] + 8000cfe: 69bb ldr r3, [r7, #24] + 8000d00: 43db mvns r3, r3 + 8000d02: 492a ldr r1, [pc, #168] ; (8000dac ) + 8000d04: 4013 ands r3, r2 + 8000d06: 600b str r3, [r1, #0] } /* Configure the event mask */ if ((GPIO_Init->Mode & GPIO_MODE_EVT) == GPIO_MODE_EVT) - 8000c9c: 683b ldr r3, [r7, #0] - 8000c9e: 685b ldr r3, [r3, #4] - 8000ca0: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 8000ca4: 2b00 cmp r3, #0 - 8000ca6: d006 beq.n 8000cb6 + 8000d08: 683b ldr r3, [r7, #0] + 8000d0a: 685b ldr r3, [r3, #4] + 8000d0c: f403 3300 and.w r3, r3, #131072 ; 0x20000 + 8000d10: 2b00 cmp r3, #0 + 8000d12: d006 beq.n 8000d22 { SET_BIT(EXTI->EMR, iocurrent); - 8000ca8: 4b25 ldr r3, [pc, #148] ; (8000d40 ) - 8000caa: 685a ldr r2, [r3, #4] - 8000cac: 4924 ldr r1, [pc, #144] ; (8000d40 ) - 8000cae: 69bb ldr r3, [r7, #24] - 8000cb0: 4313 orrs r3, r2 - 8000cb2: 604b str r3, [r1, #4] - 8000cb4: e006 b.n 8000cc4 + 8000d14: 4b25 ldr r3, [pc, #148] ; (8000dac ) + 8000d16: 685a ldr r2, [r3, #4] + 8000d18: 4924 ldr r1, [pc, #144] ; (8000dac ) + 8000d1a: 69bb ldr r3, [r7, #24] + 8000d1c: 4313 orrs r3, r2 + 8000d1e: 604b str r3, [r1, #4] + 8000d20: e006 b.n 8000d30 } else { CLEAR_BIT(EXTI->EMR, iocurrent); - 8000cb6: 4b22 ldr r3, [pc, #136] ; (8000d40 ) - 8000cb8: 685a ldr r2, [r3, #4] - 8000cba: 69bb ldr r3, [r7, #24] - 8000cbc: 43db mvns r3, r3 - 8000cbe: 4920 ldr r1, [pc, #128] ; (8000d40 ) - 8000cc0: 4013 ands r3, r2 - 8000cc2: 604b str r3, [r1, #4] + 8000d22: 4b22 ldr r3, [pc, #136] ; (8000dac ) + 8000d24: 685a ldr r2, [r3, #4] + 8000d26: 69bb ldr r3, [r7, #24] + 8000d28: 43db mvns r3, r3 + 8000d2a: 4920 ldr r1, [pc, #128] ; (8000dac ) + 8000d2c: 4013 ands r3, r2 + 8000d2e: 604b str r3, [r1, #4] } /* Enable or disable the rising trigger */ if ((GPIO_Init->Mode & RISING_EDGE) == RISING_EDGE) - 8000cc4: 683b ldr r3, [r7, #0] - 8000cc6: 685b ldr r3, [r3, #4] - 8000cc8: f403 1380 and.w r3, r3, #1048576 ; 0x100000 - 8000ccc: 2b00 cmp r3, #0 - 8000cce: d006 beq.n 8000cde + 8000d30: 683b ldr r3, [r7, #0] + 8000d32: 685b ldr r3, [r3, #4] + 8000d34: f403 1380 and.w r3, r3, #1048576 ; 0x100000 + 8000d38: 2b00 cmp r3, #0 + 8000d3a: d006 beq.n 8000d4a { SET_BIT(EXTI->RTSR, iocurrent); - 8000cd0: 4b1b ldr r3, [pc, #108] ; (8000d40 ) - 8000cd2: 689a ldr r2, [r3, #8] - 8000cd4: 491a ldr r1, [pc, #104] ; (8000d40 ) - 8000cd6: 69bb ldr r3, [r7, #24] - 8000cd8: 4313 orrs r3, r2 - 8000cda: 608b str r3, [r1, #8] - 8000cdc: e006 b.n 8000cec + 8000d3c: 4b1b ldr r3, [pc, #108] ; (8000dac ) + 8000d3e: 689a ldr r2, [r3, #8] + 8000d40: 491a ldr r1, [pc, #104] ; (8000dac ) + 8000d42: 69bb ldr r3, [r7, #24] + 8000d44: 4313 orrs r3, r2 + 8000d46: 608b str r3, [r1, #8] + 8000d48: e006 b.n 8000d58 } else { CLEAR_BIT(EXTI->RTSR, iocurrent); - 8000cde: 4b18 ldr r3, [pc, #96] ; (8000d40 ) - 8000ce0: 689a ldr r2, [r3, #8] - 8000ce2: 69bb ldr r3, [r7, #24] - 8000ce4: 43db mvns r3, r3 - 8000ce6: 4916 ldr r1, [pc, #88] ; (8000d40 ) - 8000ce8: 4013 ands r3, r2 - 8000cea: 608b str r3, [r1, #8] + 8000d4a: 4b18 ldr r3, [pc, #96] ; (8000dac ) + 8000d4c: 689a ldr r2, [r3, #8] + 8000d4e: 69bb ldr r3, [r7, #24] + 8000d50: 43db mvns r3, r3 + 8000d52: 4916 ldr r1, [pc, #88] ; (8000dac ) + 8000d54: 4013 ands r3, r2 + 8000d56: 608b str r3, [r1, #8] } /* Enable or disable the falling trigger */ if ((GPIO_Init->Mode & FALLING_EDGE) == FALLING_EDGE) - 8000cec: 683b ldr r3, [r7, #0] - 8000cee: 685b ldr r3, [r3, #4] - 8000cf0: f403 1300 and.w r3, r3, #2097152 ; 0x200000 - 8000cf4: 2b00 cmp r3, #0 - 8000cf6: d025 beq.n 8000d44 + 8000d58: 683b ldr r3, [r7, #0] + 8000d5a: 685b ldr r3, [r3, #4] + 8000d5c: f403 1300 and.w r3, r3, #2097152 ; 0x200000 + 8000d60: 2b00 cmp r3, #0 + 8000d62: d025 beq.n 8000db0 { SET_BIT(EXTI->FTSR, iocurrent); - 8000cf8: 4b11 ldr r3, [pc, #68] ; (8000d40 ) - 8000cfa: 68da ldr r2, [r3, #12] - 8000cfc: 4910 ldr r1, [pc, #64] ; (8000d40 ) - 8000cfe: 69bb ldr r3, [r7, #24] - 8000d00: 4313 orrs r3, r2 - 8000d02: 60cb str r3, [r1, #12] - 8000d04: e025 b.n 8000d52 - 8000d06: bf00 nop - 8000d08: 10320000 .word 0x10320000 - 8000d0c: 10310000 .word 0x10310000 - 8000d10: 10220000 .word 0x10220000 - 8000d14: 10210000 .word 0x10210000 - 8000d18: 10120000 .word 0x10120000 - 8000d1c: 10110000 .word 0x10110000 - 8000d20: 40021000 .word 0x40021000 - 8000d24: 40010000 .word 0x40010000 - 8000d28: 40010800 .word 0x40010800 - 8000d2c: 40010c00 .word 0x40010c00 - 8000d30: 40011000 .word 0x40011000 - 8000d34: 40011400 .word 0x40011400 - 8000d38: 40011800 .word 0x40011800 - 8000d3c: 40011c00 .word 0x40011c00 - 8000d40: 40010400 .word 0x40010400 + 8000d64: 4b11 ldr r3, [pc, #68] ; (8000dac ) + 8000d66: 68da ldr r2, [r3, #12] + 8000d68: 4910 ldr r1, [pc, #64] ; (8000dac ) + 8000d6a: 69bb ldr r3, [r7, #24] + 8000d6c: 4313 orrs r3, r2 + 8000d6e: 60cb str r3, [r1, #12] + 8000d70: e025 b.n 8000dbe + 8000d72: bf00 nop + 8000d74: 10320000 .word 0x10320000 + 8000d78: 10310000 .word 0x10310000 + 8000d7c: 10220000 .word 0x10220000 + 8000d80: 10210000 .word 0x10210000 + 8000d84: 10120000 .word 0x10120000 + 8000d88: 10110000 .word 0x10110000 + 8000d8c: 40021000 .word 0x40021000 + 8000d90: 40010000 .word 0x40010000 + 8000d94: 40010800 .word 0x40010800 + 8000d98: 40010c00 .word 0x40010c00 + 8000d9c: 40011000 .word 0x40011000 + 8000da0: 40011400 .word 0x40011400 + 8000da4: 40011800 .word 0x40011800 + 8000da8: 40011c00 .word 0x40011c00 + 8000dac: 40010400 .word 0x40010400 } else { CLEAR_BIT(EXTI->FTSR, iocurrent); - 8000d44: 4b0b ldr r3, [pc, #44] ; (8000d74 ) - 8000d46: 68da ldr r2, [r3, #12] - 8000d48: 69bb ldr r3, [r7, #24] - 8000d4a: 43db mvns r3, r3 - 8000d4c: 4909 ldr r1, [pc, #36] ; (8000d74 ) - 8000d4e: 4013 ands r3, r2 - 8000d50: 60cb str r3, [r1, #12] + 8000db0: 4b0b ldr r3, [pc, #44] ; (8000de0 ) + 8000db2: 68da ldr r2, [r3, #12] + 8000db4: 69bb ldr r3, [r7, #24] + 8000db6: 43db mvns r3, r3 + 8000db8: 4909 ldr r1, [pc, #36] ; (8000de0 ) + 8000dba: 4013 ands r3, r2 + 8000dbc: 60cb str r3, [r1, #12] } } } position++; - 8000d52: 6a7b ldr r3, [r7, #36] ; 0x24 - 8000d54: 3301 adds r3, #1 - 8000d56: 627b str r3, [r7, #36] ; 0x24 + 8000dbe: 6a7b ldr r3, [r7, #36] ; 0x24 + 8000dc0: 3301 adds r3, #1 + 8000dc2: 627b str r3, [r7, #36] ; 0x24 while (((GPIO_Init->Pin) >> position) != 0x00u) - 8000d58: 683b ldr r3, [r7, #0] - 8000d5a: 681a ldr r2, [r3, #0] - 8000d5c: 6a7b ldr r3, [r7, #36] ; 0x24 - 8000d5e: fa22 f303 lsr.w r3, r2, r3 - 8000d62: 2b00 cmp r3, #0 - 8000d64: f47f ae7e bne.w 8000a64 + 8000dc4: 683b ldr r3, [r7, #0] + 8000dc6: 681a ldr r2, [r3, #0] + 8000dc8: 6a7b ldr r3, [r7, #36] ; 0x24 + 8000dca: fa22 f303 lsr.w r3, r2, r3 + 8000dce: 2b00 cmp r3, #0 + 8000dd0: f47f ae7e bne.w 8000ad0 } } - 8000d68: bf00 nop - 8000d6a: bf00 nop - 8000d6c: 372c adds r7, #44 ; 0x2c - 8000d6e: 46bd mov sp, r7 - 8000d70: bc80 pop {r7} - 8000d72: 4770 bx lr - 8000d74: 40010400 .word 0x40010400 + 8000dd4: bf00 nop + 8000dd6: bf00 nop + 8000dd8: 372c adds r7, #44 ; 0x2c + 8000dda: 46bd mov sp, r7 + 8000ddc: bc80 pop {r7} + 8000dde: 4770 bx lr + 8000de0: 40010400 .word 0x40010400 -08000d78 : +08000de4 : * @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) { - 8000d78: b480 push {r7} - 8000d7a: b083 sub sp, #12 - 8000d7c: af00 add r7, sp, #0 - 8000d7e: 6078 str r0, [r7, #4] - 8000d80: 460b mov r3, r1 - 8000d82: 807b strh r3, [r7, #2] - 8000d84: 4613 mov r3, r2 - 8000d86: 707b strb r3, [r7, #1] + 8000de4: b480 push {r7} + 8000de6: b083 sub sp, #12 + 8000de8: af00 add r7, sp, #0 + 8000dea: 6078 str r0, [r7, #4] + 8000dec: 460b mov r3, r1 + 8000dee: 807b strh r3, [r7, #2] + 8000df0: 4613 mov r3, r2 + 8000df2: 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) - 8000d88: 787b ldrb r3, [r7, #1] - 8000d8a: 2b00 cmp r3, #0 - 8000d8c: d003 beq.n 8000d96 + 8000df4: 787b ldrb r3, [r7, #1] + 8000df6: 2b00 cmp r3, #0 + 8000df8: d003 beq.n 8000e02 { GPIOx->BSRR = GPIO_Pin; - 8000d8e: 887a ldrh r2, [r7, #2] - 8000d90: 687b ldr r3, [r7, #4] - 8000d92: 611a str r2, [r3, #16] + 8000dfa: 887a ldrh r2, [r7, #2] + 8000dfc: 687b ldr r3, [r7, #4] + 8000dfe: 611a str r2, [r3, #16] } else { GPIOx->BSRR = (uint32_t)GPIO_Pin << 16u; } } - 8000d94: e003 b.n 8000d9e + 8000e00: e003 b.n 8000e0a GPIOx->BSRR = (uint32_t)GPIO_Pin << 16u; - 8000d96: 887b ldrh r3, [r7, #2] - 8000d98: 041a lsls r2, r3, #16 - 8000d9a: 687b ldr r3, [r7, #4] - 8000d9c: 611a str r2, [r3, #16] + 8000e02: 887b ldrh r3, [r7, #2] + 8000e04: 041a lsls r2, r3, #16 + 8000e06: 687b ldr r3, [r7, #4] + 8000e08: 611a str r2, [r3, #16] } - 8000d9e: bf00 nop - 8000da0: 370c adds r7, #12 - 8000da2: 46bd mov sp, r7 - 8000da4: bc80 pop {r7} - 8000da6: 4770 bx lr + 8000e0a: bf00 nop + 8000e0c: 370c adds r7, #12 + 8000e0e: 46bd mov sp, r7 + 8000e10: bc80 pop {r7} + 8000e12: 4770 bx lr -08000da8 : +08000e14 : * supported by this macro. User should request a transition to HSE Off * first and then HSE On or HSE Bypass. * @retval HAL status */ HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct) { - 8000da8: b580 push {r7, lr} - 8000daa: b086 sub sp, #24 - 8000dac: af00 add r7, sp, #0 - 8000dae: 6078 str r0, [r7, #4] + 8000e14: b580 push {r7, lr} + 8000e16: b086 sub sp, #24 + 8000e18: af00 add r7, sp, #0 + 8000e1a: 6078 str r0, [r7, #4] uint32_t tickstart; uint32_t pll_config; /* Check Null pointer */ if (RCC_OscInitStruct == NULL) - 8000db0: 687b ldr r3, [r7, #4] - 8000db2: 2b00 cmp r3, #0 - 8000db4: d101 bne.n 8000dba + 8000e1c: 687b ldr r3, [r7, #4] + 8000e1e: 2b00 cmp r3, #0 + 8000e20: d101 bne.n 8000e26 { return HAL_ERROR; - 8000db6: 2301 movs r3, #1 - 8000db8: e26c b.n 8001294 + 8000e22: 2301 movs r3, #1 + 8000e24: e26c b.n 8001300 /* Check the parameters */ assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType)); /*------------------------------- HSE Configuration ------------------------*/ if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE) - 8000dba: 687b ldr r3, [r7, #4] - 8000dbc: 681b ldr r3, [r3, #0] - 8000dbe: f003 0301 and.w r3, r3, #1 - 8000dc2: 2b00 cmp r3, #0 - 8000dc4: f000 8087 beq.w 8000ed6 + 8000e26: 687b ldr r3, [r7, #4] + 8000e28: 681b ldr r3, [r3, #0] + 8000e2a: f003 0301 and.w r3, r3, #1 + 8000e2e: 2b00 cmp r3, #0 + 8000e30: f000 8087 beq.w 8000f42 { /* 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 it is not allowed to be disabled */ if ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_HSE) - 8000dc8: 4b92 ldr r3, [pc, #584] ; (8001014 ) - 8000dca: 685b ldr r3, [r3, #4] - 8000dcc: f003 030c and.w r3, r3, #12 - 8000dd0: 2b04 cmp r3, #4 - 8000dd2: d00c beq.n 8000dee + 8000e34: 4b92 ldr r3, [pc, #584] ; (8001080 ) + 8000e36: 685b ldr r3, [r3, #4] + 8000e38: f003 030c and.w r3, r3, #12 + 8000e3c: 2b04 cmp r3, #4 + 8000e3e: d00c beq.n 8000e5a || ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_HSE))) - 8000dd4: 4b8f ldr r3, [pc, #572] ; (8001014 ) - 8000dd6: 685b ldr r3, [r3, #4] - 8000dd8: f003 030c and.w r3, r3, #12 - 8000ddc: 2b08 cmp r3, #8 - 8000dde: d112 bne.n 8000e06 - 8000de0: 4b8c ldr r3, [pc, #560] ; (8001014 ) - 8000de2: 685b ldr r3, [r3, #4] - 8000de4: f403 3380 and.w r3, r3, #65536 ; 0x10000 - 8000de8: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 8000dec: d10b bne.n 8000e06 + 8000e40: 4b8f ldr r3, [pc, #572] ; (8001080 ) + 8000e42: 685b ldr r3, [r3, #4] + 8000e44: f003 030c and.w r3, r3, #12 + 8000e48: 2b08 cmp r3, #8 + 8000e4a: d112 bne.n 8000e72 + 8000e4c: 4b8c ldr r3, [pc, #560] ; (8001080 ) + 8000e4e: 685b ldr r3, [r3, #4] + 8000e50: f403 3380 and.w r3, r3, #65536 ; 0x10000 + 8000e54: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 + 8000e58: d10b bne.n 8000e72 { if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) - 8000dee: 4b89 ldr r3, [pc, #548] ; (8001014 ) - 8000df0: 681b ldr r3, [r3, #0] - 8000df2: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 8000df6: 2b00 cmp r3, #0 - 8000df8: d06c beq.n 8000ed4 - 8000dfa: 687b ldr r3, [r7, #4] - 8000dfc: 685b ldr r3, [r3, #4] - 8000dfe: 2b00 cmp r3, #0 - 8000e00: d168 bne.n 8000ed4 + 8000e5a: 4b89 ldr r3, [pc, #548] ; (8001080 ) + 8000e5c: 681b ldr r3, [r3, #0] + 8000e5e: f403 3300 and.w r3, r3, #131072 ; 0x20000 + 8000e62: 2b00 cmp r3, #0 + 8000e64: d06c beq.n 8000f40 + 8000e66: 687b ldr r3, [r7, #4] + 8000e68: 685b ldr r3, [r3, #4] + 8000e6a: 2b00 cmp r3, #0 + 8000e6c: d168 bne.n 8000f40 { return HAL_ERROR; - 8000e02: 2301 movs r3, #1 - 8000e04: e246 b.n 8001294 + 8000e6e: 2301 movs r3, #1 + 8000e70: e246 b.n 8001300 } } else { /* Set the new HSE configuration ---------------------------------------*/ __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState); - 8000e06: 687b ldr r3, [r7, #4] - 8000e08: 685b ldr r3, [r3, #4] - 8000e0a: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 8000e0e: d106 bne.n 8000e1e - 8000e10: 4b80 ldr r3, [pc, #512] ; (8001014 ) - 8000e12: 681b ldr r3, [r3, #0] - 8000e14: 4a7f ldr r2, [pc, #508] ; (8001014 ) - 8000e16: f443 3380 orr.w r3, r3, #65536 ; 0x10000 - 8000e1a: 6013 str r3, [r2, #0] - 8000e1c: e02e b.n 8000e7c - 8000e1e: 687b ldr r3, [r7, #4] - 8000e20: 685b ldr r3, [r3, #4] - 8000e22: 2b00 cmp r3, #0 - 8000e24: d10c bne.n 8000e40 - 8000e26: 4b7b ldr r3, [pc, #492] ; (8001014 ) - 8000e28: 681b ldr r3, [r3, #0] - 8000e2a: 4a7a ldr r2, [pc, #488] ; (8001014 ) - 8000e2c: f423 3380 bic.w r3, r3, #65536 ; 0x10000 - 8000e30: 6013 str r3, [r2, #0] - 8000e32: 4b78 ldr r3, [pc, #480] ; (8001014 ) - 8000e34: 681b ldr r3, [r3, #0] - 8000e36: 4a77 ldr r2, [pc, #476] ; (8001014 ) - 8000e38: f423 2380 bic.w r3, r3, #262144 ; 0x40000 - 8000e3c: 6013 str r3, [r2, #0] - 8000e3e: e01d b.n 8000e7c - 8000e40: 687b ldr r3, [r7, #4] - 8000e42: 685b ldr r3, [r3, #4] - 8000e44: f5b3 2fa0 cmp.w r3, #327680 ; 0x50000 - 8000e48: d10c bne.n 8000e64 - 8000e4a: 4b72 ldr r3, [pc, #456] ; (8001014 ) - 8000e4c: 681b ldr r3, [r3, #0] - 8000e4e: 4a71 ldr r2, [pc, #452] ; (8001014 ) - 8000e50: f443 2380 orr.w r3, r3, #262144 ; 0x40000 - 8000e54: 6013 str r3, [r2, #0] - 8000e56: 4b6f ldr r3, [pc, #444] ; (8001014 ) - 8000e58: 681b ldr r3, [r3, #0] - 8000e5a: 4a6e ldr r2, [pc, #440] ; (8001014 ) - 8000e5c: f443 3380 orr.w r3, r3, #65536 ; 0x10000 - 8000e60: 6013 str r3, [r2, #0] - 8000e62: e00b b.n 8000e7c - 8000e64: 4b6b ldr r3, [pc, #428] ; (8001014 ) - 8000e66: 681b ldr r3, [r3, #0] - 8000e68: 4a6a ldr r2, [pc, #424] ; (8001014 ) - 8000e6a: f423 3380 bic.w r3, r3, #65536 ; 0x10000 - 8000e6e: 6013 str r3, [r2, #0] - 8000e70: 4b68 ldr r3, [pc, #416] ; (8001014 ) - 8000e72: 681b ldr r3, [r3, #0] - 8000e74: 4a67 ldr r2, [pc, #412] ; (8001014 ) - 8000e76: f423 2380 bic.w r3, r3, #262144 ; 0x40000 - 8000e7a: 6013 str r3, [r2, #0] + 8000e72: 687b ldr r3, [r7, #4] + 8000e74: 685b ldr r3, [r3, #4] + 8000e76: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 + 8000e7a: d106 bne.n 8000e8a + 8000e7c: 4b80 ldr r3, [pc, #512] ; (8001080 ) + 8000e7e: 681b ldr r3, [r3, #0] + 8000e80: 4a7f ldr r2, [pc, #508] ; (8001080 ) + 8000e82: f443 3380 orr.w r3, r3, #65536 ; 0x10000 + 8000e86: 6013 str r3, [r2, #0] + 8000e88: e02e b.n 8000ee8 + 8000e8a: 687b ldr r3, [r7, #4] + 8000e8c: 685b ldr r3, [r3, #4] + 8000e8e: 2b00 cmp r3, #0 + 8000e90: d10c bne.n 8000eac + 8000e92: 4b7b ldr r3, [pc, #492] ; (8001080 ) + 8000e94: 681b ldr r3, [r3, #0] + 8000e96: 4a7a ldr r2, [pc, #488] ; (8001080 ) + 8000e98: f423 3380 bic.w r3, r3, #65536 ; 0x10000 + 8000e9c: 6013 str r3, [r2, #0] + 8000e9e: 4b78 ldr r3, [pc, #480] ; (8001080 ) + 8000ea0: 681b ldr r3, [r3, #0] + 8000ea2: 4a77 ldr r2, [pc, #476] ; (8001080 ) + 8000ea4: f423 2380 bic.w r3, r3, #262144 ; 0x40000 + 8000ea8: 6013 str r3, [r2, #0] + 8000eaa: e01d b.n 8000ee8 + 8000eac: 687b ldr r3, [r7, #4] + 8000eae: 685b ldr r3, [r3, #4] + 8000eb0: f5b3 2fa0 cmp.w r3, #327680 ; 0x50000 + 8000eb4: d10c bne.n 8000ed0 + 8000eb6: 4b72 ldr r3, [pc, #456] ; (8001080 ) + 8000eb8: 681b ldr r3, [r3, #0] + 8000eba: 4a71 ldr r2, [pc, #452] ; (8001080 ) + 8000ebc: f443 2380 orr.w r3, r3, #262144 ; 0x40000 + 8000ec0: 6013 str r3, [r2, #0] + 8000ec2: 4b6f ldr r3, [pc, #444] ; (8001080 ) + 8000ec4: 681b ldr r3, [r3, #0] + 8000ec6: 4a6e ldr r2, [pc, #440] ; (8001080 ) + 8000ec8: f443 3380 orr.w r3, r3, #65536 ; 0x10000 + 8000ecc: 6013 str r3, [r2, #0] + 8000ece: e00b b.n 8000ee8 + 8000ed0: 4b6b ldr r3, [pc, #428] ; (8001080 ) + 8000ed2: 681b ldr r3, [r3, #0] + 8000ed4: 4a6a ldr r2, [pc, #424] ; (8001080 ) + 8000ed6: f423 3380 bic.w r3, r3, #65536 ; 0x10000 + 8000eda: 6013 str r3, [r2, #0] + 8000edc: 4b68 ldr r3, [pc, #416] ; (8001080 ) + 8000ede: 681b ldr r3, [r3, #0] + 8000ee0: 4a67 ldr r2, [pc, #412] ; (8001080 ) + 8000ee2: f423 2380 bic.w r3, r3, #262144 ; 0x40000 + 8000ee6: 6013 str r3, [r2, #0] /* Check the HSE State */ if (RCC_OscInitStruct->HSEState != RCC_HSE_OFF) - 8000e7c: 687b ldr r3, [r7, #4] - 8000e7e: 685b ldr r3, [r3, #4] - 8000e80: 2b00 cmp r3, #0 - 8000e82: d013 beq.n 8000eac + 8000ee8: 687b ldr r3, [r7, #4] + 8000eea: 685b ldr r3, [r3, #4] + 8000eec: 2b00 cmp r3, #0 + 8000eee: d013 beq.n 8000f18 { /* Get Start Tick */ tickstart = HAL_GetTick(); - 8000e84: f7ff fcd2 bl 800082c - 8000e88: 6138 str r0, [r7, #16] + 8000ef0: f7ff fcd2 bl 8000898 + 8000ef4: 6138 str r0, [r7, #16] /* Wait till HSE is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) - 8000e8a: e008 b.n 8000e9e + 8000ef6: e008 b.n 8000f0a { if ((HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE) - 8000e8c: f7ff fcce bl 800082c - 8000e90: 4602 mov r2, r0 - 8000e92: 693b ldr r3, [r7, #16] - 8000e94: 1ad3 subs r3, r2, r3 - 8000e96: 2b64 cmp r3, #100 ; 0x64 - 8000e98: d901 bls.n 8000e9e + 8000ef8: f7ff fcce bl 8000898 + 8000efc: 4602 mov r2, r0 + 8000efe: 693b ldr r3, [r7, #16] + 8000f00: 1ad3 subs r3, r2, r3 + 8000f02: 2b64 cmp r3, #100 ; 0x64 + 8000f04: d901 bls.n 8000f0a { return HAL_TIMEOUT; - 8000e9a: 2303 movs r3, #3 - 8000e9c: e1fa b.n 8001294 + 8000f06: 2303 movs r3, #3 + 8000f08: e1fa b.n 8001300 while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) - 8000e9e: 4b5d ldr r3, [pc, #372] ; (8001014 ) - 8000ea0: 681b ldr r3, [r3, #0] - 8000ea2: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 8000ea6: 2b00 cmp r3, #0 - 8000ea8: d0f0 beq.n 8000e8c - 8000eaa: e014 b.n 8000ed6 + 8000f0a: 4b5d ldr r3, [pc, #372] ; (8001080 ) + 8000f0c: 681b ldr r3, [r3, #0] + 8000f0e: f403 3300 and.w r3, r3, #131072 ; 0x20000 + 8000f12: 2b00 cmp r3, #0 + 8000f14: d0f0 beq.n 8000ef8 + 8000f16: e014 b.n 8000f42 } } else { /* Get Start Tick */ tickstart = HAL_GetTick(); - 8000eac: f7ff fcbe bl 800082c - 8000eb0: 6138 str r0, [r7, #16] + 8000f18: f7ff fcbe bl 8000898 + 8000f1c: 6138 str r0, [r7, #16] /* Wait till HSE is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) - 8000eb2: e008 b.n 8000ec6 + 8000f1e: e008 b.n 8000f32 { if ((HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE) - 8000eb4: f7ff fcba bl 800082c - 8000eb8: 4602 mov r2, r0 - 8000eba: 693b ldr r3, [r7, #16] - 8000ebc: 1ad3 subs r3, r2, r3 - 8000ebe: 2b64 cmp r3, #100 ; 0x64 - 8000ec0: d901 bls.n 8000ec6 + 8000f20: f7ff fcba bl 8000898 + 8000f24: 4602 mov r2, r0 + 8000f26: 693b ldr r3, [r7, #16] + 8000f28: 1ad3 subs r3, r2, r3 + 8000f2a: 2b64 cmp r3, #100 ; 0x64 + 8000f2c: d901 bls.n 8000f32 { return HAL_TIMEOUT; - 8000ec2: 2303 movs r3, #3 - 8000ec4: e1e6 b.n 8001294 + 8000f2e: 2303 movs r3, #3 + 8000f30: e1e6 b.n 8001300 while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) - 8000ec6: 4b53 ldr r3, [pc, #332] ; (8001014 ) - 8000ec8: 681b ldr r3, [r3, #0] - 8000eca: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 8000ece: 2b00 cmp r3, #0 - 8000ed0: d1f0 bne.n 8000eb4 - 8000ed2: e000 b.n 8000ed6 + 8000f32: 4b53 ldr r3, [pc, #332] ; (8001080 ) + 8000f34: 681b ldr r3, [r3, #0] + 8000f36: f403 3300 and.w r3, r3, #131072 ; 0x20000 + 8000f3a: 2b00 cmp r3, #0 + 8000f3c: d1f0 bne.n 8000f20 + 8000f3e: e000 b.n 8000f42 if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) - 8000ed4: bf00 nop + 8000f40: bf00 nop } } } } /*----------------------------- HSI Configuration --------------------------*/ if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI) - 8000ed6: 687b ldr r3, [r7, #4] - 8000ed8: 681b ldr r3, [r3, #0] - 8000eda: f003 0302 and.w r3, r3, #2 - 8000ede: 2b00 cmp r3, #0 - 8000ee0: d063 beq.n 8000faa + 8000f42: 687b ldr r3, [r7, #4] + 8000f44: 681b ldr r3, [r3, #0] + 8000f46: f003 0302 and.w r3, r3, #2 + 8000f4a: 2b00 cmp r3, #0 + 8000f4c: d063 beq.n 8001016 /* Check the parameters */ 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 ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_HSI) - 8000ee2: 4b4c ldr r3, [pc, #304] ; (8001014 ) - 8000ee4: 685b ldr r3, [r3, #4] - 8000ee6: f003 030c and.w r3, r3, #12 - 8000eea: 2b00 cmp r3, #0 - 8000eec: d00b beq.n 8000f06 + 8000f4e: 4b4c ldr r3, [pc, #304] ; (8001080 ) + 8000f50: 685b ldr r3, [r3, #4] + 8000f52: f003 030c and.w r3, r3, #12 + 8000f56: 2b00 cmp r3, #0 + 8000f58: d00b beq.n 8000f72 || ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_HSI_DIV2))) - 8000eee: 4b49 ldr r3, [pc, #292] ; (8001014 ) - 8000ef0: 685b ldr r3, [r3, #4] - 8000ef2: f003 030c and.w r3, r3, #12 - 8000ef6: 2b08 cmp r3, #8 - 8000ef8: d11c bne.n 8000f34 - 8000efa: 4b46 ldr r3, [pc, #280] ; (8001014 ) - 8000efc: 685b ldr r3, [r3, #4] - 8000efe: f403 3380 and.w r3, r3, #65536 ; 0x10000 - 8000f02: 2b00 cmp r3, #0 - 8000f04: d116 bne.n 8000f34 + 8000f5a: 4b49 ldr r3, [pc, #292] ; (8001080 ) + 8000f5c: 685b ldr r3, [r3, #4] + 8000f5e: f003 030c and.w r3, r3, #12 + 8000f62: 2b08 cmp r3, #8 + 8000f64: d11c bne.n 8000fa0 + 8000f66: 4b46 ldr r3, [pc, #280] ; (8001080 ) + 8000f68: 685b ldr r3, [r3, #4] + 8000f6a: f403 3380 and.w r3, r3, #65536 ; 0x10000 + 8000f6e: 2b00 cmp r3, #0 + 8000f70: d116 bne.n 8000fa0 { /* 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)) - 8000f06: 4b43 ldr r3, [pc, #268] ; (8001014 ) - 8000f08: 681b ldr r3, [r3, #0] - 8000f0a: f003 0302 and.w r3, r3, #2 - 8000f0e: 2b00 cmp r3, #0 - 8000f10: d005 beq.n 8000f1e - 8000f12: 687b ldr r3, [r7, #4] - 8000f14: 691b ldr r3, [r3, #16] - 8000f16: 2b01 cmp r3, #1 - 8000f18: d001 beq.n 8000f1e + 8000f72: 4b43 ldr r3, [pc, #268] ; (8001080 ) + 8000f74: 681b ldr r3, [r3, #0] + 8000f76: f003 0302 and.w r3, r3, #2 + 8000f7a: 2b00 cmp r3, #0 + 8000f7c: d005 beq.n 8000f8a + 8000f7e: 687b ldr r3, [r7, #4] + 8000f80: 691b ldr r3, [r3, #16] + 8000f82: 2b01 cmp r3, #1 + 8000f84: d001 beq.n 8000f8a { return HAL_ERROR; - 8000f1a: 2301 movs r3, #1 - 8000f1c: e1ba b.n 8001294 + 8000f86: 2301 movs r3, #1 + 8000f88: e1ba b.n 8001300 } /* Otherwise, just the calibration is allowed */ else { /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/ __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue); - 8000f1e: 4b3d ldr r3, [pc, #244] ; (8001014 ) - 8000f20: 681b ldr r3, [r3, #0] - 8000f22: f023 02f8 bic.w r2, r3, #248 ; 0xf8 - 8000f26: 687b ldr r3, [r7, #4] - 8000f28: 695b ldr r3, [r3, #20] - 8000f2a: 00db lsls r3, r3, #3 - 8000f2c: 4939 ldr r1, [pc, #228] ; (8001014 ) - 8000f2e: 4313 orrs r3, r2 - 8000f30: 600b str r3, [r1, #0] + 8000f8a: 4b3d ldr r3, [pc, #244] ; (8001080 ) + 8000f8c: 681b ldr r3, [r3, #0] + 8000f8e: f023 02f8 bic.w r2, r3, #248 ; 0xf8 + 8000f92: 687b ldr r3, [r7, #4] + 8000f94: 695b ldr r3, [r3, #20] + 8000f96: 00db lsls r3, r3, #3 + 8000f98: 4939 ldr r1, [pc, #228] ; (8001080 ) + 8000f9a: 4313 orrs r3, r2 + 8000f9c: 600b str r3, [r1, #0] if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) && (RCC_OscInitStruct->HSIState != RCC_HSI_ON)) - 8000f32: e03a b.n 8000faa + 8000f9e: e03a b.n 8001016 } } else { /* Check the HSI State */ if (RCC_OscInitStruct->HSIState != RCC_HSI_OFF) - 8000f34: 687b ldr r3, [r7, #4] - 8000f36: 691b ldr r3, [r3, #16] - 8000f38: 2b00 cmp r3, #0 - 8000f3a: d020 beq.n 8000f7e + 8000fa0: 687b ldr r3, [r7, #4] + 8000fa2: 691b ldr r3, [r3, #16] + 8000fa4: 2b00 cmp r3, #0 + 8000fa6: d020 beq.n 8000fea { /* Enable the Internal High Speed oscillator (HSI). */ __HAL_RCC_HSI_ENABLE(); - 8000f3c: 4b36 ldr r3, [pc, #216] ; (8001018 ) - 8000f3e: 2201 movs r2, #1 - 8000f40: 601a str r2, [r3, #0] + 8000fa8: 4b36 ldr r3, [pc, #216] ; (8001084 ) + 8000faa: 2201 movs r2, #1 + 8000fac: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); - 8000f42: f7ff fc73 bl 800082c - 8000f46: 6138 str r0, [r7, #16] + 8000fae: f7ff fc73 bl 8000898 + 8000fb2: 6138 str r0, [r7, #16] /* Wait till HSI is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) - 8000f48: e008 b.n 8000f5c + 8000fb4: e008 b.n 8000fc8 { if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE) - 8000f4a: f7ff fc6f bl 800082c - 8000f4e: 4602 mov r2, r0 - 8000f50: 693b ldr r3, [r7, #16] - 8000f52: 1ad3 subs r3, r2, r3 - 8000f54: 2b02 cmp r3, #2 - 8000f56: d901 bls.n 8000f5c + 8000fb6: f7ff fc6f bl 8000898 + 8000fba: 4602 mov r2, r0 + 8000fbc: 693b ldr r3, [r7, #16] + 8000fbe: 1ad3 subs r3, r2, r3 + 8000fc0: 2b02 cmp r3, #2 + 8000fc2: d901 bls.n 8000fc8 { return HAL_TIMEOUT; - 8000f58: 2303 movs r3, #3 - 8000f5a: e19b b.n 8001294 + 8000fc4: 2303 movs r3, #3 + 8000fc6: e19b b.n 8001300 while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) - 8000f5c: 4b2d ldr r3, [pc, #180] ; (8001014 ) - 8000f5e: 681b ldr r3, [r3, #0] - 8000f60: f003 0302 and.w r3, r3, #2 - 8000f64: 2b00 cmp r3, #0 - 8000f66: d0f0 beq.n 8000f4a + 8000fc8: 4b2d ldr r3, [pc, #180] ; (8001080 ) + 8000fca: 681b ldr r3, [r3, #0] + 8000fcc: f003 0302 and.w r3, r3, #2 + 8000fd0: 2b00 cmp r3, #0 + 8000fd2: d0f0 beq.n 8000fb6 } } /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/ __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue); - 8000f68: 4b2a ldr r3, [pc, #168] ; (8001014 ) - 8000f6a: 681b ldr r3, [r3, #0] - 8000f6c: f023 02f8 bic.w r2, r3, #248 ; 0xf8 - 8000f70: 687b ldr r3, [r7, #4] - 8000f72: 695b ldr r3, [r3, #20] - 8000f74: 00db lsls r3, r3, #3 - 8000f76: 4927 ldr r1, [pc, #156] ; (8001014 ) - 8000f78: 4313 orrs r3, r2 - 8000f7a: 600b str r3, [r1, #0] - 8000f7c: e015 b.n 8000faa + 8000fd4: 4b2a ldr r3, [pc, #168] ; (8001080 ) + 8000fd6: 681b ldr r3, [r3, #0] + 8000fd8: f023 02f8 bic.w r2, r3, #248 ; 0xf8 + 8000fdc: 687b ldr r3, [r7, #4] + 8000fde: 695b ldr r3, [r3, #20] + 8000fe0: 00db lsls r3, r3, #3 + 8000fe2: 4927 ldr r1, [pc, #156] ; (8001080 ) + 8000fe4: 4313 orrs r3, r2 + 8000fe6: 600b str r3, [r1, #0] + 8000fe8: e015 b.n 8001016 } else { /* Disable the Internal High Speed oscillator (HSI). */ __HAL_RCC_HSI_DISABLE(); - 8000f7e: 4b26 ldr r3, [pc, #152] ; (8001018 ) - 8000f80: 2200 movs r2, #0 - 8000f82: 601a str r2, [r3, #0] + 8000fea: 4b26 ldr r3, [pc, #152] ; (8001084 ) + 8000fec: 2200 movs r2, #0 + 8000fee: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); - 8000f84: f7ff fc52 bl 800082c - 8000f88: 6138 str r0, [r7, #16] + 8000ff0: f7ff fc52 bl 8000898 + 8000ff4: 6138 str r0, [r7, #16] /* Wait till HSI is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) - 8000f8a: e008 b.n 8000f9e + 8000ff6: e008 b.n 800100a { if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE) - 8000f8c: f7ff fc4e bl 800082c - 8000f90: 4602 mov r2, r0 - 8000f92: 693b ldr r3, [r7, #16] - 8000f94: 1ad3 subs r3, r2, r3 - 8000f96: 2b02 cmp r3, #2 - 8000f98: d901 bls.n 8000f9e + 8000ff8: f7ff fc4e bl 8000898 + 8000ffc: 4602 mov r2, r0 + 8000ffe: 693b ldr r3, [r7, #16] + 8001000: 1ad3 subs r3, r2, r3 + 8001002: 2b02 cmp r3, #2 + 8001004: d901 bls.n 800100a { return HAL_TIMEOUT; - 8000f9a: 2303 movs r3, #3 - 8000f9c: e17a b.n 8001294 + 8001006: 2303 movs r3, #3 + 8001008: e17a b.n 8001300 while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) - 8000f9e: 4b1d ldr r3, [pc, #116] ; (8001014 ) - 8000fa0: 681b ldr r3, [r3, #0] - 8000fa2: f003 0302 and.w r3, r3, #2 - 8000fa6: 2b00 cmp r3, #0 - 8000fa8: d1f0 bne.n 8000f8c + 800100a: 4b1d ldr r3, [pc, #116] ; (8001080 ) + 800100c: 681b ldr r3, [r3, #0] + 800100e: f003 0302 and.w r3, r3, #2 + 8001012: 2b00 cmp r3, #0 + 8001014: d1f0 bne.n 8000ff8 } } } } /*------------------------------ LSI Configuration -------------------------*/ if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSI) == RCC_OSCILLATORTYPE_LSI) - 8000faa: 687b ldr r3, [r7, #4] - 8000fac: 681b ldr r3, [r3, #0] - 8000fae: f003 0308 and.w r3, r3, #8 - 8000fb2: 2b00 cmp r3, #0 - 8000fb4: d03a beq.n 800102c + 8001016: 687b ldr r3, [r7, #4] + 8001018: 681b ldr r3, [r3, #0] + 800101a: f003 0308 and.w r3, r3, #8 + 800101e: 2b00 cmp r3, #0 + 8001020: d03a beq.n 8001098 { /* Check the parameters */ assert_param(IS_RCC_LSI(RCC_OscInitStruct->LSIState)); /* Check the LSI State */ if (RCC_OscInitStruct->LSIState != RCC_LSI_OFF) - 8000fb6: 687b ldr r3, [r7, #4] - 8000fb8: 699b ldr r3, [r3, #24] - 8000fba: 2b00 cmp r3, #0 - 8000fbc: d019 beq.n 8000ff2 + 8001022: 687b ldr r3, [r7, #4] + 8001024: 699b ldr r3, [r3, #24] + 8001026: 2b00 cmp r3, #0 + 8001028: d019 beq.n 800105e { /* Enable the Internal Low Speed oscillator (LSI). */ __HAL_RCC_LSI_ENABLE(); - 8000fbe: 4b17 ldr r3, [pc, #92] ; (800101c ) - 8000fc0: 2201 movs r2, #1 - 8000fc2: 601a str r2, [r3, #0] + 800102a: 4b17 ldr r3, [pc, #92] ; (8001088 ) + 800102c: 2201 movs r2, #1 + 800102e: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); - 8000fc4: f7ff fc32 bl 800082c - 8000fc8: 6138 str r0, [r7, #16] + 8001030: f7ff fc32 bl 8000898 + 8001034: 6138 str r0, [r7, #16] /* Wait till LSI is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET) - 8000fca: e008 b.n 8000fde + 8001036: e008 b.n 800104a { if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE) - 8000fcc: f7ff fc2e bl 800082c - 8000fd0: 4602 mov r2, r0 - 8000fd2: 693b ldr r3, [r7, #16] - 8000fd4: 1ad3 subs r3, r2, r3 - 8000fd6: 2b02 cmp r3, #2 - 8000fd8: d901 bls.n 8000fde + 8001038: f7ff fc2e bl 8000898 + 800103c: 4602 mov r2, r0 + 800103e: 693b ldr r3, [r7, #16] + 8001040: 1ad3 subs r3, r2, r3 + 8001042: 2b02 cmp r3, #2 + 8001044: d901 bls.n 800104a { return HAL_TIMEOUT; - 8000fda: 2303 movs r3, #3 - 8000fdc: e15a b.n 8001294 + 8001046: 2303 movs r3, #3 + 8001048: e15a b.n 8001300 while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET) - 8000fde: 4b0d ldr r3, [pc, #52] ; (8001014 ) - 8000fe0: 6a5b ldr r3, [r3, #36] ; 0x24 - 8000fe2: f003 0302 and.w r3, r3, #2 - 8000fe6: 2b00 cmp r3, #0 - 8000fe8: d0f0 beq.n 8000fcc + 800104a: 4b0d ldr r3, [pc, #52] ; (8001080 ) + 800104c: 6a5b ldr r3, [r3, #36] ; 0x24 + 800104e: f003 0302 and.w r3, r3, #2 + 8001052: 2b00 cmp r3, #0 + 8001054: d0f0 beq.n 8001038 } } /* To have a fully stabilized clock in the specified range, a software delay of 1ms should be added.*/ RCC_Delay(1); - 8000fea: 2001 movs r0, #1 - 8000fec: f000 faa6 bl 800153c - 8000ff0: e01c b.n 800102c + 8001056: 2001 movs r0, #1 + 8001058: f000 faa6 bl 80015a8 + 800105c: e01c b.n 8001098 } else { /* Disable the Internal Low Speed oscillator (LSI). */ __HAL_RCC_LSI_DISABLE(); - 8000ff2: 4b0a ldr r3, [pc, #40] ; (800101c ) - 8000ff4: 2200 movs r2, #0 - 8000ff6: 601a str r2, [r3, #0] + 800105e: 4b0a ldr r3, [pc, #40] ; (8001088 ) + 8001060: 2200 movs r2, #0 + 8001062: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); - 8000ff8: f7ff fc18 bl 800082c - 8000ffc: 6138 str r0, [r7, #16] + 8001064: f7ff fc18 bl 8000898 + 8001068: 6138 str r0, [r7, #16] /* Wait till LSI is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET) - 8000ffe: e00f b.n 8001020 + 800106a: e00f b.n 800108c { if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE) - 8001000: f7ff fc14 bl 800082c - 8001004: 4602 mov r2, r0 - 8001006: 693b ldr r3, [r7, #16] - 8001008: 1ad3 subs r3, r2, r3 - 800100a: 2b02 cmp r3, #2 - 800100c: d908 bls.n 8001020 + 800106c: f7ff fc14 bl 8000898 + 8001070: 4602 mov r2, r0 + 8001072: 693b ldr r3, [r7, #16] + 8001074: 1ad3 subs r3, r2, r3 + 8001076: 2b02 cmp r3, #2 + 8001078: d908 bls.n 800108c { return HAL_TIMEOUT; - 800100e: 2303 movs r3, #3 - 8001010: e140 b.n 8001294 - 8001012: bf00 nop - 8001014: 40021000 .word 0x40021000 - 8001018: 42420000 .word 0x42420000 - 800101c: 42420480 .word 0x42420480 + 800107a: 2303 movs r3, #3 + 800107c: e140 b.n 8001300 + 800107e: bf00 nop + 8001080: 40021000 .word 0x40021000 + 8001084: 42420000 .word 0x42420000 + 8001088: 42420480 .word 0x42420480 while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET) - 8001020: 4b9e ldr r3, [pc, #632] ; (800129c ) - 8001022: 6a5b ldr r3, [r3, #36] ; 0x24 - 8001024: f003 0302 and.w r3, r3, #2 - 8001028: 2b00 cmp r3, #0 - 800102a: d1e9 bne.n 8001000 + 800108c: 4b9e ldr r3, [pc, #632] ; (8001308 ) + 800108e: 6a5b ldr r3, [r3, #36] ; 0x24 + 8001090: f003 0302 and.w r3, r3, #2 + 8001094: 2b00 cmp r3, #0 + 8001096: d1e9 bne.n 800106c } } } } /*------------------------------ LSE Configuration -------------------------*/ if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSE) == RCC_OSCILLATORTYPE_LSE) - 800102c: 687b ldr r3, [r7, #4] - 800102e: 681b ldr r3, [r3, #0] - 8001030: f003 0304 and.w r3, r3, #4 - 8001034: 2b00 cmp r3, #0 - 8001036: f000 80a6 beq.w 8001186 + 8001098: 687b ldr r3, [r7, #4] + 800109a: 681b ldr r3, [r3, #0] + 800109c: f003 0304 and.w r3, r3, #4 + 80010a0: 2b00 cmp r3, #0 + 80010a2: f000 80a6 beq.w 80011f2 { FlagStatus pwrclkchanged = RESET; - 800103a: 2300 movs r3, #0 - 800103c: 75fb strb r3, [r7, #23] + 80010a6: 2300 movs r3, #0 + 80010a8: 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()) - 800103e: 4b97 ldr r3, [pc, #604] ; (800129c ) - 8001040: 69db ldr r3, [r3, #28] - 8001042: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 - 8001046: 2b00 cmp r3, #0 - 8001048: d10d bne.n 8001066 + 80010aa: 4b97 ldr r3, [pc, #604] ; (8001308 ) + 80010ac: 69db ldr r3, [r3, #28] + 80010ae: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 + 80010b2: 2b00 cmp r3, #0 + 80010b4: d10d bne.n 80010d2 { __HAL_RCC_PWR_CLK_ENABLE(); - 800104a: 4b94 ldr r3, [pc, #592] ; (800129c ) - 800104c: 69db ldr r3, [r3, #28] - 800104e: 4a93 ldr r2, [pc, #588] ; (800129c ) - 8001050: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000 - 8001054: 61d3 str r3, [r2, #28] - 8001056: 4b91 ldr r3, [pc, #580] ; (800129c ) - 8001058: 69db ldr r3, [r3, #28] - 800105a: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 - 800105e: 60bb str r3, [r7, #8] - 8001060: 68bb ldr r3, [r7, #8] + 80010b6: 4b94 ldr r3, [pc, #592] ; (8001308 ) + 80010b8: 69db ldr r3, [r3, #28] + 80010ba: 4a93 ldr r2, [pc, #588] ; (8001308 ) + 80010bc: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000 + 80010c0: 61d3 str r3, [r2, #28] + 80010c2: 4b91 ldr r3, [pc, #580] ; (8001308 ) + 80010c4: 69db ldr r3, [r3, #28] + 80010c6: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 + 80010ca: 60bb str r3, [r7, #8] + 80010cc: 68bb ldr r3, [r7, #8] pwrclkchanged = SET; - 8001062: 2301 movs r3, #1 - 8001064: 75fb strb r3, [r7, #23] + 80010ce: 2301 movs r3, #1 + 80010d0: 75fb strb r3, [r7, #23] } if (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) - 8001066: 4b8e ldr r3, [pc, #568] ; (80012a0 ) - 8001068: 681b ldr r3, [r3, #0] - 800106a: f403 7380 and.w r3, r3, #256 ; 0x100 - 800106e: 2b00 cmp r3, #0 - 8001070: d118 bne.n 80010a4 + 80010d2: 4b8e ldr r3, [pc, #568] ; (800130c ) + 80010d4: 681b ldr r3, [r3, #0] + 80010d6: f403 7380 and.w r3, r3, #256 ; 0x100 + 80010da: 2b00 cmp r3, #0 + 80010dc: d118 bne.n 8001110 { /* Enable write access to Backup domain */ SET_BIT(PWR->CR, PWR_CR_DBP); - 8001072: 4b8b ldr r3, [pc, #556] ; (80012a0 ) - 8001074: 681b ldr r3, [r3, #0] - 8001076: 4a8a ldr r2, [pc, #552] ; (80012a0 ) - 8001078: f443 7380 orr.w r3, r3, #256 ; 0x100 - 800107c: 6013 str r3, [r2, #0] + 80010de: 4b8b ldr r3, [pc, #556] ; (800130c ) + 80010e0: 681b ldr r3, [r3, #0] + 80010e2: 4a8a ldr r2, [pc, #552] ; (800130c ) + 80010e4: f443 7380 orr.w r3, r3, #256 ; 0x100 + 80010e8: 6013 str r3, [r2, #0] /* Wait for Backup domain Write protection disable */ tickstart = HAL_GetTick(); - 800107e: f7ff fbd5 bl 800082c - 8001082: 6138 str r0, [r7, #16] + 80010ea: f7ff fbd5 bl 8000898 + 80010ee: 6138 str r0, [r7, #16] while (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) - 8001084: e008 b.n 8001098 + 80010f0: e008 b.n 8001104 { if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE) - 8001086: f7ff fbd1 bl 800082c - 800108a: 4602 mov r2, r0 - 800108c: 693b ldr r3, [r7, #16] - 800108e: 1ad3 subs r3, r2, r3 - 8001090: 2b64 cmp r3, #100 ; 0x64 - 8001092: d901 bls.n 8001098 + 80010f2: f7ff fbd1 bl 8000898 + 80010f6: 4602 mov r2, r0 + 80010f8: 693b ldr r3, [r7, #16] + 80010fa: 1ad3 subs r3, r2, r3 + 80010fc: 2b64 cmp r3, #100 ; 0x64 + 80010fe: d901 bls.n 8001104 { return HAL_TIMEOUT; - 8001094: 2303 movs r3, #3 - 8001096: e0fd b.n 8001294 + 8001100: 2303 movs r3, #3 + 8001102: e0fd b.n 8001300 while (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) - 8001098: 4b81 ldr r3, [pc, #516] ; (80012a0 ) - 800109a: 681b ldr r3, [r3, #0] - 800109c: f403 7380 and.w r3, r3, #256 ; 0x100 - 80010a0: 2b00 cmp r3, #0 - 80010a2: d0f0 beq.n 8001086 + 8001104: 4b81 ldr r3, [pc, #516] ; (800130c ) + 8001106: 681b ldr r3, [r3, #0] + 8001108: f403 7380 and.w r3, r3, #256 ; 0x100 + 800110c: 2b00 cmp r3, #0 + 800110e: d0f0 beq.n 80010f2 } } } /* Set the new LSE configuration -----------------------------------------*/ __HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState); - 80010a4: 687b ldr r3, [r7, #4] - 80010a6: 68db ldr r3, [r3, #12] - 80010a8: 2b01 cmp r3, #1 - 80010aa: d106 bne.n 80010ba - 80010ac: 4b7b ldr r3, [pc, #492] ; (800129c ) - 80010ae: 6a1b ldr r3, [r3, #32] - 80010b0: 4a7a ldr r2, [pc, #488] ; (800129c ) - 80010b2: f043 0301 orr.w r3, r3, #1 - 80010b6: 6213 str r3, [r2, #32] - 80010b8: e02d b.n 8001116 - 80010ba: 687b ldr r3, [r7, #4] - 80010bc: 68db ldr r3, [r3, #12] - 80010be: 2b00 cmp r3, #0 - 80010c0: d10c bne.n 80010dc - 80010c2: 4b76 ldr r3, [pc, #472] ; (800129c ) - 80010c4: 6a1b ldr r3, [r3, #32] - 80010c6: 4a75 ldr r2, [pc, #468] ; (800129c ) - 80010c8: f023 0301 bic.w r3, r3, #1 - 80010cc: 6213 str r3, [r2, #32] - 80010ce: 4b73 ldr r3, [pc, #460] ; (800129c ) - 80010d0: 6a1b ldr r3, [r3, #32] - 80010d2: 4a72 ldr r2, [pc, #456] ; (800129c ) - 80010d4: f023 0304 bic.w r3, r3, #4 - 80010d8: 6213 str r3, [r2, #32] - 80010da: e01c b.n 8001116 - 80010dc: 687b ldr r3, [r7, #4] - 80010de: 68db ldr r3, [r3, #12] - 80010e0: 2b05 cmp r3, #5 - 80010e2: d10c bne.n 80010fe - 80010e4: 4b6d ldr r3, [pc, #436] ; (800129c ) - 80010e6: 6a1b ldr r3, [r3, #32] - 80010e8: 4a6c ldr r2, [pc, #432] ; (800129c ) - 80010ea: f043 0304 orr.w r3, r3, #4 - 80010ee: 6213 str r3, [r2, #32] - 80010f0: 4b6a ldr r3, [pc, #424] ; (800129c ) - 80010f2: 6a1b ldr r3, [r3, #32] - 80010f4: 4a69 ldr r2, [pc, #420] ; (800129c ) - 80010f6: f043 0301 orr.w r3, r3, #1 - 80010fa: 6213 str r3, [r2, #32] - 80010fc: e00b b.n 8001116 - 80010fe: 4b67 ldr r3, [pc, #412] ; (800129c ) - 8001100: 6a1b ldr r3, [r3, #32] - 8001102: 4a66 ldr r2, [pc, #408] ; (800129c ) - 8001104: f023 0301 bic.w r3, r3, #1 - 8001108: 6213 str r3, [r2, #32] - 800110a: 4b64 ldr r3, [pc, #400] ; (800129c ) - 800110c: 6a1b ldr r3, [r3, #32] - 800110e: 4a63 ldr r2, [pc, #396] ; (800129c ) - 8001110: f023 0304 bic.w r3, r3, #4 - 8001114: 6213 str r3, [r2, #32] + 8001110: 687b ldr r3, [r7, #4] + 8001112: 68db ldr r3, [r3, #12] + 8001114: 2b01 cmp r3, #1 + 8001116: d106 bne.n 8001126 + 8001118: 4b7b ldr r3, [pc, #492] ; (8001308 ) + 800111a: 6a1b ldr r3, [r3, #32] + 800111c: 4a7a ldr r2, [pc, #488] ; (8001308 ) + 800111e: f043 0301 orr.w r3, r3, #1 + 8001122: 6213 str r3, [r2, #32] + 8001124: e02d b.n 8001182 + 8001126: 687b ldr r3, [r7, #4] + 8001128: 68db ldr r3, [r3, #12] + 800112a: 2b00 cmp r3, #0 + 800112c: d10c bne.n 8001148 + 800112e: 4b76 ldr r3, [pc, #472] ; (8001308 ) + 8001130: 6a1b ldr r3, [r3, #32] + 8001132: 4a75 ldr r2, [pc, #468] ; (8001308 ) + 8001134: f023 0301 bic.w r3, r3, #1 + 8001138: 6213 str r3, [r2, #32] + 800113a: 4b73 ldr r3, [pc, #460] ; (8001308 ) + 800113c: 6a1b ldr r3, [r3, #32] + 800113e: 4a72 ldr r2, [pc, #456] ; (8001308 ) + 8001140: f023 0304 bic.w r3, r3, #4 + 8001144: 6213 str r3, [r2, #32] + 8001146: e01c b.n 8001182 + 8001148: 687b ldr r3, [r7, #4] + 800114a: 68db ldr r3, [r3, #12] + 800114c: 2b05 cmp r3, #5 + 800114e: d10c bne.n 800116a + 8001150: 4b6d ldr r3, [pc, #436] ; (8001308 ) + 8001152: 6a1b ldr r3, [r3, #32] + 8001154: 4a6c ldr r2, [pc, #432] ; (8001308 ) + 8001156: f043 0304 orr.w r3, r3, #4 + 800115a: 6213 str r3, [r2, #32] + 800115c: 4b6a ldr r3, [pc, #424] ; (8001308 ) + 800115e: 6a1b ldr r3, [r3, #32] + 8001160: 4a69 ldr r2, [pc, #420] ; (8001308 ) + 8001162: f043 0301 orr.w r3, r3, #1 + 8001166: 6213 str r3, [r2, #32] + 8001168: e00b b.n 8001182 + 800116a: 4b67 ldr r3, [pc, #412] ; (8001308 ) + 800116c: 6a1b ldr r3, [r3, #32] + 800116e: 4a66 ldr r2, [pc, #408] ; (8001308 ) + 8001170: f023 0301 bic.w r3, r3, #1 + 8001174: 6213 str r3, [r2, #32] + 8001176: 4b64 ldr r3, [pc, #400] ; (8001308 ) + 8001178: 6a1b ldr r3, [r3, #32] + 800117a: 4a63 ldr r2, [pc, #396] ; (8001308 ) + 800117c: f023 0304 bic.w r3, r3, #4 + 8001180: 6213 str r3, [r2, #32] /* Check the LSE State */ if (RCC_OscInitStruct->LSEState != RCC_LSE_OFF) - 8001116: 687b ldr r3, [r7, #4] - 8001118: 68db ldr r3, [r3, #12] - 800111a: 2b00 cmp r3, #0 - 800111c: d015 beq.n 800114a + 8001182: 687b ldr r3, [r7, #4] + 8001184: 68db ldr r3, [r3, #12] + 8001186: 2b00 cmp r3, #0 + 8001188: d015 beq.n 80011b6 { /* Get Start Tick */ tickstart = HAL_GetTick(); - 800111e: f7ff fb85 bl 800082c - 8001122: 6138 str r0, [r7, #16] + 800118a: f7ff fb85 bl 8000898 + 800118e: 6138 str r0, [r7, #16] /* Wait till LSE is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) - 8001124: e00a b.n 800113c + 8001190: e00a b.n 80011a8 { if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE) - 8001126: f7ff fb81 bl 800082c - 800112a: 4602 mov r2, r0 - 800112c: 693b ldr r3, [r7, #16] - 800112e: 1ad3 subs r3, r2, r3 - 8001130: f241 3288 movw r2, #5000 ; 0x1388 - 8001134: 4293 cmp r3, r2 - 8001136: d901 bls.n 800113c + 8001192: f7ff fb81 bl 8000898 + 8001196: 4602 mov r2, r0 + 8001198: 693b ldr r3, [r7, #16] + 800119a: 1ad3 subs r3, r2, r3 + 800119c: f241 3288 movw r2, #5000 ; 0x1388 + 80011a0: 4293 cmp r3, r2 + 80011a2: d901 bls.n 80011a8 { return HAL_TIMEOUT; - 8001138: 2303 movs r3, #3 - 800113a: e0ab b.n 8001294 + 80011a4: 2303 movs r3, #3 + 80011a6: e0ab b.n 8001300 while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) - 800113c: 4b57 ldr r3, [pc, #348] ; (800129c ) - 800113e: 6a1b ldr r3, [r3, #32] - 8001140: f003 0302 and.w r3, r3, #2 - 8001144: 2b00 cmp r3, #0 - 8001146: d0ee beq.n 8001126 - 8001148: e014 b.n 8001174 + 80011a8: 4b57 ldr r3, [pc, #348] ; (8001308 ) + 80011aa: 6a1b ldr r3, [r3, #32] + 80011ac: f003 0302 and.w r3, r3, #2 + 80011b0: 2b00 cmp r3, #0 + 80011b2: d0ee beq.n 8001192 + 80011b4: e014 b.n 80011e0 } } else { /* Get Start Tick */ tickstart = HAL_GetTick(); - 800114a: f7ff fb6f bl 800082c - 800114e: 6138 str r0, [r7, #16] + 80011b6: f7ff fb6f bl 8000898 + 80011ba: 6138 str r0, [r7, #16] /* Wait till LSE is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET) - 8001150: e00a b.n 8001168 + 80011bc: e00a b.n 80011d4 { if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE) - 8001152: f7ff fb6b bl 800082c - 8001156: 4602 mov r2, r0 - 8001158: 693b ldr r3, [r7, #16] - 800115a: 1ad3 subs r3, r2, r3 - 800115c: f241 3288 movw r2, #5000 ; 0x1388 - 8001160: 4293 cmp r3, r2 - 8001162: d901 bls.n 8001168 + 80011be: f7ff fb6b bl 8000898 + 80011c2: 4602 mov r2, r0 + 80011c4: 693b ldr r3, [r7, #16] + 80011c6: 1ad3 subs r3, r2, r3 + 80011c8: f241 3288 movw r2, #5000 ; 0x1388 + 80011cc: 4293 cmp r3, r2 + 80011ce: d901 bls.n 80011d4 { return HAL_TIMEOUT; - 8001164: 2303 movs r3, #3 - 8001166: e095 b.n 8001294 + 80011d0: 2303 movs r3, #3 + 80011d2: e095 b.n 8001300 while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET) - 8001168: 4b4c ldr r3, [pc, #304] ; (800129c ) - 800116a: 6a1b ldr r3, [r3, #32] - 800116c: f003 0302 and.w r3, r3, #2 - 8001170: 2b00 cmp r3, #0 - 8001172: d1ee bne.n 8001152 + 80011d4: 4b4c ldr r3, [pc, #304] ; (8001308 ) + 80011d6: 6a1b ldr r3, [r3, #32] + 80011d8: f003 0302 and.w r3, r3, #2 + 80011dc: 2b00 cmp r3, #0 + 80011de: d1ee bne.n 80011be } } } /* Require to disable power clock if necessary */ if (pwrclkchanged == SET) - 8001174: 7dfb ldrb r3, [r7, #23] - 8001176: 2b01 cmp r3, #1 - 8001178: d105 bne.n 8001186 + 80011e0: 7dfb ldrb r3, [r7, #23] + 80011e2: 2b01 cmp r3, #1 + 80011e4: d105 bne.n 80011f2 { __HAL_RCC_PWR_CLK_DISABLE(); - 800117a: 4b48 ldr r3, [pc, #288] ; (800129c ) - 800117c: 69db ldr r3, [r3, #28] - 800117e: 4a47 ldr r2, [pc, #284] ; (800129c ) - 8001180: f023 5380 bic.w r3, r3, #268435456 ; 0x10000000 - 8001184: 61d3 str r3, [r2, #28] + 80011e6: 4b48 ldr r3, [pc, #288] ; (8001308 ) + 80011e8: 69db ldr r3, [r3, #28] + 80011ea: 4a47 ldr r2, [pc, #284] ; (8001308 ) + 80011ec: f023 5380 bic.w r3, r3, #268435456 ; 0x10000000 + 80011f0: 61d3 str r3, [r2, #28] #endif /* RCC_CR_PLL2ON */ /*-------------------------------- PLL Configuration -----------------------*/ /* Check the parameters */ assert_param(IS_RCC_PLL(RCC_OscInitStruct->PLL.PLLState)); if ((RCC_OscInitStruct->PLL.PLLState) != RCC_PLL_NONE) - 8001186: 687b ldr r3, [r7, #4] - 8001188: 69db ldr r3, [r3, #28] - 800118a: 2b00 cmp r3, #0 - 800118c: f000 8081 beq.w 8001292 + 80011f2: 687b ldr r3, [r7, #4] + 80011f4: 69db ldr r3, [r3, #28] + 80011f6: 2b00 cmp r3, #0 + 80011f8: f000 8081 beq.w 80012fe { /* Check if the PLL is used as system clock or not */ if (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_PLLCLK) - 8001190: 4b42 ldr r3, [pc, #264] ; (800129c ) - 8001192: 685b ldr r3, [r3, #4] - 8001194: f003 030c and.w r3, r3, #12 - 8001198: 2b08 cmp r3, #8 - 800119a: d061 beq.n 8001260 + 80011fc: 4b42 ldr r3, [pc, #264] ; (8001308 ) + 80011fe: 685b ldr r3, [r3, #4] + 8001200: f003 030c and.w r3, r3, #12 + 8001204: 2b08 cmp r3, #8 + 8001206: d061 beq.n 80012cc { if ((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_ON) - 800119c: 687b ldr r3, [r7, #4] - 800119e: 69db ldr r3, [r3, #28] - 80011a0: 2b02 cmp r3, #2 - 80011a2: d146 bne.n 8001232 + 8001208: 687b ldr r3, [r7, #4] + 800120a: 69db ldr r3, [r3, #28] + 800120c: 2b02 cmp r3, #2 + 800120e: d146 bne.n 800129e /* Check the parameters */ assert_param(IS_RCC_PLLSOURCE(RCC_OscInitStruct->PLL.PLLSource)); assert_param(IS_RCC_PLL_MUL(RCC_OscInitStruct->PLL.PLLMUL)); /* Disable the main PLL. */ __HAL_RCC_PLL_DISABLE(); - 80011a4: 4b3f ldr r3, [pc, #252] ; (80012a4 ) - 80011a6: 2200 movs r2, #0 - 80011a8: 601a str r2, [r3, #0] + 8001210: 4b3f ldr r3, [pc, #252] ; (8001310 ) + 8001212: 2200 movs r2, #0 + 8001214: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); - 80011aa: f7ff fb3f bl 800082c - 80011ae: 6138 str r0, [r7, #16] + 8001216: f7ff fb3f bl 8000898 + 800121a: 6138 str r0, [r7, #16] /* Wait till PLL is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 80011b0: e008 b.n 80011c4 + 800121c: e008 b.n 8001230 { if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) - 80011b2: f7ff fb3b bl 800082c - 80011b6: 4602 mov r2, r0 - 80011b8: 693b ldr r3, [r7, #16] - 80011ba: 1ad3 subs r3, r2, r3 - 80011bc: 2b02 cmp r3, #2 - 80011be: d901 bls.n 80011c4 + 800121e: f7ff fb3b bl 8000898 + 8001222: 4602 mov r2, r0 + 8001224: 693b ldr r3, [r7, #16] + 8001226: 1ad3 subs r3, r2, r3 + 8001228: 2b02 cmp r3, #2 + 800122a: d901 bls.n 8001230 { return HAL_TIMEOUT; - 80011c0: 2303 movs r3, #3 - 80011c2: e067 b.n 8001294 + 800122c: 2303 movs r3, #3 + 800122e: e067 b.n 8001300 while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 80011c4: 4b35 ldr r3, [pc, #212] ; (800129c ) - 80011c6: 681b ldr r3, [r3, #0] - 80011c8: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 - 80011cc: 2b00 cmp r3, #0 - 80011ce: d1f0 bne.n 80011b2 + 8001230: 4b35 ldr r3, [pc, #212] ; (8001308 ) + 8001232: 681b ldr r3, [r3, #0] + 8001234: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 + 8001238: 2b00 cmp r3, #0 + 800123a: d1f0 bne.n 800121e } } /* Configure the HSE prediv factor --------------------------------*/ /* It can be written only when the PLL is disabled. Not used in PLL source is different than HSE */ if (RCC_OscInitStruct->PLL.PLLSource == RCC_PLLSOURCE_HSE) - 80011d0: 687b ldr r3, [r7, #4] - 80011d2: 6a1b ldr r3, [r3, #32] - 80011d4: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 80011d8: d108 bne.n 80011ec + 800123c: 687b ldr r3, [r7, #4] + 800123e: 6a1b ldr r3, [r3, #32] + 8001240: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 + 8001244: d108 bne.n 8001258 /* Set PREDIV1 source */ SET_BIT(RCC->CFGR2, RCC_OscInitStruct->Prediv1Source); #endif /* RCC_CFGR2_PREDIV1SRC */ /* Set PREDIV1 Value */ __HAL_RCC_HSE_PREDIV_CONFIG(RCC_OscInitStruct->HSEPredivValue); - 80011da: 4b30 ldr r3, [pc, #192] ; (800129c ) - 80011dc: 685b ldr r3, [r3, #4] - 80011de: f423 3200 bic.w r2, r3, #131072 ; 0x20000 - 80011e2: 687b ldr r3, [r7, #4] - 80011e4: 689b ldr r3, [r3, #8] - 80011e6: 492d ldr r1, [pc, #180] ; (800129c ) - 80011e8: 4313 orrs r3, r2 - 80011ea: 604b str r3, [r1, #4] + 8001246: 4b30 ldr r3, [pc, #192] ; (8001308 ) + 8001248: 685b ldr r3, [r3, #4] + 800124a: f423 3200 bic.w r2, r3, #131072 ; 0x20000 + 800124e: 687b ldr r3, [r7, #4] + 8001250: 689b ldr r3, [r3, #8] + 8001252: 492d ldr r1, [pc, #180] ; (8001308 ) + 8001254: 4313 orrs r3, r2 + 8001256: 604b str r3, [r1, #4] } /* Configure the main PLL clock source and multiplication factors. */ __HAL_RCC_PLL_CONFIG(RCC_OscInitStruct->PLL.PLLSource, - 80011ec: 4b2b ldr r3, [pc, #172] ; (800129c ) - 80011ee: 685b ldr r3, [r3, #4] - 80011f0: f423 1274 bic.w r2, r3, #3997696 ; 0x3d0000 - 80011f4: 687b ldr r3, [r7, #4] - 80011f6: 6a19 ldr r1, [r3, #32] - 80011f8: 687b ldr r3, [r7, #4] - 80011fa: 6a5b ldr r3, [r3, #36] ; 0x24 - 80011fc: 430b orrs r3, r1 - 80011fe: 4927 ldr r1, [pc, #156] ; (800129c ) - 8001200: 4313 orrs r3, r2 - 8001202: 604b str r3, [r1, #4] + 8001258: 4b2b ldr r3, [pc, #172] ; (8001308 ) + 800125a: 685b ldr r3, [r3, #4] + 800125c: f423 1274 bic.w r2, r3, #3997696 ; 0x3d0000 + 8001260: 687b ldr r3, [r7, #4] + 8001262: 6a19 ldr r1, [r3, #32] + 8001264: 687b ldr r3, [r7, #4] + 8001266: 6a5b ldr r3, [r3, #36] ; 0x24 + 8001268: 430b orrs r3, r1 + 800126a: 4927 ldr r1, [pc, #156] ; (8001308 ) + 800126c: 4313 orrs r3, r2 + 800126e: 604b str r3, [r1, #4] RCC_OscInitStruct->PLL.PLLMUL); /* Enable the main PLL. */ __HAL_RCC_PLL_ENABLE(); - 8001204: 4b27 ldr r3, [pc, #156] ; (80012a4 ) - 8001206: 2201 movs r2, #1 - 8001208: 601a str r2, [r3, #0] + 8001270: 4b27 ldr r3, [pc, #156] ; (8001310 ) + 8001272: 2201 movs r2, #1 + 8001274: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); - 800120a: f7ff fb0f bl 800082c - 800120e: 6138 str r0, [r7, #16] + 8001276: f7ff fb0f bl 8000898 + 800127a: 6138 str r0, [r7, #16] /* Wait till PLL is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) - 8001210: e008 b.n 8001224 + 800127c: e008 b.n 8001290 { if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) - 8001212: f7ff fb0b bl 800082c - 8001216: 4602 mov r2, r0 - 8001218: 693b ldr r3, [r7, #16] - 800121a: 1ad3 subs r3, r2, r3 - 800121c: 2b02 cmp r3, #2 - 800121e: d901 bls.n 8001224 + 800127e: f7ff fb0b bl 8000898 + 8001282: 4602 mov r2, r0 + 8001284: 693b ldr r3, [r7, #16] + 8001286: 1ad3 subs r3, r2, r3 + 8001288: 2b02 cmp r3, #2 + 800128a: d901 bls.n 8001290 { return HAL_TIMEOUT; - 8001220: 2303 movs r3, #3 - 8001222: e037 b.n 8001294 + 800128c: 2303 movs r3, #3 + 800128e: e037 b.n 8001300 while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) - 8001224: 4b1d ldr r3, [pc, #116] ; (800129c ) - 8001226: 681b ldr r3, [r3, #0] - 8001228: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 - 800122c: 2b00 cmp r3, #0 - 800122e: d0f0 beq.n 8001212 - 8001230: e02f b.n 8001292 + 8001290: 4b1d ldr r3, [pc, #116] ; (8001308 ) + 8001292: 681b ldr r3, [r3, #0] + 8001294: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 + 8001298: 2b00 cmp r3, #0 + 800129a: d0f0 beq.n 800127e + 800129c: e02f b.n 80012fe } } else { /* Disable the main PLL. */ __HAL_RCC_PLL_DISABLE(); - 8001232: 4b1c ldr r3, [pc, #112] ; (80012a4 ) - 8001234: 2200 movs r2, #0 - 8001236: 601a str r2, [r3, #0] + 800129e: 4b1c ldr r3, [pc, #112] ; (8001310 ) + 80012a0: 2200 movs r2, #0 + 80012a2: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); - 8001238: f7ff faf8 bl 800082c - 800123c: 6138 str r0, [r7, #16] + 80012a4: f7ff faf8 bl 8000898 + 80012a8: 6138 str r0, [r7, #16] /* Wait till PLL is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 800123e: e008 b.n 8001252 + 80012aa: e008 b.n 80012be { if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) - 8001240: f7ff faf4 bl 800082c - 8001244: 4602 mov r2, r0 - 8001246: 693b ldr r3, [r7, #16] - 8001248: 1ad3 subs r3, r2, r3 - 800124a: 2b02 cmp r3, #2 - 800124c: d901 bls.n 8001252 + 80012ac: f7ff faf4 bl 8000898 + 80012b0: 4602 mov r2, r0 + 80012b2: 693b ldr r3, [r7, #16] + 80012b4: 1ad3 subs r3, r2, r3 + 80012b6: 2b02 cmp r3, #2 + 80012b8: d901 bls.n 80012be { return HAL_TIMEOUT; - 800124e: 2303 movs r3, #3 - 8001250: e020 b.n 8001294 + 80012ba: 2303 movs r3, #3 + 80012bc: e020 b.n 8001300 while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 8001252: 4b12 ldr r3, [pc, #72] ; (800129c ) - 8001254: 681b ldr r3, [r3, #0] - 8001256: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 - 800125a: 2b00 cmp r3, #0 - 800125c: d1f0 bne.n 8001240 - 800125e: e018 b.n 8001292 + 80012be: 4b12 ldr r3, [pc, #72] ; (8001308 ) + 80012c0: 681b ldr r3, [r3, #0] + 80012c2: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 + 80012c6: 2b00 cmp r3, #0 + 80012c8: d1f0 bne.n 80012ac + 80012ca: e018 b.n 80012fe } } else { /* Check if there is a request to disable the PLL used as System clock source */ if ((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) - 8001260: 687b ldr r3, [r7, #4] - 8001262: 69db ldr r3, [r3, #28] - 8001264: 2b01 cmp r3, #1 - 8001266: d101 bne.n 800126c + 80012cc: 687b ldr r3, [r7, #4] + 80012ce: 69db ldr r3, [r3, #28] + 80012d0: 2b01 cmp r3, #1 + 80012d2: d101 bne.n 80012d8 { return HAL_ERROR; - 8001268: 2301 movs r3, #1 - 800126a: e013 b.n 8001294 + 80012d4: 2301 movs r3, #1 + 80012d6: e013 b.n 8001300 } else { /* Do not return HAL_ERROR if request repeats the current configuration */ pll_config = RCC->CFGR; - 800126c: 4b0b ldr r3, [pc, #44] ; (800129c ) - 800126e: 685b ldr r3, [r3, #4] - 8001270: 60fb str r3, [r7, #12] + 80012d8: 4b0b ldr r3, [pc, #44] ; (8001308 ) + 80012da: 685b ldr r3, [r3, #4] + 80012dc: 60fb str r3, [r7, #12] if ((READ_BIT(pll_config, RCC_CFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) || - 8001272: 68fb ldr r3, [r7, #12] - 8001274: f403 3280 and.w r2, r3, #65536 ; 0x10000 - 8001278: 687b ldr r3, [r7, #4] - 800127a: 6a1b ldr r3, [r3, #32] - 800127c: 429a cmp r2, r3 - 800127e: d106 bne.n 800128e + 80012de: 68fb ldr r3, [r7, #12] + 80012e0: f403 3280 and.w r2, r3, #65536 ; 0x10000 + 80012e4: 687b ldr r3, [r7, #4] + 80012e6: 6a1b ldr r3, [r3, #32] + 80012e8: 429a cmp r2, r3 + 80012ea: d106 bne.n 80012fa (READ_BIT(pll_config, RCC_CFGR_PLLMULL) != RCC_OscInitStruct->PLL.PLLMUL)) - 8001280: 68fb ldr r3, [r7, #12] - 8001282: f403 1270 and.w r2, r3, #3932160 ; 0x3c0000 - 8001286: 687b ldr r3, [r7, #4] - 8001288: 6a5b ldr r3, [r3, #36] ; 0x24 + 80012ec: 68fb ldr r3, [r7, #12] + 80012ee: f403 1270 and.w r2, r3, #3932160 ; 0x3c0000 + 80012f2: 687b ldr r3, [r7, #4] + 80012f4: 6a5b ldr r3, [r3, #36] ; 0x24 if ((READ_BIT(pll_config, RCC_CFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) || - 800128a: 429a cmp r2, r3 - 800128c: d001 beq.n 8001292 + 80012f6: 429a cmp r2, r3 + 80012f8: d001 beq.n 80012fe { return HAL_ERROR; - 800128e: 2301 movs r3, #1 - 8001290: e000 b.n 8001294 + 80012fa: 2301 movs r3, #1 + 80012fc: e000 b.n 8001300 } } } } return HAL_OK; - 8001292: 2300 movs r3, #0 + 80012fe: 2300 movs r3, #0 } - 8001294: 4618 mov r0, r3 - 8001296: 3718 adds r7, #24 - 8001298: 46bd mov sp, r7 - 800129a: bd80 pop {r7, pc} - 800129c: 40021000 .word 0x40021000 - 80012a0: 40007000 .word 0x40007000 - 80012a4: 42420060 .word 0x42420060 + 8001300: 4618 mov r0, r3 + 8001302: 3718 adds r7, #24 + 8001304: 46bd mov sp, r7 + 8001306: bd80 pop {r7, pc} + 8001308: 40021000 .word 0x40021000 + 800130c: 40007000 .word 0x40007000 + 8001310: 42420060 .word 0x42420060 -080012a8 : +08001314 : * You can use @ref HAL_RCC_GetClockConfig() function to know which clock is * currently used as system clock source. * @retval HAL status */ HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency) { - 80012a8: b580 push {r7, lr} - 80012aa: b084 sub sp, #16 - 80012ac: af00 add r7, sp, #0 - 80012ae: 6078 str r0, [r7, #4] - 80012b0: 6039 str r1, [r7, #0] + 8001314: b580 push {r7, lr} + 8001316: b084 sub sp, #16 + 8001318: af00 add r7, sp, #0 + 800131a: 6078 str r0, [r7, #4] + 800131c: 6039 str r1, [r7, #0] uint32_t tickstart; /* Check Null pointer */ if (RCC_ClkInitStruct == NULL) - 80012b2: 687b ldr r3, [r7, #4] - 80012b4: 2b00 cmp r3, #0 - 80012b6: d101 bne.n 80012bc + 800131e: 687b ldr r3, [r7, #4] + 8001320: 2b00 cmp r3, #0 + 8001322: d101 bne.n 8001328 { return HAL_ERROR; - 80012b8: 2301 movs r3, #1 - 80012ba: e0d0 b.n 800145e + 8001324: 2301 movs r3, #1 + 8001326: e0d0 b.n 80014ca must be correctly programmed according to the frequency of the CPU clock (HCLK) of the device. */ #if defined(FLASH_ACR_LATENCY) /* Increasing the number of wait states because of higher CPU frequency */ if (FLatency > __HAL_FLASH_GET_LATENCY()) - 80012bc: 4b6a ldr r3, [pc, #424] ; (8001468 ) - 80012be: 681b ldr r3, [r3, #0] - 80012c0: f003 0307 and.w r3, r3, #7 - 80012c4: 683a ldr r2, [r7, #0] - 80012c6: 429a cmp r2, r3 - 80012c8: d910 bls.n 80012ec + 8001328: 4b6a ldr r3, [pc, #424] ; (80014d4 ) + 800132a: 681b ldr r3, [r3, #0] + 800132c: f003 0307 and.w r3, r3, #7 + 8001330: 683a ldr r2, [r7, #0] + 8001332: 429a cmp r2, r3 + 8001334: d910 bls.n 8001358 { /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */ __HAL_FLASH_SET_LATENCY(FLatency); - 80012ca: 4b67 ldr r3, [pc, #412] ; (8001468 ) - 80012cc: 681b ldr r3, [r3, #0] - 80012ce: f023 0207 bic.w r2, r3, #7 - 80012d2: 4965 ldr r1, [pc, #404] ; (8001468 ) - 80012d4: 683b ldr r3, [r7, #0] - 80012d6: 4313 orrs r3, r2 - 80012d8: 600b str r3, [r1, #0] + 8001336: 4b67 ldr r3, [pc, #412] ; (80014d4 ) + 8001338: 681b ldr r3, [r3, #0] + 800133a: f023 0207 bic.w r2, r3, #7 + 800133e: 4965 ldr r1, [pc, #404] ; (80014d4 ) + 8001340: 683b ldr r3, [r7, #0] + 8001342: 4313 orrs r3, r2 + 8001344: 600b str r3, [r1, #0] /* Check that the new number of wait states is taken into account to access the Flash memory by reading the FLASH_ACR register */ if (__HAL_FLASH_GET_LATENCY() != FLatency) - 80012da: 4b63 ldr r3, [pc, #396] ; (8001468 ) - 80012dc: 681b ldr r3, [r3, #0] - 80012de: f003 0307 and.w r3, r3, #7 - 80012e2: 683a ldr r2, [r7, #0] - 80012e4: 429a cmp r2, r3 - 80012e6: d001 beq.n 80012ec + 8001346: 4b63 ldr r3, [pc, #396] ; (80014d4 ) + 8001348: 681b ldr r3, [r3, #0] + 800134a: f003 0307 and.w r3, r3, #7 + 800134e: 683a ldr r2, [r7, #0] + 8001350: 429a cmp r2, r3 + 8001352: d001 beq.n 8001358 { return HAL_ERROR; - 80012e8: 2301 movs r3, #1 - 80012ea: e0b8 b.n 800145e + 8001354: 2301 movs r3, #1 + 8001356: e0b8 b.n 80014ca } } #endif /* FLASH_ACR_LATENCY */ /*-------------------------- HCLK Configuration --------------------------*/ if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK) - 80012ec: 687b ldr r3, [r7, #4] - 80012ee: 681b ldr r3, [r3, #0] - 80012f0: f003 0302 and.w r3, r3, #2 - 80012f4: 2b00 cmp r3, #0 - 80012f6: d020 beq.n 800133a + 8001358: 687b ldr r3, [r7, #4] + 800135a: 681b ldr r3, [r3, #0] + 800135c: f003 0302 and.w r3, r3, #2 + 8001360: 2b00 cmp r3, #0 + 8001362: d020 beq.n 80013a6 { /* 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) - 80012f8: 687b ldr r3, [r7, #4] - 80012fa: 681b ldr r3, [r3, #0] - 80012fc: f003 0304 and.w r3, r3, #4 - 8001300: 2b00 cmp r3, #0 - 8001302: d005 beq.n 8001310 + 8001364: 687b ldr r3, [r7, #4] + 8001366: 681b ldr r3, [r3, #0] + 8001368: f003 0304 and.w r3, r3, #4 + 800136c: 2b00 cmp r3, #0 + 800136e: d005 beq.n 800137c { MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_HCLK_DIV16); - 8001304: 4b59 ldr r3, [pc, #356] ; (800146c ) - 8001306: 685b ldr r3, [r3, #4] - 8001308: 4a58 ldr r2, [pc, #352] ; (800146c ) - 800130a: f443 63e0 orr.w r3, r3, #1792 ; 0x700 - 800130e: 6053 str r3, [r2, #4] + 8001370: 4b59 ldr r3, [pc, #356] ; (80014d8 ) + 8001372: 685b ldr r3, [r3, #4] + 8001374: 4a58 ldr r2, [pc, #352] ; (80014d8 ) + 8001376: f443 63e0 orr.w r3, r3, #1792 ; 0x700 + 800137a: 6053 str r3, [r2, #4] } if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2) - 8001310: 687b ldr r3, [r7, #4] - 8001312: 681b ldr r3, [r3, #0] - 8001314: f003 0308 and.w r3, r3, #8 - 8001318: 2b00 cmp r3, #0 - 800131a: d005 beq.n 8001328 + 800137c: 687b ldr r3, [r7, #4] + 800137e: 681b ldr r3, [r3, #0] + 8001380: f003 0308 and.w r3, r3, #8 + 8001384: 2b00 cmp r3, #0 + 8001386: d005 beq.n 8001394 { MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, (RCC_HCLK_DIV16 << 3)); - 800131c: 4b53 ldr r3, [pc, #332] ; (800146c ) - 800131e: 685b ldr r3, [r3, #4] - 8001320: 4a52 ldr r2, [pc, #328] ; (800146c ) - 8001322: f443 5360 orr.w r3, r3, #14336 ; 0x3800 - 8001326: 6053 str r3, [r2, #4] + 8001388: 4b53 ldr r3, [pc, #332] ; (80014d8 ) + 800138a: 685b ldr r3, [r3, #4] + 800138c: 4a52 ldr r2, [pc, #328] ; (80014d8 ) + 800138e: f443 5360 orr.w r3, r3, #14336 ; 0x3800 + 8001392: 6053 str r3, [r2, #4] } /* Set the new HCLK clock divider */ assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider)); MODIFY_REG(RCC->CFGR, RCC_CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider); - 8001328: 4b50 ldr r3, [pc, #320] ; (800146c ) - 800132a: 685b ldr r3, [r3, #4] - 800132c: f023 02f0 bic.w r2, r3, #240 ; 0xf0 - 8001330: 687b ldr r3, [r7, #4] - 8001332: 689b ldr r3, [r3, #8] - 8001334: 494d ldr r1, [pc, #308] ; (800146c ) - 8001336: 4313 orrs r3, r2 - 8001338: 604b str r3, [r1, #4] + 8001394: 4b50 ldr r3, [pc, #320] ; (80014d8 ) + 8001396: 685b ldr r3, [r3, #4] + 8001398: f023 02f0 bic.w r2, r3, #240 ; 0xf0 + 800139c: 687b ldr r3, [r7, #4] + 800139e: 689b ldr r3, [r3, #8] + 80013a0: 494d ldr r1, [pc, #308] ; (80014d8 ) + 80013a2: 4313 orrs r3, r2 + 80013a4: 604b str r3, [r1, #4] } /*------------------------- SYSCLK Configuration ---------------------------*/ if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK) - 800133a: 687b ldr r3, [r7, #4] - 800133c: 681b ldr r3, [r3, #0] - 800133e: f003 0301 and.w r3, r3, #1 - 8001342: 2b00 cmp r3, #0 - 8001344: d040 beq.n 80013c8 + 80013a6: 687b ldr r3, [r7, #4] + 80013a8: 681b ldr r3, [r3, #0] + 80013aa: f003 0301 and.w r3, r3, #1 + 80013ae: 2b00 cmp r3, #0 + 80013b0: d040 beq.n 8001434 { assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource)); /* HSE is selected as System Clock Source */ if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE) - 8001346: 687b ldr r3, [r7, #4] - 8001348: 685b ldr r3, [r3, #4] - 800134a: 2b01 cmp r3, #1 - 800134c: d107 bne.n 800135e + 80013b2: 687b ldr r3, [r7, #4] + 80013b4: 685b ldr r3, [r3, #4] + 80013b6: 2b01 cmp r3, #1 + 80013b8: d107 bne.n 80013ca { /* Check the HSE ready flag */ if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) - 800134e: 4b47 ldr r3, [pc, #284] ; (800146c ) - 8001350: 681b ldr r3, [r3, #0] - 8001352: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 8001356: 2b00 cmp r3, #0 - 8001358: d115 bne.n 8001386 + 80013ba: 4b47 ldr r3, [pc, #284] ; (80014d8 ) + 80013bc: 681b ldr r3, [r3, #0] + 80013be: f403 3300 and.w r3, r3, #131072 ; 0x20000 + 80013c2: 2b00 cmp r3, #0 + 80013c4: d115 bne.n 80013f2 { return HAL_ERROR; - 800135a: 2301 movs r3, #1 - 800135c: e07f b.n 800145e + 80013c6: 2301 movs r3, #1 + 80013c8: e07f b.n 80014ca } } /* PLL is selected as System Clock Source */ else if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK) - 800135e: 687b ldr r3, [r7, #4] - 8001360: 685b ldr r3, [r3, #4] - 8001362: 2b02 cmp r3, #2 - 8001364: d107 bne.n 8001376 + 80013ca: 687b ldr r3, [r7, #4] + 80013cc: 685b ldr r3, [r3, #4] + 80013ce: 2b02 cmp r3, #2 + 80013d0: d107 bne.n 80013e2 { /* Check the PLL ready flag */ if (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) - 8001366: 4b41 ldr r3, [pc, #260] ; (800146c ) - 8001368: 681b ldr r3, [r3, #0] - 800136a: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 - 800136e: 2b00 cmp r3, #0 - 8001370: d109 bne.n 8001386 + 80013d2: 4b41 ldr r3, [pc, #260] ; (80014d8 ) + 80013d4: 681b ldr r3, [r3, #0] + 80013d6: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 + 80013da: 2b00 cmp r3, #0 + 80013dc: d109 bne.n 80013f2 { return HAL_ERROR; - 8001372: 2301 movs r3, #1 - 8001374: e073 b.n 800145e + 80013de: 2301 movs r3, #1 + 80013e0: e073 b.n 80014ca } /* HSI is selected as System Clock Source */ else { /* Check the HSI ready flag */ if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) - 8001376: 4b3d ldr r3, [pc, #244] ; (800146c ) - 8001378: 681b ldr r3, [r3, #0] - 800137a: f003 0302 and.w r3, r3, #2 - 800137e: 2b00 cmp r3, #0 - 8001380: d101 bne.n 8001386 + 80013e2: 4b3d ldr r3, [pc, #244] ; (80014d8 ) + 80013e4: 681b ldr r3, [r3, #0] + 80013e6: f003 0302 and.w r3, r3, #2 + 80013ea: 2b00 cmp r3, #0 + 80013ec: d101 bne.n 80013f2 { return HAL_ERROR; - 8001382: 2301 movs r3, #1 - 8001384: e06b b.n 800145e + 80013ee: 2301 movs r3, #1 + 80013f0: e06b b.n 80014ca } } __HAL_RCC_SYSCLK_CONFIG(RCC_ClkInitStruct->SYSCLKSource); - 8001386: 4b39 ldr r3, [pc, #228] ; (800146c ) - 8001388: 685b ldr r3, [r3, #4] - 800138a: f023 0203 bic.w r2, r3, #3 - 800138e: 687b ldr r3, [r7, #4] - 8001390: 685b ldr r3, [r3, #4] - 8001392: 4936 ldr r1, [pc, #216] ; (800146c ) - 8001394: 4313 orrs r3, r2 - 8001396: 604b str r3, [r1, #4] + 80013f2: 4b39 ldr r3, [pc, #228] ; (80014d8 ) + 80013f4: 685b ldr r3, [r3, #4] + 80013f6: f023 0203 bic.w r2, r3, #3 + 80013fa: 687b ldr r3, [r7, #4] + 80013fc: 685b ldr r3, [r3, #4] + 80013fe: 4936 ldr r1, [pc, #216] ; (80014d8 ) + 8001400: 4313 orrs r3, r2 + 8001402: 604b str r3, [r1, #4] /* Get Start Tick */ tickstart = HAL_GetTick(); - 8001398: f7ff fa48 bl 800082c - 800139c: 60f8 str r0, [r7, #12] + 8001404: f7ff fa48 bl 8000898 + 8001408: 60f8 str r0, [r7, #12] while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos)) - 800139e: e00a b.n 80013b6 + 800140a: e00a b.n 8001422 { if ((HAL_GetTick() - tickstart) > CLOCKSWITCH_TIMEOUT_VALUE) - 80013a0: f7ff fa44 bl 800082c - 80013a4: 4602 mov r2, r0 - 80013a6: 68fb ldr r3, [r7, #12] - 80013a8: 1ad3 subs r3, r2, r3 - 80013aa: f241 3288 movw r2, #5000 ; 0x1388 - 80013ae: 4293 cmp r3, r2 - 80013b0: d901 bls.n 80013b6 + 800140c: f7ff fa44 bl 8000898 + 8001410: 4602 mov r2, r0 + 8001412: 68fb ldr r3, [r7, #12] + 8001414: 1ad3 subs r3, r2, r3 + 8001416: f241 3288 movw r2, #5000 ; 0x1388 + 800141a: 4293 cmp r3, r2 + 800141c: d901 bls.n 8001422 { return HAL_TIMEOUT; - 80013b2: 2303 movs r3, #3 - 80013b4: e053 b.n 800145e + 800141e: 2303 movs r3, #3 + 8001420: e053 b.n 80014ca while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos)) - 80013b6: 4b2d ldr r3, [pc, #180] ; (800146c ) - 80013b8: 685b ldr r3, [r3, #4] - 80013ba: f003 020c and.w r2, r3, #12 - 80013be: 687b ldr r3, [r7, #4] - 80013c0: 685b ldr r3, [r3, #4] - 80013c2: 009b lsls r3, r3, #2 - 80013c4: 429a cmp r2, r3 - 80013c6: d1eb bne.n 80013a0 + 8001422: 4b2d ldr r3, [pc, #180] ; (80014d8 ) + 8001424: 685b ldr r3, [r3, #4] + 8001426: f003 020c and.w r2, r3, #12 + 800142a: 687b ldr r3, [r7, #4] + 800142c: 685b ldr r3, [r3, #4] + 800142e: 009b lsls r3, r3, #2 + 8001430: 429a cmp r2, r3 + 8001432: d1eb bne.n 800140c } } #if defined(FLASH_ACR_LATENCY) /* Decreasing the number of wait states because of lower CPU frequency */ if (FLatency < __HAL_FLASH_GET_LATENCY()) - 80013c8: 4b27 ldr r3, [pc, #156] ; (8001468 ) - 80013ca: 681b ldr r3, [r3, #0] - 80013cc: f003 0307 and.w r3, r3, #7 - 80013d0: 683a ldr r2, [r7, #0] - 80013d2: 429a cmp r2, r3 - 80013d4: d210 bcs.n 80013f8 + 8001434: 4b27 ldr r3, [pc, #156] ; (80014d4 ) + 8001436: 681b ldr r3, [r3, #0] + 8001438: f003 0307 and.w r3, r3, #7 + 800143c: 683a ldr r2, [r7, #0] + 800143e: 429a cmp r2, r3 + 8001440: d210 bcs.n 8001464 { /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */ __HAL_FLASH_SET_LATENCY(FLatency); - 80013d6: 4b24 ldr r3, [pc, #144] ; (8001468 ) - 80013d8: 681b ldr r3, [r3, #0] - 80013da: f023 0207 bic.w r2, r3, #7 - 80013de: 4922 ldr r1, [pc, #136] ; (8001468 ) - 80013e0: 683b ldr r3, [r7, #0] - 80013e2: 4313 orrs r3, r2 - 80013e4: 600b str r3, [r1, #0] + 8001442: 4b24 ldr r3, [pc, #144] ; (80014d4 ) + 8001444: 681b ldr r3, [r3, #0] + 8001446: f023 0207 bic.w r2, r3, #7 + 800144a: 4922 ldr r1, [pc, #136] ; (80014d4 ) + 800144c: 683b ldr r3, [r7, #0] + 800144e: 4313 orrs r3, r2 + 8001450: 600b str r3, [r1, #0] /* Check that the new number of wait states is taken into account to access the Flash memory by reading the FLASH_ACR register */ if (__HAL_FLASH_GET_LATENCY() != FLatency) - 80013e6: 4b20 ldr r3, [pc, #128] ; (8001468 ) - 80013e8: 681b ldr r3, [r3, #0] - 80013ea: f003 0307 and.w r3, r3, #7 - 80013ee: 683a ldr r2, [r7, #0] - 80013f0: 429a cmp r2, r3 - 80013f2: d001 beq.n 80013f8 + 8001452: 4b20 ldr r3, [pc, #128] ; (80014d4 ) + 8001454: 681b ldr r3, [r3, #0] + 8001456: f003 0307 and.w r3, r3, #7 + 800145a: 683a ldr r2, [r7, #0] + 800145c: 429a cmp r2, r3 + 800145e: d001 beq.n 8001464 { return HAL_ERROR; - 80013f4: 2301 movs r3, #1 - 80013f6: e032 b.n 800145e + 8001460: 2301 movs r3, #1 + 8001462: e032 b.n 80014ca } } #endif /* FLASH_ACR_LATENCY */ /*-------------------------- PCLK1 Configuration ---------------------------*/ if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1) - 80013f8: 687b ldr r3, [r7, #4] - 80013fa: 681b ldr r3, [r3, #0] - 80013fc: f003 0304 and.w r3, r3, #4 - 8001400: 2b00 cmp r3, #0 - 8001402: d008 beq.n 8001416 + 8001464: 687b ldr r3, [r7, #4] + 8001466: 681b ldr r3, [r3, #0] + 8001468: f003 0304 and.w r3, r3, #4 + 800146c: 2b00 cmp r3, #0 + 800146e: d008 beq.n 8001482 { assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB1CLKDivider)); MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_ClkInitStruct->APB1CLKDivider); - 8001404: 4b19 ldr r3, [pc, #100] ; (800146c ) - 8001406: 685b ldr r3, [r3, #4] - 8001408: f423 62e0 bic.w r2, r3, #1792 ; 0x700 - 800140c: 687b ldr r3, [r7, #4] - 800140e: 68db ldr r3, [r3, #12] - 8001410: 4916 ldr r1, [pc, #88] ; (800146c ) - 8001412: 4313 orrs r3, r2 - 8001414: 604b str r3, [r1, #4] + 8001470: 4b19 ldr r3, [pc, #100] ; (80014d8 ) + 8001472: 685b ldr r3, [r3, #4] + 8001474: f423 62e0 bic.w r2, r3, #1792 ; 0x700 + 8001478: 687b ldr r3, [r7, #4] + 800147a: 68db ldr r3, [r3, #12] + 800147c: 4916 ldr r1, [pc, #88] ; (80014d8 ) + 800147e: 4313 orrs r3, r2 + 8001480: 604b str r3, [r1, #4] } /*-------------------------- PCLK2 Configuration ---------------------------*/ if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2) - 8001416: 687b ldr r3, [r7, #4] - 8001418: 681b ldr r3, [r3, #0] - 800141a: f003 0308 and.w r3, r3, #8 - 800141e: 2b00 cmp r3, #0 - 8001420: d009 beq.n 8001436 + 8001482: 687b ldr r3, [r7, #4] + 8001484: 681b ldr r3, [r3, #0] + 8001486: f003 0308 and.w r3, r3, #8 + 800148a: 2b00 cmp r3, #0 + 800148c: d009 beq.n 80014a2 { assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB2CLKDivider)); MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, ((RCC_ClkInitStruct->APB2CLKDivider) << 3)); - 8001422: 4b12 ldr r3, [pc, #72] ; (800146c ) - 8001424: 685b ldr r3, [r3, #4] - 8001426: f423 5260 bic.w r2, r3, #14336 ; 0x3800 - 800142a: 687b ldr r3, [r7, #4] - 800142c: 691b ldr r3, [r3, #16] - 800142e: 00db lsls r3, r3, #3 - 8001430: 490e ldr r1, [pc, #56] ; (800146c ) - 8001432: 4313 orrs r3, r2 - 8001434: 604b str r3, [r1, #4] + 800148e: 4b12 ldr r3, [pc, #72] ; (80014d8 ) + 8001490: 685b ldr r3, [r3, #4] + 8001492: f423 5260 bic.w r2, r3, #14336 ; 0x3800 + 8001496: 687b ldr r3, [r7, #4] + 8001498: 691b ldr r3, [r3, #16] + 800149a: 00db lsls r3, r3, #3 + 800149c: 490e ldr r1, [pc, #56] ; (80014d8 ) + 800149e: 4313 orrs r3, r2 + 80014a0: 604b str r3, [r1, #4] } /* Update the SystemCoreClock global variable */ SystemCoreClock = HAL_RCC_GetSysClockFreq() >> AHBPrescTable[(RCC->CFGR & RCC_CFGR_HPRE) >> RCC_CFGR_HPRE_Pos]; - 8001436: f000 f821 bl 800147c - 800143a: 4602 mov r2, r0 - 800143c: 4b0b ldr r3, [pc, #44] ; (800146c ) - 800143e: 685b ldr r3, [r3, #4] - 8001440: 091b lsrs r3, r3, #4 - 8001442: f003 030f and.w r3, r3, #15 - 8001446: 490a ldr r1, [pc, #40] ; (8001470 ) - 8001448: 5ccb ldrb r3, [r1, r3] - 800144a: fa22 f303 lsr.w r3, r2, r3 - 800144e: 4a09 ldr r2, [pc, #36] ; (8001474 ) - 8001450: 6013 str r3, [r2, #0] + 80014a2: f000 f821 bl 80014e8 + 80014a6: 4602 mov r2, r0 + 80014a8: 4b0b ldr r3, [pc, #44] ; (80014d8 ) + 80014aa: 685b ldr r3, [r3, #4] + 80014ac: 091b lsrs r3, r3, #4 + 80014ae: f003 030f and.w r3, r3, #15 + 80014b2: 490a ldr r1, [pc, #40] ; (80014dc ) + 80014b4: 5ccb ldrb r3, [r1, r3] + 80014b6: fa22 f303 lsr.w r3, r2, r3 + 80014ba: 4a09 ldr r2, [pc, #36] ; (80014e0 ) + 80014bc: 6013 str r3, [r2, #0] /* Configure the source of time base considering new system clocks settings*/ HAL_InitTick(uwTickPrio); - 8001452: 4b09 ldr r3, [pc, #36] ; (8001478 ) - 8001454: 681b ldr r3, [r3, #0] - 8001456: 4618 mov r0, r3 - 8001458: f7ff f9a6 bl 80007a8 + 80014be: 4b09 ldr r3, [pc, #36] ; (80014e4 ) + 80014c0: 681b ldr r3, [r3, #0] + 80014c2: 4618 mov r0, r3 + 80014c4: f7ff f9a6 bl 8000814 return HAL_OK; - 800145c: 2300 movs r3, #0 + 80014c8: 2300 movs r3, #0 } - 800145e: 4618 mov r0, r3 - 8001460: 3710 adds r7, #16 - 8001462: 46bd mov sp, r7 - 8001464: bd80 pop {r7, pc} - 8001466: bf00 nop - 8001468: 40022000 .word 0x40022000 - 800146c: 40021000 .word 0x40021000 - 8001470: 08003c88 .word 0x08003c88 - 8001474: 20000000 .word 0x20000000 - 8001478: 20000004 .word 0x20000004 + 80014ca: 4618 mov r0, r3 + 80014cc: 3710 adds r7, #16 + 80014ce: 46bd mov sp, r7 + 80014d0: bd80 pop {r7, pc} + 80014d2: bf00 nop + 80014d4: 40022000 .word 0x40022000 + 80014d8: 40021000 .word 0x40021000 + 80014dc: 080068bc .word 0x080068bc + 80014e0: 20000000 .word 0x20000000 + 80014e4: 20000004 .word 0x20000004 -0800147c : +080014e8 : * right SYSCLK value. Otherwise, any configuration based on this function will be incorrect. * * @retval SYSCLK frequency */ uint32_t HAL_RCC_GetSysClockFreq(void) { - 800147c: b490 push {r4, r7} - 800147e: b08a sub sp, #40 ; 0x28 - 8001480: af00 add r7, sp, #0 + 80014e8: b490 push {r4, r7} + 80014ea: b08a sub sp, #40 ; 0x28 + 80014ec: af00 add r7, sp, #0 #if defined(RCC_CFGR2_PREDIV1SRC) const uint8_t aPLLMULFactorTable[14] = {0, 0, 4, 5, 6, 7, 8, 9, 0, 0, 0, 0, 0, 13}; const uint8_t aPredivFactorTable[16] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16}; #else const uint8_t aPLLMULFactorTable[16] = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16}; - 8001482: 4b2a ldr r3, [pc, #168] ; (800152c ) - 8001484: 1d3c adds r4, r7, #4 - 8001486: cb0f ldmia r3, {r0, r1, r2, r3} - 8001488: e884 000f stmia.w r4, {r0, r1, r2, r3} + 80014ee: 4b2a ldr r3, [pc, #168] ; (8001598 ) + 80014f0: 1d3c adds r4, r7, #4 + 80014f2: cb0f ldmia r3, {r0, r1, r2, r3} + 80014f4: e884 000f stmia.w r4, {r0, r1, r2, r3} #if defined(RCC_CFGR2_PREDIV1) const uint8_t aPredivFactorTable[16] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16}; #else const uint8_t aPredivFactorTable[2] = {1, 2}; - 800148c: f240 2301 movw r3, #513 ; 0x201 - 8001490: 803b strh r3, [r7, #0] + 80014f8: f240 2301 movw r3, #513 ; 0x201 + 80014fc: 803b strh r3, [r7, #0] #endif /*RCC_CFGR2_PREDIV1*/ #endif uint32_t tmpreg = 0U, prediv = 0U, pllclk = 0U, pllmul = 0U; - 8001492: 2300 movs r3, #0 - 8001494: 61fb str r3, [r7, #28] - 8001496: 2300 movs r3, #0 - 8001498: 61bb str r3, [r7, #24] - 800149a: 2300 movs r3, #0 - 800149c: 627b str r3, [r7, #36] ; 0x24 - 800149e: 2300 movs r3, #0 - 80014a0: 617b str r3, [r7, #20] + 80014fe: 2300 movs r3, #0 + 8001500: 61fb str r3, [r7, #28] + 8001502: 2300 movs r3, #0 + 8001504: 61bb str r3, [r7, #24] + 8001506: 2300 movs r3, #0 + 8001508: 627b str r3, [r7, #36] ; 0x24 + 800150a: 2300 movs r3, #0 + 800150c: 617b str r3, [r7, #20] uint32_t sysclockfreq = 0U; - 80014a2: 2300 movs r3, #0 - 80014a4: 623b str r3, [r7, #32] + 800150e: 2300 movs r3, #0 + 8001510: 623b str r3, [r7, #32] #if defined(RCC_CFGR2_PREDIV1SRC) uint32_t prediv2 = 0U, pll2mul = 0U; #endif /*RCC_CFGR2_PREDIV1SRC*/ tmpreg = RCC->CFGR; - 80014a6: 4b22 ldr r3, [pc, #136] ; (8001530 ) - 80014a8: 685b ldr r3, [r3, #4] - 80014aa: 61fb str r3, [r7, #28] + 8001512: 4b22 ldr r3, [pc, #136] ; (800159c ) + 8001514: 685b ldr r3, [r3, #4] + 8001516: 61fb str r3, [r7, #28] /* Get SYSCLK source -------------------------------------------------------*/ switch (tmpreg & RCC_CFGR_SWS) - 80014ac: 69fb ldr r3, [r7, #28] - 80014ae: f003 030c and.w r3, r3, #12 - 80014b2: 2b04 cmp r3, #4 - 80014b4: d002 beq.n 80014bc - 80014b6: 2b08 cmp r3, #8 - 80014b8: d003 beq.n 80014c2 - 80014ba: e02d b.n 8001518 + 8001518: 69fb ldr r3, [r7, #28] + 800151a: f003 030c and.w r3, r3, #12 + 800151e: 2b04 cmp r3, #4 + 8001520: d002 beq.n 8001528 + 8001522: 2b08 cmp r3, #8 + 8001524: d003 beq.n 800152e + 8001526: e02d b.n 8001584 { case RCC_SYSCLKSOURCE_STATUS_HSE: /* HSE used as system clock */ { sysclockfreq = HSE_VALUE; - 80014bc: 4b1d ldr r3, [pc, #116] ; (8001534 ) - 80014be: 623b str r3, [r7, #32] + 8001528: 4b1d ldr r3, [pc, #116] ; (80015a0 ) + 800152a: 623b str r3, [r7, #32] break; - 80014c0: e02d b.n 800151e + 800152c: e02d b.n 800158a } case RCC_SYSCLKSOURCE_STATUS_PLLCLK: /* PLL used as system clock */ { pllmul = aPLLMULFactorTable[(uint32_t)(tmpreg & RCC_CFGR_PLLMULL) >> RCC_CFGR_PLLMULL_Pos]; - 80014c2: 69fb ldr r3, [r7, #28] - 80014c4: 0c9b lsrs r3, r3, #18 - 80014c6: f003 030f and.w r3, r3, #15 - 80014ca: f107 0228 add.w r2, r7, #40 ; 0x28 - 80014ce: 4413 add r3, r2 - 80014d0: f813 3c24 ldrb.w r3, [r3, #-36] - 80014d4: 617b str r3, [r7, #20] + 800152e: 69fb ldr r3, [r7, #28] + 8001530: 0c9b lsrs r3, r3, #18 + 8001532: f003 030f and.w r3, r3, #15 + 8001536: f107 0228 add.w r2, r7, #40 ; 0x28 + 800153a: 4413 add r3, r2 + 800153c: f813 3c24 ldrb.w r3, [r3, #-36] + 8001540: 617b str r3, [r7, #20] if ((tmpreg & RCC_CFGR_PLLSRC) != RCC_PLLSOURCE_HSI_DIV2) - 80014d6: 69fb ldr r3, [r7, #28] - 80014d8: f403 3380 and.w r3, r3, #65536 ; 0x10000 - 80014dc: 2b00 cmp r3, #0 - 80014de: d013 beq.n 8001508 + 8001542: 69fb ldr r3, [r7, #28] + 8001544: f403 3380 and.w r3, r3, #65536 ; 0x10000 + 8001548: 2b00 cmp r3, #0 + 800154a: d013 beq.n 8001574 { #if defined(RCC_CFGR2_PREDIV1) prediv = aPredivFactorTable[(uint32_t)(RCC->CFGR2 & RCC_CFGR2_PREDIV1) >> RCC_CFGR2_PREDIV1_Pos]; #else prediv = aPredivFactorTable[(uint32_t)(RCC->CFGR & RCC_CFGR_PLLXTPRE) >> RCC_CFGR_PLLXTPRE_Pos]; - 80014e0: 4b13 ldr r3, [pc, #76] ; (8001530 ) - 80014e2: 685b ldr r3, [r3, #4] - 80014e4: 0c5b lsrs r3, r3, #17 - 80014e6: f003 0301 and.w r3, r3, #1 - 80014ea: f107 0228 add.w r2, r7, #40 ; 0x28 - 80014ee: 4413 add r3, r2 - 80014f0: f813 3c28 ldrb.w r3, [r3, #-40] - 80014f4: 61bb str r3, [r7, #24] + 800154c: 4b13 ldr r3, [pc, #76] ; (800159c ) + 800154e: 685b ldr r3, [r3, #4] + 8001550: 0c5b lsrs r3, r3, #17 + 8001552: f003 0301 and.w r3, r3, #1 + 8001556: f107 0228 add.w r2, r7, #40 ; 0x28 + 800155a: 4413 add r3, r2 + 800155c: f813 3c28 ldrb.w r3, [r3, #-40] + 8001560: 61bb str r3, [r7, #24] { pllclk = pllclk / 2; } #else /* HSE used as PLL clock source : PLLCLK = HSE/PREDIV1 * PLLMUL */ pllclk = (uint32_t)((HSE_VALUE * pllmul) / prediv); - 80014f6: 697b ldr r3, [r7, #20] - 80014f8: 4a0e ldr r2, [pc, #56] ; (8001534 ) - 80014fa: fb02 f203 mul.w r2, r2, r3 - 80014fe: 69bb ldr r3, [r7, #24] - 8001500: fbb2 f3f3 udiv r3, r2, r3 - 8001504: 627b str r3, [r7, #36] ; 0x24 - 8001506: e004 b.n 8001512 + 8001562: 697b ldr r3, [r7, #20] + 8001564: 4a0e ldr r2, [pc, #56] ; (80015a0 ) + 8001566: fb02 f203 mul.w r2, r2, r3 + 800156a: 69bb ldr r3, [r7, #24] + 800156c: fbb2 f3f3 udiv r3, r2, r3 + 8001570: 627b str r3, [r7, #36] ; 0x24 + 8001572: e004 b.n 800157e #endif /*RCC_CFGR2_PREDIV1SRC*/ } else { /* HSI used as PLL clock source : PLLCLK = HSI/2 * PLLMUL */ pllclk = (uint32_t)((HSI_VALUE >> 1) * pllmul); - 8001508: 697b ldr r3, [r7, #20] - 800150a: 4a0b ldr r2, [pc, #44] ; (8001538 ) - 800150c: fb02 f303 mul.w r3, r2, r3 - 8001510: 627b str r3, [r7, #36] ; 0x24 + 8001574: 697b ldr r3, [r7, #20] + 8001576: 4a0b ldr r2, [pc, #44] ; (80015a4 ) + 8001578: fb02 f303 mul.w r3, r2, r3 + 800157c: 627b str r3, [r7, #36] ; 0x24 } sysclockfreq = pllclk; - 8001512: 6a7b ldr r3, [r7, #36] ; 0x24 - 8001514: 623b str r3, [r7, #32] + 800157e: 6a7b ldr r3, [r7, #36] ; 0x24 + 8001580: 623b str r3, [r7, #32] break; - 8001516: e002 b.n 800151e + 8001582: e002 b.n 800158a } case RCC_SYSCLKSOURCE_STATUS_HSI: /* HSI used as system clock source */ default: /* HSI used as system clock */ { sysclockfreq = HSI_VALUE; - 8001518: 4b06 ldr r3, [pc, #24] ; (8001534 ) - 800151a: 623b str r3, [r7, #32] + 8001584: 4b06 ldr r3, [pc, #24] ; (80015a0 ) + 8001586: 623b str r3, [r7, #32] break; - 800151c: bf00 nop + 8001588: bf00 nop } } return sysclockfreq; - 800151e: 6a3b ldr r3, [r7, #32] + 800158a: 6a3b ldr r3, [r7, #32] } - 8001520: 4618 mov r0, r3 - 8001522: 3728 adds r7, #40 ; 0x28 - 8001524: 46bd mov sp, r7 - 8001526: bc90 pop {r4, r7} - 8001528: 4770 bx lr - 800152a: bf00 nop - 800152c: 08003c64 .word 0x08003c64 - 8001530: 40021000 .word 0x40021000 - 8001534: 007a1200 .word 0x007a1200 - 8001538: 003d0900 .word 0x003d0900 + 800158c: 4618 mov r0, r3 + 800158e: 3728 adds r7, #40 ; 0x28 + 8001590: 46bd mov sp, r7 + 8001592: bc90 pop {r4, r7} + 8001594: 4770 bx lr + 8001596: bf00 nop + 8001598: 08006848 .word 0x08006848 + 800159c: 40021000 .word 0x40021000 + 80015a0: 007a1200 .word 0x007a1200 + 80015a4: 003d0900 .word 0x003d0900 -0800153c : +080015a8 : * @brief This function provides delay (in milliseconds) based on CPU cycles method. * @param mdelay: specifies the delay time length, in milliseconds. * @retval None */ static void RCC_Delay(uint32_t mdelay) { - 800153c: b480 push {r7} - 800153e: b085 sub sp, #20 - 8001540: af00 add r7, sp, #0 - 8001542: 6078 str r0, [r7, #4] + 80015a8: b480 push {r7} + 80015aa: b085 sub sp, #20 + 80015ac: af00 add r7, sp, #0 + 80015ae: 6078 str r0, [r7, #4] __IO uint32_t Delay = mdelay * (SystemCoreClock / 8U / 1000U); - 8001544: 4b0a ldr r3, [pc, #40] ; (8001570 ) - 8001546: 681b ldr r3, [r3, #0] - 8001548: 4a0a ldr r2, [pc, #40] ; (8001574 ) - 800154a: fba2 2303 umull r2, r3, r2, r3 - 800154e: 0a5b lsrs r3, r3, #9 - 8001550: 687a ldr r2, [r7, #4] - 8001552: fb02 f303 mul.w r3, r2, r3 - 8001556: 60fb str r3, [r7, #12] + 80015b0: 4b0a ldr r3, [pc, #40] ; (80015dc ) + 80015b2: 681b ldr r3, [r3, #0] + 80015b4: 4a0a ldr r2, [pc, #40] ; (80015e0 ) + 80015b6: fba2 2303 umull r2, r3, r2, r3 + 80015ba: 0a5b lsrs r3, r3, #9 + 80015bc: 687a ldr r2, [r7, #4] + 80015be: fb02 f303 mul.w r3, r2, r3 + 80015c2: 60fb str r3, [r7, #12] do { __NOP(); - 8001558: bf00 nop + 80015c4: bf00 nop } while (Delay --); - 800155a: 68fb ldr r3, [r7, #12] - 800155c: 1e5a subs r2, r3, #1 - 800155e: 60fa str r2, [r7, #12] - 8001560: 2b00 cmp r3, #0 - 8001562: d1f9 bne.n 8001558 + 80015c6: 68fb ldr r3, [r7, #12] + 80015c8: 1e5a subs r2, r3, #1 + 80015ca: 60fa str r2, [r7, #12] + 80015cc: 2b00 cmp r3, #0 + 80015ce: d1f9 bne.n 80015c4 } - 8001564: bf00 nop - 8001566: bf00 nop - 8001568: 3714 adds r7, #20 - 800156a: 46bd mov sp, r7 - 800156c: bc80 pop {r7} - 800156e: 4770 bx lr - 8001570: 20000000 .word 0x20000000 - 8001574: 10624dd3 .word 0x10624dd3 + 80015d0: bf00 nop + 80015d2: bf00 nop + 80015d4: 3714 adds r7, #20 + 80015d6: 46bd mov sp, r7 + 80015d8: bc80 pop {r7} + 80015da: 4770 bx lr + 80015dc: 20000000 .word 0x20000000 + 80015e0: 10624dd3 .word 0x10624dd3 -08001578 : +080015e4 : * @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) { - 8001578: b580 push {r7, lr} - 800157a: b082 sub sp, #8 - 800157c: af00 add r7, sp, #0 - 800157e: 6078 str r0, [r7, #4] + 80015e4: b580 push {r7, lr} + 80015e6: b082 sub sp, #8 + 80015e8: af00 add r7, sp, #0 + 80015ea: 6078 str r0, [r7, #4] /* Check the SPI handle allocation */ if (hspi == NULL) - 8001580: 687b ldr r3, [r7, #4] - 8001582: 2b00 cmp r3, #0 - 8001584: d101 bne.n 800158a + 80015ec: 687b ldr r3, [r7, #4] + 80015ee: 2b00 cmp r3, #0 + 80015f0: d101 bne.n 80015f6 { return HAL_ERROR; - 8001586: 2301 movs r3, #1 - 8001588: e076 b.n 8001678 + 80015f2: 2301 movs r3, #1 + 80015f4: e076 b.n 80016e4 assert_param(IS_SPI_BAUDRATE_PRESCALER(hspi->Init.BaudRatePrescaler)); assert_param(IS_SPI_FIRST_BIT(hspi->Init.FirstBit)); /* TI mode is not supported on this device. TIMode parameter is mandatory equal to SPI_TIMODE_DISABLE */ assert_param(IS_SPI_TIMODE(hspi->Init.TIMode)); if (hspi->Init.TIMode == SPI_TIMODE_DISABLE) - 800158a: 687b ldr r3, [r7, #4] - 800158c: 6a5b ldr r3, [r3, #36] ; 0x24 - 800158e: 2b00 cmp r3, #0 - 8001590: d108 bne.n 80015a4 + 80015f6: 687b ldr r3, [r7, #4] + 80015f8: 6a5b ldr r3, [r3, #36] ; 0x24 + 80015fa: 2b00 cmp r3, #0 + 80015fc: d108 bne.n 8001610 { assert_param(IS_SPI_CPOL(hspi->Init.CLKPolarity)); assert_param(IS_SPI_CPHA(hspi->Init.CLKPhase)); if (hspi->Init.Mode == SPI_MODE_MASTER) - 8001592: 687b ldr r3, [r7, #4] - 8001594: 685b ldr r3, [r3, #4] - 8001596: f5b3 7f82 cmp.w r3, #260 ; 0x104 - 800159a: d009 beq.n 80015b0 + 80015fe: 687b ldr r3, [r7, #4] + 8001600: 685b ldr r3, [r3, #4] + 8001602: f5b3 7f82 cmp.w r3, #260 ; 0x104 + 8001606: d009 beq.n 800161c 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; - 800159c: 687b ldr r3, [r7, #4] - 800159e: 2200 movs r2, #0 - 80015a0: 61da str r2, [r3, #28] - 80015a2: e005 b.n 80015b0 + 8001608: 687b ldr r3, [r7, #4] + 800160a: 2200 movs r2, #0 + 800160c: 61da str r2, [r3, #28] + 800160e: e005 b.n 800161c else { assert_param(IS_SPI_BAUDRATE_PRESCALER(hspi->Init.BaudRatePrescaler)); /* Force polarity and phase to TI protocaol requirements */ hspi->Init.CLKPolarity = SPI_POLARITY_LOW; - 80015a4: 687b ldr r3, [r7, #4] - 80015a6: 2200 movs r2, #0 - 80015a8: 611a str r2, [r3, #16] + 8001610: 687b ldr r3, [r7, #4] + 8001612: 2200 movs r2, #0 + 8001614: 611a str r2, [r3, #16] hspi->Init.CLKPhase = SPI_PHASE_1EDGE; - 80015aa: 687b ldr r3, [r7, #4] - 80015ac: 2200 movs r2, #0 - 80015ae: 615a str r2, [r3, #20] + 8001616: 687b ldr r3, [r7, #4] + 8001618: 2200 movs r2, #0 + 800161a: 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; - 80015b0: 687b ldr r3, [r7, #4] - 80015b2: 2200 movs r2, #0 - 80015b4: 629a str r2, [r3, #40] ; 0x28 + 800161c: 687b ldr r3, [r7, #4] + 800161e: 2200 movs r2, #0 + 8001620: 629a str r2, [r3, #40] ; 0x28 #endif /* USE_SPI_CRC */ if (hspi->State == HAL_SPI_STATE_RESET) - 80015b6: 687b ldr r3, [r7, #4] - 80015b8: f893 3051 ldrb.w r3, [r3, #81] ; 0x51 - 80015bc: b2db uxtb r3, r3 - 80015be: 2b00 cmp r3, #0 - 80015c0: d106 bne.n 80015d0 + 8001622: 687b ldr r3, [r7, #4] + 8001624: f893 3051 ldrb.w r3, [r3, #81] ; 0x51 + 8001628: b2db uxtb r3, r3 + 800162a: 2b00 cmp r3, #0 + 800162c: d106 bne.n 800163c { /* Allocate lock resource and initialize it */ hspi->Lock = HAL_UNLOCKED; - 80015c2: 687b ldr r3, [r7, #4] - 80015c4: 2200 movs r2, #0 - 80015c6: f883 2050 strb.w r2, [r3, #80] ; 0x50 + 800162e: 687b ldr r3, [r7, #4] + 8001630: 2200 movs r2, #0 + 8001632: 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); - 80015ca: 6878 ldr r0, [r7, #4] - 80015cc: f7fe ffd8 bl 8000580 + 8001636: 6878 ldr r0, [r7, #4] + 8001638: f7fe ffa2 bl 8000580 #endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ } hspi->State = HAL_SPI_STATE_BUSY; - 80015d0: 687b ldr r3, [r7, #4] - 80015d2: 2202 movs r2, #2 - 80015d4: f883 2051 strb.w r2, [r3, #81] ; 0x51 + 800163c: 687b ldr r3, [r7, #4] + 800163e: 2202 movs r2, #2 + 8001640: f883 2051 strb.w r2, [r3, #81] ; 0x51 /* Disable the selected SPI peripheral */ __HAL_SPI_DISABLE(hspi); - 80015d8: 687b ldr r3, [r7, #4] - 80015da: 681b ldr r3, [r3, #0] - 80015dc: 681a ldr r2, [r3, #0] - 80015de: 687b ldr r3, [r7, #4] - 80015e0: 681b ldr r3, [r3, #0] - 80015e2: f022 0240 bic.w r2, r2, #64 ; 0x40 - 80015e6: 601a str r2, [r3, #0] + 8001644: 687b ldr r3, [r7, #4] + 8001646: 681b ldr r3, [r3, #0] + 8001648: 681a ldr r2, [r3, #0] + 800164a: 687b ldr r3, [r7, #4] + 800164c: 681b ldr r3, [r3, #0] + 800164e: f022 0240 bic.w r2, r2, #64 ; 0x40 + 8001652: 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)) | - 80015e8: 687b ldr r3, [r7, #4] - 80015ea: 685b ldr r3, [r3, #4] - 80015ec: f403 7282 and.w r2, r3, #260 ; 0x104 - 80015f0: 687b ldr r3, [r7, #4] - 80015f2: 689b ldr r3, [r3, #8] - 80015f4: f403 4304 and.w r3, r3, #33792 ; 0x8400 - 80015f8: 431a orrs r2, r3 - 80015fa: 687b ldr r3, [r7, #4] - 80015fc: 68db ldr r3, [r3, #12] - 80015fe: f403 6300 and.w r3, r3, #2048 ; 0x800 - 8001602: 431a orrs r2, r3 - 8001604: 687b ldr r3, [r7, #4] - 8001606: 691b ldr r3, [r3, #16] - 8001608: f003 0302 and.w r3, r3, #2 - 800160c: 431a orrs r2, r3 - 800160e: 687b ldr r3, [r7, #4] - 8001610: 695b ldr r3, [r3, #20] - 8001612: f003 0301 and.w r3, r3, #1 - 8001616: 431a orrs r2, r3 - 8001618: 687b ldr r3, [r7, #4] - 800161a: 699b ldr r3, [r3, #24] - 800161c: f403 7300 and.w r3, r3, #512 ; 0x200 - 8001620: 431a orrs r2, r3 - 8001622: 687b ldr r3, [r7, #4] - 8001624: 69db ldr r3, [r3, #28] - 8001626: f003 0338 and.w r3, r3, #56 ; 0x38 - 800162a: 431a orrs r2, r3 - 800162c: 687b ldr r3, [r7, #4] - 800162e: 6a1b ldr r3, [r3, #32] - 8001630: f003 0380 and.w r3, r3, #128 ; 0x80 - 8001634: ea42 0103 orr.w r1, r2, r3 - 8001638: 687b ldr r3, [r7, #4] - 800163a: 6a9b ldr r3, [r3, #40] ; 0x28 - 800163c: f403 5200 and.w r2, r3, #8192 ; 0x2000 - 8001640: 687b ldr r3, [r7, #4] - 8001642: 681b ldr r3, [r3, #0] - 8001644: 430a orrs r2, r1 - 8001646: 601a str r2, [r3, #0] + 8001654: 687b ldr r3, [r7, #4] + 8001656: 685b ldr r3, [r3, #4] + 8001658: f403 7282 and.w r2, r3, #260 ; 0x104 + 800165c: 687b ldr r3, [r7, #4] + 800165e: 689b ldr r3, [r3, #8] + 8001660: f403 4304 and.w r3, r3, #33792 ; 0x8400 + 8001664: 431a orrs r2, r3 + 8001666: 687b ldr r3, [r7, #4] + 8001668: 68db ldr r3, [r3, #12] + 800166a: f403 6300 and.w r3, r3, #2048 ; 0x800 + 800166e: 431a orrs r2, r3 + 8001670: 687b ldr r3, [r7, #4] + 8001672: 691b ldr r3, [r3, #16] + 8001674: f003 0302 and.w r3, r3, #2 + 8001678: 431a orrs r2, r3 + 800167a: 687b ldr r3, [r7, #4] + 800167c: 695b ldr r3, [r3, #20] + 800167e: f003 0301 and.w r3, r3, #1 + 8001682: 431a orrs r2, r3 + 8001684: 687b ldr r3, [r7, #4] + 8001686: 699b ldr r3, [r3, #24] + 8001688: f403 7300 and.w r3, r3, #512 ; 0x200 + 800168c: 431a orrs r2, r3 + 800168e: 687b ldr r3, [r7, #4] + 8001690: 69db ldr r3, [r3, #28] + 8001692: f003 0338 and.w r3, r3, #56 ; 0x38 + 8001696: 431a orrs r2, r3 + 8001698: 687b ldr r3, [r7, #4] + 800169a: 6a1b ldr r3, [r3, #32] + 800169c: f003 0380 and.w r3, r3, #128 ; 0x80 + 80016a0: ea42 0103 orr.w r1, r2, r3 + 80016a4: 687b ldr r3, [r7, #4] + 80016a6: 6a9b ldr r3, [r3, #40] ; 0x28 + 80016a8: f403 5200 and.w r2, r3, #8192 ; 0x2000 + 80016ac: 687b ldr r3, [r7, #4] + 80016ae: 681b ldr r3, [r3, #0] + 80016b0: 430a orrs r2, r1 + 80016b2: 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 */ WRITE_REG(hspi->Instance->CR2, ((hspi->Init.NSS >> 16U) & SPI_CR2_SSOE)); - 8001648: 687b ldr r3, [r7, #4] - 800164a: 699b ldr r3, [r3, #24] - 800164c: 0c1a lsrs r2, r3, #16 - 800164e: 687b ldr r3, [r7, #4] - 8001650: 681b ldr r3, [r3, #0] - 8001652: f002 0204 and.w r2, r2, #4 - 8001656: 605a str r2, [r3, #4] + 80016b4: 687b ldr r3, [r7, #4] + 80016b6: 699b ldr r3, [r3, #24] + 80016b8: 0c1a lsrs r2, r3, #16 + 80016ba: 687b ldr r3, [r7, #4] + 80016bc: 681b ldr r3, [r3, #0] + 80016be: f002 0204 and.w r2, r2, #4 + 80016c2: 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); - 8001658: 687b ldr r3, [r7, #4] - 800165a: 681b ldr r3, [r3, #0] - 800165c: 69da ldr r2, [r3, #28] - 800165e: 687b ldr r3, [r7, #4] - 8001660: 681b ldr r3, [r3, #0] - 8001662: f422 6200 bic.w r2, r2, #2048 ; 0x800 - 8001666: 61da str r2, [r3, #28] + 80016c4: 687b ldr r3, [r7, #4] + 80016c6: 681b ldr r3, [r3, #0] + 80016c8: 69da ldr r2, [r3, #28] + 80016ca: 687b ldr r3, [r7, #4] + 80016cc: 681b ldr r3, [r3, #0] + 80016ce: f422 6200 bic.w r2, r2, #2048 ; 0x800 + 80016d2: 61da str r2, [r3, #28] #endif /* SPI_I2SCFGR_I2SMOD */ hspi->ErrorCode = HAL_SPI_ERROR_NONE; - 8001668: 687b ldr r3, [r7, #4] - 800166a: 2200 movs r2, #0 - 800166c: 655a str r2, [r3, #84] ; 0x54 + 80016d4: 687b ldr r3, [r7, #4] + 80016d6: 2200 movs r2, #0 + 80016d8: 655a str r2, [r3, #84] ; 0x54 hspi->State = HAL_SPI_STATE_READY; - 800166e: 687b ldr r3, [r7, #4] - 8001670: 2201 movs r2, #1 - 8001672: f883 2051 strb.w r2, [r3, #81] ; 0x51 + 80016da: 687b ldr r3, [r7, #4] + 80016dc: 2201 movs r2, #1 + 80016de: f883 2051 strb.w r2, [r3, #81] ; 0x51 return HAL_OK; - 8001676: 2300 movs r3, #0 + 80016e2: 2300 movs r3, #0 } - 8001678: 4618 mov r0, r3 - 800167a: 3708 adds r7, #8 - 800167c: 46bd mov sp, r7 - 800167e: bd80 pop {r7, pc} + 80016e4: 4618 mov r0, r3 + 80016e6: 3708 adds r7, #8 + 80016e8: 46bd mov sp, r7 + 80016ea: bd80 pop {r7, pc} -08001680 : +080016ec : * @param Size amount of data to be sent * @param Timeout Timeout duration * @retval HAL status */ HAL_StatusTypeDef HAL_SPI_Transmit(SPI_HandleTypeDef *hspi, uint8_t *pData, uint16_t Size, uint32_t Timeout) { - 8001680: b580 push {r7, lr} - 8001682: b088 sub sp, #32 - 8001684: af00 add r7, sp, #0 - 8001686: 60f8 str r0, [r7, #12] - 8001688: 60b9 str r1, [r7, #8] - 800168a: 603b str r3, [r7, #0] - 800168c: 4613 mov r3, r2 - 800168e: 80fb strh r3, [r7, #6] + 80016ec: b580 push {r7, lr} + 80016ee: b088 sub sp, #32 + 80016f0: af00 add r7, sp, #0 + 80016f2: 60f8 str r0, [r7, #12] + 80016f4: 60b9 str r1, [r7, #8] + 80016f6: 603b str r3, [r7, #0] + 80016f8: 4613 mov r3, r2 + 80016fa: 80fb strh r3, [r7, #6] uint32_t tickstart; HAL_StatusTypeDef errorcode = HAL_OK; - 8001690: 2300 movs r3, #0 - 8001692: 77fb strb r3, [r7, #31] + 80016fc: 2300 movs r3, #0 + 80016fe: 77fb strb r3, [r7, #31] /* Check Direction parameter */ assert_param(IS_SPI_DIRECTION_2LINES_OR_1LINE(hspi->Init.Direction)); /* Process Locked */ __HAL_LOCK(hspi); - 8001694: 68fb ldr r3, [r7, #12] - 8001696: f893 3050 ldrb.w r3, [r3, #80] ; 0x50 - 800169a: 2b01 cmp r3, #1 - 800169c: d101 bne.n 80016a2 - 800169e: 2302 movs r3, #2 - 80016a0: e126 b.n 80018f0 - 80016a2: 68fb ldr r3, [r7, #12] - 80016a4: 2201 movs r2, #1 - 80016a6: f883 2050 strb.w r2, [r3, #80] ; 0x50 + 8001700: 68fb ldr r3, [r7, #12] + 8001702: f893 3050 ldrb.w r3, [r3, #80] ; 0x50 + 8001706: 2b01 cmp r3, #1 + 8001708: d101 bne.n 800170e + 800170a: 2302 movs r3, #2 + 800170c: e126 b.n 800195c + 800170e: 68fb ldr r3, [r7, #12] + 8001710: 2201 movs r2, #1 + 8001712: f883 2050 strb.w r2, [r3, #80] ; 0x50 /* Init tickstart for timeout management*/ tickstart = HAL_GetTick(); - 80016aa: f7ff f8bf bl 800082c - 80016ae: 61b8 str r0, [r7, #24] + 8001716: f7ff f8bf bl 8000898 + 800171a: 61b8 str r0, [r7, #24] initial_TxXferCount = Size; - 80016b0: 88fb ldrh r3, [r7, #6] - 80016b2: 82fb strh r3, [r7, #22] + 800171c: 88fb ldrh r3, [r7, #6] + 800171e: 82fb strh r3, [r7, #22] if (hspi->State != HAL_SPI_STATE_READY) - 80016b4: 68fb ldr r3, [r7, #12] - 80016b6: f893 3051 ldrb.w r3, [r3, #81] ; 0x51 - 80016ba: b2db uxtb r3, r3 - 80016bc: 2b01 cmp r3, #1 - 80016be: d002 beq.n 80016c6 + 8001720: 68fb ldr r3, [r7, #12] + 8001722: f893 3051 ldrb.w r3, [r3, #81] ; 0x51 + 8001726: b2db uxtb r3, r3 + 8001728: 2b01 cmp r3, #1 + 800172a: d002 beq.n 8001732 { errorcode = HAL_BUSY; - 80016c0: 2302 movs r3, #2 - 80016c2: 77fb strb r3, [r7, #31] + 800172c: 2302 movs r3, #2 + 800172e: 77fb strb r3, [r7, #31] goto error; - 80016c4: e10b b.n 80018de + 8001730: e10b b.n 800194a } if ((pData == NULL) || (Size == 0U)) - 80016c6: 68bb ldr r3, [r7, #8] - 80016c8: 2b00 cmp r3, #0 - 80016ca: d002 beq.n 80016d2 - 80016cc: 88fb ldrh r3, [r7, #6] - 80016ce: 2b00 cmp r3, #0 - 80016d0: d102 bne.n 80016d8 + 8001732: 68bb ldr r3, [r7, #8] + 8001734: 2b00 cmp r3, #0 + 8001736: d002 beq.n 800173e + 8001738: 88fb ldrh r3, [r7, #6] + 800173a: 2b00 cmp r3, #0 + 800173c: d102 bne.n 8001744 { errorcode = HAL_ERROR; - 80016d2: 2301 movs r3, #1 - 80016d4: 77fb strb r3, [r7, #31] + 800173e: 2301 movs r3, #1 + 8001740: 77fb strb r3, [r7, #31] goto error; - 80016d6: e102 b.n 80018de + 8001742: e102 b.n 800194a } /* Set the transaction information */ hspi->State = HAL_SPI_STATE_BUSY_TX; - 80016d8: 68fb ldr r3, [r7, #12] - 80016da: 2203 movs r2, #3 - 80016dc: f883 2051 strb.w r2, [r3, #81] ; 0x51 + 8001744: 68fb ldr r3, [r7, #12] + 8001746: 2203 movs r2, #3 + 8001748: f883 2051 strb.w r2, [r3, #81] ; 0x51 hspi->ErrorCode = HAL_SPI_ERROR_NONE; - 80016e0: 68fb ldr r3, [r7, #12] - 80016e2: 2200 movs r2, #0 - 80016e4: 655a str r2, [r3, #84] ; 0x54 + 800174c: 68fb ldr r3, [r7, #12] + 800174e: 2200 movs r2, #0 + 8001750: 655a str r2, [r3, #84] ; 0x54 hspi->pTxBuffPtr = (uint8_t *)pData; - 80016e6: 68fb ldr r3, [r7, #12] - 80016e8: 68ba ldr r2, [r7, #8] - 80016ea: 631a str r2, [r3, #48] ; 0x30 + 8001752: 68fb ldr r3, [r7, #12] + 8001754: 68ba ldr r2, [r7, #8] + 8001756: 631a str r2, [r3, #48] ; 0x30 hspi->TxXferSize = Size; - 80016ec: 68fb ldr r3, [r7, #12] - 80016ee: 88fa ldrh r2, [r7, #6] - 80016f0: 869a strh r2, [r3, #52] ; 0x34 + 8001758: 68fb ldr r3, [r7, #12] + 800175a: 88fa ldrh r2, [r7, #6] + 800175c: 869a strh r2, [r3, #52] ; 0x34 hspi->TxXferCount = Size; - 80016f2: 68fb ldr r3, [r7, #12] - 80016f4: 88fa ldrh r2, [r7, #6] - 80016f6: 86da strh r2, [r3, #54] ; 0x36 + 800175e: 68fb ldr r3, [r7, #12] + 8001760: 88fa ldrh r2, [r7, #6] + 8001762: 86da strh r2, [r3, #54] ; 0x36 /*Init field not used in handle to zero */ hspi->pRxBuffPtr = (uint8_t *)NULL; - 80016f8: 68fb ldr r3, [r7, #12] - 80016fa: 2200 movs r2, #0 - 80016fc: 639a str r2, [r3, #56] ; 0x38 + 8001764: 68fb ldr r3, [r7, #12] + 8001766: 2200 movs r2, #0 + 8001768: 639a str r2, [r3, #56] ; 0x38 hspi->RxXferSize = 0U; - 80016fe: 68fb ldr r3, [r7, #12] - 8001700: 2200 movs r2, #0 - 8001702: 879a strh r2, [r3, #60] ; 0x3c + 800176a: 68fb ldr r3, [r7, #12] + 800176c: 2200 movs r2, #0 + 800176e: 879a strh r2, [r3, #60] ; 0x3c hspi->RxXferCount = 0U; - 8001704: 68fb ldr r3, [r7, #12] - 8001706: 2200 movs r2, #0 - 8001708: 87da strh r2, [r3, #62] ; 0x3e + 8001770: 68fb ldr r3, [r7, #12] + 8001772: 2200 movs r2, #0 + 8001774: 87da strh r2, [r3, #62] ; 0x3e hspi->TxISR = NULL; - 800170a: 68fb ldr r3, [r7, #12] - 800170c: 2200 movs r2, #0 - 800170e: 645a str r2, [r3, #68] ; 0x44 + 8001776: 68fb ldr r3, [r7, #12] + 8001778: 2200 movs r2, #0 + 800177a: 645a str r2, [r3, #68] ; 0x44 hspi->RxISR = NULL; - 8001710: 68fb ldr r3, [r7, #12] - 8001712: 2200 movs r2, #0 - 8001714: 641a str r2, [r3, #64] ; 0x40 + 800177c: 68fb ldr r3, [r7, #12] + 800177e: 2200 movs r2, #0 + 8001780: 641a str r2, [r3, #64] ; 0x40 /* Configure communication direction : 1Line */ if (hspi->Init.Direction == SPI_DIRECTION_1LINE) - 8001716: 68fb ldr r3, [r7, #12] - 8001718: 689b ldr r3, [r3, #8] - 800171a: f5b3 4f00 cmp.w r3, #32768 ; 0x8000 - 800171e: d10f bne.n 8001740 + 8001782: 68fb ldr r3, [r7, #12] + 8001784: 689b ldr r3, [r3, #8] + 8001786: f5b3 4f00 cmp.w r3, #32768 ; 0x8000 + 800178a: d10f bne.n 80017ac { /* Disable SPI Peripheral before set 1Line direction (BIDIOE bit) */ __HAL_SPI_DISABLE(hspi); - 8001720: 68fb ldr r3, [r7, #12] - 8001722: 681b ldr r3, [r3, #0] - 8001724: 681a ldr r2, [r3, #0] - 8001726: 68fb ldr r3, [r7, #12] - 8001728: 681b ldr r3, [r3, #0] - 800172a: f022 0240 bic.w r2, r2, #64 ; 0x40 - 800172e: 601a str r2, [r3, #0] + 800178c: 68fb ldr r3, [r7, #12] + 800178e: 681b ldr r3, [r3, #0] + 8001790: 681a ldr r2, [r3, #0] + 8001792: 68fb ldr r3, [r7, #12] + 8001794: 681b ldr r3, [r3, #0] + 8001796: f022 0240 bic.w r2, r2, #64 ; 0x40 + 800179a: 601a str r2, [r3, #0] SPI_1LINE_TX(hspi); - 8001730: 68fb ldr r3, [r7, #12] - 8001732: 681b ldr r3, [r3, #0] - 8001734: 681a ldr r2, [r3, #0] - 8001736: 68fb ldr r3, [r7, #12] - 8001738: 681b ldr r3, [r3, #0] - 800173a: f442 4280 orr.w r2, r2, #16384 ; 0x4000 - 800173e: 601a str r2, [r3, #0] + 800179c: 68fb ldr r3, [r7, #12] + 800179e: 681b ldr r3, [r3, #0] + 80017a0: 681a ldr r2, [r3, #0] + 80017a2: 68fb ldr r3, [r7, #12] + 80017a4: 681b ldr r3, [r3, #0] + 80017a6: f442 4280 orr.w r2, r2, #16384 ; 0x4000 + 80017aa: 601a str r2, [r3, #0] SPI_RESET_CRC(hspi); } #endif /* USE_SPI_CRC */ /* Check if the SPI is already enabled */ if ((hspi->Instance->CR1 & SPI_CR1_SPE) != SPI_CR1_SPE) - 8001740: 68fb ldr r3, [r7, #12] - 8001742: 681b ldr r3, [r3, #0] - 8001744: 681b ldr r3, [r3, #0] - 8001746: f003 0340 and.w r3, r3, #64 ; 0x40 - 800174a: 2b40 cmp r3, #64 ; 0x40 - 800174c: d007 beq.n 800175e + 80017ac: 68fb ldr r3, [r7, #12] + 80017ae: 681b ldr r3, [r3, #0] + 80017b0: 681b ldr r3, [r3, #0] + 80017b2: f003 0340 and.w r3, r3, #64 ; 0x40 + 80017b6: 2b40 cmp r3, #64 ; 0x40 + 80017b8: d007 beq.n 80017ca { /* Enable SPI peripheral */ __HAL_SPI_ENABLE(hspi); - 800174e: 68fb ldr r3, [r7, #12] - 8001750: 681b ldr r3, [r3, #0] - 8001752: 681a ldr r2, [r3, #0] - 8001754: 68fb ldr r3, [r7, #12] - 8001756: 681b ldr r3, [r3, #0] - 8001758: f042 0240 orr.w r2, r2, #64 ; 0x40 - 800175c: 601a str r2, [r3, #0] + 80017ba: 68fb ldr r3, [r7, #12] + 80017bc: 681b ldr r3, [r3, #0] + 80017be: 681a ldr r2, [r3, #0] + 80017c0: 68fb ldr r3, [r7, #12] + 80017c2: 681b ldr r3, [r3, #0] + 80017c4: f042 0240 orr.w r2, r2, #64 ; 0x40 + 80017c8: 601a str r2, [r3, #0] } /* Transmit data in 16 Bit mode */ if (hspi->Init.DataSize == SPI_DATASIZE_16BIT) - 800175e: 68fb ldr r3, [r7, #12] - 8001760: 68db ldr r3, [r3, #12] - 8001762: f5b3 6f00 cmp.w r3, #2048 ; 0x800 - 8001766: d14b bne.n 8001800 + 80017ca: 68fb ldr r3, [r7, #12] + 80017cc: 68db ldr r3, [r3, #12] + 80017ce: f5b3 6f00 cmp.w r3, #2048 ; 0x800 + 80017d2: d14b bne.n 800186c { if ((hspi->Init.Mode == SPI_MODE_SLAVE) || (initial_TxXferCount == 0x01U)) - 8001768: 68fb ldr r3, [r7, #12] - 800176a: 685b ldr r3, [r3, #4] - 800176c: 2b00 cmp r3, #0 - 800176e: d002 beq.n 8001776 - 8001770: 8afb ldrh r3, [r7, #22] - 8001772: 2b01 cmp r3, #1 - 8001774: d13e bne.n 80017f4 + 80017d4: 68fb ldr r3, [r7, #12] + 80017d6: 685b ldr r3, [r3, #4] + 80017d8: 2b00 cmp r3, #0 + 80017da: d002 beq.n 80017e2 + 80017dc: 8afb ldrh r3, [r7, #22] + 80017de: 2b01 cmp r3, #1 + 80017e0: d13e bne.n 8001860 { hspi->Instance->DR = *((uint16_t *)hspi->pTxBuffPtr); - 8001776: 68fb ldr r3, [r7, #12] - 8001778: 6b1b ldr r3, [r3, #48] ; 0x30 - 800177a: 881a ldrh r2, [r3, #0] - 800177c: 68fb ldr r3, [r7, #12] - 800177e: 681b ldr r3, [r3, #0] - 8001780: 60da str r2, [r3, #12] + 80017e2: 68fb ldr r3, [r7, #12] + 80017e4: 6b1b ldr r3, [r3, #48] ; 0x30 + 80017e6: 881a ldrh r2, [r3, #0] + 80017e8: 68fb ldr r3, [r7, #12] + 80017ea: 681b ldr r3, [r3, #0] + 80017ec: 60da str r2, [r3, #12] hspi->pTxBuffPtr += sizeof(uint16_t); - 8001782: 68fb ldr r3, [r7, #12] - 8001784: 6b1b ldr r3, [r3, #48] ; 0x30 - 8001786: 1c9a adds r2, r3, #2 - 8001788: 68fb ldr r3, [r7, #12] - 800178a: 631a str r2, [r3, #48] ; 0x30 + 80017ee: 68fb ldr r3, [r7, #12] + 80017f0: 6b1b ldr r3, [r3, #48] ; 0x30 + 80017f2: 1c9a adds r2, r3, #2 + 80017f4: 68fb ldr r3, [r7, #12] + 80017f6: 631a str r2, [r3, #48] ; 0x30 hspi->TxXferCount--; - 800178c: 68fb ldr r3, [r7, #12] - 800178e: 8edb ldrh r3, [r3, #54] ; 0x36 - 8001790: b29b uxth r3, r3 - 8001792: 3b01 subs r3, #1 - 8001794: b29a uxth r2, r3 - 8001796: 68fb ldr r3, [r7, #12] - 8001798: 86da strh r2, [r3, #54] ; 0x36 + 80017f8: 68fb ldr r3, [r7, #12] + 80017fa: 8edb ldrh r3, [r3, #54] ; 0x36 + 80017fc: b29b uxth r3, r3 + 80017fe: 3b01 subs r3, #1 + 8001800: b29a uxth r2, r3 + 8001802: 68fb ldr r3, [r7, #12] + 8001804: 86da strh r2, [r3, #54] ; 0x36 } /* Transmit data in 16 Bit mode */ while (hspi->TxXferCount > 0U) - 800179a: e02b b.n 80017f4 + 8001806: e02b b.n 8001860 { /* Wait until TXE flag is set to send data */ if (__HAL_SPI_GET_FLAG(hspi, SPI_FLAG_TXE)) - 800179c: 68fb ldr r3, [r7, #12] - 800179e: 681b ldr r3, [r3, #0] - 80017a0: 689b ldr r3, [r3, #8] - 80017a2: f003 0302 and.w r3, r3, #2 - 80017a6: 2b02 cmp r3, #2 - 80017a8: d112 bne.n 80017d0 + 8001808: 68fb ldr r3, [r7, #12] + 800180a: 681b ldr r3, [r3, #0] + 800180c: 689b ldr r3, [r3, #8] + 800180e: f003 0302 and.w r3, r3, #2 + 8001812: 2b02 cmp r3, #2 + 8001814: d112 bne.n 800183c { hspi->Instance->DR = *((uint16_t *)hspi->pTxBuffPtr); - 80017aa: 68fb ldr r3, [r7, #12] - 80017ac: 6b1b ldr r3, [r3, #48] ; 0x30 - 80017ae: 881a ldrh r2, [r3, #0] - 80017b0: 68fb ldr r3, [r7, #12] - 80017b2: 681b ldr r3, [r3, #0] - 80017b4: 60da str r2, [r3, #12] + 8001816: 68fb ldr r3, [r7, #12] + 8001818: 6b1b ldr r3, [r3, #48] ; 0x30 + 800181a: 881a ldrh r2, [r3, #0] + 800181c: 68fb ldr r3, [r7, #12] + 800181e: 681b ldr r3, [r3, #0] + 8001820: 60da str r2, [r3, #12] hspi->pTxBuffPtr += sizeof(uint16_t); - 80017b6: 68fb ldr r3, [r7, #12] - 80017b8: 6b1b ldr r3, [r3, #48] ; 0x30 - 80017ba: 1c9a adds r2, r3, #2 - 80017bc: 68fb ldr r3, [r7, #12] - 80017be: 631a str r2, [r3, #48] ; 0x30 + 8001822: 68fb ldr r3, [r7, #12] + 8001824: 6b1b ldr r3, [r3, #48] ; 0x30 + 8001826: 1c9a adds r2, r3, #2 + 8001828: 68fb ldr r3, [r7, #12] + 800182a: 631a str r2, [r3, #48] ; 0x30 hspi->TxXferCount--; - 80017c0: 68fb ldr r3, [r7, #12] - 80017c2: 8edb ldrh r3, [r3, #54] ; 0x36 - 80017c4: b29b uxth r3, r3 - 80017c6: 3b01 subs r3, #1 - 80017c8: b29a uxth r2, r3 - 80017ca: 68fb ldr r3, [r7, #12] - 80017cc: 86da strh r2, [r3, #54] ; 0x36 - 80017ce: e011 b.n 80017f4 + 800182c: 68fb ldr r3, [r7, #12] + 800182e: 8edb ldrh r3, [r3, #54] ; 0x36 + 8001830: b29b uxth r3, r3 + 8001832: 3b01 subs r3, #1 + 8001834: b29a uxth r2, r3 + 8001836: 68fb ldr r3, [r7, #12] + 8001838: 86da strh r2, [r3, #54] ; 0x36 + 800183a: e011 b.n 8001860 } else { /* Timeout management */ if ((((HAL_GetTick() - tickstart) >= Timeout) && (Timeout != HAL_MAX_DELAY)) || (Timeout == 0U)) - 80017d0: f7ff f82c bl 800082c - 80017d4: 4602 mov r2, r0 - 80017d6: 69bb ldr r3, [r7, #24] - 80017d8: 1ad3 subs r3, r2, r3 - 80017da: 683a ldr r2, [r7, #0] - 80017dc: 429a cmp r2, r3 - 80017de: d803 bhi.n 80017e8 - 80017e0: 683b ldr r3, [r7, #0] - 80017e2: f1b3 3fff cmp.w r3, #4294967295 - 80017e6: d102 bne.n 80017ee - 80017e8: 683b ldr r3, [r7, #0] - 80017ea: 2b00 cmp r3, #0 - 80017ec: d102 bne.n 80017f4 + 800183c: f7ff f82c bl 8000898 + 8001840: 4602 mov r2, r0 + 8001842: 69bb ldr r3, [r7, #24] + 8001844: 1ad3 subs r3, r2, r3 + 8001846: 683a ldr r2, [r7, #0] + 8001848: 429a cmp r2, r3 + 800184a: d803 bhi.n 8001854 + 800184c: 683b ldr r3, [r7, #0] + 800184e: f1b3 3fff cmp.w r3, #4294967295 + 8001852: d102 bne.n 800185a + 8001854: 683b ldr r3, [r7, #0] + 8001856: 2b00 cmp r3, #0 + 8001858: d102 bne.n 8001860 { errorcode = HAL_TIMEOUT; - 80017ee: 2303 movs r3, #3 - 80017f0: 77fb strb r3, [r7, #31] + 800185a: 2303 movs r3, #3 + 800185c: 77fb strb r3, [r7, #31] goto error; - 80017f2: e074 b.n 80018de + 800185e: e074 b.n 800194a while (hspi->TxXferCount > 0U) - 80017f4: 68fb ldr r3, [r7, #12] - 80017f6: 8edb ldrh r3, [r3, #54] ; 0x36 - 80017f8: b29b uxth r3, r3 - 80017fa: 2b00 cmp r3, #0 - 80017fc: d1ce bne.n 800179c - 80017fe: e04c b.n 800189a + 8001860: 68fb ldr r3, [r7, #12] + 8001862: 8edb ldrh r3, [r3, #54] ; 0x36 + 8001864: b29b uxth r3, r3 + 8001866: 2b00 cmp r3, #0 + 8001868: d1ce bne.n 8001808 + 800186a: e04c b.n 8001906 } } /* Transmit data in 8 Bit mode */ else { if ((hspi->Init.Mode == SPI_MODE_SLAVE) || (initial_TxXferCount == 0x01U)) - 8001800: 68fb ldr r3, [r7, #12] - 8001802: 685b ldr r3, [r3, #4] - 8001804: 2b00 cmp r3, #0 - 8001806: d002 beq.n 800180e - 8001808: 8afb ldrh r3, [r7, #22] - 800180a: 2b01 cmp r3, #1 - 800180c: d140 bne.n 8001890 + 800186c: 68fb ldr r3, [r7, #12] + 800186e: 685b ldr r3, [r3, #4] + 8001870: 2b00 cmp r3, #0 + 8001872: d002 beq.n 800187a + 8001874: 8afb ldrh r3, [r7, #22] + 8001876: 2b01 cmp r3, #1 + 8001878: d140 bne.n 80018fc { *((__IO uint8_t *)&hspi->Instance->DR) = (*hspi->pTxBuffPtr); - 800180e: 68fb ldr r3, [r7, #12] - 8001810: 6b1a ldr r2, [r3, #48] ; 0x30 - 8001812: 68fb ldr r3, [r7, #12] - 8001814: 681b ldr r3, [r3, #0] - 8001816: 330c adds r3, #12 - 8001818: 7812 ldrb r2, [r2, #0] - 800181a: 701a strb r2, [r3, #0] + 800187a: 68fb ldr r3, [r7, #12] + 800187c: 6b1a ldr r2, [r3, #48] ; 0x30 + 800187e: 68fb ldr r3, [r7, #12] + 8001880: 681b ldr r3, [r3, #0] + 8001882: 330c adds r3, #12 + 8001884: 7812 ldrb r2, [r2, #0] + 8001886: 701a strb r2, [r3, #0] hspi->pTxBuffPtr += sizeof(uint8_t); - 800181c: 68fb ldr r3, [r7, #12] - 800181e: 6b1b ldr r3, [r3, #48] ; 0x30 - 8001820: 1c5a adds r2, r3, #1 - 8001822: 68fb ldr r3, [r7, #12] - 8001824: 631a str r2, [r3, #48] ; 0x30 + 8001888: 68fb ldr r3, [r7, #12] + 800188a: 6b1b ldr r3, [r3, #48] ; 0x30 + 800188c: 1c5a adds r2, r3, #1 + 800188e: 68fb ldr r3, [r7, #12] + 8001890: 631a str r2, [r3, #48] ; 0x30 hspi->TxXferCount--; - 8001826: 68fb ldr r3, [r7, #12] - 8001828: 8edb ldrh r3, [r3, #54] ; 0x36 - 800182a: b29b uxth r3, r3 - 800182c: 3b01 subs r3, #1 - 800182e: b29a uxth r2, r3 - 8001830: 68fb ldr r3, [r7, #12] - 8001832: 86da strh r2, [r3, #54] ; 0x36 + 8001892: 68fb ldr r3, [r7, #12] + 8001894: 8edb ldrh r3, [r3, #54] ; 0x36 + 8001896: b29b uxth r3, r3 + 8001898: 3b01 subs r3, #1 + 800189a: b29a uxth r2, r3 + 800189c: 68fb ldr r3, [r7, #12] + 800189e: 86da strh r2, [r3, #54] ; 0x36 } while (hspi->TxXferCount > 0U) - 8001834: e02c b.n 8001890 + 80018a0: e02c b.n 80018fc { /* Wait until TXE flag is set to send data */ if (__HAL_SPI_GET_FLAG(hspi, SPI_FLAG_TXE)) - 8001836: 68fb ldr r3, [r7, #12] - 8001838: 681b ldr r3, [r3, #0] - 800183a: 689b ldr r3, [r3, #8] - 800183c: f003 0302 and.w r3, r3, #2 - 8001840: 2b02 cmp r3, #2 - 8001842: d113 bne.n 800186c + 80018a2: 68fb ldr r3, [r7, #12] + 80018a4: 681b ldr r3, [r3, #0] + 80018a6: 689b ldr r3, [r3, #8] + 80018a8: f003 0302 and.w r3, r3, #2 + 80018ac: 2b02 cmp r3, #2 + 80018ae: d113 bne.n 80018d8 { *((__IO uint8_t *)&hspi->Instance->DR) = (*hspi->pTxBuffPtr); - 8001844: 68fb ldr r3, [r7, #12] - 8001846: 6b1a ldr r2, [r3, #48] ; 0x30 - 8001848: 68fb ldr r3, [r7, #12] - 800184a: 681b ldr r3, [r3, #0] - 800184c: 330c adds r3, #12 - 800184e: 7812 ldrb r2, [r2, #0] - 8001850: 701a strb r2, [r3, #0] + 80018b0: 68fb ldr r3, [r7, #12] + 80018b2: 6b1a ldr r2, [r3, #48] ; 0x30 + 80018b4: 68fb ldr r3, [r7, #12] + 80018b6: 681b ldr r3, [r3, #0] + 80018b8: 330c adds r3, #12 + 80018ba: 7812 ldrb r2, [r2, #0] + 80018bc: 701a strb r2, [r3, #0] hspi->pTxBuffPtr += sizeof(uint8_t); - 8001852: 68fb ldr r3, [r7, #12] - 8001854: 6b1b ldr r3, [r3, #48] ; 0x30 - 8001856: 1c5a adds r2, r3, #1 - 8001858: 68fb ldr r3, [r7, #12] - 800185a: 631a str r2, [r3, #48] ; 0x30 + 80018be: 68fb ldr r3, [r7, #12] + 80018c0: 6b1b ldr r3, [r3, #48] ; 0x30 + 80018c2: 1c5a adds r2, r3, #1 + 80018c4: 68fb ldr r3, [r7, #12] + 80018c6: 631a str r2, [r3, #48] ; 0x30 hspi->TxXferCount--; - 800185c: 68fb ldr r3, [r7, #12] - 800185e: 8edb ldrh r3, [r3, #54] ; 0x36 - 8001860: b29b uxth r3, r3 - 8001862: 3b01 subs r3, #1 - 8001864: b29a uxth r2, r3 - 8001866: 68fb ldr r3, [r7, #12] - 8001868: 86da strh r2, [r3, #54] ; 0x36 - 800186a: e011 b.n 8001890 + 80018c8: 68fb ldr r3, [r7, #12] + 80018ca: 8edb ldrh r3, [r3, #54] ; 0x36 + 80018cc: b29b uxth r3, r3 + 80018ce: 3b01 subs r3, #1 + 80018d0: b29a uxth r2, r3 + 80018d2: 68fb ldr r3, [r7, #12] + 80018d4: 86da strh r2, [r3, #54] ; 0x36 + 80018d6: e011 b.n 80018fc } else { /* Timeout management */ if ((((HAL_GetTick() - tickstart) >= Timeout) && (Timeout != HAL_MAX_DELAY)) || (Timeout == 0U)) - 800186c: f7fe ffde bl 800082c - 8001870: 4602 mov r2, r0 - 8001872: 69bb ldr r3, [r7, #24] - 8001874: 1ad3 subs r3, r2, r3 - 8001876: 683a ldr r2, [r7, #0] - 8001878: 429a cmp r2, r3 - 800187a: d803 bhi.n 8001884 - 800187c: 683b ldr r3, [r7, #0] - 800187e: f1b3 3fff cmp.w r3, #4294967295 - 8001882: d102 bne.n 800188a - 8001884: 683b ldr r3, [r7, #0] - 8001886: 2b00 cmp r3, #0 - 8001888: d102 bne.n 8001890 + 80018d8: f7fe ffde bl 8000898 + 80018dc: 4602 mov r2, r0 + 80018de: 69bb ldr r3, [r7, #24] + 80018e0: 1ad3 subs r3, r2, r3 + 80018e2: 683a ldr r2, [r7, #0] + 80018e4: 429a cmp r2, r3 + 80018e6: d803 bhi.n 80018f0 + 80018e8: 683b ldr r3, [r7, #0] + 80018ea: f1b3 3fff cmp.w r3, #4294967295 + 80018ee: d102 bne.n 80018f6 + 80018f0: 683b ldr r3, [r7, #0] + 80018f2: 2b00 cmp r3, #0 + 80018f4: d102 bne.n 80018fc { errorcode = HAL_TIMEOUT; - 800188a: 2303 movs r3, #3 - 800188c: 77fb strb r3, [r7, #31] + 80018f6: 2303 movs r3, #3 + 80018f8: 77fb strb r3, [r7, #31] goto error; - 800188e: e026 b.n 80018de + 80018fa: e026 b.n 800194a while (hspi->TxXferCount > 0U) - 8001890: 68fb ldr r3, [r7, #12] - 8001892: 8edb ldrh r3, [r3, #54] ; 0x36 - 8001894: b29b uxth r3, r3 - 8001896: 2b00 cmp r3, #0 - 8001898: d1cd bne.n 8001836 + 80018fc: 68fb ldr r3, [r7, #12] + 80018fe: 8edb ldrh r3, [r3, #54] ; 0x36 + 8001900: b29b uxth r3, r3 + 8001902: 2b00 cmp r3, #0 + 8001904: d1cd bne.n 80018a2 SET_BIT(hspi->Instance->CR1, SPI_CR1_CRCNEXT); } #endif /* USE_SPI_CRC */ /* Check the end of the transaction */ if (SPI_EndRxTxTransaction(hspi, Timeout, tickstart) != HAL_OK) - 800189a: 69ba ldr r2, [r7, #24] - 800189c: 6839 ldr r1, [r7, #0] - 800189e: 68f8 ldr r0, [r7, #12] - 80018a0: f000 fbc4 bl 800202c - 80018a4: 4603 mov r3, r0 - 80018a6: 2b00 cmp r3, #0 - 80018a8: d002 beq.n 80018b0 + 8001906: 69ba ldr r2, [r7, #24] + 8001908: 6839 ldr r1, [r7, #0] + 800190a: 68f8 ldr r0, [r7, #12] + 800190c: f000 fbc4 bl 8002098 + 8001910: 4603 mov r3, r0 + 8001912: 2b00 cmp r3, #0 + 8001914: d002 beq.n 800191c { hspi->ErrorCode = HAL_SPI_ERROR_FLAG; - 80018aa: 68fb ldr r3, [r7, #12] - 80018ac: 2220 movs r2, #32 - 80018ae: 655a str r2, [r3, #84] ; 0x54 + 8001916: 68fb ldr r3, [r7, #12] + 8001918: 2220 movs r2, #32 + 800191a: 655a str r2, [r3, #84] ; 0x54 } /* Clear overrun flag in 2 Lines communication mode because received is not read */ if (hspi->Init.Direction == SPI_DIRECTION_2LINES) - 80018b0: 68fb ldr r3, [r7, #12] - 80018b2: 689b ldr r3, [r3, #8] - 80018b4: 2b00 cmp r3, #0 - 80018b6: d10a bne.n 80018ce + 800191c: 68fb ldr r3, [r7, #12] + 800191e: 689b ldr r3, [r3, #8] + 8001920: 2b00 cmp r3, #0 + 8001922: d10a bne.n 800193a { __HAL_SPI_CLEAR_OVRFLAG(hspi); - 80018b8: 2300 movs r3, #0 - 80018ba: 613b str r3, [r7, #16] - 80018bc: 68fb ldr r3, [r7, #12] - 80018be: 681b ldr r3, [r3, #0] - 80018c0: 68db ldr r3, [r3, #12] - 80018c2: 613b str r3, [r7, #16] - 80018c4: 68fb ldr r3, [r7, #12] - 80018c6: 681b ldr r3, [r3, #0] - 80018c8: 689b ldr r3, [r3, #8] - 80018ca: 613b str r3, [r7, #16] - 80018cc: 693b ldr r3, [r7, #16] + 8001924: 2300 movs r3, #0 + 8001926: 613b str r3, [r7, #16] + 8001928: 68fb ldr r3, [r7, #12] + 800192a: 681b ldr r3, [r3, #0] + 800192c: 68db ldr r3, [r3, #12] + 800192e: 613b str r3, [r7, #16] + 8001930: 68fb ldr r3, [r7, #12] + 8001932: 681b ldr r3, [r3, #0] + 8001934: 689b ldr r3, [r3, #8] + 8001936: 613b str r3, [r7, #16] + 8001938: 693b ldr r3, [r7, #16] } if (hspi->ErrorCode != HAL_SPI_ERROR_NONE) - 80018ce: 68fb ldr r3, [r7, #12] - 80018d0: 6d5b ldr r3, [r3, #84] ; 0x54 - 80018d2: 2b00 cmp r3, #0 - 80018d4: d002 beq.n 80018dc + 800193a: 68fb ldr r3, [r7, #12] + 800193c: 6d5b ldr r3, [r3, #84] ; 0x54 + 800193e: 2b00 cmp r3, #0 + 8001940: d002 beq.n 8001948 { errorcode = HAL_ERROR; - 80018d6: 2301 movs r3, #1 - 80018d8: 77fb strb r3, [r7, #31] - 80018da: e000 b.n 80018de + 8001942: 2301 movs r3, #1 + 8001944: 77fb strb r3, [r7, #31] + 8001946: e000 b.n 800194a } error: - 80018dc: bf00 nop + 8001948: bf00 nop hspi->State = HAL_SPI_STATE_READY; - 80018de: 68fb ldr r3, [r7, #12] - 80018e0: 2201 movs r2, #1 - 80018e2: f883 2051 strb.w r2, [r3, #81] ; 0x51 + 800194a: 68fb ldr r3, [r7, #12] + 800194c: 2201 movs r2, #1 + 800194e: f883 2051 strb.w r2, [r3, #81] ; 0x51 /* Process Unlocked */ __HAL_UNLOCK(hspi); - 80018e6: 68fb ldr r3, [r7, #12] - 80018e8: 2200 movs r2, #0 - 80018ea: f883 2050 strb.w r2, [r3, #80] ; 0x50 + 8001952: 68fb ldr r3, [r7, #12] + 8001954: 2200 movs r2, #0 + 8001956: f883 2050 strb.w r2, [r3, #80] ; 0x50 return errorcode; - 80018ee: 7ffb ldrb r3, [r7, #31] + 800195a: 7ffb ldrb r3, [r7, #31] } - 80018f0: 4618 mov r0, r3 - 80018f2: 3720 adds r7, #32 - 80018f4: 46bd mov sp, r7 - 80018f6: bd80 pop {r7, pc} + 800195c: 4618 mov r0, r3 + 800195e: 3720 adds r7, #32 + 8001960: 46bd mov sp, r7 + 8001962: bd80 pop {r7, pc} -080018f8 : +08001964 : * @param Size amount of data to be received * @param Timeout Timeout duration * @retval HAL status */ HAL_StatusTypeDef HAL_SPI_Receive(SPI_HandleTypeDef *hspi, uint8_t *pData, uint16_t Size, uint32_t Timeout) { - 80018f8: b580 push {r7, lr} - 80018fa: b088 sub sp, #32 - 80018fc: af02 add r7, sp, #8 - 80018fe: 60f8 str r0, [r7, #12] - 8001900: 60b9 str r1, [r7, #8] - 8001902: 603b str r3, [r7, #0] - 8001904: 4613 mov r3, r2 - 8001906: 80fb strh r3, [r7, #6] + 8001964: b580 push {r7, lr} + 8001966: b088 sub sp, #32 + 8001968: af02 add r7, sp, #8 + 800196a: 60f8 str r0, [r7, #12] + 800196c: 60b9 str r1, [r7, #8] + 800196e: 603b str r3, [r7, #0] + 8001970: 4613 mov r3, r2 + 8001972: 80fb strh r3, [r7, #6] uint32_t tickstart; HAL_StatusTypeDef errorcode = HAL_OK; - 8001908: 2300 movs r3, #0 - 800190a: 75fb strb r3, [r7, #23] + 8001974: 2300 movs r3, #0 + 8001976: 75fb strb r3, [r7, #23] if ((hspi->Init.Mode == SPI_MODE_MASTER) && (hspi->Init.Direction == SPI_DIRECTION_2LINES)) - 800190c: 68fb ldr r3, [r7, #12] - 800190e: 685b ldr r3, [r3, #4] - 8001910: f5b3 7f82 cmp.w r3, #260 ; 0x104 - 8001914: d112 bne.n 800193c - 8001916: 68fb ldr r3, [r7, #12] - 8001918: 689b ldr r3, [r3, #8] - 800191a: 2b00 cmp r3, #0 - 800191c: d10e bne.n 800193c + 8001978: 68fb ldr r3, [r7, #12] + 800197a: 685b ldr r3, [r3, #4] + 800197c: f5b3 7f82 cmp.w r3, #260 ; 0x104 + 8001980: d112 bne.n 80019a8 + 8001982: 68fb ldr r3, [r7, #12] + 8001984: 689b ldr r3, [r3, #8] + 8001986: 2b00 cmp r3, #0 + 8001988: d10e bne.n 80019a8 { hspi->State = HAL_SPI_STATE_BUSY_RX; - 800191e: 68fb ldr r3, [r7, #12] - 8001920: 2204 movs r2, #4 - 8001922: f883 2051 strb.w r2, [r3, #81] ; 0x51 + 800198a: 68fb ldr r3, [r7, #12] + 800198c: 2204 movs r2, #4 + 800198e: f883 2051 strb.w r2, [r3, #81] ; 0x51 /* Call transmit-receive function to send Dummy data on Tx line and generate clock on CLK line */ return HAL_SPI_TransmitReceive(hspi, pData, pData, Size, Timeout); - 8001926: 88fa ldrh r2, [r7, #6] - 8001928: 683b ldr r3, [r7, #0] - 800192a: 9300 str r3, [sp, #0] - 800192c: 4613 mov r3, r2 - 800192e: 68ba ldr r2, [r7, #8] - 8001930: 68b9 ldr r1, [r7, #8] - 8001932: 68f8 ldr r0, [r7, #12] - 8001934: f000 f8f1 bl 8001b1a - 8001938: 4603 mov r3, r0 - 800193a: e0ea b.n 8001b12 + 8001992: 88fa ldrh r2, [r7, #6] + 8001994: 683b ldr r3, [r7, #0] + 8001996: 9300 str r3, [sp, #0] + 8001998: 4613 mov r3, r2 + 800199a: 68ba ldr r2, [r7, #8] + 800199c: 68b9 ldr r1, [r7, #8] + 800199e: 68f8 ldr r0, [r7, #12] + 80019a0: f000 f8f1 bl 8001b86 + 80019a4: 4603 mov r3, r0 + 80019a6: e0ea b.n 8001b7e } /* Process Locked */ __HAL_LOCK(hspi); - 800193c: 68fb ldr r3, [r7, #12] - 800193e: f893 3050 ldrb.w r3, [r3, #80] ; 0x50 - 8001942: 2b01 cmp r3, #1 - 8001944: d101 bne.n 800194a - 8001946: 2302 movs r3, #2 - 8001948: e0e3 b.n 8001b12 - 800194a: 68fb ldr r3, [r7, #12] - 800194c: 2201 movs r2, #1 - 800194e: f883 2050 strb.w r2, [r3, #80] ; 0x50 + 80019a8: 68fb ldr r3, [r7, #12] + 80019aa: f893 3050 ldrb.w r3, [r3, #80] ; 0x50 + 80019ae: 2b01 cmp r3, #1 + 80019b0: d101 bne.n 80019b6 + 80019b2: 2302 movs r3, #2 + 80019b4: e0e3 b.n 8001b7e + 80019b6: 68fb ldr r3, [r7, #12] + 80019b8: 2201 movs r2, #1 + 80019ba: f883 2050 strb.w r2, [r3, #80] ; 0x50 /* Init tickstart for timeout management*/ tickstart = HAL_GetTick(); - 8001952: f7fe ff6b bl 800082c - 8001956: 6138 str r0, [r7, #16] + 80019be: f7fe ff6b bl 8000898 + 80019c2: 6138 str r0, [r7, #16] if (hspi->State != HAL_SPI_STATE_READY) - 8001958: 68fb ldr r3, [r7, #12] - 800195a: f893 3051 ldrb.w r3, [r3, #81] ; 0x51 - 800195e: b2db uxtb r3, r3 - 8001960: 2b01 cmp r3, #1 - 8001962: d002 beq.n 800196a + 80019c4: 68fb ldr r3, [r7, #12] + 80019c6: f893 3051 ldrb.w r3, [r3, #81] ; 0x51 + 80019ca: b2db uxtb r3, r3 + 80019cc: 2b01 cmp r3, #1 + 80019ce: d002 beq.n 80019d6 { errorcode = HAL_BUSY; - 8001964: 2302 movs r3, #2 - 8001966: 75fb strb r3, [r7, #23] + 80019d0: 2302 movs r3, #2 + 80019d2: 75fb strb r3, [r7, #23] goto error; - 8001968: e0ca b.n 8001b00 + 80019d4: e0ca b.n 8001b6c } if ((pData == NULL) || (Size == 0U)) - 800196a: 68bb ldr r3, [r7, #8] - 800196c: 2b00 cmp r3, #0 - 800196e: d002 beq.n 8001976 - 8001970: 88fb ldrh r3, [r7, #6] - 8001972: 2b00 cmp r3, #0 - 8001974: d102 bne.n 800197c + 80019d6: 68bb ldr r3, [r7, #8] + 80019d8: 2b00 cmp r3, #0 + 80019da: d002 beq.n 80019e2 + 80019dc: 88fb ldrh r3, [r7, #6] + 80019de: 2b00 cmp r3, #0 + 80019e0: d102 bne.n 80019e8 { errorcode = HAL_ERROR; - 8001976: 2301 movs r3, #1 - 8001978: 75fb strb r3, [r7, #23] + 80019e2: 2301 movs r3, #1 + 80019e4: 75fb strb r3, [r7, #23] goto error; - 800197a: e0c1 b.n 8001b00 + 80019e6: e0c1 b.n 8001b6c } /* Set the transaction information */ hspi->State = HAL_SPI_STATE_BUSY_RX; - 800197c: 68fb ldr r3, [r7, #12] - 800197e: 2204 movs r2, #4 - 8001980: f883 2051 strb.w r2, [r3, #81] ; 0x51 + 80019e8: 68fb ldr r3, [r7, #12] + 80019ea: 2204 movs r2, #4 + 80019ec: f883 2051 strb.w r2, [r3, #81] ; 0x51 hspi->ErrorCode = HAL_SPI_ERROR_NONE; - 8001984: 68fb ldr r3, [r7, #12] - 8001986: 2200 movs r2, #0 - 8001988: 655a str r2, [r3, #84] ; 0x54 + 80019f0: 68fb ldr r3, [r7, #12] + 80019f2: 2200 movs r2, #0 + 80019f4: 655a str r2, [r3, #84] ; 0x54 hspi->pRxBuffPtr = (uint8_t *)pData; - 800198a: 68fb ldr r3, [r7, #12] - 800198c: 68ba ldr r2, [r7, #8] - 800198e: 639a str r2, [r3, #56] ; 0x38 + 80019f6: 68fb ldr r3, [r7, #12] + 80019f8: 68ba ldr r2, [r7, #8] + 80019fa: 639a str r2, [r3, #56] ; 0x38 hspi->RxXferSize = Size; - 8001990: 68fb ldr r3, [r7, #12] - 8001992: 88fa ldrh r2, [r7, #6] - 8001994: 879a strh r2, [r3, #60] ; 0x3c + 80019fc: 68fb ldr r3, [r7, #12] + 80019fe: 88fa ldrh r2, [r7, #6] + 8001a00: 879a strh r2, [r3, #60] ; 0x3c hspi->RxXferCount = Size; - 8001996: 68fb ldr r3, [r7, #12] - 8001998: 88fa ldrh r2, [r7, #6] - 800199a: 87da strh r2, [r3, #62] ; 0x3e + 8001a02: 68fb ldr r3, [r7, #12] + 8001a04: 88fa ldrh r2, [r7, #6] + 8001a06: 87da strh r2, [r3, #62] ; 0x3e /*Init field not used in handle to zero */ hspi->pTxBuffPtr = (uint8_t *)NULL; - 800199c: 68fb ldr r3, [r7, #12] - 800199e: 2200 movs r2, #0 - 80019a0: 631a str r2, [r3, #48] ; 0x30 + 8001a08: 68fb ldr r3, [r7, #12] + 8001a0a: 2200 movs r2, #0 + 8001a0c: 631a str r2, [r3, #48] ; 0x30 hspi->TxXferSize = 0U; - 80019a2: 68fb ldr r3, [r7, #12] - 80019a4: 2200 movs r2, #0 - 80019a6: 869a strh r2, [r3, #52] ; 0x34 + 8001a0e: 68fb ldr r3, [r7, #12] + 8001a10: 2200 movs r2, #0 + 8001a12: 869a strh r2, [r3, #52] ; 0x34 hspi->TxXferCount = 0U; - 80019a8: 68fb ldr r3, [r7, #12] - 80019aa: 2200 movs r2, #0 - 80019ac: 86da strh r2, [r3, #54] ; 0x36 + 8001a14: 68fb ldr r3, [r7, #12] + 8001a16: 2200 movs r2, #0 + 8001a18: 86da strh r2, [r3, #54] ; 0x36 hspi->RxISR = NULL; - 80019ae: 68fb ldr r3, [r7, #12] - 80019b0: 2200 movs r2, #0 - 80019b2: 641a str r2, [r3, #64] ; 0x40 + 8001a1a: 68fb ldr r3, [r7, #12] + 8001a1c: 2200 movs r2, #0 + 8001a1e: 641a str r2, [r3, #64] ; 0x40 hspi->TxISR = NULL; - 80019b4: 68fb ldr r3, [r7, #12] - 80019b6: 2200 movs r2, #0 - 80019b8: 645a str r2, [r3, #68] ; 0x44 + 8001a20: 68fb ldr r3, [r7, #12] + 8001a22: 2200 movs r2, #0 + 8001a24: 645a str r2, [r3, #68] ; 0x44 hspi->RxXferCount--; } #endif /* USE_SPI_CRC */ /* Configure communication direction: 1Line */ if (hspi->Init.Direction == SPI_DIRECTION_1LINE) - 80019ba: 68fb ldr r3, [r7, #12] - 80019bc: 689b ldr r3, [r3, #8] - 80019be: f5b3 4f00 cmp.w r3, #32768 ; 0x8000 - 80019c2: d10f bne.n 80019e4 + 8001a26: 68fb ldr r3, [r7, #12] + 8001a28: 689b ldr r3, [r3, #8] + 8001a2a: f5b3 4f00 cmp.w r3, #32768 ; 0x8000 + 8001a2e: d10f bne.n 8001a50 { /* Disable SPI Peripheral before set 1Line direction (BIDIOE bit) */ __HAL_SPI_DISABLE(hspi); - 80019c4: 68fb ldr r3, [r7, #12] - 80019c6: 681b ldr r3, [r3, #0] - 80019c8: 681a ldr r2, [r3, #0] - 80019ca: 68fb ldr r3, [r7, #12] - 80019cc: 681b ldr r3, [r3, #0] - 80019ce: f022 0240 bic.w r2, r2, #64 ; 0x40 - 80019d2: 601a str r2, [r3, #0] + 8001a30: 68fb ldr r3, [r7, #12] + 8001a32: 681b ldr r3, [r3, #0] + 8001a34: 681a ldr r2, [r3, #0] + 8001a36: 68fb ldr r3, [r7, #12] + 8001a38: 681b ldr r3, [r3, #0] + 8001a3a: f022 0240 bic.w r2, r2, #64 ; 0x40 + 8001a3e: 601a str r2, [r3, #0] SPI_1LINE_RX(hspi); - 80019d4: 68fb ldr r3, [r7, #12] - 80019d6: 681b ldr r3, [r3, #0] - 80019d8: 681a ldr r2, [r3, #0] - 80019da: 68fb ldr r3, [r7, #12] - 80019dc: 681b ldr r3, [r3, #0] - 80019de: f422 4280 bic.w r2, r2, #16384 ; 0x4000 - 80019e2: 601a str r2, [r3, #0] + 8001a40: 68fb ldr r3, [r7, #12] + 8001a42: 681b ldr r3, [r3, #0] + 8001a44: 681a ldr r2, [r3, #0] + 8001a46: 68fb ldr r3, [r7, #12] + 8001a48: 681b ldr r3, [r3, #0] + 8001a4a: f422 4280 bic.w r2, r2, #16384 ; 0x4000 + 8001a4e: 601a str r2, [r3, #0] } /* Check if the SPI is already enabled */ if ((hspi->Instance->CR1 & SPI_CR1_SPE) != SPI_CR1_SPE) - 80019e4: 68fb ldr r3, [r7, #12] - 80019e6: 681b ldr r3, [r3, #0] - 80019e8: 681b ldr r3, [r3, #0] - 80019ea: f003 0340 and.w r3, r3, #64 ; 0x40 - 80019ee: 2b40 cmp r3, #64 ; 0x40 - 80019f0: d007 beq.n 8001a02 + 8001a50: 68fb ldr r3, [r7, #12] + 8001a52: 681b ldr r3, [r3, #0] + 8001a54: 681b ldr r3, [r3, #0] + 8001a56: f003 0340 and.w r3, r3, #64 ; 0x40 + 8001a5a: 2b40 cmp r3, #64 ; 0x40 + 8001a5c: d007 beq.n 8001a6e { /* Enable SPI peripheral */ __HAL_SPI_ENABLE(hspi); - 80019f2: 68fb ldr r3, [r7, #12] - 80019f4: 681b ldr r3, [r3, #0] - 80019f6: 681a ldr r2, [r3, #0] - 80019f8: 68fb ldr r3, [r7, #12] - 80019fa: 681b ldr r3, [r3, #0] - 80019fc: f042 0240 orr.w r2, r2, #64 ; 0x40 - 8001a00: 601a str r2, [r3, #0] + 8001a5e: 68fb ldr r3, [r7, #12] + 8001a60: 681b ldr r3, [r3, #0] + 8001a62: 681a ldr r2, [r3, #0] + 8001a64: 68fb ldr r3, [r7, #12] + 8001a66: 681b ldr r3, [r3, #0] + 8001a68: f042 0240 orr.w r2, r2, #64 ; 0x40 + 8001a6c: 601a str r2, [r3, #0] } /* Receive data in 8 Bit mode */ if (hspi->Init.DataSize == SPI_DATASIZE_8BIT) - 8001a02: 68fb ldr r3, [r7, #12] - 8001a04: 68db ldr r3, [r3, #12] - 8001a06: 2b00 cmp r3, #0 - 8001a08: d162 bne.n 8001ad0 + 8001a6e: 68fb ldr r3, [r7, #12] + 8001a70: 68db ldr r3, [r3, #12] + 8001a72: 2b00 cmp r3, #0 + 8001a74: d162 bne.n 8001b3c { /* Transfer loop */ while (hspi->RxXferCount > 0U) - 8001a0a: e02e b.n 8001a6a + 8001a76: e02e b.n 8001ad6 { /* Check the RXNE flag */ if (__HAL_SPI_GET_FLAG(hspi, SPI_FLAG_RXNE)) - 8001a0c: 68fb ldr r3, [r7, #12] - 8001a0e: 681b ldr r3, [r3, #0] - 8001a10: 689b ldr r3, [r3, #8] - 8001a12: f003 0301 and.w r3, r3, #1 - 8001a16: 2b01 cmp r3, #1 - 8001a18: d115 bne.n 8001a46 + 8001a78: 68fb ldr r3, [r7, #12] + 8001a7a: 681b ldr r3, [r3, #0] + 8001a7c: 689b ldr r3, [r3, #8] + 8001a7e: f003 0301 and.w r3, r3, #1 + 8001a82: 2b01 cmp r3, #1 + 8001a84: d115 bne.n 8001ab2 { /* read the received data */ (* (uint8_t *)hspi->pRxBuffPtr) = *(__IO uint8_t *)&hspi->Instance->DR; - 8001a1a: 68fb ldr r3, [r7, #12] - 8001a1c: 681b ldr r3, [r3, #0] - 8001a1e: f103 020c add.w r2, r3, #12 - 8001a22: 68fb ldr r3, [r7, #12] - 8001a24: 6b9b ldr r3, [r3, #56] ; 0x38 - 8001a26: 7812 ldrb r2, [r2, #0] - 8001a28: b2d2 uxtb r2, r2 - 8001a2a: 701a strb r2, [r3, #0] + 8001a86: 68fb ldr r3, [r7, #12] + 8001a88: 681b ldr r3, [r3, #0] + 8001a8a: f103 020c add.w r2, r3, #12 + 8001a8e: 68fb ldr r3, [r7, #12] + 8001a90: 6b9b ldr r3, [r3, #56] ; 0x38 + 8001a92: 7812 ldrb r2, [r2, #0] + 8001a94: b2d2 uxtb r2, r2 + 8001a96: 701a strb r2, [r3, #0] hspi->pRxBuffPtr += sizeof(uint8_t); - 8001a2c: 68fb ldr r3, [r7, #12] - 8001a2e: 6b9b ldr r3, [r3, #56] ; 0x38 - 8001a30: 1c5a adds r2, r3, #1 - 8001a32: 68fb ldr r3, [r7, #12] - 8001a34: 639a str r2, [r3, #56] ; 0x38 + 8001a98: 68fb ldr r3, [r7, #12] + 8001a9a: 6b9b ldr r3, [r3, #56] ; 0x38 + 8001a9c: 1c5a adds r2, r3, #1 + 8001a9e: 68fb ldr r3, [r7, #12] + 8001aa0: 639a str r2, [r3, #56] ; 0x38 hspi->RxXferCount--; - 8001a36: 68fb ldr r3, [r7, #12] - 8001a38: 8fdb ldrh r3, [r3, #62] ; 0x3e - 8001a3a: b29b uxth r3, r3 - 8001a3c: 3b01 subs r3, #1 - 8001a3e: b29a uxth r2, r3 - 8001a40: 68fb ldr r3, [r7, #12] - 8001a42: 87da strh r2, [r3, #62] ; 0x3e - 8001a44: e011 b.n 8001a6a + 8001aa2: 68fb ldr r3, [r7, #12] + 8001aa4: 8fdb ldrh r3, [r3, #62] ; 0x3e + 8001aa6: b29b uxth r3, r3 + 8001aa8: 3b01 subs r3, #1 + 8001aaa: b29a uxth r2, r3 + 8001aac: 68fb ldr r3, [r7, #12] + 8001aae: 87da strh r2, [r3, #62] ; 0x3e + 8001ab0: e011 b.n 8001ad6 } else { /* Timeout management */ if ((((HAL_GetTick() - tickstart) >= Timeout) && (Timeout != HAL_MAX_DELAY)) || (Timeout == 0U)) - 8001a46: f7fe fef1 bl 800082c - 8001a4a: 4602 mov r2, r0 - 8001a4c: 693b ldr r3, [r7, #16] - 8001a4e: 1ad3 subs r3, r2, r3 - 8001a50: 683a ldr r2, [r7, #0] - 8001a52: 429a cmp r2, r3 - 8001a54: d803 bhi.n 8001a5e - 8001a56: 683b ldr r3, [r7, #0] - 8001a58: f1b3 3fff cmp.w r3, #4294967295 - 8001a5c: d102 bne.n 8001a64 - 8001a5e: 683b ldr r3, [r7, #0] - 8001a60: 2b00 cmp r3, #0 - 8001a62: d102 bne.n 8001a6a + 8001ab2: f7fe fef1 bl 8000898 + 8001ab6: 4602 mov r2, r0 + 8001ab8: 693b ldr r3, [r7, #16] + 8001aba: 1ad3 subs r3, r2, r3 + 8001abc: 683a ldr r2, [r7, #0] + 8001abe: 429a cmp r2, r3 + 8001ac0: d803 bhi.n 8001aca + 8001ac2: 683b ldr r3, [r7, #0] + 8001ac4: f1b3 3fff cmp.w r3, #4294967295 + 8001ac8: d102 bne.n 8001ad0 + 8001aca: 683b ldr r3, [r7, #0] + 8001acc: 2b00 cmp r3, #0 + 8001ace: d102 bne.n 8001ad6 { errorcode = HAL_TIMEOUT; - 8001a64: 2303 movs r3, #3 - 8001a66: 75fb strb r3, [r7, #23] + 8001ad0: 2303 movs r3, #3 + 8001ad2: 75fb strb r3, [r7, #23] goto error; - 8001a68: e04a b.n 8001b00 + 8001ad4: e04a b.n 8001b6c while (hspi->RxXferCount > 0U) - 8001a6a: 68fb ldr r3, [r7, #12] - 8001a6c: 8fdb ldrh r3, [r3, #62] ; 0x3e - 8001a6e: b29b uxth r3, r3 - 8001a70: 2b00 cmp r3, #0 - 8001a72: d1cb bne.n 8001a0c - 8001a74: e031 b.n 8001ada + 8001ad6: 68fb ldr r3, [r7, #12] + 8001ad8: 8fdb ldrh r3, [r3, #62] ; 0x3e + 8001ada: b29b uxth r3, r3 + 8001adc: 2b00 cmp r3, #0 + 8001ade: d1cb bne.n 8001a78 + 8001ae0: e031 b.n 8001b46 { /* Transfer loop */ while (hspi->RxXferCount > 0U) { /* Check the RXNE flag */ if (__HAL_SPI_GET_FLAG(hspi, SPI_FLAG_RXNE)) - 8001a76: 68fb ldr r3, [r7, #12] - 8001a78: 681b ldr r3, [r3, #0] - 8001a7a: 689b ldr r3, [r3, #8] - 8001a7c: f003 0301 and.w r3, r3, #1 - 8001a80: 2b01 cmp r3, #1 - 8001a82: d113 bne.n 8001aac + 8001ae2: 68fb ldr r3, [r7, #12] + 8001ae4: 681b ldr r3, [r3, #0] + 8001ae6: 689b ldr r3, [r3, #8] + 8001ae8: f003 0301 and.w r3, r3, #1 + 8001aec: 2b01 cmp r3, #1 + 8001aee: d113 bne.n 8001b18 { *((uint16_t *)hspi->pRxBuffPtr) = (uint16_t)hspi->Instance->DR; - 8001a84: 68fb ldr r3, [r7, #12] - 8001a86: 681b ldr r3, [r3, #0] - 8001a88: 68da ldr r2, [r3, #12] - 8001a8a: 68fb ldr r3, [r7, #12] - 8001a8c: 6b9b ldr r3, [r3, #56] ; 0x38 - 8001a8e: b292 uxth r2, r2 - 8001a90: 801a strh r2, [r3, #0] + 8001af0: 68fb ldr r3, [r7, #12] + 8001af2: 681b ldr r3, [r3, #0] + 8001af4: 68da ldr r2, [r3, #12] + 8001af6: 68fb ldr r3, [r7, #12] + 8001af8: 6b9b ldr r3, [r3, #56] ; 0x38 + 8001afa: b292 uxth r2, r2 + 8001afc: 801a strh r2, [r3, #0] hspi->pRxBuffPtr += sizeof(uint16_t); - 8001a92: 68fb ldr r3, [r7, #12] - 8001a94: 6b9b ldr r3, [r3, #56] ; 0x38 - 8001a96: 1c9a adds r2, r3, #2 - 8001a98: 68fb ldr r3, [r7, #12] - 8001a9a: 639a str r2, [r3, #56] ; 0x38 + 8001afe: 68fb ldr r3, [r7, #12] + 8001b00: 6b9b ldr r3, [r3, #56] ; 0x38 + 8001b02: 1c9a adds r2, r3, #2 + 8001b04: 68fb ldr r3, [r7, #12] + 8001b06: 639a str r2, [r3, #56] ; 0x38 hspi->RxXferCount--; - 8001a9c: 68fb ldr r3, [r7, #12] - 8001a9e: 8fdb ldrh r3, [r3, #62] ; 0x3e - 8001aa0: b29b uxth r3, r3 - 8001aa2: 3b01 subs r3, #1 - 8001aa4: b29a uxth r2, r3 - 8001aa6: 68fb ldr r3, [r7, #12] - 8001aa8: 87da strh r2, [r3, #62] ; 0x3e - 8001aaa: e011 b.n 8001ad0 + 8001b08: 68fb ldr r3, [r7, #12] + 8001b0a: 8fdb ldrh r3, [r3, #62] ; 0x3e + 8001b0c: b29b uxth r3, r3 + 8001b0e: 3b01 subs r3, #1 + 8001b10: b29a uxth r2, r3 + 8001b12: 68fb ldr r3, [r7, #12] + 8001b14: 87da strh r2, [r3, #62] ; 0x3e + 8001b16: e011 b.n 8001b3c } else { /* Timeout management */ if ((((HAL_GetTick() - tickstart) >= Timeout) && (Timeout != HAL_MAX_DELAY)) || (Timeout == 0U)) - 8001aac: f7fe febe bl 800082c - 8001ab0: 4602 mov r2, r0 - 8001ab2: 693b ldr r3, [r7, #16] - 8001ab4: 1ad3 subs r3, r2, r3 - 8001ab6: 683a ldr r2, [r7, #0] - 8001ab8: 429a cmp r2, r3 - 8001aba: d803 bhi.n 8001ac4 - 8001abc: 683b ldr r3, [r7, #0] - 8001abe: f1b3 3fff cmp.w r3, #4294967295 - 8001ac2: d102 bne.n 8001aca - 8001ac4: 683b ldr r3, [r7, #0] - 8001ac6: 2b00 cmp r3, #0 - 8001ac8: d102 bne.n 8001ad0 + 8001b18: f7fe febe bl 8000898 + 8001b1c: 4602 mov r2, r0 + 8001b1e: 693b ldr r3, [r7, #16] + 8001b20: 1ad3 subs r3, r2, r3 + 8001b22: 683a ldr r2, [r7, #0] + 8001b24: 429a cmp r2, r3 + 8001b26: d803 bhi.n 8001b30 + 8001b28: 683b ldr r3, [r7, #0] + 8001b2a: f1b3 3fff cmp.w r3, #4294967295 + 8001b2e: d102 bne.n 8001b36 + 8001b30: 683b ldr r3, [r7, #0] + 8001b32: 2b00 cmp r3, #0 + 8001b34: d102 bne.n 8001b3c { errorcode = HAL_TIMEOUT; - 8001aca: 2303 movs r3, #3 - 8001acc: 75fb strb r3, [r7, #23] + 8001b36: 2303 movs r3, #3 + 8001b38: 75fb strb r3, [r7, #23] goto error; - 8001ace: e017 b.n 8001b00 + 8001b3a: e017 b.n 8001b6c while (hspi->RxXferCount > 0U) - 8001ad0: 68fb ldr r3, [r7, #12] - 8001ad2: 8fdb ldrh r3, [r3, #62] ; 0x3e - 8001ad4: b29b uxth r3, r3 - 8001ad6: 2b00 cmp r3, #0 - 8001ad8: d1cd bne.n 8001a76 + 8001b3c: 68fb ldr r3, [r7, #12] + 8001b3e: 8fdb ldrh r3, [r3, #62] ; 0x3e + 8001b40: b29b uxth r3, r3 + 8001b42: 2b00 cmp r3, #0 + 8001b44: d1cd bne.n 8001ae2 READ_REG(hspi->Instance->DR); } #endif /* USE_SPI_CRC */ /* Check the end of the transaction */ if (SPI_EndRxTransaction(hspi, Timeout, tickstart) != HAL_OK) - 8001ada: 693a ldr r2, [r7, #16] - 8001adc: 6839 ldr r1, [r7, #0] - 8001ade: 68f8 ldr r0, [r7, #12] - 8001ae0: f000 fa52 bl 8001f88 - 8001ae4: 4603 mov r3, r0 - 8001ae6: 2b00 cmp r3, #0 - 8001ae8: d002 beq.n 8001af0 + 8001b46: 693a ldr r2, [r7, #16] + 8001b48: 6839 ldr r1, [r7, #0] + 8001b4a: 68f8 ldr r0, [r7, #12] + 8001b4c: f000 fa52 bl 8001ff4 + 8001b50: 4603 mov r3, r0 + 8001b52: 2b00 cmp r3, #0 + 8001b54: d002 beq.n 8001b5c { hspi->ErrorCode = HAL_SPI_ERROR_FLAG; - 8001aea: 68fb ldr r3, [r7, #12] - 8001aec: 2220 movs r2, #32 - 8001aee: 655a str r2, [r3, #84] ; 0x54 + 8001b56: 68fb ldr r3, [r7, #12] + 8001b58: 2220 movs r2, #32 + 8001b5a: 655a str r2, [r3, #84] ; 0x54 __HAL_SPI_CLEAR_CRCERRFLAG(hspi); } } #endif /* USE_SPI_CRC */ if (hspi->ErrorCode != HAL_SPI_ERROR_NONE) - 8001af0: 68fb ldr r3, [r7, #12] - 8001af2: 6d5b ldr r3, [r3, #84] ; 0x54 - 8001af4: 2b00 cmp r3, #0 - 8001af6: d002 beq.n 8001afe + 8001b5c: 68fb ldr r3, [r7, #12] + 8001b5e: 6d5b ldr r3, [r3, #84] ; 0x54 + 8001b60: 2b00 cmp r3, #0 + 8001b62: d002 beq.n 8001b6a { errorcode = HAL_ERROR; - 8001af8: 2301 movs r3, #1 - 8001afa: 75fb strb r3, [r7, #23] - 8001afc: e000 b.n 8001b00 + 8001b64: 2301 movs r3, #1 + 8001b66: 75fb strb r3, [r7, #23] + 8001b68: e000 b.n 8001b6c } error : - 8001afe: bf00 nop + 8001b6a: bf00 nop hspi->State = HAL_SPI_STATE_READY; - 8001b00: 68fb ldr r3, [r7, #12] - 8001b02: 2201 movs r2, #1 - 8001b04: f883 2051 strb.w r2, [r3, #81] ; 0x51 + 8001b6c: 68fb ldr r3, [r7, #12] + 8001b6e: 2201 movs r2, #1 + 8001b70: f883 2051 strb.w r2, [r3, #81] ; 0x51 __HAL_UNLOCK(hspi); - 8001b08: 68fb ldr r3, [r7, #12] - 8001b0a: 2200 movs r2, #0 - 8001b0c: f883 2050 strb.w r2, [r3, #80] ; 0x50 + 8001b74: 68fb ldr r3, [r7, #12] + 8001b76: 2200 movs r2, #0 + 8001b78: f883 2050 strb.w r2, [r3, #80] ; 0x50 return errorcode; - 8001b10: 7dfb ldrb r3, [r7, #23] + 8001b7c: 7dfb ldrb r3, [r7, #23] } - 8001b12: 4618 mov r0, r3 - 8001b14: 3718 adds r7, #24 - 8001b16: 46bd mov sp, r7 - 8001b18: bd80 pop {r7, pc} + 8001b7e: 4618 mov r0, r3 + 8001b80: 3718 adds r7, #24 + 8001b82: 46bd mov sp, r7 + 8001b84: bd80 pop {r7, pc} -08001b1a : +08001b86 : * @param Timeout Timeout duration * @retval HAL status */ HAL_StatusTypeDef HAL_SPI_TransmitReceive(SPI_HandleTypeDef *hspi, uint8_t *pTxData, uint8_t *pRxData, uint16_t Size, uint32_t Timeout) { - 8001b1a: b580 push {r7, lr} - 8001b1c: b08c sub sp, #48 ; 0x30 - 8001b1e: af00 add r7, sp, #0 - 8001b20: 60f8 str r0, [r7, #12] - 8001b22: 60b9 str r1, [r7, #8] - 8001b24: 607a str r2, [r7, #4] - 8001b26: 807b strh r3, [r7, #2] + 8001b86: b580 push {r7, lr} + 8001b88: b08c sub sp, #48 ; 0x30 + 8001b8a: af00 add r7, sp, #0 + 8001b8c: 60f8 str r0, [r7, #12] + 8001b8e: 60b9 str r1, [r7, #8] + 8001b90: 607a str r2, [r7, #4] + 8001b92: 807b strh r3, [r7, #2] uint32_t tmp_mode; HAL_SPI_StateTypeDef tmp_state; uint32_t tickstart; /* Variable used to alternate Rx and Tx during transfer */ uint32_t txallowed = 1U; - 8001b28: 2301 movs r3, #1 - 8001b2a: 62fb str r3, [r7, #44] ; 0x2c + 8001b94: 2301 movs r3, #1 + 8001b96: 62fb str r3, [r7, #44] ; 0x2c HAL_StatusTypeDef errorcode = HAL_OK; - 8001b2c: 2300 movs r3, #0 - 8001b2e: f887 302b strb.w r3, [r7, #43] ; 0x2b + 8001b98: 2300 movs r3, #0 + 8001b9a: f887 302b strb.w r3, [r7, #43] ; 0x2b /* Check Direction parameter */ assert_param(IS_SPI_DIRECTION_2LINES(hspi->Init.Direction)); /* Process Locked */ __HAL_LOCK(hspi); - 8001b32: 68fb ldr r3, [r7, #12] - 8001b34: f893 3050 ldrb.w r3, [r3, #80] ; 0x50 - 8001b38: 2b01 cmp r3, #1 - 8001b3a: d101 bne.n 8001b40 - 8001b3c: 2302 movs r3, #2 - 8001b3e: e18a b.n 8001e56 - 8001b40: 68fb ldr r3, [r7, #12] - 8001b42: 2201 movs r2, #1 - 8001b44: f883 2050 strb.w r2, [r3, #80] ; 0x50 + 8001b9e: 68fb ldr r3, [r7, #12] + 8001ba0: f893 3050 ldrb.w r3, [r3, #80] ; 0x50 + 8001ba4: 2b01 cmp r3, #1 + 8001ba6: d101 bne.n 8001bac + 8001ba8: 2302 movs r3, #2 + 8001baa: e18a b.n 8001ec2 + 8001bac: 68fb ldr r3, [r7, #12] + 8001bae: 2201 movs r2, #1 + 8001bb0: f883 2050 strb.w r2, [r3, #80] ; 0x50 /* Init tickstart for timeout management*/ tickstart = HAL_GetTick(); - 8001b48: f7fe fe70 bl 800082c - 8001b4c: 6278 str r0, [r7, #36] ; 0x24 + 8001bb4: f7fe fe70 bl 8000898 + 8001bb8: 6278 str r0, [r7, #36] ; 0x24 /* Init temporary variables */ tmp_state = hspi->State; - 8001b4e: 68fb ldr r3, [r7, #12] - 8001b50: f893 3051 ldrb.w r3, [r3, #81] ; 0x51 - 8001b54: f887 3023 strb.w r3, [r7, #35] ; 0x23 + 8001bba: 68fb ldr r3, [r7, #12] + 8001bbc: f893 3051 ldrb.w r3, [r3, #81] ; 0x51 + 8001bc0: f887 3023 strb.w r3, [r7, #35] ; 0x23 tmp_mode = hspi->Init.Mode; - 8001b58: 68fb ldr r3, [r7, #12] - 8001b5a: 685b ldr r3, [r3, #4] - 8001b5c: 61fb str r3, [r7, #28] + 8001bc4: 68fb ldr r3, [r7, #12] + 8001bc6: 685b ldr r3, [r3, #4] + 8001bc8: 61fb str r3, [r7, #28] initial_TxXferCount = Size; - 8001b5e: 887b ldrh r3, [r7, #2] - 8001b60: 837b strh r3, [r7, #26] + 8001bca: 887b ldrh r3, [r7, #2] + 8001bcc: 837b strh r3, [r7, #26] if (!((tmp_state == HAL_SPI_STATE_READY) || \ - 8001b62: f897 3023 ldrb.w r3, [r7, #35] ; 0x23 - 8001b66: 2b01 cmp r3, #1 - 8001b68: d00f beq.n 8001b8a - 8001b6a: 69fb ldr r3, [r7, #28] - 8001b6c: f5b3 7f82 cmp.w r3, #260 ; 0x104 - 8001b70: d107 bne.n 8001b82 + 8001bce: f897 3023 ldrb.w r3, [r7, #35] ; 0x23 + 8001bd2: 2b01 cmp r3, #1 + 8001bd4: d00f beq.n 8001bf6 + 8001bd6: 69fb ldr r3, [r7, #28] + 8001bd8: f5b3 7f82 cmp.w r3, #260 ; 0x104 + 8001bdc: d107 bne.n 8001bee ((tmp_mode == SPI_MODE_MASTER) && (hspi->Init.Direction == SPI_DIRECTION_2LINES) && (tmp_state == HAL_SPI_STATE_BUSY_RX)))) - 8001b72: 68fb ldr r3, [r7, #12] - 8001b74: 689b ldr r3, [r3, #8] - 8001b76: 2b00 cmp r3, #0 - 8001b78: d103 bne.n 8001b82 - 8001b7a: f897 3023 ldrb.w r3, [r7, #35] ; 0x23 - 8001b7e: 2b04 cmp r3, #4 - 8001b80: d003 beq.n 8001b8a + 8001bde: 68fb ldr r3, [r7, #12] + 8001be0: 689b ldr r3, [r3, #8] + 8001be2: 2b00 cmp r3, #0 + 8001be4: d103 bne.n 8001bee + 8001be6: f897 3023 ldrb.w r3, [r7, #35] ; 0x23 + 8001bea: 2b04 cmp r3, #4 + 8001bec: d003 beq.n 8001bf6 { errorcode = HAL_BUSY; - 8001b82: 2302 movs r3, #2 - 8001b84: f887 302b strb.w r3, [r7, #43] ; 0x2b + 8001bee: 2302 movs r3, #2 + 8001bf0: f887 302b strb.w r3, [r7, #43] ; 0x2b goto error; - 8001b88: e15b b.n 8001e42 + 8001bf4: e15b b.n 8001eae } if ((pTxData == NULL) || (pRxData == NULL) || (Size == 0U)) - 8001b8a: 68bb ldr r3, [r7, #8] - 8001b8c: 2b00 cmp r3, #0 - 8001b8e: d005 beq.n 8001b9c - 8001b90: 687b ldr r3, [r7, #4] - 8001b92: 2b00 cmp r3, #0 - 8001b94: d002 beq.n 8001b9c - 8001b96: 887b ldrh r3, [r7, #2] - 8001b98: 2b00 cmp r3, #0 - 8001b9a: d103 bne.n 8001ba4 + 8001bf6: 68bb ldr r3, [r7, #8] + 8001bf8: 2b00 cmp r3, #0 + 8001bfa: d005 beq.n 8001c08 + 8001bfc: 687b ldr r3, [r7, #4] + 8001bfe: 2b00 cmp r3, #0 + 8001c00: d002 beq.n 8001c08 + 8001c02: 887b ldrh r3, [r7, #2] + 8001c04: 2b00 cmp r3, #0 + 8001c06: d103 bne.n 8001c10 { errorcode = HAL_ERROR; - 8001b9c: 2301 movs r3, #1 - 8001b9e: f887 302b strb.w r3, [r7, #43] ; 0x2b + 8001c08: 2301 movs r3, #1 + 8001c0a: f887 302b strb.w r3, [r7, #43] ; 0x2b goto error; - 8001ba2: e14e b.n 8001e42 + 8001c0e: e14e b.n 8001eae } /* Don't overwrite in case of HAL_SPI_STATE_BUSY_RX */ if (hspi->State != HAL_SPI_STATE_BUSY_RX) - 8001ba4: 68fb ldr r3, [r7, #12] - 8001ba6: f893 3051 ldrb.w r3, [r3, #81] ; 0x51 - 8001baa: b2db uxtb r3, r3 - 8001bac: 2b04 cmp r3, #4 - 8001bae: d003 beq.n 8001bb8 + 8001c10: 68fb ldr r3, [r7, #12] + 8001c12: f893 3051 ldrb.w r3, [r3, #81] ; 0x51 + 8001c16: b2db uxtb r3, r3 + 8001c18: 2b04 cmp r3, #4 + 8001c1a: d003 beq.n 8001c24 { hspi->State = HAL_SPI_STATE_BUSY_TX_RX; - 8001bb0: 68fb ldr r3, [r7, #12] - 8001bb2: 2205 movs r2, #5 - 8001bb4: f883 2051 strb.w r2, [r3, #81] ; 0x51 + 8001c1c: 68fb ldr r3, [r7, #12] + 8001c1e: 2205 movs r2, #5 + 8001c20: f883 2051 strb.w r2, [r3, #81] ; 0x51 } /* Set the transaction information */ hspi->ErrorCode = HAL_SPI_ERROR_NONE; - 8001bb8: 68fb ldr r3, [r7, #12] - 8001bba: 2200 movs r2, #0 - 8001bbc: 655a str r2, [r3, #84] ; 0x54 + 8001c24: 68fb ldr r3, [r7, #12] + 8001c26: 2200 movs r2, #0 + 8001c28: 655a str r2, [r3, #84] ; 0x54 hspi->pRxBuffPtr = (uint8_t *)pRxData; - 8001bbe: 68fb ldr r3, [r7, #12] - 8001bc0: 687a ldr r2, [r7, #4] - 8001bc2: 639a str r2, [r3, #56] ; 0x38 + 8001c2a: 68fb ldr r3, [r7, #12] + 8001c2c: 687a ldr r2, [r7, #4] + 8001c2e: 639a str r2, [r3, #56] ; 0x38 hspi->RxXferCount = Size; - 8001bc4: 68fb ldr r3, [r7, #12] - 8001bc6: 887a ldrh r2, [r7, #2] - 8001bc8: 87da strh r2, [r3, #62] ; 0x3e + 8001c30: 68fb ldr r3, [r7, #12] + 8001c32: 887a ldrh r2, [r7, #2] + 8001c34: 87da strh r2, [r3, #62] ; 0x3e hspi->RxXferSize = Size; - 8001bca: 68fb ldr r3, [r7, #12] - 8001bcc: 887a ldrh r2, [r7, #2] - 8001bce: 879a strh r2, [r3, #60] ; 0x3c + 8001c36: 68fb ldr r3, [r7, #12] + 8001c38: 887a ldrh r2, [r7, #2] + 8001c3a: 879a strh r2, [r3, #60] ; 0x3c hspi->pTxBuffPtr = (uint8_t *)pTxData; - 8001bd0: 68fb ldr r3, [r7, #12] - 8001bd2: 68ba ldr r2, [r7, #8] - 8001bd4: 631a str r2, [r3, #48] ; 0x30 + 8001c3c: 68fb ldr r3, [r7, #12] + 8001c3e: 68ba ldr r2, [r7, #8] + 8001c40: 631a str r2, [r3, #48] ; 0x30 hspi->TxXferCount = Size; - 8001bd6: 68fb ldr r3, [r7, #12] - 8001bd8: 887a ldrh r2, [r7, #2] - 8001bda: 86da strh r2, [r3, #54] ; 0x36 + 8001c42: 68fb ldr r3, [r7, #12] + 8001c44: 887a ldrh r2, [r7, #2] + 8001c46: 86da strh r2, [r3, #54] ; 0x36 hspi->TxXferSize = Size; - 8001bdc: 68fb ldr r3, [r7, #12] - 8001bde: 887a ldrh r2, [r7, #2] - 8001be0: 869a strh r2, [r3, #52] ; 0x34 + 8001c48: 68fb ldr r3, [r7, #12] + 8001c4a: 887a ldrh r2, [r7, #2] + 8001c4c: 869a strh r2, [r3, #52] ; 0x34 /*Init field not used in handle to zero */ hspi->RxISR = NULL; - 8001be2: 68fb ldr r3, [r7, #12] - 8001be4: 2200 movs r2, #0 - 8001be6: 641a str r2, [r3, #64] ; 0x40 + 8001c4e: 68fb ldr r3, [r7, #12] + 8001c50: 2200 movs r2, #0 + 8001c52: 641a str r2, [r3, #64] ; 0x40 hspi->TxISR = NULL; - 8001be8: 68fb ldr r3, [r7, #12] - 8001bea: 2200 movs r2, #0 - 8001bec: 645a str r2, [r3, #68] ; 0x44 + 8001c54: 68fb ldr r3, [r7, #12] + 8001c56: 2200 movs r2, #0 + 8001c58: 645a str r2, [r3, #68] ; 0x44 SPI_RESET_CRC(hspi); } #endif /* USE_SPI_CRC */ /* Check if the SPI is already enabled */ if ((hspi->Instance->CR1 & SPI_CR1_SPE) != SPI_CR1_SPE) - 8001bee: 68fb ldr r3, [r7, #12] - 8001bf0: 681b ldr r3, [r3, #0] - 8001bf2: 681b ldr r3, [r3, #0] - 8001bf4: f003 0340 and.w r3, r3, #64 ; 0x40 - 8001bf8: 2b40 cmp r3, #64 ; 0x40 - 8001bfa: d007 beq.n 8001c0c + 8001c5a: 68fb ldr r3, [r7, #12] + 8001c5c: 681b ldr r3, [r3, #0] + 8001c5e: 681b ldr r3, [r3, #0] + 8001c60: f003 0340 and.w r3, r3, #64 ; 0x40 + 8001c64: 2b40 cmp r3, #64 ; 0x40 + 8001c66: d007 beq.n 8001c78 { /* Enable SPI peripheral */ __HAL_SPI_ENABLE(hspi); - 8001bfc: 68fb ldr r3, [r7, #12] - 8001bfe: 681b ldr r3, [r3, #0] - 8001c00: 681a ldr r2, [r3, #0] - 8001c02: 68fb ldr r3, [r7, #12] - 8001c04: 681b ldr r3, [r3, #0] - 8001c06: f042 0240 orr.w r2, r2, #64 ; 0x40 - 8001c0a: 601a str r2, [r3, #0] + 8001c68: 68fb ldr r3, [r7, #12] + 8001c6a: 681b ldr r3, [r3, #0] + 8001c6c: 681a ldr r2, [r3, #0] + 8001c6e: 68fb ldr r3, [r7, #12] + 8001c70: 681b ldr r3, [r3, #0] + 8001c72: f042 0240 orr.w r2, r2, #64 ; 0x40 + 8001c76: 601a str r2, [r3, #0] } /* Transmit and Receive data in 16 Bit mode */ if (hspi->Init.DataSize == SPI_DATASIZE_16BIT) - 8001c0c: 68fb ldr r3, [r7, #12] - 8001c0e: 68db ldr r3, [r3, #12] - 8001c10: f5b3 6f00 cmp.w r3, #2048 ; 0x800 - 8001c14: d178 bne.n 8001d08 + 8001c78: 68fb ldr r3, [r7, #12] + 8001c7a: 68db ldr r3, [r3, #12] + 8001c7c: f5b3 6f00 cmp.w r3, #2048 ; 0x800 + 8001c80: d178 bne.n 8001d74 { if ((hspi->Init.Mode == SPI_MODE_SLAVE) || (initial_TxXferCount == 0x01U)) - 8001c16: 68fb ldr r3, [r7, #12] - 8001c18: 685b ldr r3, [r3, #4] - 8001c1a: 2b00 cmp r3, #0 - 8001c1c: d002 beq.n 8001c24 - 8001c1e: 8b7b ldrh r3, [r7, #26] - 8001c20: 2b01 cmp r3, #1 - 8001c22: d166 bne.n 8001cf2 + 8001c82: 68fb ldr r3, [r7, #12] + 8001c84: 685b ldr r3, [r3, #4] + 8001c86: 2b00 cmp r3, #0 + 8001c88: d002 beq.n 8001c90 + 8001c8a: 8b7b ldrh r3, [r7, #26] + 8001c8c: 2b01 cmp r3, #1 + 8001c8e: d166 bne.n 8001d5e { hspi->Instance->DR = *((uint16_t *)hspi->pTxBuffPtr); - 8001c24: 68fb ldr r3, [r7, #12] - 8001c26: 6b1b ldr r3, [r3, #48] ; 0x30 - 8001c28: 881a ldrh r2, [r3, #0] - 8001c2a: 68fb ldr r3, [r7, #12] - 8001c2c: 681b ldr r3, [r3, #0] - 8001c2e: 60da str r2, [r3, #12] + 8001c90: 68fb ldr r3, [r7, #12] + 8001c92: 6b1b ldr r3, [r3, #48] ; 0x30 + 8001c94: 881a ldrh r2, [r3, #0] + 8001c96: 68fb ldr r3, [r7, #12] + 8001c98: 681b ldr r3, [r3, #0] + 8001c9a: 60da str r2, [r3, #12] hspi->pTxBuffPtr += sizeof(uint16_t); - 8001c30: 68fb ldr r3, [r7, #12] - 8001c32: 6b1b ldr r3, [r3, #48] ; 0x30 - 8001c34: 1c9a adds r2, r3, #2 - 8001c36: 68fb ldr r3, [r7, #12] - 8001c38: 631a str r2, [r3, #48] ; 0x30 + 8001c9c: 68fb ldr r3, [r7, #12] + 8001c9e: 6b1b ldr r3, [r3, #48] ; 0x30 + 8001ca0: 1c9a adds r2, r3, #2 + 8001ca2: 68fb ldr r3, [r7, #12] + 8001ca4: 631a str r2, [r3, #48] ; 0x30 hspi->TxXferCount--; - 8001c3a: 68fb ldr r3, [r7, #12] - 8001c3c: 8edb ldrh r3, [r3, #54] ; 0x36 - 8001c3e: b29b uxth r3, r3 - 8001c40: 3b01 subs r3, #1 - 8001c42: b29a uxth r2, r3 - 8001c44: 68fb ldr r3, [r7, #12] - 8001c46: 86da strh r2, [r3, #54] ; 0x36 + 8001ca6: 68fb ldr r3, [r7, #12] + 8001ca8: 8edb ldrh r3, [r3, #54] ; 0x36 + 8001caa: b29b uxth r3, r3 + 8001cac: 3b01 subs r3, #1 + 8001cae: b29a uxth r2, r3 + 8001cb0: 68fb ldr r3, [r7, #12] + 8001cb2: 86da strh r2, [r3, #54] ; 0x36 } while ((hspi->TxXferCount > 0U) || (hspi->RxXferCount > 0U)) - 8001c48: e053 b.n 8001cf2 + 8001cb4: e053 b.n 8001d5e { /* Check TXE flag */ if ((__HAL_SPI_GET_FLAG(hspi, SPI_FLAG_TXE)) && (hspi->TxXferCount > 0U) && (txallowed == 1U)) - 8001c4a: 68fb ldr r3, [r7, #12] - 8001c4c: 681b ldr r3, [r3, #0] - 8001c4e: 689b ldr r3, [r3, #8] - 8001c50: f003 0302 and.w r3, r3, #2 - 8001c54: 2b02 cmp r3, #2 - 8001c56: d11b bne.n 8001c90 - 8001c58: 68fb ldr r3, [r7, #12] - 8001c5a: 8edb ldrh r3, [r3, #54] ; 0x36 - 8001c5c: b29b uxth r3, r3 - 8001c5e: 2b00 cmp r3, #0 - 8001c60: d016 beq.n 8001c90 - 8001c62: 6afb ldr r3, [r7, #44] ; 0x2c - 8001c64: 2b01 cmp r3, #1 - 8001c66: d113 bne.n 8001c90 + 8001cb6: 68fb ldr r3, [r7, #12] + 8001cb8: 681b ldr r3, [r3, #0] + 8001cba: 689b ldr r3, [r3, #8] + 8001cbc: f003 0302 and.w r3, r3, #2 + 8001cc0: 2b02 cmp r3, #2 + 8001cc2: d11b bne.n 8001cfc + 8001cc4: 68fb ldr r3, [r7, #12] + 8001cc6: 8edb ldrh r3, [r3, #54] ; 0x36 + 8001cc8: b29b uxth r3, r3 + 8001cca: 2b00 cmp r3, #0 + 8001ccc: d016 beq.n 8001cfc + 8001cce: 6afb ldr r3, [r7, #44] ; 0x2c + 8001cd0: 2b01 cmp r3, #1 + 8001cd2: d113 bne.n 8001cfc { hspi->Instance->DR = *((uint16_t *)hspi->pTxBuffPtr); - 8001c68: 68fb ldr r3, [r7, #12] - 8001c6a: 6b1b ldr r3, [r3, #48] ; 0x30 - 8001c6c: 881a ldrh r2, [r3, #0] - 8001c6e: 68fb ldr r3, [r7, #12] - 8001c70: 681b ldr r3, [r3, #0] - 8001c72: 60da str r2, [r3, #12] + 8001cd4: 68fb ldr r3, [r7, #12] + 8001cd6: 6b1b ldr r3, [r3, #48] ; 0x30 + 8001cd8: 881a ldrh r2, [r3, #0] + 8001cda: 68fb ldr r3, [r7, #12] + 8001cdc: 681b ldr r3, [r3, #0] + 8001cde: 60da str r2, [r3, #12] hspi->pTxBuffPtr += sizeof(uint16_t); - 8001c74: 68fb ldr r3, [r7, #12] - 8001c76: 6b1b ldr r3, [r3, #48] ; 0x30 - 8001c78: 1c9a adds r2, r3, #2 - 8001c7a: 68fb ldr r3, [r7, #12] - 8001c7c: 631a str r2, [r3, #48] ; 0x30 + 8001ce0: 68fb ldr r3, [r7, #12] + 8001ce2: 6b1b ldr r3, [r3, #48] ; 0x30 + 8001ce4: 1c9a adds r2, r3, #2 + 8001ce6: 68fb ldr r3, [r7, #12] + 8001ce8: 631a str r2, [r3, #48] ; 0x30 hspi->TxXferCount--; - 8001c7e: 68fb ldr r3, [r7, #12] - 8001c80: 8edb ldrh r3, [r3, #54] ; 0x36 - 8001c82: b29b uxth r3, r3 - 8001c84: 3b01 subs r3, #1 - 8001c86: b29a uxth r2, r3 - 8001c88: 68fb ldr r3, [r7, #12] - 8001c8a: 86da strh r2, [r3, #54] ; 0x36 + 8001cea: 68fb ldr r3, [r7, #12] + 8001cec: 8edb ldrh r3, [r3, #54] ; 0x36 + 8001cee: b29b uxth r3, r3 + 8001cf0: 3b01 subs r3, #1 + 8001cf2: b29a uxth r2, r3 + 8001cf4: 68fb ldr r3, [r7, #12] + 8001cf6: 86da strh r2, [r3, #54] ; 0x36 /* Next Data is a reception (Rx). Tx not allowed */ txallowed = 0U; - 8001c8c: 2300 movs r3, #0 - 8001c8e: 62fb str r3, [r7, #44] ; 0x2c + 8001cf8: 2300 movs r3, #0 + 8001cfa: 62fb str r3, [r7, #44] ; 0x2c } #endif /* USE_SPI_CRC */ } /* Check RXNE flag */ if ((__HAL_SPI_GET_FLAG(hspi, SPI_FLAG_RXNE)) && (hspi->RxXferCount > 0U)) - 8001c90: 68fb ldr r3, [r7, #12] - 8001c92: 681b ldr r3, [r3, #0] - 8001c94: 689b ldr r3, [r3, #8] - 8001c96: f003 0301 and.w r3, r3, #1 - 8001c9a: 2b01 cmp r3, #1 - 8001c9c: d119 bne.n 8001cd2 - 8001c9e: 68fb ldr r3, [r7, #12] - 8001ca0: 8fdb ldrh r3, [r3, #62] ; 0x3e - 8001ca2: b29b uxth r3, r3 - 8001ca4: 2b00 cmp r3, #0 - 8001ca6: d014 beq.n 8001cd2 + 8001cfc: 68fb ldr r3, [r7, #12] + 8001cfe: 681b ldr r3, [r3, #0] + 8001d00: 689b ldr r3, [r3, #8] + 8001d02: f003 0301 and.w r3, r3, #1 + 8001d06: 2b01 cmp r3, #1 + 8001d08: d119 bne.n 8001d3e + 8001d0a: 68fb ldr r3, [r7, #12] + 8001d0c: 8fdb ldrh r3, [r3, #62] ; 0x3e + 8001d0e: b29b uxth r3, r3 + 8001d10: 2b00 cmp r3, #0 + 8001d12: d014 beq.n 8001d3e { *((uint16_t *)hspi->pRxBuffPtr) = (uint16_t)hspi->Instance->DR; - 8001ca8: 68fb ldr r3, [r7, #12] - 8001caa: 681b ldr r3, [r3, #0] - 8001cac: 68da ldr r2, [r3, #12] - 8001cae: 68fb ldr r3, [r7, #12] - 8001cb0: 6b9b ldr r3, [r3, #56] ; 0x38 - 8001cb2: b292 uxth r2, r2 - 8001cb4: 801a strh r2, [r3, #0] + 8001d14: 68fb ldr r3, [r7, #12] + 8001d16: 681b ldr r3, [r3, #0] + 8001d18: 68da ldr r2, [r3, #12] + 8001d1a: 68fb ldr r3, [r7, #12] + 8001d1c: 6b9b ldr r3, [r3, #56] ; 0x38 + 8001d1e: b292 uxth r2, r2 + 8001d20: 801a strh r2, [r3, #0] hspi->pRxBuffPtr += sizeof(uint16_t); - 8001cb6: 68fb ldr r3, [r7, #12] - 8001cb8: 6b9b ldr r3, [r3, #56] ; 0x38 - 8001cba: 1c9a adds r2, r3, #2 - 8001cbc: 68fb ldr r3, [r7, #12] - 8001cbe: 639a str r2, [r3, #56] ; 0x38 + 8001d22: 68fb ldr r3, [r7, #12] + 8001d24: 6b9b ldr r3, [r3, #56] ; 0x38 + 8001d26: 1c9a adds r2, r3, #2 + 8001d28: 68fb ldr r3, [r7, #12] + 8001d2a: 639a str r2, [r3, #56] ; 0x38 hspi->RxXferCount--; - 8001cc0: 68fb ldr r3, [r7, #12] - 8001cc2: 8fdb ldrh r3, [r3, #62] ; 0x3e - 8001cc4: b29b uxth r3, r3 - 8001cc6: 3b01 subs r3, #1 - 8001cc8: b29a uxth r2, r3 - 8001cca: 68fb ldr r3, [r7, #12] - 8001ccc: 87da strh r2, [r3, #62] ; 0x3e + 8001d2c: 68fb ldr r3, [r7, #12] + 8001d2e: 8fdb ldrh r3, [r3, #62] ; 0x3e + 8001d30: b29b uxth r3, r3 + 8001d32: 3b01 subs r3, #1 + 8001d34: b29a uxth r2, r3 + 8001d36: 68fb ldr r3, [r7, #12] + 8001d38: 87da strh r2, [r3, #62] ; 0x3e /* Next Data is a Transmission (Tx). Tx is allowed */ txallowed = 1U; - 8001cce: 2301 movs r3, #1 - 8001cd0: 62fb str r3, [r7, #44] ; 0x2c + 8001d3a: 2301 movs r3, #1 + 8001d3c: 62fb str r3, [r7, #44] ; 0x2c } if (((HAL_GetTick() - tickstart) >= Timeout) && (Timeout != HAL_MAX_DELAY)) - 8001cd2: f7fe fdab bl 800082c - 8001cd6: 4602 mov r2, r0 - 8001cd8: 6a7b ldr r3, [r7, #36] ; 0x24 - 8001cda: 1ad3 subs r3, r2, r3 - 8001cdc: 6bba ldr r2, [r7, #56] ; 0x38 - 8001cde: 429a cmp r2, r3 - 8001ce0: d807 bhi.n 8001cf2 - 8001ce2: 6bbb ldr r3, [r7, #56] ; 0x38 - 8001ce4: f1b3 3fff cmp.w r3, #4294967295 - 8001ce8: d003 beq.n 8001cf2 + 8001d3e: f7fe fdab bl 8000898 + 8001d42: 4602 mov r2, r0 + 8001d44: 6a7b ldr r3, [r7, #36] ; 0x24 + 8001d46: 1ad3 subs r3, r2, r3 + 8001d48: 6bba ldr r2, [r7, #56] ; 0x38 + 8001d4a: 429a cmp r2, r3 + 8001d4c: d807 bhi.n 8001d5e + 8001d4e: 6bbb ldr r3, [r7, #56] ; 0x38 + 8001d50: f1b3 3fff cmp.w r3, #4294967295 + 8001d54: d003 beq.n 8001d5e { errorcode = HAL_TIMEOUT; - 8001cea: 2303 movs r3, #3 - 8001cec: f887 302b strb.w r3, [r7, #43] ; 0x2b + 8001d56: 2303 movs r3, #3 + 8001d58: f887 302b strb.w r3, [r7, #43] ; 0x2b goto error; - 8001cf0: e0a7 b.n 8001e42 + 8001d5c: e0a7 b.n 8001eae while ((hspi->TxXferCount > 0U) || (hspi->RxXferCount > 0U)) - 8001cf2: 68fb ldr r3, [r7, #12] - 8001cf4: 8edb ldrh r3, [r3, #54] ; 0x36 - 8001cf6: b29b uxth r3, r3 - 8001cf8: 2b00 cmp r3, #0 - 8001cfa: d1a6 bne.n 8001c4a - 8001cfc: 68fb ldr r3, [r7, #12] - 8001cfe: 8fdb ldrh r3, [r3, #62] ; 0x3e - 8001d00: b29b uxth r3, r3 - 8001d02: 2b00 cmp r3, #0 - 8001d04: d1a1 bne.n 8001c4a - 8001d06: e07c b.n 8001e02 + 8001d5e: 68fb ldr r3, [r7, #12] + 8001d60: 8edb ldrh r3, [r3, #54] ; 0x36 + 8001d62: b29b uxth r3, r3 + 8001d64: 2b00 cmp r3, #0 + 8001d66: d1a6 bne.n 8001cb6 + 8001d68: 68fb ldr r3, [r7, #12] + 8001d6a: 8fdb ldrh r3, [r3, #62] ; 0x3e + 8001d6c: b29b uxth r3, r3 + 8001d6e: 2b00 cmp r3, #0 + 8001d70: d1a1 bne.n 8001cb6 + 8001d72: e07c b.n 8001e6e } } /* Transmit and Receive data in 8 Bit mode */ else { if ((hspi->Init.Mode == SPI_MODE_SLAVE) || (initial_TxXferCount == 0x01U)) - 8001d08: 68fb ldr r3, [r7, #12] - 8001d0a: 685b ldr r3, [r3, #4] - 8001d0c: 2b00 cmp r3, #0 - 8001d0e: d002 beq.n 8001d16 - 8001d10: 8b7b ldrh r3, [r7, #26] - 8001d12: 2b01 cmp r3, #1 - 8001d14: d16b bne.n 8001dee + 8001d74: 68fb ldr r3, [r7, #12] + 8001d76: 685b ldr r3, [r3, #4] + 8001d78: 2b00 cmp r3, #0 + 8001d7a: d002 beq.n 8001d82 + 8001d7c: 8b7b ldrh r3, [r7, #26] + 8001d7e: 2b01 cmp r3, #1 + 8001d80: d16b bne.n 8001e5a { *((__IO uint8_t *)&hspi->Instance->DR) = (*hspi->pTxBuffPtr); - 8001d16: 68fb ldr r3, [r7, #12] - 8001d18: 6b1a ldr r2, [r3, #48] ; 0x30 - 8001d1a: 68fb ldr r3, [r7, #12] - 8001d1c: 681b ldr r3, [r3, #0] - 8001d1e: 330c adds r3, #12 - 8001d20: 7812 ldrb r2, [r2, #0] - 8001d22: 701a strb r2, [r3, #0] + 8001d82: 68fb ldr r3, [r7, #12] + 8001d84: 6b1a ldr r2, [r3, #48] ; 0x30 + 8001d86: 68fb ldr r3, [r7, #12] + 8001d88: 681b ldr r3, [r3, #0] + 8001d8a: 330c adds r3, #12 + 8001d8c: 7812 ldrb r2, [r2, #0] + 8001d8e: 701a strb r2, [r3, #0] hspi->pTxBuffPtr += sizeof(uint8_t); - 8001d24: 68fb ldr r3, [r7, #12] - 8001d26: 6b1b ldr r3, [r3, #48] ; 0x30 - 8001d28: 1c5a adds r2, r3, #1 - 8001d2a: 68fb ldr r3, [r7, #12] - 8001d2c: 631a str r2, [r3, #48] ; 0x30 + 8001d90: 68fb ldr r3, [r7, #12] + 8001d92: 6b1b ldr r3, [r3, #48] ; 0x30 + 8001d94: 1c5a adds r2, r3, #1 + 8001d96: 68fb ldr r3, [r7, #12] + 8001d98: 631a str r2, [r3, #48] ; 0x30 hspi->TxXferCount--; - 8001d2e: 68fb ldr r3, [r7, #12] - 8001d30: 8edb ldrh r3, [r3, #54] ; 0x36 - 8001d32: b29b uxth r3, r3 - 8001d34: 3b01 subs r3, #1 - 8001d36: b29a uxth r2, r3 - 8001d38: 68fb ldr r3, [r7, #12] - 8001d3a: 86da strh r2, [r3, #54] ; 0x36 + 8001d9a: 68fb ldr r3, [r7, #12] + 8001d9c: 8edb ldrh r3, [r3, #54] ; 0x36 + 8001d9e: b29b uxth r3, r3 + 8001da0: 3b01 subs r3, #1 + 8001da2: b29a uxth r2, r3 + 8001da4: 68fb ldr r3, [r7, #12] + 8001da6: 86da strh r2, [r3, #54] ; 0x36 } while ((hspi->TxXferCount > 0U) || (hspi->RxXferCount > 0U)) - 8001d3c: e057 b.n 8001dee + 8001da8: e057 b.n 8001e5a { /* Check TXE flag */ if ((__HAL_SPI_GET_FLAG(hspi, SPI_FLAG_TXE)) && (hspi->TxXferCount > 0U) && (txallowed == 1U)) - 8001d3e: 68fb ldr r3, [r7, #12] - 8001d40: 681b ldr r3, [r3, #0] - 8001d42: 689b ldr r3, [r3, #8] - 8001d44: f003 0302 and.w r3, r3, #2 - 8001d48: 2b02 cmp r3, #2 - 8001d4a: d11c bne.n 8001d86 - 8001d4c: 68fb ldr r3, [r7, #12] - 8001d4e: 8edb ldrh r3, [r3, #54] ; 0x36 - 8001d50: b29b uxth r3, r3 - 8001d52: 2b00 cmp r3, #0 - 8001d54: d017 beq.n 8001d86 - 8001d56: 6afb ldr r3, [r7, #44] ; 0x2c - 8001d58: 2b01 cmp r3, #1 - 8001d5a: d114 bne.n 8001d86 + 8001daa: 68fb ldr r3, [r7, #12] + 8001dac: 681b ldr r3, [r3, #0] + 8001dae: 689b ldr r3, [r3, #8] + 8001db0: f003 0302 and.w r3, r3, #2 + 8001db4: 2b02 cmp r3, #2 + 8001db6: d11c bne.n 8001df2 + 8001db8: 68fb ldr r3, [r7, #12] + 8001dba: 8edb ldrh r3, [r3, #54] ; 0x36 + 8001dbc: b29b uxth r3, r3 + 8001dbe: 2b00 cmp r3, #0 + 8001dc0: d017 beq.n 8001df2 + 8001dc2: 6afb ldr r3, [r7, #44] ; 0x2c + 8001dc4: 2b01 cmp r3, #1 + 8001dc6: d114 bne.n 8001df2 { *(__IO uint8_t *)&hspi->Instance->DR = (*hspi->pTxBuffPtr); - 8001d5c: 68fb ldr r3, [r7, #12] - 8001d5e: 6b1a ldr r2, [r3, #48] ; 0x30 - 8001d60: 68fb ldr r3, [r7, #12] - 8001d62: 681b ldr r3, [r3, #0] - 8001d64: 330c adds r3, #12 - 8001d66: 7812 ldrb r2, [r2, #0] - 8001d68: 701a strb r2, [r3, #0] + 8001dc8: 68fb ldr r3, [r7, #12] + 8001dca: 6b1a ldr r2, [r3, #48] ; 0x30 + 8001dcc: 68fb ldr r3, [r7, #12] + 8001dce: 681b ldr r3, [r3, #0] + 8001dd0: 330c adds r3, #12 + 8001dd2: 7812 ldrb r2, [r2, #0] + 8001dd4: 701a strb r2, [r3, #0] hspi->pTxBuffPtr++; - 8001d6a: 68fb ldr r3, [r7, #12] - 8001d6c: 6b1b ldr r3, [r3, #48] ; 0x30 - 8001d6e: 1c5a adds r2, r3, #1 - 8001d70: 68fb ldr r3, [r7, #12] - 8001d72: 631a str r2, [r3, #48] ; 0x30 + 8001dd6: 68fb ldr r3, [r7, #12] + 8001dd8: 6b1b ldr r3, [r3, #48] ; 0x30 + 8001dda: 1c5a adds r2, r3, #1 + 8001ddc: 68fb ldr r3, [r7, #12] + 8001dde: 631a str r2, [r3, #48] ; 0x30 hspi->TxXferCount--; - 8001d74: 68fb ldr r3, [r7, #12] - 8001d76: 8edb ldrh r3, [r3, #54] ; 0x36 - 8001d78: b29b uxth r3, r3 - 8001d7a: 3b01 subs r3, #1 - 8001d7c: b29a uxth r2, r3 - 8001d7e: 68fb ldr r3, [r7, #12] - 8001d80: 86da strh r2, [r3, #54] ; 0x36 + 8001de0: 68fb ldr r3, [r7, #12] + 8001de2: 8edb ldrh r3, [r3, #54] ; 0x36 + 8001de4: b29b uxth r3, r3 + 8001de6: 3b01 subs r3, #1 + 8001de8: b29a uxth r2, r3 + 8001dea: 68fb ldr r3, [r7, #12] + 8001dec: 86da strh r2, [r3, #54] ; 0x36 /* Next Data is a reception (Rx). Tx not allowed */ txallowed = 0U; - 8001d82: 2300 movs r3, #0 - 8001d84: 62fb str r3, [r7, #44] ; 0x2c + 8001dee: 2300 movs r3, #0 + 8001df0: 62fb str r3, [r7, #44] ; 0x2c } #endif /* USE_SPI_CRC */ } /* Wait until RXNE flag is reset */ if ((__HAL_SPI_GET_FLAG(hspi, SPI_FLAG_RXNE)) && (hspi->RxXferCount > 0U)) - 8001d86: 68fb ldr r3, [r7, #12] - 8001d88: 681b ldr r3, [r3, #0] - 8001d8a: 689b ldr r3, [r3, #8] - 8001d8c: f003 0301 and.w r3, r3, #1 - 8001d90: 2b01 cmp r3, #1 - 8001d92: d119 bne.n 8001dc8 - 8001d94: 68fb ldr r3, [r7, #12] - 8001d96: 8fdb ldrh r3, [r3, #62] ; 0x3e - 8001d98: b29b uxth r3, r3 - 8001d9a: 2b00 cmp r3, #0 - 8001d9c: d014 beq.n 8001dc8 + 8001df2: 68fb ldr r3, [r7, #12] + 8001df4: 681b ldr r3, [r3, #0] + 8001df6: 689b ldr r3, [r3, #8] + 8001df8: f003 0301 and.w r3, r3, #1 + 8001dfc: 2b01 cmp r3, #1 + 8001dfe: d119 bne.n 8001e34 + 8001e00: 68fb ldr r3, [r7, #12] + 8001e02: 8fdb ldrh r3, [r3, #62] ; 0x3e + 8001e04: b29b uxth r3, r3 + 8001e06: 2b00 cmp r3, #0 + 8001e08: d014 beq.n 8001e34 { (*(uint8_t *)hspi->pRxBuffPtr) = hspi->Instance->DR; - 8001d9e: 68fb ldr r3, [r7, #12] - 8001da0: 681b ldr r3, [r3, #0] - 8001da2: 68da ldr r2, [r3, #12] - 8001da4: 68fb ldr r3, [r7, #12] - 8001da6: 6b9b ldr r3, [r3, #56] ; 0x38 - 8001da8: b2d2 uxtb r2, r2 - 8001daa: 701a strb r2, [r3, #0] + 8001e0a: 68fb ldr r3, [r7, #12] + 8001e0c: 681b ldr r3, [r3, #0] + 8001e0e: 68da ldr r2, [r3, #12] + 8001e10: 68fb ldr r3, [r7, #12] + 8001e12: 6b9b ldr r3, [r3, #56] ; 0x38 + 8001e14: b2d2 uxtb r2, r2 + 8001e16: 701a strb r2, [r3, #0] hspi->pRxBuffPtr++; - 8001dac: 68fb ldr r3, [r7, #12] - 8001dae: 6b9b ldr r3, [r3, #56] ; 0x38 - 8001db0: 1c5a adds r2, r3, #1 - 8001db2: 68fb ldr r3, [r7, #12] - 8001db4: 639a str r2, [r3, #56] ; 0x38 + 8001e18: 68fb ldr r3, [r7, #12] + 8001e1a: 6b9b ldr r3, [r3, #56] ; 0x38 + 8001e1c: 1c5a adds r2, r3, #1 + 8001e1e: 68fb ldr r3, [r7, #12] + 8001e20: 639a str r2, [r3, #56] ; 0x38 hspi->RxXferCount--; - 8001db6: 68fb ldr r3, [r7, #12] - 8001db8: 8fdb ldrh r3, [r3, #62] ; 0x3e - 8001dba: b29b uxth r3, r3 - 8001dbc: 3b01 subs r3, #1 - 8001dbe: b29a uxth r2, r3 - 8001dc0: 68fb ldr r3, [r7, #12] - 8001dc2: 87da strh r2, [r3, #62] ; 0x3e + 8001e22: 68fb ldr r3, [r7, #12] + 8001e24: 8fdb ldrh r3, [r3, #62] ; 0x3e + 8001e26: b29b uxth r3, r3 + 8001e28: 3b01 subs r3, #1 + 8001e2a: b29a uxth r2, r3 + 8001e2c: 68fb ldr r3, [r7, #12] + 8001e2e: 87da strh r2, [r3, #62] ; 0x3e /* Next Data is a Transmission (Tx). Tx is allowed */ txallowed = 1U; - 8001dc4: 2301 movs r3, #1 - 8001dc6: 62fb str r3, [r7, #44] ; 0x2c + 8001e30: 2301 movs r3, #1 + 8001e32: 62fb str r3, [r7, #44] ; 0x2c } if ((((HAL_GetTick() - tickstart) >= Timeout) && ((Timeout != HAL_MAX_DELAY))) || (Timeout == 0U)) - 8001dc8: f7fe fd30 bl 800082c - 8001dcc: 4602 mov r2, r0 - 8001dce: 6a7b ldr r3, [r7, #36] ; 0x24 - 8001dd0: 1ad3 subs r3, r2, r3 - 8001dd2: 6bba ldr r2, [r7, #56] ; 0x38 - 8001dd4: 429a cmp r2, r3 - 8001dd6: d803 bhi.n 8001de0 - 8001dd8: 6bbb ldr r3, [r7, #56] ; 0x38 - 8001dda: f1b3 3fff cmp.w r3, #4294967295 - 8001dde: d102 bne.n 8001de6 - 8001de0: 6bbb ldr r3, [r7, #56] ; 0x38 - 8001de2: 2b00 cmp r3, #0 - 8001de4: d103 bne.n 8001dee + 8001e34: f7fe fd30 bl 8000898 + 8001e38: 4602 mov r2, r0 + 8001e3a: 6a7b ldr r3, [r7, #36] ; 0x24 + 8001e3c: 1ad3 subs r3, r2, r3 + 8001e3e: 6bba ldr r2, [r7, #56] ; 0x38 + 8001e40: 429a cmp r2, r3 + 8001e42: d803 bhi.n 8001e4c + 8001e44: 6bbb ldr r3, [r7, #56] ; 0x38 + 8001e46: f1b3 3fff cmp.w r3, #4294967295 + 8001e4a: d102 bne.n 8001e52 + 8001e4c: 6bbb ldr r3, [r7, #56] ; 0x38 + 8001e4e: 2b00 cmp r3, #0 + 8001e50: d103 bne.n 8001e5a { errorcode = HAL_TIMEOUT; - 8001de6: 2303 movs r3, #3 - 8001de8: f887 302b strb.w r3, [r7, #43] ; 0x2b + 8001e52: 2303 movs r3, #3 + 8001e54: f887 302b strb.w r3, [r7, #43] ; 0x2b goto error; - 8001dec: e029 b.n 8001e42 + 8001e58: e029 b.n 8001eae while ((hspi->TxXferCount > 0U) || (hspi->RxXferCount > 0U)) - 8001dee: 68fb ldr r3, [r7, #12] - 8001df0: 8edb ldrh r3, [r3, #54] ; 0x36 - 8001df2: b29b uxth r3, r3 - 8001df4: 2b00 cmp r3, #0 - 8001df6: d1a2 bne.n 8001d3e - 8001df8: 68fb ldr r3, [r7, #12] - 8001dfa: 8fdb ldrh r3, [r3, #62] ; 0x3e - 8001dfc: b29b uxth r3, r3 - 8001dfe: 2b00 cmp r3, #0 - 8001e00: d19d bne.n 8001d3e + 8001e5a: 68fb ldr r3, [r7, #12] + 8001e5c: 8edb ldrh r3, [r3, #54] ; 0x36 + 8001e5e: b29b uxth r3, r3 + 8001e60: 2b00 cmp r3, #0 + 8001e62: d1a2 bne.n 8001daa + 8001e64: 68fb ldr r3, [r7, #12] + 8001e66: 8fdb ldrh r3, [r3, #62] ; 0x3e + 8001e68: b29b uxth r3, r3 + 8001e6a: 2b00 cmp r3, #0 + 8001e6c: d19d bne.n 8001daa } } #endif /* USE_SPI_CRC */ /* Check the end of the transaction */ if (SPI_EndRxTxTransaction(hspi, Timeout, tickstart) != HAL_OK) - 8001e02: 6a7a ldr r2, [r7, #36] ; 0x24 - 8001e04: 6bb9 ldr r1, [r7, #56] ; 0x38 - 8001e06: 68f8 ldr r0, [r7, #12] - 8001e08: f000 f910 bl 800202c - 8001e0c: 4603 mov r3, r0 - 8001e0e: 2b00 cmp r3, #0 - 8001e10: d006 beq.n 8001e20 + 8001e6e: 6a7a ldr r2, [r7, #36] ; 0x24 + 8001e70: 6bb9 ldr r1, [r7, #56] ; 0x38 + 8001e72: 68f8 ldr r0, [r7, #12] + 8001e74: f000 f910 bl 8002098 + 8001e78: 4603 mov r3, r0 + 8001e7a: 2b00 cmp r3, #0 + 8001e7c: d006 beq.n 8001e8c { errorcode = HAL_ERROR; - 8001e12: 2301 movs r3, #1 - 8001e14: f887 302b strb.w r3, [r7, #43] ; 0x2b + 8001e7e: 2301 movs r3, #1 + 8001e80: f887 302b strb.w r3, [r7, #43] ; 0x2b hspi->ErrorCode = HAL_SPI_ERROR_FLAG; - 8001e18: 68fb ldr r3, [r7, #12] - 8001e1a: 2220 movs r2, #32 - 8001e1c: 655a str r2, [r3, #84] ; 0x54 + 8001e84: 68fb ldr r3, [r7, #12] + 8001e86: 2220 movs r2, #32 + 8001e88: 655a str r2, [r3, #84] ; 0x54 goto error; - 8001e1e: e010 b.n 8001e42 + 8001e8a: e010 b.n 8001eae } /* Clear overrun flag in 2 Lines communication mode because received is not read */ if (hspi->Init.Direction == SPI_DIRECTION_2LINES) - 8001e20: 68fb ldr r3, [r7, #12] - 8001e22: 689b ldr r3, [r3, #8] - 8001e24: 2b00 cmp r3, #0 - 8001e26: d10b bne.n 8001e40 + 8001e8c: 68fb ldr r3, [r7, #12] + 8001e8e: 689b ldr r3, [r3, #8] + 8001e90: 2b00 cmp r3, #0 + 8001e92: d10b bne.n 8001eac { __HAL_SPI_CLEAR_OVRFLAG(hspi); - 8001e28: 2300 movs r3, #0 - 8001e2a: 617b str r3, [r7, #20] - 8001e2c: 68fb ldr r3, [r7, #12] - 8001e2e: 681b ldr r3, [r3, #0] - 8001e30: 68db ldr r3, [r3, #12] - 8001e32: 617b str r3, [r7, #20] - 8001e34: 68fb ldr r3, [r7, #12] - 8001e36: 681b ldr r3, [r3, #0] - 8001e38: 689b ldr r3, [r3, #8] - 8001e3a: 617b str r3, [r7, #20] - 8001e3c: 697b ldr r3, [r7, #20] - 8001e3e: e000 b.n 8001e42 + 8001e94: 2300 movs r3, #0 + 8001e96: 617b str r3, [r7, #20] + 8001e98: 68fb ldr r3, [r7, #12] + 8001e9a: 681b ldr r3, [r3, #0] + 8001e9c: 68db ldr r3, [r3, #12] + 8001e9e: 617b str r3, [r7, #20] + 8001ea0: 68fb ldr r3, [r7, #12] + 8001ea2: 681b ldr r3, [r3, #0] + 8001ea4: 689b ldr r3, [r3, #8] + 8001ea6: 617b str r3, [r7, #20] + 8001ea8: 697b ldr r3, [r7, #20] + 8001eaa: e000 b.n 8001eae } error : - 8001e40: bf00 nop + 8001eac: bf00 nop hspi->State = HAL_SPI_STATE_READY; - 8001e42: 68fb ldr r3, [r7, #12] - 8001e44: 2201 movs r2, #1 - 8001e46: f883 2051 strb.w r2, [r3, #81] ; 0x51 + 8001eae: 68fb ldr r3, [r7, #12] + 8001eb0: 2201 movs r2, #1 + 8001eb2: f883 2051 strb.w r2, [r3, #81] ; 0x51 __HAL_UNLOCK(hspi); - 8001e4a: 68fb ldr r3, [r7, #12] - 8001e4c: 2200 movs r2, #0 - 8001e4e: f883 2050 strb.w r2, [r3, #80] ; 0x50 + 8001eb6: 68fb ldr r3, [r7, #12] + 8001eb8: 2200 movs r2, #0 + 8001eba: f883 2050 strb.w r2, [r3, #80] ; 0x50 return errorcode; - 8001e52: f897 302b ldrb.w r3, [r7, #43] ; 0x2b + 8001ebe: f897 302b ldrb.w r3, [r7, #43] ; 0x2b } - 8001e56: 4618 mov r0, r3 - 8001e58: 3730 adds r7, #48 ; 0x30 - 8001e5a: 46bd mov sp, r7 - 8001e5c: bd80 pop {r7, pc} + 8001ec2: 4618 mov r0, r3 + 8001ec4: 3730 adds r7, #48 ; 0x30 + 8001ec6: 46bd mov sp, r7 + 8001ec8: bd80 pop {r7, pc} -08001e5e : +08001eca : * @param hspi pointer to a SPI_HandleTypeDef structure that contains * the configuration information for SPI module. * @retval SPI state */ HAL_SPI_StateTypeDef HAL_SPI_GetState(SPI_HandleTypeDef *hspi) { - 8001e5e: b480 push {r7} - 8001e60: b083 sub sp, #12 - 8001e62: af00 add r7, sp, #0 - 8001e64: 6078 str r0, [r7, #4] + 8001eca: b480 push {r7} + 8001ecc: b083 sub sp, #12 + 8001ece: af00 add r7, sp, #0 + 8001ed0: 6078 str r0, [r7, #4] /* Return SPI handle state */ return hspi->State; - 8001e66: 687b ldr r3, [r7, #4] - 8001e68: f893 3051 ldrb.w r3, [r3, #81] ; 0x51 - 8001e6c: b2db uxtb r3, r3 + 8001ed2: 687b ldr r3, [r7, #4] + 8001ed4: f893 3051 ldrb.w r3, [r3, #81] ; 0x51 + 8001ed8: b2db uxtb r3, r3 } - 8001e6e: 4618 mov r0, r3 - 8001e70: 370c adds r7, #12 - 8001e72: 46bd mov sp, r7 - 8001e74: bc80 pop {r7} - 8001e76: 4770 bx lr + 8001eda: 4618 mov r0, r3 + 8001edc: 370c adds r7, #12 + 8001ede: 46bd mov sp, r7 + 8001ee0: bc80 pop {r7} + 8001ee2: 4770 bx lr -08001e78 : +08001ee4 : * @param Tickstart tick start value * @retval HAL status */ static HAL_StatusTypeDef SPI_WaitFlagStateUntilTimeout(SPI_HandleTypeDef *hspi, uint32_t Flag, FlagStatus State, uint32_t Timeout, uint32_t Tickstart) { - 8001e78: b580 push {r7, lr} - 8001e7a: b088 sub sp, #32 - 8001e7c: af00 add r7, sp, #0 - 8001e7e: 60f8 str r0, [r7, #12] - 8001e80: 60b9 str r1, [r7, #8] - 8001e82: 603b str r3, [r7, #0] - 8001e84: 4613 mov r3, r2 - 8001e86: 71fb strb r3, [r7, #7] + 8001ee4: b580 push {r7, lr} + 8001ee6: b088 sub sp, #32 + 8001ee8: af00 add r7, sp, #0 + 8001eea: 60f8 str r0, [r7, #12] + 8001eec: 60b9 str r1, [r7, #8] + 8001eee: 603b str r3, [r7, #0] + 8001ef0: 4613 mov r3, r2 + 8001ef2: 71fb strb r3, [r7, #7] __IO uint32_t count; uint32_t tmp_timeout; uint32_t tmp_tickstart; /* Adjust Timeout value in case of end of transfer */ tmp_timeout = Timeout - (HAL_GetTick() - Tickstart); - 8001e88: f7fe fcd0 bl 800082c - 8001e8c: 4602 mov r2, r0 - 8001e8e: 6abb ldr r3, [r7, #40] ; 0x28 - 8001e90: 1a9b subs r3, r3, r2 - 8001e92: 683a ldr r2, [r7, #0] - 8001e94: 4413 add r3, r2 - 8001e96: 61fb str r3, [r7, #28] + 8001ef4: f7fe fcd0 bl 8000898 + 8001ef8: 4602 mov r2, r0 + 8001efa: 6abb ldr r3, [r7, #40] ; 0x28 + 8001efc: 1a9b subs r3, r3, r2 + 8001efe: 683a ldr r2, [r7, #0] + 8001f00: 4413 add r3, r2 + 8001f02: 61fb str r3, [r7, #28] tmp_tickstart = HAL_GetTick(); - 8001e98: f7fe fcc8 bl 800082c - 8001e9c: 61b8 str r0, [r7, #24] + 8001f04: f7fe fcc8 bl 8000898 + 8001f08: 61b8 str r0, [r7, #24] /* Calculate Timeout based on a software loop to avoid blocking issue if Systick is disabled */ count = tmp_timeout * ((SystemCoreClock * 32U) >> 20U); - 8001e9e: 4b39 ldr r3, [pc, #228] ; (8001f84 ) - 8001ea0: 681b ldr r3, [r3, #0] - 8001ea2: 015b lsls r3, r3, #5 - 8001ea4: 0d1b lsrs r3, r3, #20 - 8001ea6: 69fa ldr r2, [r7, #28] - 8001ea8: fb02 f303 mul.w r3, r2, r3 - 8001eac: 617b str r3, [r7, #20] + 8001f0a: 4b39 ldr r3, [pc, #228] ; (8001ff0 ) + 8001f0c: 681b ldr r3, [r3, #0] + 8001f0e: 015b lsls r3, r3, #5 + 8001f10: 0d1b lsrs r3, r3, #20 + 8001f12: 69fa ldr r2, [r7, #28] + 8001f14: fb02 f303 mul.w r3, r2, r3 + 8001f18: 617b str r3, [r7, #20] while ((__HAL_SPI_GET_FLAG(hspi, Flag) ? SET : RESET) != State) - 8001eae: e054 b.n 8001f5a + 8001f1a: e054 b.n 8001fc6 { if (Timeout != HAL_MAX_DELAY) - 8001eb0: 683b ldr r3, [r7, #0] - 8001eb2: f1b3 3fff cmp.w r3, #4294967295 - 8001eb6: d050 beq.n 8001f5a + 8001f1c: 683b ldr r3, [r7, #0] + 8001f1e: f1b3 3fff cmp.w r3, #4294967295 + 8001f22: d050 beq.n 8001fc6 { if (((HAL_GetTick() - tmp_tickstart) >= tmp_timeout) || (tmp_timeout == 0U)) - 8001eb8: f7fe fcb8 bl 800082c - 8001ebc: 4602 mov r2, r0 - 8001ebe: 69bb ldr r3, [r7, #24] - 8001ec0: 1ad3 subs r3, r2, r3 - 8001ec2: 69fa ldr r2, [r7, #28] - 8001ec4: 429a cmp r2, r3 - 8001ec6: d902 bls.n 8001ece - 8001ec8: 69fb ldr r3, [r7, #28] - 8001eca: 2b00 cmp r3, #0 - 8001ecc: d13d bne.n 8001f4a + 8001f24: f7fe fcb8 bl 8000898 + 8001f28: 4602 mov r2, r0 + 8001f2a: 69bb ldr r3, [r7, #24] + 8001f2c: 1ad3 subs r3, r2, r3 + 8001f2e: 69fa ldr r2, [r7, #28] + 8001f30: 429a cmp r2, r3 + 8001f32: d902 bls.n 8001f3a + 8001f34: 69fb ldr r3, [r7, #28] + 8001f36: 2b00 cmp r3, #0 + 8001f38: d13d bne.n 8001fb6 /* Disable the SPI and reset the CRC: the CRC value should be cleared on both master and slave sides in order to resynchronize the master and slave for their respective CRC calculation */ /* Disable TXE, RXNE and ERR interrupts for the interrupt process */ __HAL_SPI_DISABLE_IT(hspi, (SPI_IT_TXE | SPI_IT_RXNE | SPI_IT_ERR)); - 8001ece: 68fb ldr r3, [r7, #12] - 8001ed0: 681b ldr r3, [r3, #0] - 8001ed2: 685a ldr r2, [r3, #4] - 8001ed4: 68fb ldr r3, [r7, #12] - 8001ed6: 681b ldr r3, [r3, #0] - 8001ed8: f022 02e0 bic.w r2, r2, #224 ; 0xe0 - 8001edc: 605a str r2, [r3, #4] + 8001f3a: 68fb ldr r3, [r7, #12] + 8001f3c: 681b ldr r3, [r3, #0] + 8001f3e: 685a ldr r2, [r3, #4] + 8001f40: 68fb ldr r3, [r7, #12] + 8001f42: 681b ldr r3, [r3, #0] + 8001f44: f022 02e0 bic.w r2, r2, #224 ; 0xe0 + 8001f48: 605a str r2, [r3, #4] if ((hspi->Init.Mode == SPI_MODE_MASTER) && ((hspi->Init.Direction == SPI_DIRECTION_1LINE) - 8001ede: 68fb ldr r3, [r7, #12] - 8001ee0: 685b ldr r3, [r3, #4] - 8001ee2: f5b3 7f82 cmp.w r3, #260 ; 0x104 - 8001ee6: d111 bne.n 8001f0c - 8001ee8: 68fb ldr r3, [r7, #12] - 8001eea: 689b ldr r3, [r3, #8] - 8001eec: f5b3 4f00 cmp.w r3, #32768 ; 0x8000 - 8001ef0: d004 beq.n 8001efc + 8001f4a: 68fb ldr r3, [r7, #12] + 8001f4c: 685b ldr r3, [r3, #4] + 8001f4e: f5b3 7f82 cmp.w r3, #260 ; 0x104 + 8001f52: d111 bne.n 8001f78 + 8001f54: 68fb ldr r3, [r7, #12] + 8001f56: 689b ldr r3, [r3, #8] + 8001f58: f5b3 4f00 cmp.w r3, #32768 ; 0x8000 + 8001f5c: d004 beq.n 8001f68 || (hspi->Init.Direction == SPI_DIRECTION_2LINES_RXONLY))) - 8001ef2: 68fb ldr r3, [r7, #12] - 8001ef4: 689b ldr r3, [r3, #8] - 8001ef6: f5b3 6f80 cmp.w r3, #1024 ; 0x400 - 8001efa: d107 bne.n 8001f0c + 8001f5e: 68fb ldr r3, [r7, #12] + 8001f60: 689b ldr r3, [r3, #8] + 8001f62: f5b3 6f80 cmp.w r3, #1024 ; 0x400 + 8001f66: d107 bne.n 8001f78 { /* Disable SPI peripheral */ __HAL_SPI_DISABLE(hspi); - 8001efc: 68fb ldr r3, [r7, #12] - 8001efe: 681b ldr r3, [r3, #0] - 8001f00: 681a ldr r2, [r3, #0] - 8001f02: 68fb ldr r3, [r7, #12] - 8001f04: 681b ldr r3, [r3, #0] - 8001f06: f022 0240 bic.w r2, r2, #64 ; 0x40 - 8001f0a: 601a str r2, [r3, #0] + 8001f68: 68fb ldr r3, [r7, #12] + 8001f6a: 681b ldr r3, [r3, #0] + 8001f6c: 681a ldr r2, [r3, #0] + 8001f6e: 68fb ldr r3, [r7, #12] + 8001f70: 681b ldr r3, [r3, #0] + 8001f72: f022 0240 bic.w r2, r2, #64 ; 0x40 + 8001f76: 601a str r2, [r3, #0] } /* Reset CRC Calculation */ if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) - 8001f0c: 68fb ldr r3, [r7, #12] - 8001f0e: 6a9b ldr r3, [r3, #40] ; 0x28 - 8001f10: f5b3 5f00 cmp.w r3, #8192 ; 0x2000 - 8001f14: d10f bne.n 8001f36 + 8001f78: 68fb ldr r3, [r7, #12] + 8001f7a: 6a9b ldr r3, [r3, #40] ; 0x28 + 8001f7c: f5b3 5f00 cmp.w r3, #8192 ; 0x2000 + 8001f80: d10f bne.n 8001fa2 { SPI_RESET_CRC(hspi); - 8001f16: 68fb ldr r3, [r7, #12] - 8001f18: 681b ldr r3, [r3, #0] - 8001f1a: 681a ldr r2, [r3, #0] - 8001f1c: 68fb ldr r3, [r7, #12] - 8001f1e: 681b ldr r3, [r3, #0] - 8001f20: f422 5200 bic.w r2, r2, #8192 ; 0x2000 - 8001f24: 601a str r2, [r3, #0] - 8001f26: 68fb ldr r3, [r7, #12] - 8001f28: 681b ldr r3, [r3, #0] - 8001f2a: 681a ldr r2, [r3, #0] - 8001f2c: 68fb ldr r3, [r7, #12] - 8001f2e: 681b ldr r3, [r3, #0] - 8001f30: f442 5200 orr.w r2, r2, #8192 ; 0x2000 - 8001f34: 601a str r2, [r3, #0] + 8001f82: 68fb ldr r3, [r7, #12] + 8001f84: 681b ldr r3, [r3, #0] + 8001f86: 681a ldr r2, [r3, #0] + 8001f88: 68fb ldr r3, [r7, #12] + 8001f8a: 681b ldr r3, [r3, #0] + 8001f8c: f422 5200 bic.w r2, r2, #8192 ; 0x2000 + 8001f90: 601a str r2, [r3, #0] + 8001f92: 68fb ldr r3, [r7, #12] + 8001f94: 681b ldr r3, [r3, #0] + 8001f96: 681a ldr r2, [r3, #0] + 8001f98: 68fb ldr r3, [r7, #12] + 8001f9a: 681b ldr r3, [r3, #0] + 8001f9c: f442 5200 orr.w r2, r2, #8192 ; 0x2000 + 8001fa0: 601a str r2, [r3, #0] } hspi->State = HAL_SPI_STATE_READY; - 8001f36: 68fb ldr r3, [r7, #12] - 8001f38: 2201 movs r2, #1 - 8001f3a: f883 2051 strb.w r2, [r3, #81] ; 0x51 + 8001fa2: 68fb ldr r3, [r7, #12] + 8001fa4: 2201 movs r2, #1 + 8001fa6: f883 2051 strb.w r2, [r3, #81] ; 0x51 /* Process Unlocked */ __HAL_UNLOCK(hspi); - 8001f3e: 68fb ldr r3, [r7, #12] - 8001f40: 2200 movs r2, #0 - 8001f42: f883 2050 strb.w r2, [r3, #80] ; 0x50 + 8001faa: 68fb ldr r3, [r7, #12] + 8001fac: 2200 movs r2, #0 + 8001fae: f883 2050 strb.w r2, [r3, #80] ; 0x50 return HAL_TIMEOUT; - 8001f46: 2303 movs r3, #3 - 8001f48: e017 b.n 8001f7a + 8001fb2: 2303 movs r3, #3 + 8001fb4: e017 b.n 8001fe6 } /* If Systick is disabled or not incremented, deactivate timeout to go in disable loop procedure */ if(count == 0U) - 8001f4a: 697b ldr r3, [r7, #20] - 8001f4c: 2b00 cmp r3, #0 - 8001f4e: d101 bne.n 8001f54 + 8001fb6: 697b ldr r3, [r7, #20] + 8001fb8: 2b00 cmp r3, #0 + 8001fba: d101 bne.n 8001fc0 { tmp_timeout = 0U; - 8001f50: 2300 movs r3, #0 - 8001f52: 61fb str r3, [r7, #28] + 8001fbc: 2300 movs r3, #0 + 8001fbe: 61fb str r3, [r7, #28] } count--; - 8001f54: 697b ldr r3, [r7, #20] - 8001f56: 3b01 subs r3, #1 - 8001f58: 617b str r3, [r7, #20] + 8001fc0: 697b ldr r3, [r7, #20] + 8001fc2: 3b01 subs r3, #1 + 8001fc4: 617b str r3, [r7, #20] while ((__HAL_SPI_GET_FLAG(hspi, Flag) ? SET : RESET) != State) - 8001f5a: 68fb ldr r3, [r7, #12] - 8001f5c: 681b ldr r3, [r3, #0] - 8001f5e: 689a ldr r2, [r3, #8] - 8001f60: 68bb ldr r3, [r7, #8] - 8001f62: 4013 ands r3, r2 - 8001f64: 68ba ldr r2, [r7, #8] - 8001f66: 429a cmp r2, r3 - 8001f68: bf0c ite eq - 8001f6a: 2301 moveq r3, #1 - 8001f6c: 2300 movne r3, #0 - 8001f6e: b2db uxtb r3, r3 - 8001f70: 461a mov r2, r3 - 8001f72: 79fb ldrb r3, [r7, #7] - 8001f74: 429a cmp r2, r3 - 8001f76: d19b bne.n 8001eb0 + 8001fc6: 68fb ldr r3, [r7, #12] + 8001fc8: 681b ldr r3, [r3, #0] + 8001fca: 689a ldr r2, [r3, #8] + 8001fcc: 68bb ldr r3, [r7, #8] + 8001fce: 4013 ands r3, r2 + 8001fd0: 68ba ldr r2, [r7, #8] + 8001fd2: 429a cmp r2, r3 + 8001fd4: bf0c ite eq + 8001fd6: 2301 moveq r3, #1 + 8001fd8: 2300 movne r3, #0 + 8001fda: b2db uxtb r3, r3 + 8001fdc: 461a mov r2, r3 + 8001fde: 79fb ldrb r3, [r7, #7] + 8001fe0: 429a cmp r2, r3 + 8001fe2: d19b bne.n 8001f1c } } return HAL_OK; - 8001f78: 2300 movs r3, #0 + 8001fe4: 2300 movs r3, #0 } - 8001f7a: 4618 mov r0, r3 - 8001f7c: 3720 adds r7, #32 - 8001f7e: 46bd mov sp, r7 - 8001f80: bd80 pop {r7, pc} - 8001f82: bf00 nop - 8001f84: 20000000 .word 0x20000000 + 8001fe6: 4618 mov r0, r3 + 8001fe8: 3720 adds r7, #32 + 8001fea: 46bd mov sp, r7 + 8001fec: bd80 pop {r7, pc} + 8001fee: bf00 nop + 8001ff0: 20000000 .word 0x20000000 -08001f88 : +08001ff4 : * @param Timeout Timeout duration * @param Tickstart tick start value * @retval HAL status */ static HAL_StatusTypeDef SPI_EndRxTransaction(SPI_HandleTypeDef *hspi, uint32_t Timeout, uint32_t Tickstart) { - 8001f88: b580 push {r7, lr} - 8001f8a: b086 sub sp, #24 - 8001f8c: af02 add r7, sp, #8 - 8001f8e: 60f8 str r0, [r7, #12] - 8001f90: 60b9 str r1, [r7, #8] - 8001f92: 607a str r2, [r7, #4] + 8001ff4: b580 push {r7, lr} + 8001ff6: b086 sub sp, #24 + 8001ff8: af02 add r7, sp, #8 + 8001ffa: 60f8 str r0, [r7, #12] + 8001ffc: 60b9 str r1, [r7, #8] + 8001ffe: 607a str r2, [r7, #4] if ((hspi->Init.Mode == SPI_MODE_MASTER) && ((hspi->Init.Direction == SPI_DIRECTION_1LINE) - 8001f94: 68fb ldr r3, [r7, #12] - 8001f96: 685b ldr r3, [r3, #4] - 8001f98: f5b3 7f82 cmp.w r3, #260 ; 0x104 - 8001f9c: d111 bne.n 8001fc2 - 8001f9e: 68fb ldr r3, [r7, #12] - 8001fa0: 689b ldr r3, [r3, #8] - 8001fa2: f5b3 4f00 cmp.w r3, #32768 ; 0x8000 - 8001fa6: d004 beq.n 8001fb2 + 8002000: 68fb ldr r3, [r7, #12] + 8002002: 685b ldr r3, [r3, #4] + 8002004: f5b3 7f82 cmp.w r3, #260 ; 0x104 + 8002008: d111 bne.n 800202e + 800200a: 68fb ldr r3, [r7, #12] + 800200c: 689b ldr r3, [r3, #8] + 800200e: f5b3 4f00 cmp.w r3, #32768 ; 0x8000 + 8002012: d004 beq.n 800201e || (hspi->Init.Direction == SPI_DIRECTION_2LINES_RXONLY))) - 8001fa8: 68fb ldr r3, [r7, #12] - 8001faa: 689b ldr r3, [r3, #8] - 8001fac: f5b3 6f80 cmp.w r3, #1024 ; 0x400 - 8001fb0: d107 bne.n 8001fc2 + 8002014: 68fb ldr r3, [r7, #12] + 8002016: 689b ldr r3, [r3, #8] + 8002018: f5b3 6f80 cmp.w r3, #1024 ; 0x400 + 800201c: d107 bne.n 800202e { /* Disable SPI peripheral */ __HAL_SPI_DISABLE(hspi); - 8001fb2: 68fb ldr r3, [r7, #12] - 8001fb4: 681b ldr r3, [r3, #0] - 8001fb6: 681a ldr r2, [r3, #0] - 8001fb8: 68fb ldr r3, [r7, #12] - 8001fba: 681b ldr r3, [r3, #0] - 8001fbc: f022 0240 bic.w r2, r2, #64 ; 0x40 - 8001fc0: 601a str r2, [r3, #0] + 800201e: 68fb ldr r3, [r7, #12] + 8002020: 681b ldr r3, [r3, #0] + 8002022: 681a ldr r2, [r3, #0] + 8002024: 68fb ldr r3, [r7, #12] + 8002026: 681b ldr r3, [r3, #0] + 8002028: f022 0240 bic.w r2, r2, #64 ; 0x40 + 800202c: 601a str r2, [r3, #0] } if ((hspi->Init.Mode == SPI_MODE_MASTER) && (hspi->Init.Direction == SPI_DIRECTION_2LINES_RXONLY)) - 8001fc2: 68fb ldr r3, [r7, #12] - 8001fc4: 685b ldr r3, [r3, #4] - 8001fc6: f5b3 7f82 cmp.w r3, #260 ; 0x104 - 8001fca: d117 bne.n 8001ffc - 8001fcc: 68fb ldr r3, [r7, #12] - 8001fce: 689b ldr r3, [r3, #8] - 8001fd0: f5b3 6f80 cmp.w r3, #1024 ; 0x400 - 8001fd4: d112 bne.n 8001ffc + 800202e: 68fb ldr r3, [r7, #12] + 8002030: 685b ldr r3, [r3, #4] + 8002032: f5b3 7f82 cmp.w r3, #260 ; 0x104 + 8002036: d117 bne.n 8002068 + 8002038: 68fb ldr r3, [r7, #12] + 800203a: 689b ldr r3, [r3, #8] + 800203c: f5b3 6f80 cmp.w r3, #1024 ; 0x400 + 8002040: d112 bne.n 8002068 { /* Wait the RXNE reset */ if (SPI_WaitFlagStateUntilTimeout(hspi, SPI_FLAG_RXNE, RESET, Timeout, Tickstart) != HAL_OK) - 8001fd6: 687b ldr r3, [r7, #4] - 8001fd8: 9300 str r3, [sp, #0] - 8001fda: 68bb ldr r3, [r7, #8] - 8001fdc: 2200 movs r2, #0 - 8001fde: 2101 movs r1, #1 - 8001fe0: 68f8 ldr r0, [r7, #12] - 8001fe2: f7ff ff49 bl 8001e78 - 8001fe6: 4603 mov r3, r0 - 8001fe8: 2b00 cmp r3, #0 - 8001fea: d01a beq.n 8002022 + 8002042: 687b ldr r3, [r7, #4] + 8002044: 9300 str r3, [sp, #0] + 8002046: 68bb ldr r3, [r7, #8] + 8002048: 2200 movs r2, #0 + 800204a: 2101 movs r1, #1 + 800204c: 68f8 ldr r0, [r7, #12] + 800204e: f7ff ff49 bl 8001ee4 + 8002052: 4603 mov r3, r0 + 8002054: 2b00 cmp r3, #0 + 8002056: d01a beq.n 800208e { SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_FLAG); - 8001fec: 68fb ldr r3, [r7, #12] - 8001fee: 6d5b ldr r3, [r3, #84] ; 0x54 - 8001ff0: f043 0220 orr.w r2, r3, #32 - 8001ff4: 68fb ldr r3, [r7, #12] - 8001ff6: 655a str r2, [r3, #84] ; 0x54 + 8002058: 68fb ldr r3, [r7, #12] + 800205a: 6d5b ldr r3, [r3, #84] ; 0x54 + 800205c: f043 0220 orr.w r2, r3, #32 + 8002060: 68fb ldr r3, [r7, #12] + 8002062: 655a str r2, [r3, #84] ; 0x54 return HAL_TIMEOUT; - 8001ff8: 2303 movs r3, #3 - 8001ffa: e013 b.n 8002024 + 8002064: 2303 movs r3, #3 + 8002066: e013 b.n 8002090 } } else { /* Control the BSY flag */ if (SPI_WaitFlagStateUntilTimeout(hspi, SPI_FLAG_BSY, RESET, Timeout, Tickstart) != HAL_OK) - 8001ffc: 687b ldr r3, [r7, #4] - 8001ffe: 9300 str r3, [sp, #0] - 8002000: 68bb ldr r3, [r7, #8] - 8002002: 2200 movs r2, #0 - 8002004: 2180 movs r1, #128 ; 0x80 - 8002006: 68f8 ldr r0, [r7, #12] - 8002008: f7ff ff36 bl 8001e78 - 800200c: 4603 mov r3, r0 - 800200e: 2b00 cmp r3, #0 - 8002010: d007 beq.n 8002022 + 8002068: 687b ldr r3, [r7, #4] + 800206a: 9300 str r3, [sp, #0] + 800206c: 68bb ldr r3, [r7, #8] + 800206e: 2200 movs r2, #0 + 8002070: 2180 movs r1, #128 ; 0x80 + 8002072: 68f8 ldr r0, [r7, #12] + 8002074: f7ff ff36 bl 8001ee4 + 8002078: 4603 mov r3, r0 + 800207a: 2b00 cmp r3, #0 + 800207c: d007 beq.n 800208e { SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_FLAG); - 8002012: 68fb ldr r3, [r7, #12] - 8002014: 6d5b ldr r3, [r3, #84] ; 0x54 - 8002016: f043 0220 orr.w r2, r3, #32 - 800201a: 68fb ldr r3, [r7, #12] - 800201c: 655a str r2, [r3, #84] ; 0x54 + 800207e: 68fb ldr r3, [r7, #12] + 8002080: 6d5b ldr r3, [r3, #84] ; 0x54 + 8002082: f043 0220 orr.w r2, r3, #32 + 8002086: 68fb ldr r3, [r7, #12] + 8002088: 655a str r2, [r3, #84] ; 0x54 return HAL_TIMEOUT; - 800201e: 2303 movs r3, #3 - 8002020: e000 b.n 8002024 + 800208a: 2303 movs r3, #3 + 800208c: e000 b.n 8002090 } } return HAL_OK; - 8002022: 2300 movs r3, #0 + 800208e: 2300 movs r3, #0 } - 8002024: 4618 mov r0, r3 - 8002026: 3710 adds r7, #16 - 8002028: 46bd mov sp, r7 - 800202a: bd80 pop {r7, pc} + 8002090: 4618 mov r0, r3 + 8002092: 3710 adds r7, #16 + 8002094: 46bd mov sp, r7 + 8002096: bd80 pop {r7, pc} -0800202c : +08002098 : * @param Timeout Timeout duration * @param Tickstart tick start value * @retval HAL status */ static HAL_StatusTypeDef SPI_EndRxTxTransaction(SPI_HandleTypeDef *hspi, uint32_t Timeout, uint32_t Tickstart) { - 800202c: b580 push {r7, lr} - 800202e: b086 sub sp, #24 - 8002030: af02 add r7, sp, #8 - 8002032: 60f8 str r0, [r7, #12] - 8002034: 60b9 str r1, [r7, #8] - 8002036: 607a str r2, [r7, #4] + 8002098: b580 push {r7, lr} + 800209a: b086 sub sp, #24 + 800209c: af02 add r7, sp, #8 + 800209e: 60f8 str r0, [r7, #12] + 80020a0: 60b9 str r1, [r7, #8] + 80020a2: 607a str r2, [r7, #4] /* Control the BSY flag */ if (SPI_WaitFlagStateUntilTimeout(hspi, SPI_FLAG_BSY, RESET, Timeout, Tickstart) != HAL_OK) - 8002038: 687b ldr r3, [r7, #4] - 800203a: 9300 str r3, [sp, #0] - 800203c: 68bb ldr r3, [r7, #8] - 800203e: 2200 movs r2, #0 - 8002040: 2180 movs r1, #128 ; 0x80 - 8002042: 68f8 ldr r0, [r7, #12] - 8002044: f7ff ff18 bl 8001e78 - 8002048: 4603 mov r3, r0 - 800204a: 2b00 cmp r3, #0 - 800204c: d007 beq.n 800205e + 80020a4: 687b ldr r3, [r7, #4] + 80020a6: 9300 str r3, [sp, #0] + 80020a8: 68bb ldr r3, [r7, #8] + 80020aa: 2200 movs r2, #0 + 80020ac: 2180 movs r1, #128 ; 0x80 + 80020ae: 68f8 ldr r0, [r7, #12] + 80020b0: f7ff ff18 bl 8001ee4 + 80020b4: 4603 mov r3, r0 + 80020b6: 2b00 cmp r3, #0 + 80020b8: d007 beq.n 80020ca { SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_FLAG); - 800204e: 68fb ldr r3, [r7, #12] - 8002050: 6d5b ldr r3, [r3, #84] ; 0x54 - 8002052: f043 0220 orr.w r2, r3, #32 - 8002056: 68fb ldr r3, [r7, #12] - 8002058: 655a str r2, [r3, #84] ; 0x54 + 80020ba: 68fb ldr r3, [r7, #12] + 80020bc: 6d5b ldr r3, [r3, #84] ; 0x54 + 80020be: f043 0220 orr.w r2, r3, #32 + 80020c2: 68fb ldr r3, [r7, #12] + 80020c4: 655a str r2, [r3, #84] ; 0x54 return HAL_TIMEOUT; - 800205a: 2303 movs r3, #3 - 800205c: e000 b.n 8002060 + 80020c6: 2303 movs r3, #3 + 80020c8: e000 b.n 80020cc } return HAL_OK; - 800205e: 2300 movs r3, #0 + 80020ca: 2300 movs r3, #0 } - 8002060: 4618 mov r0, r3 - 8002062: 3710 adds r7, #16 - 8002064: 46bd mov sp, r7 - 8002066: bd80 pop {r7, pc} + 80020cc: 4618 mov r0, r3 + 80020ce: 3710 adds r7, #16 + 80020d0: 46bd mov sp, r7 + 80020d2: bd80 pop {r7, pc} -08002068 : +080020d4 : * @param ExtTiming Pointer to SRAM extended mode timing structure * @retval HAL status */ HAL_StatusTypeDef HAL_SRAM_Init(SRAM_HandleTypeDef *hsram, FSMC_NORSRAM_TimingTypeDef *Timing, FSMC_NORSRAM_TimingTypeDef *ExtTiming) { - 8002068: b580 push {r7, lr} - 800206a: b084 sub sp, #16 - 800206c: af00 add r7, sp, #0 - 800206e: 60f8 str r0, [r7, #12] - 8002070: 60b9 str r1, [r7, #8] - 8002072: 607a str r2, [r7, #4] + 80020d4: b580 push {r7, lr} + 80020d6: b084 sub sp, #16 + 80020d8: af00 add r7, sp, #0 + 80020da: 60f8 str r0, [r7, #12] + 80020dc: 60b9 str r1, [r7, #8] + 80020de: 607a str r2, [r7, #4] /* Check the SRAM handle parameter */ if ((hsram == NULL) || (hsram->Init.BurstAccessMode == FSMC_BURST_ACCESS_MODE_ENABLE)) - 8002074: 68fb ldr r3, [r7, #12] - 8002076: 2b00 cmp r3, #0 - 8002078: d004 beq.n 8002084 - 800207a: 68fb ldr r3, [r7, #12] - 800207c: 699b ldr r3, [r3, #24] - 800207e: f5b3 7f80 cmp.w r3, #256 ; 0x100 - 8002082: d101 bne.n 8002088 + 80020e0: 68fb ldr r3, [r7, #12] + 80020e2: 2b00 cmp r3, #0 + 80020e4: d004 beq.n 80020f0 + 80020e6: 68fb ldr r3, [r7, #12] + 80020e8: 699b ldr r3, [r3, #24] + 80020ea: f5b3 7f80 cmp.w r3, #256 ; 0x100 + 80020ee: d101 bne.n 80020f4 { return HAL_ERROR; - 8002084: 2301 movs r3, #1 - 8002086: e038 b.n 80020fa + 80020f0: 2301 movs r3, #1 + 80020f2: e038 b.n 8002166 } if (hsram->State == HAL_SRAM_STATE_RESET) - 8002088: 68fb ldr r3, [r7, #12] - 800208a: f893 3041 ldrb.w r3, [r3, #65] ; 0x41 - 800208e: b2db uxtb r3, r3 - 8002090: 2b00 cmp r3, #0 - 8002092: d106 bne.n 80020a2 + 80020f4: 68fb ldr r3, [r7, #12] + 80020f6: f893 3041 ldrb.w r3, [r3, #65] ; 0x41 + 80020fa: b2db uxtb r3, r3 + 80020fc: 2b00 cmp r3, #0 + 80020fe: d106 bne.n 800210e { /* Allocate lock resource and initialize it */ hsram->Lock = HAL_UNLOCKED; - 8002094: 68fb ldr r3, [r7, #12] - 8002096: 2200 movs r2, #0 - 8002098: f883 2040 strb.w r2, [r3, #64] ; 0x40 + 8002100: 68fb ldr r3, [r7, #12] + 8002102: 2200 movs r2, #0 + 8002104: f883 2040 strb.w r2, [r3, #64] ; 0x40 /* Init the low level hardware */ hsram->MspInitCallback(hsram); #else /* Initialize the low level hardware (MSP) */ HAL_SRAM_MspInit(hsram); - 800209c: 68f8 ldr r0, [r7, #12] - 800209e: f7fe fb0f bl 80006c0 + 8002108: 68f8 ldr r0, [r7, #12] + 800210a: f7fe fad9 bl 80006c0 #endif } /* Initialize SRAM control Interface */ (void)FSMC_NORSRAM_Init(hsram->Instance, &(hsram->Init)); - 80020a2: 68fb ldr r3, [r7, #12] - 80020a4: 681a ldr r2, [r3, #0] - 80020a6: 68fb ldr r3, [r7, #12] - 80020a8: 3308 adds r3, #8 - 80020aa: 4619 mov r1, r3 - 80020ac: 4610 mov r0, r2 - 80020ae: f000 f829 bl 8002104 + 800210e: 68fb ldr r3, [r7, #12] + 8002110: 681a ldr r2, [r3, #0] + 8002112: 68fb ldr r3, [r7, #12] + 8002114: 3308 adds r3, #8 + 8002116: 4619 mov r1, r3 + 8002118: 4610 mov r0, r2 + 800211a: f000 f829 bl 8002170 /* Initialize SRAM timing Interface */ (void)FSMC_NORSRAM_Timing_Init(hsram->Instance, Timing, hsram->Init.NSBank); - 80020b2: 68fb ldr r3, [r7, #12] - 80020b4: 6818 ldr r0, [r3, #0] - 80020b6: 68fb ldr r3, [r7, #12] - 80020b8: 689b ldr r3, [r3, #8] - 80020ba: 461a mov r2, r3 - 80020bc: 68b9 ldr r1, [r7, #8] - 80020be: f000 f88b bl 80021d8 + 800211e: 68fb ldr r3, [r7, #12] + 8002120: 6818 ldr r0, [r3, #0] + 8002122: 68fb ldr r3, [r7, #12] + 8002124: 689b ldr r3, [r3, #8] + 8002126: 461a mov r2, r3 + 8002128: 68b9 ldr r1, [r7, #8] + 800212a: f000 f88b bl 8002244 /* Initialize SRAM extended mode timing Interface */ (void)FSMC_NORSRAM_Extended_Timing_Init(hsram->Extended, ExtTiming, hsram->Init.NSBank, - 80020c2: 68fb ldr r3, [r7, #12] - 80020c4: 6858 ldr r0, [r3, #4] - 80020c6: 68fb ldr r3, [r7, #12] - 80020c8: 689a ldr r2, [r3, #8] - 80020ca: 68fb ldr r3, [r7, #12] - 80020cc: 6b1b ldr r3, [r3, #48] ; 0x30 - 80020ce: 6879 ldr r1, [r7, #4] - 80020d0: f000 f8b6 bl 8002240 + 800212e: 68fb ldr r3, [r7, #12] + 8002130: 6858 ldr r0, [r3, #4] + 8002132: 68fb ldr r3, [r7, #12] + 8002134: 689a ldr r2, [r3, #8] + 8002136: 68fb ldr r3, [r7, #12] + 8002138: 6b1b ldr r3, [r3, #48] ; 0x30 + 800213a: 6879 ldr r1, [r7, #4] + 800213c: f000 f8b6 bl 80022ac hsram->Init.ExtendedMode); /* Enable the NORSRAM device */ __FSMC_NORSRAM_ENABLE(hsram->Instance, hsram->Init.NSBank); - 80020d4: 68fb ldr r3, [r7, #12] - 80020d6: 681b ldr r3, [r3, #0] - 80020d8: 68fa ldr r2, [r7, #12] - 80020da: 6892 ldr r2, [r2, #8] - 80020dc: f853 1022 ldr.w r1, [r3, r2, lsl #2] - 80020e0: 68fb ldr r3, [r7, #12] - 80020e2: 681b ldr r3, [r3, #0] - 80020e4: 68fa ldr r2, [r7, #12] - 80020e6: 6892 ldr r2, [r2, #8] - 80020e8: f041 0101 orr.w r1, r1, #1 - 80020ec: f843 1022 str.w r1, [r3, r2, lsl #2] + 8002140: 68fb ldr r3, [r7, #12] + 8002142: 681b ldr r3, [r3, #0] + 8002144: 68fa ldr r2, [r7, #12] + 8002146: 6892 ldr r2, [r2, #8] + 8002148: f853 1022 ldr.w r1, [r3, r2, lsl #2] + 800214c: 68fb ldr r3, [r7, #12] + 800214e: 681b ldr r3, [r3, #0] + 8002150: 68fa ldr r2, [r7, #12] + 8002152: 6892 ldr r2, [r2, #8] + 8002154: f041 0101 orr.w r1, r1, #1 + 8002158: f843 1022 str.w r1, [r3, r2, lsl #2] /* Initialize the SRAM controller state */ hsram->State = HAL_SRAM_STATE_READY; - 80020f0: 68fb ldr r3, [r7, #12] - 80020f2: 2201 movs r2, #1 - 80020f4: f883 2041 strb.w r2, [r3, #65] ; 0x41 + 800215c: 68fb ldr r3, [r7, #12] + 800215e: 2201 movs r2, #1 + 8002160: f883 2041 strb.w r2, [r3, #65] ; 0x41 return HAL_OK; - 80020f8: 2300 movs r3, #0 + 8002164: 2300 movs r3, #0 } - 80020fa: 4618 mov r0, r3 - 80020fc: 3710 adds r7, #16 - 80020fe: 46bd mov sp, r7 - 8002100: bd80 pop {r7, pc} + 8002166: 4618 mov r0, r3 + 8002168: 3710 adds r7, #16 + 800216a: 46bd mov sp, r7 + 800216c: bd80 pop {r7, pc} ... -08002104 : +08002170 : * @param Init Pointer to NORSRAM Initialization structure * @retval HAL status */ HAL_StatusTypeDef FSMC_NORSRAM_Init(FSMC_NORSRAM_TypeDef *Device, FSMC_NORSRAM_InitTypeDef *Init) { - 8002104: b480 push {r7} - 8002106: b087 sub sp, #28 - 8002108: af00 add r7, sp, #0 - 800210a: 6078 str r0, [r7, #4] - 800210c: 6039 str r1, [r7, #0] + 8002170: b480 push {r7} + 8002172: b087 sub sp, #28 + 8002174: af00 add r7, sp, #0 + 8002176: 6078 str r0, [r7, #4] + 8002178: 6039 str r1, [r7, #0] assert_param(IS_FSMC_ASYNWAIT(Init->AsynchronousWait)); assert_param(IS_FSMC_WRITE_BURST(Init->WriteBurst)); assert_param(IS_FSMC_PAGESIZE(Init->PageSize)); /* Disable NORSRAM Device */ __FSMC_NORSRAM_DISABLE(Device, Init->NSBank); - 800210e: 683b ldr r3, [r7, #0] - 8002110: 681a ldr r2, [r3, #0] - 8002112: 687b ldr r3, [r7, #4] - 8002114: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8002118: 683a ldr r2, [r7, #0] - 800211a: 6812 ldr r2, [r2, #0] - 800211c: f023 0101 bic.w r1, r3, #1 - 8002120: 687b ldr r3, [r7, #4] - 8002122: f843 1022 str.w r1, [r3, r2, lsl #2] + 800217a: 683b ldr r3, [r7, #0] + 800217c: 681a ldr r2, [r3, #0] + 800217e: 687b ldr r3, [r7, #4] + 8002180: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8002184: 683a ldr r2, [r7, #0] + 8002186: 6812 ldr r2, [r2, #0] + 8002188: f023 0101 bic.w r1, r3, #1 + 800218c: 687b ldr r3, [r7, #4] + 800218e: f843 1022 str.w r1, [r3, r2, lsl #2] /* Set NORSRAM device control parameters */ if (Init->MemoryType == FSMC_MEMORY_TYPE_NOR) - 8002126: 683b ldr r3, [r7, #0] - 8002128: 689b ldr r3, [r3, #8] - 800212a: 2b08 cmp r3, #8 - 800212c: d102 bne.n 8002134 + 8002192: 683b ldr r3, [r7, #0] + 8002194: 689b ldr r3, [r3, #8] + 8002196: 2b08 cmp r3, #8 + 8002198: d102 bne.n 80021a0 { flashaccess = FSMC_NORSRAM_FLASH_ACCESS_ENABLE; - 800212e: 2340 movs r3, #64 ; 0x40 - 8002130: 617b str r3, [r7, #20] - 8002132: e001 b.n 8002138 + 800219a: 2340 movs r3, #64 ; 0x40 + 800219c: 617b str r3, [r7, #20] + 800219e: e001 b.n 80021a4 } else { flashaccess = FSMC_NORSRAM_FLASH_ACCESS_DISABLE; - 8002134: 2300 movs r3, #0 - 8002136: 617b str r3, [r7, #20] + 80021a0: 2300 movs r3, #0 + 80021a2: 617b str r3, [r7, #20] } btcr_reg = (flashaccess | \ Init->DataAddressMux | \ - 8002138: 683b ldr r3, [r7, #0] - 800213a: 685a ldr r2, [r3, #4] + 80021a4: 683b ldr r3, [r7, #0] + 80021a6: 685a ldr r2, [r3, #4] btcr_reg = (flashaccess | \ - 800213c: 697b ldr r3, [r7, #20] - 800213e: 431a orrs r2, r3 + 80021a8: 697b ldr r3, [r7, #20] + 80021aa: 431a orrs r2, r3 Init->MemoryType | \ - 8002140: 683b ldr r3, [r7, #0] - 8002142: 689b ldr r3, [r3, #8] + 80021ac: 683b ldr r3, [r7, #0] + 80021ae: 689b ldr r3, [r3, #8] Init->DataAddressMux | \ - 8002144: 431a orrs r2, r3 + 80021b0: 431a orrs r2, r3 Init->MemoryDataWidth | \ - 8002146: 683b ldr r3, [r7, #0] - 8002148: 68db ldr r3, [r3, #12] + 80021b2: 683b ldr r3, [r7, #0] + 80021b4: 68db ldr r3, [r3, #12] Init->MemoryType | \ - 800214a: 431a orrs r2, r3 + 80021b6: 431a orrs r2, r3 Init->BurstAccessMode | \ - 800214c: 683b ldr r3, [r7, #0] - 800214e: 691b ldr r3, [r3, #16] + 80021b8: 683b ldr r3, [r7, #0] + 80021ba: 691b ldr r3, [r3, #16] Init->MemoryDataWidth | \ - 8002150: 431a orrs r2, r3 + 80021bc: 431a orrs r2, r3 Init->WaitSignalPolarity | \ - 8002152: 683b ldr r3, [r7, #0] - 8002154: 695b ldr r3, [r3, #20] + 80021be: 683b ldr r3, [r7, #0] + 80021c0: 695b ldr r3, [r3, #20] Init->BurstAccessMode | \ - 8002156: 431a orrs r2, r3 + 80021c2: 431a orrs r2, r3 Init->WaitSignalActive | \ - 8002158: 683b ldr r3, [r7, #0] - 800215a: 69db ldr r3, [r3, #28] + 80021c4: 683b ldr r3, [r7, #0] + 80021c6: 69db ldr r3, [r3, #28] Init->WaitSignalPolarity | \ - 800215c: 431a orrs r2, r3 + 80021c8: 431a orrs r2, r3 Init->WriteOperation | \ - 800215e: 683b ldr r3, [r7, #0] - 8002160: 6a1b ldr r3, [r3, #32] + 80021ca: 683b ldr r3, [r7, #0] + 80021cc: 6a1b ldr r3, [r3, #32] Init->WaitSignalActive | \ - 8002162: 431a orrs r2, r3 + 80021ce: 431a orrs r2, r3 Init->WaitSignal | \ - 8002164: 683b ldr r3, [r7, #0] - 8002166: 6a5b ldr r3, [r3, #36] ; 0x24 + 80021d0: 683b ldr r3, [r7, #0] + 80021d2: 6a5b ldr r3, [r3, #36] ; 0x24 Init->WriteOperation | \ - 8002168: 431a orrs r2, r3 + 80021d4: 431a orrs r2, r3 Init->ExtendedMode | \ - 800216a: 683b ldr r3, [r7, #0] - 800216c: 6a9b ldr r3, [r3, #40] ; 0x28 + 80021d6: 683b ldr r3, [r7, #0] + 80021d8: 6a9b ldr r3, [r3, #40] ; 0x28 Init->WaitSignal | \ - 800216e: 431a orrs r2, r3 + 80021da: 431a orrs r2, r3 Init->AsynchronousWait | \ - 8002170: 683b ldr r3, [r7, #0] - 8002172: 6adb ldr r3, [r3, #44] ; 0x2c + 80021dc: 683b ldr r3, [r7, #0] + 80021de: 6adb ldr r3, [r3, #44] ; 0x2c Init->ExtendedMode | \ - 8002174: 431a orrs r2, r3 + 80021e0: 431a orrs r2, r3 Init->WriteBurst); - 8002176: 683b ldr r3, [r7, #0] - 8002178: 6b1b ldr r3, [r3, #48] ; 0x30 + 80021e2: 683b ldr r3, [r7, #0] + 80021e4: 6b1b ldr r3, [r3, #48] ; 0x30 btcr_reg = (flashaccess | \ - 800217a: 4313 orrs r3, r2 - 800217c: 613b str r3, [r7, #16] + 80021e6: 4313 orrs r3, r2 + 80021e8: 613b str r3, [r7, #16] btcr_reg |= Init->WrapMode; - 800217e: 683b ldr r3, [r7, #0] - 8002180: 699b ldr r3, [r3, #24] - 8002182: 693a ldr r2, [r7, #16] - 8002184: 4313 orrs r3, r2 - 8002186: 613b str r3, [r7, #16] + 80021ea: 683b ldr r3, [r7, #0] + 80021ec: 699b ldr r3, [r3, #24] + 80021ee: 693a ldr r2, [r7, #16] + 80021f0: 4313 orrs r3, r2 + 80021f2: 613b str r3, [r7, #16] btcr_reg |= Init->PageSize; - 8002188: 683b ldr r3, [r7, #0] - 800218a: 6b5b ldr r3, [r3, #52] ; 0x34 - 800218c: 693a ldr r2, [r7, #16] - 800218e: 4313 orrs r3, r2 - 8002190: 613b str r3, [r7, #16] + 80021f4: 683b ldr r3, [r7, #0] + 80021f6: 6b5b ldr r3, [r3, #52] ; 0x34 + 80021f8: 693a ldr r2, [r7, #16] + 80021fa: 4313 orrs r3, r2 + 80021fc: 613b str r3, [r7, #16] mask = (FSMC_BCRx_MBKEN | - 8002192: 4b10 ldr r3, [pc, #64] ; (80021d4 ) - 8002194: 60fb str r3, [r7, #12] + 80021fe: 4b10 ldr r3, [pc, #64] ; (8002240 ) + 8002200: 60fb str r3, [r7, #12] FSMC_BCRx_WAITEN | FSMC_BCRx_EXTMOD | FSMC_BCRx_ASYNCWAIT | FSMC_BCRx_CBURSTRW); mask |= FSMC_BCRx_WRAPMOD; - 8002196: 68fb ldr r3, [r7, #12] - 8002198: f443 6380 orr.w r3, r3, #1024 ; 0x400 - 800219c: 60fb str r3, [r7, #12] + 8002202: 68fb ldr r3, [r7, #12] + 8002204: f443 6380 orr.w r3, r3, #1024 ; 0x400 + 8002208: 60fb str r3, [r7, #12] mask |= 0x00070000U; /* CPSIZE to be defined in CMSIS file */ - 800219e: 68fb ldr r3, [r7, #12] - 80021a0: f443 23e0 orr.w r3, r3, #458752 ; 0x70000 - 80021a4: 60fb str r3, [r7, #12] + 800220a: 68fb ldr r3, [r7, #12] + 800220c: f443 23e0 orr.w r3, r3, #458752 ; 0x70000 + 8002210: 60fb str r3, [r7, #12] MODIFY_REG(Device->BTCR[Init->NSBank], mask, btcr_reg); - 80021a6: 683b ldr r3, [r7, #0] - 80021a8: 681a ldr r2, [r3, #0] - 80021aa: 687b ldr r3, [r7, #4] - 80021ac: f853 2022 ldr.w r2, [r3, r2, lsl #2] - 80021b0: 68fb ldr r3, [r7, #12] - 80021b2: 43db mvns r3, r3 - 80021b4: ea02 0103 and.w r1, r2, r3 - 80021b8: 683b ldr r3, [r7, #0] - 80021ba: 681a ldr r2, [r3, #0] - 80021bc: 693b ldr r3, [r7, #16] - 80021be: 4319 orrs r1, r3 - 80021c0: 687b ldr r3, [r7, #4] - 80021c2: f843 1022 str.w r1, [r3, r2, lsl #2] + 8002212: 683b ldr r3, [r7, #0] + 8002214: 681a ldr r2, [r3, #0] + 8002216: 687b ldr r3, [r7, #4] + 8002218: f853 2022 ldr.w r2, [r3, r2, lsl #2] + 800221c: 68fb ldr r3, [r7, #12] + 800221e: 43db mvns r3, r3 + 8002220: ea02 0103 and.w r1, r2, r3 + 8002224: 683b ldr r3, [r7, #0] + 8002226: 681a ldr r2, [r3, #0] + 8002228: 693b ldr r3, [r7, #16] + 800222a: 4319 orrs r1, r3 + 800222c: 687b ldr r3, [r7, #4] + 800222e: f843 1022 str.w r1, [r3, r2, lsl #2] return HAL_OK; - 80021c6: 2300 movs r3, #0 + 8002232: 2300 movs r3, #0 } - 80021c8: 4618 mov r0, r3 - 80021ca: 371c adds r7, #28 - 80021cc: 46bd mov sp, r7 - 80021ce: bc80 pop {r7} - 80021d0: 4770 bx lr - 80021d2: bf00 nop - 80021d4: 0008fb7f .word 0x0008fb7f + 8002234: 4618 mov r0, r3 + 8002236: 371c adds r7, #28 + 8002238: 46bd mov sp, r7 + 800223a: bc80 pop {r7} + 800223c: 4770 bx lr + 800223e: bf00 nop + 8002240: 0008fb7f .word 0x0008fb7f -080021d8 : +08002244 : * @param Bank NORSRAM bank number * @retval HAL status */ HAL_StatusTypeDef FSMC_NORSRAM_Timing_Init(FSMC_NORSRAM_TypeDef *Device, FSMC_NORSRAM_TimingTypeDef *Timing, uint32_t Bank) { - 80021d8: b480 push {r7} - 80021da: b085 sub sp, #20 - 80021dc: af00 add r7, sp, #0 - 80021de: 60f8 str r0, [r7, #12] - 80021e0: 60b9 str r1, [r7, #8] - 80021e2: 607a str r2, [r7, #4] + 8002244: b480 push {r7} + 8002246: b085 sub sp, #20 + 8002248: af00 add r7, sp, #0 + 800224a: 60f8 str r0, [r7, #12] + 800224c: 60b9 str r1, [r7, #8] + 800224e: 607a str r2, [r7, #4] assert_param(IS_FSMC_DATA_LATENCY(Timing->DataLatency)); assert_param(IS_FSMC_ACCESS_MODE(Timing->AccessMode)); assert_param(IS_FSMC_NORSRAM_BANK(Bank)); /* Set FSMC_NORSRAM device timing parameters */ MODIFY_REG(Device->BTCR[Bank + 1U], BTR_CLEAR_MASK, (Timing->AddressSetupTime | - 80021e4: 687b ldr r3, [r7, #4] - 80021e6: 1c5a adds r2, r3, #1 - 80021e8: 68fb ldr r3, [r7, #12] - 80021ea: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 80021ee: f003 4140 and.w r1, r3, #3221225472 ; 0xc0000000 - 80021f2: 68bb ldr r3, [r7, #8] - 80021f4: 681a ldr r2, [r3, #0] - 80021f6: 68bb ldr r3, [r7, #8] - 80021f8: 685b ldr r3, [r3, #4] - 80021fa: 011b lsls r3, r3, #4 - 80021fc: 431a orrs r2, r3 - 80021fe: 68bb ldr r3, [r7, #8] - 8002200: 689b ldr r3, [r3, #8] - 8002202: 021b lsls r3, r3, #8 - 8002204: 431a orrs r2, r3 - 8002206: 68bb ldr r3, [r7, #8] - 8002208: 68db ldr r3, [r3, #12] - 800220a: 041b lsls r3, r3, #16 - 800220c: 431a orrs r2, r3 - 800220e: 68bb ldr r3, [r7, #8] - 8002210: 691b ldr r3, [r3, #16] - 8002212: 3b01 subs r3, #1 - 8002214: 051b lsls r3, r3, #20 - 8002216: 431a orrs r2, r3 - 8002218: 68bb ldr r3, [r7, #8] - 800221a: 695b ldr r3, [r3, #20] - 800221c: 3b02 subs r3, #2 - 800221e: 061b lsls r3, r3, #24 - 8002220: 431a orrs r2, r3 - 8002222: 68bb ldr r3, [r7, #8] - 8002224: 699b ldr r3, [r3, #24] - 8002226: 4313 orrs r3, r2 - 8002228: 687a ldr r2, [r7, #4] - 800222a: 3201 adds r2, #1 - 800222c: 4319 orrs r1, r3 - 800222e: 68fb ldr r3, [r7, #12] - 8002230: f843 1022 str.w r1, [r3, r2, lsl #2] + 8002250: 687b ldr r3, [r7, #4] + 8002252: 1c5a adds r2, r3, #1 + 8002254: 68fb ldr r3, [r7, #12] + 8002256: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 800225a: f003 4140 and.w r1, r3, #3221225472 ; 0xc0000000 + 800225e: 68bb ldr r3, [r7, #8] + 8002260: 681a ldr r2, [r3, #0] + 8002262: 68bb ldr r3, [r7, #8] + 8002264: 685b ldr r3, [r3, #4] + 8002266: 011b lsls r3, r3, #4 + 8002268: 431a orrs r2, r3 + 800226a: 68bb ldr r3, [r7, #8] + 800226c: 689b ldr r3, [r3, #8] + 800226e: 021b lsls r3, r3, #8 + 8002270: 431a orrs r2, r3 + 8002272: 68bb ldr r3, [r7, #8] + 8002274: 68db ldr r3, [r3, #12] + 8002276: 041b lsls r3, r3, #16 + 8002278: 431a orrs r2, r3 + 800227a: 68bb ldr r3, [r7, #8] + 800227c: 691b ldr r3, [r3, #16] + 800227e: 3b01 subs r3, #1 + 8002280: 051b lsls r3, r3, #20 + 8002282: 431a orrs r2, r3 + 8002284: 68bb ldr r3, [r7, #8] + 8002286: 695b ldr r3, [r3, #20] + 8002288: 3b02 subs r3, #2 + 800228a: 061b lsls r3, r3, #24 + 800228c: 431a orrs r2, r3 + 800228e: 68bb ldr r3, [r7, #8] + 8002290: 699b ldr r3, [r3, #24] + 8002292: 4313 orrs r3, r2 + 8002294: 687a ldr r2, [r7, #4] + 8002296: 3201 adds r2, #1 + 8002298: 4319 orrs r1, r3 + 800229a: 68fb ldr r3, [r7, #12] + 800229c: f843 1022 str.w r1, [r3, r2, lsl #2] ((Timing->BusTurnAroundDuration) << FSMC_BTRx_BUSTURN_Pos) | (((Timing->CLKDivision) - 1U) << FSMC_BTRx_CLKDIV_Pos) | (((Timing->DataLatency) - 2U) << FSMC_BTRx_DATLAT_Pos) | (Timing->AccessMode))); return HAL_OK; - 8002234: 2300 movs r3, #0 + 80022a0: 2300 movs r3, #0 } - 8002236: 4618 mov r0, r3 - 8002238: 3714 adds r7, #20 - 800223a: 46bd mov sp, r7 - 800223c: bc80 pop {r7} - 800223e: 4770 bx lr + 80022a2: 4618 mov r0, r3 + 80022a4: 3714 adds r7, #20 + 80022a6: 46bd mov sp, r7 + 80022a8: bc80 pop {r7} + 80022aa: 4770 bx lr -08002240 : +080022ac : * @arg FSMC_EXTENDED_MODE_ENABLE * @retval HAL status */ HAL_StatusTypeDef FSMC_NORSRAM_Extended_Timing_Init(FSMC_NORSRAM_EXTENDED_TypeDef *Device, FSMC_NORSRAM_TimingTypeDef *Timing, uint32_t Bank, uint32_t ExtendedMode) { - 8002240: b480 push {r7} - 8002242: b085 sub sp, #20 - 8002244: af00 add r7, sp, #0 - 8002246: 60f8 str r0, [r7, #12] - 8002248: 60b9 str r1, [r7, #8] - 800224a: 607a str r2, [r7, #4] - 800224c: 603b str r3, [r7, #0] + 80022ac: b480 push {r7} + 80022ae: b085 sub sp, #20 + 80022b0: af00 add r7, sp, #0 + 80022b2: 60f8 str r0, [r7, #12] + 80022b4: 60b9 str r1, [r7, #8] + 80022b6: 607a str r2, [r7, #4] + 80022b8: 603b str r3, [r7, #0] /* Check the parameters */ assert_param(IS_FSMC_EXTENDED_MODE(ExtendedMode)); /* Set NORSRAM device timing register for write configuration, if extended mode is used */ if (ExtendedMode == FSMC_EXTENDED_MODE_ENABLE) - 800224e: 683b ldr r3, [r7, #0] - 8002250: f5b3 4f80 cmp.w r3, #16384 ; 0x4000 - 8002254: d11d bne.n 8002292 + 80022ba: 683b ldr r3, [r7, #0] + 80022bc: f5b3 4f80 cmp.w r3, #16384 ; 0x4000 + 80022c0: d11d bne.n 80022fe assert_param(IS_FSMC_ACCESS_MODE(Timing->AccessMode)); assert_param(IS_FSMC_NORSRAM_BANK(Bank)); /* Set NORSRAM device timing register for write configuration, if extended mode is used */ #if defined(STM32F101xE) || defined(STM32F103xE) || defined(STM32F101xG) || defined(STM32F103xG) MODIFY_REG(Device->BWTR[Bank], BWTR_CLEAR_MASK, (Timing->AddressSetupTime | - 8002256: 68fb ldr r3, [r7, #12] - 8002258: 687a ldr r2, [r7, #4] - 800225a: f853 2022 ldr.w r2, [r3, r2, lsl #2] - 800225e: 4b13 ldr r3, [pc, #76] ; (80022ac ) - 8002260: 4013 ands r3, r2 - 8002262: 68ba ldr r2, [r7, #8] - 8002264: 6811 ldr r1, [r2, #0] - 8002266: 68ba ldr r2, [r7, #8] - 8002268: 6852 ldr r2, [r2, #4] - 800226a: 0112 lsls r2, r2, #4 - 800226c: 4311 orrs r1, r2 - 800226e: 68ba ldr r2, [r7, #8] - 8002270: 6892 ldr r2, [r2, #8] - 8002272: 0212 lsls r2, r2, #8 - 8002274: 4311 orrs r1, r2 - 8002276: 68ba ldr r2, [r7, #8] - 8002278: 6992 ldr r2, [r2, #24] - 800227a: 4311 orrs r1, r2 - 800227c: 68ba ldr r2, [r7, #8] - 800227e: 68d2 ldr r2, [r2, #12] - 8002280: 0412 lsls r2, r2, #16 - 8002282: 430a orrs r2, r1 - 8002284: ea43 0102 orr.w r1, r3, r2 - 8002288: 68fb ldr r3, [r7, #12] - 800228a: 687a ldr r2, [r7, #4] - 800228c: f843 1022 str.w r1, [r3, r2, lsl #2] - 8002290: e005 b.n 800229e + 80022c2: 68fb ldr r3, [r7, #12] + 80022c4: 687a ldr r2, [r7, #4] + 80022c6: f853 2022 ldr.w r2, [r3, r2, lsl #2] + 80022ca: 4b13 ldr r3, [pc, #76] ; (8002318 ) + 80022cc: 4013 ands r3, r2 + 80022ce: 68ba ldr r2, [r7, #8] + 80022d0: 6811 ldr r1, [r2, #0] + 80022d2: 68ba ldr r2, [r7, #8] + 80022d4: 6852 ldr r2, [r2, #4] + 80022d6: 0112 lsls r2, r2, #4 + 80022d8: 4311 orrs r1, r2 + 80022da: 68ba ldr r2, [r7, #8] + 80022dc: 6892 ldr r2, [r2, #8] + 80022de: 0212 lsls r2, r2, #8 + 80022e0: 4311 orrs r1, r2 + 80022e2: 68ba ldr r2, [r7, #8] + 80022e4: 6992 ldr r2, [r2, #24] + 80022e6: 4311 orrs r1, r2 + 80022e8: 68ba ldr r2, [r7, #8] + 80022ea: 68d2 ldr r2, [r2, #12] + 80022ec: 0412 lsls r2, r2, #16 + 80022ee: 430a orrs r2, r1 + 80022f0: ea43 0102 orr.w r1, r3, r2 + 80022f4: 68fb ldr r3, [r7, #12] + 80022f6: 687a ldr r2, [r7, #4] + 80022f8: f843 1022 str.w r1, [r3, r2, lsl #2] + 80022fc: e005 b.n 800230a (((Timing->DataLatency) - 2U) << FSMC_BWTRx_DATLAT_Pos))); #endif /* STM32F101xE || STM32F103xE || STM32F101xG || STM32F103xG */ } else { Device->BWTR[Bank] = 0x0FFFFFFFU; - 8002292: 68fb ldr r3, [r7, #12] - 8002294: 687a ldr r2, [r7, #4] - 8002296: f06f 4170 mvn.w r1, #4026531840 ; 0xf0000000 - 800229a: f843 1022 str.w r1, [r3, r2, lsl #2] + 80022fe: 68fb ldr r3, [r7, #12] + 8002300: 687a ldr r2, [r7, #4] + 8002302: f06f 4170 mvn.w r1, #4026531840 ; 0xf0000000 + 8002306: f843 1022 str.w r1, [r3, r2, lsl #2] } return HAL_OK; - 800229e: 2300 movs r3, #0 + 800230a: 2300 movs r3, #0 } - 80022a0: 4618 mov r0, r3 - 80022a2: 3714 adds r7, #20 - 80022a4: 46bd mov sp, r7 - 80022a6: bc80 pop {r7} - 80022a8: 4770 bx lr - 80022aa: bf00 nop - 80022ac: cff00000 .word 0xcff00000 + 800230c: 4618 mov r0, r3 + 800230e: 3714 adds r7, #20 + 8002310: 46bd mov sp, r7 + 8002312: bc80 pop {r7} + 8002314: 4770 bx lr + 8002316: bf00 nop + 8002318: cff00000 .word 0xcff00000 -080022b0 : +0800231c : /* USER CODE BEGIN Variables */ /* USER CODE END Variables */ void MX_FATFS_Init(void) { - 80022b0: b580 push {r7, lr} - 80022b2: af00 add r7, sp, #0 + 800231c: b580 push {r7, lr} + 800231e: af00 add r7, sp, #0 /*## FatFS: Link the USER driver ###########################*/ retUSER = FATFS_LinkDriver(&USER_Driver, USERPath); - 80022b4: 4904 ldr r1, [pc, #16] ; (80022c8 ) - 80022b6: 4805 ldr r0, [pc, #20] ; (80022cc ) - 80022b8: f000 f8be bl 8002438 - 80022bc: 4603 mov r3, r0 - 80022be: 461a mov r2, r3 - 80022c0: 4b03 ldr r3, [pc, #12] ; (80022d0 ) - 80022c2: 701a strb r2, [r3, #0] + 8002320: 4904 ldr r1, [pc, #16] ; (8002334 ) + 8002322: 4805 ldr r0, [pc, #20] ; (8002338 ) + 8002324: f002 fa02 bl 800472c + 8002328: 4603 mov r3, r0 + 800232a: 461a mov r2, r3 + 800232c: 4b03 ldr r3, [pc, #12] ; (800233c ) + 800232e: 701a strb r2, [r3, #0] /* USER CODE BEGIN Init */ /* additional user code for init */ /* USER CODE END Init */ } - 80022c4: bf00 nop - 80022c6: bd80 pop {r7, pc} - 80022c8: 200000f8 .word 0x200000f8 - 80022cc: 2000000c .word 0x2000000c - 80022d0: 200000fc .word 0x200000fc + 8002330: bf00 nop + 8002332: bd80 pop {r7, pc} + 8002334: 20000188 .word 0x20000188 + 8002338: 2000000c .word 0x2000000c + 800233c: 2000018c .word 0x2000018c -080022d4 : +08002340 : + * @brief Gets Time from RTC + * @param None + * @retval Time in DWORD + */ +DWORD get_fattime(void) +{ + 8002340: b480 push {r7} + 8002342: af00 add r7, sp, #0 + /* USER CODE BEGIN get_fattime */ + return 0; + 8002344: 2300 movs r3, #0 + /* USER CODE END get_fattime */ +} + 8002346: 4618 mov r0, r3 + 8002348: 46bd mov sp, r7 + 800234a: bc80 pop {r7} + 800234c: 4770 bx lr + ... + +08002350 : * @retval DSTATUS: Operation status */ DSTATUS USER_initialize ( BYTE pdrv /* Physical drive nmuber to identify the drive */ ) { - 80022d4: b580 push {r7, lr} - 80022d6: b082 sub sp, #8 - 80022d8: af00 add r7, sp, #0 - 80022da: 4603 mov r3, r0 - 80022dc: 71fb strb r3, [r7, #7] + 8002350: b580 push {r7, lr} + 8002352: b082 sub sp, #8 + 8002354: af00 add r7, sp, #0 + 8002356: 4603 mov r3, r0 + 8002358: 71fb strb r3, [r7, #7] /* USER CODE BEGIN INIT */ Stat = SD_disk_initialize(pdrv); - 80022de: 79fb ldrb r3, [r7, #7] - 80022e0: 4618 mov r0, r3 - 80022e2: f000 fadb bl 800289c - 80022e6: 4603 mov r3, r0 - 80022e8: 461a mov r2, r3 - 80022ea: 4b04 ldr r3, [pc, #16] ; (80022fc ) - 80022ec: 701a strb r2, [r3, #0] + 800235a: 79fb ldrb r3, [r7, #7] + 800235c: 4618 mov r0, r3 + 800235e: f002 fc45 bl 8004bec + 8002362: 4603 mov r3, r0 + 8002364: 461a mov r2, r3 + 8002366: 4b04 ldr r3, [pc, #16] ; (8002378 ) + 8002368: 701a strb r2, [r3, #0] return Stat; - 80022ee: 4b03 ldr r3, [pc, #12] ; (80022fc ) - 80022f0: 781b ldrb r3, [r3, #0] - 80022f2: b2db uxtb r3, r3 + 800236a: 4b03 ldr r3, [pc, #12] ; (8002378 ) + 800236c: 781b ldrb r3, [r3, #0] + 800236e: b2db uxtb r3, r3 /* USER CODE END INIT */ } - 80022f4: 4618 mov r0, r3 - 80022f6: 3708 adds r7, #8 - 80022f8: 46bd mov sp, r7 - 80022fa: bd80 pop {r7, pc} - 80022fc: 20000009 .word 0x20000009 + 8002370: 4618 mov r0, r3 + 8002372: 3708 adds r7, #8 + 8002374: 46bd mov sp, r7 + 8002376: bd80 pop {r7, pc} + 8002378: 20000009 .word 0x20000009 -08002300 : +0800237c : * @retval DSTATUS: Operation status */ DSTATUS USER_status ( BYTE pdrv /* Physical drive number to identify the drive */ ) { - 8002300: b580 push {r7, lr} - 8002302: b082 sub sp, #8 - 8002304: af00 add r7, sp, #0 - 8002306: 4603 mov r3, r0 - 8002308: 71fb strb r3, [r7, #7] + 800237c: b580 push {r7, lr} + 800237e: b082 sub sp, #8 + 8002380: af00 add r7, sp, #0 + 8002382: 4603 mov r3, r0 + 8002384: 71fb strb r3, [r7, #7] /* USER CODE BEGIN STATUS */ Stat = SD_disk_status (pdrv); - 800230a: 79fb ldrb r3, [r7, #7] - 800230c: 4618 mov r0, r3 - 800230e: f000 fbaf bl 8002a70 - 8002312: 4603 mov r3, r0 - 8002314: 461a mov r2, r3 - 8002316: 4b04 ldr r3, [pc, #16] ; (8002328 ) - 8002318: 701a strb r2, [r3, #0] + 8002386: 79fb ldrb r3, [r7, #7] + 8002388: 4618 mov r0, r3 + 800238a: f002 fd19 bl 8004dc0 + 800238e: 4603 mov r3, r0 + 8002390: 461a mov r2, r3 + 8002392: 4b04 ldr r3, [pc, #16] ; (80023a4 ) + 8002394: 701a strb r2, [r3, #0] return Stat; - 800231a: 4b03 ldr r3, [pc, #12] ; (8002328 ) - 800231c: 781b ldrb r3, [r3, #0] - 800231e: b2db uxtb r3, r3 + 8002396: 4b03 ldr r3, [pc, #12] ; (80023a4 ) + 8002398: 781b ldrb r3, [r3, #0] + 800239a: b2db uxtb r3, r3 /* USER CODE END STATUS */ } - 8002320: 4618 mov r0, r3 - 8002322: 3708 adds r7, #8 - 8002324: 46bd mov sp, r7 - 8002326: bd80 pop {r7, pc} - 8002328: 20000009 .word 0x20000009 + 800239c: 4618 mov r0, r3 + 800239e: 3708 adds r7, #8 + 80023a0: 46bd mov sp, r7 + 80023a2: bd80 pop {r7, pc} + 80023a4: 20000009 .word 0x20000009 -0800232c : +080023a8 : BYTE pdrv, /* Physical drive nmuber to identify the drive */ BYTE *buff, /* Data buffer to store read data */ DWORD sector, /* Sector address in LBA */ UINT count /* Number of sectors to read */ ) { - 800232c: b580 push {r7, lr} - 800232e: b084 sub sp, #16 - 8002330: af00 add r7, sp, #0 - 8002332: 60b9 str r1, [r7, #8] - 8002334: 607a str r2, [r7, #4] - 8002336: 603b str r3, [r7, #0] - 8002338: 4603 mov r3, r0 - 800233a: 73fb strb r3, [r7, #15] + 80023a8: b580 push {r7, lr} + 80023aa: b084 sub sp, #16 + 80023ac: af00 add r7, sp, #0 + 80023ae: 60b9 str r1, [r7, #8] + 80023b0: 607a str r2, [r7, #4] + 80023b2: 603b str r3, [r7, #0] + 80023b4: 4603 mov r3, r0 + 80023b6: 73fb strb r3, [r7, #15] /* USER CODE BEGIN READ */ return SD_disk_read (pdrv, buff, sector, count); - 800233c: 7bf8 ldrb r0, [r7, #15] - 800233e: 683b ldr r3, [r7, #0] - 8002340: 687a ldr r2, [r7, #4] - 8002342: 68b9 ldr r1, [r7, #8] - 8002344: f000 fba8 bl 8002a98 - 8002348: 4603 mov r3, r0 + 80023b8: 7bf8 ldrb r0, [r7, #15] + 80023ba: 683b ldr r3, [r7, #0] + 80023bc: 687a ldr r2, [r7, #4] + 80023be: 68b9 ldr r1, [r7, #8] + 80023c0: f002 fd12 bl 8004de8 + 80023c4: 4603 mov r3, r0 /* USER CODE END READ */ } - 800234a: 4618 mov r0, r3 - 800234c: 3710 adds r7, #16 - 800234e: 46bd mov sp, r7 - 8002350: bd80 pop {r7, pc} + 80023c6: 4618 mov r0, r3 + 80023c8: 3710 adds r7, #16 + 80023ca: 46bd mov sp, r7 + 80023cc: bd80 pop {r7, pc} -08002352 : +080023ce : BYTE pdrv, /* Physical drive nmuber to identify the drive */ const BYTE *buff, /* Data to be written */ DWORD sector, /* Sector address in LBA */ UINT count /* Number of sectors to write */ ) { - 8002352: b580 push {r7, lr} - 8002354: b084 sub sp, #16 - 8002356: af00 add r7, sp, #0 - 8002358: 60b9 str r1, [r7, #8] - 800235a: 607a str r2, [r7, #4] - 800235c: 603b str r3, [r7, #0] - 800235e: 4603 mov r3, r0 - 8002360: 73fb strb r3, [r7, #15] + 80023ce: b580 push {r7, lr} + 80023d0: b084 sub sp, #16 + 80023d2: af00 add r7, sp, #0 + 80023d4: 60b9 str r1, [r7, #8] + 80023d6: 607a str r2, [r7, #4] + 80023d8: 603b str r3, [r7, #0] + 80023da: 4603 mov r3, r0 + 80023dc: 73fb strb r3, [r7, #15] /* USER CODE BEGIN WRITE */ /* USER CODE HERE */ return SD_disk_write (pdrv, buff, sector, count); - 8002362: 7bf8 ldrb r0, [r7, #15] - 8002364: 683b ldr r3, [r7, #0] - 8002366: 687a ldr r2, [r7, #4] - 8002368: 68b9 ldr r1, [r7, #8] - 800236a: f000 fbff bl 8002b6c - 800236e: 4603 mov r3, r0 + 80023de: 7bf8 ldrb r0, [r7, #15] + 80023e0: 683b ldr r3, [r7, #0] + 80023e2: 687a ldr r2, [r7, #4] + 80023e4: 68b9 ldr r1, [r7, #8] + 80023e6: f002 fd69 bl 8004ebc + 80023ea: 4603 mov r3, r0 /* USER CODE END WRITE */ } - 8002370: 4618 mov r0, r3 - 8002372: 3710 adds r7, #16 - 8002374: 46bd mov sp, r7 - 8002376: bd80 pop {r7, pc} + 80023ec: 4618 mov r0, r3 + 80023ee: 3710 adds r7, #16 + 80023f0: 46bd mov sp, r7 + 80023f2: bd80 pop {r7, pc} -08002378 : +080023f4 : DRESULT USER_ioctl ( BYTE pdrv, /* Physical drive nmuber (0..) */ BYTE cmd, /* Control code */ void *buff /* Buffer to send/receive control data */ ) { - 8002378: b580 push {r7, lr} - 800237a: b084 sub sp, #16 - 800237c: af00 add r7, sp, #0 - 800237e: 4603 mov r3, r0 - 8002380: 603a str r2, [r7, #0] - 8002382: 71fb strb r3, [r7, #7] - 8002384: 460b mov r3, r1 - 8002386: 71bb strb r3, [r7, #6] + 80023f4: b580 push {r7, lr} + 80023f6: b084 sub sp, #16 + 80023f8: af00 add r7, sp, #0 + 80023fa: 4603 mov r3, r0 + 80023fc: 603a str r2, [r7, #0] + 80023fe: 71fb strb r3, [r7, #7] + 8002400: 460b mov r3, r1 + 8002402: 71bb strb r3, [r7, #6] /* USER CODE BEGIN IOCTL */ DRESULT res = SD_disk_ioctl (pdrv, cmd, buff); - 8002388: 79b9 ldrb r1, [r7, #6] - 800238a: 79fb ldrb r3, [r7, #7] - 800238c: 683a ldr r2, [r7, #0] - 800238e: 4618 mov r0, r3 - 8002390: f000 fc70 bl 8002c74 - 8002394: 4603 mov r3, r0 - 8002396: 73fb strb r3, [r7, #15] + 8002404: 79b9 ldrb r1, [r7, #6] + 8002406: 79fb ldrb r3, [r7, #7] + 8002408: 683a ldr r2, [r7, #0] + 800240a: 4618 mov r0, r3 + 800240c: f002 fdda bl 8004fc4 + 8002410: 4603 mov r3, r0 + 8002412: 73fb strb r3, [r7, #15] return res; - 8002398: 7bfb ldrb r3, [r7, #15] + 8002414: 7bfb ldrb r3, [r7, #15] /* USER CODE END IOCTL */ } - 800239a: 4618 mov r0, r3 - 800239c: 3710 adds r7, #16 - 800239e: 46bd mov sp, r7 - 80023a0: bd80 pop {r7, pc} + 8002416: 4618 mov r0, r3 + 8002418: 3710 adds r7, #16 + 800241a: 46bd mov sp, r7 + 800241c: bd80 pop {r7, pc} ... -080023a4 : +08002420 : + * @retval DSTATUS: Operation status + */ +DSTATUS disk_status ( + BYTE pdrv /* Physical drive nmuber to identify the drive */ +) +{ + 8002420: b580 push {r7, lr} + 8002422: b084 sub sp, #16 + 8002424: af00 add r7, sp, #0 + 8002426: 4603 mov r3, r0 + 8002428: 71fb strb r3, [r7, #7] + DSTATUS stat; + + stat = disk.drv[pdrv]->disk_status(disk.lun[pdrv]); + 800242a: 79fb ldrb r3, [r7, #7] + 800242c: 4a08 ldr r2, [pc, #32] ; (8002450 ) + 800242e: 009b lsls r3, r3, #2 + 8002430: 4413 add r3, r2 + 8002432: 685b ldr r3, [r3, #4] + 8002434: 685b ldr r3, [r3, #4] + 8002436: 79fa ldrb r2, [r7, #7] + 8002438: 4905 ldr r1, [pc, #20] ; (8002450 ) + 800243a: 440a add r2, r1 + 800243c: 7a12 ldrb r2, [r2, #8] + 800243e: 4610 mov r0, r2 + 8002440: 4798 blx r3 + 8002442: 4603 mov r3, r0 + 8002444: 73fb strb r3, [r7, #15] + return stat; + 8002446: 7bfb ldrb r3, [r7, #15] +} + 8002448: 4618 mov r0, r3 + 800244a: 3710 adds r7, #16 + 800244c: 46bd mov sp, r7 + 800244e: bd80 pop {r7, pc} + 8002450: 200000cc .word 0x200000cc + +08002454 : + * @retval DSTATUS: Operation status + */ +DSTATUS disk_initialize ( + BYTE pdrv /* Physical drive nmuber to identify the drive */ +) +{ + 8002454: b580 push {r7, lr} + 8002456: b084 sub sp, #16 + 8002458: af00 add r7, sp, #0 + 800245a: 4603 mov r3, r0 + 800245c: 71fb strb r3, [r7, #7] + DSTATUS stat = RES_OK; + 800245e: 2300 movs r3, #0 + 8002460: 73fb strb r3, [r7, #15] + + if(disk.is_initialized[pdrv] == 0) + 8002462: 79fb ldrb r3, [r7, #7] + 8002464: 4a0d ldr r2, [pc, #52] ; (800249c ) + 8002466: 5cd3 ldrb r3, [r2, r3] + 8002468: 2b00 cmp r3, #0 + 800246a: d111 bne.n 8002490 + { + disk.is_initialized[pdrv] = 1; + 800246c: 79fb ldrb r3, [r7, #7] + 800246e: 4a0b ldr r2, [pc, #44] ; (800249c ) + 8002470: 2101 movs r1, #1 + 8002472: 54d1 strb r1, [r2, r3] + stat = disk.drv[pdrv]->disk_initialize(disk.lun[pdrv]); + 8002474: 79fb ldrb r3, [r7, #7] + 8002476: 4a09 ldr r2, [pc, #36] ; (800249c ) + 8002478: 009b lsls r3, r3, #2 + 800247a: 4413 add r3, r2 + 800247c: 685b ldr r3, [r3, #4] + 800247e: 681b ldr r3, [r3, #0] + 8002480: 79fa ldrb r2, [r7, #7] + 8002482: 4906 ldr r1, [pc, #24] ; (800249c ) + 8002484: 440a add r2, r1 + 8002486: 7a12 ldrb r2, [r2, #8] + 8002488: 4610 mov r0, r2 + 800248a: 4798 blx r3 + 800248c: 4603 mov r3, r0 + 800248e: 73fb strb r3, [r7, #15] + } + return stat; + 8002490: 7bfb ldrb r3, [r7, #15] +} + 8002492: 4618 mov r0, r3 + 8002494: 3710 adds r7, #16 + 8002496: 46bd mov sp, r7 + 8002498: bd80 pop {r7, pc} + 800249a: bf00 nop + 800249c: 200000cc .word 0x200000cc + +080024a0 : + BYTE pdrv, /* Physical drive nmuber to identify the drive */ + BYTE *buff, /* Data buffer to store read data */ + DWORD sector, /* Sector address in LBA */ + UINT count /* Number of sectors to read */ +) +{ + 80024a0: b590 push {r4, r7, lr} + 80024a2: b087 sub sp, #28 + 80024a4: af00 add r7, sp, #0 + 80024a6: 60b9 str r1, [r7, #8] + 80024a8: 607a str r2, [r7, #4] + 80024aa: 603b str r3, [r7, #0] + 80024ac: 4603 mov r3, r0 + 80024ae: 73fb strb r3, [r7, #15] + DRESULT res; + + res = disk.drv[pdrv]->disk_read(disk.lun[pdrv], buff, sector, count); + 80024b0: 7bfb ldrb r3, [r7, #15] + 80024b2: 4a0a ldr r2, [pc, #40] ; (80024dc ) + 80024b4: 009b lsls r3, r3, #2 + 80024b6: 4413 add r3, r2 + 80024b8: 685b ldr r3, [r3, #4] + 80024ba: 689c ldr r4, [r3, #8] + 80024bc: 7bfb ldrb r3, [r7, #15] + 80024be: 4a07 ldr r2, [pc, #28] ; (80024dc ) + 80024c0: 4413 add r3, r2 + 80024c2: 7a18 ldrb r0, [r3, #8] + 80024c4: 683b ldr r3, [r7, #0] + 80024c6: 687a ldr r2, [r7, #4] + 80024c8: 68b9 ldr r1, [r7, #8] + 80024ca: 47a0 blx r4 + 80024cc: 4603 mov r3, r0 + 80024ce: 75fb strb r3, [r7, #23] + return res; + 80024d0: 7dfb ldrb r3, [r7, #23] +} + 80024d2: 4618 mov r0, r3 + 80024d4: 371c adds r7, #28 + 80024d6: 46bd mov sp, r7 + 80024d8: bd90 pop {r4, r7, pc} + 80024da: bf00 nop + 80024dc: 200000cc .word 0x200000cc + +080024e0 : + BYTE pdrv, /* Physical drive nmuber to identify the drive */ + const BYTE *buff, /* Data to be written */ + DWORD sector, /* Sector address in LBA */ + UINT count /* Number of sectors to write */ +) +{ + 80024e0: b590 push {r4, r7, lr} + 80024e2: b087 sub sp, #28 + 80024e4: af00 add r7, sp, #0 + 80024e6: 60b9 str r1, [r7, #8] + 80024e8: 607a str r2, [r7, #4] + 80024ea: 603b str r3, [r7, #0] + 80024ec: 4603 mov r3, r0 + 80024ee: 73fb strb r3, [r7, #15] + DRESULT res; + + res = disk.drv[pdrv]->disk_write(disk.lun[pdrv], buff, sector, count); + 80024f0: 7bfb ldrb r3, [r7, #15] + 80024f2: 4a0a ldr r2, [pc, #40] ; (800251c ) + 80024f4: 009b lsls r3, r3, #2 + 80024f6: 4413 add r3, r2 + 80024f8: 685b ldr r3, [r3, #4] + 80024fa: 68dc ldr r4, [r3, #12] + 80024fc: 7bfb ldrb r3, [r7, #15] + 80024fe: 4a07 ldr r2, [pc, #28] ; (800251c ) + 8002500: 4413 add r3, r2 + 8002502: 7a18 ldrb r0, [r3, #8] + 8002504: 683b ldr r3, [r7, #0] + 8002506: 687a ldr r2, [r7, #4] + 8002508: 68b9 ldr r1, [r7, #8] + 800250a: 47a0 blx r4 + 800250c: 4603 mov r3, r0 + 800250e: 75fb strb r3, [r7, #23] + return res; + 8002510: 7dfb ldrb r3, [r7, #23] +} + 8002512: 4618 mov r0, r3 + 8002514: 371c adds r7, #28 + 8002516: 46bd mov sp, r7 + 8002518: bd90 pop {r4, r7, pc} + 800251a: bf00 nop + 800251c: 200000cc .word 0x200000cc + +08002520 : +/* String functions */ +/*-----------------------------------------------------------------------*/ + +/* Copy memory to memory */ +static +void mem_cpy (void* dst, const void* src, UINT cnt) { + 8002520: b480 push {r7} + 8002522: b087 sub sp, #28 + 8002524: af00 add r7, sp, #0 + 8002526: 60f8 str r0, [r7, #12] + 8002528: 60b9 str r1, [r7, #8] + 800252a: 607a str r2, [r7, #4] + BYTE *d = (BYTE*)dst; + 800252c: 68fb ldr r3, [r7, #12] + 800252e: 617b str r3, [r7, #20] + const BYTE *s = (const BYTE*)src; + 8002530: 68bb ldr r3, [r7, #8] + 8002532: 613b str r3, [r7, #16] + *(int*)d = *(int*)s; + d += sizeof (int); s += sizeof (int); + cnt -= sizeof (int); + } +#endif + while (cnt--) + 8002534: e007 b.n 8002546 + *d++ = *s++; + 8002536: 693a ldr r2, [r7, #16] + 8002538: 1c53 adds r3, r2, #1 + 800253a: 613b str r3, [r7, #16] + 800253c: 697b ldr r3, [r7, #20] + 800253e: 1c59 adds r1, r3, #1 + 8002540: 6179 str r1, [r7, #20] + 8002542: 7812 ldrb r2, [r2, #0] + 8002544: 701a strb r2, [r3, #0] + while (cnt--) + 8002546: 687b ldr r3, [r7, #4] + 8002548: 1e5a subs r2, r3, #1 + 800254a: 607a str r2, [r7, #4] + 800254c: 2b00 cmp r3, #0 + 800254e: d1f2 bne.n 8002536 +} + 8002550: bf00 nop + 8002552: bf00 nop + 8002554: 371c adds r7, #28 + 8002556: 46bd mov sp, r7 + 8002558: bc80 pop {r7} + 800255a: 4770 bx lr + +0800255c : + +/* Fill memory */ +static +void mem_set (void* dst, int val, UINT cnt) { + 800255c: b480 push {r7} + 800255e: b087 sub sp, #28 + 8002560: af00 add r7, sp, #0 + 8002562: 60f8 str r0, [r7, #12] + 8002564: 60b9 str r1, [r7, #8] + 8002566: 607a str r2, [r7, #4] + BYTE *d = (BYTE*)dst; + 8002568: 68fb ldr r3, [r7, #12] + 800256a: 617b str r3, [r7, #20] + + while (cnt--) + 800256c: e005 b.n 800257a + *d++ = (BYTE)val; + 800256e: 697b ldr r3, [r7, #20] + 8002570: 1c5a adds r2, r3, #1 + 8002572: 617a str r2, [r7, #20] + 8002574: 68ba ldr r2, [r7, #8] + 8002576: b2d2 uxtb r2, r2 + 8002578: 701a strb r2, [r3, #0] + while (cnt--) + 800257a: 687b ldr r3, [r7, #4] + 800257c: 1e5a subs r2, r3, #1 + 800257e: 607a str r2, [r7, #4] + 8002580: 2b00 cmp r3, #0 + 8002582: d1f4 bne.n 800256e +} + 8002584: bf00 nop + 8002586: bf00 nop + 8002588: 371c adds r7, #28 + 800258a: 46bd mov sp, r7 + 800258c: bc80 pop {r7} + 800258e: 4770 bx lr + +08002590 : + +/* Compare memory to memory */ +static +int mem_cmp (const void* dst, const void* src, UINT cnt) { + 8002590: b480 push {r7} + 8002592: b089 sub sp, #36 ; 0x24 + 8002594: af00 add r7, sp, #0 + 8002596: 60f8 str r0, [r7, #12] + 8002598: 60b9 str r1, [r7, #8] + 800259a: 607a str r2, [r7, #4] + const BYTE *d = (const BYTE *)dst, *s = (const BYTE *)src; + 800259c: 68fb ldr r3, [r7, #12] + 800259e: 61fb str r3, [r7, #28] + 80025a0: 68bb ldr r3, [r7, #8] + 80025a2: 61bb str r3, [r7, #24] + int r = 0; + 80025a4: 2300 movs r3, #0 + 80025a6: 617b str r3, [r7, #20] + + while (cnt-- && (r = *d++ - *s++) == 0) ; + 80025a8: bf00 nop + 80025aa: 687b ldr r3, [r7, #4] + 80025ac: 1e5a subs r2, r3, #1 + 80025ae: 607a str r2, [r7, #4] + 80025b0: 2b00 cmp r3, #0 + 80025b2: d00d beq.n 80025d0 + 80025b4: 69fb ldr r3, [r7, #28] + 80025b6: 1c5a adds r2, r3, #1 + 80025b8: 61fa str r2, [r7, #28] + 80025ba: 781b ldrb r3, [r3, #0] + 80025bc: 4619 mov r1, r3 + 80025be: 69bb ldr r3, [r7, #24] + 80025c0: 1c5a adds r2, r3, #1 + 80025c2: 61ba str r2, [r7, #24] + 80025c4: 781b ldrb r3, [r3, #0] + 80025c6: 1acb subs r3, r1, r3 + 80025c8: 617b str r3, [r7, #20] + 80025ca: 697b ldr r3, [r7, #20] + 80025cc: 2b00 cmp r3, #0 + 80025ce: d0ec beq.n 80025aa + return r; + 80025d0: 697b ldr r3, [r7, #20] +} + 80025d2: 4618 mov r0, r3 + 80025d4: 3724 adds r7, #36 ; 0x24 + 80025d6: 46bd mov sp, r7 + 80025d8: bc80 pop {r7} + 80025da: 4770 bx lr + +080025dc : + +/* Check if chr is contained in the string */ +static +int chk_chr (const char* str, int chr) { + 80025dc: b480 push {r7} + 80025de: b083 sub sp, #12 + 80025e0: af00 add r7, sp, #0 + 80025e2: 6078 str r0, [r7, #4] + 80025e4: 6039 str r1, [r7, #0] + while (*str && *str != chr) str++; + 80025e6: e002 b.n 80025ee + 80025e8: 687b ldr r3, [r7, #4] + 80025ea: 3301 adds r3, #1 + 80025ec: 607b str r3, [r7, #4] + 80025ee: 687b ldr r3, [r7, #4] + 80025f0: 781b ldrb r3, [r3, #0] + 80025f2: 2b00 cmp r3, #0 + 80025f4: d005 beq.n 8002602 + 80025f6: 687b ldr r3, [r7, #4] + 80025f8: 781b ldrb r3, [r3, #0] + 80025fa: 461a mov r2, r3 + 80025fc: 683b ldr r3, [r7, #0] + 80025fe: 4293 cmp r3, r2 + 8002600: d1f2 bne.n 80025e8 + return *str; + 8002602: 687b ldr r3, [r7, #4] + 8002604: 781b ldrb r3, [r3, #0] +} + 8002606: 4618 mov r0, r3 + 8002608: 370c adds r7, #12 + 800260a: 46bd mov sp, r7 + 800260c: bc80 pop {r7} + 800260e: 4770 bx lr + +08002610 : +static +FRESULT chk_lock ( /* Check if the file can be accessed */ + DIR* dp, /* Directory object pointing the file to be checked */ + int acc /* Desired access type (0:Read, 1:Write, 2:Delete/Rename) */ +) +{ + 8002610: b480 push {r7} + 8002612: b085 sub sp, #20 + 8002614: af00 add r7, sp, #0 + 8002616: 6078 str r0, [r7, #4] + 8002618: 6039 str r1, [r7, #0] + UINT i, be; + + /* Search file semaphore table */ + for (i = be = 0; i < _FS_LOCK; i++) { + 800261a: 2300 movs r3, #0 + 800261c: 60bb str r3, [r7, #8] + 800261e: 68bb ldr r3, [r7, #8] + 8002620: 60fb str r3, [r7, #12] + 8002622: e038 b.n 8002696 + if (Files[i].fs) { /* Existing entry */ + 8002624: 492f ldr r1, [pc, #188] ; (80026e4 ) + 8002626: 68fa ldr r2, [r7, #12] + 8002628: 4613 mov r3, r2 + 800262a: 005b lsls r3, r3, #1 + 800262c: 4413 add r3, r2 + 800262e: 009b lsls r3, r3, #2 + 8002630: 440b add r3, r1 + 8002632: 681b ldr r3, [r3, #0] + 8002634: 2b00 cmp r3, #0 + 8002636: d029 beq.n 800268c + if (Files[i].fs == dp->fs && /* Check if the object matched with an open object */ + 8002638: 492a ldr r1, [pc, #168] ; (80026e4 ) + 800263a: 68fa ldr r2, [r7, #12] + 800263c: 4613 mov r3, r2 + 800263e: 005b lsls r3, r3, #1 + 8002640: 4413 add r3, r2 + 8002642: 009b lsls r3, r3, #2 + 8002644: 440b add r3, r1 + 8002646: 681a ldr r2, [r3, #0] + 8002648: 687b ldr r3, [r7, #4] + 800264a: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 + 800264e: 429a cmp r2, r3 + 8002650: d11e bne.n 8002690 + Files[i].clu == dp->sclust && + 8002652: 4924 ldr r1, [pc, #144] ; (80026e4 ) + 8002654: 68fa ldr r2, [r7, #12] + 8002656: 4613 mov r3, r2 + 8002658: 005b lsls r3, r3, #1 + 800265a: 4413 add r3, r2 + 800265c: 009b lsls r3, r3, #2 + 800265e: 440b add r3, r1 + 8002660: 3304 adds r3, #4 + 8002662: 681a ldr r2, [r3, #0] + 8002664: 687b ldr r3, [r7, #4] + 8002666: f8d3 3208 ldr.w r3, [r3, #520] ; 0x208 + if (Files[i].fs == dp->fs && /* Check if the object matched with an open object */ + 800266a: 429a cmp r2, r3 + 800266c: d110 bne.n 8002690 + Files[i].idx == dp->index) break; + 800266e: 491d ldr r1, [pc, #116] ; (80026e4 ) + 8002670: 68fa ldr r2, [r7, #12] + 8002672: 4613 mov r3, r2 + 8002674: 005b lsls r3, r3, #1 + 8002676: 4413 add r3, r2 + 8002678: 009b lsls r3, r3, #2 + 800267a: 440b add r3, r1 + 800267c: 3308 adds r3, #8 + 800267e: 881a ldrh r2, [r3, #0] + 8002680: 687b ldr r3, [r7, #4] + 8002682: f8b3 3206 ldrh.w r3, [r3, #518] ; 0x206 + Files[i].clu == dp->sclust && + 8002686: 429a cmp r2, r3 + 8002688: d102 bne.n 8002690 + Files[i].idx == dp->index) break; + 800268a: e007 b.n 800269c + } else { /* Blank entry */ + be = 1; + 800268c: 2301 movs r3, #1 + 800268e: 60bb str r3, [r7, #8] + for (i = be = 0; i < _FS_LOCK; i++) { + 8002690: 68fb ldr r3, [r7, #12] + 8002692: 3301 adds r3, #1 + 8002694: 60fb str r3, [r7, #12] + 8002696: 68fb ldr r3, [r7, #12] + 8002698: 2b01 cmp r3, #1 + 800269a: d9c3 bls.n 8002624 + } + } + if (i == _FS_LOCK) /* The object is not opened */ + 800269c: 68fb ldr r3, [r7, #12] + 800269e: 2b02 cmp r3, #2 + 80026a0: d109 bne.n 80026b6 + return (be || acc == 2) ? FR_OK : FR_TOO_MANY_OPEN_FILES; /* Is there a blank entry for new object? */ + 80026a2: 68bb ldr r3, [r7, #8] + 80026a4: 2b00 cmp r3, #0 + 80026a6: d102 bne.n 80026ae + 80026a8: 683b ldr r3, [r7, #0] + 80026aa: 2b02 cmp r3, #2 + 80026ac: d101 bne.n 80026b2 + 80026ae: 2300 movs r3, #0 + 80026b0: e013 b.n 80026da + 80026b2: 2312 movs r3, #18 + 80026b4: e011 b.n 80026da + + /* The object has been opened. Reject any open against writing file and all write mode open */ + return (acc || Files[i].ctr == 0x100) ? FR_LOCKED : FR_OK; + 80026b6: 683b ldr r3, [r7, #0] + 80026b8: 2b00 cmp r3, #0 + 80026ba: d10b bne.n 80026d4 + 80026bc: 4909 ldr r1, [pc, #36] ; (80026e4 ) + 80026be: 68fa ldr r2, [r7, #12] + 80026c0: 4613 mov r3, r2 + 80026c2: 005b lsls r3, r3, #1 + 80026c4: 4413 add r3, r2 + 80026c6: 009b lsls r3, r3, #2 + 80026c8: 440b add r3, r1 + 80026ca: 330a adds r3, #10 + 80026cc: 881b ldrh r3, [r3, #0] + 80026ce: f5b3 7f80 cmp.w r3, #256 ; 0x100 + 80026d2: d101 bne.n 80026d8 + 80026d4: 2310 movs r3, #16 + 80026d6: e000 b.n 80026da + 80026d8: 2300 movs r3, #0 +} + 80026da: 4618 mov r0, r3 + 80026dc: 3714 adds r7, #20 + 80026de: 46bd mov sp, r7 + 80026e0: bc80 pop {r7} + 80026e2: 4770 bx lr + 80026e4: 200000b4 .word 0x200000b4 + +080026e8 : + + +static +int enq_lock (void) /* Check if an entry is available for a new object */ +{ + 80026e8: b480 push {r7} + 80026ea: b083 sub sp, #12 + 80026ec: af00 add r7, sp, #0 + UINT i; + + for (i = 0; i < _FS_LOCK && Files[i].fs; i++) ; + 80026ee: 2300 movs r3, #0 + 80026f0: 607b str r3, [r7, #4] + 80026f2: e002 b.n 80026fa + 80026f4: 687b ldr r3, [r7, #4] + 80026f6: 3301 adds r3, #1 + 80026f8: 607b str r3, [r7, #4] + 80026fa: 687b ldr r3, [r7, #4] + 80026fc: 2b01 cmp r3, #1 + 80026fe: d809 bhi.n 8002714 + 8002700: 490a ldr r1, [pc, #40] ; (800272c ) + 8002702: 687a ldr r2, [r7, #4] + 8002704: 4613 mov r3, r2 + 8002706: 005b lsls r3, r3, #1 + 8002708: 4413 add r3, r2 + 800270a: 009b lsls r3, r3, #2 + 800270c: 440b add r3, r1 + 800270e: 681b ldr r3, [r3, #0] + 8002710: 2b00 cmp r3, #0 + 8002712: d1ef bne.n 80026f4 + return (i == _FS_LOCK) ? 0 : 1; + 8002714: 687b ldr r3, [r7, #4] + 8002716: 2b02 cmp r3, #2 + 8002718: bf14 ite ne + 800271a: 2301 movne r3, #1 + 800271c: 2300 moveq r3, #0 + 800271e: b2db uxtb r3, r3 +} + 8002720: 4618 mov r0, r3 + 8002722: 370c adds r7, #12 + 8002724: 46bd mov sp, r7 + 8002726: bc80 pop {r7} + 8002728: 4770 bx lr + 800272a: bf00 nop + 800272c: 200000b4 .word 0x200000b4 + +08002730 : +static +UINT inc_lock ( /* Increment object open counter and returns its index (0:Internal error) */ + DIR* dp, /* Directory object pointing the file to register or increment */ + int acc /* Desired access (0:Read, 1:Write, 2:Delete/Rename) */ +) +{ + 8002730: b480 push {r7} + 8002732: b085 sub sp, #20 + 8002734: af00 add r7, sp, #0 + 8002736: 6078 str r0, [r7, #4] + 8002738: 6039 str r1, [r7, #0] + UINT i; + + + for (i = 0; i < _FS_LOCK; i++) { /* Find the object */ + 800273a: 2300 movs r3, #0 + 800273c: 60fb str r3, [r7, #12] + 800273e: e02b b.n 8002798 + if (Files[i].fs == dp->fs && + 8002740: 4955 ldr r1, [pc, #340] ; (8002898 ) + 8002742: 68fa ldr r2, [r7, #12] + 8002744: 4613 mov r3, r2 + 8002746: 005b lsls r3, r3, #1 + 8002748: 4413 add r3, r2 + 800274a: 009b lsls r3, r3, #2 + 800274c: 440b add r3, r1 + 800274e: 681a ldr r2, [r3, #0] + 8002750: 687b ldr r3, [r7, #4] + 8002752: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 + 8002756: 429a cmp r2, r3 + 8002758: d11b bne.n 8002792 + Files[i].clu == dp->sclust && + 800275a: 494f ldr r1, [pc, #316] ; (8002898 ) + 800275c: 68fa ldr r2, [r7, #12] + 800275e: 4613 mov r3, r2 + 8002760: 005b lsls r3, r3, #1 + 8002762: 4413 add r3, r2 + 8002764: 009b lsls r3, r3, #2 + 8002766: 440b add r3, r1 + 8002768: 3304 adds r3, #4 + 800276a: 681a ldr r2, [r3, #0] + 800276c: 687b ldr r3, [r7, #4] + 800276e: f8d3 3208 ldr.w r3, [r3, #520] ; 0x208 + if (Files[i].fs == dp->fs && + 8002772: 429a cmp r2, r3 + 8002774: d10d bne.n 8002792 + Files[i].idx == dp->index) break; + 8002776: 4948 ldr r1, [pc, #288] ; (8002898 ) + 8002778: 68fa ldr r2, [r7, #12] + 800277a: 4613 mov r3, r2 + 800277c: 005b lsls r3, r3, #1 + 800277e: 4413 add r3, r2 + 8002780: 009b lsls r3, r3, #2 + 8002782: 440b add r3, r1 + 8002784: 3308 adds r3, #8 + 8002786: 881a ldrh r2, [r3, #0] + 8002788: 687b ldr r3, [r7, #4] + 800278a: f8b3 3206 ldrh.w r3, [r3, #518] ; 0x206 + Files[i].clu == dp->sclust && + 800278e: 429a cmp r2, r3 + 8002790: d006 beq.n 80027a0 + for (i = 0; i < _FS_LOCK; i++) { /* Find the object */ + 8002792: 68fb ldr r3, [r7, #12] + 8002794: 3301 adds r3, #1 + 8002796: 60fb str r3, [r7, #12] + 8002798: 68fb ldr r3, [r7, #12] + 800279a: 2b01 cmp r3, #1 + 800279c: d9d0 bls.n 8002740 + 800279e: e000 b.n 80027a2 + Files[i].idx == dp->index) break; + 80027a0: bf00 nop + } + + if (i == _FS_LOCK) { /* Not opened. Register it as new. */ + 80027a2: 68fb ldr r3, [r7, #12] + 80027a4: 2b02 cmp r3, #2 + 80027a6: d145 bne.n 8002834 + for (i = 0; i < _FS_LOCK && Files[i].fs; i++) ; + 80027a8: 2300 movs r3, #0 + 80027aa: 60fb str r3, [r7, #12] + 80027ac: e002 b.n 80027b4 + 80027ae: 68fb ldr r3, [r7, #12] + 80027b0: 3301 adds r3, #1 + 80027b2: 60fb str r3, [r7, #12] + 80027b4: 68fb ldr r3, [r7, #12] + 80027b6: 2b01 cmp r3, #1 + 80027b8: d809 bhi.n 80027ce + 80027ba: 4937 ldr r1, [pc, #220] ; (8002898 ) + 80027bc: 68fa ldr r2, [r7, #12] + 80027be: 4613 mov r3, r2 + 80027c0: 005b lsls r3, r3, #1 + 80027c2: 4413 add r3, r2 + 80027c4: 009b lsls r3, r3, #2 + 80027c6: 440b add r3, r1 + 80027c8: 681b ldr r3, [r3, #0] + 80027ca: 2b00 cmp r3, #0 + 80027cc: d1ef bne.n 80027ae + if (i == _FS_LOCK) return 0; /* No free entry to register (int err) */ + 80027ce: 68fb ldr r3, [r7, #12] + 80027d0: 2b02 cmp r3, #2 + 80027d2: d101 bne.n 80027d8 + 80027d4: 2300 movs r3, #0 + 80027d6: e05a b.n 800288e + Files[i].fs = dp->fs; + 80027d8: 687b ldr r3, [r7, #4] + 80027da: f8d3 1200 ldr.w r1, [r3, #512] ; 0x200 + 80027de: 482e ldr r0, [pc, #184] ; (8002898 ) + 80027e0: 68fa ldr r2, [r7, #12] + 80027e2: 4613 mov r3, r2 + 80027e4: 005b lsls r3, r3, #1 + 80027e6: 4413 add r3, r2 + 80027e8: 009b lsls r3, r3, #2 + 80027ea: 4403 add r3, r0 + 80027ec: 6019 str r1, [r3, #0] + Files[i].clu = dp->sclust; + 80027ee: 687b ldr r3, [r7, #4] + 80027f0: f8d3 1208 ldr.w r1, [r3, #520] ; 0x208 + 80027f4: 4828 ldr r0, [pc, #160] ; (8002898 ) + 80027f6: 68fa ldr r2, [r7, #12] + 80027f8: 4613 mov r3, r2 + 80027fa: 005b lsls r3, r3, #1 + 80027fc: 4413 add r3, r2 + 80027fe: 009b lsls r3, r3, #2 + 8002800: 4403 add r3, r0 + 8002802: 3304 adds r3, #4 + 8002804: 6019 str r1, [r3, #0] + Files[i].idx = dp->index; + 8002806: 687b ldr r3, [r7, #4] + 8002808: f8b3 0206 ldrh.w r0, [r3, #518] ; 0x206 + 800280c: 4922 ldr r1, [pc, #136] ; (8002898 ) + 800280e: 68fa ldr r2, [r7, #12] + 8002810: 4613 mov r3, r2 + 8002812: 005b lsls r3, r3, #1 + 8002814: 4413 add r3, r2 + 8002816: 009b lsls r3, r3, #2 + 8002818: 440b add r3, r1 + 800281a: 3308 adds r3, #8 + 800281c: 4602 mov r2, r0 + 800281e: 801a strh r2, [r3, #0] + Files[i].ctr = 0; + 8002820: 491d ldr r1, [pc, #116] ; (8002898 ) + 8002822: 68fa ldr r2, [r7, #12] + 8002824: 4613 mov r3, r2 + 8002826: 005b lsls r3, r3, #1 + 8002828: 4413 add r3, r2 + 800282a: 009b lsls r3, r3, #2 + 800282c: 440b add r3, r1 + 800282e: 330a adds r3, #10 + 8002830: 2200 movs r2, #0 + 8002832: 801a strh r2, [r3, #0] + } + + if (acc && Files[i].ctr) return 0; /* Access violation (int err) */ + 8002834: 683b ldr r3, [r7, #0] + 8002836: 2b00 cmp r3, #0 + 8002838: d00c beq.n 8002854 + 800283a: 4917 ldr r1, [pc, #92] ; (8002898 ) + 800283c: 68fa ldr r2, [r7, #12] + 800283e: 4613 mov r3, r2 + 8002840: 005b lsls r3, r3, #1 + 8002842: 4413 add r3, r2 + 8002844: 009b lsls r3, r3, #2 + 8002846: 440b add r3, r1 + 8002848: 330a adds r3, #10 + 800284a: 881b ldrh r3, [r3, #0] + 800284c: 2b00 cmp r3, #0 + 800284e: d001 beq.n 8002854 + 8002850: 2300 movs r3, #0 + 8002852: e01c b.n 800288e + + Files[i].ctr = acc ? 0x100 : Files[i].ctr + 1; /* Set semaphore value */ + 8002854: 683b ldr r3, [r7, #0] + 8002856: 2b00 cmp r3, #0 + 8002858: d10b bne.n 8002872 + 800285a: 490f ldr r1, [pc, #60] ; (8002898 ) + 800285c: 68fa ldr r2, [r7, #12] + 800285e: 4613 mov r3, r2 + 8002860: 005b lsls r3, r3, #1 + 8002862: 4413 add r3, r2 + 8002864: 009b lsls r3, r3, #2 + 8002866: 440b add r3, r1 + 8002868: 330a adds r3, #10 + 800286a: 881b ldrh r3, [r3, #0] + 800286c: 3301 adds r3, #1 + 800286e: b299 uxth r1, r3 + 8002870: e001 b.n 8002876 + 8002872: f44f 7180 mov.w r1, #256 ; 0x100 + 8002876: 4808 ldr r0, [pc, #32] ; (8002898 ) + 8002878: 68fa ldr r2, [r7, #12] + 800287a: 4613 mov r3, r2 + 800287c: 005b lsls r3, r3, #1 + 800287e: 4413 add r3, r2 + 8002880: 009b lsls r3, r3, #2 + 8002882: 4403 add r3, r0 + 8002884: 330a adds r3, #10 + 8002886: 460a mov r2, r1 + 8002888: 801a strh r2, [r3, #0] + + return i + 1; + 800288a: 68fb ldr r3, [r7, #12] + 800288c: 3301 adds r3, #1 +} + 800288e: 4618 mov r0, r3 + 8002890: 3714 adds r7, #20 + 8002892: 46bd mov sp, r7 + 8002894: bc80 pop {r7} + 8002896: 4770 bx lr + 8002898: 200000b4 .word 0x200000b4 + +0800289c : + +static +void clear_lock ( /* Clear lock entries of the volume */ + FATFS *fs +) +{ + 800289c: b480 push {r7} + 800289e: b085 sub sp, #20 + 80028a0: af00 add r7, sp, #0 + 80028a2: 6078 str r0, [r7, #4] + UINT i; + + for (i = 0; i < _FS_LOCK; i++) { + 80028a4: 2300 movs r3, #0 + 80028a6: 60fb str r3, [r7, #12] + 80028a8: e016 b.n 80028d8 + if (Files[i].fs == fs) Files[i].fs = 0; + 80028aa: 4910 ldr r1, [pc, #64] ; (80028ec ) + 80028ac: 68fa ldr r2, [r7, #12] + 80028ae: 4613 mov r3, r2 + 80028b0: 005b lsls r3, r3, #1 + 80028b2: 4413 add r3, r2 + 80028b4: 009b lsls r3, r3, #2 + 80028b6: 440b add r3, r1 + 80028b8: 681b ldr r3, [r3, #0] + 80028ba: 687a ldr r2, [r7, #4] + 80028bc: 429a cmp r2, r3 + 80028be: d108 bne.n 80028d2 + 80028c0: 490a ldr r1, [pc, #40] ; (80028ec ) + 80028c2: 68fa ldr r2, [r7, #12] + 80028c4: 4613 mov r3, r2 + 80028c6: 005b lsls r3, r3, #1 + 80028c8: 4413 add r3, r2 + 80028ca: 009b lsls r3, r3, #2 + 80028cc: 440b add r3, r1 + 80028ce: 2200 movs r2, #0 + 80028d0: 601a str r2, [r3, #0] + for (i = 0; i < _FS_LOCK; i++) { + 80028d2: 68fb ldr r3, [r7, #12] + 80028d4: 3301 adds r3, #1 + 80028d6: 60fb str r3, [r7, #12] + 80028d8: 68fb ldr r3, [r7, #12] + 80028da: 2b01 cmp r3, #1 + 80028dc: d9e5 bls.n 80028aa + } +} + 80028de: bf00 nop + 80028e0: bf00 nop + 80028e2: 3714 adds r7, #20 + 80028e4: 46bd mov sp, r7 + 80028e6: bc80 pop {r7} + 80028e8: 4770 bx lr + 80028ea: bf00 nop + 80028ec: 200000b4 .word 0x200000b4 + +080028f0 : +#if !_FS_READONLY +static +FRESULT sync_window ( + FATFS* fs /* File system object */ +) +{ + 80028f0: b580 push {r7, lr} + 80028f2: b086 sub sp, #24 + 80028f4: af00 add r7, sp, #0 + 80028f6: 6078 str r0, [r7, #4] + DWORD wsect; + UINT nf; + FRESULT res = FR_OK; + 80028f8: 2300 movs r3, #0 + 80028fa: 73fb strb r3, [r7, #15] + + + if (fs->wflag) { /* Write back the sector if it is dirty */ + 80028fc: 687b ldr r3, [r7, #4] + 80028fe: f893 3204 ldrb.w r3, [r3, #516] ; 0x204 + 8002902: 2b00 cmp r3, #0 + 8002904: d038 beq.n 8002978 + wsect = fs->winsect; /* Current sector number */ + 8002906: 687b ldr r3, [r7, #4] + 8002908: f8d3 322c ldr.w r3, [r3, #556] ; 0x22c + 800290c: 617b str r3, [r7, #20] + if (disk_write(fs->drv, fs->win.d8, wsect, 1) != RES_OK) { + 800290e: 687b ldr r3, [r7, #4] + 8002910: f893 0201 ldrb.w r0, [r3, #513] ; 0x201 + 8002914: 6879 ldr r1, [r7, #4] + 8002916: 2301 movs r3, #1 + 8002918: 697a ldr r2, [r7, #20] + 800291a: f7ff fde1 bl 80024e0 + 800291e: 4603 mov r3, r0 + 8002920: 2b00 cmp r3, #0 + 8002922: d002 beq.n 800292a + res = FR_DISK_ERR; + 8002924: 2301 movs r3, #1 + 8002926: 73fb strb r3, [r7, #15] + 8002928: e026 b.n 8002978 + } else { + fs->wflag = 0; + 800292a: 687b ldr r3, [r7, #4] + 800292c: 2200 movs r2, #0 + 800292e: f883 2204 strb.w r2, [r3, #516] ; 0x204 + if (wsect - fs->fatbase < fs->fsize) { /* Is it in the FAT area? */ + 8002932: 687b ldr r3, [r7, #4] + 8002934: f8d3 3220 ldr.w r3, [r3, #544] ; 0x220 + 8002938: 697a ldr r2, [r7, #20] + 800293a: 1ad2 subs r2, r2, r3 + 800293c: 687b ldr r3, [r7, #4] + 800293e: f8d3 3218 ldr.w r3, [r3, #536] ; 0x218 + 8002942: 429a cmp r2, r3 + 8002944: d218 bcs.n 8002978 + for (nf = fs->n_fats; nf >= 2; nf--) { /* Reflect the change to all FAT copies */ + 8002946: 687b ldr r3, [r7, #4] + 8002948: f893 3203 ldrb.w r3, [r3, #515] ; 0x203 + 800294c: 613b str r3, [r7, #16] + 800294e: e010 b.n 8002972 + wsect += fs->fsize; + 8002950: 687b ldr r3, [r7, #4] + 8002952: f8d3 3218 ldr.w r3, [r3, #536] ; 0x218 + 8002956: 697a ldr r2, [r7, #20] + 8002958: 4413 add r3, r2 + 800295a: 617b str r3, [r7, #20] + disk_write(fs->drv, fs->win.d8, wsect, 1); + 800295c: 687b ldr r3, [r7, #4] + 800295e: f893 0201 ldrb.w r0, [r3, #513] ; 0x201 + 8002962: 6879 ldr r1, [r7, #4] + 8002964: 2301 movs r3, #1 + 8002966: 697a ldr r2, [r7, #20] + 8002968: f7ff fdba bl 80024e0 + for (nf = fs->n_fats; nf >= 2; nf--) { /* Reflect the change to all FAT copies */ + 800296c: 693b ldr r3, [r7, #16] + 800296e: 3b01 subs r3, #1 + 8002970: 613b str r3, [r7, #16] + 8002972: 693b ldr r3, [r7, #16] + 8002974: 2b01 cmp r3, #1 + 8002976: d8eb bhi.n 8002950 + } + } + } + } + return res; + 8002978: 7bfb ldrb r3, [r7, #15] +} + 800297a: 4618 mov r0, r3 + 800297c: 3718 adds r7, #24 + 800297e: 46bd mov sp, r7 + 8002980: bd80 pop {r7, pc} + +08002982 : +static +FRESULT move_window ( + FATFS* fs, /* File system object */ + DWORD sector /* Sector number to make appearance in the fs->win[].d8 */ +) +{ + 8002982: b580 push {r7, lr} + 8002984: b084 sub sp, #16 + 8002986: af00 add r7, sp, #0 + 8002988: 6078 str r0, [r7, #4] + 800298a: 6039 str r1, [r7, #0] + FRESULT res = FR_OK; + 800298c: 2300 movs r3, #0 + 800298e: 73fb strb r3, [r7, #15] + + + if (sector != fs->winsect) { /* Window offset changed? */ + 8002990: 687b ldr r3, [r7, #4] + 8002992: f8d3 322c ldr.w r3, [r3, #556] ; 0x22c + 8002996: 683a ldr r2, [r7, #0] + 8002998: 429a cmp r2, r3 + 800299a: d01b beq.n 80029d4 +#if !_FS_READONLY + res = sync_window(fs); /* Write-back changes */ + 800299c: 6878 ldr r0, [r7, #4] + 800299e: f7ff ffa7 bl 80028f0 + 80029a2: 4603 mov r3, r0 + 80029a4: 73fb strb r3, [r7, #15] +#endif + if (res == FR_OK) { /* Fill sector window with new data */ + 80029a6: 7bfb ldrb r3, [r7, #15] + 80029a8: 2b00 cmp r3, #0 + 80029aa: d113 bne.n 80029d4 + if (disk_read(fs->drv, fs->win.d8, sector, 1) != RES_OK) { + 80029ac: 687b ldr r3, [r7, #4] + 80029ae: f893 0201 ldrb.w r0, [r3, #513] ; 0x201 + 80029b2: 6879 ldr r1, [r7, #4] + 80029b4: 2301 movs r3, #1 + 80029b6: 683a ldr r2, [r7, #0] + 80029b8: f7ff fd72 bl 80024a0 + 80029bc: 4603 mov r3, r0 + 80029be: 2b00 cmp r3, #0 + 80029c0: d004 beq.n 80029cc + sector = 0xFFFFFFFF; /* Invalidate window if data is not reliable */ + 80029c2: f04f 33ff mov.w r3, #4294967295 + 80029c6: 603b str r3, [r7, #0] + res = FR_DISK_ERR; + 80029c8: 2301 movs r3, #1 + 80029ca: 73fb strb r3, [r7, #15] + } + fs->winsect = sector; + 80029cc: 687b ldr r3, [r7, #4] + 80029ce: 683a ldr r2, [r7, #0] + 80029d0: f8c3 222c str.w r2, [r3, #556] ; 0x22c + } + } + return res; + 80029d4: 7bfb ldrb r3, [r7, #15] +} + 80029d6: 4618 mov r0, r3 + 80029d8: 3710 adds r7, #16 + 80029da: 46bd mov sp, r7 + 80029dc: bd80 pop {r7, pc} + +080029de : + +DWORD clust2sect ( /* !=0: Sector number, 0: Failed - invalid cluster# */ + FATFS* fs, /* File system object */ + DWORD clst /* Cluster# to be converted */ +) +{ + 80029de: b480 push {r7} + 80029e0: b083 sub sp, #12 + 80029e2: af00 add r7, sp, #0 + 80029e4: 6078 str r0, [r7, #4] + 80029e6: 6039 str r1, [r7, #0] + clst -= 2; + 80029e8: 683b ldr r3, [r7, #0] + 80029ea: 3b02 subs r3, #2 + 80029ec: 603b str r3, [r7, #0] + if (clst >= fs->n_fatent - 2) return 0; /* Invalid cluster# */ + 80029ee: 687b ldr r3, [r7, #4] + 80029f0: f8d3 3214 ldr.w r3, [r3, #532] ; 0x214 + 80029f4: 3b02 subs r3, #2 + 80029f6: 683a ldr r2, [r7, #0] + 80029f8: 429a cmp r2, r3 + 80029fa: d301 bcc.n 8002a00 + 80029fc: 2300 movs r3, #0 + 80029fe: e00a b.n 8002a16 + return clst * fs->csize + fs->database; + 8002a00: 687b ldr r3, [r7, #4] + 8002a02: f893 3202 ldrb.w r3, [r3, #514] ; 0x202 + 8002a06: 461a mov r2, r3 + 8002a08: 683b ldr r3, [r7, #0] + 8002a0a: fb03 f202 mul.w r2, r3, r2 + 8002a0e: 687b ldr r3, [r7, #4] + 8002a10: f8d3 3228 ldr.w r3, [r3, #552] ; 0x228 + 8002a14: 4413 add r3, r2 +} + 8002a16: 4618 mov r0, r3 + 8002a18: 370c adds r7, #12 + 8002a1a: 46bd mov sp, r7 + 8002a1c: bc80 pop {r7} + 8002a1e: 4770 bx lr + +08002a20 : + +DWORD get_fat ( /* 0xFFFFFFFF:Disk error, 1:Internal error, 2..0x0FFFFFFF:Cluster status */ + FATFS* fs, /* File system object */ + DWORD clst /* FAT index number (cluster number) to get the value */ +) +{ + 8002a20: b580 push {r7, lr} + 8002a22: b086 sub sp, #24 + 8002a24: af00 add r7, sp, #0 + 8002a26: 6078 str r0, [r7, #4] + 8002a28: 6039 str r1, [r7, #0] + UINT wc, bc; + BYTE *p; + DWORD val; + + + if (clst < 2 || clst >= fs->n_fatent) { /* Check range */ + 8002a2a: 683b ldr r3, [r7, #0] + 8002a2c: 2b01 cmp r3, #1 + 8002a2e: d905 bls.n 8002a3c + 8002a30: 687b ldr r3, [r7, #4] + 8002a32: f8d3 3214 ldr.w r3, [r3, #532] ; 0x214 + 8002a36: 683a ldr r2, [r7, #0] + 8002a38: 429a cmp r2, r3 + 8002a3a: d302 bcc.n 8002a42 + val = 1; /* Internal error */ + 8002a3c: 2301 movs r3, #1 + 8002a3e: 617b str r3, [r7, #20] + 8002a40: e0a3 b.n 8002b8a + + } else { + val = 0xFFFFFFFF; /* Default value falls on disk error */ + 8002a42: f04f 33ff mov.w r3, #4294967295 + 8002a46: 617b str r3, [r7, #20] + + switch (fs->fs_type) { + 8002a48: 687b ldr r3, [r7, #4] + 8002a4a: f893 3200 ldrb.w r3, [r3, #512] ; 0x200 + 8002a4e: 2b03 cmp r3, #3 + 8002a50: d068 beq.n 8002b24 + 8002a52: 2b03 cmp r3, #3 + 8002a54: f300 808f bgt.w 8002b76 + 8002a58: 2b01 cmp r3, #1 + 8002a5a: d002 beq.n 8002a62 + 8002a5c: 2b02 cmp r3, #2 + 8002a5e: d040 beq.n 8002ae2 + 8002a60: e089 b.n 8002b76 + case FS_FAT12 : + bc = (UINT)clst; bc += bc / 2; + 8002a62: 683b ldr r3, [r7, #0] + 8002a64: 60fb str r3, [r7, #12] + 8002a66: 68fb ldr r3, [r7, #12] + 8002a68: 085b lsrs r3, r3, #1 + 8002a6a: 68fa ldr r2, [r7, #12] + 8002a6c: 4413 add r3, r2 + 8002a6e: 60fb str r3, [r7, #12] + if (move_window(fs, fs->fatbase + (bc / SS(fs))) != FR_OK) break; + 8002a70: 687b ldr r3, [r7, #4] + 8002a72: f8d3 2220 ldr.w r2, [r3, #544] ; 0x220 + 8002a76: 68fb ldr r3, [r7, #12] + 8002a78: 0a5b lsrs r3, r3, #9 + 8002a7a: 4413 add r3, r2 + 8002a7c: 4619 mov r1, r3 + 8002a7e: 6878 ldr r0, [r7, #4] + 8002a80: f7ff ff7f bl 8002982 + 8002a84: 4603 mov r3, r0 + 8002a86: 2b00 cmp r3, #0 + 8002a88: d178 bne.n 8002b7c + wc = fs->win.d8[bc++ % SS(fs)]; + 8002a8a: 68fb ldr r3, [r7, #12] + 8002a8c: 1c5a adds r2, r3, #1 + 8002a8e: 60fa str r2, [r7, #12] + 8002a90: f3c3 0308 ubfx r3, r3, #0, #9 + 8002a94: 687a ldr r2, [r7, #4] + 8002a96: 5cd3 ldrb r3, [r2, r3] + 8002a98: 60bb str r3, [r7, #8] + if (move_window(fs, fs->fatbase + (bc / SS(fs))) != FR_OK) break; + 8002a9a: 687b ldr r3, [r7, #4] + 8002a9c: f8d3 2220 ldr.w r2, [r3, #544] ; 0x220 + 8002aa0: 68fb ldr r3, [r7, #12] + 8002aa2: 0a5b lsrs r3, r3, #9 + 8002aa4: 4413 add r3, r2 + 8002aa6: 4619 mov r1, r3 + 8002aa8: 6878 ldr r0, [r7, #4] + 8002aaa: f7ff ff6a bl 8002982 + 8002aae: 4603 mov r3, r0 + 8002ab0: 2b00 cmp r3, #0 + 8002ab2: d165 bne.n 8002b80 + wc |= fs->win.d8[bc % SS(fs)] << 8; + 8002ab4: 68fb ldr r3, [r7, #12] + 8002ab6: f3c3 0308 ubfx r3, r3, #0, #9 + 8002aba: 687a ldr r2, [r7, #4] + 8002abc: 5cd3 ldrb r3, [r2, r3] + 8002abe: 021b lsls r3, r3, #8 + 8002ac0: 461a mov r2, r3 + 8002ac2: 68bb ldr r3, [r7, #8] + 8002ac4: 4313 orrs r3, r2 + 8002ac6: 60bb str r3, [r7, #8] + val = clst & 1 ? wc >> 4 : (wc & 0xFFF); + 8002ac8: 683b ldr r3, [r7, #0] + 8002aca: f003 0301 and.w r3, r3, #1 + 8002ace: 2b00 cmp r3, #0 + 8002ad0: d002 beq.n 8002ad8 + 8002ad2: 68bb ldr r3, [r7, #8] + 8002ad4: 091b lsrs r3, r3, #4 + 8002ad6: e002 b.n 8002ade + 8002ad8: 68bb ldr r3, [r7, #8] + 8002ada: f3c3 030b ubfx r3, r3, #0, #12 + 8002ade: 617b str r3, [r7, #20] + break; + 8002ae0: e053 b.n 8002b8a + + case FS_FAT16 : + if (move_window(fs, fs->fatbase + (clst / (SS(fs) / 2))) != FR_OK) break; + 8002ae2: 687b ldr r3, [r7, #4] + 8002ae4: f8d3 2220 ldr.w r2, [r3, #544] ; 0x220 + 8002ae8: 683b ldr r3, [r7, #0] + 8002aea: 0a1b lsrs r3, r3, #8 + 8002aec: 4413 add r3, r2 + 8002aee: 4619 mov r1, r3 + 8002af0: 6878 ldr r0, [r7, #4] + 8002af2: f7ff ff46 bl 8002982 + 8002af6: 4603 mov r3, r0 + 8002af8: 2b00 cmp r3, #0 + 8002afa: d143 bne.n 8002b84 + p = &fs->win.d8[clst * 2 % SS(fs)]; + 8002afc: 683b ldr r3, [r7, #0] + 8002afe: 005b lsls r3, r3, #1 + 8002b00: f403 73ff and.w r3, r3, #510 ; 0x1fe + 8002b04: 687a ldr r2, [r7, #4] + 8002b06: 4413 add r3, r2 + 8002b08: 613b str r3, [r7, #16] + val = LD_WORD(p); + 8002b0a: 693b ldr r3, [r7, #16] + 8002b0c: 3301 adds r3, #1 + 8002b0e: 781b ldrb r3, [r3, #0] + 8002b10: 021b lsls r3, r3, #8 + 8002b12: b21a sxth r2, r3 + 8002b14: 693b ldr r3, [r7, #16] + 8002b16: 781b ldrb r3, [r3, #0] + 8002b18: b21b sxth r3, r3 + 8002b1a: 4313 orrs r3, r2 + 8002b1c: b21b sxth r3, r3 + 8002b1e: b29b uxth r3, r3 + 8002b20: 617b str r3, [r7, #20] + break; + 8002b22: e032 b.n 8002b8a + + case FS_FAT32 : + if (move_window(fs, fs->fatbase + (clst / (SS(fs) / 4))) != FR_OK) break; + 8002b24: 687b ldr r3, [r7, #4] + 8002b26: f8d3 2220 ldr.w r2, [r3, #544] ; 0x220 + 8002b2a: 683b ldr r3, [r7, #0] + 8002b2c: 09db lsrs r3, r3, #7 + 8002b2e: 4413 add r3, r2 + 8002b30: 4619 mov r1, r3 + 8002b32: 6878 ldr r0, [r7, #4] + 8002b34: f7ff ff25 bl 8002982 + 8002b38: 4603 mov r3, r0 + 8002b3a: 2b00 cmp r3, #0 + 8002b3c: d124 bne.n 8002b88 + p = &fs->win.d8[clst * 4 % SS(fs)]; + 8002b3e: 683b ldr r3, [r7, #0] + 8002b40: 009b lsls r3, r3, #2 + 8002b42: f403 73fe and.w r3, r3, #508 ; 0x1fc + 8002b46: 687a ldr r2, [r7, #4] + 8002b48: 4413 add r3, r2 + 8002b4a: 613b str r3, [r7, #16] + val = LD_DWORD(p) & 0x0FFFFFFF; + 8002b4c: 693b ldr r3, [r7, #16] + 8002b4e: 3303 adds r3, #3 + 8002b50: 781b ldrb r3, [r3, #0] + 8002b52: 061a lsls r2, r3, #24 + 8002b54: 693b ldr r3, [r7, #16] + 8002b56: 3302 adds r3, #2 + 8002b58: 781b ldrb r3, [r3, #0] + 8002b5a: 041b lsls r3, r3, #16 + 8002b5c: 4313 orrs r3, r2 + 8002b5e: 693a ldr r2, [r7, #16] + 8002b60: 3201 adds r2, #1 + 8002b62: 7812 ldrb r2, [r2, #0] + 8002b64: 0212 lsls r2, r2, #8 + 8002b66: 4313 orrs r3, r2 + 8002b68: 693a ldr r2, [r7, #16] + 8002b6a: 7812 ldrb r2, [r2, #0] + 8002b6c: 4313 orrs r3, r2 + 8002b6e: f023 4370 bic.w r3, r3, #4026531840 ; 0xf0000000 + 8002b72: 617b str r3, [r7, #20] + break; + 8002b74: e009 b.n 8002b8a + + default: + val = 1; /* Internal error */ + 8002b76: 2301 movs r3, #1 + 8002b78: 617b str r3, [r7, #20] + 8002b7a: e006 b.n 8002b8a + if (move_window(fs, fs->fatbase + (bc / SS(fs))) != FR_OK) break; + 8002b7c: bf00 nop + 8002b7e: e004 b.n 8002b8a + if (move_window(fs, fs->fatbase + (bc / SS(fs))) != FR_OK) break; + 8002b80: bf00 nop + 8002b82: e002 b.n 8002b8a + if (move_window(fs, fs->fatbase + (clst / (SS(fs) / 2))) != FR_OK) break; + 8002b84: bf00 nop + 8002b86: e000 b.n 8002b8a + if (move_window(fs, fs->fatbase + (clst / (SS(fs) / 4))) != FR_OK) break; + 8002b88: bf00 nop + } + } + + return val; + 8002b8a: 697b ldr r3, [r7, #20] +} + 8002b8c: 4618 mov r0, r3 + 8002b8e: 3718 adds r7, #24 + 8002b90: 46bd mov sp, r7 + 8002b92: bd80 pop {r7, pc} + +08002b94 : +FRESULT put_fat ( + FATFS* fs, /* File system object */ + DWORD clst, /* FAT index number (cluster number) to be changed */ + DWORD val /* New value to be set to the entry */ +) +{ + 8002b94: b580 push {r7, lr} + 8002b96: b088 sub sp, #32 + 8002b98: af00 add r7, sp, #0 + 8002b9a: 60f8 str r0, [r7, #12] + 8002b9c: 60b9 str r1, [r7, #8] + 8002b9e: 607a str r2, [r7, #4] + UINT bc; + BYTE *p; + FRESULT res; + + + if (clst < 2 || clst >= fs->n_fatent) { /* Check range */ + 8002ba0: 68bb ldr r3, [r7, #8] + 8002ba2: 2b01 cmp r3, #1 + 8002ba4: d905 bls.n 8002bb2 + 8002ba6: 68fb ldr r3, [r7, #12] + 8002ba8: f8d3 3214 ldr.w r3, [r3, #532] ; 0x214 + 8002bac: 68ba ldr r2, [r7, #8] + 8002bae: 429a cmp r2, r3 + 8002bb0: d302 bcc.n 8002bb8 + res = FR_INT_ERR; + 8002bb2: 2302 movs r3, #2 + 8002bb4: 77fb strb r3, [r7, #31] + 8002bb6: e0f6 b.n 8002da6 + + } else { + switch (fs->fs_type) { + 8002bb8: 68fb ldr r3, [r7, #12] + 8002bba: f893 3200 ldrb.w r3, [r3, #512] ; 0x200 + 8002bbe: 2b03 cmp r3, #3 + 8002bc0: f000 809e beq.w 8002d00 + 8002bc4: 2b03 cmp r3, #3 + 8002bc6: f300 80e4 bgt.w 8002d92 + 8002bca: 2b01 cmp r3, #1 + 8002bcc: d002 beq.n 8002bd4 + 8002bce: 2b02 cmp r3, #2 + 8002bd0: d06f beq.n 8002cb2 + 8002bd2: e0de b.n 8002d92 + case FS_FAT12 : + bc = (UINT)clst; bc += bc / 2; + 8002bd4: 68bb ldr r3, [r7, #8] + 8002bd6: 617b str r3, [r7, #20] + 8002bd8: 697b ldr r3, [r7, #20] + 8002bda: 085b lsrs r3, r3, #1 + 8002bdc: 697a ldr r2, [r7, #20] + 8002bde: 4413 add r3, r2 + 8002be0: 617b str r3, [r7, #20] + res = move_window(fs, fs->fatbase + (bc / SS(fs))); + 8002be2: 68fb ldr r3, [r7, #12] + 8002be4: f8d3 2220 ldr.w r2, [r3, #544] ; 0x220 + 8002be8: 697b ldr r3, [r7, #20] + 8002bea: 0a5b lsrs r3, r3, #9 + 8002bec: 4413 add r3, r2 + 8002bee: 4619 mov r1, r3 + 8002bf0: 68f8 ldr r0, [r7, #12] + 8002bf2: f7ff fec6 bl 8002982 + 8002bf6: 4603 mov r3, r0 + 8002bf8: 77fb strb r3, [r7, #31] + if (res != FR_OK) break; + 8002bfa: 7ffb ldrb r3, [r7, #31] + 8002bfc: 2b00 cmp r3, #0 + 8002bfe: f040 80cb bne.w 8002d98 + p = &fs->win.d8[bc++ % SS(fs)]; + 8002c02: 697b ldr r3, [r7, #20] + 8002c04: 1c5a adds r2, r3, #1 + 8002c06: 617a str r2, [r7, #20] + 8002c08: f3c3 0308 ubfx r3, r3, #0, #9 + 8002c0c: 68fa ldr r2, [r7, #12] + 8002c0e: 4413 add r3, r2 + 8002c10: 61bb str r3, [r7, #24] + *p = (clst & 1) ? ((*p & 0x0F) | ((BYTE)val << 4)) : (BYTE)val; + 8002c12: 68bb ldr r3, [r7, #8] + 8002c14: f003 0301 and.w r3, r3, #1 + 8002c18: 2b00 cmp r3, #0 + 8002c1a: d00d beq.n 8002c38 + 8002c1c: 69bb ldr r3, [r7, #24] + 8002c1e: 781b ldrb r3, [r3, #0] + 8002c20: b25b sxtb r3, r3 + 8002c22: f003 030f and.w r3, r3, #15 + 8002c26: b25a sxtb r2, r3 + 8002c28: 687b ldr r3, [r7, #4] + 8002c2a: b2db uxtb r3, r3 + 8002c2c: 011b lsls r3, r3, #4 + 8002c2e: b25b sxtb r3, r3 + 8002c30: 4313 orrs r3, r2 + 8002c32: b25b sxtb r3, r3 + 8002c34: b2db uxtb r3, r3 + 8002c36: e001 b.n 8002c3c + 8002c38: 687b ldr r3, [r7, #4] + 8002c3a: b2db uxtb r3, r3 + 8002c3c: 69ba ldr r2, [r7, #24] + 8002c3e: 7013 strb r3, [r2, #0] + fs->wflag = 1; + 8002c40: 68fb ldr r3, [r7, #12] + 8002c42: 2201 movs r2, #1 + 8002c44: f883 2204 strb.w r2, [r3, #516] ; 0x204 + res = move_window(fs, fs->fatbase + (bc / SS(fs))); + 8002c48: 68fb ldr r3, [r7, #12] + 8002c4a: f8d3 2220 ldr.w r2, [r3, #544] ; 0x220 + 8002c4e: 697b ldr r3, [r7, #20] + 8002c50: 0a5b lsrs r3, r3, #9 + 8002c52: 4413 add r3, r2 + 8002c54: 4619 mov r1, r3 + 8002c56: 68f8 ldr r0, [r7, #12] + 8002c58: f7ff fe93 bl 8002982 + 8002c5c: 4603 mov r3, r0 + 8002c5e: 77fb strb r3, [r7, #31] + if (res != FR_OK) break; + 8002c60: 7ffb ldrb r3, [r7, #31] + 8002c62: 2b00 cmp r3, #0 + 8002c64: f040 809a bne.w 8002d9c + p = &fs->win.d8[bc % SS(fs)]; + 8002c68: 697b ldr r3, [r7, #20] + 8002c6a: f3c3 0308 ubfx r3, r3, #0, #9 + 8002c6e: 68fa ldr r2, [r7, #12] + 8002c70: 4413 add r3, r2 + 8002c72: 61bb str r3, [r7, #24] + *p = (clst & 1) ? (BYTE)(val >> 4) : ((*p & 0xF0) | ((BYTE)(val >> 8) & 0x0F)); + 8002c74: 68bb ldr r3, [r7, #8] + 8002c76: f003 0301 and.w r3, r3, #1 + 8002c7a: 2b00 cmp r3, #0 + 8002c7c: d003 beq.n 8002c86 + 8002c7e: 687b ldr r3, [r7, #4] + 8002c80: 091b lsrs r3, r3, #4 + 8002c82: b2db uxtb r3, r3 + 8002c84: e00e b.n 8002ca4 + 8002c86: 69bb ldr r3, [r7, #24] + 8002c88: 781b ldrb r3, [r3, #0] + 8002c8a: b25b sxtb r3, r3 + 8002c8c: f023 030f bic.w r3, r3, #15 + 8002c90: b25a sxtb r2, r3 + 8002c92: 687b ldr r3, [r7, #4] + 8002c94: 0a1b lsrs r3, r3, #8 + 8002c96: b25b sxtb r3, r3 + 8002c98: f003 030f and.w r3, r3, #15 + 8002c9c: b25b sxtb r3, r3 + 8002c9e: 4313 orrs r3, r2 + 8002ca0: b25b sxtb r3, r3 + 8002ca2: b2db uxtb r3, r3 + 8002ca4: 69ba ldr r2, [r7, #24] + 8002ca6: 7013 strb r3, [r2, #0] + fs->wflag = 1; + 8002ca8: 68fb ldr r3, [r7, #12] + 8002caa: 2201 movs r2, #1 + 8002cac: f883 2204 strb.w r2, [r3, #516] ; 0x204 + break; + 8002cb0: e079 b.n 8002da6 + + case FS_FAT16 : + res = move_window(fs, fs->fatbase + (clst / (SS(fs) / 2))); + 8002cb2: 68fb ldr r3, [r7, #12] + 8002cb4: f8d3 2220 ldr.w r2, [r3, #544] ; 0x220 + 8002cb8: 68bb ldr r3, [r7, #8] + 8002cba: 0a1b lsrs r3, r3, #8 + 8002cbc: 4413 add r3, r2 + 8002cbe: 4619 mov r1, r3 + 8002cc0: 68f8 ldr r0, [r7, #12] + 8002cc2: f7ff fe5e bl 8002982 + 8002cc6: 4603 mov r3, r0 + 8002cc8: 77fb strb r3, [r7, #31] + if (res != FR_OK) break; + 8002cca: 7ffb ldrb r3, [r7, #31] + 8002ccc: 2b00 cmp r3, #0 + 8002cce: d167 bne.n 8002da0 + p = &fs->win.d8[clst * 2 % SS(fs)]; + 8002cd0: 68bb ldr r3, [r7, #8] + 8002cd2: 005b lsls r3, r3, #1 + 8002cd4: f403 73ff and.w r3, r3, #510 ; 0x1fe + 8002cd8: 68fa ldr r2, [r7, #12] + 8002cda: 4413 add r3, r2 + 8002cdc: 61bb str r3, [r7, #24] + ST_WORD(p, (WORD)val); + 8002cde: 687b ldr r3, [r7, #4] + 8002ce0: b2da uxtb r2, r3 + 8002ce2: 69bb ldr r3, [r7, #24] + 8002ce4: 701a strb r2, [r3, #0] + 8002ce6: 687b ldr r3, [r7, #4] + 8002ce8: b29b uxth r3, r3 + 8002cea: 0a1b lsrs r3, r3, #8 + 8002cec: b29a uxth r2, r3 + 8002cee: 69bb ldr r3, [r7, #24] + 8002cf0: 3301 adds r3, #1 + 8002cf2: b2d2 uxtb r2, r2 + 8002cf4: 701a strb r2, [r3, #0] + fs->wflag = 1; + 8002cf6: 68fb ldr r3, [r7, #12] + 8002cf8: 2201 movs r2, #1 + 8002cfa: f883 2204 strb.w r2, [r3, #516] ; 0x204 + break; + 8002cfe: e052 b.n 8002da6 + + case FS_FAT32 : + res = move_window(fs, fs->fatbase + (clst / (SS(fs) / 4))); + 8002d00: 68fb ldr r3, [r7, #12] + 8002d02: f8d3 2220 ldr.w r2, [r3, #544] ; 0x220 + 8002d06: 68bb ldr r3, [r7, #8] + 8002d08: 09db lsrs r3, r3, #7 + 8002d0a: 4413 add r3, r2 + 8002d0c: 4619 mov r1, r3 + 8002d0e: 68f8 ldr r0, [r7, #12] + 8002d10: f7ff fe37 bl 8002982 + 8002d14: 4603 mov r3, r0 + 8002d16: 77fb strb r3, [r7, #31] + if (res != FR_OK) break; + 8002d18: 7ffb ldrb r3, [r7, #31] + 8002d1a: 2b00 cmp r3, #0 + 8002d1c: d142 bne.n 8002da4 + p = &fs->win.d8[clst * 4 % SS(fs)]; + 8002d1e: 68bb ldr r3, [r7, #8] + 8002d20: 009b lsls r3, r3, #2 + 8002d22: f403 73fe and.w r3, r3, #508 ; 0x1fc + 8002d26: 68fa ldr r2, [r7, #12] + 8002d28: 4413 add r3, r2 + 8002d2a: 61bb str r3, [r7, #24] + val |= LD_DWORD(p) & 0xF0000000; + 8002d2c: 69bb ldr r3, [r7, #24] + 8002d2e: 3303 adds r3, #3 + 8002d30: 781b ldrb r3, [r3, #0] + 8002d32: 061a lsls r2, r3, #24 + 8002d34: 69bb ldr r3, [r7, #24] + 8002d36: 3302 adds r3, #2 + 8002d38: 781b ldrb r3, [r3, #0] + 8002d3a: 041b lsls r3, r3, #16 + 8002d3c: 4313 orrs r3, r2 + 8002d3e: 69ba ldr r2, [r7, #24] + 8002d40: 3201 adds r2, #1 + 8002d42: 7812 ldrb r2, [r2, #0] + 8002d44: 0212 lsls r2, r2, #8 + 8002d46: 4313 orrs r3, r2 + 8002d48: 69ba ldr r2, [r7, #24] + 8002d4a: 7812 ldrb r2, [r2, #0] + 8002d4c: 4313 orrs r3, r2 + 8002d4e: f003 4370 and.w r3, r3, #4026531840 ; 0xf0000000 + 8002d52: 687a ldr r2, [r7, #4] + 8002d54: 4313 orrs r3, r2 + 8002d56: 607b str r3, [r7, #4] + ST_DWORD(p, val); + 8002d58: 687b ldr r3, [r7, #4] + 8002d5a: b2da uxtb r2, r3 + 8002d5c: 69bb ldr r3, [r7, #24] + 8002d5e: 701a strb r2, [r3, #0] + 8002d60: 687b ldr r3, [r7, #4] + 8002d62: b29b uxth r3, r3 + 8002d64: 0a1b lsrs r3, r3, #8 + 8002d66: b29a uxth r2, r3 + 8002d68: 69bb ldr r3, [r7, #24] + 8002d6a: 3301 adds r3, #1 + 8002d6c: b2d2 uxtb r2, r2 + 8002d6e: 701a strb r2, [r3, #0] + 8002d70: 687b ldr r3, [r7, #4] + 8002d72: 0c1a lsrs r2, r3, #16 + 8002d74: 69bb ldr r3, [r7, #24] + 8002d76: 3302 adds r3, #2 + 8002d78: b2d2 uxtb r2, r2 + 8002d7a: 701a strb r2, [r3, #0] + 8002d7c: 687b ldr r3, [r7, #4] + 8002d7e: 0e1a lsrs r2, r3, #24 + 8002d80: 69bb ldr r3, [r7, #24] + 8002d82: 3303 adds r3, #3 + 8002d84: b2d2 uxtb r2, r2 + 8002d86: 701a strb r2, [r3, #0] + fs->wflag = 1; + 8002d88: 68fb ldr r3, [r7, #12] + 8002d8a: 2201 movs r2, #1 + 8002d8c: f883 2204 strb.w r2, [r3, #516] ; 0x204 + break; + 8002d90: e009 b.n 8002da6 + + default : + res = FR_INT_ERR; + 8002d92: 2302 movs r3, #2 + 8002d94: 77fb strb r3, [r7, #31] + 8002d96: e006 b.n 8002da6 + if (res != FR_OK) break; + 8002d98: bf00 nop + 8002d9a: e004 b.n 8002da6 + if (res != FR_OK) break; + 8002d9c: bf00 nop + 8002d9e: e002 b.n 8002da6 + if (res != FR_OK) break; + 8002da0: bf00 nop + 8002da2: e000 b.n 8002da6 + if (res != FR_OK) break; + 8002da4: bf00 nop + } + } + + return res; + 8002da6: 7ffb ldrb r3, [r7, #31] +} + 8002da8: 4618 mov r0, r3 + 8002daa: 3720 adds r7, #32 + 8002dac: 46bd mov sp, r7 + 8002dae: bd80 pop {r7, pc} + +08002db0 : +static +FRESULT remove_chain ( + FATFS* fs, /* File system object */ + DWORD clst /* Cluster# to remove a chain from */ +) +{ + 8002db0: b580 push {r7, lr} + 8002db2: b084 sub sp, #16 + 8002db4: af00 add r7, sp, #0 + 8002db6: 6078 str r0, [r7, #4] + 8002db8: 6039 str r1, [r7, #0] + DWORD nxt; +#if _USE_TRIM + DWORD scl = clst, ecl = clst, rt[2]; +#endif + + if (clst < 2 || clst >= fs->n_fatent) { /* Check range */ + 8002dba: 683b ldr r3, [r7, #0] + 8002dbc: 2b01 cmp r3, #1 + 8002dbe: d905 bls.n 8002dcc + 8002dc0: 687b ldr r3, [r7, #4] + 8002dc2: f8d3 3214 ldr.w r3, [r3, #532] ; 0x214 + 8002dc6: 683a ldr r2, [r7, #0] + 8002dc8: 429a cmp r2, r3 + 8002dca: d302 bcc.n 8002dd2 + res = FR_INT_ERR; + 8002dcc: 2302 movs r3, #2 + 8002dce: 73fb strb r3, [r7, #15] + 8002dd0: e043 b.n 8002e5a + + } else { + res = FR_OK; + 8002dd2: 2300 movs r3, #0 + 8002dd4: 73fb strb r3, [r7, #15] + while (clst < fs->n_fatent) { /* Not a last link? */ + 8002dd6: e036 b.n 8002e46 + nxt = get_fat(fs, clst); /* Get cluster status */ + 8002dd8: 6839 ldr r1, [r7, #0] + 8002dda: 6878 ldr r0, [r7, #4] + 8002ddc: f7ff fe20 bl 8002a20 + 8002de0: 60b8 str r0, [r7, #8] + if (nxt == 0) break; /* Empty cluster? */ + 8002de2: 68bb ldr r3, [r7, #8] + 8002de4: 2b00 cmp r3, #0 + 8002de6: d035 beq.n 8002e54 + if (nxt == 1) { res = FR_INT_ERR; break; } /* Internal error? */ + 8002de8: 68bb ldr r3, [r7, #8] + 8002dea: 2b01 cmp r3, #1 + 8002dec: d102 bne.n 8002df4 + 8002dee: 2302 movs r3, #2 + 8002df0: 73fb strb r3, [r7, #15] + 8002df2: e032 b.n 8002e5a + if (nxt == 0xFFFFFFFF) { res = FR_DISK_ERR; break; } /* Disk error? */ + 8002df4: 68bb ldr r3, [r7, #8] + 8002df6: f1b3 3fff cmp.w r3, #4294967295 + 8002dfa: d102 bne.n 8002e02 + 8002dfc: 2301 movs r3, #1 + 8002dfe: 73fb strb r3, [r7, #15] + 8002e00: e02b b.n 8002e5a + res = put_fat(fs, clst, 0); /* Mark the cluster "empty" */ + 8002e02: 2200 movs r2, #0 + 8002e04: 6839 ldr r1, [r7, #0] + 8002e06: 6878 ldr r0, [r7, #4] + 8002e08: f7ff fec4 bl 8002b94 + 8002e0c: 4603 mov r3, r0 + 8002e0e: 73fb strb r3, [r7, #15] + if (res != FR_OK) break; + 8002e10: 7bfb ldrb r3, [r7, #15] + 8002e12: 2b00 cmp r3, #0 + 8002e14: d120 bne.n 8002e58 + if (fs->free_clust != 0xFFFFFFFF) { /* Update FSINFO */ + 8002e16: 687b ldr r3, [r7, #4] + 8002e18: f8d3 3210 ldr.w r3, [r3, #528] ; 0x210 + 8002e1c: f1b3 3fff cmp.w r3, #4294967295 + 8002e20: d00f beq.n 8002e42 + fs->free_clust++; + 8002e22: 687b ldr r3, [r7, #4] + 8002e24: f8d3 3210 ldr.w r3, [r3, #528] ; 0x210 + 8002e28: 1c5a adds r2, r3, #1 + 8002e2a: 687b ldr r3, [r7, #4] + 8002e2c: f8c3 2210 str.w r2, [r3, #528] ; 0x210 + fs->fsi_flag |= 1; + 8002e30: 687b ldr r3, [r7, #4] + 8002e32: f893 3205 ldrb.w r3, [r3, #517] ; 0x205 + 8002e36: f043 0301 orr.w r3, r3, #1 + 8002e3a: b2da uxtb r2, r3 + 8002e3c: 687b ldr r3, [r7, #4] + 8002e3e: f883 2205 strb.w r2, [r3, #517] ; 0x205 + rt[1] = clust2sect(fs, ecl) + fs->csize - 1; /* End sector */ + disk_ioctl(fs->drv, CTRL_TRIM, rt); /* Erase the block */ + scl = ecl = nxt; + } +#endif + clst = nxt; /* Next cluster */ + 8002e42: 68bb ldr r3, [r7, #8] + 8002e44: 603b str r3, [r7, #0] + while (clst < fs->n_fatent) { /* Not a last link? */ + 8002e46: 687b ldr r3, [r7, #4] + 8002e48: f8d3 3214 ldr.w r3, [r3, #532] ; 0x214 + 8002e4c: 683a ldr r2, [r7, #0] + 8002e4e: 429a cmp r2, r3 + 8002e50: d3c2 bcc.n 8002dd8 + 8002e52: e002 b.n 8002e5a + if (nxt == 0) break; /* Empty cluster? */ + 8002e54: bf00 nop + 8002e56: e000 b.n 8002e5a + if (res != FR_OK) break; + 8002e58: bf00 nop + } + } + + return res; + 8002e5a: 7bfb ldrb r3, [r7, #15] +} + 8002e5c: 4618 mov r0, r3 + 8002e5e: 3710 adds r7, #16 + 8002e60: 46bd mov sp, r7 + 8002e62: bd80 pop {r7, pc} + +08002e64 : +static +DWORD create_chain ( /* 0:No free cluster, 1:Internal error, 0xFFFFFFFF:Disk error, >=2:New cluster# */ + FATFS* fs, /* File system object */ + DWORD clst /* Cluster# to stretch. 0 means create a new chain. */ +) +{ + 8002e64: b580 push {r7, lr} + 8002e66: b086 sub sp, #24 + 8002e68: af00 add r7, sp, #0 + 8002e6a: 6078 str r0, [r7, #4] + 8002e6c: 6039 str r1, [r7, #0] + DWORD cs, ncl, scl; + FRESULT res; + + + if (clst == 0) { /* Create a new chain */ + 8002e6e: 683b ldr r3, [r7, #0] + 8002e70: 2b00 cmp r3, #0 + 8002e72: d10f bne.n 8002e94 + scl = fs->last_clust; /* Get suggested start point */ + 8002e74: 687b ldr r3, [r7, #4] + 8002e76: f8d3 320c ldr.w r3, [r3, #524] ; 0x20c + 8002e7a: 613b str r3, [r7, #16] + if (!scl || scl >= fs->n_fatent) scl = 1; + 8002e7c: 693b ldr r3, [r7, #16] + 8002e7e: 2b00 cmp r3, #0 + 8002e80: d005 beq.n 8002e8e + 8002e82: 687b ldr r3, [r7, #4] + 8002e84: f8d3 3214 ldr.w r3, [r3, #532] ; 0x214 + 8002e88: 693a ldr r2, [r7, #16] + 8002e8a: 429a cmp r2, r3 + 8002e8c: d31c bcc.n 8002ec8 + 8002e8e: 2301 movs r3, #1 + 8002e90: 613b str r3, [r7, #16] + 8002e92: e019 b.n 8002ec8 + } + else { /* Stretch the current chain */ + cs = get_fat(fs, clst); /* Check the cluster status */ + 8002e94: 6839 ldr r1, [r7, #0] + 8002e96: 6878 ldr r0, [r7, #4] + 8002e98: f7ff fdc2 bl 8002a20 + 8002e9c: 60b8 str r0, [r7, #8] + if (cs < 2) return 1; /* Invalid value */ + 8002e9e: 68bb ldr r3, [r7, #8] + 8002ea0: 2b01 cmp r3, #1 + 8002ea2: d801 bhi.n 8002ea8 + 8002ea4: 2301 movs r3, #1 + 8002ea6: e076 b.n 8002f96 + if (cs == 0xFFFFFFFF) return cs; /* A disk error occurred */ + 8002ea8: 68bb ldr r3, [r7, #8] + 8002eaa: f1b3 3fff cmp.w r3, #4294967295 + 8002eae: d101 bne.n 8002eb4 + 8002eb0: 68bb ldr r3, [r7, #8] + 8002eb2: e070 b.n 8002f96 + if (cs < fs->n_fatent) return cs; /* It is already followed by next cluster */ + 8002eb4: 687b ldr r3, [r7, #4] + 8002eb6: f8d3 3214 ldr.w r3, [r3, #532] ; 0x214 + 8002eba: 68ba ldr r2, [r7, #8] + 8002ebc: 429a cmp r2, r3 + 8002ebe: d201 bcs.n 8002ec4 + 8002ec0: 68bb ldr r3, [r7, #8] + 8002ec2: e068 b.n 8002f96 + scl = clst; + 8002ec4: 683b ldr r3, [r7, #0] + 8002ec6: 613b str r3, [r7, #16] + } + + ncl = scl; /* Start cluster */ + 8002ec8: 693b ldr r3, [r7, #16] + 8002eca: 617b str r3, [r7, #20] + for (;;) { + ncl++; /* Next cluster */ + 8002ecc: 697b ldr r3, [r7, #20] + 8002ece: 3301 adds r3, #1 + 8002ed0: 617b str r3, [r7, #20] + if (ncl >= fs->n_fatent) { /* Check wrap around */ + 8002ed2: 687b ldr r3, [r7, #4] + 8002ed4: f8d3 3214 ldr.w r3, [r3, #532] ; 0x214 + 8002ed8: 697a ldr r2, [r7, #20] + 8002eda: 429a cmp r2, r3 + 8002edc: d307 bcc.n 8002eee + ncl = 2; + 8002ede: 2302 movs r3, #2 + 8002ee0: 617b str r3, [r7, #20] + if (ncl > scl) return 0; /* No free cluster */ + 8002ee2: 697a ldr r2, [r7, #20] + 8002ee4: 693b ldr r3, [r7, #16] + 8002ee6: 429a cmp r2, r3 + 8002ee8: d901 bls.n 8002eee + 8002eea: 2300 movs r3, #0 + 8002eec: e053 b.n 8002f96 + } + cs = get_fat(fs, ncl); /* Get the cluster status */ + 8002eee: 6979 ldr r1, [r7, #20] + 8002ef0: 6878 ldr r0, [r7, #4] + 8002ef2: f7ff fd95 bl 8002a20 + 8002ef6: 60b8 str r0, [r7, #8] + if (cs == 0) break; /* Found a free cluster */ + 8002ef8: 68bb ldr r3, [r7, #8] + 8002efa: 2b00 cmp r3, #0 + 8002efc: d00e beq.n 8002f1c + if (cs == 0xFFFFFFFF || cs == 1)/* An error occurred */ + 8002efe: 68bb ldr r3, [r7, #8] + 8002f00: f1b3 3fff cmp.w r3, #4294967295 + 8002f04: d002 beq.n 8002f0c + 8002f06: 68bb ldr r3, [r7, #8] + 8002f08: 2b01 cmp r3, #1 + 8002f0a: d101 bne.n 8002f10 + return cs; + 8002f0c: 68bb ldr r3, [r7, #8] + 8002f0e: e042 b.n 8002f96 + if (ncl == scl) return 0; /* No free cluster */ + 8002f10: 697a ldr r2, [r7, #20] + 8002f12: 693b ldr r3, [r7, #16] + 8002f14: 429a cmp r2, r3 + 8002f16: d1d9 bne.n 8002ecc + 8002f18: 2300 movs r3, #0 + 8002f1a: e03c b.n 8002f96 + if (cs == 0) break; /* Found a free cluster */ + 8002f1c: bf00 nop + } + + res = put_fat(fs, ncl, 0x0FFFFFFF); /* Mark the new cluster "last link" */ + 8002f1e: f06f 4270 mvn.w r2, #4026531840 ; 0xf0000000 + 8002f22: 6979 ldr r1, [r7, #20] + 8002f24: 6878 ldr r0, [r7, #4] + 8002f26: f7ff fe35 bl 8002b94 + 8002f2a: 4603 mov r3, r0 + 8002f2c: 73fb strb r3, [r7, #15] + if (res == FR_OK && clst != 0) { + 8002f2e: 7bfb ldrb r3, [r7, #15] + 8002f30: 2b00 cmp r3, #0 + 8002f32: d109 bne.n 8002f48 + 8002f34: 683b ldr r3, [r7, #0] + 8002f36: 2b00 cmp r3, #0 + 8002f38: d006 beq.n 8002f48 + res = put_fat(fs, clst, ncl); /* Link it to the previous one if needed */ + 8002f3a: 697a ldr r2, [r7, #20] + 8002f3c: 6839 ldr r1, [r7, #0] + 8002f3e: 6878 ldr r0, [r7, #4] + 8002f40: f7ff fe28 bl 8002b94 + 8002f44: 4603 mov r3, r0 + 8002f46: 73fb strb r3, [r7, #15] + } + if (res == FR_OK) { + 8002f48: 7bfb ldrb r3, [r7, #15] + 8002f4a: 2b00 cmp r3, #0 + 8002f4c: d11a bne.n 8002f84 + fs->last_clust = ncl; /* Update FSINFO */ + 8002f4e: 687b ldr r3, [r7, #4] + 8002f50: 697a ldr r2, [r7, #20] + 8002f52: f8c3 220c str.w r2, [r3, #524] ; 0x20c + if (fs->free_clust != 0xFFFFFFFF) { + 8002f56: 687b ldr r3, [r7, #4] + 8002f58: f8d3 3210 ldr.w r3, [r3, #528] ; 0x210 + 8002f5c: f1b3 3fff cmp.w r3, #4294967295 + 8002f60: d018 beq.n 8002f94 + fs->free_clust--; + 8002f62: 687b ldr r3, [r7, #4] + 8002f64: f8d3 3210 ldr.w r3, [r3, #528] ; 0x210 + 8002f68: 1e5a subs r2, r3, #1 + 8002f6a: 687b ldr r3, [r7, #4] + 8002f6c: f8c3 2210 str.w r2, [r3, #528] ; 0x210 + fs->fsi_flag |= 1; + 8002f70: 687b ldr r3, [r7, #4] + 8002f72: f893 3205 ldrb.w r3, [r3, #517] ; 0x205 + 8002f76: f043 0301 orr.w r3, r3, #1 + 8002f7a: b2da uxtb r2, r3 + 8002f7c: 687b ldr r3, [r7, #4] + 8002f7e: f883 2205 strb.w r2, [r3, #517] ; 0x205 + 8002f82: e007 b.n 8002f94 + } + } else { + ncl = (res == FR_DISK_ERR) ? 0xFFFFFFFF : 1; + 8002f84: 7bfb ldrb r3, [r7, #15] + 8002f86: 2b01 cmp r3, #1 + 8002f88: d102 bne.n 8002f90 + 8002f8a: f04f 33ff mov.w r3, #4294967295 + 8002f8e: e000 b.n 8002f92 + 8002f90: 2301 movs r3, #1 + 8002f92: 617b str r3, [r7, #20] + } + + return ncl; /* Return new cluster number or error code */ + 8002f94: 697b ldr r3, [r7, #20] +} + 8002f96: 4618 mov r0, r3 + 8002f98: 3718 adds r7, #24 + 8002f9a: 46bd mov sp, r7 + 8002f9c: bd80 pop {r7, pc} + +08002f9e : +static +DWORD clmt_clust ( /* <2:Error, >=2:Cluster number */ + FIL* fp, /* Pointer to the file object */ + DWORD ofs /* File offset to be converted to cluster# */ +) +{ + 8002f9e: b480 push {r7} + 8002fa0: b087 sub sp, #28 + 8002fa2: af00 add r7, sp, #0 + 8002fa4: 6078 str r0, [r7, #4] + 8002fa6: 6039 str r1, [r7, #0] + DWORD cl, ncl, *tbl; + + + tbl = fp->cltbl + 1; /* Top of CLMT */ + 8002fa8: 687b ldr r3, [r7, #4] + 8002faa: f8d3 3224 ldr.w r3, [r3, #548] ; 0x224 + 8002fae: 3304 adds r3, #4 + 8002fb0: 613b str r3, [r7, #16] + cl = ofs / SS(fp->fs) / fp->fs->csize; /* Cluster order from top of the file */ + 8002fb2: 683b ldr r3, [r7, #0] + 8002fb4: 0a5b lsrs r3, r3, #9 + 8002fb6: 687a ldr r2, [r7, #4] + 8002fb8: f8d2 2200 ldr.w r2, [r2, #512] ; 0x200 + 8002fbc: f892 2202 ldrb.w r2, [r2, #514] ; 0x202 + 8002fc0: fbb3 f3f2 udiv r3, r3, r2 + 8002fc4: 617b str r3, [r7, #20] + for (;;) { + ncl = *tbl++; /* Number of cluters in the fragment */ + 8002fc6: 693b ldr r3, [r7, #16] + 8002fc8: 1d1a adds r2, r3, #4 + 8002fca: 613a str r2, [r7, #16] + 8002fcc: 681b ldr r3, [r3, #0] + 8002fce: 60fb str r3, [r7, #12] + if (!ncl) return 0; /* End of table? (error) */ + 8002fd0: 68fb ldr r3, [r7, #12] + 8002fd2: 2b00 cmp r3, #0 + 8002fd4: d101 bne.n 8002fda + 8002fd6: 2300 movs r3, #0 + 8002fd8: e010 b.n 8002ffc + if (cl < ncl) break; /* In this fragment? */ + 8002fda: 697a ldr r2, [r7, #20] + 8002fdc: 68fb ldr r3, [r7, #12] + 8002fde: 429a cmp r2, r3 + 8002fe0: d307 bcc.n 8002ff2 + cl -= ncl; tbl++; /* Next fragment */ + 8002fe2: 697a ldr r2, [r7, #20] + 8002fe4: 68fb ldr r3, [r7, #12] + 8002fe6: 1ad3 subs r3, r2, r3 + 8002fe8: 617b str r3, [r7, #20] + 8002fea: 693b ldr r3, [r7, #16] + 8002fec: 3304 adds r3, #4 + 8002fee: 613b str r3, [r7, #16] + ncl = *tbl++; /* Number of cluters in the fragment */ + 8002ff0: e7e9 b.n 8002fc6 + if (cl < ncl) break; /* In this fragment? */ + 8002ff2: bf00 nop + } + return cl + *tbl; /* Return the cluster number */ + 8002ff4: 693b ldr r3, [r7, #16] + 8002ff6: 681a ldr r2, [r3, #0] + 8002ff8: 697b ldr r3, [r7, #20] + 8002ffa: 4413 add r3, r2 +} + 8002ffc: 4618 mov r0, r3 + 8002ffe: 371c adds r7, #28 + 8003000: 46bd mov sp, r7 + 8003002: bc80 pop {r7} + 8003004: 4770 bx lr + +08003006 : +static +FRESULT dir_sdi ( + DIR* dp, /* Pointer to directory object */ + UINT idx /* Index of directory table */ +) +{ + 8003006: b580 push {r7, lr} + 8003008: b086 sub sp, #24 + 800300a: af00 add r7, sp, #0 + 800300c: 6078 str r0, [r7, #4] + 800300e: 6039 str r1, [r7, #0] + DWORD clst, sect; + UINT ic; + + + dp->index = (WORD)idx; /* Current index */ + 8003010: 683b ldr r3, [r7, #0] + 8003012: b29a uxth r2, r3 + 8003014: 687b ldr r3, [r7, #4] + 8003016: f8a3 2206 strh.w r2, [r3, #518] ; 0x206 + clst = dp->sclust; /* Table start cluster (0:root) */ + 800301a: 687b ldr r3, [r7, #4] + 800301c: f8d3 3208 ldr.w r3, [r3, #520] ; 0x208 + 8003020: 617b str r3, [r7, #20] + if (clst == 1 || clst >= dp->fs->n_fatent) /* Check start cluster range */ + 8003022: 697b ldr r3, [r7, #20] + 8003024: 2b01 cmp r3, #1 + 8003026: d007 beq.n 8003038 + 8003028: 687b ldr r3, [r7, #4] + 800302a: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 + 800302e: f8d3 3214 ldr.w r3, [r3, #532] ; 0x214 + 8003032: 697a ldr r2, [r7, #20] + 8003034: 429a cmp r2, r3 + 8003036: d301 bcc.n 800303c + return FR_INT_ERR; + 8003038: 2302 movs r3, #2 + 800303a: e074 b.n 8003126 + if (!clst && dp->fs->fs_type == FS_FAT32) /* Replace cluster# 0 with root cluster# if in FAT32 */ + 800303c: 697b ldr r3, [r7, #20] + 800303e: 2b00 cmp r3, #0 + 8003040: d10c bne.n 800305c + 8003042: 687b ldr r3, [r7, #4] + 8003044: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 + 8003048: f893 3200 ldrb.w r3, [r3, #512] ; 0x200 + 800304c: 2b03 cmp r3, #3 + 800304e: d105 bne.n 800305c + clst = dp->fs->dirbase; + 8003050: 687b ldr r3, [r7, #4] + 8003052: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 + 8003056: f8d3 3224 ldr.w r3, [r3, #548] ; 0x224 + 800305a: 617b str r3, [r7, #20] + + if (clst == 0) { /* Static table (root-directory in FAT12/16) */ + 800305c: 697b ldr r3, [r7, #20] + 800305e: 2b00 cmp r3, #0 + 8003060: d111 bne.n 8003086 + if (idx >= dp->fs->n_rootdir) /* Is index out of range? */ + 8003062: 687b ldr r3, [r7, #4] + 8003064: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 + 8003068: f8b3 3208 ldrh.w r3, [r3, #520] ; 0x208 + 800306c: 461a mov r2, r3 + 800306e: 683b ldr r3, [r7, #0] + 8003070: 4293 cmp r3, r2 + 8003072: d301 bcc.n 8003078 + return FR_INT_ERR; + 8003074: 2302 movs r3, #2 + 8003076: e056 b.n 8003126 + sect = dp->fs->dirbase; + 8003078: 687b ldr r3, [r7, #4] + 800307a: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 + 800307e: f8d3 3224 ldr.w r3, [r3, #548] ; 0x224 + 8003082: 613b str r3, [r7, #16] + 8003084: e032 b.n 80030ec + } + else { /* Dynamic table (root-directory in FAT32 or sub-directory) */ + ic = SS(dp->fs) / SZ_DIRE * dp->fs->csize; /* Entries per cluster */ + 8003086: 687b ldr r3, [r7, #4] + 8003088: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 + 800308c: f893 3202 ldrb.w r3, [r3, #514] ; 0x202 + 8003090: 011b lsls r3, r3, #4 + 8003092: 60fb str r3, [r7, #12] + while (idx >= ic) { /* Follow cluster chain */ + 8003094: e01e b.n 80030d4 + clst = get_fat(dp->fs, clst); /* Get next cluster */ + 8003096: 687b ldr r3, [r7, #4] + 8003098: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 + 800309c: 6979 ldr r1, [r7, #20] + 800309e: 4618 mov r0, r3 + 80030a0: f7ff fcbe bl 8002a20 + 80030a4: 6178 str r0, [r7, #20] + if (clst == 0xFFFFFFFF) return FR_DISK_ERR; /* Disk error */ + 80030a6: 697b ldr r3, [r7, #20] + 80030a8: f1b3 3fff cmp.w r3, #4294967295 + 80030ac: d101 bne.n 80030b2 + 80030ae: 2301 movs r3, #1 + 80030b0: e039 b.n 8003126 + if (clst < 2 || clst >= dp->fs->n_fatent) /* Reached to end of table or internal error */ + 80030b2: 697b ldr r3, [r7, #20] + 80030b4: 2b01 cmp r3, #1 + 80030b6: d907 bls.n 80030c8 + 80030b8: 687b ldr r3, [r7, #4] + 80030ba: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 + 80030be: f8d3 3214 ldr.w r3, [r3, #532] ; 0x214 + 80030c2: 697a ldr r2, [r7, #20] + 80030c4: 429a cmp r2, r3 + 80030c6: d301 bcc.n 80030cc + return FR_INT_ERR; + 80030c8: 2302 movs r3, #2 + 80030ca: e02c b.n 8003126 + idx -= ic; + 80030cc: 683a ldr r2, [r7, #0] + 80030ce: 68fb ldr r3, [r7, #12] + 80030d0: 1ad3 subs r3, r2, r3 + 80030d2: 603b str r3, [r7, #0] + while (idx >= ic) { /* Follow cluster chain */ + 80030d4: 683a ldr r2, [r7, #0] + 80030d6: 68fb ldr r3, [r7, #12] + 80030d8: 429a cmp r2, r3 + 80030da: d2dc bcs.n 8003096 + } + sect = clust2sect(dp->fs, clst); + 80030dc: 687b ldr r3, [r7, #4] + 80030de: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 + 80030e2: 6979 ldr r1, [r7, #20] + 80030e4: 4618 mov r0, r3 + 80030e6: f7ff fc7a bl 80029de + 80030ea: 6138 str r0, [r7, #16] + } + dp->clust = clst; /* Current cluster# */ + 80030ec: 687b ldr r3, [r7, #4] + 80030ee: 697a ldr r2, [r7, #20] + 80030f0: f8c3 220c str.w r2, [r3, #524] ; 0x20c + if (!sect) return FR_INT_ERR; + 80030f4: 693b ldr r3, [r7, #16] + 80030f6: 2b00 cmp r3, #0 + 80030f8: d101 bne.n 80030fe + 80030fa: 2302 movs r3, #2 + 80030fc: e013 b.n 8003126 + dp->sect = sect + idx / (SS(dp->fs) / SZ_DIRE); /* Sector# of the directory entry */ + 80030fe: 683b ldr r3, [r7, #0] + 8003100: 091a lsrs r2, r3, #4 + 8003102: 693b ldr r3, [r7, #16] + 8003104: 441a add r2, r3 + 8003106: 687b ldr r3, [r7, #4] + 8003108: f8c3 2210 str.w r2, [r3, #528] ; 0x210 + dp->dir = dp->fs->win.d8 + (idx % (SS(dp->fs) / SZ_DIRE)) * SZ_DIRE; /* Ptr to the entry in the sector */ + 800310c: 687b ldr r3, [r7, #4] + 800310e: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 + 8003112: 461a mov r2, r3 + 8003114: 683b ldr r3, [r7, #0] + 8003116: f003 030f and.w r3, r3, #15 + 800311a: 015b lsls r3, r3, #5 + 800311c: 441a add r2, r3 + 800311e: 687b ldr r3, [r7, #4] + 8003120: f8c3 2214 str.w r2, [r3, #532] ; 0x214 + + return FR_OK; + 8003124: 2300 movs r3, #0 +} + 8003126: 4618 mov r0, r3 + 8003128: 3718 adds r7, #24 + 800312a: 46bd mov sp, r7 + 800312c: bd80 pop {r7, pc} + +0800312e : +static +FRESULT dir_next ( /* FR_OK:Succeeded, FR_NO_FILE:End of table, FR_DENIED:Could not stretch */ + DIR* dp, /* Pointer to the directory object */ + int stretch /* 0: Do not stretch table, 1: Stretch table if needed */ +) +{ + 800312e: b590 push {r4, r7, lr} + 8003130: b087 sub sp, #28 + 8003132: af00 add r7, sp, #0 + 8003134: 6078 str r0, [r7, #4] + 8003136: 6039 str r1, [r7, #0] +#if !_FS_READONLY + UINT c; +#endif + + + i = dp->index + 1; + 8003138: 687b ldr r3, [r7, #4] + 800313a: f8b3 3206 ldrh.w r3, [r3, #518] ; 0x206 + 800313e: 3301 adds r3, #1 + 8003140: 60fb str r3, [r7, #12] + if (!(i & 0xFFFF) || !dp->sect) /* Report EOT when index has reached 65535 */ + 8003142: 68fb ldr r3, [r7, #12] + 8003144: b29b uxth r3, r3 + 8003146: 2b00 cmp r3, #0 + 8003148: d004 beq.n 8003154 + 800314a: 687b ldr r3, [r7, #4] + 800314c: f8d3 3210 ldr.w r3, [r3, #528] ; 0x210 + 8003150: 2b00 cmp r3, #0 + 8003152: d101 bne.n 8003158 + return FR_NO_FILE; + 8003154: 2304 movs r3, #4 + 8003156: e0dd b.n 8003314 + + if (!(i % (SS(dp->fs) / SZ_DIRE))) { /* Sector changed? */ + 8003158: 68fb ldr r3, [r7, #12] + 800315a: f003 030f and.w r3, r3, #15 + 800315e: 2b00 cmp r3, #0 + 8003160: f040 80c6 bne.w 80032f0 + dp->sect++; /* Next sector */ + 8003164: 687b ldr r3, [r7, #4] + 8003166: f8d3 3210 ldr.w r3, [r3, #528] ; 0x210 + 800316a: 1c5a adds r2, r3, #1 + 800316c: 687b ldr r3, [r7, #4] + 800316e: f8c3 2210 str.w r2, [r3, #528] ; 0x210 + + if (!dp->clust) { /* Static table */ + 8003172: 687b ldr r3, [r7, #4] + 8003174: f8d3 320c ldr.w r3, [r3, #524] ; 0x20c + 8003178: 2b00 cmp r3, #0 + 800317a: d10b bne.n 8003194 + if (i >= dp->fs->n_rootdir) /* Report EOT if it reached end of static table */ + 800317c: 687b ldr r3, [r7, #4] + 800317e: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 + 8003182: f8b3 3208 ldrh.w r3, [r3, #520] ; 0x208 + 8003186: 461a mov r2, r3 + 8003188: 68fb ldr r3, [r7, #12] + 800318a: 4293 cmp r3, r2 + 800318c: f0c0 80b0 bcc.w 80032f0 + return FR_NO_FILE; + 8003190: 2304 movs r3, #4 + 8003192: e0bf b.n 8003314 + } + else { /* Dynamic table */ + if (((i / (SS(dp->fs) / SZ_DIRE)) & (dp->fs->csize - 1)) == 0) { /* Cluster changed? */ + 8003194: 68fb ldr r3, [r7, #12] + 8003196: 091b lsrs r3, r3, #4 + 8003198: 687a ldr r2, [r7, #4] + 800319a: f8d2 2200 ldr.w r2, [r2, #512] ; 0x200 + 800319e: f892 2202 ldrb.w r2, [r2, #514] ; 0x202 + 80031a2: 3a01 subs r2, #1 + 80031a4: 4013 ands r3, r2 + 80031a6: 2b00 cmp r3, #0 + 80031a8: f040 80a2 bne.w 80032f0 + clst = get_fat(dp->fs, dp->clust); /* Get next cluster */ + 80031ac: 687b ldr r3, [r7, #4] + 80031ae: f8d3 2200 ldr.w r2, [r3, #512] ; 0x200 + 80031b2: 687b ldr r3, [r7, #4] + 80031b4: f8d3 320c ldr.w r3, [r3, #524] ; 0x20c + 80031b8: 4619 mov r1, r3 + 80031ba: 4610 mov r0, r2 + 80031bc: f7ff fc30 bl 8002a20 + 80031c0: 6178 str r0, [r7, #20] + if (clst <= 1) return FR_INT_ERR; + 80031c2: 697b ldr r3, [r7, #20] + 80031c4: 2b01 cmp r3, #1 + 80031c6: d801 bhi.n 80031cc + 80031c8: 2302 movs r3, #2 + 80031ca: e0a3 b.n 8003314 + if (clst == 0xFFFFFFFF) return FR_DISK_ERR; + 80031cc: 697b ldr r3, [r7, #20] + 80031ce: f1b3 3fff cmp.w r3, #4294967295 + 80031d2: d101 bne.n 80031d8 + 80031d4: 2301 movs r3, #1 + 80031d6: e09d b.n 8003314 + if (clst >= dp->fs->n_fatent) { /* If it reached end of dynamic table, */ + 80031d8: 687b ldr r3, [r7, #4] + 80031da: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 + 80031de: f8d3 3214 ldr.w r3, [r3, #532] ; 0x214 + 80031e2: 697a ldr r2, [r7, #20] + 80031e4: 429a cmp r2, r3 + 80031e6: d374 bcc.n 80032d2 +#if !_FS_READONLY + if (!stretch) return FR_NO_FILE; /* If do not stretch, report EOT */ + 80031e8: 683b ldr r3, [r7, #0] + 80031ea: 2b00 cmp r3, #0 + 80031ec: d101 bne.n 80031f2 + 80031ee: 2304 movs r3, #4 + 80031f0: e090 b.n 8003314 + clst = create_chain(dp->fs, dp->clust); /* Stretch cluster chain */ + 80031f2: 687b ldr r3, [r7, #4] + 80031f4: f8d3 2200 ldr.w r2, [r3, #512] ; 0x200 + 80031f8: 687b ldr r3, [r7, #4] + 80031fa: f8d3 320c ldr.w r3, [r3, #524] ; 0x20c + 80031fe: 4619 mov r1, r3 + 8003200: 4610 mov r0, r2 + 8003202: f7ff fe2f bl 8002e64 + 8003206: 6178 str r0, [r7, #20] + if (clst == 0) return FR_DENIED; /* No free cluster */ + 8003208: 697b ldr r3, [r7, #20] + 800320a: 2b00 cmp r3, #0 + 800320c: d101 bne.n 8003212 + 800320e: 2307 movs r3, #7 + 8003210: e080 b.n 8003314 + if (clst == 1) return FR_INT_ERR; + 8003212: 697b ldr r3, [r7, #20] + 8003214: 2b01 cmp r3, #1 + 8003216: d101 bne.n 800321c + 8003218: 2302 movs r3, #2 + 800321a: e07b b.n 8003314 + if (clst == 0xFFFFFFFF) return FR_DISK_ERR; + 800321c: 697b ldr r3, [r7, #20] + 800321e: f1b3 3fff cmp.w r3, #4294967295 + 8003222: d101 bne.n 8003228 + 8003224: 2301 movs r3, #1 + 8003226: e075 b.n 8003314 + /* Clean-up stretched table */ + if (sync_window(dp->fs)) return FR_DISK_ERR;/* Flush disk access window */ + 8003228: 687b ldr r3, [r7, #4] + 800322a: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 + 800322e: 4618 mov r0, r3 + 8003230: f7ff fb5e bl 80028f0 + 8003234: 4603 mov r3, r0 + 8003236: 2b00 cmp r3, #0 + 8003238: d001 beq.n 800323e + 800323a: 2301 movs r3, #1 + 800323c: e06a b.n 8003314 + mem_set(dp->fs->win.d8, 0, SS(dp->fs)); /* Clear window buffer */ + 800323e: 687b ldr r3, [r7, #4] + 8003240: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 + 8003244: f44f 7200 mov.w r2, #512 ; 0x200 + 8003248: 2100 movs r1, #0 + 800324a: 4618 mov r0, r3 + 800324c: f7ff f986 bl 800255c + dp->fs->winsect = clust2sect(dp->fs, clst); /* Cluster start sector */ + 8003250: 687b ldr r3, [r7, #4] + 8003252: f8d3 2200 ldr.w r2, [r3, #512] ; 0x200 + 8003256: 687b ldr r3, [r7, #4] + 8003258: f8d3 4200 ldr.w r4, [r3, #512] ; 0x200 + 800325c: 6979 ldr r1, [r7, #20] + 800325e: 4610 mov r0, r2 + 8003260: f7ff fbbd bl 80029de + 8003264: 4603 mov r3, r0 + 8003266: f8c4 322c str.w r3, [r4, #556] ; 0x22c + for (c = 0; c < dp->fs->csize; c++) { /* Fill the new cluster with 0 */ + 800326a: 2300 movs r3, #0 + 800326c: 613b str r3, [r7, #16] + 800326e: e01b b.n 80032a8 + dp->fs->wflag = 1; + 8003270: 687b ldr r3, [r7, #4] + 8003272: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 + 8003276: 2201 movs r2, #1 + 8003278: f883 2204 strb.w r2, [r3, #516] ; 0x204 + if (sync_window(dp->fs)) return FR_DISK_ERR; + 800327c: 687b ldr r3, [r7, #4] + 800327e: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 + 8003282: 4618 mov r0, r3 + 8003284: f7ff fb34 bl 80028f0 + 8003288: 4603 mov r3, r0 + 800328a: 2b00 cmp r3, #0 + 800328c: d001 beq.n 8003292 + 800328e: 2301 movs r3, #1 + 8003290: e040 b.n 8003314 + dp->fs->winsect++; + 8003292: 687b ldr r3, [r7, #4] + 8003294: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 + 8003298: f8d3 222c ldr.w r2, [r3, #556] ; 0x22c + 800329c: 3201 adds r2, #1 + 800329e: f8c3 222c str.w r2, [r3, #556] ; 0x22c + for (c = 0; c < dp->fs->csize; c++) { /* Fill the new cluster with 0 */ + 80032a2: 693b ldr r3, [r7, #16] + 80032a4: 3301 adds r3, #1 + 80032a6: 613b str r3, [r7, #16] + 80032a8: 687b ldr r3, [r7, #4] + 80032aa: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 + 80032ae: f893 3202 ldrb.w r3, [r3, #514] ; 0x202 + 80032b2: 461a mov r2, r3 + 80032b4: 693b ldr r3, [r7, #16] + 80032b6: 4293 cmp r3, r2 + 80032b8: d3da bcc.n 8003270 + } + dp->fs->winsect -= c; /* Rewind window offset */ + 80032ba: 687b ldr r3, [r7, #4] + 80032bc: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 + 80032c0: f8d3 122c ldr.w r1, [r3, #556] ; 0x22c + 80032c4: 687b ldr r3, [r7, #4] + 80032c6: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 + 80032ca: 693a ldr r2, [r7, #16] + 80032cc: 1a8a subs r2, r1, r2 + 80032ce: f8c3 222c str.w r2, [r3, #556] ; 0x22c +#else + if (!stretch) return FR_NO_FILE; /* If do not stretch, report EOT (this is to suppress warning) */ + return FR_NO_FILE; /* Report EOT */ +#endif + } + dp->clust = clst; /* Initialize data for new cluster */ + 80032d2: 687b ldr r3, [r7, #4] + 80032d4: 697a ldr r2, [r7, #20] + 80032d6: f8c3 220c str.w r2, [r3, #524] ; 0x20c + dp->sect = clust2sect(dp->fs, clst); + 80032da: 687b ldr r3, [r7, #4] + 80032dc: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 + 80032e0: 6979 ldr r1, [r7, #20] + 80032e2: 4618 mov r0, r3 + 80032e4: f7ff fb7b bl 80029de + 80032e8: 4602 mov r2, r0 + 80032ea: 687b ldr r3, [r7, #4] + 80032ec: f8c3 2210 str.w r2, [r3, #528] ; 0x210 + } + } + } + + dp->index = (WORD)i; /* Current index */ + 80032f0: 68fb ldr r3, [r7, #12] + 80032f2: b29a uxth r2, r3 + 80032f4: 687b ldr r3, [r7, #4] + 80032f6: f8a3 2206 strh.w r2, [r3, #518] ; 0x206 + dp->dir = dp->fs->win.d8 + (i % (SS(dp->fs) / SZ_DIRE)) * SZ_DIRE; /* Current entry in the window */ + 80032fa: 687b ldr r3, [r7, #4] + 80032fc: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 + 8003300: 461a mov r2, r3 + 8003302: 68fb ldr r3, [r7, #12] + 8003304: f003 030f and.w r3, r3, #15 + 8003308: 015b lsls r3, r3, #5 + 800330a: 441a add r2, r3 + 800330c: 687b ldr r3, [r7, #4] + 800330e: f8c3 2214 str.w r2, [r3, #532] ; 0x214 + + return FR_OK; + 8003312: 2300 movs r3, #0 +} + 8003314: 4618 mov r0, r3 + 8003316: 371c adds r7, #28 + 8003318: 46bd mov sp, r7 + 800331a: bd90 pop {r4, r7, pc} + +0800331c : +static +FRESULT dir_alloc ( + DIR* dp, /* Pointer to the directory object */ + UINT nent /* Number of contiguous entries to allocate (1-21) */ +) +{ + 800331c: b580 push {r7, lr} + 800331e: b084 sub sp, #16 + 8003320: af00 add r7, sp, #0 + 8003322: 6078 str r0, [r7, #4] + 8003324: 6039 str r1, [r7, #0] + FRESULT res; + UINT n; + + + res = dir_sdi(dp, 0); + 8003326: 2100 movs r1, #0 + 8003328: 6878 ldr r0, [r7, #4] + 800332a: f7ff fe6c bl 8003006 + 800332e: 4603 mov r3, r0 + 8003330: 73fb strb r3, [r7, #15] + if (res == FR_OK) { + 8003332: 7bfb ldrb r3, [r7, #15] + 8003334: 2b00 cmp r3, #0 + 8003336: d131 bne.n 800339c + n = 0; + 8003338: 2300 movs r3, #0 + 800333a: 60bb str r3, [r7, #8] + do { + res = move_window(dp->fs, dp->sect); + 800333c: 687b ldr r3, [r7, #4] + 800333e: f8d3 2200 ldr.w r2, [r3, #512] ; 0x200 + 8003342: 687b ldr r3, [r7, #4] + 8003344: f8d3 3210 ldr.w r3, [r3, #528] ; 0x210 + 8003348: 4619 mov r1, r3 + 800334a: 4610 mov r0, r2 + 800334c: f7ff fb19 bl 8002982 + 8003350: 4603 mov r3, r0 + 8003352: 73fb strb r3, [r7, #15] + if (res != FR_OK) break; + 8003354: 7bfb ldrb r3, [r7, #15] + 8003356: 2b00 cmp r3, #0 + 8003358: d11f bne.n 800339a + if (dp->dir[0] == DDEM || dp->dir[0] == 0) { /* Is it a free entry? */ + 800335a: 687b ldr r3, [r7, #4] + 800335c: f8d3 3214 ldr.w r3, [r3, #532] ; 0x214 + 8003360: 781b ldrb r3, [r3, #0] + 8003362: 2be5 cmp r3, #229 ; 0xe5 + 8003364: d005 beq.n 8003372 + 8003366: 687b ldr r3, [r7, #4] + 8003368: f8d3 3214 ldr.w r3, [r3, #532] ; 0x214 + 800336c: 781b ldrb r3, [r3, #0] + 800336e: 2b00 cmp r3, #0 + 8003370: d107 bne.n 8003382 + if (++n == nent) break; /* A block of contiguous free entries is found */ + 8003372: 68bb ldr r3, [r7, #8] + 8003374: 3301 adds r3, #1 + 8003376: 60bb str r3, [r7, #8] + 8003378: 68ba ldr r2, [r7, #8] + 800337a: 683b ldr r3, [r7, #0] + 800337c: 429a cmp r2, r3 + 800337e: d102 bne.n 8003386 + 8003380: e00c b.n 800339c + } else { + n = 0; /* Not a blank entry. Restart to search */ + 8003382: 2300 movs r3, #0 + 8003384: 60bb str r3, [r7, #8] + } + res = dir_next(dp, 1); /* Next entry with table stretch enabled */ + 8003386: 2101 movs r1, #1 + 8003388: 6878 ldr r0, [r7, #4] + 800338a: f7ff fed0 bl 800312e + 800338e: 4603 mov r3, r0 + 8003390: 73fb strb r3, [r7, #15] + } while (res == FR_OK); + 8003392: 7bfb ldrb r3, [r7, #15] + 8003394: 2b00 cmp r3, #0 + 8003396: d0d1 beq.n 800333c + 8003398: e000 b.n 800339c + if (res != FR_OK) break; + 800339a: bf00 nop + } + if (res == FR_NO_FILE) res = FR_DENIED; /* No directory entry to allocate */ + 800339c: 7bfb ldrb r3, [r7, #15] + 800339e: 2b04 cmp r3, #4 + 80033a0: d101 bne.n 80033a6 + 80033a2: 2307 movs r3, #7 + 80033a4: 73fb strb r3, [r7, #15] + return res; + 80033a6: 7bfb ldrb r3, [r7, #15] +} + 80033a8: 4618 mov r0, r3 + 80033aa: 3710 adds r7, #16 + 80033ac: 46bd mov sp, r7 + 80033ae: bd80 pop {r7, pc} + +080033b0 : +static +DWORD ld_clust ( + FATFS* fs, /* Pointer to the fs object */ + BYTE* dir /* Pointer to the directory entry */ +) +{ + 80033b0: b480 push {r7} + 80033b2: b085 sub sp, #20 + 80033b4: af00 add r7, sp, #0 + 80033b6: 6078 str r0, [r7, #4] + 80033b8: 6039 str r1, [r7, #0] + DWORD cl; + + cl = LD_WORD(dir + DIR_FstClusLO); + 80033ba: 683b ldr r3, [r7, #0] + 80033bc: 331b adds r3, #27 + 80033be: 781b ldrb r3, [r3, #0] + 80033c0: 021b lsls r3, r3, #8 + 80033c2: b21a sxth r2, r3 + 80033c4: 683b ldr r3, [r7, #0] + 80033c6: 331a adds r3, #26 + 80033c8: 781b ldrb r3, [r3, #0] + 80033ca: b21b sxth r3, r3 + 80033cc: 4313 orrs r3, r2 + 80033ce: b21b sxth r3, r3 + 80033d0: b29b uxth r3, r3 + 80033d2: 60fb str r3, [r7, #12] + if (fs->fs_type == FS_FAT32) + 80033d4: 687b ldr r3, [r7, #4] + 80033d6: f893 3200 ldrb.w r3, [r3, #512] ; 0x200 + 80033da: 2b03 cmp r3, #3 + 80033dc: d10f bne.n 80033fe + cl |= (DWORD)LD_WORD(dir + DIR_FstClusHI) << 16; + 80033de: 683b ldr r3, [r7, #0] + 80033e0: 3315 adds r3, #21 + 80033e2: 781b ldrb r3, [r3, #0] + 80033e4: 021b lsls r3, r3, #8 + 80033e6: b21a sxth r2, r3 + 80033e8: 683b ldr r3, [r7, #0] + 80033ea: 3314 adds r3, #20 + 80033ec: 781b ldrb r3, [r3, #0] + 80033ee: b21b sxth r3, r3 + 80033f0: 4313 orrs r3, r2 + 80033f2: b21b sxth r3, r3 + 80033f4: b29b uxth r3, r3 + 80033f6: 041b lsls r3, r3, #16 + 80033f8: 68fa ldr r2, [r7, #12] + 80033fa: 4313 orrs r3, r2 + 80033fc: 60fb str r3, [r7, #12] + + return cl; + 80033fe: 68fb ldr r3, [r7, #12] +} + 8003400: 4618 mov r0, r3 + 8003402: 3714 adds r7, #20 + 8003404: 46bd mov sp, r7 + 8003406: bc80 pop {r7} + 8003408: 4770 bx lr + +0800340a : +static +void st_clust ( + BYTE* dir, /* Pointer to the directory entry */ + DWORD cl /* Value to be set */ +) +{ + 800340a: b480 push {r7} + 800340c: b083 sub sp, #12 + 800340e: af00 add r7, sp, #0 + 8003410: 6078 str r0, [r7, #4] + 8003412: 6039 str r1, [r7, #0] + ST_WORD(dir + DIR_FstClusLO, cl); + 8003414: 687b ldr r3, [r7, #4] + 8003416: 331a adds r3, #26 + 8003418: 683a ldr r2, [r7, #0] + 800341a: b2d2 uxtb r2, r2 + 800341c: 701a strb r2, [r3, #0] + 800341e: 683b ldr r3, [r7, #0] + 8003420: b29b uxth r3, r3 + 8003422: 0a1b lsrs r3, r3, #8 + 8003424: b29a uxth r2, r3 + 8003426: 687b ldr r3, [r7, #4] + 8003428: 331b adds r3, #27 + 800342a: b2d2 uxtb r2, r2 + 800342c: 701a strb r2, [r3, #0] + ST_WORD(dir + DIR_FstClusHI, cl >> 16); + 800342e: 683b ldr r3, [r7, #0] + 8003430: 0c1a lsrs r2, r3, #16 + 8003432: 687b ldr r3, [r7, #4] + 8003434: 3314 adds r3, #20 + 8003436: b2d2 uxtb r2, r2 + 8003438: 701a strb r2, [r3, #0] + 800343a: 683b ldr r3, [r7, #0] + 800343c: 0c1b lsrs r3, r3, #16 + 800343e: b29b uxth r3, r3 + 8003440: 0a1b lsrs r3, r3, #8 + 8003442: b29a uxth r2, r3 + 8003444: 687b ldr r3, [r7, #4] + 8003446: 3315 adds r3, #21 + 8003448: b2d2 uxtb r2, r2 + 800344a: 701a strb r2, [r3, #0] +} + 800344c: bf00 nop + 800344e: 370c adds r7, #12 + 8003450: 46bd mov sp, r7 + 8003452: bc80 pop {r7} + 8003454: 4770 bx lr + +08003456 : + +static +FRESULT dir_find ( + DIR* dp /* Pointer to the directory object linked to the file name */ +) +{ + 8003456: b580 push {r7, lr} + 8003458: b086 sub sp, #24 + 800345a: af00 add r7, sp, #0 + 800345c: 6078 str r0, [r7, #4] + BYTE c, *dir; +#if _USE_LFN + BYTE a, ord, sum; +#endif + + res = dir_sdi(dp, 0); /* Rewind directory object */ + 800345e: 2100 movs r1, #0 + 8003460: 6878 ldr r0, [r7, #4] + 8003462: f7ff fdd0 bl 8003006 + 8003466: 4603 mov r3, r0 + 8003468: 75fb strb r3, [r7, #23] + if (res != FR_OK) return res; + 800346a: 7dfb ldrb r3, [r7, #23] + 800346c: 2b00 cmp r3, #0 + 800346e: d001 beq.n 8003474 + 8003470: 7dfb ldrb r3, [r7, #23] + 8003472: e03b b.n 80034ec + +#if _USE_LFN + ord = sum = 0xFF; dp->lfn_idx = 0xFFFF; /* Reset LFN sequence */ +#endif + do { + res = move_window(dp->fs, dp->sect); + 8003474: 687b ldr r3, [r7, #4] + 8003476: f8d3 2200 ldr.w r2, [r3, #512] ; 0x200 + 800347a: 687b ldr r3, [r7, #4] + 800347c: f8d3 3210 ldr.w r3, [r3, #528] ; 0x210 + 8003480: 4619 mov r1, r3 + 8003482: 4610 mov r0, r2 + 8003484: f7ff fa7d bl 8002982 + 8003488: 4603 mov r3, r0 + 800348a: 75fb strb r3, [r7, #23] + if (res != FR_OK) break; + 800348c: 7dfb ldrb r3, [r7, #23] + 800348e: 2b00 cmp r3, #0 + 8003490: d128 bne.n 80034e4 + dir = dp->dir; /* Ptr to the directory entry of current index */ + 8003492: 687b ldr r3, [r7, #4] + 8003494: f8d3 3214 ldr.w r3, [r3, #532] ; 0x214 + 8003498: 613b str r3, [r7, #16] + c = dir[DIR_Name]; + 800349a: 693b ldr r3, [r7, #16] + 800349c: 781b ldrb r3, [r3, #0] + 800349e: 73fb strb r3, [r7, #15] + if (c == 0) { res = FR_NO_FILE; break; } /* Reached to end of table */ + 80034a0: 7bfb ldrb r3, [r7, #15] + 80034a2: 2b00 cmp r3, #0 + 80034a4: d102 bne.n 80034ac + 80034a6: 2304 movs r3, #4 + 80034a8: 75fb strb r3, [r7, #23] + 80034aa: e01e b.n 80034ea + if (!(dp->fn[NSFLAG] & NS_LOSS) && !mem_cmp(dir, dp->fn, 11)) break; /* SFN matched? */ + ord = 0xFF; dp->lfn_idx = 0xFFFF; /* Reset LFN sequence */ + } + } +#else /* Non LFN configuration */ + if (!(dir[DIR_Attr] & AM_VOL) && !mem_cmp(dir, dp->fn, 11)) /* Is it a valid entry? */ + 80034ac: 693b ldr r3, [r7, #16] + 80034ae: 330b adds r3, #11 + 80034b0: 781b ldrb r3, [r3, #0] + 80034b2: f003 0308 and.w r3, r3, #8 + 80034b6: 2b00 cmp r3, #0 + 80034b8: d10a bne.n 80034d0 + 80034ba: 687b ldr r3, [r7, #4] + 80034bc: f8d3 3218 ldr.w r3, [r3, #536] ; 0x218 + 80034c0: 220b movs r2, #11 + 80034c2: 4619 mov r1, r3 + 80034c4: 6938 ldr r0, [r7, #16] + 80034c6: f7ff f863 bl 8002590 + 80034ca: 4603 mov r3, r0 + 80034cc: 2b00 cmp r3, #0 + 80034ce: d00b beq.n 80034e8 + break; +#endif + res = dir_next(dp, 0); /* Next entry */ + 80034d0: 2100 movs r1, #0 + 80034d2: 6878 ldr r0, [r7, #4] + 80034d4: f7ff fe2b bl 800312e + 80034d8: 4603 mov r3, r0 + 80034da: 75fb strb r3, [r7, #23] + } while (res == FR_OK); + 80034dc: 7dfb ldrb r3, [r7, #23] + 80034de: 2b00 cmp r3, #0 + 80034e0: d0c8 beq.n 8003474 + 80034e2: e002 b.n 80034ea + if (res != FR_OK) break; + 80034e4: bf00 nop + 80034e6: e000 b.n 80034ea + break; + 80034e8: bf00 nop + + return res; + 80034ea: 7dfb ldrb r3, [r7, #23] +} + 80034ec: 4618 mov r0, r3 + 80034ee: 3718 adds r7, #24 + 80034f0: 46bd mov sp, r7 + 80034f2: bd80 pop {r7, pc} + +080034f4 : +#if !_FS_READONLY +static +FRESULT dir_register ( /* FR_OK:Successful, FR_DENIED:No free entry or too many SFN collision, FR_DISK_ERR:Disk error */ + DIR* dp /* Target directory with object name to be created */ +) +{ + 80034f4: b580 push {r7, lr} + 80034f6: b084 sub sp, #16 + 80034f8: af00 add r7, sp, #0 + 80034fa: 6078 str r0, [r7, #4] + res = dir_next(dp, 0); /* Next entry */ + } while (res == FR_OK && --nent); + } + } +#else /* Non LFN configuration */ + res = dir_alloc(dp, 1); /* Allocate an entry for SFN */ + 80034fc: 2101 movs r1, #1 + 80034fe: 6878 ldr r0, [r7, #4] + 8003500: f7ff ff0c bl 800331c + 8003504: 4603 mov r3, r0 + 8003506: 73fb strb r3, [r7, #15] +#endif + + if (res == FR_OK) { /* Set SFN entry */ + 8003508: 7bfb ldrb r3, [r7, #15] + 800350a: 2b00 cmp r3, #0 + 800350c: d126 bne.n 800355c + res = move_window(dp->fs, dp->sect); + 800350e: 687b ldr r3, [r7, #4] + 8003510: f8d3 2200 ldr.w r2, [r3, #512] ; 0x200 + 8003514: 687b ldr r3, [r7, #4] + 8003516: f8d3 3210 ldr.w r3, [r3, #528] ; 0x210 + 800351a: 4619 mov r1, r3 + 800351c: 4610 mov r0, r2 + 800351e: f7ff fa30 bl 8002982 + 8003522: 4603 mov r3, r0 + 8003524: 73fb strb r3, [r7, #15] + if (res == FR_OK) { + 8003526: 7bfb ldrb r3, [r7, #15] + 8003528: 2b00 cmp r3, #0 + 800352a: d117 bne.n 800355c + mem_set(dp->dir, 0, SZ_DIRE); /* Clean the entry */ + 800352c: 687b ldr r3, [r7, #4] + 800352e: f8d3 3214 ldr.w r3, [r3, #532] ; 0x214 + 8003532: 2220 movs r2, #32 + 8003534: 2100 movs r1, #0 + 8003536: 4618 mov r0, r3 + 8003538: f7ff f810 bl 800255c + mem_cpy(dp->dir, dp->fn, 11); /* Put SFN */ + 800353c: 687b ldr r3, [r7, #4] + 800353e: f8d3 0214 ldr.w r0, [r3, #532] ; 0x214 + 8003542: 687b ldr r3, [r7, #4] + 8003544: f8d3 3218 ldr.w r3, [r3, #536] ; 0x218 + 8003548: 220b movs r2, #11 + 800354a: 4619 mov r1, r3 + 800354c: f7fe ffe8 bl 8002520 +#if _USE_LFN + dp->dir[DIR_NTres] = dp->fn[NSFLAG] & (NS_BODY | NS_EXT); /* Put NT flag */ +#endif + dp->fs->wflag = 1; + 8003550: 687b ldr r3, [r7, #4] + 8003552: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 + 8003556: 2201 movs r2, #1 + 8003558: f883 2204 strb.w r2, [r3, #516] ; 0x204 + } + } + + return res; + 800355c: 7bfb ldrb r3, [r7, #15] +} + 800355e: 4618 mov r0, r3 + 8003560: 3710 adds r7, #16 + 8003562: 46bd mov sp, r7 + 8003564: bd80 pop {r7, pc} + ... + +08003568 : +static +FRESULT create_name ( + DIR* dp, /* Pointer to the directory object */ + const TCHAR** path /* Pointer to pointer to the segment in the path string */ +) +{ + 8003568: b580 push {r7, lr} + 800356a: b088 sub sp, #32 + 800356c: af00 add r7, sp, #0 + 800356e: 6078 str r0, [r7, #4] + 8003570: 6039 str r1, [r7, #0] + BYTE b, c, d, *sfn; + UINT ni, si, i; + const char *p; + + /* Create file name in directory form */ + for (p = *path; *p == '/' || *p == '\\'; p++) ; /* Strip duplicated separator */ + 8003572: 683b ldr r3, [r7, #0] + 8003574: 681b ldr r3, [r3, #0] + 8003576: 60fb str r3, [r7, #12] + 8003578: e002 b.n 8003580 + 800357a: 68fb ldr r3, [r7, #12] + 800357c: 3301 adds r3, #1 + 800357e: 60fb str r3, [r7, #12] + 8003580: 68fb ldr r3, [r7, #12] + 8003582: 781b ldrb r3, [r3, #0] + 8003584: 2b2f cmp r3, #47 ; 0x2f + 8003586: d0f8 beq.n 800357a + 8003588: 68fb ldr r3, [r7, #12] + 800358a: 781b ldrb r3, [r3, #0] + 800358c: 2b5c cmp r3, #92 ; 0x5c + 800358e: d0f4 beq.n 800357a + sfn = dp->fn; + 8003590: 687b ldr r3, [r7, #4] + 8003592: f8d3 3218 ldr.w r3, [r3, #536] ; 0x218 + 8003596: 60bb str r3, [r7, #8] + mem_set(sfn, ' ', 11); + 8003598: 220b movs r2, #11 + 800359a: 2120 movs r1, #32 + 800359c: 68b8 ldr r0, [r7, #8] + 800359e: f7fe ffdd bl 800255c + si = i = b = 0; ni = 8; + 80035a2: 2300 movs r3, #0 + 80035a4: 77fb strb r3, [r7, #31] + 80035a6: 2300 movs r3, #0 + 80035a8: 613b str r3, [r7, #16] + 80035aa: 693b ldr r3, [r7, #16] + 80035ac: 617b str r3, [r7, #20] + 80035ae: 2308 movs r3, #8 + 80035b0: 61bb str r3, [r7, #24] + sfn[NSFLAG] = (c <= ' ') ? NS_LAST | NS_DOT : NS_DOT; /* Set last segment flag if end of path */ + return FR_OK; + } +#endif + for (;;) { + c = (BYTE)p[si++]; + 80035b2: 697b ldr r3, [r7, #20] + 80035b4: 1c5a adds r2, r3, #1 + 80035b6: 617a str r2, [r7, #20] + 80035b8: 68fa ldr r2, [r7, #12] + 80035ba: 4413 add r3, r2 + 80035bc: 781b ldrb r3, [r3, #0] + 80035be: 77bb strb r3, [r7, #30] + if (c <= ' ' || c == '/' || c == '\\') break; /* Break on end of segment */ + 80035c0: 7fbb ldrb r3, [r7, #30] + 80035c2: 2b20 cmp r3, #32 + 80035c4: d953 bls.n 800366e + 80035c6: 7fbb ldrb r3, [r7, #30] + 80035c8: 2b2f cmp r3, #47 ; 0x2f + 80035ca: d050 beq.n 800366e + 80035cc: 7fbb ldrb r3, [r7, #30] + 80035ce: 2b5c cmp r3, #92 ; 0x5c + 80035d0: d04d beq.n 800366e + if (c == '.' || i >= ni) { + 80035d2: 7fbb ldrb r3, [r7, #30] + 80035d4: 2b2e cmp r3, #46 ; 0x2e + 80035d6: d003 beq.n 80035e0 + 80035d8: 693a ldr r2, [r7, #16] + 80035da: 69bb ldr r3, [r7, #24] + 80035dc: 429a cmp r2, r3 + 80035de: d30f bcc.n 8003600 + if (ni != 8 || c != '.') return FR_INVALID_NAME; + 80035e0: 69bb ldr r3, [r7, #24] + 80035e2: 2b08 cmp r3, #8 + 80035e4: d102 bne.n 80035ec + 80035e6: 7fbb ldrb r3, [r7, #30] + 80035e8: 2b2e cmp r3, #46 ; 0x2e + 80035ea: d001 beq.n 80035f0 + 80035ec: 2306 movs r3, #6 + 80035ee: e073 b.n 80036d8 + i = 8; ni = 11; + 80035f0: 2308 movs r3, #8 + 80035f2: 613b str r3, [r7, #16] + 80035f4: 230b movs r3, #11 + 80035f6: 61bb str r3, [r7, #24] + b <<= 2; continue; + 80035f8: 7ffb ldrb r3, [r7, #31] + 80035fa: 009b lsls r3, r3, #2 + 80035fc: 77fb strb r3, [r7, #31] + 80035fe: e035 b.n 800366c + } + if (c >= 0x80) { /* Extended character? */ + 8003600: f997 301e ldrsb.w r3, [r7, #30] + 8003604: 2b00 cmp r3, #0 + 8003606: da08 bge.n 800361a + b |= 3; /* Eliminate NT flag */ + 8003608: 7ffb ldrb r3, [r7, #31] + 800360a: f043 0303 orr.w r3, r3, #3 + 800360e: 77fb strb r3, [r7, #31] +#ifdef _EXCVT + c = ExCvt[c - 0x80]; /* To upper extended characters (SBCS cfg) */ + 8003610: 7fbb ldrb r3, [r7, #30] + 8003612: 3b80 subs r3, #128 ; 0x80 + 8003614: 4a32 ldr r2, [pc, #200] ; (80036e0 ) + 8003616: 5cd3 ldrb r3, [r2, r3] + 8003618: 77bb strb r3, [r7, #30] + if (!IsDBCS2(d) || i >= ni - 1) /* Reject invalid DBC */ + return FR_INVALID_NAME; + sfn[i++] = c; + sfn[i++] = d; + } else { /* SBC */ + if (chk_chr("\"*+,:;<=>\?[]|\x7F", c)) /* Reject illegal chrs for SFN */ + 800361a: 7fbb ldrb r3, [r7, #30] + 800361c: 4619 mov r1, r3 + 800361e: 4831 ldr r0, [pc, #196] ; (80036e4 ) + 8003620: f7fe ffdc bl 80025dc + 8003624: 4603 mov r3, r0 + 8003626: 2b00 cmp r3, #0 + 8003628: d001 beq.n 800362e + return FR_INVALID_NAME; + 800362a: 2306 movs r3, #6 + 800362c: e054 b.n 80036d8 + if (IsUpper(c)) { /* ASCII large capital? */ + 800362e: 7fbb ldrb r3, [r7, #30] + 8003630: 2b40 cmp r3, #64 ; 0x40 + 8003632: d907 bls.n 8003644 + 8003634: 7fbb ldrb r3, [r7, #30] + 8003636: 2b5a cmp r3, #90 ; 0x5a + 8003638: d804 bhi.n 8003644 + b |= 2; + 800363a: 7ffb ldrb r3, [r7, #31] + 800363c: f043 0302 orr.w r3, r3, #2 + 8003640: 77fb strb r3, [r7, #31] + 8003642: e00c b.n 800365e + } else { + if (IsLower(c)) { /* ASCII small capital? */ + 8003644: 7fbb ldrb r3, [r7, #30] + 8003646: 2b60 cmp r3, #96 ; 0x60 + 8003648: d909 bls.n 800365e + 800364a: 7fbb ldrb r3, [r7, #30] + 800364c: 2b7a cmp r3, #122 ; 0x7a + 800364e: d806 bhi.n 800365e + b |= 1; c -= 0x20; + 8003650: 7ffb ldrb r3, [r7, #31] + 8003652: f043 0301 orr.w r3, r3, #1 + 8003656: 77fb strb r3, [r7, #31] + 8003658: 7fbb ldrb r3, [r7, #30] + 800365a: 3b20 subs r3, #32 + 800365c: 77bb strb r3, [r7, #30] + } + } + sfn[i++] = c; + 800365e: 693b ldr r3, [r7, #16] + 8003660: 1c5a adds r2, r3, #1 + 8003662: 613a str r2, [r7, #16] + 8003664: 68ba ldr r2, [r7, #8] + 8003666: 4413 add r3, r2 + 8003668: 7fba ldrb r2, [r7, #30] + 800366a: 701a strb r2, [r3, #0] + c = (BYTE)p[si++]; + 800366c: e7a1 b.n 80035b2 + } + } + *path = &p[si]; /* Return pointer to the next segment */ + 800366e: 68fa ldr r2, [r7, #12] + 8003670: 697b ldr r3, [r7, #20] + 8003672: 441a add r2, r3 + 8003674: 683b ldr r3, [r7, #0] + 8003676: 601a str r2, [r3, #0] + c = (c <= ' ') ? NS_LAST : 0; /* Set last segment flag if end of path */ + 8003678: 7fbb ldrb r3, [r7, #30] + 800367a: 2b20 cmp r3, #32 + 800367c: d801 bhi.n 8003682 + 800367e: 2304 movs r3, #4 + 8003680: e000 b.n 8003684 + 8003682: 2300 movs r3, #0 + 8003684: 77bb strb r3, [r7, #30] + + if (!i) return FR_INVALID_NAME; /* Reject nul string */ + 8003686: 693b ldr r3, [r7, #16] + 8003688: 2b00 cmp r3, #0 + 800368a: d101 bne.n 8003690 + 800368c: 2306 movs r3, #6 + 800368e: e023 b.n 80036d8 + if (sfn[0] == DDEM) sfn[0] = RDDEM; /* When first character collides with DDEM, replace it with RDDEM */ + 8003690: 68bb ldr r3, [r7, #8] + 8003692: 781b ldrb r3, [r3, #0] + 8003694: 2be5 cmp r3, #229 ; 0xe5 + 8003696: d102 bne.n 800369e + 8003698: 68bb ldr r3, [r7, #8] + 800369a: 2205 movs r2, #5 + 800369c: 701a strb r2, [r3, #0] + + if (ni == 8) b <<= 2; + 800369e: 69bb ldr r3, [r7, #24] + 80036a0: 2b08 cmp r3, #8 + 80036a2: d102 bne.n 80036aa + 80036a4: 7ffb ldrb r3, [r7, #31] + 80036a6: 009b lsls r3, r3, #2 + 80036a8: 77fb strb r3, [r7, #31] + if ((b & 0x03) == 0x01) c |= NS_EXT; /* NT flag (Name extension has only small capital) */ + 80036aa: 7ffb ldrb r3, [r7, #31] + 80036ac: f003 0303 and.w r3, r3, #3 + 80036b0: 2b01 cmp r3, #1 + 80036b2: d103 bne.n 80036bc + 80036b4: 7fbb ldrb r3, [r7, #30] + 80036b6: f043 0310 orr.w r3, r3, #16 + 80036ba: 77bb strb r3, [r7, #30] + if ((b & 0x0C) == 0x04) c |= NS_BODY; /* NT flag (Name body has only small capital) */ + 80036bc: 7ffb ldrb r3, [r7, #31] + 80036be: f003 030c and.w r3, r3, #12 + 80036c2: 2b04 cmp r3, #4 + 80036c4: d103 bne.n 80036ce + 80036c6: 7fbb ldrb r3, [r7, #30] + 80036c8: f043 0308 orr.w r3, r3, #8 + 80036cc: 77bb strb r3, [r7, #30] + + sfn[NSFLAG] = c; /* Store NT flag, File name is created */ + 80036ce: 68bb ldr r3, [r7, #8] + 80036d0: 330b adds r3, #11 + 80036d2: 7fba ldrb r2, [r7, #30] + 80036d4: 701a strb r2, [r3, #0] + + return FR_OK; + 80036d6: 2300 movs r3, #0 +#endif +} + 80036d8: 4618 mov r0, r3 + 80036da: 3720 adds r7, #32 + 80036dc: 46bd mov sp, r7 + 80036de: bd80 pop {r7, pc} + 80036e0: 080068cc .word 0x080068cc + 80036e4: 08006858 .word 0x08006858 + +080036e8 : +static +FRESULT follow_path ( /* FR_OK(0): successful, !=0: error code */ + DIR* dp, /* Directory object to return last directory and found object */ + const TCHAR* path /* Full-path string to find a file or directory */ +) +{ + 80036e8: b580 push {r7, lr} + 80036ea: b084 sub sp, #16 + 80036ec: af00 add r7, sp, #0 + 80036ee: 6078 str r0, [r7, #4] + 80036f0: 6039 str r1, [r7, #0] + path++; dp->sclust = 0; /* Strip it and start from the root directory */ + } else { /* No heading separator */ + dp->sclust = dp->fs->cdir; /* Start from the current directory */ + } +#else + if (*path == '/' || *path == '\\') /* Strip heading separator if exist */ + 80036f2: 683b ldr r3, [r7, #0] + 80036f4: 781b ldrb r3, [r3, #0] + 80036f6: 2b2f cmp r3, #47 ; 0x2f + 80036f8: d003 beq.n 8003702 + 80036fa: 683b ldr r3, [r7, #0] + 80036fc: 781b ldrb r3, [r3, #0] + 80036fe: 2b5c cmp r3, #92 ; 0x5c + 8003700: d102 bne.n 8003708 + path++; + 8003702: 683b ldr r3, [r7, #0] + 8003704: 3301 adds r3, #1 + 8003706: 603b str r3, [r7, #0] + dp->sclust = 0; /* Always start from the root directory */ + 8003708: 687b ldr r3, [r7, #4] + 800370a: 2200 movs r2, #0 + 800370c: f8c3 2208 str.w r2, [r3, #520] ; 0x208 +#endif + + if ((UINT)*path < ' ') { /* Null path name is the origin directory itself */ + 8003710: 683b ldr r3, [r7, #0] + 8003712: 781b ldrb r3, [r3, #0] + 8003714: 2b1f cmp r3, #31 + 8003716: d80a bhi.n 800372e + res = dir_sdi(dp, 0); + 8003718: 2100 movs r1, #0 + 800371a: 6878 ldr r0, [r7, #4] + 800371c: f7ff fc73 bl 8003006 + 8003720: 4603 mov r3, r0 + 8003722: 73fb strb r3, [r7, #15] + dp->dir = 0; + 8003724: 687b ldr r3, [r7, #4] + 8003726: 2200 movs r2, #0 + 8003728: f8c3 2214 str.w r2, [r3, #532] ; 0x214 + 800372c: e045 b.n 80037ba + } else { /* Follow path */ + for (;;) { + res = create_name(dp, &path); /* Get a segment name of the path */ + 800372e: 463b mov r3, r7 + 8003730: 4619 mov r1, r3 + 8003732: 6878 ldr r0, [r7, #4] + 8003734: f7ff ff18 bl 8003568 + 8003738: 4603 mov r3, r0 + 800373a: 73fb strb r3, [r7, #15] + if (res != FR_OK) break; + 800373c: 7bfb ldrb r3, [r7, #15] + 800373e: 2b00 cmp r3, #0 + 8003740: d136 bne.n 80037b0 + res = dir_find(dp); /* Find an object with the sagment name */ + 8003742: 6878 ldr r0, [r7, #4] + 8003744: f7ff fe87 bl 8003456 + 8003748: 4603 mov r3, r0 + 800374a: 73fb strb r3, [r7, #15] + ns = dp->fn[NSFLAG]; + 800374c: 687b ldr r3, [r7, #4] + 800374e: f8d3 3218 ldr.w r3, [r3, #536] ; 0x218 + 8003752: 7adb ldrb r3, [r3, #11] + 8003754: 73bb strb r3, [r7, #14] + if (res != FR_OK) { /* Failed to find the object */ + 8003756: 7bfb ldrb r3, [r7, #15] + 8003758: 2b00 cmp r3, #0 + 800375a: d00a beq.n 8003772 + if (res == FR_NO_FILE) { /* Object is not found */ + 800375c: 7bfb ldrb r3, [r7, #15] + 800375e: 2b04 cmp r3, #4 + 8003760: d128 bne.n 80037b4 + if (_FS_RPATH && (ns & NS_DOT)) { /* If dot entry is not exist, */ + dp->sclust = 0; dp->dir = 0; /* it is the root directory and stay there */ + if (!(ns & NS_LAST)) continue; /* Continue to follow if not last segment */ + res = FR_OK; /* Ended at the root directroy. Function completed. */ + } else { /* Could not find the object */ + if (!(ns & NS_LAST)) res = FR_NO_PATH; /* Adjust error code if not last segment */ + 8003762: 7bbb ldrb r3, [r7, #14] + 8003764: f003 0304 and.w r3, r3, #4 + 8003768: 2b00 cmp r3, #0 + 800376a: d123 bne.n 80037b4 + 800376c: 2305 movs r3, #5 + 800376e: 73fb strb r3, [r7, #15] + } + } + break; + 8003770: e020 b.n 80037b4 + } + if (ns & NS_LAST) break; /* Last segment matched. Function completed. */ + 8003772: 7bbb ldrb r3, [r7, #14] + 8003774: f003 0304 and.w r3, r3, #4 + 8003778: 2b00 cmp r3, #0 + 800377a: d11d bne.n 80037b8 + dir = dp->dir; /* Follow the sub-directory */ + 800377c: 687b ldr r3, [r7, #4] + 800377e: f8d3 3214 ldr.w r3, [r3, #532] ; 0x214 + 8003782: 60bb str r3, [r7, #8] + if (!(dir[DIR_Attr] & AM_DIR)) { /* It is not a sub-directory and cannot follow */ + 8003784: 68bb ldr r3, [r7, #8] + 8003786: 330b adds r3, #11 + 8003788: 781b ldrb r3, [r3, #0] + 800378a: f003 0310 and.w r3, r3, #16 + 800378e: 2b00 cmp r3, #0 + 8003790: d102 bne.n 8003798 + res = FR_NO_PATH; break; + 8003792: 2305 movs r3, #5 + 8003794: 73fb strb r3, [r7, #15] + 8003796: e010 b.n 80037ba + } + dp->sclust = ld_clust(dp->fs, dir); + 8003798: 687b ldr r3, [r7, #4] + 800379a: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 + 800379e: 68b9 ldr r1, [r7, #8] + 80037a0: 4618 mov r0, r3 + 80037a2: f7ff fe05 bl 80033b0 + 80037a6: 4602 mov r2, r0 + 80037a8: 687b ldr r3, [r7, #4] + 80037aa: f8c3 2208 str.w r2, [r3, #520] ; 0x208 + res = create_name(dp, &path); /* Get a segment name of the path */ + 80037ae: e7be b.n 800372e + if (res != FR_OK) break; + 80037b0: bf00 nop + 80037b2: e002 b.n 80037ba + break; + 80037b4: bf00 nop + 80037b6: e000 b.n 80037ba + if (ns & NS_LAST) break; /* Last segment matched. Function completed. */ + 80037b8: bf00 nop + } + } + + return res; + 80037ba: 7bfb ldrb r3, [r7, #15] +} + 80037bc: 4618 mov r0, r3 + 80037be: 3710 adds r7, #16 + 80037c0: 46bd mov sp, r7 + 80037c2: bd80 pop {r7, pc} + +080037c4 : + +static +int get_ldnumber ( /* Returns logical drive number (-1:invalid drive) */ + const TCHAR** path /* Pointer to pointer to the path name */ +) +{ + 80037c4: b480 push {r7} + 80037c6: b087 sub sp, #28 + 80037c8: af00 add r7, sp, #0 + 80037ca: 6078 str r0, [r7, #4] + const TCHAR *tp, *tt; + UINT i; + int vol = -1; + 80037cc: f04f 33ff mov.w r3, #4294967295 + 80037d0: 613b str r3, [r7, #16] + char c; + TCHAR tc; +#endif + + + if (*path) { /* If the pointer is not a null */ + 80037d2: 687b ldr r3, [r7, #4] + 80037d4: 681b ldr r3, [r3, #0] + 80037d6: 2b00 cmp r3, #0 + 80037d8: d031 beq.n 800383e + for (tt = *path; (UINT)*tt >= (_USE_LFN ? ' ' : '!') && *tt != ':'; tt++) ; /* Find ':' in the path */ + 80037da: 687b ldr r3, [r7, #4] + 80037dc: 681b ldr r3, [r3, #0] + 80037de: 617b str r3, [r7, #20] + 80037e0: e002 b.n 80037e8 + 80037e2: 697b ldr r3, [r7, #20] + 80037e4: 3301 adds r3, #1 + 80037e6: 617b str r3, [r7, #20] + 80037e8: 697b ldr r3, [r7, #20] + 80037ea: 781b ldrb r3, [r3, #0] + 80037ec: 2b20 cmp r3, #32 + 80037ee: d903 bls.n 80037f8 + 80037f0: 697b ldr r3, [r7, #20] + 80037f2: 781b ldrb r3, [r3, #0] + 80037f4: 2b3a cmp r3, #58 ; 0x3a + 80037f6: d1f4 bne.n 80037e2 + if (*tt == ':') { /* If a ':' is exist in the path name */ + 80037f8: 697b ldr r3, [r7, #20] + 80037fa: 781b ldrb r3, [r3, #0] + 80037fc: 2b3a cmp r3, #58 ; 0x3a + 80037fe: d11c bne.n 800383a + tp = *path; + 8003800: 687b ldr r3, [r7, #4] + 8003802: 681b ldr r3, [r3, #0] + 8003804: 60fb str r3, [r7, #12] + i = *tp++ - '0'; + 8003806: 68fb ldr r3, [r7, #12] + 8003808: 1c5a adds r2, r3, #1 + 800380a: 60fa str r2, [r7, #12] + 800380c: 781b ldrb r3, [r3, #0] + 800380e: 3b30 subs r3, #48 ; 0x30 + 8003810: 60bb str r3, [r7, #8] + if (i < 10 && tp == tt) { /* Is there a numeric drive id? */ + 8003812: 68bb ldr r3, [r7, #8] + 8003814: 2b09 cmp r3, #9 + 8003816: d80e bhi.n 8003836 + 8003818: 68fa ldr r2, [r7, #12] + 800381a: 697b ldr r3, [r7, #20] + 800381c: 429a cmp r2, r3 + 800381e: d10a bne.n 8003836 + if (i < _VOLUMES) { /* If a drive id is found, get the value and strip it */ + 8003820: 68bb ldr r3, [r7, #8] + 8003822: 2b00 cmp r3, #0 + 8003824: d107 bne.n 8003836 + vol = (int)i; + 8003826: 68bb ldr r3, [r7, #8] + 8003828: 613b str r3, [r7, #16] + *path = ++tt; + 800382a: 697b ldr r3, [r7, #20] + 800382c: 3301 adds r3, #1 + 800382e: 617b str r3, [r7, #20] + 8003830: 687b ldr r3, [r7, #4] + 8003832: 697a ldr r2, [r7, #20] + 8003834: 601a str r2, [r3, #0] + vol = (int)i; + *path = tt; + } + } +#endif + return vol; + 8003836: 693b ldr r3, [r7, #16] + 8003838: e002 b.n 8003840 + } +#if _FS_RPATH && _VOLUMES >= 2 + vol = CurrVol; /* Current drive */ +#else + vol = 0; /* Drive 0 */ + 800383a: 2300 movs r3, #0 + 800383c: 613b str r3, [r7, #16] +#endif + } + return vol; + 800383e: 693b ldr r3, [r7, #16] +} + 8003840: 4618 mov r0, r3 + 8003842: 371c adds r7, #28 + 8003844: 46bd mov sp, r7 + 8003846: bc80 pop {r7} + 8003848: 4770 bx lr + ... + +0800384c : +static +BYTE check_fs ( /* 0:FAT boor sector, 1:Valid boor sector but not FAT, 2:Not a boot sector, 3:Disk error */ + FATFS* fs, /* File system object */ + DWORD sect /* Sector# (lba) to check if it is an FAT boot record or not */ +) +{ + 800384c: b580 push {r7, lr} + 800384e: b082 sub sp, #8 + 8003850: af00 add r7, sp, #0 + 8003852: 6078 str r0, [r7, #4] + 8003854: 6039 str r1, [r7, #0] + fs->wflag = 0; fs->winsect = 0xFFFFFFFF; /* Invaidate window */ + 8003856: 687b ldr r3, [r7, #4] + 8003858: 2200 movs r2, #0 + 800385a: f883 2204 strb.w r2, [r3, #516] ; 0x204 + 800385e: 687b ldr r3, [r7, #4] + 8003860: f04f 32ff mov.w r2, #4294967295 + 8003864: f8c3 222c str.w r2, [r3, #556] ; 0x22c + if (move_window(fs, sect) != FR_OK) /* Load boot record */ + 8003868: 6839 ldr r1, [r7, #0] + 800386a: 6878 ldr r0, [r7, #4] + 800386c: f7ff f889 bl 8002982 + 8003870: 4603 mov r3, r0 + 8003872: 2b00 cmp r3, #0 + 8003874: d001 beq.n 800387a + return 3; + 8003876: 2303 movs r3, #3 + 8003878: e04a b.n 8003910 + + if (LD_WORD(&fs->win.d8[BS_55AA]) != 0xAA55) /* Check boot record signature (always placed at offset 510 even if the sector size is >512) */ + 800387a: 687b ldr r3, [r7, #4] + 800387c: f503 73ff add.w r3, r3, #510 ; 0x1fe + 8003880: 3301 adds r3, #1 + 8003882: 781b ldrb r3, [r3, #0] + 8003884: 021b lsls r3, r3, #8 + 8003886: b21a sxth r2, r3 + 8003888: 687b ldr r3, [r7, #4] + 800388a: f893 31fe ldrb.w r3, [r3, #510] ; 0x1fe + 800388e: b21b sxth r3, r3 + 8003890: 4313 orrs r3, r2 + 8003892: b21b sxth r3, r3 + 8003894: 4a20 ldr r2, [pc, #128] ; (8003918 ) + 8003896: 4293 cmp r3, r2 + 8003898: d001 beq.n 800389e + return 2; + 800389a: 2302 movs r3, #2 + 800389c: e038 b.n 8003910 + + if ((LD_DWORD(&fs->win.d8[BS_FilSysType]) & 0xFFFFFF) == 0x544146) /* Check "FAT" string */ + 800389e: 687b ldr r3, [r7, #4] + 80038a0: 3336 adds r3, #54 ; 0x36 + 80038a2: 3303 adds r3, #3 + 80038a4: 781b ldrb r3, [r3, #0] + 80038a6: 061a lsls r2, r3, #24 + 80038a8: 687b ldr r3, [r7, #4] + 80038aa: 3336 adds r3, #54 ; 0x36 + 80038ac: 3302 adds r3, #2 + 80038ae: 781b ldrb r3, [r3, #0] + 80038b0: 041b lsls r3, r3, #16 + 80038b2: 4313 orrs r3, r2 + 80038b4: 687a ldr r2, [r7, #4] + 80038b6: 3236 adds r2, #54 ; 0x36 + 80038b8: 3201 adds r2, #1 + 80038ba: 7812 ldrb r2, [r2, #0] + 80038bc: 0212 lsls r2, r2, #8 + 80038be: 4313 orrs r3, r2 + 80038c0: 687a ldr r2, [r7, #4] + 80038c2: f892 2036 ldrb.w r2, [r2, #54] ; 0x36 + 80038c6: 4313 orrs r3, r2 + 80038c8: f023 437f bic.w r3, r3, #4278190080 ; 0xff000000 + 80038cc: 4a13 ldr r2, [pc, #76] ; (800391c ) + 80038ce: 4293 cmp r3, r2 + 80038d0: d101 bne.n 80038d6 + return 0; + 80038d2: 2300 movs r3, #0 + 80038d4: e01c b.n 8003910 + if ((LD_DWORD(&fs->win.d8[BS_FilSysType32]) & 0xFFFFFF) == 0x544146) /* Check "FAT" string */ + 80038d6: 687b ldr r3, [r7, #4] + 80038d8: 3352 adds r3, #82 ; 0x52 + 80038da: 3303 adds r3, #3 + 80038dc: 781b ldrb r3, [r3, #0] + 80038de: 061a lsls r2, r3, #24 + 80038e0: 687b ldr r3, [r7, #4] + 80038e2: 3352 adds r3, #82 ; 0x52 + 80038e4: 3302 adds r3, #2 + 80038e6: 781b ldrb r3, [r3, #0] + 80038e8: 041b lsls r3, r3, #16 + 80038ea: 4313 orrs r3, r2 + 80038ec: 687a ldr r2, [r7, #4] + 80038ee: 3252 adds r2, #82 ; 0x52 + 80038f0: 3201 adds r2, #1 + 80038f2: 7812 ldrb r2, [r2, #0] + 80038f4: 0212 lsls r2, r2, #8 + 80038f6: 4313 orrs r3, r2 + 80038f8: 687a ldr r2, [r7, #4] + 80038fa: f892 2052 ldrb.w r2, [r2, #82] ; 0x52 + 80038fe: 4313 orrs r3, r2 + 8003900: f023 437f bic.w r3, r3, #4278190080 ; 0xff000000 + 8003904: 4a05 ldr r2, [pc, #20] ; (800391c ) + 8003906: 4293 cmp r3, r2 + 8003908: d101 bne.n 800390e + return 0; + 800390a: 2300 movs r3, #0 + 800390c: e000 b.n 8003910 + + return 1; + 800390e: 2301 movs r3, #1 +} + 8003910: 4618 mov r0, r3 + 8003912: 3708 adds r7, #8 + 8003914: 46bd mov sp, r7 + 8003916: bd80 pop {r7, pc} + 8003918: ffffaa55 .word 0xffffaa55 + 800391c: 00544146 .word 0x00544146 + +08003920 : +FRESULT find_volume ( /* FR_OK(0): successful, !=0: any error occurred */ + FATFS** rfs, /* Pointer to pointer to the found file system object */ + const TCHAR** path, /* Pointer to pointer to the path name (drive number) */ + BYTE wmode /* !=0: Check write protection for write access */ +) +{ + 8003920: b580 push {r7, lr} + 8003922: b096 sub sp, #88 ; 0x58 + 8003924: af00 add r7, sp, #0 + 8003926: 60f8 str r0, [r7, #12] + 8003928: 60b9 str r1, [r7, #8] + 800392a: 4613 mov r3, r2 + 800392c: 71fb strb r3, [r7, #7] + FATFS *fs; + UINT i; + + + /* Get logical drive number from the path name */ + *rfs = 0; + 800392e: 68fb ldr r3, [r7, #12] + 8003930: 2200 movs r2, #0 + 8003932: 601a str r2, [r3, #0] + vol = get_ldnumber(path); + 8003934: 68b8 ldr r0, [r7, #8] + 8003936: f7ff ff45 bl 80037c4 + 800393a: 63f8 str r0, [r7, #60] ; 0x3c + if (vol < 0) return FR_INVALID_DRIVE; + 800393c: 6bfb ldr r3, [r7, #60] ; 0x3c + 800393e: 2b00 cmp r3, #0 + 8003940: da01 bge.n 8003946 + 8003942: 230b movs r3, #11 + 8003944: e2aa b.n 8003e9c + + /* Check if the file system object is valid or not */ + fs = FatFs[vol]; /* Get pointer to the file system object */ + 8003946: 4a9e ldr r2, [pc, #632] ; (8003bc0 ) + 8003948: 6bfb ldr r3, [r7, #60] ; 0x3c + 800394a: f852 3023 ldr.w r3, [r2, r3, lsl #2] + 800394e: 63bb str r3, [r7, #56] ; 0x38 + if (!fs) return FR_NOT_ENABLED; /* Is the file system object available? */ + 8003950: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003952: 2b00 cmp r3, #0 + 8003954: d101 bne.n 800395a + 8003956: 230c movs r3, #12 + 8003958: e2a0 b.n 8003e9c + + ENTER_FF(fs); /* Lock the volume */ + *rfs = fs; /* Return pointer to the file system object */ + 800395a: 68fb ldr r3, [r7, #12] + 800395c: 6bba ldr r2, [r7, #56] ; 0x38 + 800395e: 601a str r2, [r3, #0] + + if (fs->fs_type) { /* If the volume has been mounted */ + 8003960: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003962: f893 3200 ldrb.w r3, [r3, #512] ; 0x200 + 8003966: 2b00 cmp r3, #0 + 8003968: d01b beq.n 80039a2 + stat = disk_status(fs->drv); + 800396a: 6bbb ldr r3, [r7, #56] ; 0x38 + 800396c: f893 3201 ldrb.w r3, [r3, #513] ; 0x201 + 8003970: 4618 mov r0, r3 + 8003972: f7fe fd55 bl 8002420 + 8003976: 4603 mov r3, r0 + 8003978: f887 3037 strb.w r3, [r7, #55] ; 0x37 + if (!(stat & STA_NOINIT)) { /* and the physical drive is kept initialized */ + 800397c: f897 3037 ldrb.w r3, [r7, #55] ; 0x37 + 8003980: f003 0301 and.w r3, r3, #1 + 8003984: 2b00 cmp r3, #0 + 8003986: d10c bne.n 80039a2 + if (!_FS_READONLY && wmode && (stat & STA_PROTECT)) /* Check write protection if needed */ + 8003988: 79fb ldrb r3, [r7, #7] + 800398a: 2b00 cmp r3, #0 + 800398c: d007 beq.n 800399e + 800398e: f897 3037 ldrb.w r3, [r7, #55] ; 0x37 + 8003992: f003 0304 and.w r3, r3, #4 + 8003996: 2b00 cmp r3, #0 + 8003998: d001 beq.n 800399e + return FR_WRITE_PROTECTED; + 800399a: 230a movs r3, #10 + 800399c: e27e b.n 8003e9c + return FR_OK; /* The file system object is valid */ + 800399e: 2300 movs r3, #0 + 80039a0: e27c b.n 8003e9c + } + + /* The file system object is not valid. */ + /* Following code attempts to mount the volume. (analyze BPB and initialize the fs object) */ + + fs->fs_type = 0; /* Clear the file system object */ + 80039a2: 6bbb ldr r3, [r7, #56] ; 0x38 + 80039a4: 2200 movs r2, #0 + 80039a6: f883 2200 strb.w r2, [r3, #512] ; 0x200 + fs->drv = LD2PD(vol); /* Bind the logical drive and a physical drive */ + 80039aa: 6bfb ldr r3, [r7, #60] ; 0x3c + 80039ac: b2da uxtb r2, r3 + 80039ae: 6bbb ldr r3, [r7, #56] ; 0x38 + 80039b0: f883 2201 strb.w r2, [r3, #513] ; 0x201 + stat = disk_initialize(fs->drv); /* Initialize the physical drive */ + 80039b4: 6bbb ldr r3, [r7, #56] ; 0x38 + 80039b6: f893 3201 ldrb.w r3, [r3, #513] ; 0x201 + 80039ba: 4618 mov r0, r3 + 80039bc: f7fe fd4a bl 8002454 + 80039c0: 4603 mov r3, r0 + 80039c2: f887 3037 strb.w r3, [r7, #55] ; 0x37 + if (stat & STA_NOINIT) /* Check if the initialization succeeded */ + 80039c6: f897 3037 ldrb.w r3, [r7, #55] ; 0x37 + 80039ca: f003 0301 and.w r3, r3, #1 + 80039ce: 2b00 cmp r3, #0 + 80039d0: d001 beq.n 80039d6 + return FR_NOT_READY; /* Failed to initialize due to no medium or hard error */ + 80039d2: 2303 movs r3, #3 + 80039d4: e262 b.n 8003e9c + if (!_FS_READONLY && wmode && (stat & STA_PROTECT)) /* Check disk write protection if needed */ + 80039d6: 79fb ldrb r3, [r7, #7] + 80039d8: 2b00 cmp r3, #0 + 80039da: d007 beq.n 80039ec + 80039dc: f897 3037 ldrb.w r3, [r7, #55] ; 0x37 + 80039e0: f003 0304 and.w r3, r3, #4 + 80039e4: 2b00 cmp r3, #0 + 80039e6: d001 beq.n 80039ec + return FR_WRITE_PROTECTED; + 80039e8: 230a movs r3, #10 + 80039ea: e257 b.n 8003e9c +#if _MAX_SS != _MIN_SS /* Get sector size (multiple sector size cfg only) */ + if (disk_ioctl(fs->drv, GET_SECTOR_SIZE, &SS(fs)) != RES_OK + || SS(fs) < _MIN_SS || SS(fs) > _MAX_SS) return FR_DISK_ERR; +#endif + /* Find an FAT partition on the drive. Supports only generic partitioning, FDISK and SFD. */ + bsect = 0; + 80039ec: 2300 movs r3, #0 + 80039ee: 653b str r3, [r7, #80] ; 0x50 + fmt = check_fs(fs, bsect); /* Load sector 0 and check if it is an FAT boot sector as SFD */ + 80039f0: 6d39 ldr r1, [r7, #80] ; 0x50 + 80039f2: 6bb8 ldr r0, [r7, #56] ; 0x38 + 80039f4: f7ff ff2a bl 800384c + 80039f8: 4603 mov r3, r0 + 80039fa: f887 3057 strb.w r3, [r7, #87] ; 0x57 + if (fmt == 1 || (!fmt && (LD2PT(vol)))) { /* Not an FAT boot sector or forced partition number */ + 80039fe: f897 3057 ldrb.w r3, [r7, #87] ; 0x57 + 8003a02: 2b01 cmp r3, #1 + 8003a04: d155 bne.n 8003ab2 + for (i = 0; i < 4; i++) { /* Get partition offset */ + 8003a06: 2300 movs r3, #0 + 8003a08: 643b str r3, [r7, #64] ; 0x40 + 8003a0a: e029 b.n 8003a60 + pt = fs->win.d8 + MBR_Table + i * SZ_PTE; + 8003a0c: 6bba ldr r2, [r7, #56] ; 0x38 + 8003a0e: 6c3b ldr r3, [r7, #64] ; 0x40 + 8003a10: 011b lsls r3, r3, #4 + 8003a12: f503 73df add.w r3, r3, #446 ; 0x1be + 8003a16: 4413 add r3, r2 + 8003a18: 633b str r3, [r7, #48] ; 0x30 + br[i] = pt[4] ? LD_DWORD(&pt[8]) : 0; + 8003a1a: 6b3b ldr r3, [r7, #48] ; 0x30 + 8003a1c: 3304 adds r3, #4 + 8003a1e: 781b ldrb r3, [r3, #0] + 8003a20: 2b00 cmp r3, #0 + 8003a22: d012 beq.n 8003a4a + 8003a24: 6b3b ldr r3, [r7, #48] ; 0x30 + 8003a26: 330b adds r3, #11 + 8003a28: 781b ldrb r3, [r3, #0] + 8003a2a: 061a lsls r2, r3, #24 + 8003a2c: 6b3b ldr r3, [r7, #48] ; 0x30 + 8003a2e: 330a adds r3, #10 + 8003a30: 781b ldrb r3, [r3, #0] + 8003a32: 041b lsls r3, r3, #16 + 8003a34: 4313 orrs r3, r2 + 8003a36: 6b3a ldr r2, [r7, #48] ; 0x30 + 8003a38: 3209 adds r2, #9 + 8003a3a: 7812 ldrb r2, [r2, #0] + 8003a3c: 0212 lsls r2, r2, #8 + 8003a3e: 4313 orrs r3, r2 + 8003a40: 6b3a ldr r2, [r7, #48] ; 0x30 + 8003a42: 3208 adds r2, #8 + 8003a44: 7812 ldrb r2, [r2, #0] + 8003a46: 431a orrs r2, r3 + 8003a48: e000 b.n 8003a4c + 8003a4a: 2200 movs r2, #0 + 8003a4c: 6c3b ldr r3, [r7, #64] ; 0x40 + 8003a4e: 009b lsls r3, r3, #2 + 8003a50: f107 0158 add.w r1, r7, #88 ; 0x58 + 8003a54: 440b add r3, r1 + 8003a56: f843 2c44 str.w r2, [r3, #-68] + for (i = 0; i < 4; i++) { /* Get partition offset */ + 8003a5a: 6c3b ldr r3, [r7, #64] ; 0x40 + 8003a5c: 3301 adds r3, #1 + 8003a5e: 643b str r3, [r7, #64] ; 0x40 + 8003a60: 6c3b ldr r3, [r7, #64] ; 0x40 + 8003a62: 2b03 cmp r3, #3 + 8003a64: d9d2 bls.n 8003a0c + } + i = LD2PT(vol); /* Partition number: 0:auto, 1-4:forced */ + 8003a66: 2300 movs r3, #0 + 8003a68: 643b str r3, [r7, #64] ; 0x40 + if (i) i--; + 8003a6a: 6c3b ldr r3, [r7, #64] ; 0x40 + 8003a6c: 2b00 cmp r3, #0 + 8003a6e: d002 beq.n 8003a76 + 8003a70: 6c3b ldr r3, [r7, #64] ; 0x40 + 8003a72: 3b01 subs r3, #1 + 8003a74: 643b str r3, [r7, #64] ; 0x40 + do { /* Find an FAT volume */ + bsect = br[i]; + 8003a76: 6c3b ldr r3, [r7, #64] ; 0x40 + 8003a78: 009b lsls r3, r3, #2 + 8003a7a: f107 0258 add.w r2, r7, #88 ; 0x58 + 8003a7e: 4413 add r3, r2 + 8003a80: f853 3c44 ldr.w r3, [r3, #-68] + 8003a84: 653b str r3, [r7, #80] ; 0x50 + fmt = bsect ? check_fs(fs, bsect) : 2; /* Check the partition */ + 8003a86: 6d3b ldr r3, [r7, #80] ; 0x50 + 8003a88: 2b00 cmp r3, #0 + 8003a8a: d005 beq.n 8003a98 + 8003a8c: 6d39 ldr r1, [r7, #80] ; 0x50 + 8003a8e: 6bb8 ldr r0, [r7, #56] ; 0x38 + 8003a90: f7ff fedc bl 800384c + 8003a94: 4603 mov r3, r0 + 8003a96: e000 b.n 8003a9a + 8003a98: 2302 movs r3, #2 + 8003a9a: f887 3057 strb.w r3, [r7, #87] ; 0x57 + } while (!LD2PT(vol) && fmt && ++i < 4); + 8003a9e: f897 3057 ldrb.w r3, [r7, #87] ; 0x57 + 8003aa2: 2b00 cmp r3, #0 + 8003aa4: d005 beq.n 8003ab2 + 8003aa6: 6c3b ldr r3, [r7, #64] ; 0x40 + 8003aa8: 3301 adds r3, #1 + 8003aaa: 643b str r3, [r7, #64] ; 0x40 + 8003aac: 6c3b ldr r3, [r7, #64] ; 0x40 + 8003aae: 2b03 cmp r3, #3 + 8003ab0: d9e1 bls.n 8003a76 + } + if (fmt == 3) return FR_DISK_ERR; /* An error occured in the disk I/O layer */ + 8003ab2: f897 3057 ldrb.w r3, [r7, #87] ; 0x57 + 8003ab6: 2b03 cmp r3, #3 + 8003ab8: d101 bne.n 8003abe + 8003aba: 2301 movs r3, #1 + 8003abc: e1ee b.n 8003e9c + if (fmt) return FR_NO_FILESYSTEM; /* No FAT volume is found */ + 8003abe: f897 3057 ldrb.w r3, [r7, #87] ; 0x57 + 8003ac2: 2b00 cmp r3, #0 + 8003ac4: d001 beq.n 8003aca + 8003ac6: 230d movs r3, #13 + 8003ac8: e1e8 b.n 8003e9c + + /* An FAT volume is found. Following code initializes the file system object */ + + if (LD_WORD(fs->win.d8 + BPB_BytsPerSec) != SS(fs)) /* (BPB_BytsPerSec must be equal to the physical sector size) */ + 8003aca: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003acc: 7b1b ldrb r3, [r3, #12] + 8003ace: 021b lsls r3, r3, #8 + 8003ad0: b21a sxth r2, r3 + 8003ad2: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003ad4: 7adb ldrb r3, [r3, #11] + 8003ad6: b21b sxth r3, r3 + 8003ad8: 4313 orrs r3, r2 + 8003ada: b21b sxth r3, r3 + 8003adc: f5b3 7f00 cmp.w r3, #512 ; 0x200 + 8003ae0: d001 beq.n 8003ae6 + return FR_NO_FILESYSTEM; + 8003ae2: 230d movs r3, #13 + 8003ae4: e1da b.n 8003e9c + + fasize = LD_WORD(fs->win.d8 + BPB_FATSz16); /* Number of sectors per FAT */ + 8003ae6: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003ae8: 7ddb ldrb r3, [r3, #23] + 8003aea: 021b lsls r3, r3, #8 + 8003aec: b21a sxth r2, r3 + 8003aee: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003af0: 7d9b ldrb r3, [r3, #22] + 8003af2: b21b sxth r3, r3 + 8003af4: 4313 orrs r3, r2 + 8003af6: b21b sxth r3, r3 + 8003af8: b29b uxth r3, r3 + 8003afa: 64fb str r3, [r7, #76] ; 0x4c + if (!fasize) fasize = LD_DWORD(fs->win.d8 + BPB_FATSz32); + 8003afc: 6cfb ldr r3, [r7, #76] ; 0x4c + 8003afe: 2b00 cmp r3, #0 + 8003b00: d112 bne.n 8003b28 + 8003b02: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003b04: f893 3027 ldrb.w r3, [r3, #39] ; 0x27 + 8003b08: 061a lsls r2, r3, #24 + 8003b0a: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003b0c: f893 3026 ldrb.w r3, [r3, #38] ; 0x26 + 8003b10: 041b lsls r3, r3, #16 + 8003b12: 4313 orrs r3, r2 + 8003b14: 6bba ldr r2, [r7, #56] ; 0x38 + 8003b16: f892 2025 ldrb.w r2, [r2, #37] ; 0x25 + 8003b1a: 0212 lsls r2, r2, #8 + 8003b1c: 4313 orrs r3, r2 + 8003b1e: 6bba ldr r2, [r7, #56] ; 0x38 + 8003b20: f892 2024 ldrb.w r2, [r2, #36] ; 0x24 + 8003b24: 4313 orrs r3, r2 + 8003b26: 64fb str r3, [r7, #76] ; 0x4c + fs->fsize = fasize; + 8003b28: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003b2a: 6cfa ldr r2, [r7, #76] ; 0x4c + 8003b2c: f8c3 2218 str.w r2, [r3, #536] ; 0x218 + + fs->n_fats = fs->win.d8[BPB_NumFATs]; /* Number of FAT copies */ + 8003b30: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003b32: 7c1a ldrb r2, [r3, #16] + 8003b34: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003b36: f883 2203 strb.w r2, [r3, #515] ; 0x203 + if (fs->n_fats != 1 && fs->n_fats != 2) /* (Must be 1 or 2) */ + 8003b3a: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003b3c: f893 3203 ldrb.w r3, [r3, #515] ; 0x203 + 8003b40: 2b01 cmp r3, #1 + 8003b42: d006 beq.n 8003b52 + 8003b44: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003b46: f893 3203 ldrb.w r3, [r3, #515] ; 0x203 + 8003b4a: 2b02 cmp r3, #2 + 8003b4c: d001 beq.n 8003b52 + return FR_NO_FILESYSTEM; + 8003b4e: 230d movs r3, #13 + 8003b50: e1a4 b.n 8003e9c + fasize *= fs->n_fats; /* Number of sectors for FAT area */ + 8003b52: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003b54: f893 3203 ldrb.w r3, [r3, #515] ; 0x203 + 8003b58: 461a mov r2, r3 + 8003b5a: 6cfb ldr r3, [r7, #76] ; 0x4c + 8003b5c: fb02 f303 mul.w r3, r2, r3 + 8003b60: 64fb str r3, [r7, #76] ; 0x4c + + fs->csize = fs->win.d8[BPB_SecPerClus]; /* Number of sectors per cluster */ + 8003b62: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003b64: 7b5a ldrb r2, [r3, #13] + 8003b66: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003b68: f883 2202 strb.w r2, [r3, #514] ; 0x202 + if (!fs->csize || (fs->csize & (fs->csize - 1))) /* (Must be power of 2) */ + 8003b6c: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003b6e: f893 3202 ldrb.w r3, [r3, #514] ; 0x202 + 8003b72: 2b00 cmp r3, #0 + 8003b74: d00a beq.n 8003b8c + 8003b76: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003b78: f893 3202 ldrb.w r3, [r3, #514] ; 0x202 + 8003b7c: 461a mov r2, r3 + 8003b7e: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003b80: f893 3202 ldrb.w r3, [r3, #514] ; 0x202 + 8003b84: 3b01 subs r3, #1 + 8003b86: 4013 ands r3, r2 + 8003b88: 2b00 cmp r3, #0 + 8003b8a: d001 beq.n 8003b90 + return FR_NO_FILESYSTEM; + 8003b8c: 230d movs r3, #13 + 8003b8e: e185 b.n 8003e9c + + fs->n_rootdir = LD_WORD(fs->win.d8 + BPB_RootEntCnt); /* Number of root directory entries */ + 8003b90: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003b92: 7c9b ldrb r3, [r3, #18] + 8003b94: 021b lsls r3, r3, #8 + 8003b96: b21a sxth r2, r3 + 8003b98: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003b9a: 7c5b ldrb r3, [r3, #17] + 8003b9c: b21b sxth r3, r3 + 8003b9e: 4313 orrs r3, r2 + 8003ba0: b21b sxth r3, r3 + 8003ba2: b29a uxth r2, r3 + 8003ba4: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003ba6: f8a3 2208 strh.w r2, [r3, #520] ; 0x208 + if (fs->n_rootdir % (SS(fs) / SZ_DIRE)) /* (Must be sector aligned) */ + 8003baa: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003bac: f8b3 3208 ldrh.w r3, [r3, #520] ; 0x208 + 8003bb0: f003 030f and.w r3, r3, #15 + 8003bb4: b29b uxth r3, r3 + 8003bb6: 2b00 cmp r3, #0 + 8003bb8: d004 beq.n 8003bc4 + return FR_NO_FILESYSTEM; + 8003bba: 230d movs r3, #13 + 8003bbc: e16e b.n 8003e9c + 8003bbe: bf00 nop + 8003bc0: 200000ac .word 0x200000ac + + tsect = LD_WORD(fs->win.d8 + BPB_TotSec16); /* Number of sectors on the volume */ + 8003bc4: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003bc6: 7d1b ldrb r3, [r3, #20] + 8003bc8: 021b lsls r3, r3, #8 + 8003bca: b21a sxth r2, r3 + 8003bcc: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003bce: 7cdb ldrb r3, [r3, #19] + 8003bd0: b21b sxth r3, r3 + 8003bd2: 4313 orrs r3, r2 + 8003bd4: b21b sxth r3, r3 + 8003bd6: b29b uxth r3, r3 + 8003bd8: 64bb str r3, [r7, #72] ; 0x48 + if (!tsect) tsect = LD_DWORD(fs->win.d8 + BPB_TotSec32); + 8003bda: 6cbb ldr r3, [r7, #72] ; 0x48 + 8003bdc: 2b00 cmp r3, #0 + 8003bde: d112 bne.n 8003c06 + 8003be0: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003be2: f893 3023 ldrb.w r3, [r3, #35] ; 0x23 + 8003be6: 061a lsls r2, r3, #24 + 8003be8: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003bea: f893 3022 ldrb.w r3, [r3, #34] ; 0x22 + 8003bee: 041b lsls r3, r3, #16 + 8003bf0: 4313 orrs r3, r2 + 8003bf2: 6bba ldr r2, [r7, #56] ; 0x38 + 8003bf4: f892 2021 ldrb.w r2, [r2, #33] ; 0x21 + 8003bf8: 0212 lsls r2, r2, #8 + 8003bfa: 4313 orrs r3, r2 + 8003bfc: 6bba ldr r2, [r7, #56] ; 0x38 + 8003bfe: f892 2020 ldrb.w r2, [r2, #32] + 8003c02: 4313 orrs r3, r2 + 8003c04: 64bb str r3, [r7, #72] ; 0x48 + + nrsv = LD_WORD(fs->win.d8 + BPB_RsvdSecCnt); /* Number of reserved sectors */ + 8003c06: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003c08: 7bdb ldrb r3, [r3, #15] + 8003c0a: 021b lsls r3, r3, #8 + 8003c0c: b21a sxth r2, r3 + 8003c0e: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003c10: 7b9b ldrb r3, [r3, #14] + 8003c12: b21b sxth r3, r3 + 8003c14: 4313 orrs r3, r2 + 8003c16: b21b sxth r3, r3 + 8003c18: 85fb strh r3, [r7, #46] ; 0x2e + if (!nrsv) return FR_NO_FILESYSTEM; /* (Must not be 0) */ + 8003c1a: 8dfb ldrh r3, [r7, #46] ; 0x2e + 8003c1c: 2b00 cmp r3, #0 + 8003c1e: d101 bne.n 8003c24 + 8003c20: 230d movs r3, #13 + 8003c22: e13b b.n 8003e9c + + /* Determine the FAT sub type */ + sysect = nrsv + fasize + fs->n_rootdir / (SS(fs) / SZ_DIRE); /* RSV + FAT + DIR */ + 8003c24: 8dfa ldrh r2, [r7, #46] ; 0x2e + 8003c26: 6cfb ldr r3, [r7, #76] ; 0x4c + 8003c28: 4413 add r3, r2 + 8003c2a: 6bba ldr r2, [r7, #56] ; 0x38 + 8003c2c: f8b2 2208 ldrh.w r2, [r2, #520] ; 0x208 + 8003c30: 0912 lsrs r2, r2, #4 + 8003c32: b292 uxth r2, r2 + 8003c34: 4413 add r3, r2 + 8003c36: 62bb str r3, [r7, #40] ; 0x28 + if (tsect < sysect) return FR_NO_FILESYSTEM; /* (Invalid volume size) */ + 8003c38: 6cba ldr r2, [r7, #72] ; 0x48 + 8003c3a: 6abb ldr r3, [r7, #40] ; 0x28 + 8003c3c: 429a cmp r2, r3 + 8003c3e: d201 bcs.n 8003c44 + 8003c40: 230d movs r3, #13 + 8003c42: e12b b.n 8003e9c + nclst = (tsect - sysect) / fs->csize; /* Number of clusters */ + 8003c44: 6cba ldr r2, [r7, #72] ; 0x48 + 8003c46: 6abb ldr r3, [r7, #40] ; 0x28 + 8003c48: 1ad3 subs r3, r2, r3 + 8003c4a: 6bba ldr r2, [r7, #56] ; 0x38 + 8003c4c: f892 2202 ldrb.w r2, [r2, #514] ; 0x202 + 8003c50: fbb3 f3f2 udiv r3, r3, r2 + 8003c54: 627b str r3, [r7, #36] ; 0x24 + if (!nclst) return FR_NO_FILESYSTEM; /* (Invalid volume size) */ + 8003c56: 6a7b ldr r3, [r7, #36] ; 0x24 + 8003c58: 2b00 cmp r3, #0 + 8003c5a: d101 bne.n 8003c60 + 8003c5c: 230d movs r3, #13 + 8003c5e: e11d b.n 8003e9c + fmt = FS_FAT12; + 8003c60: 2301 movs r3, #1 + 8003c62: f887 3057 strb.w r3, [r7, #87] ; 0x57 + if (nclst >= MIN_FAT16) fmt = FS_FAT16; + 8003c66: 6a7b ldr r3, [r7, #36] ; 0x24 + 8003c68: f640 72f5 movw r2, #4085 ; 0xff5 + 8003c6c: 4293 cmp r3, r2 + 8003c6e: d902 bls.n 8003c76 + 8003c70: 2302 movs r3, #2 + 8003c72: f887 3057 strb.w r3, [r7, #87] ; 0x57 + if (nclst >= MIN_FAT32) fmt = FS_FAT32; + 8003c76: 6a7b ldr r3, [r7, #36] ; 0x24 + 8003c78: f64f 72f5 movw r2, #65525 ; 0xfff5 + 8003c7c: 4293 cmp r3, r2 + 8003c7e: d902 bls.n 8003c86 + 8003c80: 2303 movs r3, #3 + 8003c82: f887 3057 strb.w r3, [r7, #87] ; 0x57 + + /* Boundaries and Limits */ + fs->n_fatent = nclst + 2; /* Number of FAT entries */ + 8003c86: 6a7b ldr r3, [r7, #36] ; 0x24 + 8003c88: 1c9a adds r2, r3, #2 + 8003c8a: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003c8c: f8c3 2214 str.w r2, [r3, #532] ; 0x214 + fs->volbase = bsect; /* Volume start sector */ + 8003c90: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003c92: 6d3a ldr r2, [r7, #80] ; 0x50 + 8003c94: f8c3 221c str.w r2, [r3, #540] ; 0x21c + fs->fatbase = bsect + nrsv; /* FAT start sector */ + 8003c98: 8dfa ldrh r2, [r7, #46] ; 0x2e + 8003c9a: 6d3b ldr r3, [r7, #80] ; 0x50 + 8003c9c: 441a add r2, r3 + 8003c9e: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003ca0: f8c3 2220 str.w r2, [r3, #544] ; 0x220 + fs->database = bsect + sysect; /* Data start sector */ + 8003ca4: 6d3a ldr r2, [r7, #80] ; 0x50 + 8003ca6: 6abb ldr r3, [r7, #40] ; 0x28 + 8003ca8: 441a add r2, r3 + 8003caa: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003cac: f8c3 2228 str.w r2, [r3, #552] ; 0x228 + if (fmt == FS_FAT32) { + 8003cb0: f897 3057 ldrb.w r3, [r7, #87] ; 0x57 + 8003cb4: 2b03 cmp r3, #3 + 8003cb6: d121 bne.n 8003cfc + if (fs->n_rootdir) return FR_NO_FILESYSTEM; /* (BPB_RootEntCnt must be 0) */ + 8003cb8: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003cba: f8b3 3208 ldrh.w r3, [r3, #520] ; 0x208 + 8003cbe: 2b00 cmp r3, #0 + 8003cc0: d001 beq.n 8003cc6 + 8003cc2: 230d movs r3, #13 + 8003cc4: e0ea b.n 8003e9c + fs->dirbase = LD_DWORD(fs->win.d8 + BPB_RootClus); /* Root directory start cluster */ + 8003cc6: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003cc8: f893 302f ldrb.w r3, [r3, #47] ; 0x2f + 8003ccc: 061a lsls r2, r3, #24 + 8003cce: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003cd0: f893 302e ldrb.w r3, [r3, #46] ; 0x2e + 8003cd4: 041b lsls r3, r3, #16 + 8003cd6: 4313 orrs r3, r2 + 8003cd8: 6bba ldr r2, [r7, #56] ; 0x38 + 8003cda: f892 202d ldrb.w r2, [r2, #45] ; 0x2d + 8003cde: 0212 lsls r2, r2, #8 + 8003ce0: 4313 orrs r3, r2 + 8003ce2: 6bba ldr r2, [r7, #56] ; 0x38 + 8003ce4: f892 202c ldrb.w r2, [r2, #44] ; 0x2c + 8003ce8: 431a orrs r2, r3 + 8003cea: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003cec: f8c3 2224 str.w r2, [r3, #548] ; 0x224 + szbfat = fs->n_fatent * 4; /* (Needed FAT size) */ + 8003cf0: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003cf2: f8d3 3214 ldr.w r3, [r3, #532] ; 0x214 + 8003cf6: 009b lsls r3, r3, #2 + 8003cf8: 647b str r3, [r7, #68] ; 0x44 + 8003cfa: e025 b.n 8003d48 + } else { + if (!fs->n_rootdir) return FR_NO_FILESYSTEM; /* (BPB_RootEntCnt must not be 0) */ + 8003cfc: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003cfe: f8b3 3208 ldrh.w r3, [r3, #520] ; 0x208 + 8003d02: 2b00 cmp r3, #0 + 8003d04: d101 bne.n 8003d0a + 8003d06: 230d movs r3, #13 + 8003d08: e0c8 b.n 8003e9c + fs->dirbase = fs->fatbase + fasize; /* Root directory start sector */ + 8003d0a: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003d0c: f8d3 2220 ldr.w r2, [r3, #544] ; 0x220 + 8003d10: 6cfb ldr r3, [r7, #76] ; 0x4c + 8003d12: 441a add r2, r3 + 8003d14: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003d16: f8c3 2224 str.w r2, [r3, #548] ; 0x224 + szbfat = (fmt == FS_FAT16) ? /* (Needed FAT size) */ + fs->n_fatent * 2 : fs->n_fatent * 3 / 2 + (fs->n_fatent & 1); + 8003d1a: f897 3057 ldrb.w r3, [r7, #87] ; 0x57 + 8003d1e: 2b02 cmp r3, #2 + 8003d20: d104 bne.n 8003d2c + 8003d22: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003d24: f8d3 3214 ldr.w r3, [r3, #532] ; 0x214 + 8003d28: 005b lsls r3, r3, #1 + 8003d2a: e00c b.n 8003d46 + 8003d2c: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003d2e: f8d3 2214 ldr.w r2, [r3, #532] ; 0x214 + 8003d32: 4613 mov r3, r2 + 8003d34: 005b lsls r3, r3, #1 + 8003d36: 4413 add r3, r2 + 8003d38: 085a lsrs r2, r3, #1 + 8003d3a: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003d3c: f8d3 3214 ldr.w r3, [r3, #532] ; 0x214 + 8003d40: f003 0301 and.w r3, r3, #1 + 8003d44: 4413 add r3, r2 + szbfat = (fmt == FS_FAT16) ? /* (Needed FAT size) */ + 8003d46: 647b str r3, [r7, #68] ; 0x44 + } + if (fs->fsize < (szbfat + (SS(fs) - 1)) / SS(fs)) /* (BPB_FATSz must not be less than the size needed) */ + 8003d48: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003d4a: f8d3 2218 ldr.w r2, [r3, #536] ; 0x218 + 8003d4e: 6c7b ldr r3, [r7, #68] ; 0x44 + 8003d50: f203 13ff addw r3, r3, #511 ; 0x1ff + 8003d54: 0a5b lsrs r3, r3, #9 + 8003d56: 429a cmp r2, r3 + 8003d58: d201 bcs.n 8003d5e + return FR_NO_FILESYSTEM; + 8003d5a: 230d movs r3, #13 + 8003d5c: e09e b.n 8003e9c + +#if !_FS_READONLY + /* Initialize cluster allocation information */ + fs->last_clust = fs->free_clust = 0xFFFFFFFF; + 8003d5e: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003d60: f04f 32ff mov.w r2, #4294967295 + 8003d64: f8c3 2210 str.w r2, [r3, #528] ; 0x210 + 8003d68: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003d6a: f8d3 2210 ldr.w r2, [r3, #528] ; 0x210 + 8003d6e: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003d70: f8c3 220c str.w r2, [r3, #524] ; 0x20c + + /* Get fsinfo if available */ + fs->fsi_flag = 0x80; + 8003d74: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003d76: 2280 movs r2, #128 ; 0x80 + 8003d78: f883 2205 strb.w r2, [r3, #517] ; 0x205 +#if (_FS_NOFSINFO & 3) != 3 + if (fmt == FS_FAT32 /* Enable FSINFO only if FAT32 and BPB_FSInfo is 1 */ + 8003d7c: f897 3057 ldrb.w r3, [r7, #87] ; 0x57 + 8003d80: 2b03 cmp r3, #3 + 8003d82: d177 bne.n 8003e74 + && LD_WORD(fs->win.d8 + BPB_FSInfo) == 1 + 8003d84: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003d86: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 8003d8a: 021b lsls r3, r3, #8 + 8003d8c: b21a sxth r2, r3 + 8003d8e: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003d90: f893 3030 ldrb.w r3, [r3, #48] ; 0x30 + 8003d94: b21b sxth r3, r3 + 8003d96: 4313 orrs r3, r2 + 8003d98: b21b sxth r3, r3 + 8003d9a: 2b01 cmp r3, #1 + 8003d9c: d16a bne.n 8003e74 + && move_window(fs, bsect + 1) == FR_OK) + 8003d9e: 6d3b ldr r3, [r7, #80] ; 0x50 + 8003da0: 3301 adds r3, #1 + 8003da2: 4619 mov r1, r3 + 8003da4: 6bb8 ldr r0, [r7, #56] ; 0x38 + 8003da6: f7fe fdec bl 8002982 + 8003daa: 4603 mov r3, r0 + 8003dac: 2b00 cmp r3, #0 + 8003dae: d161 bne.n 8003e74 + { + fs->fsi_flag = 0; + 8003db0: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003db2: 2200 movs r2, #0 + 8003db4: f883 2205 strb.w r2, [r3, #517] ; 0x205 + if (LD_WORD(fs->win.d8 + BS_55AA) == 0xAA55 /* Load FSINFO data if available */ + 8003db8: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003dba: f893 31ff ldrb.w r3, [r3, #511] ; 0x1ff + 8003dbe: 021b lsls r3, r3, #8 + 8003dc0: b21a sxth r2, r3 + 8003dc2: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003dc4: f893 31fe ldrb.w r3, [r3, #510] ; 0x1fe + 8003dc8: b21b sxth r3, r3 + 8003dca: 4313 orrs r3, r2 + 8003dcc: b21b sxth r3, r3 + 8003dce: 4a35 ldr r2, [pc, #212] ; (8003ea4 ) + 8003dd0: 4293 cmp r3, r2 + 8003dd2: d14f bne.n 8003e74 + && LD_DWORD(fs->win.d8 + FSI_LeadSig) == 0x41615252 + 8003dd4: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003dd6: 78db ldrb r3, [r3, #3] + 8003dd8: 061a lsls r2, r3, #24 + 8003dda: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003ddc: 789b ldrb r3, [r3, #2] + 8003dde: 041b lsls r3, r3, #16 + 8003de0: 4313 orrs r3, r2 + 8003de2: 6bba ldr r2, [r7, #56] ; 0x38 + 8003de4: 7852 ldrb r2, [r2, #1] + 8003de6: 0212 lsls r2, r2, #8 + 8003de8: 4313 orrs r3, r2 + 8003dea: 6bba ldr r2, [r7, #56] ; 0x38 + 8003dec: 7812 ldrb r2, [r2, #0] + 8003dee: 4313 orrs r3, r2 + 8003df0: 4a2d ldr r2, [pc, #180] ; (8003ea8 ) + 8003df2: 4293 cmp r3, r2 + 8003df4: d13e bne.n 8003e74 + && LD_DWORD(fs->win.d8 + FSI_StrucSig) == 0x61417272) + 8003df6: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003df8: f893 31e7 ldrb.w r3, [r3, #487] ; 0x1e7 + 8003dfc: 061a lsls r2, r3, #24 + 8003dfe: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003e00: f893 31e6 ldrb.w r3, [r3, #486] ; 0x1e6 + 8003e04: 041b lsls r3, r3, #16 + 8003e06: 4313 orrs r3, r2 + 8003e08: 6bba ldr r2, [r7, #56] ; 0x38 + 8003e0a: f892 21e5 ldrb.w r2, [r2, #485] ; 0x1e5 + 8003e0e: 0212 lsls r2, r2, #8 + 8003e10: 4313 orrs r3, r2 + 8003e12: 6bba ldr r2, [r7, #56] ; 0x38 + 8003e14: f892 21e4 ldrb.w r2, [r2, #484] ; 0x1e4 + 8003e18: 4313 orrs r3, r2 + 8003e1a: 4a24 ldr r2, [pc, #144] ; (8003eac ) + 8003e1c: 4293 cmp r3, r2 + 8003e1e: d129 bne.n 8003e74 + { +#if (_FS_NOFSINFO & 1) == 0 + fs->free_clust = LD_DWORD(fs->win.d8 + FSI_Free_Count); + 8003e20: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003e22: f893 31eb ldrb.w r3, [r3, #491] ; 0x1eb + 8003e26: 061a lsls r2, r3, #24 + 8003e28: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003e2a: f893 31ea ldrb.w r3, [r3, #490] ; 0x1ea + 8003e2e: 041b lsls r3, r3, #16 + 8003e30: 4313 orrs r3, r2 + 8003e32: 6bba ldr r2, [r7, #56] ; 0x38 + 8003e34: f892 21e9 ldrb.w r2, [r2, #489] ; 0x1e9 + 8003e38: 0212 lsls r2, r2, #8 + 8003e3a: 4313 orrs r3, r2 + 8003e3c: 6bba ldr r2, [r7, #56] ; 0x38 + 8003e3e: f892 21e8 ldrb.w r2, [r2, #488] ; 0x1e8 + 8003e42: 431a orrs r2, r3 + 8003e44: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003e46: f8c3 2210 str.w r2, [r3, #528] ; 0x210 +#endif +#if (_FS_NOFSINFO & 2) == 0 + fs->last_clust = LD_DWORD(fs->win.d8 + FSI_Nxt_Free); + 8003e4a: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003e4c: f893 31ef ldrb.w r3, [r3, #495] ; 0x1ef + 8003e50: 061a lsls r2, r3, #24 + 8003e52: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003e54: f893 31ee ldrb.w r3, [r3, #494] ; 0x1ee + 8003e58: 041b lsls r3, r3, #16 + 8003e5a: 4313 orrs r3, r2 + 8003e5c: 6bba ldr r2, [r7, #56] ; 0x38 + 8003e5e: f892 21ed ldrb.w r2, [r2, #493] ; 0x1ed + 8003e62: 0212 lsls r2, r2, #8 + 8003e64: 4313 orrs r3, r2 + 8003e66: 6bba ldr r2, [r7, #56] ; 0x38 + 8003e68: f892 21ec ldrb.w r2, [r2, #492] ; 0x1ec + 8003e6c: 431a orrs r2, r3 + 8003e6e: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003e70: f8c3 220c str.w r2, [r3, #524] ; 0x20c +#endif + } + } +#endif +#endif + fs->fs_type = fmt; /* FAT sub-type */ + 8003e74: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003e76: f897 2057 ldrb.w r2, [r7, #87] ; 0x57 + 8003e7a: f883 2200 strb.w r2, [r3, #512] ; 0x200 + fs->id = ++Fsid; /* File system mount ID */ + 8003e7e: 4b0c ldr r3, [pc, #48] ; (8003eb0 ) + 8003e80: 881b ldrh r3, [r3, #0] + 8003e82: 3301 adds r3, #1 + 8003e84: b29a uxth r2, r3 + 8003e86: 4b0a ldr r3, [pc, #40] ; (8003eb0 ) + 8003e88: 801a strh r2, [r3, #0] + 8003e8a: 4b09 ldr r3, [pc, #36] ; (8003eb0 ) + 8003e8c: 881a ldrh r2, [r3, #0] + 8003e8e: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003e90: f8a3 2206 strh.w r2, [r3, #518] ; 0x206 +#if _FS_RPATH + fs->cdir = 0; /* Set current directory to root */ +#endif +#if _FS_LOCK /* Clear file lock semaphores */ + clear_lock(fs); + 8003e94: 6bb8 ldr r0, [r7, #56] ; 0x38 + 8003e96: f7fe fd01 bl 800289c +#endif + + return FR_OK; + 8003e9a: 2300 movs r3, #0 +} + 8003e9c: 4618 mov r0, r3 + 8003e9e: 3758 adds r7, #88 ; 0x58 + 8003ea0: 46bd mov sp, r7 + 8003ea2: bd80 pop {r7, pc} + 8003ea4: ffffaa55 .word 0xffffaa55 + 8003ea8: 41615252 .word 0x41615252 + 8003eac: 61417272 .word 0x61417272 + 8003eb0: 200000b0 .word 0x200000b0 + +08003eb4 : + +static +FRESULT validate ( /* FR_OK(0): The object is valid, !=0: Invalid */ + void* obj /* Pointer to the object FIL/DIR to check validity */ +) +{ + 8003eb4: b580 push {r7, lr} + 8003eb6: b084 sub sp, #16 + 8003eb8: af00 add r7, sp, #0 + 8003eba: 6078 str r0, [r7, #4] + FIL *fil = (FIL*)obj; /* Assuming offset of .fs and .id in the FIL/DIR structure is identical */ + 8003ebc: 687b ldr r3, [r7, #4] + 8003ebe: 60fb str r3, [r7, #12] + + + if (!fil || !fil->fs || !fil->fs->fs_type || fil->fs->id != fil->id || (disk_status(fil->fs->drv) & STA_NOINIT)) + 8003ec0: 68fb ldr r3, [r7, #12] + 8003ec2: 2b00 cmp r3, #0 + 8003ec4: d022 beq.n 8003f0c + 8003ec6: 68fb ldr r3, [r7, #12] + 8003ec8: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 + 8003ecc: 2b00 cmp r3, #0 + 8003ece: d01d beq.n 8003f0c + 8003ed0: 68fb ldr r3, [r7, #12] + 8003ed2: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 + 8003ed6: f893 3200 ldrb.w r3, [r3, #512] ; 0x200 + 8003eda: 2b00 cmp r3, #0 + 8003edc: d016 beq.n 8003f0c + 8003ede: 68fb ldr r3, [r7, #12] + 8003ee0: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 + 8003ee4: f8b3 2206 ldrh.w r2, [r3, #518] ; 0x206 + 8003ee8: 68fb ldr r3, [r7, #12] + 8003eea: f8b3 3204 ldrh.w r3, [r3, #516] ; 0x204 + 8003eee: 429a cmp r2, r3 + 8003ef0: d10c bne.n 8003f0c + 8003ef2: 68fb ldr r3, [r7, #12] + 8003ef4: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 + 8003ef8: f893 3201 ldrb.w r3, [r3, #513] ; 0x201 + 8003efc: 4618 mov r0, r3 + 8003efe: f7fe fa8f bl 8002420 + 8003f02: 4603 mov r3, r0 + 8003f04: f003 0301 and.w r3, r3, #1 + 8003f08: 2b00 cmp r3, #0 + 8003f0a: d001 beq.n 8003f10 + return FR_INVALID_OBJECT; + 8003f0c: 2309 movs r3, #9 + 8003f0e: e000 b.n 8003f12 + + ENTER_FF(fil->fs); /* Lock file system */ + + return FR_OK; + 8003f10: 2300 movs r3, #0 +} + 8003f12: 4618 mov r0, r3 + 8003f14: 3710 adds r7, #16 + 8003f16: 46bd mov sp, r7 + 8003f18: bd80 pop {r7, pc} + ... + +08003f1c : +FRESULT f_mount ( + FATFS* fs, /* Pointer to the file system object (NULL:unmount)*/ + const TCHAR* path, /* Logical drive number to be mounted/unmounted */ + BYTE opt /* 0:Do not mount (delayed mount), 1:Mount immediately */ +) +{ + 8003f1c: b580 push {r7, lr} + 8003f1e: b088 sub sp, #32 + 8003f20: af00 add r7, sp, #0 + 8003f22: 60f8 str r0, [r7, #12] + 8003f24: 60b9 str r1, [r7, #8] + 8003f26: 4613 mov r3, r2 + 8003f28: 71fb strb r3, [r7, #7] + FATFS *cfs; + int vol; + FRESULT res; + const TCHAR *rp = path; + 8003f2a: 68bb ldr r3, [r7, #8] + 8003f2c: 613b str r3, [r7, #16] + + + vol = get_ldnumber(&rp); + 8003f2e: f107 0310 add.w r3, r7, #16 + 8003f32: 4618 mov r0, r3 + 8003f34: f7ff fc46 bl 80037c4 + 8003f38: 61f8 str r0, [r7, #28] + if (vol < 0) return FR_INVALID_DRIVE; + 8003f3a: 69fb ldr r3, [r7, #28] + 8003f3c: 2b00 cmp r3, #0 + 8003f3e: da01 bge.n 8003f44 + 8003f40: 230b movs r3, #11 + 8003f42: e02d b.n 8003fa0 + cfs = FatFs[vol]; /* Pointer to fs object */ + 8003f44: 4a18 ldr r2, [pc, #96] ; (8003fa8 ) + 8003f46: 69fb ldr r3, [r7, #28] + 8003f48: f852 3023 ldr.w r3, [r2, r3, lsl #2] + 8003f4c: 61bb str r3, [r7, #24] + + if (cfs) { + 8003f4e: 69bb ldr r3, [r7, #24] + 8003f50: 2b00 cmp r3, #0 + 8003f52: d006 beq.n 8003f62 +#if _FS_LOCK + clear_lock(cfs); + 8003f54: 69b8 ldr r0, [r7, #24] + 8003f56: f7fe fca1 bl 800289c +#endif +#if _FS_REENTRANT /* Discard sync object of the current volume */ + if (!ff_del_syncobj(cfs->sobj)) return FR_INT_ERR; +#endif + cfs->fs_type = 0; /* Clear old fs object */ + 8003f5a: 69bb ldr r3, [r7, #24] + 8003f5c: 2200 movs r2, #0 + 8003f5e: f883 2200 strb.w r2, [r3, #512] ; 0x200 + } + + if (fs) { + 8003f62: 68fb ldr r3, [r7, #12] + 8003f64: 2b00 cmp r3, #0 + 8003f66: d003 beq.n 8003f70 + fs->fs_type = 0; /* Clear new fs object */ + 8003f68: 68fb ldr r3, [r7, #12] + 8003f6a: 2200 movs r2, #0 + 8003f6c: f883 2200 strb.w r2, [r3, #512] ; 0x200 +#if _FS_REENTRANT /* Create sync object for the new volume */ + if (!ff_cre_syncobj((BYTE)vol, &fs->sobj)) return FR_INT_ERR; +#endif + } + FatFs[vol] = fs; /* Register new fs object */ + 8003f70: 68fa ldr r2, [r7, #12] + 8003f72: 490d ldr r1, [pc, #52] ; (8003fa8 ) + 8003f74: 69fb ldr r3, [r7, #28] + 8003f76: f841 2023 str.w r2, [r1, r3, lsl #2] + + if (!fs || opt != 1) return FR_OK; /* Do not mount now, it will be mounted later */ + 8003f7a: 68fb ldr r3, [r7, #12] + 8003f7c: 2b00 cmp r3, #0 + 8003f7e: d002 beq.n 8003f86 + 8003f80: 79fb ldrb r3, [r7, #7] + 8003f82: 2b01 cmp r3, #1 + 8003f84: d001 beq.n 8003f8a + 8003f86: 2300 movs r3, #0 + 8003f88: e00a b.n 8003fa0 + + res = find_volume(&fs, &path, 0); /* Force mounted the volume */ + 8003f8a: f107 0108 add.w r1, r7, #8 + 8003f8e: f107 030c add.w r3, r7, #12 + 8003f92: 2200 movs r2, #0 + 8003f94: 4618 mov r0, r3 + 8003f96: f7ff fcc3 bl 8003920 + 8003f9a: 4603 mov r3, r0 + 8003f9c: 75fb strb r3, [r7, #23] + LEAVE_FF(fs, res); + 8003f9e: 7dfb ldrb r3, [r7, #23] +} + 8003fa0: 4618 mov r0, r3 + 8003fa2: 3720 adds r7, #32 + 8003fa4: 46bd mov sp, r7 + 8003fa6: bd80 pop {r7, pc} + 8003fa8: 200000ac .word 0x200000ac + +08003fac : +FRESULT f_open ( + FIL* fp, /* Pointer to the blank file object */ + const TCHAR* path, /* Pointer to the file name */ + BYTE mode /* Access mode and file open mode flags */ +) +{ + 8003fac: b580 push {r7, lr} + 8003fae: f5ad 7d14 sub.w sp, sp, #592 ; 0x250 + 8003fb2: af00 add r7, sp, #0 + 8003fb4: f107 030c add.w r3, r7, #12 + 8003fb8: 6018 str r0, [r3, #0] + 8003fba: f107 0308 add.w r3, r7, #8 + 8003fbe: 6019 str r1, [r3, #0] + 8003fc0: 1dfb adds r3, r7, #7 + 8003fc2: 701a strb r2, [r3, #0] +#if !_FS_READONLY + DWORD dw, cl; +#endif + + + if (!fp) return FR_INVALID_OBJECT; + 8003fc4: f107 030c add.w r3, r7, #12 + 8003fc8: 681b ldr r3, [r3, #0] + 8003fca: 2b00 cmp r3, #0 + 8003fcc: d101 bne.n 8003fd2 + 8003fce: 2309 movs r3, #9 + 8003fd0: e1f2 b.n 80043b8 + fp->fs = 0; /* Clear file object */ + 8003fd2: f107 030c add.w r3, r7, #12 + 8003fd6: 681b ldr r3, [r3, #0] + 8003fd8: 2200 movs r2, #0 + 8003fda: f8c3 2200 str.w r2, [r3, #512] ; 0x200 + + /* Get logical drive number */ +#if !_FS_READONLY + mode &= FA_READ | FA_WRITE | FA_CREATE_ALWAYS | FA_OPEN_ALWAYS | FA_CREATE_NEW; + 8003fde: 1dfb adds r3, r7, #7 + 8003fe0: 1dfa adds r2, r7, #7 + 8003fe2: 7812 ldrb r2, [r2, #0] + 8003fe4: f002 021f and.w r2, r2, #31 + 8003fe8: 701a strb r2, [r3, #0] + res = find_volume(&dj.fs, &path, (BYTE)(mode & ~FA_READ)); + 8003fea: 1dfb adds r3, r7, #7 + 8003fec: 781b ldrb r3, [r3, #0] + 8003fee: f023 0301 bic.w r3, r3, #1 + 8003ff2: b2da uxtb r2, r3 + 8003ff4: f107 0108 add.w r1, r7, #8 + 8003ff8: f107 0320 add.w r3, r7, #32 + 8003ffc: f503 7300 add.w r3, r3, #512 ; 0x200 + 8004000: 4618 mov r0, r3 + 8004002: f7ff fc8d bl 8003920 + 8004006: 4603 mov r3, r0 + 8004008: f887 324f strb.w r3, [r7, #591] ; 0x24f +#else + mode &= FA_READ; + res = find_volume(&dj.fs, &path, 0); +#endif + if (res == FR_OK) { + 800400c: f897 324f ldrb.w r3, [r7, #591] ; 0x24f + 8004010: 2b00 cmp r3, #0 + 8004012: f040 81cf bne.w 80043b4 + INIT_BUF(dj); + 8004016: f107 0320 add.w r3, r7, #32 + 800401a: f107 0214 add.w r2, r7, #20 + 800401e: f8c3 2218 str.w r2, [r3, #536] ; 0x218 + res = follow_path(&dj, path); /* Follow the file path */ + 8004022: f107 0308 add.w r3, r7, #8 + 8004026: 681a ldr r2, [r3, #0] + 8004028: f107 0320 add.w r3, r7, #32 + 800402c: 4611 mov r1, r2 + 800402e: 4618 mov r0, r3 + 8004030: f7ff fb5a bl 80036e8 + 8004034: 4603 mov r3, r0 + 8004036: f887 324f strb.w r3, [r7, #591] ; 0x24f + dir = dj.dir; + 800403a: f107 0320 add.w r3, r7, #32 + 800403e: f8d3 3214 ldr.w r3, [r3, #532] ; 0x214 + 8004042: f8c7 3248 str.w r3, [r7, #584] ; 0x248 +#if !_FS_READONLY /* R/W configuration */ + if (res == FR_OK) { + 8004046: f897 324f ldrb.w r3, [r7, #591] ; 0x24f + 800404a: 2b00 cmp r3, #0 + 800404c: d11a bne.n 8004084 + if (!dir) /* Default directory itself */ + 800404e: f8d7 3248 ldr.w r3, [r7, #584] ; 0x248 + 8004052: 2b00 cmp r3, #0 + 8004054: d103 bne.n 800405e + res = FR_INVALID_NAME; + 8004056: 2306 movs r3, #6 + 8004058: f887 324f strb.w r3, [r7, #591] ; 0x24f + 800405c: e012 b.n 8004084 +#if _FS_LOCK + else + res = chk_lock(&dj, (mode & ~FA_READ) ? 1 : 0); + 800405e: 1dfb adds r3, r7, #7 + 8004060: 781b ldrb r3, [r3, #0] + 8004062: f023 0301 bic.w r3, r3, #1 + 8004066: 2b00 cmp r3, #0 + 8004068: bf14 ite ne + 800406a: 2301 movne r3, #1 + 800406c: 2300 moveq r3, #0 + 800406e: b2db uxtb r3, r3 + 8004070: 461a mov r2, r3 + 8004072: f107 0320 add.w r3, r7, #32 + 8004076: 4611 mov r1, r2 + 8004078: 4618 mov r0, r3 + 800407a: f7fe fac9 bl 8002610 + 800407e: 4603 mov r3, r0 + 8004080: f887 324f strb.w r3, [r7, #591] ; 0x24f +#endif + } + /* Create or Open a file */ + if (mode & (FA_CREATE_ALWAYS | FA_OPEN_ALWAYS | FA_CREATE_NEW)) { + 8004084: 1dfb adds r3, r7, #7 + 8004086: 781b ldrb r3, [r3, #0] + 8004088: f003 031c and.w r3, r3, #28 + 800408c: 2b00 cmp r3, #0 + 800408e: f000 80cc beq.w 800422a + if (res != FR_OK) { /* No file, create new */ + 8004092: f897 324f ldrb.w r3, [r7, #591] ; 0x24f + 8004096: 2b00 cmp r3, #0 + 8004098: d01f beq.n 80040da + if (res == FR_NO_FILE) /* There is no file to open, create a new entry */ + 800409a: f897 324f ldrb.w r3, [r7, #591] ; 0x24f + 800409e: 2b04 cmp r3, #4 + 80040a0: d10e bne.n 80040c0 +#if _FS_LOCK + res = enq_lock() ? dir_register(&dj) : FR_TOO_MANY_OPEN_FILES; + 80040a2: f7fe fb21 bl 80026e8 + 80040a6: 4603 mov r3, r0 + 80040a8: 2b00 cmp r3, #0 + 80040aa: d006 beq.n 80040ba + 80040ac: f107 0320 add.w r3, r7, #32 + 80040b0: 4618 mov r0, r3 + 80040b2: f7ff fa1f bl 80034f4 + 80040b6: 4603 mov r3, r0 + 80040b8: e000 b.n 80040bc + 80040ba: 2312 movs r3, #18 + 80040bc: f887 324f strb.w r3, [r7, #591] ; 0x24f +#else + res = dir_register(&dj); +#endif + mode |= FA_CREATE_ALWAYS; /* File is created */ + 80040c0: 1dfb adds r3, r7, #7 + 80040c2: 1dfa adds r2, r7, #7 + 80040c4: 7812 ldrb r2, [r2, #0] + 80040c6: f042 0208 orr.w r2, r2, #8 + 80040ca: 701a strb r2, [r3, #0] + dir = dj.dir; /* New entry */ + 80040cc: f107 0320 add.w r3, r7, #32 + 80040d0: f8d3 3214 ldr.w r3, [r3, #532] ; 0x214 + 80040d4: f8c7 3248 str.w r3, [r7, #584] ; 0x248 + 80040d8: e014 b.n 8004104 + } + else { /* Any object is already existing */ + if (dir[DIR_Attr] & (AM_RDO | AM_DIR)) { /* Cannot overwrite it (R/O or DIR) */ + 80040da: f8d7 3248 ldr.w r3, [r7, #584] ; 0x248 + 80040de: 330b adds r3, #11 + 80040e0: 781b ldrb r3, [r3, #0] + 80040e2: f003 0311 and.w r3, r3, #17 + 80040e6: 2b00 cmp r3, #0 + 80040e8: d003 beq.n 80040f2 + res = FR_DENIED; + 80040ea: 2307 movs r3, #7 + 80040ec: f887 324f strb.w r3, [r7, #591] ; 0x24f + 80040f0: e008 b.n 8004104 + } else { + if (mode & FA_CREATE_NEW) /* Cannot create as new file */ + 80040f2: 1dfb adds r3, r7, #7 + 80040f4: 781b ldrb r3, [r3, #0] + 80040f6: f003 0304 and.w r3, r3, #4 + 80040fa: 2b00 cmp r3, #0 + 80040fc: d002 beq.n 8004104 + res = FR_EXIST; + 80040fe: 2308 movs r3, #8 + 8004100: f887 324f strb.w r3, [r7, #591] ; 0x24f + } + } + if (res == FR_OK && (mode & FA_CREATE_ALWAYS)) { /* Truncate it if overwrite mode */ + 8004104: f897 324f ldrb.w r3, [r7, #591] ; 0x24f + 8004108: 2b00 cmp r3, #0 + 800410a: f040 80af bne.w 800426c + 800410e: 1dfb adds r3, r7, #7 + 8004110: 781b ldrb r3, [r3, #0] + 8004112: f003 0308 and.w r3, r3, #8 + 8004116: 2b00 cmp r3, #0 + 8004118: f000 80a8 beq.w 800426c + dw = GET_FATTIME(); /* Created time */ + 800411c: f7fe f910 bl 8002340 + 8004120: f8c7 0244 str.w r0, [r7, #580] ; 0x244 + ST_DWORD(dir + DIR_CrtTime, dw); + 8004124: f8d7 3248 ldr.w r3, [r7, #584] ; 0x248 + 8004128: 330e adds r3, #14 + 800412a: f8d7 2244 ldr.w r2, [r7, #580] ; 0x244 + 800412e: b2d2 uxtb r2, r2 + 8004130: 701a strb r2, [r3, #0] + 8004132: f8d7 3244 ldr.w r3, [r7, #580] ; 0x244 + 8004136: b29b uxth r3, r3 + 8004138: 0a1b lsrs r3, r3, #8 + 800413a: b29a uxth r2, r3 + 800413c: f8d7 3248 ldr.w r3, [r7, #584] ; 0x248 + 8004140: 330f adds r3, #15 + 8004142: b2d2 uxtb r2, r2 + 8004144: 701a strb r2, [r3, #0] + 8004146: f8d7 3244 ldr.w r3, [r7, #580] ; 0x244 + 800414a: 0c1a lsrs r2, r3, #16 + 800414c: f8d7 3248 ldr.w r3, [r7, #584] ; 0x248 + 8004150: 3310 adds r3, #16 + 8004152: b2d2 uxtb r2, r2 + 8004154: 701a strb r2, [r3, #0] + 8004156: f8d7 3244 ldr.w r3, [r7, #580] ; 0x244 + 800415a: 0e1a lsrs r2, r3, #24 + 800415c: f8d7 3248 ldr.w r3, [r7, #584] ; 0x248 + 8004160: 3311 adds r3, #17 + 8004162: b2d2 uxtb r2, r2 + 8004164: 701a strb r2, [r3, #0] + dir[DIR_Attr] = 0; /* Reset attribute */ + 8004166: f8d7 3248 ldr.w r3, [r7, #584] ; 0x248 + 800416a: 330b adds r3, #11 + 800416c: 2200 movs r2, #0 + 800416e: 701a strb r2, [r3, #0] + ST_DWORD(dir + DIR_FileSize, 0);/* size = 0 */ + 8004170: f8d7 3248 ldr.w r3, [r7, #584] ; 0x248 + 8004174: 331c adds r3, #28 + 8004176: 2200 movs r2, #0 + 8004178: 701a strb r2, [r3, #0] + 800417a: f8d7 3248 ldr.w r3, [r7, #584] ; 0x248 + 800417e: 331d adds r3, #29 + 8004180: 2200 movs r2, #0 + 8004182: 701a strb r2, [r3, #0] + 8004184: f8d7 3248 ldr.w r3, [r7, #584] ; 0x248 + 8004188: 331e adds r3, #30 + 800418a: 2200 movs r2, #0 + 800418c: 701a strb r2, [r3, #0] + 800418e: f8d7 3248 ldr.w r3, [r7, #584] ; 0x248 + 8004192: 331f adds r3, #31 + 8004194: 2200 movs r2, #0 + 8004196: 701a strb r2, [r3, #0] + cl = ld_clust(dj.fs, dir); /* Get start cluster */ + 8004198: f107 0320 add.w r3, r7, #32 + 800419c: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 + 80041a0: f8d7 1248 ldr.w r1, [r7, #584] ; 0x248 + 80041a4: 4618 mov r0, r3 + 80041a6: f7ff f903 bl 80033b0 + 80041aa: f8c7 0240 str.w r0, [r7, #576] ; 0x240 + st_clust(dir, 0); /* cluster = 0 */ + 80041ae: 2100 movs r1, #0 + 80041b0: f8d7 0248 ldr.w r0, [r7, #584] ; 0x248 + 80041b4: f7ff f929 bl 800340a + dj.fs->wflag = 1; + 80041b8: f107 0320 add.w r3, r7, #32 + 80041bc: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 + 80041c0: 2201 movs r2, #1 + 80041c2: f883 2204 strb.w r2, [r3, #516] ; 0x204 + if (cl) { /* Remove the cluster chain if exist */ + 80041c6: f8d7 3240 ldr.w r3, [r7, #576] ; 0x240 + 80041ca: 2b00 cmp r3, #0 + 80041cc: d04e beq.n 800426c + dw = dj.fs->winsect; + 80041ce: f107 0320 add.w r3, r7, #32 + 80041d2: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 + 80041d6: f8d3 322c ldr.w r3, [r3, #556] ; 0x22c + 80041da: f8c7 3244 str.w r3, [r7, #580] ; 0x244 + res = remove_chain(dj.fs, cl); + 80041de: f107 0320 add.w r3, r7, #32 + 80041e2: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 + 80041e6: f8d7 1240 ldr.w r1, [r7, #576] ; 0x240 + 80041ea: 4618 mov r0, r3 + 80041ec: f7fe fde0 bl 8002db0 + 80041f0: 4603 mov r3, r0 + 80041f2: f887 324f strb.w r3, [r7, #591] ; 0x24f + if (res == FR_OK) { + 80041f6: f897 324f ldrb.w r3, [r7, #591] ; 0x24f + 80041fa: 2b00 cmp r3, #0 + 80041fc: d136 bne.n 800426c + dj.fs->last_clust = cl - 1; /* Reuse the cluster hole */ + 80041fe: f107 0320 add.w r3, r7, #32 + 8004202: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 + 8004206: f8d7 2240 ldr.w r2, [r7, #576] ; 0x240 + 800420a: 3a01 subs r2, #1 + 800420c: f8c3 220c str.w r2, [r3, #524] ; 0x20c + res = move_window(dj.fs, dw); + 8004210: f107 0320 add.w r3, r7, #32 + 8004214: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 + 8004218: f8d7 1244 ldr.w r1, [r7, #580] ; 0x244 + 800421c: 4618 mov r0, r3 + 800421e: f7fe fbb0 bl 8002982 + 8004222: 4603 mov r3, r0 + 8004224: f887 324f strb.w r3, [r7, #591] ; 0x24f + 8004228: e020 b.n 800426c + } + } + } + } + else { /* Open an existing file */ + if (res == FR_OK) { /* Follow succeeded */ + 800422a: f897 324f ldrb.w r3, [r7, #591] ; 0x24f + 800422e: 2b00 cmp r3, #0 + 8004230: d11c bne.n 800426c + if (dir[DIR_Attr] & AM_DIR) { /* It is a directory */ + 8004232: f8d7 3248 ldr.w r3, [r7, #584] ; 0x248 + 8004236: 330b adds r3, #11 + 8004238: 781b ldrb r3, [r3, #0] + 800423a: f003 0310 and.w r3, r3, #16 + 800423e: 2b00 cmp r3, #0 + 8004240: d003 beq.n 800424a + res = FR_NO_FILE; + 8004242: 2304 movs r3, #4 + 8004244: f887 324f strb.w r3, [r7, #591] ; 0x24f + 8004248: e010 b.n 800426c + } else { + if ((mode & FA_WRITE) && (dir[DIR_Attr] & AM_RDO)) /* R/O violation */ + 800424a: 1dfb adds r3, r7, #7 + 800424c: 781b ldrb r3, [r3, #0] + 800424e: f003 0302 and.w r3, r3, #2 + 8004252: 2b00 cmp r3, #0 + 8004254: d00a beq.n 800426c + 8004256: f8d7 3248 ldr.w r3, [r7, #584] ; 0x248 + 800425a: 330b adds r3, #11 + 800425c: 781b ldrb r3, [r3, #0] + 800425e: f003 0301 and.w r3, r3, #1 + 8004262: 2b00 cmp r3, #0 + 8004264: d002 beq.n 800426c + res = FR_DENIED; + 8004266: 2307 movs r3, #7 + 8004268: f887 324f strb.w r3, [r7, #591] ; 0x24f + } + } + } + if (res == FR_OK) { + 800426c: f897 324f ldrb.w r3, [r7, #591] ; 0x24f + 8004270: 2b00 cmp r3, #0 + 8004272: d13d bne.n 80042f0 + if (mode & FA_CREATE_ALWAYS) /* Set file change flag if created or overwritten */ + 8004274: 1dfb adds r3, r7, #7 + 8004276: 781b ldrb r3, [r3, #0] + 8004278: f003 0308 and.w r3, r3, #8 + 800427c: 2b00 cmp r3, #0 + 800427e: d005 beq.n 800428c + mode |= FA__WRITTEN; + 8004280: 1dfb adds r3, r7, #7 + 8004282: 1dfa adds r2, r7, #7 + 8004284: 7812 ldrb r2, [r2, #0] + 8004286: f042 0220 orr.w r2, r2, #32 + 800428a: 701a strb r2, [r3, #0] + fp->dir_sect = dj.fs->winsect; /* Pointer to the directory entry */ + 800428c: f107 0320 add.w r3, r7, #32 + 8004290: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 + 8004294: f8d3 222c ldr.w r2, [r3, #556] ; 0x22c + 8004298: f107 030c add.w r3, r7, #12 + 800429c: 681b ldr r3, [r3, #0] + 800429e: f8c3 221c str.w r2, [r3, #540] ; 0x21c + fp->dir_ptr = dir; + 80042a2: f107 030c add.w r3, r7, #12 + 80042a6: 681b ldr r3, [r3, #0] + 80042a8: f8d7 2248 ldr.w r2, [r7, #584] ; 0x248 + 80042ac: f8c3 2220 str.w r2, [r3, #544] ; 0x220 +#if _FS_LOCK + fp->lockid = inc_lock(&dj, (mode & ~FA_READ) ? 1 : 0); + 80042b0: 1dfb adds r3, r7, #7 + 80042b2: 781b ldrb r3, [r3, #0] + 80042b4: f023 0301 bic.w r3, r3, #1 + 80042b8: 2b00 cmp r3, #0 + 80042ba: bf14 ite ne + 80042bc: 2301 movne r3, #1 + 80042be: 2300 moveq r3, #0 + 80042c0: b2db uxtb r3, r3 + 80042c2: 461a mov r2, r3 + 80042c4: f107 0320 add.w r3, r7, #32 + 80042c8: 4611 mov r1, r2 + 80042ca: 4618 mov r0, r3 + 80042cc: f7fe fa30 bl 8002730 + 80042d0: 4602 mov r2, r0 + 80042d2: f107 030c add.w r3, r7, #12 + 80042d6: 681b ldr r3, [r3, #0] + 80042d8: f8c3 2228 str.w r2, [r3, #552] ; 0x228 + if (!fp->lockid) res = FR_INT_ERR; + 80042dc: f107 030c add.w r3, r7, #12 + 80042e0: 681b ldr r3, [r3, #0] + 80042e2: f8d3 3228 ldr.w r3, [r3, #552] ; 0x228 + 80042e6: 2b00 cmp r3, #0 + 80042e8: d102 bne.n 80042f0 + 80042ea: 2302 movs r3, #2 + 80042ec: f887 324f strb.w r3, [r7, #591] ; 0x24f + } + } +#endif + FREE_BUF(); + + if (res == FR_OK) { + 80042f0: f897 324f ldrb.w r3, [r7, #591] ; 0x24f + 80042f4: 2b00 cmp r3, #0 + 80042f6: d15d bne.n 80043b4 + fp->flag = mode; /* File access mode */ + 80042f8: f107 030c add.w r3, r7, #12 + 80042fc: 681b ldr r3, [r3, #0] + 80042fe: 1dfa adds r2, r7, #7 + 8004300: 7812 ldrb r2, [r2, #0] + 8004302: f883 2206 strb.w r2, [r3, #518] ; 0x206 + fp->err = 0; /* Clear error flag */ + 8004306: f107 030c add.w r3, r7, #12 + 800430a: 681b ldr r3, [r3, #0] + 800430c: 2200 movs r2, #0 + 800430e: f883 2207 strb.w r2, [r3, #519] ; 0x207 + fp->sclust = ld_clust(dj.fs, dir); /* File start cluster */ + 8004312: f107 0320 add.w r3, r7, #32 + 8004316: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 + 800431a: f8d7 1248 ldr.w r1, [r7, #584] ; 0x248 + 800431e: 4618 mov r0, r3 + 8004320: f7ff f846 bl 80033b0 + 8004324: 4602 mov r2, r0 + 8004326: f107 030c add.w r3, r7, #12 + 800432a: 681b ldr r3, [r3, #0] + 800432c: f8c3 2210 str.w r2, [r3, #528] ; 0x210 + fp->fsize = LD_DWORD(dir + DIR_FileSize); /* File size */ + 8004330: f8d7 3248 ldr.w r3, [r7, #584] ; 0x248 + 8004334: 331f adds r3, #31 + 8004336: 781b ldrb r3, [r3, #0] + 8004338: 061a lsls r2, r3, #24 + 800433a: f8d7 3248 ldr.w r3, [r7, #584] ; 0x248 + 800433e: 331e adds r3, #30 + 8004340: 781b ldrb r3, [r3, #0] + 8004342: 041b lsls r3, r3, #16 + 8004344: 4313 orrs r3, r2 + 8004346: f8d7 2248 ldr.w r2, [r7, #584] ; 0x248 + 800434a: 321d adds r2, #29 + 800434c: 7812 ldrb r2, [r2, #0] + 800434e: 0212 lsls r2, r2, #8 + 8004350: 4313 orrs r3, r2 + 8004352: f8d7 2248 ldr.w r2, [r7, #584] ; 0x248 + 8004356: 321c adds r2, #28 + 8004358: 7812 ldrb r2, [r2, #0] + 800435a: 431a orrs r2, r3 + 800435c: f107 030c add.w r3, r7, #12 + 8004360: 681b ldr r3, [r3, #0] + 8004362: f8c3 220c str.w r2, [r3, #524] ; 0x20c + fp->fptr = 0; /* File pointer */ + 8004366: f107 030c add.w r3, r7, #12 + 800436a: 681b ldr r3, [r3, #0] + 800436c: 2200 movs r2, #0 + 800436e: f8c3 2208 str.w r2, [r3, #520] ; 0x208 + fp->dsect = 0; + 8004372: f107 030c add.w r3, r7, #12 + 8004376: 681b ldr r3, [r3, #0] + 8004378: 2200 movs r2, #0 + 800437a: f8c3 2218 str.w r2, [r3, #536] ; 0x218 +#if _USE_FASTSEEK + fp->cltbl = 0; /* Normal seek mode */ + 800437e: f107 030c add.w r3, r7, #12 + 8004382: 681b ldr r3, [r3, #0] + 8004384: 2200 movs r2, #0 + 8004386: f8c3 2224 str.w r2, [r3, #548] ; 0x224 +#endif + fp->fs = dj.fs; /* Validate file object */ + 800438a: f107 0320 add.w r3, r7, #32 + 800438e: f8d3 2200 ldr.w r2, [r3, #512] ; 0x200 + 8004392: f107 030c add.w r3, r7, #12 + 8004396: 681b ldr r3, [r3, #0] + 8004398: f8c3 2200 str.w r2, [r3, #512] ; 0x200 + fp->id = fp->fs->id; + 800439c: f107 030c add.w r3, r7, #12 + 80043a0: 681b ldr r3, [r3, #0] + 80043a2: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 + 80043a6: f8b3 2206 ldrh.w r2, [r3, #518] ; 0x206 + 80043aa: f107 030c add.w r3, r7, #12 + 80043ae: 681b ldr r3, [r3, #0] + 80043b0: f8a3 2204 strh.w r2, [r3, #516] ; 0x204 + } + } + + LEAVE_FF(dj.fs, res); + 80043b4: f897 324f ldrb.w r3, [r7, #591] ; 0x24f +} + 80043b8: 4618 mov r0, r3 + 80043ba: f507 7714 add.w r7, r7, #592 ; 0x250 + 80043be: 46bd mov sp, r7 + 80043c0: bd80 pop {r7, pc} + +080043c2 : + FIL* fp, /* Pointer to the file object */ + void* buff, /* Pointer to data buffer */ + UINT btr, /* Number of bytes to read */ + UINT* br /* Pointer to number of bytes read */ +) +{ + 80043c2: b580 push {r7, lr} + 80043c4: b08c sub sp, #48 ; 0x30 + 80043c6: af00 add r7, sp, #0 + 80043c8: 60f8 str r0, [r7, #12] + 80043ca: 60b9 str r1, [r7, #8] + 80043cc: 607a str r2, [r7, #4] + 80043ce: 603b str r3, [r7, #0] + FRESULT res; + DWORD clst, sect, remain; + UINT rcnt, cc; + BYTE csect, *rbuff = (BYTE*)buff; + 80043d0: 68bb ldr r3, [r7, #8] + 80043d2: 623b str r3, [r7, #32] + + + *br = 0; /* Clear read byte counter */ + 80043d4: 683b ldr r3, [r7, #0] + 80043d6: 2200 movs r2, #0 + 80043d8: 601a str r2, [r3, #0] + + res = validate(fp); /* Check validity */ + 80043da: 68f8 ldr r0, [r7, #12] + 80043dc: f7ff fd6a bl 8003eb4 + 80043e0: 4603 mov r3, r0 + 80043e2: 77fb strb r3, [r7, #31] + if (res != FR_OK) LEAVE_FF(fp->fs, res); + 80043e4: 7ffb ldrb r3, [r7, #31] + 80043e6: 2b00 cmp r3, #0 + 80043e8: d001 beq.n 80043ee + 80043ea: 7ffb ldrb r3, [r7, #31] + 80043ec: e150 b.n 8004690 + if (fp->err) /* Check error */ + 80043ee: 68fb ldr r3, [r7, #12] + 80043f0: f893 3207 ldrb.w r3, [r3, #519] ; 0x207 + 80043f4: 2b00 cmp r3, #0 + 80043f6: d003 beq.n 8004400 + LEAVE_FF(fp->fs, (FRESULT)fp->err); + 80043f8: 68fb ldr r3, [r7, #12] + 80043fa: f893 3207 ldrb.w r3, [r3, #519] ; 0x207 + 80043fe: e147 b.n 8004690 + if (!(fp->flag & FA_READ)) /* Check access mode */ + 8004400: 68fb ldr r3, [r7, #12] + 8004402: f893 3206 ldrb.w r3, [r3, #518] ; 0x206 + 8004406: f003 0301 and.w r3, r3, #1 + 800440a: 2b00 cmp r3, #0 + 800440c: d101 bne.n 8004412 + LEAVE_FF(fp->fs, FR_DENIED); + 800440e: 2307 movs r3, #7 + 8004410: e13e b.n 8004690 + remain = fp->fsize - fp->fptr; + 8004412: 68fb ldr r3, [r7, #12] + 8004414: f8d3 220c ldr.w r2, [r3, #524] ; 0x20c + 8004418: 68fb ldr r3, [r7, #12] + 800441a: f8d3 3208 ldr.w r3, [r3, #520] ; 0x208 + 800441e: 1ad3 subs r3, r2, r3 + 8004420: 61bb str r3, [r7, #24] + if (btr > remain) btr = (UINT)remain; /* Truncate btr by remaining bytes */ + 8004422: 687a ldr r2, [r7, #4] + 8004424: 69bb ldr r3, [r7, #24] + 8004426: 429a cmp r2, r3 + 8004428: f240 812d bls.w 8004686 + 800442c: 69bb ldr r3, [r7, #24] + 800442e: 607b str r3, [r7, #4] + + for ( ; btr; /* Repeat until all data read */ + 8004430: e129 b.n 8004686 + rbuff += rcnt, fp->fptr += rcnt, *br += rcnt, btr -= rcnt) { + if ((fp->fptr % SS(fp->fs)) == 0) { /* On the sector boundary? */ + 8004432: 68fb ldr r3, [r7, #12] + 8004434: f8d3 3208 ldr.w r3, [r3, #520] ; 0x208 + 8004438: f3c3 0308 ubfx r3, r3, #0, #9 + 800443c: 2b00 cmp r3, #0 + 800443e: f040 80f2 bne.w 8004626 + csect = (BYTE)(fp->fptr / SS(fp->fs) & (fp->fs->csize - 1)); /* Sector offset in the cluster */ + 8004442: 68fb ldr r3, [r7, #12] + 8004444: f8d3 3208 ldr.w r3, [r3, #520] ; 0x208 + 8004448: 0a5b lsrs r3, r3, #9 + 800444a: b2da uxtb r2, r3 + 800444c: 68fb ldr r3, [r7, #12] + 800444e: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 + 8004452: f893 3202 ldrb.w r3, [r3, #514] ; 0x202 + 8004456: 3b01 subs r3, #1 + 8004458: b2db uxtb r3, r3 + 800445a: 4013 ands r3, r2 + 800445c: 75fb strb r3, [r7, #23] + if (!csect) { /* On the cluster boundary? */ + 800445e: 7dfb ldrb r3, [r7, #23] + 8004460: 2b00 cmp r3, #0 + 8004462: d139 bne.n 80044d8 + if (fp->fptr == 0) { /* On the top of the file? */ + 8004464: 68fb ldr r3, [r7, #12] + 8004466: f8d3 3208 ldr.w r3, [r3, #520] ; 0x208 + 800446a: 2b00 cmp r3, #0 + 800446c: d104 bne.n 8004478 + clst = fp->sclust; /* Follow from the origin */ + 800446e: 68fb ldr r3, [r7, #12] + 8004470: f8d3 3210 ldr.w r3, [r3, #528] ; 0x210 + 8004474: 62fb str r3, [r7, #44] ; 0x2c + 8004476: e018 b.n 80044aa + } else { /* Middle or end of the file */ +#if _USE_FASTSEEK + if (fp->cltbl) + 8004478: 68fb ldr r3, [r7, #12] + 800447a: f8d3 3224 ldr.w r3, [r3, #548] ; 0x224 + 800447e: 2b00 cmp r3, #0 + 8004480: d008 beq.n 8004494 + clst = clmt_clust(fp, fp->fptr); /* Get cluster# from the CLMT */ + 8004482: 68fb ldr r3, [r7, #12] + 8004484: f8d3 3208 ldr.w r3, [r3, #520] ; 0x208 + 8004488: 4619 mov r1, r3 + 800448a: 68f8 ldr r0, [r7, #12] + 800448c: f7fe fd87 bl 8002f9e + 8004490: 62f8 str r0, [r7, #44] ; 0x2c + 8004492: e00a b.n 80044aa + else +#endif + clst = get_fat(fp->fs, fp->clust); /* Follow cluster chain on the FAT */ + 8004494: 68fb ldr r3, [r7, #12] + 8004496: f8d3 2200 ldr.w r2, [r3, #512] ; 0x200 + 800449a: 68fb ldr r3, [r7, #12] + 800449c: f8d3 3214 ldr.w r3, [r3, #532] ; 0x214 + 80044a0: 4619 mov r1, r3 + 80044a2: 4610 mov r0, r2 + 80044a4: f7fe fabc bl 8002a20 + 80044a8: 62f8 str r0, [r7, #44] ; 0x2c + } + if (clst < 2) ABORT(fp->fs, FR_INT_ERR); + 80044aa: 6afb ldr r3, [r7, #44] ; 0x2c + 80044ac: 2b01 cmp r3, #1 + 80044ae: d805 bhi.n 80044bc + 80044b0: 68fb ldr r3, [r7, #12] + 80044b2: 2202 movs r2, #2 + 80044b4: f883 2207 strb.w r2, [r3, #519] ; 0x207 + 80044b8: 2302 movs r3, #2 + 80044ba: e0e9 b.n 8004690 + if (clst == 0xFFFFFFFF) ABORT(fp->fs, FR_DISK_ERR); + 80044bc: 6afb ldr r3, [r7, #44] ; 0x2c + 80044be: f1b3 3fff cmp.w r3, #4294967295 + 80044c2: d105 bne.n 80044d0 + 80044c4: 68fb ldr r3, [r7, #12] + 80044c6: 2201 movs r2, #1 + 80044c8: f883 2207 strb.w r2, [r3, #519] ; 0x207 + 80044cc: 2301 movs r3, #1 + 80044ce: e0df b.n 8004690 + fp->clust = clst; /* Update current cluster */ + 80044d0: 68fb ldr r3, [r7, #12] + 80044d2: 6afa ldr r2, [r7, #44] ; 0x2c + 80044d4: f8c3 2214 str.w r2, [r3, #532] ; 0x214 + } + sect = clust2sect(fp->fs, fp->clust); /* Get current sector */ + 80044d8: 68fb ldr r3, [r7, #12] + 80044da: f8d3 2200 ldr.w r2, [r3, #512] ; 0x200 + 80044de: 68fb ldr r3, [r7, #12] + 80044e0: f8d3 3214 ldr.w r3, [r3, #532] ; 0x214 + 80044e4: 4619 mov r1, r3 + 80044e6: 4610 mov r0, r2 + 80044e8: f7fe fa79 bl 80029de + 80044ec: 6138 str r0, [r7, #16] + if (!sect) ABORT(fp->fs, FR_INT_ERR); + 80044ee: 693b ldr r3, [r7, #16] + 80044f0: 2b00 cmp r3, #0 + 80044f2: d105 bne.n 8004500 + 80044f4: 68fb ldr r3, [r7, #12] + 80044f6: 2202 movs r2, #2 + 80044f8: f883 2207 strb.w r2, [r3, #519] ; 0x207 + 80044fc: 2302 movs r3, #2 + 80044fe: e0c7 b.n 8004690 + sect += csect; + 8004500: 7dfb ldrb r3, [r7, #23] + 8004502: 693a ldr r2, [r7, #16] + 8004504: 4413 add r3, r2 + 8004506: 613b str r3, [r7, #16] + cc = btr / SS(fp->fs); /* When remaining bytes >= sector size, */ + 8004508: 687b ldr r3, [r7, #4] + 800450a: 0a5b lsrs r3, r3, #9 + 800450c: 627b str r3, [r7, #36] ; 0x24 + if (cc) { /* Read maximum contiguous sectors directly */ + 800450e: 6a7b ldr r3, [r7, #36] ; 0x24 + 8004510: 2b00 cmp r3, #0 + 8004512: d046 beq.n 80045a2 + if (csect + cc > fp->fs->csize) /* Clip at cluster boundary */ + 8004514: 7dfa ldrb r2, [r7, #23] + 8004516: 6a7b ldr r3, [r7, #36] ; 0x24 + 8004518: 4413 add r3, r2 + 800451a: 68fa ldr r2, [r7, #12] + 800451c: f8d2 2200 ldr.w r2, [r2, #512] ; 0x200 + 8004520: f892 2202 ldrb.w r2, [r2, #514] ; 0x202 + 8004524: 4293 cmp r3, r2 + 8004526: d908 bls.n 800453a + cc = fp->fs->csize - csect; + 8004528: 68fb ldr r3, [r7, #12] + 800452a: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 + 800452e: f893 3202 ldrb.w r3, [r3, #514] ; 0x202 + 8004532: 461a mov r2, r3 + 8004534: 7dfb ldrb r3, [r7, #23] + 8004536: 1ad3 subs r3, r2, r3 + 8004538: 627b str r3, [r7, #36] ; 0x24 + if (disk_read(fp->fs->drv, rbuff, sect, cc) != RES_OK) + 800453a: 68fb ldr r3, [r7, #12] + 800453c: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 + 8004540: f893 0201 ldrb.w r0, [r3, #513] ; 0x201 + 8004544: 6a7b ldr r3, [r7, #36] ; 0x24 + 8004546: 693a ldr r2, [r7, #16] + 8004548: 6a39 ldr r1, [r7, #32] + 800454a: f7fd ffa9 bl 80024a0 + 800454e: 4603 mov r3, r0 + 8004550: 2b00 cmp r3, #0 + 8004552: d005 beq.n 8004560 + ABORT(fp->fs, FR_DISK_ERR); + 8004554: 68fb ldr r3, [r7, #12] + 8004556: 2201 movs r2, #1 + 8004558: f883 2207 strb.w r2, [r3, #519] ; 0x207 + 800455c: 2301 movs r3, #1 + 800455e: e097 b.n 8004690 +#if !_FS_READONLY && _FS_MINIMIZE <= 2 /* Replace one of the read sectors with cached data if it contains a dirty sector */ +#if _FS_TINY + if (fp->fs->wflag && fp->fs->winsect - sect < cc) + mem_cpy(rbuff + ((fp->fs->winsect - sect) * SS(fp->fs)), fp->fs->win.d8, SS(fp->fs)); +#else + if ((fp->flag & FA__DIRTY) && fp->dsect - sect < cc) + 8004560: 68fb ldr r3, [r7, #12] + 8004562: f893 3206 ldrb.w r3, [r3, #518] ; 0x206 + 8004566: f003 0340 and.w r3, r3, #64 ; 0x40 + 800456a: 2b00 cmp r3, #0 + 800456c: d015 beq.n 800459a + 800456e: 68fb ldr r3, [r7, #12] + 8004570: f8d3 2218 ldr.w r2, [r3, #536] ; 0x218 + 8004574: 693b ldr r3, [r7, #16] + 8004576: 1ad3 subs r3, r2, r3 + 8004578: 6a7a ldr r2, [r7, #36] ; 0x24 + 800457a: 429a cmp r2, r3 + 800457c: d90d bls.n 800459a + mem_cpy(rbuff + ((fp->dsect - sect) * SS(fp->fs)), fp->buf.d8, SS(fp->fs)); + 800457e: 68fb ldr r3, [r7, #12] + 8004580: f8d3 2218 ldr.w r2, [r3, #536] ; 0x218 + 8004584: 693b ldr r3, [r7, #16] + 8004586: 1ad3 subs r3, r2, r3 + 8004588: 025b lsls r3, r3, #9 + 800458a: 6a3a ldr r2, [r7, #32] + 800458c: 4413 add r3, r2 + 800458e: 68f9 ldr r1, [r7, #12] + 8004590: f44f 7200 mov.w r2, #512 ; 0x200 + 8004594: 4618 mov r0, r3 + 8004596: f7fd ffc3 bl 8002520 +#endif +#endif + rcnt = SS(fp->fs) * cc; /* Number of bytes transferred */ + 800459a: 6a7b ldr r3, [r7, #36] ; 0x24 + 800459c: 025b lsls r3, r3, #9 + 800459e: 62bb str r3, [r7, #40] ; 0x28 + continue; + 80045a0: e05b b.n 800465a + } +#if !_FS_TINY + if (fp->dsect != sect) { /* Load data sector if not in cache */ + 80045a2: 68fb ldr r3, [r7, #12] + 80045a4: f8d3 3218 ldr.w r3, [r3, #536] ; 0x218 + 80045a8: 693a ldr r2, [r7, #16] + 80045aa: 429a cmp r2, r3 + 80045ac: d037 beq.n 800461e +#if !_FS_READONLY + if (fp->flag & FA__DIRTY) { /* Write-back dirty sector cache */ + 80045ae: 68fb ldr r3, [r7, #12] + 80045b0: f893 3206 ldrb.w r3, [r3, #518] ; 0x206 + 80045b4: f003 0340 and.w r3, r3, #64 ; 0x40 + 80045b8: 2b00 cmp r3, #0 + 80045ba: d01d beq.n 80045f8 + if (disk_write(fp->fs->drv, fp->buf.d8, fp->dsect, 1) != RES_OK) + 80045bc: 68fb ldr r3, [r7, #12] + 80045be: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 + 80045c2: f893 0201 ldrb.w r0, [r3, #513] ; 0x201 + 80045c6: 68f9 ldr r1, [r7, #12] + 80045c8: 68fb ldr r3, [r7, #12] + 80045ca: f8d3 2218 ldr.w r2, [r3, #536] ; 0x218 + 80045ce: 2301 movs r3, #1 + 80045d0: f7fd ff86 bl 80024e0 + 80045d4: 4603 mov r3, r0 + 80045d6: 2b00 cmp r3, #0 + 80045d8: d005 beq.n 80045e6 + ABORT(fp->fs, FR_DISK_ERR); + 80045da: 68fb ldr r3, [r7, #12] + 80045dc: 2201 movs r2, #1 + 80045de: f883 2207 strb.w r2, [r3, #519] ; 0x207 + 80045e2: 2301 movs r3, #1 + 80045e4: e054 b.n 8004690 + fp->flag &= ~FA__DIRTY; + 80045e6: 68fb ldr r3, [r7, #12] + 80045e8: f893 3206 ldrb.w r3, [r3, #518] ; 0x206 + 80045ec: f023 0340 bic.w r3, r3, #64 ; 0x40 + 80045f0: b2da uxtb r2, r3 + 80045f2: 68fb ldr r3, [r7, #12] + 80045f4: f883 2206 strb.w r2, [r3, #518] ; 0x206 + } +#endif + if (disk_read(fp->fs->drv, fp->buf.d8, sect, 1) != RES_OK) /* Fill sector cache */ + 80045f8: 68fb ldr r3, [r7, #12] + 80045fa: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 + 80045fe: f893 0201 ldrb.w r0, [r3, #513] ; 0x201 + 8004602: 68f9 ldr r1, [r7, #12] + 8004604: 2301 movs r3, #1 + 8004606: 693a ldr r2, [r7, #16] + 8004608: f7fd ff4a bl 80024a0 + 800460c: 4603 mov r3, r0 + 800460e: 2b00 cmp r3, #0 + 8004610: d005 beq.n 800461e + ABORT(fp->fs, FR_DISK_ERR); + 8004612: 68fb ldr r3, [r7, #12] + 8004614: 2201 movs r2, #1 + 8004616: f883 2207 strb.w r2, [r3, #519] ; 0x207 + 800461a: 2301 movs r3, #1 + 800461c: e038 b.n 8004690 + } +#endif + fp->dsect = sect; + 800461e: 68fb ldr r3, [r7, #12] + 8004620: 693a ldr r2, [r7, #16] + 8004622: f8c3 2218 str.w r2, [r3, #536] ; 0x218 + } + rcnt = SS(fp->fs) - ((UINT)fp->fptr % SS(fp->fs)); /* Get partial sector data from sector buffer */ + 8004626: 68fb ldr r3, [r7, #12] + 8004628: f8d3 3208 ldr.w r3, [r3, #520] ; 0x208 + 800462c: f3c3 0308 ubfx r3, r3, #0, #9 + 8004630: f5c3 7300 rsb r3, r3, #512 ; 0x200 + 8004634: 62bb str r3, [r7, #40] ; 0x28 + if (rcnt > btr) rcnt = btr; + 8004636: 6aba ldr r2, [r7, #40] ; 0x28 + 8004638: 687b ldr r3, [r7, #4] + 800463a: 429a cmp r2, r3 + 800463c: d901 bls.n 8004642 + 800463e: 687b ldr r3, [r7, #4] + 8004640: 62bb str r3, [r7, #40] ; 0x28 +#if _FS_TINY + if (move_window(fp->fs, fp->dsect) != FR_OK) /* Move sector window */ + ABORT(fp->fs, FR_DISK_ERR); + mem_cpy(rbuff, &fp->fs->win.d8[fp->fptr % SS(fp->fs)], rcnt); /* Pick partial sector */ +#else + mem_cpy(rbuff, &fp->buf.d8[fp->fptr % SS(fp->fs)], rcnt); /* Pick partial sector */ + 8004642: 68fb ldr r3, [r7, #12] + 8004644: f8d3 3208 ldr.w r3, [r3, #520] ; 0x208 + 8004648: f3c3 0308 ubfx r3, r3, #0, #9 + 800464c: 68fa ldr r2, [r7, #12] + 800464e: 4413 add r3, r2 + 8004650: 6aba ldr r2, [r7, #40] ; 0x28 + 8004652: 4619 mov r1, r3 + 8004654: 6a38 ldr r0, [r7, #32] + 8004656: f7fd ff63 bl 8002520 + rbuff += rcnt, fp->fptr += rcnt, *br += rcnt, btr -= rcnt) { + 800465a: 6a3a ldr r2, [r7, #32] + 800465c: 6abb ldr r3, [r7, #40] ; 0x28 + 800465e: 4413 add r3, r2 + 8004660: 623b str r3, [r7, #32] + 8004662: 68fb ldr r3, [r7, #12] + 8004664: f8d3 2208 ldr.w r2, [r3, #520] ; 0x208 + 8004668: 6abb ldr r3, [r7, #40] ; 0x28 + 800466a: 441a add r2, r3 + 800466c: 68fb ldr r3, [r7, #12] + 800466e: f8c3 2208 str.w r2, [r3, #520] ; 0x208 + 8004672: 683b ldr r3, [r7, #0] + 8004674: 681a ldr r2, [r3, #0] + 8004676: 6abb ldr r3, [r7, #40] ; 0x28 + 8004678: 441a add r2, r3 + 800467a: 683b ldr r3, [r7, #0] + 800467c: 601a str r2, [r3, #0] + 800467e: 687a ldr r2, [r7, #4] + 8004680: 6abb ldr r3, [r7, #40] ; 0x28 + 8004682: 1ad3 subs r3, r2, r3 + 8004684: 607b str r3, [r7, #4] + for ( ; btr; /* Repeat until all data read */ + 8004686: 687b ldr r3, [r7, #4] + 8004688: 2b00 cmp r3, #0 + 800468a: f47f aed2 bne.w 8004432 +#endif + } + + LEAVE_FF(fp->fs, FR_OK); + 800468e: 2300 movs r3, #0 +} + 8004690: 4618 mov r0, r3 + 8004692: 3730 adds r7, #48 ; 0x30 + 8004694: 46bd mov sp, r7 + 8004696: bd80 pop {r7, pc} + +08004698 : * @param lun : only used for USB Key Disk to add multi-lun management else the paramter must be equal to 0 * @retval Returns 0 in case of success, otherwise 1. */ uint8_t FATFS_LinkDriverEx(Diskio_drvTypeDef *drv, char *path, uint8_t lun) { - 80023a4: b480 push {r7} - 80023a6: b087 sub sp, #28 - 80023a8: af00 add r7, sp, #0 - 80023aa: 60f8 str r0, [r7, #12] - 80023ac: 60b9 str r1, [r7, #8] - 80023ae: 4613 mov r3, r2 - 80023b0: 71fb strb r3, [r7, #7] + 8004698: b480 push {r7} + 800469a: b087 sub sp, #28 + 800469c: af00 add r7, sp, #0 + 800469e: 60f8 str r0, [r7, #12] + 80046a0: 60b9 str r1, [r7, #8] + 80046a2: 4613 mov r3, r2 + 80046a4: 71fb strb r3, [r7, #7] uint8_t ret = 1; - 80023b2: 2301 movs r3, #1 - 80023b4: 75fb strb r3, [r7, #23] + 80046a6: 2301 movs r3, #1 + 80046a8: 75fb strb r3, [r7, #23] uint8_t DiskNum = 0; - 80023b6: 2300 movs r3, #0 - 80023b8: 75bb strb r3, [r7, #22] + 80046aa: 2300 movs r3, #0 + 80046ac: 75bb strb r3, [r7, #22] if(disk.nbr <= _VOLUMES) - 80023ba: 4b1e ldr r3, [pc, #120] ; (8002434 ) - 80023bc: 7a5b ldrb r3, [r3, #9] - 80023be: b2db uxtb r3, r3 - 80023c0: 2b01 cmp r3, #1 - 80023c2: d831 bhi.n 8002428 + 80046ae: 4b1e ldr r3, [pc, #120] ; (8004728 ) + 80046b0: 7a5b ldrb r3, [r3, #9] + 80046b2: b2db uxtb r3, r3 + 80046b4: 2b01 cmp r3, #1 + 80046b6: d831 bhi.n 800471c { disk.is_initialized[disk.nbr] = 0; - 80023c4: 4b1b ldr r3, [pc, #108] ; (8002434 ) - 80023c6: 7a5b ldrb r3, [r3, #9] - 80023c8: b2db uxtb r3, r3 - 80023ca: 461a mov r2, r3 - 80023cc: 4b19 ldr r3, [pc, #100] ; (8002434 ) - 80023ce: 2100 movs r1, #0 - 80023d0: 5499 strb r1, [r3, r2] + 80046b8: 4b1b ldr r3, [pc, #108] ; (8004728 ) + 80046ba: 7a5b ldrb r3, [r3, #9] + 80046bc: b2db uxtb r3, r3 + 80046be: 461a mov r2, r3 + 80046c0: 4b19 ldr r3, [pc, #100] ; (8004728 ) + 80046c2: 2100 movs r1, #0 + 80046c4: 5499 strb r1, [r3, r2] disk.drv[disk.nbr] = drv; - 80023d2: 4b18 ldr r3, [pc, #96] ; (8002434 ) - 80023d4: 7a5b ldrb r3, [r3, #9] - 80023d6: b2db uxtb r3, r3 - 80023d8: 4a16 ldr r2, [pc, #88] ; (8002434 ) - 80023da: 009b lsls r3, r3, #2 - 80023dc: 4413 add r3, r2 - 80023de: 68fa ldr r2, [r7, #12] - 80023e0: 605a str r2, [r3, #4] + 80046c6: 4b18 ldr r3, [pc, #96] ; (8004728 ) + 80046c8: 7a5b ldrb r3, [r3, #9] + 80046ca: b2db uxtb r3, r3 + 80046cc: 4a16 ldr r2, [pc, #88] ; (8004728 ) + 80046ce: 009b lsls r3, r3, #2 + 80046d0: 4413 add r3, r2 + 80046d2: 68fa ldr r2, [r7, #12] + 80046d4: 605a str r2, [r3, #4] disk.lun[disk.nbr] = lun; - 80023e2: 4b14 ldr r3, [pc, #80] ; (8002434 ) - 80023e4: 7a5b ldrb r3, [r3, #9] - 80023e6: b2db uxtb r3, r3 - 80023e8: 461a mov r2, r3 - 80023ea: 4b12 ldr r3, [pc, #72] ; (8002434 ) - 80023ec: 4413 add r3, r2 - 80023ee: 79fa ldrb r2, [r7, #7] - 80023f0: 721a strb r2, [r3, #8] + 80046d6: 4b14 ldr r3, [pc, #80] ; (8004728 ) + 80046d8: 7a5b ldrb r3, [r3, #9] + 80046da: b2db uxtb r3, r3 + 80046dc: 461a mov r2, r3 + 80046de: 4b12 ldr r3, [pc, #72] ; (8004728 ) + 80046e0: 4413 add r3, r2 + 80046e2: 79fa ldrb r2, [r7, #7] + 80046e4: 721a strb r2, [r3, #8] DiskNum = disk.nbr++; - 80023f2: 4b10 ldr r3, [pc, #64] ; (8002434 ) - 80023f4: 7a5b ldrb r3, [r3, #9] - 80023f6: b2db uxtb r3, r3 - 80023f8: 1c5a adds r2, r3, #1 - 80023fa: b2d1 uxtb r1, r2 - 80023fc: 4a0d ldr r2, [pc, #52] ; (8002434 ) - 80023fe: 7251 strb r1, [r2, #9] - 8002400: 75bb strb r3, [r7, #22] + 80046e6: 4b10 ldr r3, [pc, #64] ; (8004728 ) + 80046e8: 7a5b ldrb r3, [r3, #9] + 80046ea: b2db uxtb r3, r3 + 80046ec: 1c5a adds r2, r3, #1 + 80046ee: b2d1 uxtb r1, r2 + 80046f0: 4a0d ldr r2, [pc, #52] ; (8004728 ) + 80046f2: 7251 strb r1, [r2, #9] + 80046f4: 75bb strb r3, [r7, #22] path[0] = DiskNum + '0'; - 8002402: 7dbb ldrb r3, [r7, #22] - 8002404: 3330 adds r3, #48 ; 0x30 - 8002406: b2da uxtb r2, r3 - 8002408: 68bb ldr r3, [r7, #8] - 800240a: 701a strb r2, [r3, #0] + 80046f6: 7dbb ldrb r3, [r7, #22] + 80046f8: 3330 adds r3, #48 ; 0x30 + 80046fa: b2da uxtb r2, r3 + 80046fc: 68bb ldr r3, [r7, #8] + 80046fe: 701a strb r2, [r3, #0] path[1] = ':'; - 800240c: 68bb ldr r3, [r7, #8] - 800240e: 3301 adds r3, #1 - 8002410: 223a movs r2, #58 ; 0x3a - 8002412: 701a strb r2, [r3, #0] + 8004700: 68bb ldr r3, [r7, #8] + 8004702: 3301 adds r3, #1 + 8004704: 223a movs r2, #58 ; 0x3a + 8004706: 701a strb r2, [r3, #0] path[2] = '/'; - 8002414: 68bb ldr r3, [r7, #8] - 8002416: 3302 adds r3, #2 - 8002418: 222f movs r2, #47 ; 0x2f - 800241a: 701a strb r2, [r3, #0] + 8004708: 68bb ldr r3, [r7, #8] + 800470a: 3302 adds r3, #2 + 800470c: 222f movs r2, #47 ; 0x2f + 800470e: 701a strb r2, [r3, #0] path[3] = 0; - 800241c: 68bb ldr r3, [r7, #8] - 800241e: 3303 adds r3, #3 - 8002420: 2200 movs r2, #0 - 8002422: 701a strb r2, [r3, #0] + 8004710: 68bb ldr r3, [r7, #8] + 8004712: 3303 adds r3, #3 + 8004714: 2200 movs r2, #0 + 8004716: 701a strb r2, [r3, #0] ret = 0; - 8002424: 2300 movs r3, #0 - 8002426: 75fb strb r3, [r7, #23] + 8004718: 2300 movs r3, #0 + 800471a: 75fb strb r3, [r7, #23] } return ret; - 8002428: 7dfb ldrb r3, [r7, #23] + 800471c: 7dfb ldrb r3, [r7, #23] } - 800242a: 4618 mov r0, r3 - 800242c: 371c adds r7, #28 - 800242e: 46bd mov sp, r7 - 8002430: bc80 pop {r7} - 8002432: 4770 bx lr - 8002434: 20000044 .word 0x20000044 + 800471e: 4618 mov r0, r3 + 8004720: 371c adds r7, #28 + 8004722: 46bd mov sp, r7 + 8004724: bc80 pop {r7} + 8004726: 4770 bx lr + 8004728: 200000cc .word 0x200000cc -08002438 : +0800472c : * @param drv: pointer to the disk IO Driver structure * @param path: pointer to the logical drive path * @retval Returns 0 in case of success, otherwise 1. */ uint8_t FATFS_LinkDriver(Diskio_drvTypeDef *drv, char *path) { - 8002438: b580 push {r7, lr} - 800243a: b082 sub sp, #8 - 800243c: af00 add r7, sp, #0 - 800243e: 6078 str r0, [r7, #4] - 8002440: 6039 str r1, [r7, #0] + 800472c: b580 push {r7, lr} + 800472e: b082 sub sp, #8 + 8004730: af00 add r7, sp, #0 + 8004732: 6078 str r0, [r7, #4] + 8004734: 6039 str r1, [r7, #0] return FATFS_LinkDriverEx(drv, path, 0); - 8002442: 2200 movs r2, #0 - 8002444: 6839 ldr r1, [r7, #0] - 8002446: 6878 ldr r0, [r7, #4] - 8002448: f7ff ffac bl 80023a4 - 800244c: 4603 mov r3, r0 + 8004736: 2200 movs r2, #0 + 8004738: 6839 ldr r1, [r7, #0] + 800473a: 6878 ldr r0, [r7, #4] + 800473c: f7ff ffac bl 8004698 + 8004740: 4603 mov r3, r0 } - 800244e: 4618 mov r0, r3 - 8002450: 3708 adds r7, #8 - 8002452: 46bd mov sp, r7 - 8002454: bd80 pop {r7, pc} + 8004742: 4618 mov r0, r3 + 8004744: 3708 adds r7, #8 + 8004746: 46bd mov sp, r7 + 8004748: bd80 pop {r7, pc} ... -08002458 : +0800474c : #include "fatfs.h" #include "fatfs_sd.h" FATFS SD; int my_main() { - 8002458: b580 push {r7, lr} - 800245a: f5ad 7d22 sub.w sp, sp, #648 ; 0x288 - 800245e: af02 add r7, sp, #8 + 800474c: b580 push {r7, lr} + 800474e: f5ad 7d26 sub.w sp, sp, #664 ; 0x298 + 8004752: af04 add r7, sp, #16 uint8_t res; FIL fil; char fil_buff[64]; uint16_t br=0; - 8002460: 2300 movs r3, #0 - 8002462: f8a7 327e strh.w r3, [r7, #638] ; 0x27e + 8004754: f107 0316 add.w r3, r7, #22 + 8004758: 2200 movs r2, #0 + 800475a: 801a strh r2, [r3, #0] char str[16]; LCD_BL(0); - 8002466: 2200 movs r2, #0 - 8002468: 2101 movs r1, #1 - 800246a: 4812 ldr r0, [pc, #72] ; (80024b4 ) - 800246c: f7fe fc84 bl 8000d78 + 800475c: 2200 movs r2, #0 + 800475e: 2101 movs r1, #1 + 8004760: 4825 ldr r0, [pc, #148] ; (80047f8 ) + 8004762: f7fc fb3f bl 8000de4 LCDx_Init(); - 8002470: f000 ffae bl 80033d0 - if(font_init()) - 8002474: f001 f9a4 bl 80037c0 - 8002478: 4603 mov r3, r0 - 800247a: 2b00 cmp r3, #0 - 800247c: d00a beq.n 8002494 - { - LCD_ShowString(0,16,(uint8_t *)"erro",16,RED,BLUE); - 800247e: 231f movs r3, #31 - 8002480: 9301 str r3, [sp, #4] - 8002482: f44f 4378 mov.w r3, #63488 ; 0xf800 - 8002486: 9300 str r3, [sp, #0] - 8002488: 2310 movs r3, #16 - 800248a: 4a0b ldr r2, [pc, #44] ; (80024b8 ) - 800248c: 2110 movs r1, #16 - 800248e: 2000 movs r0, #0 - 8002490: f001 fb4a bl 8003b28 - } + 8004766: f000 ffdb bl 8005720 LCD_Clear(GRAY); - 8002494: f248 4030 movw r0, #33840 ; 0x8430 - 8002498: f001 f940 bl 800371c - res=f_open(&fil,"0:/demo.txt",FA_READ); - res=f_read(&fil,fil_buff,16,(UINT*)&br); - sprintf(str,"%s\0\0",fil_buff); - LCD_ShowString(0,0,str,16,RED,BLUE); -*/ - LCD_ShowString(0,0,"123dsjvn啊",12,RED,BLUE); - 800249c: 231f movs r3, #31 - 800249e: 9301 str r3, [sp, #4] - 80024a0: f44f 4378 mov.w r3, #63488 ; 0xf800 - 80024a4: 9300 str r3, [sp, #0] - 80024a6: 230c movs r3, #12 - 80024a8: 4a04 ldr r2, [pc, #16] ; (80024bc ) - 80024aa: 2100 movs r1, #0 - 80024ac: 2000 movs r0, #0 - 80024ae: f001 fb3b bl 8003b28 - while(1) - 80024b2: e7fe b.n 80024b2 - 80024b4: 40010c00 .word 0x40010c00 - 80024b8: 08003c74 .word 0x08003c74 - 80024bc: 08003c7c .word 0x08003c7c + 800476a: f248 4030 movw r0, #33840 ; 0x8430 + 800476e: f001 f97d bl 8005a6c -080024c0 : + if(font_init()) + 8004772: f001 f9cd bl 8005b10 + 8004776: 4603 mov r3, r0 + 8004778: 2b00 cmp r3, #0 + 800477a: d00c beq.n 8004796 + { + LCD_ShowString(0,16,(uint8_t *)"erro",16,RED,BLUE,64); + 800477c: 2340 movs r3, #64 ; 0x40 + 800477e: 9302 str r3, [sp, #8] + 8004780: 231f movs r3, #31 + 8004782: 9301 str r3, [sp, #4] + 8004784: f44f 4378 mov.w r3, #63488 ; 0xf800 + 8004788: 9300 str r3, [sp, #0] + 800478a: 2310 movs r3, #16 + 800478c: 4a1b ldr r2, [pc, #108] ; (80047fc ) + 800478e: 2110 movs r1, #16 + 8004790: 2000 movs r0, #0 + 8004792: f001 fb75 bl 8005e80 + } + + f_mount(&SD,"0:",1); + 8004796: 2201 movs r2, #1 + 8004798: 4919 ldr r1, [pc, #100] ; (8004800 ) + 800479a: 481a ldr r0, [pc, #104] ; (8004804 ) + 800479c: f7ff fbbe bl 8003f1c + res=f_open(&fil,"0:/demo.txt",FA_READ); + 80047a0: f107 0358 add.w r3, r7, #88 ; 0x58 + 80047a4: 2201 movs r2, #1 + 80047a6: 4918 ldr r1, [pc, #96] ; (8004808 ) + 80047a8: 4618 mov r0, r3 + 80047aa: f7ff fbff bl 8003fac + 80047ae: 4603 mov r3, r0 + 80047b0: f887 3287 strb.w r3, [r7, #647] ; 0x287 + res=f_read(&fil,fil_buff,32,(UINT*)&br); + 80047b4: f107 0316 add.w r3, r7, #22 + 80047b8: f107 0118 add.w r1, r7, #24 + 80047bc: f107 0058 add.w r0, r7, #88 ; 0x58 + 80047c0: 2220 movs r2, #32 + 80047c2: f7ff fdfe bl 80043c2 + 80047c6: 4603 mov r3, r0 + 80047c8: f887 3287 strb.w r3, [r7, #647] ; 0x287 + sprintf(str,"%s\0\0",fil_buff); + 80047cc: f107 0218 add.w r2, r7, #24 + 80047d0: 1d3b adds r3, r7, #4 + 80047d2: 490e ldr r1, [pc, #56] ; (800480c ) + 80047d4: 4618 mov r0, r3 + 80047d6: f001 fbf1 bl 8005fbc + LCD_ShowString(0,0,str,16,RED,BLUE,64); + 80047da: 1d3a adds r2, r7, #4 + 80047dc: 2340 movs r3, #64 ; 0x40 + 80047de: 9302 str r3, [sp, #8] + 80047e0: 231f movs r3, #31 + 80047e2: 9301 str r3, [sp, #4] + 80047e4: f44f 4378 mov.w r3, #63488 ; 0xf800 + 80047e8: 9300 str r3, [sp, #0] + 80047ea: 2310 movs r3, #16 + 80047ec: 2100 movs r1, #0 + 80047ee: 2000 movs r0, #0 + 80047f0: f001 fb46 bl 8005e80 + sprintf(str,"%02x\n%02x\n%02x\n%02x\n%02x",ftinfo.fontok,ftinfo.ugbkaddr,ftinfo.ugbksize,ftinfo.f12addr,ftinfo.gbk12size); + LCD_ShowString(0,0,str,12,RED,BLUE); + + LCD_ShowString(0,100,"163165sdf阿尔法",12,RED,BLUE); + */ + while(1) + 80047f4: e7fe b.n 80047f4 + 80047f6: bf00 nop + 80047f8: 40010c00 .word 0x40010c00 + 80047fc: 0800689c .word 0x0800689c + 8004800: 080068a4 .word 0x080068a4 + 8004804: 200005ec .word 0x200005ec + 8004808: 080068a8 .word 0x080068a8 + 800480c: 080068b4 .word 0x080068b4 + +08004810 : //ReadAddr:开始读取的地址(24bit) //NumByteToRead:要读取的字节数(最大65535) void W25QXX_Read(uint8_t* pBuffer,uint32_t ReadAddr,uint16_t NumByteToRead) { - 80024c0: b580 push {r7, lr} - 80024c2: b086 sub sp, #24 - 80024c4: af00 add r7, sp, #0 - 80024c6: 60f8 str r0, [r7, #12] - 80024c8: 60b9 str r1, [r7, #8] - 80024ca: 4613 mov r3, r2 - 80024cc: 80fb strh r3, [r7, #6] + 8004810: b580 push {r7, lr} + 8004812: b086 sub sp, #24 + 8004814: af00 add r7, sp, #0 + 8004816: 60f8 str r0, [r7, #12] + 8004818: 60b9 str r1, [r7, #8] + 800481a: 4613 mov r3, r2 + 800481c: 80fb strh r3, [r7, #6] unsigned char buff[4]; HAL_GPIO_WritePin(FLASH_E_GPIO_Port,FLASH_E_Pin,0); - 80024ce: 2200 movs r2, #0 - 80024d0: f44f 5180 mov.w r1, #4096 ; 0x1000 - 80024d4: 4813 ldr r0, [pc, #76] ; (8002524 ) - 80024d6: f7fe fc4f bl 8000d78 + 800481e: 2200 movs r2, #0 + 8004820: f44f 5180 mov.w r1, #4096 ; 0x1000 + 8004824: 4813 ldr r0, [pc, #76] ; (8004874 ) + 8004826: f7fc fadd bl 8000de4 buff[0]=W25X_ReadData; - 80024da: 2303 movs r3, #3 - 80024dc: 753b strb r3, [r7, #20] + 800482a: 2303 movs r3, #3 + 800482c: 753b strb r3, [r7, #20] buff[1]=(uint8_t)((ReadAddr)>>16); - 80024de: 68bb ldr r3, [r7, #8] - 80024e0: 0c1b lsrs r3, r3, #16 - 80024e2: b2db uxtb r3, r3 - 80024e4: 757b strb r3, [r7, #21] + 800482e: 68bb ldr r3, [r7, #8] + 8004830: 0c1b lsrs r3, r3, #16 + 8004832: b2db uxtb r3, r3 + 8004834: 757b strb r3, [r7, #21] buff[2]=(uint8_t)((ReadAddr)>>8); - 80024e6: 68bb ldr r3, [r7, #8] - 80024e8: 0a1b lsrs r3, r3, #8 - 80024ea: b2db uxtb r3, r3 - 80024ec: 75bb strb r3, [r7, #22] + 8004836: 68bb ldr r3, [r7, #8] + 8004838: 0a1b lsrs r3, r3, #8 + 800483a: b2db uxtb r3, r3 + 800483c: 75bb strb r3, [r7, #22] buff[3]=(uint8_t)ReadAddr; - 80024ee: 68bb ldr r3, [r7, #8] - 80024f0: b2db uxtb r3, r3 - 80024f2: 75fb strb r3, [r7, #23] + 800483e: 68bb ldr r3, [r7, #8] + 8004840: b2db uxtb r3, r3 + 8004842: 75fb strb r3, [r7, #23] HAL_SPI_Transmit(&hspi2,buff,4,100); //发送读取命令 - 80024f4: f107 0114 add.w r1, r7, #20 - 80024f8: 2364 movs r3, #100 ; 0x64 - 80024fa: 2204 movs r2, #4 - 80024fc: 480a ldr r0, [pc, #40] ; (8002528 ) - 80024fe: f7ff f8bf bl 8001680 + 8004844: f107 0114 add.w r1, r7, #20 + 8004848: 2364 movs r3, #100 ; 0x64 + 800484a: 2204 movs r2, #4 + 800484c: 480a ldr r0, [pc, #40] ; (8004878 ) + 800484e: f7fc ff4d bl 80016ec HAL_SPI_Receive(&hspi2,pBuffer,NumByteToRead,100); - 8002502: 88fa ldrh r2, [r7, #6] - 8002504: 2364 movs r3, #100 ; 0x64 - 8002506: 68f9 ldr r1, [r7, #12] - 8002508: 4807 ldr r0, [pc, #28] ; (8002528 ) - 800250a: f7ff f9f5 bl 80018f8 + 8004852: 88fa ldrh r2, [r7, #6] + 8004854: 2364 movs r3, #100 ; 0x64 + 8004856: 68f9 ldr r1, [r7, #12] + 8004858: 4807 ldr r0, [pc, #28] ; (8004878 ) + 800485a: f7fd f883 bl 8001964 HAL_GPIO_WritePin(FLASH_E_GPIO_Port,FLASH_E_Pin,1); - 800250e: 2201 movs r2, #1 - 8002510: f44f 5180 mov.w r1, #4096 ; 0x1000 - 8002514: 4803 ldr r0, [pc, #12] ; (8002524 ) - 8002516: f7fe fc2f bl 8000d78 + 800485e: 2201 movs r2, #1 + 8004860: f44f 5180 mov.w r1, #4096 ; 0x1000 + 8004864: 4803 ldr r0, [pc, #12] ; (8004874 ) + 8004866: f7fc fabd bl 8000de4 } - 800251a: bf00 nop - 800251c: 3718 adds r7, #24 - 800251e: 46bd mov sp, r7 - 8002520: bd80 pop {r7, pc} - 8002522: bf00 nop - 8002524: 40010c00 .word 0x40010c00 - 8002528: 20000054 .word 0x20000054 + 800486a: bf00 nop + 800486c: 3718 adds r7, #24 + 800486e: 46bd mov sp, r7 + 8004870: bd80 pop {r7, pc} + 8004872: bf00 nop + 8004874: 40010c00 .word 0x40010c00 + 8004878: 200000e4 .word 0x200000e4 -0800252c : Timer2--; } /* SPI Chip Select */ static void SELECT(void) { - 800252c: b580 push {r7, lr} - 800252e: af00 add r7, sp, #0 + 800487c: b580 push {r7, lr} + 800487e: af00 add r7, sp, #0 HAL_GPIO_WritePin(SD_CS_GPIO_Port, SD_CS_Pin, GPIO_PIN_RESET); - 8002530: 2200 movs r2, #0 - 8002532: 2104 movs r1, #4 - 8002534: 4802 ldr r0, [pc, #8] ; (8002540 ) - 8002536: f7fe fc1f bl 8000d78 + 8004880: 2200 movs r2, #0 + 8004882: 2104 movs r1, #4 + 8004884: 4802 ldr r0, [pc, #8] ; (8004890 ) + 8004886: f7fc faad bl 8000de4 } - 800253a: bf00 nop - 800253c: bd80 pop {r7, pc} - 800253e: bf00 nop - 8002540: 40011400 .word 0x40011400 + 800488a: bf00 nop + 800488c: bd80 pop {r7, pc} + 800488e: bf00 nop + 8004890: 40011400 .word 0x40011400 -08002544 : +08004894 : /* SPI Chip Deselect */ static void DESELECT(void) { - 8002544: b580 push {r7, lr} - 8002546: af00 add r7, sp, #0 + 8004894: b580 push {r7, lr} + 8004896: af00 add r7, sp, #0 HAL_GPIO_WritePin(SD_CS_GPIO_Port, SD_CS_Pin, GPIO_PIN_SET); - 8002548: 2201 movs r2, #1 - 800254a: 2104 movs r1, #4 - 800254c: 4802 ldr r0, [pc, #8] ; (8002558 ) - 800254e: f7fe fc13 bl 8000d78 + 8004898: 2201 movs r2, #1 + 800489a: 2104 movs r1, #4 + 800489c: 4802 ldr r0, [pc, #8] ; (80048a8 ) + 800489e: f7fc faa1 bl 8000de4 } - 8002552: bf00 nop - 8002554: bd80 pop {r7, pc} - 8002556: bf00 nop - 8002558: 40011400 .word 0x40011400 + 80048a2: bf00 nop + 80048a4: bd80 pop {r7, pc} + 80048a6: bf00 nop + 80048a8: 40011400 .word 0x40011400 -0800255c : +080048ac : static void SPI_TxByte(BYTE data) { - 800255c: b580 push {r7, lr} - 800255e: b082 sub sp, #8 - 8002560: af00 add r7, sp, #0 - 8002562: 4603 mov r3, r0 - 8002564: 71fb strb r3, [r7, #7] + 80048ac: b580 push {r7, lr} + 80048ae: b082 sub sp, #8 + 80048b0: af00 add r7, sp, #0 + 80048b2: 4603 mov r3, r0 + 80048b4: 71fb strb r3, [r7, #7] while (HAL_SPI_GetState(&hspi2) != HAL_SPI_STATE_READY); - 8002566: bf00 nop - 8002568: 4808 ldr r0, [pc, #32] ; (800258c ) - 800256a: f7ff fc78 bl 8001e5e - 800256e: 4603 mov r3, r0 - 8002570: 2b01 cmp r3, #1 - 8002572: d1f9 bne.n 8002568 + 80048b6: bf00 nop + 80048b8: 4808 ldr r0, [pc, #32] ; (80048dc ) + 80048ba: f7fd fb06 bl 8001eca + 80048be: 4603 mov r3, r0 + 80048c0: 2b01 cmp r3, #1 + 80048c2: d1f9 bne.n 80048b8 HAL_SPI_Transmit(&hspi2, &data, 1, SPI_TIMEOUT); - 8002574: 1df9 adds r1, r7, #7 - 8002576: f44f 737a mov.w r3, #1000 ; 0x3e8 - 800257a: 2201 movs r2, #1 - 800257c: 4803 ldr r0, [pc, #12] ; (800258c ) - 800257e: f7ff f87f bl 8001680 + 80048c4: 1df9 adds r1, r7, #7 + 80048c6: f44f 737a mov.w r3, #1000 ; 0x3e8 + 80048ca: 2201 movs r2, #1 + 80048cc: 4803 ldr r0, [pc, #12] ; (80048dc ) + 80048ce: f7fc ff0d bl 80016ec } - 8002582: bf00 nop - 8002584: 3708 adds r7, #8 - 8002586: 46bd mov sp, r7 - 8002588: bd80 pop {r7, pc} - 800258a: bf00 nop - 800258c: 20000054 .word 0x20000054 + 80048d2: bf00 nop + 80048d4: 3708 adds r7, #8 + 80048d6: 46bd mov sp, r7 + 80048d8: bd80 pop {r7, pc} + 80048da: bf00 nop + 80048dc: 200000e4 .word 0x200000e4 -08002590 : +080048e0 : static uint8_t SPI_RxByte(void) { - 8002590: b580 push {r7, lr} - 8002592: b084 sub sp, #16 - 8002594: af02 add r7, sp, #8 + 80048e0: b580 push {r7, lr} + 80048e2: b084 sub sp, #16 + 80048e4: af02 add r7, sp, #8 uint8_t dummy, data; dummy = 0xFF; - 8002596: 23ff movs r3, #255 ; 0xff - 8002598: 71fb strb r3, [r7, #7] + 80048e6: 23ff movs r3, #255 ; 0xff + 80048e8: 71fb strb r3, [r7, #7] data = 0; - 800259a: 2300 movs r3, #0 - 800259c: 71bb strb r3, [r7, #6] + 80048ea: 2300 movs r3, #0 + 80048ec: 71bb strb r3, [r7, #6] while ((HAL_SPI_GetState(&hspi2) != HAL_SPI_STATE_READY)); - 800259e: bf00 nop - 80025a0: 4809 ldr r0, [pc, #36] ; (80025c8 ) - 80025a2: f7ff fc5c bl 8001e5e - 80025a6: 4603 mov r3, r0 - 80025a8: 2b01 cmp r3, #1 - 80025aa: d1f9 bne.n 80025a0 + 80048ee: bf00 nop + 80048f0: 4809 ldr r0, [pc, #36] ; (8004918 ) + 80048f2: f7fd faea bl 8001eca + 80048f6: 4603 mov r3, r0 + 80048f8: 2b01 cmp r3, #1 + 80048fa: d1f9 bne.n 80048f0 HAL_SPI_TransmitReceive(&hspi2, &dummy, &data, 1, SPI_TIMEOUT); - 80025ac: 1dba adds r2, r7, #6 - 80025ae: 1df9 adds r1, r7, #7 - 80025b0: f44f 737a mov.w r3, #1000 ; 0x3e8 - 80025b4: 9300 str r3, [sp, #0] - 80025b6: 2301 movs r3, #1 - 80025b8: 4803 ldr r0, [pc, #12] ; (80025c8 ) - 80025ba: f7ff faae bl 8001b1a + 80048fc: 1dba adds r2, r7, #6 + 80048fe: 1df9 adds r1, r7, #7 + 8004900: f44f 737a mov.w r3, #1000 ; 0x3e8 + 8004904: 9300 str r3, [sp, #0] + 8004906: 2301 movs r3, #1 + 8004908: 4803 ldr r0, [pc, #12] ; (8004918 ) + 800490a: f7fd f93c bl 8001b86 return data; - 80025be: 79bb ldrb r3, [r7, #6] + 800490e: 79bb ldrb r3, [r7, #6] } - 80025c0: 4618 mov r0, r3 - 80025c2: 3708 adds r7, #8 - 80025c4: 46bd mov sp, r7 - 80025c6: bd80 pop {r7, pc} - 80025c8: 20000054 .word 0x20000054 + 8004910: 4618 mov r0, r3 + 8004912: 3708 adds r7, #8 + 8004914: 46bd mov sp, r7 + 8004916: bd80 pop {r7, pc} + 8004918: 200000e4 .word 0x200000e4 -080025cc : +0800491c : static void SPI_RxBytePtr(uint8_t *buff) { - 80025cc: b580 push {r7, lr} - 80025ce: b082 sub sp, #8 - 80025d0: af00 add r7, sp, #0 - 80025d2: 6078 str r0, [r7, #4] + 800491c: b580 push {r7, lr} + 800491e: b082 sub sp, #8 + 8004920: af00 add r7, sp, #0 + 8004922: 6078 str r0, [r7, #4] *buff = SPI_RxByte(); - 80025d4: f7ff ffdc bl 8002590 - 80025d8: 4603 mov r3, r0 - 80025da: 461a mov r2, r3 - 80025dc: 687b ldr r3, [r7, #4] - 80025de: 701a strb r2, [r3, #0] + 8004924: f7ff ffdc bl 80048e0 + 8004928: 4603 mov r3, r0 + 800492a: 461a mov r2, r3 + 800492c: 687b ldr r3, [r7, #4] + 800492e: 701a strb r2, [r3, #0] } - 80025e0: bf00 nop - 80025e2: 3708 adds r7, #8 - 80025e4: 46bd mov sp, r7 - 80025e6: bd80 pop {r7, pc} + 8004930: bf00 nop + 8004932: 3708 adds r7, #8 + 8004934: 46bd mov sp, r7 + 8004936: bd80 pop {r7, pc} -080025e8 : +08004938 : static uint8_t SD_ReadyWait(void) { - 80025e8: b580 push {r7, lr} - 80025ea: b082 sub sp, #8 - 80025ec: af00 add r7, sp, #0 + 8004938: b580 push {r7, lr} + 800493a: b082 sub sp, #8 + 800493c: af00 add r7, sp, #0 uint8_t res; Timer2 = 50; - 80025ee: 4b0b ldr r3, [pc, #44] ; (800261c ) - 80025f0: 2232 movs r2, #50 ; 0x32 - 80025f2: 701a strb r2, [r3, #0] + 800493e: 4b0b ldr r3, [pc, #44] ; (800496c ) + 8004940: 2232 movs r2, #50 ; 0x32 + 8004942: 701a strb r2, [r3, #0] SPI_RxByte(); - 80025f4: f7ff ffcc bl 8002590 + 8004944: f7ff ffcc bl 80048e0 do { res = SPI_RxByte(); - 80025f8: f7ff ffca bl 8002590 - 80025fc: 4603 mov r3, r0 - 80025fe: 71fb strb r3, [r7, #7] + 8004948: f7ff ffca bl 80048e0 + 800494c: 4603 mov r3, r0 + 800494e: 71fb strb r3, [r7, #7] } while ((res != 0xFF) && Timer2); - 8002600: 79fb ldrb r3, [r7, #7] - 8002602: 2bff cmp r3, #255 ; 0xff - 8002604: d004 beq.n 8002610 - 8002606: 4b05 ldr r3, [pc, #20] ; (800261c ) - 8002608: 781b ldrb r3, [r3, #0] - 800260a: b2db uxtb r3, r3 - 800260c: 2b00 cmp r3, #0 - 800260e: d1f3 bne.n 80025f8 + 8004950: 79fb ldrb r3, [r7, #7] + 8004952: 2bff cmp r3, #255 ; 0xff + 8004954: d004 beq.n 8004960 + 8004956: 4b05 ldr r3, [pc, #20] ; (800496c ) + 8004958: 781b ldrb r3, [r3, #0] + 800495a: b2db uxtb r3, r3 + 800495c: 2b00 cmp r3, #0 + 800495e: d1f3 bne.n 8004948 return res; - 8002610: 79fb ldrb r3, [r7, #7] + 8004960: 79fb ldrb r3, [r7, #7] } - 8002612: 4618 mov r0, r3 - 8002614: 3708 adds r7, #8 - 8002616: 46bd mov sp, r7 - 8002618: bd80 pop {r7, pc} - 800261a: bf00 nop - 800261c: 2000055c .word 0x2000055c + 8004962: 4618 mov r0, r3 + 8004964: 3708 adds r7, #8 + 8004966: 46bd mov sp, r7 + 8004968: bd80 pop {r7, pc} + 800496a: bf00 nop + 800496c: 2000081c .word 0x2000081c -08002620 : +08004970 : static void SD_PowerOn(void) { - 8002620: b580 push {r7, lr} - 8002622: b086 sub sp, #24 - 8002624: af00 add r7, sp, #0 + 8004970: b580 push {r7, lr} + 8004972: b086 sub sp, #24 + 8004974: af00 add r7, sp, #0 uint8_t cmd_arg[6]; uint32_t Count = 0x1FFF; - 8002626: f641 73ff movw r3, #8191 ; 0x1fff - 800262a: 617b str r3, [r7, #20] + 8004976: f641 73ff movw r3, #8191 ; 0x1fff + 800497a: 617b str r3, [r7, #20] DESELECT(); - 800262c: f7ff ff8a bl 8002544 + 800497c: f7ff ff8a bl 8004894 for(int i = 0; i < 10; i++) - 8002630: 2300 movs r3, #0 - 8002632: 613b str r3, [r7, #16] - 8002634: e005 b.n 8002642 + 8004980: 2300 movs r3, #0 + 8004982: 613b str r3, [r7, #16] + 8004984: e005 b.n 8004992 { SPI_TxByte(0xFF); - 8002636: 20ff movs r0, #255 ; 0xff - 8002638: f7ff ff90 bl 800255c + 8004986: 20ff movs r0, #255 ; 0xff + 8004988: f7ff ff90 bl 80048ac for(int i = 0; i < 10; i++) - 800263c: 693b ldr r3, [r7, #16] - 800263e: 3301 adds r3, #1 - 8002640: 613b str r3, [r7, #16] - 8002642: 693b ldr r3, [r7, #16] - 8002644: 2b09 cmp r3, #9 - 8002646: ddf6 ble.n 8002636 + 800498c: 693b ldr r3, [r7, #16] + 800498e: 3301 adds r3, #1 + 8004990: 613b str r3, [r7, #16] + 8004992: 693b ldr r3, [r7, #16] + 8004994: 2b09 cmp r3, #9 + 8004996: ddf6 ble.n 8004986 } /* SPI Chips Select */ SELECT(); - 8002648: f7ff ff70 bl 800252c cmd_arg[0] = (CMD0 | 0x40); - 800264c: 2340 movs r3, #64 ; 0x40 - 800264e: 713b strb r3, [r7, #4] + 800499c: 2340 movs r3, #64 ; 0x40 + 800499e: 713b strb r3, [r7, #4] cmd_arg[1] = 0; - 8002650: 2300 movs r3, #0 - 8002652: 717b strb r3, [r7, #5] + 80049a0: 2300 movs r3, #0 + 80049a2: 717b strb r3, [r7, #5] cmd_arg[2] = 0; - 8002654: 2300 movs r3, #0 - 8002656: 71bb strb r3, [r7, #6] + 80049a4: 2300 movs r3, #0 + 80049a6: 71bb strb r3, [r7, #6] cmd_arg[3] = 0; - 8002658: 2300 movs r3, #0 - 800265a: 71fb strb r3, [r7, #7] + 80049a8: 2300 movs r3, #0 + 80049aa: 71fb strb r3, [r7, #7] cmd_arg[4] = 0; - 800265c: 2300 movs r3, #0 - 800265e: 723b strb r3, [r7, #8] + 80049ac: 2300 movs r3, #0 + 80049ae: 723b strb r3, [r7, #8] cmd_arg[5] = 0x95; - 8002660: 2395 movs r3, #149 ; 0x95 - 8002662: 727b strb r3, [r7, #9] + 80049b0: 2395 movs r3, #149 ; 0x95 + 80049b2: 727b strb r3, [r7, #9] for (int i = 0; i < 6; i++) - 8002664: 2300 movs r3, #0 - 8002666: 60fb str r3, [r7, #12] - 8002668: e009 b.n 800267e + 80049b4: 2300 movs r3, #0 + 80049b6: 60fb str r3, [r7, #12] + 80049b8: e009 b.n 80049ce { SPI_TxByte(cmd_arg[i]); - 800266a: 1d3a adds r2, r7, #4 - 800266c: 68fb ldr r3, [r7, #12] - 800266e: 4413 add r3, r2 - 8002670: 781b ldrb r3, [r3, #0] - 8002672: 4618 mov r0, r3 - 8002674: f7ff ff72 bl 800255c + 80049ba: 1d3a adds r2, r7, #4 + 80049bc: 68fb ldr r3, [r7, #12] + 80049be: 4413 add r3, r2 + 80049c0: 781b ldrb r3, [r3, #0] + 80049c2: 4618 mov r0, r3 + 80049c4: f7ff ff72 bl 80048ac for (int i = 0; i < 6; i++) - 8002678: 68fb ldr r3, [r7, #12] - 800267a: 3301 adds r3, #1 - 800267c: 60fb str r3, [r7, #12] - 800267e: 68fb ldr r3, [r7, #12] - 8002680: 2b05 cmp r3, #5 - 8002682: ddf2 ble.n 800266a + 80049c8: 68fb ldr r3, [r7, #12] + 80049ca: 3301 adds r3, #1 + 80049cc: 60fb str r3, [r7, #12] + 80049ce: 68fb ldr r3, [r7, #12] + 80049d0: 2b05 cmp r3, #5 + 80049d2: ddf2 ble.n 80049ba } while ((SPI_RxByte() != 0x01) && Count) - 8002684: e002 b.n 800268c + 80049d4: e002 b.n 80049dc { Count--; - 8002686: 697b ldr r3, [r7, #20] - 8002688: 3b01 subs r3, #1 - 800268a: 617b str r3, [r7, #20] + 80049d6: 697b ldr r3, [r7, #20] + 80049d8: 3b01 subs r3, #1 + 80049da: 617b str r3, [r7, #20] while ((SPI_RxByte() != 0x01) && Count) - 800268c: f7ff ff80 bl 8002590 - 8002690: 4603 mov r3, r0 - 8002692: 2b01 cmp r3, #1 - 8002694: d002 beq.n 800269c - 8002696: 697b ldr r3, [r7, #20] - 8002698: 2b00 cmp r3, #0 - 800269a: d1f4 bne.n 8002686 + 80049dc: f7ff ff80 bl 80048e0 + 80049e0: 4603 mov r3, r0 + 80049e2: 2b01 cmp r3, #1 + 80049e4: d002 beq.n 80049ec + 80049e6: 697b ldr r3, [r7, #20] + 80049e8: 2b00 cmp r3, #0 + 80049ea: d1f4 bne.n 80049d6 } DESELECT(); - 800269c: f7ff ff52 bl 8002544 + 80049ec: f7ff ff52 bl 8004894 SPI_TxByte(0XFF); - 80026a0: 20ff movs r0, #255 ; 0xff - 80026a2: f7ff ff5b bl 800255c + 80049f0: 20ff movs r0, #255 ; 0xff + 80049f2: f7ff ff5b bl 80048ac PowerFlag = 1; - 80026a6: 4b03 ldr r3, [pc, #12] ; (80026b4 ) - 80026a8: 2201 movs r2, #1 - 80026aa: 701a strb r2, [r3, #0] + 80049f6: 4b03 ldr r3, [pc, #12] ; (8004a04 ) + 80049f8: 2201 movs r2, #1 + 80049fa: 701a strb r2, [r3, #0] } - 80026ac: bf00 nop - 80026ae: 3718 adds r7, #24 - 80026b0: 46bd mov sp, r7 - 80026b2: bd80 pop {r7, pc} - 80026b4: 20000051 .word 0x20000051 + 80049fc: bf00 nop + 80049fe: 3718 adds r7, #24 + 8004a00: 46bd mov sp, r7 + 8004a02: bd80 pop {r7, pc} + 8004a04: 200000d9 .word 0x200000d9 -080026b8 : +08004a08 : static void SD_PowerOff(void) { - 80026b8: b480 push {r7} - 80026ba: af00 add r7, sp, #0 + 8004a08: b480 push {r7} + 8004a0a: af00 add r7, sp, #0 PowerFlag = 0; - 80026bc: 4b03 ldr r3, [pc, #12] ; (80026cc ) - 80026be: 2200 movs r2, #0 - 80026c0: 701a strb r2, [r3, #0] + 8004a0c: 4b03 ldr r3, [pc, #12] ; (8004a1c ) + 8004a0e: 2200 movs r2, #0 + 8004a10: 701a strb r2, [r3, #0] } - 80026c2: bf00 nop - 80026c4: 46bd mov sp, r7 - 80026c6: bc80 pop {r7} - 80026c8: 4770 bx lr - 80026ca: bf00 nop - 80026cc: 20000051 .word 0x20000051 + 8004a12: bf00 nop + 8004a14: 46bd mov sp, r7 + 8004a16: bc80 pop {r7} + 8004a18: 4770 bx lr + 8004a1a: bf00 nop + 8004a1c: 200000d9 .word 0x200000d9 -080026d0 : +08004a20 : static uint8_t SD_CheckPower(void) { - 80026d0: b480 push {r7} - 80026d2: af00 add r7, sp, #0 + 8004a20: b480 push {r7} + 8004a22: af00 add r7, sp, #0 /* 0=off, 1=on */ return PowerFlag; - 80026d4: 4b02 ldr r3, [pc, #8] ; (80026e0 ) - 80026d6: 781b ldrb r3, [r3, #0] + 8004a24: 4b02 ldr r3, [pc, #8] ; (8004a30 ) + 8004a26: 781b ldrb r3, [r3, #0] } - 80026d8: 4618 mov r0, r3 - 80026da: 46bd mov sp, r7 - 80026dc: bc80 pop {r7} - 80026de: 4770 bx lr - 80026e0: 20000051 .word 0x20000051 + 8004a28: 4618 mov r0, r3 + 8004a2a: 46bd mov sp, r7 + 8004a2c: bc80 pop {r7} + 8004a2e: 4770 bx lr + 8004a30: 200000d9 .word 0x200000d9 -080026e4 : +08004a34 : static bool SD_RxDataBlock(BYTE *buff, UINT btr) { - 80026e4: b580 push {r7, lr} - 80026e6: b084 sub sp, #16 - 80026e8: af00 add r7, sp, #0 - 80026ea: 6078 str r0, [r7, #4] - 80026ec: 6039 str r1, [r7, #0] + 8004a34: b580 push {r7, lr} + 8004a36: b084 sub sp, #16 + 8004a38: af00 add r7, sp, #0 + 8004a3a: 6078 str r0, [r7, #4] + 8004a3c: 6039 str r1, [r7, #0] uint8_t token; Timer1 = 10; - 80026ee: 4b17 ldr r3, [pc, #92] ; (800274c ) - 80026f0: 220a movs r2, #10 - 80026f2: 701a strb r2, [r3, #0] + 8004a3e: 4b17 ldr r3, [pc, #92] ; (8004a9c ) + 8004a40: 220a movs r2, #10 + 8004a42: 701a strb r2, [r3, #0] do { token = SPI_RxByte(); - 80026f4: f7ff ff4c bl 8002590 - 80026f8: 4603 mov r3, r0 - 80026fa: 73fb strb r3, [r7, #15] + 8004a44: f7ff ff4c bl 80048e0 + 8004a48: 4603 mov r3, r0 + 8004a4a: 73fb strb r3, [r7, #15] } while((token == 0xFF) && Timer1); - 80026fc: 7bfb ldrb r3, [r7, #15] - 80026fe: 2bff cmp r3, #255 ; 0xff - 8002700: d104 bne.n 800270c - 8002702: 4b12 ldr r3, [pc, #72] ; (800274c ) - 8002704: 781b ldrb r3, [r3, #0] - 8002706: b2db uxtb r3, r3 - 8002708: 2b00 cmp r3, #0 - 800270a: d1f3 bne.n 80026f4 + 8004a4c: 7bfb ldrb r3, [r7, #15] + 8004a4e: 2bff cmp r3, #255 ; 0xff + 8004a50: d104 bne.n 8004a5c + 8004a52: 4b12 ldr r3, [pc, #72] ; (8004a9c ) + 8004a54: 781b ldrb r3, [r3, #0] + 8004a56: b2db uxtb r3, r3 + 8004a58: 2b00 cmp r3, #0 + 8004a5a: d1f3 bne.n 8004a44 if(token != 0xFE) - 800270c: 7bfb ldrb r3, [r7, #15] - 800270e: 2bfe cmp r3, #254 ; 0xfe - 8002710: d001 beq.n 8002716 + 8004a5c: 7bfb ldrb r3, [r7, #15] + 8004a5e: 2bfe cmp r3, #254 ; 0xfe + 8004a60: d001 beq.n 8004a66 return FALSE; - 8002712: 2300 movs r3, #0 - 8002714: e016 b.n 8002744 + 8004a62: 2300 movs r3, #0 + 8004a64: e016 b.n 8004a94 do { SPI_RxBytePtr(buff++); - 8002716: 687b ldr r3, [r7, #4] - 8002718: 1c5a adds r2, r3, #1 - 800271a: 607a str r2, [r7, #4] - 800271c: 4618 mov r0, r3 - 800271e: f7ff ff55 bl 80025cc + 8004a66: 687b ldr r3, [r7, #4] + 8004a68: 1c5a adds r2, r3, #1 + 8004a6a: 607a str r2, [r7, #4] + 8004a6c: 4618 mov r0, r3 + 8004a6e: f7ff ff55 bl 800491c SPI_RxBytePtr(buff++); - 8002722: 687b ldr r3, [r7, #4] - 8002724: 1c5a adds r2, r3, #1 - 8002726: 607a str r2, [r7, #4] - 8002728: 4618 mov r0, r3 - 800272a: f7ff ff4f bl 80025cc + 8004a72: 687b ldr r3, [r7, #4] + 8004a74: 1c5a adds r2, r3, #1 + 8004a76: 607a str r2, [r7, #4] + 8004a78: 4618 mov r0, r3 + 8004a7a: f7ff ff4f bl 800491c } while(btr -= 2); - 800272e: 683b ldr r3, [r7, #0] - 8002730: 3b02 subs r3, #2 - 8002732: 603b str r3, [r7, #0] - 8002734: 683b ldr r3, [r7, #0] - 8002736: 2b00 cmp r3, #0 - 8002738: d1ed bne.n 8002716 + 8004a7e: 683b ldr r3, [r7, #0] + 8004a80: 3b02 subs r3, #2 + 8004a82: 603b str r3, [r7, #0] + 8004a84: 683b ldr r3, [r7, #0] + 8004a86: 2b00 cmp r3, #0 + 8004a88: d1ed bne.n 8004a66 SPI_RxByte(); - 800273a: f7ff ff29 bl 8002590 + 8004a8a: f7ff ff29 bl 80048e0 SPI_RxByte(); - 800273e: f7ff ff27 bl 8002590 + 8004a8e: f7ff ff27 bl 80048e0 return TRUE; - 8002742: 2301 movs r3, #1 + 8004a92: 2301 movs r3, #1 } - 8002744: 4618 mov r0, r3 - 8002746: 3710 adds r7, #16 - 8002748: 46bd mov sp, r7 - 800274a: bd80 pop {r7, pc} - 800274c: 2000055d .word 0x2000055d + 8004a94: 4618 mov r0, r3 + 8004a96: 3710 adds r7, #16 + 8004a98: 46bd mov sp, r7 + 8004a9a: bd80 pop {r7, pc} + 8004a9c: 2000081d .word 0x2000081d -08002750 : +08004aa0 : #if _READONLY == 0 static bool SD_TxDataBlock(const BYTE *buff, BYTE token) { - 8002750: b580 push {r7, lr} - 8002752: b084 sub sp, #16 - 8002754: af00 add r7, sp, #0 - 8002756: 6078 str r0, [r7, #4] - 8002758: 460b mov r3, r1 - 800275a: 70fb strb r3, [r7, #3] + 8004aa0: b580 push {r7, lr} + 8004aa2: b084 sub sp, #16 + 8004aa4: af00 add r7, sp, #0 + 8004aa6: 6078 str r0, [r7, #4] + 8004aa8: 460b mov r3, r1 + 8004aaa: 70fb strb r3, [r7, #3] uint8_t resp, wc; uint8_t i = 0; - 800275c: 2300 movs r3, #0 - 800275e: 737b strb r3, [r7, #13] + 8004aac: 2300 movs r3, #0 + 8004aae: 737b strb r3, [r7, #13] if (SD_ReadyWait() != 0xFF) - 8002760: f7ff ff42 bl 80025e8 - 8002764: 4603 mov r3, r0 - 8002766: 2bff cmp r3, #255 ; 0xff - 8002768: d001 beq.n 800276e + 8004ab0: f7ff ff42 bl 8004938 + 8004ab4: 4603 mov r3, r0 + 8004ab6: 2bff cmp r3, #255 ; 0xff + 8004ab8: d001 beq.n 8004abe return FALSE; - 800276a: 2300 movs r3, #0 - 800276c: e040 b.n 80027f0 + 8004aba: 2300 movs r3, #0 + 8004abc: e040 b.n 8004b40 SPI_TxByte(token); - 800276e: 78fb ldrb r3, [r7, #3] - 8002770: 4618 mov r0, r3 - 8002772: f7ff fef3 bl 800255c + 8004abe: 78fb ldrb r3, [r7, #3] + 8004ac0: 4618 mov r0, r3 + 8004ac2: f7ff fef3 bl 80048ac if (token != 0xFD) - 8002776: 78fb ldrb r3, [r7, #3] - 8002778: 2bfd cmp r3, #253 ; 0xfd - 800277a: d031 beq.n 80027e0 + 8004ac6: 78fb ldrb r3, [r7, #3] + 8004ac8: 2bfd cmp r3, #253 ; 0xfd + 8004aca: d031 beq.n 8004b30 { wc = 0; - 800277c: 2300 movs r3, #0 - 800277e: 73bb strb r3, [r7, #14] + 8004acc: 2300 movs r3, #0 + 8004ace: 73bb strb r3, [r7, #14] do { SPI_TxByte(*buff++); - 8002780: 687b ldr r3, [r7, #4] - 8002782: 1c5a adds r2, r3, #1 - 8002784: 607a str r2, [r7, #4] - 8002786: 781b ldrb r3, [r3, #0] - 8002788: 4618 mov r0, r3 - 800278a: f7ff fee7 bl 800255c + 8004ad0: 687b ldr r3, [r7, #4] + 8004ad2: 1c5a adds r2, r3, #1 + 8004ad4: 607a str r2, [r7, #4] + 8004ad6: 781b ldrb r3, [r3, #0] + 8004ad8: 4618 mov r0, r3 + 8004ada: f7ff fee7 bl 80048ac SPI_TxByte(*buff++); - 800278e: 687b ldr r3, [r7, #4] - 8002790: 1c5a adds r2, r3, #1 - 8002792: 607a str r2, [r7, #4] - 8002794: 781b ldrb r3, [r3, #0] - 8002796: 4618 mov r0, r3 - 8002798: f7ff fee0 bl 800255c + 8004ade: 687b ldr r3, [r7, #4] + 8004ae0: 1c5a adds r2, r3, #1 + 8004ae2: 607a str r2, [r7, #4] + 8004ae4: 781b ldrb r3, [r3, #0] + 8004ae6: 4618 mov r0, r3 + 8004ae8: f7ff fee0 bl 80048ac } while (--wc); - 800279c: 7bbb ldrb r3, [r7, #14] - 800279e: 3b01 subs r3, #1 - 80027a0: 73bb strb r3, [r7, #14] - 80027a2: 7bbb ldrb r3, [r7, #14] - 80027a4: 2b00 cmp r3, #0 - 80027a6: d1eb bne.n 8002780 + 8004aec: 7bbb ldrb r3, [r7, #14] + 8004aee: 3b01 subs r3, #1 + 8004af0: 73bb strb r3, [r7, #14] + 8004af2: 7bbb ldrb r3, [r7, #14] + 8004af4: 2b00 cmp r3, #0 + 8004af6: d1eb bne.n 8004ad0 SPI_RxByte(); - 80027a8: f7ff fef2 bl 8002590 + 8004af8: f7ff fef2 bl 80048e0 SPI_RxByte(); - 80027ac: f7ff fef0 bl 8002590 + 8004afc: f7ff fef0 bl 80048e0 while (i <= 64) - 80027b0: e00b b.n 80027ca + 8004b00: e00b b.n 8004b1a { resp = SPI_RxByte(); - 80027b2: f7ff feed bl 8002590 - 80027b6: 4603 mov r3, r0 - 80027b8: 73fb strb r3, [r7, #15] + 8004b02: f7ff feed bl 80048e0 + 8004b06: 4603 mov r3, r0 + 8004b08: 73fb strb r3, [r7, #15] if ((resp & 0x1F) == 0x05) - 80027ba: 7bfb ldrb r3, [r7, #15] - 80027bc: f003 031f and.w r3, r3, #31 - 80027c0: 2b05 cmp r3, #5 - 80027c2: d006 beq.n 80027d2 + 8004b0a: 7bfb ldrb r3, [r7, #15] + 8004b0c: f003 031f and.w r3, r3, #31 + 8004b10: 2b05 cmp r3, #5 + 8004b12: d006 beq.n 8004b22 break; i++; - 80027c4: 7b7b ldrb r3, [r7, #13] - 80027c6: 3301 adds r3, #1 - 80027c8: 737b strb r3, [r7, #13] + 8004b14: 7b7b ldrb r3, [r7, #13] + 8004b16: 3301 adds r3, #1 + 8004b18: 737b strb r3, [r7, #13] while (i <= 64) - 80027ca: 7b7b ldrb r3, [r7, #13] - 80027cc: 2b40 cmp r3, #64 ; 0x40 - 80027ce: d9f0 bls.n 80027b2 - 80027d0: e000 b.n 80027d4 + 8004b1a: 7b7b ldrb r3, [r7, #13] + 8004b1c: 2b40 cmp r3, #64 ; 0x40 + 8004b1e: d9f0 bls.n 8004b02 + 8004b20: e000 b.n 8004b24 break; - 80027d2: bf00 nop + 8004b22: bf00 nop } while (SPI_RxByte() == 0); - 80027d4: bf00 nop - 80027d6: f7ff fedb bl 8002590 - 80027da: 4603 mov r3, r0 - 80027dc: 2b00 cmp r3, #0 - 80027de: d0fa beq.n 80027d6 + 8004b24: bf00 nop + 8004b26: f7ff fedb bl 80048e0 + 8004b2a: 4603 mov r3, r0 + 8004b2c: 2b00 cmp r3, #0 + 8004b2e: d0fa beq.n 8004b26 } if ((resp & 0x1F) == 0x05) - 80027e0: 7bfb ldrb r3, [r7, #15] - 80027e2: f003 031f and.w r3, r3, #31 - 80027e6: 2b05 cmp r3, #5 - 80027e8: d101 bne.n 80027ee + 8004b30: 7bfb ldrb r3, [r7, #15] + 8004b32: f003 031f and.w r3, r3, #31 + 8004b36: 2b05 cmp r3, #5 + 8004b38: d101 bne.n 8004b3e return TRUE; - 80027ea: 2301 movs r3, #1 - 80027ec: e000 b.n 80027f0 + 8004b3a: 2301 movs r3, #1 + 8004b3c: e000 b.n 8004b40 else return FALSE; - 80027ee: 2300 movs r3, #0 + 8004b3e: 2300 movs r3, #0 } - 80027f0: 4618 mov r0, r3 - 80027f2: 3710 adds r7, #16 - 80027f4: 46bd mov sp, r7 - 80027f6: bd80 pop {r7, pc} + 8004b40: 4618 mov r0, r3 + 8004b42: 3710 adds r7, #16 + 8004b44: 46bd mov sp, r7 + 8004b46: bd80 pop {r7, pc} -080027f8 : +08004b48 : #endif /* _READONLY */ static BYTE SD_SendCmd(BYTE cmd, DWORD arg) { - 80027f8: b580 push {r7, lr} - 80027fa: b084 sub sp, #16 - 80027fc: af00 add r7, sp, #0 - 80027fe: 4603 mov r3, r0 - 8002800: 6039 str r1, [r7, #0] - 8002802: 71fb strb r3, [r7, #7] + 8004b48: b580 push {r7, lr} + 8004b4a: b084 sub sp, #16 + 8004b4c: af00 add r7, sp, #0 + 8004b4e: 4603 mov r3, r0 + 8004b50: 6039 str r1, [r7, #0] + 8004b52: 71fb strb r3, [r7, #7] uint8_t crc, res; if (SD_ReadyWait() != 0xFF) - 8002804: f7ff fef0 bl 80025e8 - 8002808: 4603 mov r3, r0 - 800280a: 2bff cmp r3, #255 ; 0xff - 800280c: d001 beq.n 8002812 + 8004b54: f7ff fef0 bl 8004938 + 8004b58: 4603 mov r3, r0 + 8004b5a: 2bff cmp r3, #255 ; 0xff + 8004b5c: d001 beq.n 8004b62 return 0xFF; - 800280e: 23ff movs r3, #255 ; 0xff - 8002810: e040 b.n 8002894 + 8004b5e: 23ff movs r3, #255 ; 0xff + 8004b60: e040 b.n 8004be4 SPI_TxByte(cmd); /* Command */ - 8002812: 79fb ldrb r3, [r7, #7] - 8002814: 4618 mov r0, r3 - 8002816: f7ff fea1 bl 800255c + 8004b62: 79fb ldrb r3, [r7, #7] + 8004b64: 4618 mov r0, r3 + 8004b66: f7ff fea1 bl 80048ac SPI_TxByte((BYTE) (arg >> 24)); /* Argument[31..24] */ - 800281a: 683b ldr r3, [r7, #0] - 800281c: 0e1b lsrs r3, r3, #24 - 800281e: b2db uxtb r3, r3 - 8002820: 4618 mov r0, r3 - 8002822: f7ff fe9b bl 800255c + 8004b6a: 683b ldr r3, [r7, #0] + 8004b6c: 0e1b lsrs r3, r3, #24 + 8004b6e: b2db uxtb r3, r3 + 8004b70: 4618 mov r0, r3 + 8004b72: f7ff fe9b bl 80048ac SPI_TxByte((BYTE) (arg >> 16)); /* Argument[23..16] */ - 8002826: 683b ldr r3, [r7, #0] - 8002828: 0c1b lsrs r3, r3, #16 - 800282a: b2db uxtb r3, r3 - 800282c: 4618 mov r0, r3 - 800282e: f7ff fe95 bl 800255c + 8004b76: 683b ldr r3, [r7, #0] + 8004b78: 0c1b lsrs r3, r3, #16 + 8004b7a: b2db uxtb r3, r3 + 8004b7c: 4618 mov r0, r3 + 8004b7e: f7ff fe95 bl 80048ac SPI_TxByte((BYTE) (arg >> 8)); /* Argument[15..8] */ - 8002832: 683b ldr r3, [r7, #0] - 8002834: 0a1b lsrs r3, r3, #8 - 8002836: b2db uxtb r3, r3 - 8002838: 4618 mov r0, r3 - 800283a: f7ff fe8f bl 800255c + 8004b82: 683b ldr r3, [r7, #0] + 8004b84: 0a1b lsrs r3, r3, #8 + 8004b86: b2db uxtb r3, r3 + 8004b88: 4618 mov r0, r3 + 8004b8a: f7ff fe8f bl 80048ac SPI_TxByte((BYTE) arg); /* Argument[7..0] */ - 800283e: 683b ldr r3, [r7, #0] - 8002840: b2db uxtb r3, r3 - 8002842: 4618 mov r0, r3 - 8002844: f7ff fe8a bl 800255c + 8004b8e: 683b ldr r3, [r7, #0] + 8004b90: b2db uxtb r3, r3 + 8004b92: 4618 mov r0, r3 + 8004b94: f7ff fe8a bl 80048ac crc = 0; - 8002848: 2300 movs r3, #0 - 800284a: 73fb strb r3, [r7, #15] + 8004b98: 2300 movs r3, #0 + 8004b9a: 73fb strb r3, [r7, #15] if (cmd == CMD0) - 800284c: 79fb ldrb r3, [r7, #7] - 800284e: 2b40 cmp r3, #64 ; 0x40 - 8002850: d101 bne.n 8002856 + 8004b9c: 79fb ldrb r3, [r7, #7] + 8004b9e: 2b40 cmp r3, #64 ; 0x40 + 8004ba0: d101 bne.n 8004ba6 crc = 0x95; /* CRC for CMD0(0) */ - 8002852: 2395 movs r3, #149 ; 0x95 - 8002854: 73fb strb r3, [r7, #15] + 8004ba2: 2395 movs r3, #149 ; 0x95 + 8004ba4: 73fb strb r3, [r7, #15] if (cmd == CMD8) - 8002856: 79fb ldrb r3, [r7, #7] - 8002858: 2b48 cmp r3, #72 ; 0x48 - 800285a: d101 bne.n 8002860 + 8004ba6: 79fb ldrb r3, [r7, #7] + 8004ba8: 2b48 cmp r3, #72 ; 0x48 + 8004baa: d101 bne.n 8004bb0 crc = 0x87; /* CRC for CMD8(0x1AA) */ - 800285c: 2387 movs r3, #135 ; 0x87 - 800285e: 73fb strb r3, [r7, #15] + 8004bac: 2387 movs r3, #135 ; 0x87 + 8004bae: 73fb strb r3, [r7, #15] SPI_TxByte(crc); - 8002860: 7bfb ldrb r3, [r7, #15] - 8002862: 4618 mov r0, r3 - 8002864: f7ff fe7a bl 800255c + 8004bb0: 7bfb ldrb r3, [r7, #15] + 8004bb2: 4618 mov r0, r3 + 8004bb4: f7ff fe7a bl 80048ac if (cmd == CMD12) - 8002868: 79fb ldrb r3, [r7, #7] - 800286a: 2b4c cmp r3, #76 ; 0x4c - 800286c: d101 bne.n 8002872 + 8004bb8: 79fb ldrb r3, [r7, #7] + 8004bba: 2b4c cmp r3, #76 ; 0x4c + 8004bbc: d101 bne.n 8004bc2 SPI_RxByte(); - 800286e: f7ff fe8f bl 8002590 + 8004bbe: f7ff fe8f bl 80048e0 uint8_t n = 10; - 8002872: 230a movs r3, #10 - 8002874: 73bb strb r3, [r7, #14] + 8004bc2: 230a movs r3, #10 + 8004bc4: 73bb strb r3, [r7, #14] do { res = SPI_RxByte(); - 8002876: f7ff fe8b bl 8002590 - 800287a: 4603 mov r3, r0 - 800287c: 737b strb r3, [r7, #13] + 8004bc6: f7ff fe8b bl 80048e0 + 8004bca: 4603 mov r3, r0 + 8004bcc: 737b strb r3, [r7, #13] } while ((res & 0x80) && --n); - 800287e: f997 300d ldrsb.w r3, [r7, #13] - 8002882: 2b00 cmp r3, #0 - 8002884: da05 bge.n 8002892 - 8002886: 7bbb ldrb r3, [r7, #14] - 8002888: 3b01 subs r3, #1 - 800288a: 73bb strb r3, [r7, #14] - 800288c: 7bbb ldrb r3, [r7, #14] - 800288e: 2b00 cmp r3, #0 - 8002890: d1f1 bne.n 8002876 + 8004bce: f997 300d ldrsb.w r3, [r7, #13] + 8004bd2: 2b00 cmp r3, #0 + 8004bd4: da05 bge.n 8004be2 + 8004bd6: 7bbb ldrb r3, [r7, #14] + 8004bd8: 3b01 subs r3, #1 + 8004bda: 73bb strb r3, [r7, #14] + 8004bdc: 7bbb ldrb r3, [r7, #14] + 8004bde: 2b00 cmp r3, #0 + 8004be0: d1f1 bne.n 8004bc6 return res; - 8002892: 7b7b ldrb r3, [r7, #13] + 8004be2: 7b7b ldrb r3, [r7, #13] } - 8002894: 4618 mov r0, r3 - 8002896: 3710 adds r7, #16 - 8002898: 46bd mov sp, r7 - 800289a: bd80 pop {r7, pc} + 8004be4: 4618 mov r0, r3 + 8004be6: 3710 adds r7, #16 + 8004be8: 46bd mov sp, r7 + 8004bea: bd80 pop {r7, pc} -0800289c : +08004bec : -----------------------------------------------------------------------*/ DSTATUS SD_disk_initialize(BYTE drv) { - 800289c: b590 push {r4, r7, lr} - 800289e: b085 sub sp, #20 - 80028a0: af00 add r7, sp, #0 - 80028a2: 4603 mov r3, r0 - 80028a4: 71fb strb r3, [r7, #7] + 8004bec: b590 push {r4, r7, lr} + 8004bee: b085 sub sp, #20 + 8004bf0: af00 add r7, sp, #0 + 8004bf2: 4603 mov r3, r0 + 8004bf4: 71fb strb r3, [r7, #7] uint8_t n, type, ocr[4]; if(drv) - 80028a6: 79fb ldrb r3, [r7, #7] - 80028a8: 2b00 cmp r3, #0 - 80028aa: d001 beq.n 80028b0 + 8004bf6: 79fb ldrb r3, [r7, #7] + 8004bf8: 2b00 cmp r3, #0 + 8004bfa: d001 beq.n 8004c00 return STA_NOINIT; - 80028ac: 2301 movs r3, #1 - 80028ae: e0d5 b.n 8002a5c + 8004bfc: 2301 movs r3, #1 + 8004bfe: e0d5 b.n 8004dac if(Stat & STA_NODISK) - 80028b0: 4b6c ldr r3, [pc, #432] ; (8002a64 ) - 80028b2: 781b ldrb r3, [r3, #0] - 80028b4: b2db uxtb r3, r3 - 80028b6: f003 0302 and.w r3, r3, #2 - 80028ba: 2b00 cmp r3, #0 - 80028bc: d003 beq.n 80028c6 + 8004c00: 4b6c ldr r3, [pc, #432] ; (8004db4 ) + 8004c02: 781b ldrb r3, [r3, #0] + 8004c04: b2db uxtb r3, r3 + 8004c06: f003 0302 and.w r3, r3, #2 + 8004c0a: 2b00 cmp r3, #0 + 8004c0c: d003 beq.n 8004c16 return Stat; - 80028be: 4b69 ldr r3, [pc, #420] ; (8002a64 ) - 80028c0: 781b ldrb r3, [r3, #0] - 80028c2: b2db uxtb r3, r3 - 80028c4: e0ca b.n 8002a5c + 8004c0e: 4b69 ldr r3, [pc, #420] ; (8004db4 ) + 8004c10: 781b ldrb r3, [r3, #0] + 8004c12: b2db uxtb r3, r3 + 8004c14: e0ca b.n 8004dac SD_PowerOn(); - 80028c6: f7ff feab bl 8002620 + 8004c16: f7ff feab bl 8004970 SELECT(); - 80028ca: f7ff fe2f bl 800252c type = 0; - 80028ce: 2300 movs r3, #0 - 80028d0: 73bb strb r3, [r7, #14] + 8004c1e: 2300 movs r3, #0 + 8004c20: 73bb strb r3, [r7, #14] if (SD_SendCmd(CMD0, 0) == 1) - 80028d2: 2100 movs r1, #0 - 80028d4: 2040 movs r0, #64 ; 0x40 - 80028d6: f7ff ff8f bl 80027f8 - 80028da: 4603 mov r3, r0 - 80028dc: 2b01 cmp r3, #1 - 80028de: f040 80a5 bne.w 8002a2c + 8004c22: 2100 movs r1, #0 + 8004c24: 2040 movs r0, #64 ; 0x40 + 8004c26: f7ff ff8f bl 8004b48 + 8004c2a: 4603 mov r3, r0 + 8004c2c: 2b01 cmp r3, #1 + 8004c2e: f040 80a5 bne.w 8004d7c { Timer1 = 100; - 80028e2: 4b61 ldr r3, [pc, #388] ; (8002a68 ) - 80028e4: 2264 movs r2, #100 ; 0x64 - 80028e6: 701a strb r2, [r3, #0] + 8004c32: 4b61 ldr r3, [pc, #388] ; (8004db8 ) + 8004c34: 2264 movs r2, #100 ; 0x64 + 8004c36: 701a strb r2, [r3, #0] if (SD_SendCmd(CMD8, 0x1AA) == 1) - 80028e8: f44f 71d5 mov.w r1, #426 ; 0x1aa - 80028ec: 2048 movs r0, #72 ; 0x48 - 80028ee: f7ff ff83 bl 80027f8 - 80028f2: 4603 mov r3, r0 - 80028f4: 2b01 cmp r3, #1 - 80028f6: d158 bne.n 80029aa + 8004c38: f44f 71d5 mov.w r1, #426 ; 0x1aa + 8004c3c: 2048 movs r0, #72 ; 0x48 + 8004c3e: f7ff ff83 bl 8004b48 + 8004c42: 4603 mov r3, r0 + 8004c44: 2b01 cmp r3, #1 + 8004c46: d158 bne.n 8004cfa { /* SDC Ver2+ */ for (n = 0; n < 4; n++) - 80028f8: 2300 movs r3, #0 - 80028fa: 73fb strb r3, [r7, #15] - 80028fc: e00c b.n 8002918 + 8004c48: 2300 movs r3, #0 + 8004c4a: 73fb strb r3, [r7, #15] + 8004c4c: e00c b.n 8004c68 { ocr[n] = SPI_RxByte(); - 80028fe: 7bfc ldrb r4, [r7, #15] - 8002900: f7ff fe46 bl 8002590 - 8002904: 4603 mov r3, r0 - 8002906: 461a mov r2, r3 - 8002908: f107 0310 add.w r3, r7, #16 - 800290c: 4423 add r3, r4 - 800290e: f803 2c08 strb.w r2, [r3, #-8] + 8004c4e: 7bfc ldrb r4, [r7, #15] + 8004c50: f7ff fe46 bl 80048e0 + 8004c54: 4603 mov r3, r0 + 8004c56: 461a mov r2, r3 + 8004c58: f107 0310 add.w r3, r7, #16 + 8004c5c: 4423 add r3, r4 + 8004c5e: f803 2c08 strb.w r2, [r3, #-8] for (n = 0; n < 4; n++) - 8002912: 7bfb ldrb r3, [r7, #15] - 8002914: 3301 adds r3, #1 - 8002916: 73fb strb r3, [r7, #15] - 8002918: 7bfb ldrb r3, [r7, #15] - 800291a: 2b03 cmp r3, #3 - 800291c: d9ef bls.n 80028fe + 8004c62: 7bfb ldrb r3, [r7, #15] + 8004c64: 3301 adds r3, #1 + 8004c66: 73fb strb r3, [r7, #15] + 8004c68: 7bfb ldrb r3, [r7, #15] + 8004c6a: 2b03 cmp r3, #3 + 8004c6c: d9ef bls.n 8004c4e } if (ocr[2] == 0x01 && ocr[3] == 0xAA) - 800291e: 7abb ldrb r3, [r7, #10] - 8002920: 2b01 cmp r3, #1 - 8002922: f040 8083 bne.w 8002a2c - 8002926: 7afb ldrb r3, [r7, #11] - 8002928: 2baa cmp r3, #170 ; 0xaa - 800292a: d17f bne.n 8002a2c + 8004c6e: 7abb ldrb r3, [r7, #10] + 8004c70: 2b01 cmp r3, #1 + 8004c72: f040 8083 bne.w 8004d7c + 8004c76: 7afb ldrb r3, [r7, #11] + 8004c78: 2baa cmp r3, #170 ; 0xaa + 8004c7a: d17f bne.n 8004d7c { do { if (SD_SendCmd(CMD55, 0) <= 1 && SD_SendCmd(CMD41, 1UL << 30) == 0) - 800292c: 2100 movs r1, #0 - 800292e: 2077 movs r0, #119 ; 0x77 - 8002930: f7ff ff62 bl 80027f8 - 8002934: 4603 mov r3, r0 - 8002936: 2b01 cmp r3, #1 - 8002938: d807 bhi.n 800294a - 800293a: f04f 4180 mov.w r1, #1073741824 ; 0x40000000 - 800293e: 2069 movs r0, #105 ; 0x69 - 8002940: f7ff ff5a bl 80027f8 - 8002944: 4603 mov r3, r0 - 8002946: 2b00 cmp r3, #0 - 8002948: d005 beq.n 8002956 + 8004c7c: 2100 movs r1, #0 + 8004c7e: 2077 movs r0, #119 ; 0x77 + 8004c80: f7ff ff62 bl 8004b48 + 8004c84: 4603 mov r3, r0 + 8004c86: 2b01 cmp r3, #1 + 8004c88: d807 bhi.n 8004c9a + 8004c8a: f04f 4180 mov.w r1, #1073741824 ; 0x40000000 + 8004c8e: 2069 movs r0, #105 ; 0x69 + 8004c90: f7ff ff5a bl 8004b48 + 8004c94: 4603 mov r3, r0 + 8004c96: 2b00 cmp r3, #0 + 8004c98: d005 beq.n 8004ca6 break; /* ACMD41 with HCS bit */ } while (Timer1); - 800294a: 4b47 ldr r3, [pc, #284] ; (8002a68 ) - 800294c: 781b ldrb r3, [r3, #0] - 800294e: b2db uxtb r3, r3 - 8002950: 2b00 cmp r3, #0 - 8002952: d1eb bne.n 800292c - 8002954: e000 b.n 8002958 + 8004c9a: 4b47 ldr r3, [pc, #284] ; (8004db8 ) + 8004c9c: 781b ldrb r3, [r3, #0] + 8004c9e: b2db uxtb r3, r3 + 8004ca0: 2b00 cmp r3, #0 + 8004ca2: d1eb bne.n 8004c7c + 8004ca4: e000 b.n 8004ca8 break; /* ACMD41 with HCS bit */ - 8002956: bf00 nop + 8004ca6: bf00 nop if (Timer1 && SD_SendCmd(CMD58, 0) == 0) - 8002958: 4b43 ldr r3, [pc, #268] ; (8002a68 ) - 800295a: 781b ldrb r3, [r3, #0] - 800295c: b2db uxtb r3, r3 - 800295e: 2b00 cmp r3, #0 - 8002960: d064 beq.n 8002a2c - 8002962: 2100 movs r1, #0 - 8002964: 207a movs r0, #122 ; 0x7a - 8002966: f7ff ff47 bl 80027f8 - 800296a: 4603 mov r3, r0 - 800296c: 2b00 cmp r3, #0 - 800296e: d15d bne.n 8002a2c + 8004ca8: 4b43 ldr r3, [pc, #268] ; (8004db8 ) + 8004caa: 781b ldrb r3, [r3, #0] + 8004cac: b2db uxtb r3, r3 + 8004cae: 2b00 cmp r3, #0 + 8004cb0: d064 beq.n 8004d7c + 8004cb2: 2100 movs r1, #0 + 8004cb4: 207a movs r0, #122 ; 0x7a + 8004cb6: f7ff ff47 bl 8004b48 + 8004cba: 4603 mov r3, r0 + 8004cbc: 2b00 cmp r3, #0 + 8004cbe: d15d bne.n 8004d7c { /* Check CCS bit */ for (n = 0; n < 4; n++) - 8002970: 2300 movs r3, #0 - 8002972: 73fb strb r3, [r7, #15] - 8002974: e00c b.n 8002990 + 8004cc0: 2300 movs r3, #0 + 8004cc2: 73fb strb r3, [r7, #15] + 8004cc4: e00c b.n 8004ce0 { ocr[n] = SPI_RxByte(); - 8002976: 7bfc ldrb r4, [r7, #15] - 8002978: f7ff fe0a bl 8002590 - 800297c: 4603 mov r3, r0 - 800297e: 461a mov r2, r3 - 8002980: f107 0310 add.w r3, r7, #16 - 8002984: 4423 add r3, r4 - 8002986: f803 2c08 strb.w r2, [r3, #-8] + 8004cc6: 7bfc ldrb r4, [r7, #15] + 8004cc8: f7ff fe0a bl 80048e0 + 8004ccc: 4603 mov r3, r0 + 8004cce: 461a mov r2, r3 + 8004cd0: f107 0310 add.w r3, r7, #16 + 8004cd4: 4423 add r3, r4 + 8004cd6: f803 2c08 strb.w r2, [r3, #-8] for (n = 0; n < 4; n++) - 800298a: 7bfb ldrb r3, [r7, #15] - 800298c: 3301 adds r3, #1 - 800298e: 73fb strb r3, [r7, #15] - 8002990: 7bfb ldrb r3, [r7, #15] - 8002992: 2b03 cmp r3, #3 - 8002994: d9ef bls.n 8002976 + 8004cda: 7bfb ldrb r3, [r7, #15] + 8004cdc: 3301 adds r3, #1 + 8004cde: 73fb strb r3, [r7, #15] + 8004ce0: 7bfb ldrb r3, [r7, #15] + 8004ce2: 2b03 cmp r3, #3 + 8004ce4: d9ef bls.n 8004cc6 } type = (ocr[0] & 0x40) ? 6 : 2; - 8002996: 7a3b ldrb r3, [r7, #8] - 8002998: f003 0340 and.w r3, r3, #64 ; 0x40 - 800299c: 2b00 cmp r3, #0 - 800299e: d001 beq.n 80029a4 - 80029a0: 2306 movs r3, #6 - 80029a2: e000 b.n 80029a6 - 80029a4: 2302 movs r3, #2 - 80029a6: 73bb strb r3, [r7, #14] - 80029a8: e040 b.n 8002a2c + 8004ce6: 7a3b ldrb r3, [r7, #8] + 8004ce8: f003 0340 and.w r3, r3, #64 ; 0x40 + 8004cec: 2b00 cmp r3, #0 + 8004cee: d001 beq.n 8004cf4 + 8004cf0: 2306 movs r3, #6 + 8004cf2: e000 b.n 8004cf6 + 8004cf4: 2302 movs r3, #2 + 8004cf6: 73bb strb r3, [r7, #14] + 8004cf8: e040 b.n 8004d7c } } else { /* SDC Ver1 or MMC */ type = (SD_SendCmd(CMD55, 0) <= 1 && SD_SendCmd(CMD41, 0) <= 1) ? 2 : 1; /* SDC : MMC */ - 80029aa: 2100 movs r1, #0 - 80029ac: 2077 movs r0, #119 ; 0x77 - 80029ae: f7ff ff23 bl 80027f8 - 80029b2: 4603 mov r3, r0 - 80029b4: 2b01 cmp r3, #1 - 80029b6: d808 bhi.n 80029ca - 80029b8: 2100 movs r1, #0 - 80029ba: 2069 movs r0, #105 ; 0x69 - 80029bc: f7ff ff1c bl 80027f8 - 80029c0: 4603 mov r3, r0 - 80029c2: 2b01 cmp r3, #1 - 80029c4: d801 bhi.n 80029ca - 80029c6: 2302 movs r3, #2 - 80029c8: e000 b.n 80029cc - 80029ca: 2301 movs r3, #1 - 80029cc: 73bb strb r3, [r7, #14] + 8004cfa: 2100 movs r1, #0 + 8004cfc: 2077 movs r0, #119 ; 0x77 + 8004cfe: f7ff ff23 bl 8004b48 + 8004d02: 4603 mov r3, r0 + 8004d04: 2b01 cmp r3, #1 + 8004d06: d808 bhi.n 8004d1a + 8004d08: 2100 movs r1, #0 + 8004d0a: 2069 movs r0, #105 ; 0x69 + 8004d0c: f7ff ff1c bl 8004b48 + 8004d10: 4603 mov r3, r0 + 8004d12: 2b01 cmp r3, #1 + 8004d14: d801 bhi.n 8004d1a + 8004d16: 2302 movs r3, #2 + 8004d18: e000 b.n 8004d1c + 8004d1a: 2301 movs r3, #1 + 8004d1c: 73bb strb r3, [r7, #14] do { if (type == 2) - 80029ce: 7bbb ldrb r3, [r7, #14] - 80029d0: 2b02 cmp r3, #2 - 80029d2: d10e bne.n 80029f2 + 8004d1e: 7bbb ldrb r3, [r7, #14] + 8004d20: 2b02 cmp r3, #2 + 8004d22: d10e bne.n 8004d42 { if (SD_SendCmd(CMD55, 0) <= 1 && SD_SendCmd(CMD41, 0) == 0) - 80029d4: 2100 movs r1, #0 - 80029d6: 2077 movs r0, #119 ; 0x77 - 80029d8: f7ff ff0e bl 80027f8 - 80029dc: 4603 mov r3, r0 - 80029de: 2b01 cmp r3, #1 - 80029e0: d80e bhi.n 8002a00 - 80029e2: 2100 movs r1, #0 - 80029e4: 2069 movs r0, #105 ; 0x69 - 80029e6: f7ff ff07 bl 80027f8 - 80029ea: 4603 mov r3, r0 - 80029ec: 2b00 cmp r3, #0 - 80029ee: d107 bne.n 8002a00 + 8004d24: 2100 movs r1, #0 + 8004d26: 2077 movs r0, #119 ; 0x77 + 8004d28: f7ff ff0e bl 8004b48 + 8004d2c: 4603 mov r3, r0 + 8004d2e: 2b01 cmp r3, #1 + 8004d30: d80e bhi.n 8004d50 + 8004d32: 2100 movs r1, #0 + 8004d34: 2069 movs r0, #105 ; 0x69 + 8004d36: f7ff ff07 bl 8004b48 + 8004d3a: 4603 mov r3, r0 + 8004d3c: 2b00 cmp r3, #0 + 8004d3e: d107 bne.n 8004d50 break; /* ACMD41 */ - 80029f0: e00d b.n 8002a0e + 8004d40: e00d b.n 8004d5e } else { if (SD_SendCmd(CMD1, 0) == 0) - 80029f2: 2100 movs r1, #0 - 80029f4: 2041 movs r0, #65 ; 0x41 - 80029f6: f7ff feff bl 80027f8 - 80029fa: 4603 mov r3, r0 - 80029fc: 2b00 cmp r3, #0 - 80029fe: d005 beq.n 8002a0c + 8004d42: 2100 movs r1, #0 + 8004d44: 2041 movs r0, #65 ; 0x41 + 8004d46: f7ff feff bl 8004b48 + 8004d4a: 4603 mov r3, r0 + 8004d4c: 2b00 cmp r3, #0 + 8004d4e: d005 beq.n 8004d5c break; /* CMD1 */ } } while (Timer1); - 8002a00: 4b19 ldr r3, [pc, #100] ; (8002a68 ) - 8002a02: 781b ldrb r3, [r3, #0] - 8002a04: b2db uxtb r3, r3 - 8002a06: 2b00 cmp r3, #0 - 8002a08: d1e1 bne.n 80029ce - 8002a0a: e000 b.n 8002a0e + 8004d50: 4b19 ldr r3, [pc, #100] ; (8004db8 ) + 8004d52: 781b ldrb r3, [r3, #0] + 8004d54: b2db uxtb r3, r3 + 8004d56: 2b00 cmp r3, #0 + 8004d58: d1e1 bne.n 8004d1e + 8004d5a: e000 b.n 8004d5e break; /* CMD1 */ - 8002a0c: bf00 nop + 8004d5c: bf00 nop if (!Timer1 || SD_SendCmd(CMD16, 512) != 0) - 8002a0e: 4b16 ldr r3, [pc, #88] ; (8002a68 ) - 8002a10: 781b ldrb r3, [r3, #0] - 8002a12: b2db uxtb r3, r3 - 8002a14: 2b00 cmp r3, #0 - 8002a16: d007 beq.n 8002a28 - 8002a18: f44f 7100 mov.w r1, #512 ; 0x200 - 8002a1c: 2050 movs r0, #80 ; 0x50 - 8002a1e: f7ff feeb bl 80027f8 - 8002a22: 4603 mov r3, r0 - 8002a24: 2b00 cmp r3, #0 - 8002a26: d001 beq.n 8002a2c + 8004d5e: 4b16 ldr r3, [pc, #88] ; (8004db8 ) + 8004d60: 781b ldrb r3, [r3, #0] + 8004d62: b2db uxtb r3, r3 + 8004d64: 2b00 cmp r3, #0 + 8004d66: d007 beq.n 8004d78 + 8004d68: f44f 7100 mov.w r1, #512 ; 0x200 + 8004d6c: 2050 movs r0, #80 ; 0x50 + 8004d6e: f7ff feeb bl 8004b48 + 8004d72: 4603 mov r3, r0 + 8004d74: 2b00 cmp r3, #0 + 8004d76: d001 beq.n 8004d7c { type = 0; - 8002a28: 2300 movs r3, #0 - 8002a2a: 73bb strb r3, [r7, #14] + 8004d78: 2300 movs r3, #0 + 8004d7a: 73bb strb r3, [r7, #14] } } } CardType = type; - 8002a2c: 4a0f ldr r2, [pc, #60] ; (8002a6c ) - 8002a2e: 7bbb ldrb r3, [r7, #14] - 8002a30: 7013 strb r3, [r2, #0] + 8004d7c: 4a0f ldr r2, [pc, #60] ; (8004dbc ) + 8004d7e: 7bbb ldrb r3, [r7, #14] + 8004d80: 7013 strb r3, [r2, #0] DESELECT(); - 8002a32: f7ff fd87 bl 8002544 + 8004d82: f7ff fd87 bl 8004894 SPI_RxByte(); - 8002a36: f7ff fdab bl 8002590 + 8004d86: f7ff fdab bl 80048e0 if (type) - 8002a3a: 7bbb ldrb r3, [r7, #14] - 8002a3c: 2b00 cmp r3, #0 - 8002a3e: d008 beq.n 8002a52 + 8004d8a: 7bbb ldrb r3, [r7, #14] + 8004d8c: 2b00 cmp r3, #0 + 8004d8e: d008 beq.n 8004da2 { /* Clear STA_NOINIT */ Stat &= ~STA_NOINIT; - 8002a40: 4b08 ldr r3, [pc, #32] ; (8002a64 ) - 8002a42: 781b ldrb r3, [r3, #0] - 8002a44: b2db uxtb r3, r3 - 8002a46: f023 0301 bic.w r3, r3, #1 - 8002a4a: b2da uxtb r2, r3 - 8002a4c: 4b05 ldr r3, [pc, #20] ; (8002a64 ) - 8002a4e: 701a strb r2, [r3, #0] - 8002a50: e001 b.n 8002a56 + 8004d90: 4b08 ldr r3, [pc, #32] ; (8004db4 ) + 8004d92: 781b ldrb r3, [r3, #0] + 8004d94: b2db uxtb r3, r3 + 8004d96: f023 0301 bic.w r3, r3, #1 + 8004d9a: b2da uxtb r2, r3 + 8004d9c: 4b05 ldr r3, [pc, #20] ; (8004db4 ) + 8004d9e: 701a strb r2, [r3, #0] + 8004da0: e001 b.n 8004da6 } else { /* Initialization failed */ SD_PowerOff(); - 8002a52: f7ff fe31 bl 80026b8 + 8004da2: f7ff fe31 bl 8004a08 } return Stat; - 8002a56: 4b03 ldr r3, [pc, #12] ; (8002a64 ) - 8002a58: 781b ldrb r3, [r3, #0] - 8002a5a: b2db uxtb r3, r3 + 8004da6: 4b03 ldr r3, [pc, #12] ; (8004db4 ) + 8004da8: 781b ldrb r3, [r3, #0] + 8004daa: b2db uxtb r3, r3 } - 8002a5c: 4618 mov r0, r3 - 8002a5e: 3714 adds r7, #20 - 8002a60: 46bd mov sp, r7 - 8002a62: bd90 pop {r4, r7, pc} - 8002a64: 20000020 .word 0x20000020 - 8002a68: 2000055d .word 0x2000055d - 8002a6c: 20000050 .word 0x20000050 + 8004dac: 4618 mov r0, r3 + 8004dae: 3714 adds r7, #20 + 8004db0: 46bd mov sp, r7 + 8004db2: bd90 pop {r4, r7, pc} + 8004db4: 20000020 .word 0x20000020 + 8004db8: 2000081d .word 0x2000081d + 8004dbc: 200000d8 .word 0x200000d8 -08002a70 : +08004dc0 : DSTATUS SD_disk_status(BYTE drv) { - 8002a70: b480 push {r7} - 8002a72: b083 sub sp, #12 - 8002a74: af00 add r7, sp, #0 - 8002a76: 4603 mov r3, r0 - 8002a78: 71fb strb r3, [r7, #7] + 8004dc0: b480 push {r7} + 8004dc2: b083 sub sp, #12 + 8004dc4: af00 add r7, sp, #0 + 8004dc6: 4603 mov r3, r0 + 8004dc8: 71fb strb r3, [r7, #7] if (drv) - 8002a7a: 79fb ldrb r3, [r7, #7] - 8002a7c: 2b00 cmp r3, #0 - 8002a7e: d001 beq.n 8002a84 + 8004dca: 79fb ldrb r3, [r7, #7] + 8004dcc: 2b00 cmp r3, #0 + 8004dce: d001 beq.n 8004dd4 return STA_NOINIT; - 8002a80: 2301 movs r3, #1 - 8002a82: e002 b.n 8002a8a + 8004dd0: 2301 movs r3, #1 + 8004dd2: e002 b.n 8004dda return Stat; - 8002a84: 4b03 ldr r3, [pc, #12] ; (8002a94 ) - 8002a86: 781b ldrb r3, [r3, #0] - 8002a88: b2db uxtb r3, r3 + 8004dd4: 4b03 ldr r3, [pc, #12] ; (8004de4 ) + 8004dd6: 781b ldrb r3, [r3, #0] + 8004dd8: b2db uxtb r3, r3 } - 8002a8a: 4618 mov r0, r3 - 8002a8c: 370c adds r7, #12 - 8002a8e: 46bd mov sp, r7 - 8002a90: bc80 pop {r7} - 8002a92: 4770 bx lr - 8002a94: 20000020 .word 0x20000020 + 8004dda: 4618 mov r0, r3 + 8004ddc: 370c adds r7, #12 + 8004dde: 46bd mov sp, r7 + 8004de0: bc80 pop {r7} + 8004de2: 4770 bx lr + 8004de4: 20000020 .word 0x20000020 -08002a98 : +08004de8 : DRESULT SD_disk_read(BYTE pdrv, BYTE* buff, DWORD sector, UINT count) { - 8002a98: b580 push {r7, lr} - 8002a9a: b084 sub sp, #16 - 8002a9c: af00 add r7, sp, #0 - 8002a9e: 60b9 str r1, [r7, #8] - 8002aa0: 607a str r2, [r7, #4] - 8002aa2: 603b str r3, [r7, #0] - 8002aa4: 4603 mov r3, r0 - 8002aa6: 73fb strb r3, [r7, #15] + 8004de8: b580 push {r7, lr} + 8004dea: b084 sub sp, #16 + 8004dec: af00 add r7, sp, #0 + 8004dee: 60b9 str r1, [r7, #8] + 8004df0: 607a str r2, [r7, #4] + 8004df2: 603b str r3, [r7, #0] + 8004df4: 4603 mov r3, r0 + 8004df6: 73fb strb r3, [r7, #15] if (pdrv || !count) - 8002aa8: 7bfb ldrb r3, [r7, #15] - 8002aaa: 2b00 cmp r3, #0 - 8002aac: d102 bne.n 8002ab4 - 8002aae: 683b ldr r3, [r7, #0] - 8002ab0: 2b00 cmp r3, #0 - 8002ab2: d101 bne.n 8002ab8 + 8004df8: 7bfb ldrb r3, [r7, #15] + 8004dfa: 2b00 cmp r3, #0 + 8004dfc: d102 bne.n 8004e04 + 8004dfe: 683b ldr r3, [r7, #0] + 8004e00: 2b00 cmp r3, #0 + 8004e02: d101 bne.n 8004e08 return RES_PARERR; - 8002ab4: 2304 movs r3, #4 - 8002ab6: e051 b.n 8002b5c + 8004e04: 2304 movs r3, #4 + 8004e06: e051 b.n 8004eac if (Stat & STA_NOINIT) - 8002ab8: 4b2a ldr r3, [pc, #168] ; (8002b64 ) - 8002aba: 781b ldrb r3, [r3, #0] - 8002abc: b2db uxtb r3, r3 - 8002abe: f003 0301 and.w r3, r3, #1 - 8002ac2: 2b00 cmp r3, #0 - 8002ac4: d001 beq.n 8002aca + 8004e08: 4b2a ldr r3, [pc, #168] ; (8004eb4 ) + 8004e0a: 781b ldrb r3, [r3, #0] + 8004e0c: b2db uxtb r3, r3 + 8004e0e: f003 0301 and.w r3, r3, #1 + 8004e12: 2b00 cmp r3, #0 + 8004e14: d001 beq.n 8004e1a return RES_NOTRDY; - 8002ac6: 2303 movs r3, #3 - 8002ac8: e048 b.n 8002b5c + 8004e16: 2303 movs r3, #3 + 8004e18: e048 b.n 8004eac if (!(CardType & 4)) - 8002aca: 4b27 ldr r3, [pc, #156] ; (8002b68 ) - 8002acc: 781b ldrb r3, [r3, #0] - 8002ace: f003 0304 and.w r3, r3, #4 - 8002ad2: 2b00 cmp r3, #0 - 8002ad4: d102 bne.n 8002adc + 8004e1a: 4b27 ldr r3, [pc, #156] ; (8004eb8 ) + 8004e1c: 781b ldrb r3, [r3, #0] + 8004e1e: f003 0304 and.w r3, r3, #4 + 8004e22: 2b00 cmp r3, #0 + 8004e24: d102 bne.n 8004e2c sector *= 512; - 8002ad6: 687b ldr r3, [r7, #4] - 8002ad8: 025b lsls r3, r3, #9 - 8002ada: 607b str r3, [r7, #4] + 8004e26: 687b ldr r3, [r7, #4] + 8004e28: 025b lsls r3, r3, #9 + 8004e2a: 607b str r3, [r7, #4] SELECT(); - 8002adc: f7ff fd26 bl 800252c if (count == 1) - 8002ae0: 683b ldr r3, [r7, #0] - 8002ae2: 2b01 cmp r3, #1 - 8002ae4: d111 bne.n 8002b0a + 8004e30: 683b ldr r3, [r7, #0] + 8004e32: 2b01 cmp r3, #1 + 8004e34: d111 bne.n 8004e5a { if ((SD_SendCmd(CMD17, sector) == 0) && SD_RxDataBlock(buff, 512)) - 8002ae6: 6879 ldr r1, [r7, #4] - 8002ae8: 2051 movs r0, #81 ; 0x51 - 8002aea: f7ff fe85 bl 80027f8 - 8002aee: 4603 mov r3, r0 - 8002af0: 2b00 cmp r3, #0 - 8002af2: d129 bne.n 8002b48 - 8002af4: f44f 7100 mov.w r1, #512 ; 0x200 - 8002af8: 68b8 ldr r0, [r7, #8] - 8002afa: f7ff fdf3 bl 80026e4 - 8002afe: 4603 mov r3, r0 - 8002b00: 2b00 cmp r3, #0 - 8002b02: d021 beq.n 8002b48 + 8004e36: 6879 ldr r1, [r7, #4] + 8004e38: 2051 movs r0, #81 ; 0x51 + 8004e3a: f7ff fe85 bl 8004b48 + 8004e3e: 4603 mov r3, r0 + 8004e40: 2b00 cmp r3, #0 + 8004e42: d129 bne.n 8004e98 + 8004e44: f44f 7100 mov.w r1, #512 ; 0x200 + 8004e48: 68b8 ldr r0, [r7, #8] + 8004e4a: f7ff fdf3 bl 8004a34 + 8004e4e: 4603 mov r3, r0 + 8004e50: 2b00 cmp r3, #0 + 8004e52: d021 beq.n 8004e98 count = 0; - 8002b04: 2300 movs r3, #0 - 8002b06: 603b str r3, [r7, #0] - 8002b08: e01e b.n 8002b48 + 8004e54: 2300 movs r3, #0 + 8004e56: 603b str r3, [r7, #0] + 8004e58: e01e b.n 8004e98 } else { if (SD_SendCmd(CMD18, sector) == 0) - 8002b0a: 6879 ldr r1, [r7, #4] - 8002b0c: 2052 movs r0, #82 ; 0x52 - 8002b0e: f7ff fe73 bl 80027f8 - 8002b12: 4603 mov r3, r0 - 8002b14: 2b00 cmp r3, #0 - 8002b16: d117 bne.n 8002b48 + 8004e5a: 6879 ldr r1, [r7, #4] + 8004e5c: 2052 movs r0, #82 ; 0x52 + 8004e5e: f7ff fe73 bl 8004b48 + 8004e62: 4603 mov r3, r0 + 8004e64: 2b00 cmp r3, #0 + 8004e66: d117 bne.n 8004e98 { do { if (!SD_RxDataBlock(buff, 512)) - 8002b18: f44f 7100 mov.w r1, #512 ; 0x200 - 8002b1c: 68b8 ldr r0, [r7, #8] - 8002b1e: f7ff fde1 bl 80026e4 - 8002b22: 4603 mov r3, r0 - 8002b24: 2b00 cmp r3, #0 - 8002b26: d00a beq.n 8002b3e + 8004e68: f44f 7100 mov.w r1, #512 ; 0x200 + 8004e6c: 68b8 ldr r0, [r7, #8] + 8004e6e: f7ff fde1 bl 8004a34 + 8004e72: 4603 mov r3, r0 + 8004e74: 2b00 cmp r3, #0 + 8004e76: d00a beq.n 8004e8e break; buff += 512; - 8002b28: 68bb ldr r3, [r7, #8] - 8002b2a: f503 7300 add.w r3, r3, #512 ; 0x200 - 8002b2e: 60bb str r3, [r7, #8] + 8004e78: 68bb ldr r3, [r7, #8] + 8004e7a: f503 7300 add.w r3, r3, #512 ; 0x200 + 8004e7e: 60bb str r3, [r7, #8] } while (--count); - 8002b30: 683b ldr r3, [r7, #0] - 8002b32: 3b01 subs r3, #1 - 8002b34: 603b str r3, [r7, #0] - 8002b36: 683b ldr r3, [r7, #0] - 8002b38: 2b00 cmp r3, #0 - 8002b3a: d1ed bne.n 8002b18 - 8002b3c: e000 b.n 8002b40 + 8004e80: 683b ldr r3, [r7, #0] + 8004e82: 3b01 subs r3, #1 + 8004e84: 603b str r3, [r7, #0] + 8004e86: 683b ldr r3, [r7, #0] + 8004e88: 2b00 cmp r3, #0 + 8004e8a: d1ed bne.n 8004e68 + 8004e8c: e000 b.n 8004e90 break; - 8002b3e: bf00 nop + 8004e8e: bf00 nop SD_SendCmd(CMD12, 0); - 8002b40: 2100 movs r1, #0 - 8002b42: 204c movs r0, #76 ; 0x4c - 8002b44: f7ff fe58 bl 80027f8 + 8004e90: 2100 movs r1, #0 + 8004e92: 204c movs r0, #76 ; 0x4c + 8004e94: f7ff fe58 bl 8004b48 } } DESELECT(); - 8002b48: f7ff fcfc bl 8002544 + 8004e98: f7ff fcfc bl 8004894 SPI_RxByte(); - 8002b4c: f7ff fd20 bl 8002590 + 8004e9c: f7ff fd20 bl 80048e0 return count ? RES_ERROR : RES_OK; - 8002b50: 683b ldr r3, [r7, #0] - 8002b52: 2b00 cmp r3, #0 - 8002b54: bf14 ite ne - 8002b56: 2301 movne r3, #1 - 8002b58: 2300 moveq r3, #0 - 8002b5a: b2db uxtb r3, r3 + 8004ea0: 683b ldr r3, [r7, #0] + 8004ea2: 2b00 cmp r3, #0 + 8004ea4: bf14 ite ne + 8004ea6: 2301 movne r3, #1 + 8004ea8: 2300 moveq r3, #0 + 8004eaa: b2db uxtb r3, r3 } - 8002b5c: 4618 mov r0, r3 - 8002b5e: 3710 adds r7, #16 - 8002b60: 46bd mov sp, r7 - 8002b62: bd80 pop {r7, pc} - 8002b64: 20000020 .word 0x20000020 - 8002b68: 20000050 .word 0x20000050 + 8004eac: 4618 mov r0, r3 + 8004eae: 3710 adds r7, #16 + 8004eb0: 46bd mov sp, r7 + 8004eb2: bd80 pop {r7, pc} + 8004eb4: 20000020 .word 0x20000020 + 8004eb8: 200000d8 .word 0x200000d8 -08002b6c : +08004ebc : #if _READONLY == 0 DRESULT SD_disk_write(BYTE pdrv, const BYTE* buff, DWORD sector, UINT count) { - 8002b6c: b580 push {r7, lr} - 8002b6e: b084 sub sp, #16 - 8002b70: af00 add r7, sp, #0 - 8002b72: 60b9 str r1, [r7, #8] - 8002b74: 607a str r2, [r7, #4] - 8002b76: 603b str r3, [r7, #0] - 8002b78: 4603 mov r3, r0 - 8002b7a: 73fb strb r3, [r7, #15] + 8004ebc: b580 push {r7, lr} + 8004ebe: b084 sub sp, #16 + 8004ec0: af00 add r7, sp, #0 + 8004ec2: 60b9 str r1, [r7, #8] + 8004ec4: 607a str r2, [r7, #4] + 8004ec6: 603b str r3, [r7, #0] + 8004ec8: 4603 mov r3, r0 + 8004eca: 73fb strb r3, [r7, #15] if (pdrv || !count) - 8002b7c: 7bfb ldrb r3, [r7, #15] - 8002b7e: 2b00 cmp r3, #0 - 8002b80: d102 bne.n 8002b88 - 8002b82: 683b ldr r3, [r7, #0] - 8002b84: 2b00 cmp r3, #0 - 8002b86: d101 bne.n 8002b8c + 8004ecc: 7bfb ldrb r3, [r7, #15] + 8004ece: 2b00 cmp r3, #0 + 8004ed0: d102 bne.n 8004ed8 + 8004ed2: 683b ldr r3, [r7, #0] + 8004ed4: 2b00 cmp r3, #0 + 8004ed6: d101 bne.n 8004edc return RES_PARERR; - 8002b88: 2304 movs r3, #4 - 8002b8a: e06b b.n 8002c64 + 8004ed8: 2304 movs r3, #4 + 8004eda: e06b b.n 8004fb4 if (Stat & STA_NOINIT) - 8002b8c: 4b37 ldr r3, [pc, #220] ; (8002c6c ) - 8002b8e: 781b ldrb r3, [r3, #0] - 8002b90: b2db uxtb r3, r3 - 8002b92: f003 0301 and.w r3, r3, #1 - 8002b96: 2b00 cmp r3, #0 - 8002b98: d001 beq.n 8002b9e + 8004edc: 4b37 ldr r3, [pc, #220] ; (8004fbc ) + 8004ede: 781b ldrb r3, [r3, #0] + 8004ee0: b2db uxtb r3, r3 + 8004ee2: f003 0301 and.w r3, r3, #1 + 8004ee6: 2b00 cmp r3, #0 + 8004ee8: d001 beq.n 8004eee return RES_NOTRDY; - 8002b9a: 2303 movs r3, #3 - 8002b9c: e062 b.n 8002c64 + 8004eea: 2303 movs r3, #3 + 8004eec: e062 b.n 8004fb4 if (Stat & STA_PROTECT) - 8002b9e: 4b33 ldr r3, [pc, #204] ; (8002c6c ) - 8002ba0: 781b ldrb r3, [r3, #0] - 8002ba2: b2db uxtb r3, r3 - 8002ba4: f003 0304 and.w r3, r3, #4 - 8002ba8: 2b00 cmp r3, #0 - 8002baa: d001 beq.n 8002bb0 + 8004eee: 4b33 ldr r3, [pc, #204] ; (8004fbc ) + 8004ef0: 781b ldrb r3, [r3, #0] + 8004ef2: b2db uxtb r3, r3 + 8004ef4: f003 0304 and.w r3, r3, #4 + 8004ef8: 2b00 cmp r3, #0 + 8004efa: d001 beq.n 8004f00 return RES_WRPRT; - 8002bac: 2302 movs r3, #2 - 8002bae: e059 b.n 8002c64 + 8004efc: 2302 movs r3, #2 + 8004efe: e059 b.n 8004fb4 if (!(CardType & 4)) - 8002bb0: 4b2f ldr r3, [pc, #188] ; (8002c70 ) - 8002bb2: 781b ldrb r3, [r3, #0] - 8002bb4: f003 0304 and.w r3, r3, #4 - 8002bb8: 2b00 cmp r3, #0 - 8002bba: d102 bne.n 8002bc2 + 8004f00: 4b2f ldr r3, [pc, #188] ; (8004fc0 ) + 8004f02: 781b ldrb r3, [r3, #0] + 8004f04: f003 0304 and.w r3, r3, #4 + 8004f08: 2b00 cmp r3, #0 + 8004f0a: d102 bne.n 8004f12 sector *= 512; - 8002bbc: 687b ldr r3, [r7, #4] - 8002bbe: 025b lsls r3, r3, #9 - 8002bc0: 607b str r3, [r7, #4] + 8004f0c: 687b ldr r3, [r7, #4] + 8004f0e: 025b lsls r3, r3, #9 + 8004f10: 607b str r3, [r7, #4] SELECT(); - 8002bc2: f7ff fcb3 bl 800252c if (count == 1) - 8002bc6: 683b ldr r3, [r7, #0] - 8002bc8: 2b01 cmp r3, #1 - 8002bca: d110 bne.n 8002bee + 8004f16: 683b ldr r3, [r7, #0] + 8004f18: 2b01 cmp r3, #1 + 8004f1a: d110 bne.n 8004f3e { if ((SD_SendCmd(CMD24, sector) == 0) && SD_TxDataBlock(buff, 0xFE)) - 8002bcc: 6879 ldr r1, [r7, #4] - 8002bce: 2058 movs r0, #88 ; 0x58 - 8002bd0: f7ff fe12 bl 80027f8 - 8002bd4: 4603 mov r3, r0 - 8002bd6: 2b00 cmp r3, #0 - 8002bd8: d13a bne.n 8002c50 - 8002bda: 21fe movs r1, #254 ; 0xfe - 8002bdc: 68b8 ldr r0, [r7, #8] - 8002bde: f7ff fdb7 bl 8002750 - 8002be2: 4603 mov r3, r0 - 8002be4: 2b00 cmp r3, #0 - 8002be6: d033 beq.n 8002c50 + 8004f1c: 6879 ldr r1, [r7, #4] + 8004f1e: 2058 movs r0, #88 ; 0x58 + 8004f20: f7ff fe12 bl 8004b48 + 8004f24: 4603 mov r3, r0 + 8004f26: 2b00 cmp r3, #0 + 8004f28: d13a bne.n 8004fa0 + 8004f2a: 21fe movs r1, #254 ; 0xfe + 8004f2c: 68b8 ldr r0, [r7, #8] + 8004f2e: f7ff fdb7 bl 8004aa0 + 8004f32: 4603 mov r3, r0 + 8004f34: 2b00 cmp r3, #0 + 8004f36: d033 beq.n 8004fa0 count = 0; - 8002be8: 2300 movs r3, #0 - 8002bea: 603b str r3, [r7, #0] - 8002bec: e030 b.n 8002c50 + 8004f38: 2300 movs r3, #0 + 8004f3a: 603b str r3, [r7, #0] + 8004f3c: e030 b.n 8004fa0 } else { if (CardType & 2) - 8002bee: 4b20 ldr r3, [pc, #128] ; (8002c70 ) - 8002bf0: 781b ldrb r3, [r3, #0] - 8002bf2: f003 0302 and.w r3, r3, #2 - 8002bf6: 2b00 cmp r3, #0 - 8002bf8: d007 beq.n 8002c0a + 8004f3e: 4b20 ldr r3, [pc, #128] ; (8004fc0 ) + 8004f40: 781b ldrb r3, [r3, #0] + 8004f42: f003 0302 and.w r3, r3, #2 + 8004f46: 2b00 cmp r3, #0 + 8004f48: d007 beq.n 8004f5a { SD_SendCmd(CMD55, 0); - 8002bfa: 2100 movs r1, #0 - 8002bfc: 2077 movs r0, #119 ; 0x77 - 8002bfe: f7ff fdfb bl 80027f8 + 8004f4a: 2100 movs r1, #0 + 8004f4c: 2077 movs r0, #119 ; 0x77 + 8004f4e: f7ff fdfb bl 8004b48 SD_SendCmd(CMD23, count); /* ACMD23 */ - 8002c02: 6839 ldr r1, [r7, #0] - 8002c04: 2057 movs r0, #87 ; 0x57 - 8002c06: f7ff fdf7 bl 80027f8 + 8004f52: 6839 ldr r1, [r7, #0] + 8004f54: 2057 movs r0, #87 ; 0x57 + 8004f56: f7ff fdf7 bl 8004b48 } if (SD_SendCmd(CMD25, sector) == 0) - 8002c0a: 6879 ldr r1, [r7, #4] - 8002c0c: 2059 movs r0, #89 ; 0x59 - 8002c0e: f7ff fdf3 bl 80027f8 - 8002c12: 4603 mov r3, r0 - 8002c14: 2b00 cmp r3, #0 - 8002c16: d11b bne.n 8002c50 + 8004f5a: 6879 ldr r1, [r7, #4] + 8004f5c: 2059 movs r0, #89 ; 0x59 + 8004f5e: f7ff fdf3 bl 8004b48 + 8004f62: 4603 mov r3, r0 + 8004f64: 2b00 cmp r3, #0 + 8004f66: d11b bne.n 8004fa0 { do { if(!SD_TxDataBlock(buff, 0xFC)) - 8002c18: 21fc movs r1, #252 ; 0xfc - 8002c1a: 68b8 ldr r0, [r7, #8] - 8002c1c: f7ff fd98 bl 8002750 - 8002c20: 4603 mov r3, r0 - 8002c22: 2b00 cmp r3, #0 - 8002c24: d00a beq.n 8002c3c + 8004f68: 21fc movs r1, #252 ; 0xfc + 8004f6a: 68b8 ldr r0, [r7, #8] + 8004f6c: f7ff fd98 bl 8004aa0 + 8004f70: 4603 mov r3, r0 + 8004f72: 2b00 cmp r3, #0 + 8004f74: d00a beq.n 8004f8c break; buff += 512; - 8002c26: 68bb ldr r3, [r7, #8] - 8002c28: f503 7300 add.w r3, r3, #512 ; 0x200 - 8002c2c: 60bb str r3, [r7, #8] + 8004f76: 68bb ldr r3, [r7, #8] + 8004f78: f503 7300 add.w r3, r3, #512 ; 0x200 + 8004f7c: 60bb str r3, [r7, #8] } while (--count); - 8002c2e: 683b ldr r3, [r7, #0] - 8002c30: 3b01 subs r3, #1 - 8002c32: 603b str r3, [r7, #0] - 8002c34: 683b ldr r3, [r7, #0] - 8002c36: 2b00 cmp r3, #0 - 8002c38: d1ee bne.n 8002c18 - 8002c3a: e000 b.n 8002c3e + 8004f7e: 683b ldr r3, [r7, #0] + 8004f80: 3b01 subs r3, #1 + 8004f82: 603b str r3, [r7, #0] + 8004f84: 683b ldr r3, [r7, #0] + 8004f86: 2b00 cmp r3, #0 + 8004f88: d1ee bne.n 8004f68 + 8004f8a: e000 b.n 8004f8e break; - 8002c3c: bf00 nop + 8004f8c: bf00 nop if(!SD_TxDataBlock(0, 0xFD)) - 8002c3e: 21fd movs r1, #253 ; 0xfd - 8002c40: 2000 movs r0, #0 - 8002c42: f7ff fd85 bl 8002750 - 8002c46: 4603 mov r3, r0 - 8002c48: 2b00 cmp r3, #0 - 8002c4a: d101 bne.n 8002c50 + 8004f8e: 21fd movs r1, #253 ; 0xfd + 8004f90: 2000 movs r0, #0 + 8004f92: f7ff fd85 bl 8004aa0 + 8004f96: 4603 mov r3, r0 + 8004f98: 2b00 cmp r3, #0 + 8004f9a: d101 bne.n 8004fa0 { count = 1; - 8002c4c: 2301 movs r3, #1 - 8002c4e: 603b str r3, [r7, #0] + 8004f9c: 2301 movs r3, #1 + 8004f9e: 603b str r3, [r7, #0] } } } DESELECT(); - 8002c50: f7ff fc78 bl 8002544 + 8004fa0: f7ff fc78 bl 8004894 SPI_RxByte(); - 8002c54: f7ff fc9c bl 8002590 + 8004fa4: f7ff fc9c bl 80048e0 return count ? RES_ERROR : RES_OK; - 8002c58: 683b ldr r3, [r7, #0] - 8002c5a: 2b00 cmp r3, #0 - 8002c5c: bf14 ite ne - 8002c5e: 2301 movne r3, #1 - 8002c60: 2300 moveq r3, #0 - 8002c62: b2db uxtb r3, r3 + 8004fa8: 683b ldr r3, [r7, #0] + 8004faa: 2b00 cmp r3, #0 + 8004fac: bf14 ite ne + 8004fae: 2301 movne r3, #1 + 8004fb0: 2300 moveq r3, #0 + 8004fb2: b2db uxtb r3, r3 } - 8002c64: 4618 mov r0, r3 - 8002c66: 3710 adds r7, #16 - 8002c68: 46bd mov sp, r7 - 8002c6a: bd80 pop {r7, pc} - 8002c6c: 20000020 .word 0x20000020 - 8002c70: 20000050 .word 0x20000050 + 8004fb4: 4618 mov r0, r3 + 8004fb6: 3710 adds r7, #16 + 8004fb8: 46bd mov sp, r7 + 8004fba: bd80 pop {r7, pc} + 8004fbc: 20000020 .word 0x20000020 + 8004fc0: 200000d8 .word 0x200000d8 -08002c74 : +08004fc4 : #endif /* _READONLY */ DRESULT SD_disk_ioctl(BYTE drv, BYTE ctrl, void *buff) { - 8002c74: b590 push {r4, r7, lr} - 8002c76: b08b sub sp, #44 ; 0x2c - 8002c78: af00 add r7, sp, #0 - 8002c7a: 4603 mov r3, r0 - 8002c7c: 603a str r2, [r7, #0] - 8002c7e: 71fb strb r3, [r7, #7] - 8002c80: 460b mov r3, r1 - 8002c82: 71bb strb r3, [r7, #6] + 8004fc4: b590 push {r4, r7, lr} + 8004fc6: b08b sub sp, #44 ; 0x2c + 8004fc8: af00 add r7, sp, #0 + 8004fca: 4603 mov r3, r0 + 8004fcc: 603a str r2, [r7, #0] + 8004fce: 71fb strb r3, [r7, #7] + 8004fd0: 460b mov r3, r1 + 8004fd2: 71bb strb r3, [r7, #6] DRESULT res; BYTE n, csd[16], *ptr = buff; - 8002c84: 683b ldr r3, [r7, #0] - 8002c86: 623b str r3, [r7, #32] + 8004fd4: 683b ldr r3, [r7, #0] + 8004fd6: 623b str r3, [r7, #32] WORD csize; if (drv) - 8002c88: 79fb ldrb r3, [r7, #7] - 8002c8a: 2b00 cmp r3, #0 - 8002c8c: d001 beq.n 8002c92 + 8004fd8: 79fb ldrb r3, [r7, #7] + 8004fda: 2b00 cmp r3, #0 + 8004fdc: d001 beq.n 8004fe2 return RES_PARERR; - 8002c8e: 2304 movs r3, #4 - 8002c90: e11b b.n 8002eca + 8004fde: 2304 movs r3, #4 + 8004fe0: e11b b.n 800521a res = RES_ERROR; - 8002c92: 2301 movs r3, #1 - 8002c94: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 8004fe2: 2301 movs r3, #1 + 8004fe4: f887 3027 strb.w r3, [r7, #39] ; 0x27 if (ctrl == CTRL_POWER) - 8002c98: 79bb ldrb r3, [r7, #6] - 8002c9a: 2b05 cmp r3, #5 - 8002c9c: d129 bne.n 8002cf2 + 8004fe8: 79bb ldrb r3, [r7, #6] + 8004fea: 2b05 cmp r3, #5 + 8004fec: d129 bne.n 8005042 { switch (*ptr) - 8002c9e: 6a3b ldr r3, [r7, #32] - 8002ca0: 781b ldrb r3, [r3, #0] - 8002ca2: 2b02 cmp r3, #2 - 8002ca4: d017 beq.n 8002cd6 - 8002ca6: 2b02 cmp r3, #2 - 8002ca8: dc1f bgt.n 8002cea - 8002caa: 2b00 cmp r3, #0 - 8002cac: d002 beq.n 8002cb4 - 8002cae: 2b01 cmp r3, #1 - 8002cb0: d00b beq.n 8002cca - 8002cb2: e01a b.n 8002cea + 8004fee: 6a3b ldr r3, [r7, #32] + 8004ff0: 781b ldrb r3, [r3, #0] + 8004ff2: 2b02 cmp r3, #2 + 8004ff4: d017 beq.n 8005026 + 8004ff6: 2b02 cmp r3, #2 + 8004ff8: dc1f bgt.n 800503a + 8004ffa: 2b00 cmp r3, #0 + 8004ffc: d002 beq.n 8005004 + 8004ffe: 2b01 cmp r3, #1 + 8005000: d00b beq.n 800501a + 8005002: e01a b.n 800503a { case 0: if (SD_CheckPower()) - 8002cb4: f7ff fd0c bl 80026d0 - 8002cb8: 4603 mov r3, r0 - 8002cba: 2b00 cmp r3, #0 - 8002cbc: d001 beq.n 8002cc2 + 8005004: f7ff fd0c bl 8004a20 + 8005008: 4603 mov r3, r0 + 800500a: 2b00 cmp r3, #0 + 800500c: d001 beq.n 8005012 SD_PowerOff(); /* Power Off */ - 8002cbe: f7ff fcfb bl 80026b8 + 800500e: f7ff fcfb bl 8004a08 res = RES_OK; - 8002cc2: 2300 movs r3, #0 - 8002cc4: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 8005012: 2300 movs r3, #0 + 8005014: f887 3027 strb.w r3, [r7, #39] ; 0x27 break; - 8002cc8: e0fd b.n 8002ec6 + 8005018: e0fd b.n 8005216 case 1: SD_PowerOn(); /* Power On */ - 8002cca: f7ff fca9 bl 8002620 + 800501a: f7ff fca9 bl 8004970 res = RES_OK; - 8002cce: 2300 movs r3, #0 - 8002cd0: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 800501e: 2300 movs r3, #0 + 8005020: f887 3027 strb.w r3, [r7, #39] ; 0x27 break; - 8002cd4: e0f7 b.n 8002ec6 + 8005024: e0f7 b.n 8005216 case 2: *(ptr + 1) = (BYTE) SD_CheckPower(); - 8002cd6: 6a3b ldr r3, [r7, #32] - 8002cd8: 1c5c adds r4, r3, #1 - 8002cda: f7ff fcf9 bl 80026d0 - 8002cde: 4603 mov r3, r0 - 8002ce0: 7023 strb r3, [r4, #0] + 8005026: 6a3b ldr r3, [r7, #32] + 8005028: 1c5c adds r4, r3, #1 + 800502a: f7ff fcf9 bl 8004a20 + 800502e: 4603 mov r3, r0 + 8005030: 7023 strb r3, [r4, #0] res = RES_OK; /* Power Check */ - 8002ce2: 2300 movs r3, #0 - 8002ce4: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 8005032: 2300 movs r3, #0 + 8005034: f887 3027 strb.w r3, [r7, #39] ; 0x27 break; - 8002ce8: e0ed b.n 8002ec6 + 8005038: e0ed b.n 8005216 default: res = RES_PARERR; - 8002cea: 2304 movs r3, #4 - 8002cec: f887 3027 strb.w r3, [r7, #39] ; 0x27 - 8002cf0: e0e9 b.n 8002ec6 + 800503a: 2304 movs r3, #4 + 800503c: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 8005040: e0e9 b.n 8005216 } } else { if (Stat & STA_NOINIT) - 8002cf2: 4b78 ldr r3, [pc, #480] ; (8002ed4 ) - 8002cf4: 781b ldrb r3, [r3, #0] - 8002cf6: b2db uxtb r3, r3 - 8002cf8: f003 0301 and.w r3, r3, #1 - 8002cfc: 2b00 cmp r3, #0 - 8002cfe: d001 beq.n 8002d04 + 8005042: 4b78 ldr r3, [pc, #480] ; (8005224 ) + 8005044: 781b ldrb r3, [r3, #0] + 8005046: b2db uxtb r3, r3 + 8005048: f003 0301 and.w r3, r3, #1 + 800504c: 2b00 cmp r3, #0 + 800504e: d001 beq.n 8005054 return RES_NOTRDY; - 8002d00: 2303 movs r3, #3 - 8002d02: e0e2 b.n 8002eca + 8005050: 2303 movs r3, #3 + 8005052: e0e2 b.n 800521a SELECT(); - 8002d04: f7ff fc12 bl 800252c switch (ctrl) - 8002d08: 79bb ldrb r3, [r7, #6] - 8002d0a: 2b0d cmp r3, #13 - 8002d0c: f200 80cc bhi.w 8002ea8 - 8002d10: a201 add r2, pc, #4 ; (adr r2, 8002d18 ) - 8002d12: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 8002d16: bf00 nop - 8002d18: 08002e13 .word 0x08002e13 - 8002d1c: 08002d51 .word 0x08002d51 - 8002d20: 08002e03 .word 0x08002e03 - 8002d24: 08002ea9 .word 0x08002ea9 - 8002d28: 08002ea9 .word 0x08002ea9 - 8002d2c: 08002ea9 .word 0x08002ea9 - 8002d30: 08002ea9 .word 0x08002ea9 - 8002d34: 08002ea9 .word 0x08002ea9 - 8002d38: 08002ea9 .word 0x08002ea9 - 8002d3c: 08002ea9 .word 0x08002ea9 - 8002d40: 08002ea9 .word 0x08002ea9 - 8002d44: 08002e25 .word 0x08002e25 - 8002d48: 08002e49 .word 0x08002e49 - 8002d4c: 08002e6d .word 0x08002e6d + 8005058: 79bb ldrb r3, [r7, #6] + 800505a: 2b0d cmp r3, #13 + 800505c: f200 80cc bhi.w 80051f8 + 8005060: a201 add r2, pc, #4 ; (adr r2, 8005068 ) + 8005062: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 8005066: bf00 nop + 8005068: 08005163 .word 0x08005163 + 800506c: 080050a1 .word 0x080050a1 + 8005070: 08005153 .word 0x08005153 + 8005074: 080051f9 .word 0x080051f9 + 8005078: 080051f9 .word 0x080051f9 + 800507c: 080051f9 .word 0x080051f9 + 8005080: 080051f9 .word 0x080051f9 + 8005084: 080051f9 .word 0x080051f9 + 8005088: 080051f9 .word 0x080051f9 + 800508c: 080051f9 .word 0x080051f9 + 8005090: 080051f9 .word 0x080051f9 + 8005094: 08005175 .word 0x08005175 + 8005098: 08005199 .word 0x08005199 + 800509c: 080051bd .word 0x080051bd { case GET_SECTOR_COUNT: if ((SD_SendCmd(CMD9, 0) == 0) && SD_RxDataBlock(csd, 16)) - 8002d50: 2100 movs r1, #0 - 8002d52: 2049 movs r0, #73 ; 0x49 - 8002d54: f7ff fd50 bl 80027f8 - 8002d58: 4603 mov r3, r0 - 8002d5a: 2b00 cmp r3, #0 - 8002d5c: f040 80a8 bne.w 8002eb0 - 8002d60: f107 030c add.w r3, r7, #12 - 8002d64: 2110 movs r1, #16 - 8002d66: 4618 mov r0, r3 - 8002d68: f7ff fcbc bl 80026e4 - 8002d6c: 4603 mov r3, r0 - 8002d6e: 2b00 cmp r3, #0 - 8002d70: f000 809e beq.w 8002eb0 + 80050a0: 2100 movs r1, #0 + 80050a2: 2049 movs r0, #73 ; 0x49 + 80050a4: f7ff fd50 bl 8004b48 + 80050a8: 4603 mov r3, r0 + 80050aa: 2b00 cmp r3, #0 + 80050ac: f040 80a8 bne.w 8005200 + 80050b0: f107 030c add.w r3, r7, #12 + 80050b4: 2110 movs r1, #16 + 80050b6: 4618 mov r0, r3 + 80050b8: f7ff fcbc bl 8004a34 + 80050bc: 4603 mov r3, r0 + 80050be: 2b00 cmp r3, #0 + 80050c0: f000 809e beq.w 8005200 { if ((csd[0] >> 6) == 1) - 8002d74: 7b3b ldrb r3, [r7, #12] - 8002d76: 099b lsrs r3, r3, #6 - 8002d78: b2db uxtb r3, r3 - 8002d7a: 2b01 cmp r3, #1 - 8002d7c: d10e bne.n 8002d9c + 80050c4: 7b3b ldrb r3, [r7, #12] + 80050c6: 099b lsrs r3, r3, #6 + 80050c8: b2db uxtb r3, r3 + 80050ca: 2b01 cmp r3, #1 + 80050cc: d10e bne.n 80050ec { /* SDC ver 2.00 */ csize = csd[9] + ((WORD) csd[8] << 8) + 1; - 8002d7e: 7d7b ldrb r3, [r7, #21] - 8002d80: b29a uxth r2, r3 - 8002d82: 7d3b ldrb r3, [r7, #20] - 8002d84: b29b uxth r3, r3 - 8002d86: 021b lsls r3, r3, #8 - 8002d88: b29b uxth r3, r3 - 8002d8a: 4413 add r3, r2 - 8002d8c: b29b uxth r3, r3 - 8002d8e: 3301 adds r3, #1 - 8002d90: 83fb strh r3, [r7, #30] + 80050ce: 7d7b ldrb r3, [r7, #21] + 80050d0: b29a uxth r2, r3 + 80050d2: 7d3b ldrb r3, [r7, #20] + 80050d4: b29b uxth r3, r3 + 80050d6: 021b lsls r3, r3, #8 + 80050d8: b29b uxth r3, r3 + 80050da: 4413 add r3, r2 + 80050dc: b29b uxth r3, r3 + 80050de: 3301 adds r3, #1 + 80050e0: 83fb strh r3, [r7, #30] *(DWORD*) buff = (DWORD) csize << 10; - 8002d92: 8bfb ldrh r3, [r7, #30] - 8002d94: 029a lsls r2, r3, #10 - 8002d96: 683b ldr r3, [r7, #0] - 8002d98: 601a str r2, [r3, #0] - 8002d9a: e02e b.n 8002dfa + 80050e2: 8bfb ldrh r3, [r7, #30] + 80050e4: 029a lsls r2, r3, #10 + 80050e6: 683b ldr r3, [r7, #0] + 80050e8: 601a str r2, [r3, #0] + 80050ea: e02e b.n 800514a } else { /* MMC or SDC ver 1.XX */ n = (csd[5] & 15) + ((csd[10] & 128) >> 7) + ((csd[9] & 3) << 1) + 2; - 8002d9c: 7c7b ldrb r3, [r7, #17] - 8002d9e: f003 030f and.w r3, r3, #15 - 8002da2: b2da uxtb r2, r3 - 8002da4: 7dbb ldrb r3, [r7, #22] - 8002da6: 09db lsrs r3, r3, #7 - 8002da8: b2db uxtb r3, r3 - 8002daa: 4413 add r3, r2 - 8002dac: b2da uxtb r2, r3 - 8002dae: 7d7b ldrb r3, [r7, #21] - 8002db0: 005b lsls r3, r3, #1 - 8002db2: b2db uxtb r3, r3 - 8002db4: f003 0306 and.w r3, r3, #6 - 8002db8: b2db uxtb r3, r3 - 8002dba: 4413 add r3, r2 - 8002dbc: b2db uxtb r3, r3 - 8002dbe: 3302 adds r3, #2 - 8002dc0: f887 3026 strb.w r3, [r7, #38] ; 0x26 + 80050ec: 7c7b ldrb r3, [r7, #17] + 80050ee: f003 030f and.w r3, r3, #15 + 80050f2: b2da uxtb r2, r3 + 80050f4: 7dbb ldrb r3, [r7, #22] + 80050f6: 09db lsrs r3, r3, #7 + 80050f8: b2db uxtb r3, r3 + 80050fa: 4413 add r3, r2 + 80050fc: b2da uxtb r2, r3 + 80050fe: 7d7b ldrb r3, [r7, #21] + 8005100: 005b lsls r3, r3, #1 + 8005102: b2db uxtb r3, r3 + 8005104: f003 0306 and.w r3, r3, #6 + 8005108: b2db uxtb r3, r3 + 800510a: 4413 add r3, r2 + 800510c: b2db uxtb r3, r3 + 800510e: 3302 adds r3, #2 + 8005110: f887 3026 strb.w r3, [r7, #38] ; 0x26 csize = (csd[8] >> 6) + ((WORD) csd[7] << 2) + ((WORD) (csd[6] & 3) << 10) + 1; - 8002dc4: 7d3b ldrb r3, [r7, #20] - 8002dc6: 099b lsrs r3, r3, #6 - 8002dc8: b2db uxtb r3, r3 - 8002dca: b29a uxth r2, r3 - 8002dcc: 7cfb ldrb r3, [r7, #19] - 8002dce: b29b uxth r3, r3 - 8002dd0: 009b lsls r3, r3, #2 - 8002dd2: b29b uxth r3, r3 - 8002dd4: 4413 add r3, r2 - 8002dd6: b29a uxth r2, r3 - 8002dd8: 7cbb ldrb r3, [r7, #18] - 8002dda: 029b lsls r3, r3, #10 - 8002ddc: b29b uxth r3, r3 - 8002dde: f403 6340 and.w r3, r3, #3072 ; 0xc00 - 8002de2: b29b uxth r3, r3 - 8002de4: 4413 add r3, r2 - 8002de6: b29b uxth r3, r3 - 8002de8: 3301 adds r3, #1 - 8002dea: 83fb strh r3, [r7, #30] + 8005114: 7d3b ldrb r3, [r7, #20] + 8005116: 099b lsrs r3, r3, #6 + 8005118: b2db uxtb r3, r3 + 800511a: b29a uxth r2, r3 + 800511c: 7cfb ldrb r3, [r7, #19] + 800511e: b29b uxth r3, r3 + 8005120: 009b lsls r3, r3, #2 + 8005122: b29b uxth r3, r3 + 8005124: 4413 add r3, r2 + 8005126: b29a uxth r2, r3 + 8005128: 7cbb ldrb r3, [r7, #18] + 800512a: 029b lsls r3, r3, #10 + 800512c: b29b uxth r3, r3 + 800512e: f403 6340 and.w r3, r3, #3072 ; 0xc00 + 8005132: b29b uxth r3, r3 + 8005134: 4413 add r3, r2 + 8005136: b29b uxth r3, r3 + 8005138: 3301 adds r3, #1 + 800513a: 83fb strh r3, [r7, #30] *(DWORD*) buff = (DWORD) csize << (n - 9); - 8002dec: 8bfa ldrh r2, [r7, #30] - 8002dee: f897 3026 ldrb.w r3, [r7, #38] ; 0x26 - 8002df2: 3b09 subs r3, #9 - 8002df4: 409a lsls r2, r3 - 8002df6: 683b ldr r3, [r7, #0] - 8002df8: 601a str r2, [r3, #0] + 800513c: 8bfa ldrh r2, [r7, #30] + 800513e: f897 3026 ldrb.w r3, [r7, #38] ; 0x26 + 8005142: 3b09 subs r3, #9 + 8005144: 409a lsls r2, r3 + 8005146: 683b ldr r3, [r7, #0] + 8005148: 601a str r2, [r3, #0] } res = RES_OK; - 8002dfa: 2300 movs r3, #0 - 8002dfc: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 800514a: 2300 movs r3, #0 + 800514c: f887 3027 strb.w r3, [r7, #39] ; 0x27 } break; - 8002e00: e056 b.n 8002eb0 + 8005150: e056 b.n 8005200 case GET_SECTOR_SIZE: *(WORD*) buff = 512; - 8002e02: 683b ldr r3, [r7, #0] - 8002e04: f44f 7200 mov.w r2, #512 ; 0x200 - 8002e08: 801a strh r2, [r3, #0] + 8005152: 683b ldr r3, [r7, #0] + 8005154: f44f 7200 mov.w r2, #512 ; 0x200 + 8005158: 801a strh r2, [r3, #0] res = RES_OK; - 8002e0a: 2300 movs r3, #0 - 8002e0c: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 800515a: 2300 movs r3, #0 + 800515c: f887 3027 strb.w r3, [r7, #39] ; 0x27 break; - 8002e10: e055 b.n 8002ebe + 8005160: e055 b.n 800520e case CTRL_SYNC: if (SD_ReadyWait() == 0xFF) - 8002e12: f7ff fbe9 bl 80025e8 - 8002e16: 4603 mov r3, r0 - 8002e18: 2bff cmp r3, #255 ; 0xff - 8002e1a: d14b bne.n 8002eb4 + 8005162: f7ff fbe9 bl 8004938 + 8005166: 4603 mov r3, r0 + 8005168: 2bff cmp r3, #255 ; 0xff + 800516a: d14b bne.n 8005204 res = RES_OK; - 8002e1c: 2300 movs r3, #0 - 8002e1e: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 800516c: 2300 movs r3, #0 + 800516e: f887 3027 strb.w r3, [r7, #39] ; 0x27 break; - 8002e22: e047 b.n 8002eb4 + 8005172: e047 b.n 8005204 case MMC_GET_CSD: if (SD_SendCmd(CMD9, 0) == 0 && SD_RxDataBlock(ptr, 16)) - 8002e24: 2100 movs r1, #0 - 8002e26: 2049 movs r0, #73 ; 0x49 - 8002e28: f7ff fce6 bl 80027f8 - 8002e2c: 4603 mov r3, r0 - 8002e2e: 2b00 cmp r3, #0 - 8002e30: d142 bne.n 8002eb8 - 8002e32: 2110 movs r1, #16 - 8002e34: 6a38 ldr r0, [r7, #32] - 8002e36: f7ff fc55 bl 80026e4 - 8002e3a: 4603 mov r3, r0 - 8002e3c: 2b00 cmp r3, #0 - 8002e3e: d03b beq.n 8002eb8 + 8005174: 2100 movs r1, #0 + 8005176: 2049 movs r0, #73 ; 0x49 + 8005178: f7ff fce6 bl 8004b48 + 800517c: 4603 mov r3, r0 + 800517e: 2b00 cmp r3, #0 + 8005180: d142 bne.n 8005208 + 8005182: 2110 movs r1, #16 + 8005184: 6a38 ldr r0, [r7, #32] + 8005186: f7ff fc55 bl 8004a34 + 800518a: 4603 mov r3, r0 + 800518c: 2b00 cmp r3, #0 + 800518e: d03b beq.n 8005208 res = RES_OK; - 8002e40: 2300 movs r3, #0 - 8002e42: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 8005190: 2300 movs r3, #0 + 8005192: f887 3027 strb.w r3, [r7, #39] ; 0x27 break; - 8002e46: e037 b.n 8002eb8 + 8005196: e037 b.n 8005208 case MMC_GET_CID: if (SD_SendCmd(CMD10, 0) == 0 && SD_RxDataBlock(ptr, 16)) - 8002e48: 2100 movs r1, #0 - 8002e4a: 204a movs r0, #74 ; 0x4a - 8002e4c: f7ff fcd4 bl 80027f8 - 8002e50: 4603 mov r3, r0 - 8002e52: 2b00 cmp r3, #0 - 8002e54: d132 bne.n 8002ebc - 8002e56: 2110 movs r1, #16 - 8002e58: 6a38 ldr r0, [r7, #32] - 8002e5a: f7ff fc43 bl 80026e4 - 8002e5e: 4603 mov r3, r0 - 8002e60: 2b00 cmp r3, #0 - 8002e62: d02b beq.n 8002ebc + 8005198: 2100 movs r1, #0 + 800519a: 204a movs r0, #74 ; 0x4a + 800519c: f7ff fcd4 bl 8004b48 + 80051a0: 4603 mov r3, r0 + 80051a2: 2b00 cmp r3, #0 + 80051a4: d132 bne.n 800520c + 80051a6: 2110 movs r1, #16 + 80051a8: 6a38 ldr r0, [r7, #32] + 80051aa: f7ff fc43 bl 8004a34 + 80051ae: 4603 mov r3, r0 + 80051b0: 2b00 cmp r3, #0 + 80051b2: d02b beq.n 800520c res = RES_OK; - 8002e64: 2300 movs r3, #0 - 8002e66: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 80051b4: 2300 movs r3, #0 + 80051b6: f887 3027 strb.w r3, [r7, #39] ; 0x27 break; - 8002e6a: e027 b.n 8002ebc + 80051ba: e027 b.n 800520c case MMC_GET_OCR: if (SD_SendCmd(CMD58, 0) == 0) - 8002e6c: 2100 movs r1, #0 - 8002e6e: 207a movs r0, #122 ; 0x7a - 8002e70: f7ff fcc2 bl 80027f8 - 8002e74: 4603 mov r3, r0 - 8002e76: 2b00 cmp r3, #0 - 8002e78: d116 bne.n 8002ea8 + 80051bc: 2100 movs r1, #0 + 80051be: 207a movs r0, #122 ; 0x7a + 80051c0: f7ff fcc2 bl 8004b48 + 80051c4: 4603 mov r3, r0 + 80051c6: 2b00 cmp r3, #0 + 80051c8: d116 bne.n 80051f8 { for (n = 0; n < 4; n++) - 8002e7a: 2300 movs r3, #0 - 8002e7c: f887 3026 strb.w r3, [r7, #38] ; 0x26 - 8002e80: e00b b.n 8002e9a + 80051ca: 2300 movs r3, #0 + 80051cc: f887 3026 strb.w r3, [r7, #38] ; 0x26 + 80051d0: e00b b.n 80051ea { *ptr++ = SPI_RxByte(); - 8002e82: 6a3c ldr r4, [r7, #32] - 8002e84: 1c63 adds r3, r4, #1 - 8002e86: 623b str r3, [r7, #32] - 8002e88: f7ff fb82 bl 8002590 - 8002e8c: 4603 mov r3, r0 - 8002e8e: 7023 strb r3, [r4, #0] + 80051d2: 6a3c ldr r4, [r7, #32] + 80051d4: 1c63 adds r3, r4, #1 + 80051d6: 623b str r3, [r7, #32] + 80051d8: f7ff fb82 bl 80048e0 + 80051dc: 4603 mov r3, r0 + 80051de: 7023 strb r3, [r4, #0] for (n = 0; n < 4; n++) - 8002e90: f897 3026 ldrb.w r3, [r7, #38] ; 0x26 - 8002e94: 3301 adds r3, #1 - 8002e96: f887 3026 strb.w r3, [r7, #38] ; 0x26 - 8002e9a: f897 3026 ldrb.w r3, [r7, #38] ; 0x26 - 8002e9e: 2b03 cmp r3, #3 - 8002ea0: d9ef bls.n 8002e82 + 80051e0: f897 3026 ldrb.w r3, [r7, #38] ; 0x26 + 80051e4: 3301 adds r3, #1 + 80051e6: f887 3026 strb.w r3, [r7, #38] ; 0x26 + 80051ea: f897 3026 ldrb.w r3, [r7, #38] ; 0x26 + 80051ee: 2b03 cmp r3, #3 + 80051f0: d9ef bls.n 80051d2 } res = RES_OK; - 8002ea2: 2300 movs r3, #0 - 8002ea4: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 80051f2: 2300 movs r3, #0 + 80051f4: f887 3027 strb.w r3, [r7, #39] ; 0x27 } default: res = RES_PARERR; - 8002ea8: 2304 movs r3, #4 - 8002eaa: f887 3027 strb.w r3, [r7, #39] ; 0x27 - 8002eae: e006 b.n 8002ebe + 80051f8: 2304 movs r3, #4 + 80051fa: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 80051fe: e006 b.n 800520e break; - 8002eb0: bf00 nop - 8002eb2: e004 b.n 8002ebe + 8005200: bf00 nop + 8005202: e004 b.n 800520e break; - 8002eb4: bf00 nop - 8002eb6: e002 b.n 8002ebe + 8005204: bf00 nop + 8005206: e002 b.n 800520e break; - 8002eb8: bf00 nop - 8002eba: e000 b.n 8002ebe + 8005208: bf00 nop + 800520a: e000 b.n 800520e break; - 8002ebc: bf00 nop + 800520c: bf00 nop } DESELECT(); - 8002ebe: f7ff fb41 bl 8002544 + 800520e: f7ff fb41 bl 8004894 SPI_RxByte(); - 8002ec2: f7ff fb65 bl 8002590 + 8005212: f7ff fb65 bl 80048e0 } return res; - 8002ec6: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 8005216: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 } - 8002eca: 4618 mov r0, r3 - 8002ecc: 372c adds r7, #44 ; 0x2c - 8002ece: 46bd mov sp, r7 - 8002ed0: bd90 pop {r4, r7, pc} - 8002ed2: bf00 nop - 8002ed4: 20000020 .word 0x20000020 + 800521a: 4618 mov r0, r3 + 800521c: 372c adds r7, #44 ; 0x2c + 800521e: 46bd mov sp, r7 + 8005220: bd90 pop {r4, r7, pc} + 8005222: bf00 nop + 8005224: 20000020 .word 0x20000020 -08002ed8 : +08005228 : _lcd_dev lcddev; //管理LCD重要参数 //**************************************************几种快速接口 //写寄存器函数 //regval:寄存器值 void LCD_WR_REG(uint16_t regval) { - 8002ed8: b480 push {r7} - 8002eda: b083 sub sp, #12 - 8002edc: af00 add r7, sp, #0 - 8002ede: 4603 mov r3, r0 - 8002ee0: 80fb strh r3, [r7, #6] + 8005228: b480 push {r7} + 800522a: b083 sub sp, #12 + 800522c: af00 add r7, sp, #0 + 800522e: 4603 mov r3, r0 + 8005230: 80fb strh r3, [r7, #6] LCD_REG_ADDRESS=regval;//写入要写的寄存器序号 - 8002ee2: f04f 42d8 mov.w r2, #1811939328 ; 0x6c000000 - 8002ee6: 88fb ldrh r3, [r7, #6] - 8002ee8: 8013 strh r3, [r2, #0] + 8005232: f04f 42d8 mov.w r2, #1811939328 ; 0x6c000000 + 8005236: 88fb ldrh r3, [r7, #6] + 8005238: 8013 strh r3, [r2, #0] } - 8002eea: bf00 nop - 8002eec: 370c adds r7, #12 - 8002eee: 46bd mov sp, r7 - 8002ef0: bc80 pop {r7} - 8002ef2: 4770 bx lr + 800523a: bf00 nop + 800523c: 370c adds r7, #12 + 800523e: 46bd mov sp, r7 + 8005240: bc80 pop {r7} + 8005242: 4770 bx lr -08002ef4 : +08005244 : //写LCD数据 //data:要写入的值 void LCD_WR_DATA(uint16_t data) { - 8002ef4: b480 push {r7} - 8002ef6: b083 sub sp, #12 - 8002ef8: af00 add r7, sp, #0 - 8002efa: 4603 mov r3, r0 - 8002efc: 80fb strh r3, [r7, #6] + 8005244: b480 push {r7} + 8005246: b083 sub sp, #12 + 8005248: af00 add r7, sp, #0 + 800524a: 4603 mov r3, r0 + 800524c: 80fb strh r3, [r7, #6] LCD_DATA_ADDRESS=data; - 8002efe: 4a04 ldr r2, [pc, #16] ; (8002f10 ) - 8002f00: 88fb ldrh r3, [r7, #6] - 8002f02: 8013 strh r3, [r2, #0] + 800524e: 4a04 ldr r2, [pc, #16] ; (8005260 ) + 8005250: 88fb ldrh r3, [r7, #6] + 8005252: 8013 strh r3, [r2, #0] } - 8002f04: bf00 nop - 8002f06: 370c adds r7, #12 - 8002f08: 46bd mov sp, r7 - 8002f0a: bc80 pop {r7} - 8002f0c: 4770 bx lr - 8002f0e: bf00 nop - 8002f10: 6c000800 .word 0x6c000800 + 8005254: bf00 nop + 8005256: 370c adds r7, #12 + 8005258: 46bd mov sp, r7 + 800525a: bc80 pop {r7} + 800525c: 4770 bx lr + 800525e: bf00 nop + 8005260: 6c000800 .word 0x6c000800 -08002f14 : +08005264 : } //写寄存器 //LCD_Reg:寄存器地址 //LCD_RegValue:要写入的数据 void LCD_WriteReg(uint16_t LCD_Reg, uint16_t LCD_RegValue) { - 8002f14: b480 push {r7} - 8002f16: b083 sub sp, #12 - 8002f18: af00 add r7, sp, #0 - 8002f1a: 4603 mov r3, r0 - 8002f1c: 460a mov r2, r1 - 8002f1e: 80fb strh r3, [r7, #6] - 8002f20: 4613 mov r3, r2 - 8002f22: 80bb strh r3, [r7, #4] + 8005264: b480 push {r7} + 8005266: b083 sub sp, #12 + 8005268: af00 add r7, sp, #0 + 800526a: 4603 mov r3, r0 + 800526c: 460a mov r2, r1 + 800526e: 80fb strh r3, [r7, #6] + 8005270: 4613 mov r3, r2 + 8005272: 80bb strh r3, [r7, #4] LCD_REG_ADDRESS = LCD_Reg; //写入要写的寄存器序号 - 8002f24: f04f 42d8 mov.w r2, #1811939328 ; 0x6c000000 - 8002f28: 88fb ldrh r3, [r7, #6] - 8002f2a: 8013 strh r3, [r2, #0] + 8005274: f04f 42d8 mov.w r2, #1811939328 ; 0x6c000000 + 8005278: 88fb ldrh r3, [r7, #6] + 800527a: 8013 strh r3, [r2, #0] LCD_DATA_ADDRESS = LCD_RegValue;//写入数据 - 8002f2c: 4a03 ldr r2, [pc, #12] ; (8002f3c ) - 8002f2e: 88bb ldrh r3, [r7, #4] - 8002f30: 8013 strh r3, [r2, #0] + 800527c: 4a03 ldr r2, [pc, #12] ; (800528c ) + 800527e: 88bb ldrh r3, [r7, #4] + 8005280: 8013 strh r3, [r2, #0] } - 8002f32: bf00 nop - 8002f34: 370c adds r7, #12 - 8002f36: 46bd mov sp, r7 - 8002f38: bc80 pop {r7} - 8002f3a: 4770 bx lr - 8002f3c: 6c000800 .word 0x6c000800 + 8005282: bf00 nop + 8005284: 370c adds r7, #12 + 8005286: 46bd mov sp, r7 + 8005288: bc80 pop {r7} + 800528a: 4770 bx lr + 800528c: 6c000800 .word 0x6c000800 -08002f40 : +08005290 : //读寄存器 //LCD_Reg:寄存器地址 //返回值:读到的数据 uint16_t LCD_ReadReg(uint16_t LCD_Reg) { - 8002f40: b480 push {r7} - 8002f42: b083 sub sp, #12 - 8002f44: af00 add r7, sp, #0 - 8002f46: 4603 mov r3, r0 - 8002f48: 80fb strh r3, [r7, #6] + 8005290: b480 push {r7} + 8005292: b083 sub sp, #12 + 8005294: af00 add r7, sp, #0 + 8005296: 4603 mov r3, r0 + 8005298: 80fb strh r3, [r7, #6] LCD_REG_ADDRESS=LCD_Reg; //写入要读的寄存器序号 - 8002f4a: f04f 42d8 mov.w r2, #1811939328 ; 0x6c000000 - 8002f4e: 88fb ldrh r3, [r7, #6] - 8002f50: 8013 strh r3, [r2, #0] + 800529a: f04f 42d8 mov.w r2, #1811939328 ; 0x6c000000 + 800529e: 88fb ldrh r3, [r7, #6] + 80052a0: 8013 strh r3, [r2, #0] //delay_us(5); return LCD_DATA_ADDRESS; //返回读到的值 - 8002f52: 4b04 ldr r3, [pc, #16] ; (8002f64 ) - 8002f54: 881b ldrh r3, [r3, #0] - 8002f56: b29b uxth r3, r3 + 80052a2: 4b04 ldr r3, [pc, #16] ; (80052b4 ) + 80052a4: 881b ldrh r3, [r3, #0] + 80052a6: b29b uxth r3, r3 } - 8002f58: 4618 mov r0, r3 - 8002f5a: 370c adds r7, #12 - 8002f5c: 46bd mov sp, r7 - 8002f5e: bc80 pop {r7} - 8002f60: 4770 bx lr - 8002f62: bf00 nop - 8002f64: 6c000800 .word 0x6c000800 + 80052a8: 4618 mov r0, r3 + 80052aa: 370c adds r7, #12 + 80052ac: 46bd mov sp, r7 + 80052ae: bc80 pop {r7} + 80052b0: 4770 bx lr + 80052b2: bf00 nop + 80052b4: 6c000800 .word 0x6c000800 -08002f68 : +080052b8 : //注意:其他函数可能会受到此函数设置的影响(尤其是9341/6804这两个奇葩), //所以,一般设置为L2R_U2D即可,如果设置为其他扫描方式,可能导致显示不正常. //dir:0~7,代表8个方向(具体定义见lcd.h) //9320/9325/9328/4531/4535/1505/b505/8989/5408/9341/5310等IC已经实际测试 void LCD_Scan_Dir(uint8_t dir) { - 8002f68: b580 push {r7, lr} - 8002f6a: b084 sub sp, #16 - 8002f6c: af00 add r7, sp, #0 - 8002f6e: 4603 mov r3, r0 - 8002f70: 71fb strb r3, [r7, #7] + 80052b8: b580 push {r7, lr} + 80052ba: b084 sub sp, #16 + 80052bc: af00 add r7, sp, #0 + 80052be: 4603 mov r3, r0 + 80052c0: 71fb strb r3, [r7, #7] uint16_t regval=0; - 8002f72: 2300 movs r3, #0 - 8002f74: 81fb strh r3, [r7, #14] + 80052c2: 2300 movs r3, #0 + 80052c4: 81fb strh r3, [r7, #14] uint8_t dirreg=0; - 8002f76: 2300 movs r3, #0 - 8002f78: 737b strb r3, [r7, #13] + 80052c6: 2300 movs r3, #0 + 80052c8: 737b strb r3, [r7, #13] uint16_t temp; if(lcddev.dir==1&&lcddev.id!=0X6804)//横屏时,对6804不改变扫描方向! - 8002f7a: 4ba8 ldr r3, [pc, #672] ; (800321c ) - 8002f7c: 799b ldrb r3, [r3, #6] - 8002f7e: 2b01 cmp r3, #1 - 8002f80: d134 bne.n 8002fec - 8002f82: 4ba6 ldr r3, [pc, #664] ; (800321c ) - 8002f84: 889b ldrh r3, [r3, #4] - 8002f86: f646 0204 movw r2, #26628 ; 0x6804 - 8002f8a: 4293 cmp r3, r2 - 8002f8c: d02e beq.n 8002fec + 80052ca: 4ba8 ldr r3, [pc, #672] ; (800556c ) + 80052cc: 799b ldrb r3, [r3, #6] + 80052ce: 2b01 cmp r3, #1 + 80052d0: d134 bne.n 800533c + 80052d2: 4ba6 ldr r3, [pc, #664] ; (800556c ) + 80052d4: 889b ldrh r3, [r3, #4] + 80052d6: f646 0204 movw r2, #26628 ; 0x6804 + 80052da: 4293 cmp r3, r2 + 80052dc: d02e beq.n 800533c { switch(dir)//方向转换 - 8002f8e: 79fb ldrb r3, [r7, #7] - 8002f90: 2b07 cmp r3, #7 - 8002f92: d82c bhi.n 8002fee - 8002f94: a201 add r2, pc, #4 ; (adr r2, 8002f9c ) - 8002f96: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 8002f9a: bf00 nop - 8002f9c: 08002fbd .word 0x08002fbd - 8002fa0: 08002fc3 .word 0x08002fc3 - 8002fa4: 08002fc9 .word 0x08002fc9 - 8002fa8: 08002fcf .word 0x08002fcf - 8002fac: 08002fd5 .word 0x08002fd5 - 8002fb0: 08002fdb .word 0x08002fdb - 8002fb4: 08002fe1 .word 0x08002fe1 - 8002fb8: 08002fe7 .word 0x08002fe7 + 80052de: 79fb ldrb r3, [r7, #7] + 80052e0: 2b07 cmp r3, #7 + 80052e2: d82c bhi.n 800533e + 80052e4: a201 add r2, pc, #4 ; (adr r2, 80052ec ) + 80052e6: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 80052ea: bf00 nop + 80052ec: 0800530d .word 0x0800530d + 80052f0: 08005313 .word 0x08005313 + 80052f4: 08005319 .word 0x08005319 + 80052f8: 0800531f .word 0x0800531f + 80052fc: 08005325 .word 0x08005325 + 8005300: 0800532b .word 0x0800532b + 8005304: 08005331 .word 0x08005331 + 8005308: 08005337 .word 0x08005337 { case 0:dir=6;break; - 8002fbc: 2306 movs r3, #6 - 8002fbe: 71fb strb r3, [r7, #7] - 8002fc0: e015 b.n 8002fee + 800530c: 2306 movs r3, #6 + 800530e: 71fb strb r3, [r7, #7] + 8005310: e015 b.n 800533e case 1:dir=7;break; - 8002fc2: 2307 movs r3, #7 - 8002fc4: 71fb strb r3, [r7, #7] - 8002fc6: e012 b.n 8002fee + 8005312: 2307 movs r3, #7 + 8005314: 71fb strb r3, [r7, #7] + 8005316: e012 b.n 800533e case 2:dir=4;break; - 8002fc8: 2304 movs r3, #4 - 8002fca: 71fb strb r3, [r7, #7] - 8002fcc: e00f b.n 8002fee + 8005318: 2304 movs r3, #4 + 800531a: 71fb strb r3, [r7, #7] + 800531c: e00f b.n 800533e case 3:dir=5;break; - 8002fce: 2305 movs r3, #5 - 8002fd0: 71fb strb r3, [r7, #7] - 8002fd2: e00c b.n 8002fee + 800531e: 2305 movs r3, #5 + 8005320: 71fb strb r3, [r7, #7] + 8005322: e00c b.n 800533e case 4:dir=1;break; - 8002fd4: 2301 movs r3, #1 - 8002fd6: 71fb strb r3, [r7, #7] - 8002fd8: e009 b.n 8002fee + 8005324: 2301 movs r3, #1 + 8005326: 71fb strb r3, [r7, #7] + 8005328: e009 b.n 800533e case 5:dir=0;break; - 8002fda: 2300 movs r3, #0 - 8002fdc: 71fb strb r3, [r7, #7] - 8002fde: e006 b.n 8002fee + 800532a: 2300 movs r3, #0 + 800532c: 71fb strb r3, [r7, #7] + 800532e: e006 b.n 800533e case 6:dir=3;break; - 8002fe0: 2303 movs r3, #3 - 8002fe2: 71fb strb r3, [r7, #7] - 8002fe4: e003 b.n 8002fee + 8005330: 2303 movs r3, #3 + 8005332: 71fb strb r3, [r7, #7] + 8005334: e003 b.n 800533e case 7:dir=2;break; - 8002fe6: 2302 movs r3, #2 - 8002fe8: 71fb strb r3, [r7, #7] - 8002fea: e000 b.n 8002fee + 8005336: 2302 movs r3, #2 + 8005338: 71fb strb r3, [r7, #7] + 800533a: e000 b.n 800533e } } - 8002fec: bf00 nop + 800533c: bf00 nop if(lcddev.id==0x9341||lcddev.id==0X6804||lcddev.id==0X5310)//9341/6804/5310,很特殊 - 8002fee: 4b8b ldr r3, [pc, #556] ; (800321c ) - 8002ff0: 889b ldrh r3, [r3, #4] - 8002ff2: f249 3241 movw r2, #37697 ; 0x9341 - 8002ff6: 4293 cmp r3, r2 - 8002ff8: d00c beq.n 8003014 - 8002ffa: 4b88 ldr r3, [pc, #544] ; (800321c ) - 8002ffc: 889b ldrh r3, [r3, #4] - 8002ffe: f646 0204 movw r2, #26628 ; 0x6804 - 8003002: 4293 cmp r3, r2 - 8003004: d006 beq.n 8003014 - 8003006: 4b85 ldr r3, [pc, #532] ; (800321c ) - 8003008: 889b ldrh r3, [r3, #4] - 800300a: f245 3210 movw r2, #21264 ; 0x5310 - 800300e: 4293 cmp r3, r2 - 8003010: f040 80bb bne.w 800318a + 800533e: 4b8b ldr r3, [pc, #556] ; (800556c ) + 8005340: 889b ldrh r3, [r3, #4] + 8005342: f249 3241 movw r2, #37697 ; 0x9341 + 8005346: 4293 cmp r3, r2 + 8005348: d00c beq.n 8005364 + 800534a: 4b88 ldr r3, [pc, #544] ; (800556c ) + 800534c: 889b ldrh r3, [r3, #4] + 800534e: f646 0204 movw r2, #26628 ; 0x6804 + 8005352: 4293 cmp r3, r2 + 8005354: d006 beq.n 8005364 + 8005356: 4b85 ldr r3, [pc, #532] ; (800556c ) + 8005358: 889b ldrh r3, [r3, #4] + 800535a: f245 3210 movw r2, #21264 ; 0x5310 + 800535e: 4293 cmp r3, r2 + 8005360: f040 80bb bne.w 80054da { switch(dir) - 8003014: 79fb ldrb r3, [r7, #7] - 8003016: 2b07 cmp r3, #7 - 8003018: d835 bhi.n 8003086 - 800301a: a201 add r2, pc, #4 ; (adr r2, 8003020 ) - 800301c: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 8003020: 08003087 .word 0x08003087 - 8003024: 08003041 .word 0x08003041 - 8003028: 0800304b .word 0x0800304b - 800302c: 08003055 .word 0x08003055 - 8003030: 0800305f .word 0x0800305f - 8003034: 08003069 .word 0x08003069 - 8003038: 08003073 .word 0x08003073 - 800303c: 0800307d .word 0x0800307d + 8005364: 79fb ldrb r3, [r7, #7] + 8005366: 2b07 cmp r3, #7 + 8005368: d835 bhi.n 80053d6 + 800536a: a201 add r2, pc, #4 ; (adr r2, 8005370 ) + 800536c: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 8005370: 080053d7 .word 0x080053d7 + 8005374: 08005391 .word 0x08005391 + 8005378: 0800539b .word 0x0800539b + 800537c: 080053a5 .word 0x080053a5 + 8005380: 080053af .word 0x080053af + 8005384: 080053b9 .word 0x080053b9 + 8005388: 080053c3 .word 0x080053c3 + 800538c: 080053cd .word 0x080053cd { case L2R_U2D://从左到右,从上到下 regval|=(0<<7)|(0<<6)|(0<<5); break; case L2R_D2U://从左到右,从下到上 regval|=(1<<7)|(0<<6)|(0<<5); - 8003040: 89fb ldrh r3, [r7, #14] - 8003042: f043 0380 orr.w r3, r3, #128 ; 0x80 - 8003046: 81fb strh r3, [r7, #14] + 8005390: 89fb ldrh r3, [r7, #14] + 8005392: f043 0380 orr.w r3, r3, #128 ; 0x80 + 8005396: 81fb strh r3, [r7, #14] break; - 8003048: e01d b.n 8003086 + 8005398: e01d b.n 80053d6 case R2L_U2D://从右到左,从上到下 regval|=(0<<7)|(1<<6)|(0<<5); - 800304a: 89fb ldrh r3, [r7, #14] - 800304c: f043 0340 orr.w r3, r3, #64 ; 0x40 - 8003050: 81fb strh r3, [r7, #14] + 800539a: 89fb ldrh r3, [r7, #14] + 800539c: f043 0340 orr.w r3, r3, #64 ; 0x40 + 80053a0: 81fb strh r3, [r7, #14] break; - 8003052: e018 b.n 8003086 + 80053a2: e018 b.n 80053d6 case R2L_D2U://从右到左,从下到上 regval|=(1<<7)|(1<<6)|(0<<5); - 8003054: 89fb ldrh r3, [r7, #14] - 8003056: f043 03c0 orr.w r3, r3, #192 ; 0xc0 - 800305a: 81fb strh r3, [r7, #14] + 80053a4: 89fb ldrh r3, [r7, #14] + 80053a6: f043 03c0 orr.w r3, r3, #192 ; 0xc0 + 80053aa: 81fb strh r3, [r7, #14] break; - 800305c: e013 b.n 8003086 + 80053ac: e013 b.n 80053d6 case U2D_L2R://从上到下,从左到右 regval|=(0<<7)|(0<<6)|(1<<5); - 800305e: 89fb ldrh r3, [r7, #14] - 8003060: f043 0320 orr.w r3, r3, #32 - 8003064: 81fb strh r3, [r7, #14] + 80053ae: 89fb ldrh r3, [r7, #14] + 80053b0: f043 0320 orr.w r3, r3, #32 + 80053b4: 81fb strh r3, [r7, #14] break; - 8003066: e00e b.n 8003086 + 80053b6: e00e b.n 80053d6 case U2D_R2L://从上到下,从右到左 regval|=(0<<7)|(1<<6)|(1<<5); - 8003068: 89fb ldrh r3, [r7, #14] - 800306a: f043 0360 orr.w r3, r3, #96 ; 0x60 - 800306e: 81fb strh r3, [r7, #14] + 80053b8: 89fb ldrh r3, [r7, #14] + 80053ba: f043 0360 orr.w r3, r3, #96 ; 0x60 + 80053be: 81fb strh r3, [r7, #14] break; - 8003070: e009 b.n 8003086 + 80053c0: e009 b.n 80053d6 case D2U_L2R://从下到上,从左到右 regval|=(1<<7)|(0<<6)|(1<<5); - 8003072: 89fb ldrh r3, [r7, #14] - 8003074: f043 03a0 orr.w r3, r3, #160 ; 0xa0 - 8003078: 81fb strh r3, [r7, #14] + 80053c2: 89fb ldrh r3, [r7, #14] + 80053c4: f043 03a0 orr.w r3, r3, #160 ; 0xa0 + 80053c8: 81fb strh r3, [r7, #14] break; - 800307a: e004 b.n 8003086 + 80053ca: e004 b.n 80053d6 case D2U_R2L://从下到上,从右到左 regval|=(1<<7)|(1<<6)|(1<<5); - 800307c: 89fb ldrh r3, [r7, #14] - 800307e: f043 03e0 orr.w r3, r3, #224 ; 0xe0 - 8003082: 81fb strh r3, [r7, #14] + 80053cc: 89fb ldrh r3, [r7, #14] + 80053ce: f043 03e0 orr.w r3, r3, #224 ; 0xe0 + 80053d2: 81fb strh r3, [r7, #14] break; - 8003084: bf00 nop + 80053d4: bf00 nop } dirreg=0X36; - 8003086: 2336 movs r3, #54 ; 0x36 - 8003088: 737b strb r3, [r7, #13] + 80053d6: 2336 movs r3, #54 ; 0x36 + 80053d8: 737b strb r3, [r7, #13] if(lcddev.id!=0X5310)regval|=0X08;//5310不需要BGR - 800308a: 4b64 ldr r3, [pc, #400] ; (800321c ) - 800308c: 889b ldrh r3, [r3, #4] - 800308e: f245 3210 movw r2, #21264 ; 0x5310 - 8003092: 4293 cmp r3, r2 - 8003094: d003 beq.n 800309e - 8003096: 89fb ldrh r3, [r7, #14] - 8003098: f043 0308 orr.w r3, r3, #8 - 800309c: 81fb strh r3, [r7, #14] + 80053da: 4b64 ldr r3, [pc, #400] ; (800556c ) + 80053dc: 889b ldrh r3, [r3, #4] + 80053de: f245 3210 movw r2, #21264 ; 0x5310 + 80053e2: 4293 cmp r3, r2 + 80053e4: d003 beq.n 80053ee + 80053e6: 89fb ldrh r3, [r7, #14] + 80053e8: f043 0308 orr.w r3, r3, #8 + 80053ec: 81fb strh r3, [r7, #14] if(lcddev.id==0X6804)regval|=0x02;//6804的BIT6和9341的反了 - 800309e: 4b5f ldr r3, [pc, #380] ; (800321c ) - 80030a0: 889b ldrh r3, [r3, #4] - 80030a2: f646 0204 movw r2, #26628 ; 0x6804 - 80030a6: 4293 cmp r3, r2 - 80030a8: d103 bne.n 80030b2 - 80030aa: 89fb ldrh r3, [r7, #14] - 80030ac: f043 0302 orr.w r3, r3, #2 - 80030b0: 81fb strh r3, [r7, #14] + 80053ee: 4b5f ldr r3, [pc, #380] ; (800556c ) + 80053f0: 889b ldrh r3, [r3, #4] + 80053f2: f646 0204 movw r2, #26628 ; 0x6804 + 80053f6: 4293 cmp r3, r2 + 80053f8: d103 bne.n 8005402 + 80053fa: 89fb ldrh r3, [r7, #14] + 80053fc: f043 0302 orr.w r3, r3, #2 + 8005400: 81fb strh r3, [r7, #14] LCD_WriteReg(dirreg,regval); - 80030b2: 7b7b ldrb r3, [r7, #13] - 80030b4: b29b uxth r3, r3 - 80030b6: 89fa ldrh r2, [r7, #14] - 80030b8: 4611 mov r1, r2 - 80030ba: 4618 mov r0, r3 - 80030bc: f7ff ff2a bl 8002f14 + 8005402: 7b7b ldrb r3, [r7, #13] + 8005404: b29b uxth r3, r3 + 8005406: 89fa ldrh r2, [r7, #14] + 8005408: 4611 mov r1, r2 + 800540a: 4618 mov r0, r3 + 800540c: f7ff ff2a bl 8005264 if((regval&0X20)||lcddev.dir==1) - 80030c0: 89fb ldrh r3, [r7, #14] - 80030c2: f003 0320 and.w r3, r3, #32 - 80030c6: 2b00 cmp r3, #0 - 80030c8: d103 bne.n 80030d2 - 80030ca: 4b54 ldr r3, [pc, #336] ; (800321c ) - 80030cc: 799b ldrb r3, [r3, #6] - 80030ce: 2b01 cmp r3, #1 - 80030d0: d110 bne.n 80030f4 + 8005410: 89fb ldrh r3, [r7, #14] + 8005412: f003 0320 and.w r3, r3, #32 + 8005416: 2b00 cmp r3, #0 + 8005418: d103 bne.n 8005422 + 800541a: 4b54 ldr r3, [pc, #336] ; (800556c ) + 800541c: 799b ldrb r3, [r3, #6] + 800541e: 2b01 cmp r3, #1 + 8005420: d110 bne.n 8005444 { if(lcddev.width) - 80030d4: 881a ldrh r2, [r3, #0] - 80030d6: 4b51 ldr r3, [pc, #324] ; (800321c ) - 80030d8: 885b ldrh r3, [r3, #2] - 80030da: 429a cmp r2, r3 - 80030dc: d21a bcs.n 8003114 + 8005422: 4b52 ldr r3, [pc, #328] ; (800556c ) + 8005424: 881a ldrh r2, [r3, #0] + 8005426: 4b51 ldr r3, [pc, #324] ; (800556c ) + 8005428: 885b ldrh r3, [r3, #2] + 800542a: 429a cmp r2, r3 + 800542c: d21a bcs.n 8005464 { temp=lcddev.width; - 80030de: 4b4f ldr r3, [pc, #316] ; (800321c ) - 80030e0: 881b ldrh r3, [r3, #0] - 80030e2: 817b strh r3, [r7, #10] + 800542e: 4b4f ldr r3, [pc, #316] ; (800556c ) + 8005430: 881b ldrh r3, [r3, #0] + 8005432: 817b strh r3, [r7, #10] lcddev.width=lcddev.height; - 80030e4: 4b4d ldr r3, [pc, #308] ; (800321c ) - 80030e6: 885a ldrh r2, [r3, #2] - 80030e8: 4b4c ldr r3, [pc, #304] ; (800321c ) - 80030ea: 801a strh r2, [r3, #0] + 8005434: 4b4d ldr r3, [pc, #308] ; (800556c ) + 8005436: 885a ldrh r2, [r3, #2] + 8005438: 4b4c ldr r3, [pc, #304] ; (800556c ) + 800543a: 801a strh r2, [r3, #0] lcddev.height=temp; - 80030ec: 4a4b ldr r2, [pc, #300] ; (800321c ) - 80030ee: 897b ldrh r3, [r7, #10] - 80030f0: 8053 strh r3, [r2, #2] + 800543c: 4a4b ldr r2, [pc, #300] ; (800556c ) + 800543e: 897b ldrh r3, [r7, #10] + 8005440: 8053 strh r3, [r2, #2] if(lcddev.width + 8005442: e00f b.n 8005464 } }else { if(lcddev.width>lcddev.height)//交换X,Y - 80030f4: 4b49 ldr r3, [pc, #292] ; (800321c ) - 80030f6: 881a ldrh r2, [r3, #0] - 80030f8: 4b48 ldr r3, [pc, #288] ; (800321c ) - 80030fa: 885b ldrh r3, [r3, #2] - 80030fc: 429a cmp r2, r3 - 80030fe: d909 bls.n 8003114 + 8005444: 4b49 ldr r3, [pc, #292] ; (800556c ) + 8005446: 881a ldrh r2, [r3, #0] + 8005448: 4b48 ldr r3, [pc, #288] ; (800556c ) + 800544a: 885b ldrh r3, [r3, #2] + 800544c: 429a cmp r2, r3 + 800544e: d909 bls.n 8005464 { temp=lcddev.width; - 8003100: 4b46 ldr r3, [pc, #280] ; (800321c ) - 8003102: 881b ldrh r3, [r3, #0] - 8003104: 817b strh r3, [r7, #10] + 8005450: 4b46 ldr r3, [pc, #280] ; (800556c ) + 8005452: 881b ldrh r3, [r3, #0] + 8005454: 817b strh r3, [r7, #10] lcddev.width=lcddev.height; - 8003106: 4b45 ldr r3, [pc, #276] ; (800321c ) - 8003108: 885a ldrh r2, [r3, #2] - 800310a: 4b44 ldr r3, [pc, #272] ; (800321c ) - 800310c: 801a strh r2, [r3, #0] + 8005456: 4b45 ldr r3, [pc, #276] ; (800556c ) + 8005458: 885a ldrh r2, [r3, #2] + 800545a: 4b44 ldr r3, [pc, #272] ; (800556c ) + 800545c: 801a strh r2, [r3, #0] lcddev.height=temp; - 800310e: 4a43 ldr r2, [pc, #268] ; (800321c ) - 8003110: 897b ldrh r3, [r7, #10] - 8003112: 8053 strh r3, [r2, #2] + 800545e: 4a43 ldr r2, [pc, #268] ; (800556c ) + 8005460: 897b ldrh r3, [r7, #10] + 8005462: 8053 strh r3, [r2, #2] } } LCD_WR_REG(lcddev.setxcmd); - 8003114: 4b41 ldr r3, [pc, #260] ; (800321c ) - 8003116: 7a1b ldrb r3, [r3, #8] - 8003118: b29b uxth r3, r3 - 800311a: 4618 mov r0, r3 - 800311c: f7ff fedc bl 8002ed8 + 8005464: 4b41 ldr r3, [pc, #260] ; (800556c ) + 8005466: 7a1b ldrb r3, [r3, #8] + 8005468: b29b uxth r3, r3 + 800546a: 4618 mov r0, r3 + 800546c: f7ff fedc bl 8005228 LCD_WR_DATA(0);LCD_WR_DATA(0); - 8003120: 2000 movs r0, #0 - 8003122: f7ff fee7 bl 8002ef4 - 8003126: 2000 movs r0, #0 - 8003128: f7ff fee4 bl 8002ef4 + 8005470: 2000 movs r0, #0 + 8005472: f7ff fee7 bl 8005244 + 8005476: 2000 movs r0, #0 + 8005478: f7ff fee4 bl 8005244 LCD_WR_DATA((lcddev.width-1)>>8);LCD_WR_DATA((lcddev.width-1)&0XFF); - 800312c: 4b3b ldr r3, [pc, #236] ; (800321c ) - 800312e: 881b ldrh r3, [r3, #0] - 8003130: 3b01 subs r3, #1 - 8003132: 121b asrs r3, r3, #8 - 8003134: b29b uxth r3, r3 - 8003136: 4618 mov r0, r3 - 8003138: f7ff fedc bl 8002ef4 - 800313c: 4b37 ldr r3, [pc, #220] ; (800321c ) - 800313e: 881b ldrh r3, [r3, #0] - 8003140: 3b01 subs r3, #1 - 8003142: b29b uxth r3, r3 - 8003144: b2db uxtb r3, r3 - 8003146: b29b uxth r3, r3 - 8003148: 4618 mov r0, r3 - 800314a: f7ff fed3 bl 8002ef4 + 800547c: 4b3b ldr r3, [pc, #236] ; (800556c ) + 800547e: 881b ldrh r3, [r3, #0] + 8005480: 3b01 subs r3, #1 + 8005482: 121b asrs r3, r3, #8 + 8005484: b29b uxth r3, r3 + 8005486: 4618 mov r0, r3 + 8005488: f7ff fedc bl 8005244 + 800548c: 4b37 ldr r3, [pc, #220] ; (800556c ) + 800548e: 881b ldrh r3, [r3, #0] + 8005490: 3b01 subs r3, #1 + 8005492: b29b uxth r3, r3 + 8005494: b2db uxtb r3, r3 + 8005496: b29b uxth r3, r3 + 8005498: 4618 mov r0, r3 + 800549a: f7ff fed3 bl 8005244 LCD_WR_REG(lcddev.setycmd); - 800314e: 4b33 ldr r3, [pc, #204] ; (800321c ) - 8003150: 7a5b ldrb r3, [r3, #9] - 8003152: b29b uxth r3, r3 - 8003154: 4618 mov r0, r3 - 8003156: f7ff febf bl 8002ed8 + 800549e: 4b33 ldr r3, [pc, #204] ; (800556c ) + 80054a0: 7a5b ldrb r3, [r3, #9] + 80054a2: b29b uxth r3, r3 + 80054a4: 4618 mov r0, r3 + 80054a6: f7ff febf bl 8005228 LCD_WR_DATA(0);LCD_WR_DATA(0); - 800315a: 2000 movs r0, #0 - 800315c: f7ff feca bl 8002ef4 - 8003160: 2000 movs r0, #0 - 8003162: f7ff fec7 bl 8002ef4 + 80054aa: 2000 movs r0, #0 + 80054ac: f7ff feca bl 8005244 + 80054b0: 2000 movs r0, #0 + 80054b2: f7ff fec7 bl 8005244 LCD_WR_DATA((lcddev.height-1)>>8);LCD_WR_DATA((lcddev.height-1)&0XFF); - 8003166: 4b2d ldr r3, [pc, #180] ; (800321c ) - 8003168: 885b ldrh r3, [r3, #2] - 800316a: 3b01 subs r3, #1 - 800316c: 121b asrs r3, r3, #8 - 800316e: b29b uxth r3, r3 - 8003170: 4618 mov r0, r3 - 8003172: f7ff febf bl 8002ef4 - 8003176: 4b29 ldr r3, [pc, #164] ; (800321c ) - 8003178: 885b ldrh r3, [r3, #2] - 800317a: 3b01 subs r3, #1 - 800317c: b29b uxth r3, r3 - 800317e: b2db uxtb r3, r3 - 8003180: b29b uxth r3, r3 - 8003182: 4618 mov r0, r3 - 8003184: f7ff feb6 bl 8002ef4 - 8003188: e058 b.n 800323c + 80054b6: 4b2d ldr r3, [pc, #180] ; (800556c ) + 80054b8: 885b ldrh r3, [r3, #2] + 80054ba: 3b01 subs r3, #1 + 80054bc: 121b asrs r3, r3, #8 + 80054be: b29b uxth r3, r3 + 80054c0: 4618 mov r0, r3 + 80054c2: f7ff febf bl 8005244 + 80054c6: 4b29 ldr r3, [pc, #164] ; (800556c ) + 80054c8: 885b ldrh r3, [r3, #2] + 80054ca: 3b01 subs r3, #1 + 80054cc: b29b uxth r3, r3 + 80054ce: b2db uxtb r3, r3 + 80054d0: b29b uxth r3, r3 + 80054d2: 4618 mov r0, r3 + 80054d4: f7ff feb6 bl 8005244 + 80054d8: e058 b.n 800558c }else { switch(dir) - 800318a: 79fb ldrb r3, [r7, #7] - 800318c: 2b07 cmp r3, #7 - 800318e: d836 bhi.n 80031fe - 8003190: a201 add r2, pc, #4 ; (adr r2, 8003198 ) - 8003192: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 8003196: bf00 nop - 8003198: 080031b9 .word 0x080031b9 - 800319c: 080031c3 .word 0x080031c3 - 80031a0: 080031cd .word 0x080031cd - 80031a4: 080031ff .word 0x080031ff - 80031a8: 080031d7 .word 0x080031d7 - 80031ac: 080031e1 .word 0x080031e1 - 80031b0: 080031eb .word 0x080031eb - 80031b4: 080031f5 .word 0x080031f5 + 80054da: 79fb ldrb r3, [r7, #7] + 80054dc: 2b07 cmp r3, #7 + 80054de: d836 bhi.n 800554e + 80054e0: a201 add r2, pc, #4 ; (adr r2, 80054e8 ) + 80054e2: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 80054e6: bf00 nop + 80054e8: 08005509 .word 0x08005509 + 80054ec: 08005513 .word 0x08005513 + 80054f0: 0800551d .word 0x0800551d + 80054f4: 0800554f .word 0x0800554f + 80054f8: 08005527 .word 0x08005527 + 80054fc: 08005531 .word 0x08005531 + 8005500: 0800553b .word 0x0800553b + 8005504: 08005545 .word 0x08005545 { case L2R_U2D://从左到右,从上到下 regval|=(1<<5)|(1<<4)|(0<<3); - 80031b8: 89fb ldrh r3, [r7, #14] - 80031ba: f043 0330 orr.w r3, r3, #48 ; 0x30 - 80031be: 81fb strh r3, [r7, #14] + 8005508: 89fb ldrh r3, [r7, #14] + 800550a: f043 0330 orr.w r3, r3, #48 ; 0x30 + 800550e: 81fb strh r3, [r7, #14] break; - 80031c0: e01d b.n 80031fe + 8005510: e01d b.n 800554e case L2R_D2U://从左到右,从下到上 regval|=(0<<5)|(1<<4)|(0<<3); - 80031c2: 89fb ldrh r3, [r7, #14] - 80031c4: f043 0310 orr.w r3, r3, #16 - 80031c8: 81fb strh r3, [r7, #14] + 8005512: 89fb ldrh r3, [r7, #14] + 8005514: f043 0310 orr.w r3, r3, #16 + 8005518: 81fb strh r3, [r7, #14] break; - 80031ca: e018 b.n 80031fe + 800551a: e018 b.n 800554e case R2L_U2D://从右到左,从上到下 regval|=(1<<5)|(0<<4)|(0<<3); - 80031cc: 89fb ldrh r3, [r7, #14] - 80031ce: f043 0320 orr.w r3, r3, #32 - 80031d2: 81fb strh r3, [r7, #14] + 800551c: 89fb ldrh r3, [r7, #14] + 800551e: f043 0320 orr.w r3, r3, #32 + 8005522: 81fb strh r3, [r7, #14] break; - 80031d4: e013 b.n 80031fe + 8005524: e013 b.n 800554e case R2L_D2U://从右到左,从下到上 regval|=(0<<5)|(0<<4)|(0<<3); break; case U2D_L2R://从上到下,从左到右 regval|=(1<<5)|(1<<4)|(1<<3); - 80031d6: 89fb ldrh r3, [r7, #14] - 80031d8: f043 0338 orr.w r3, r3, #56 ; 0x38 - 80031dc: 81fb strh r3, [r7, #14] + 8005526: 89fb ldrh r3, [r7, #14] + 8005528: f043 0338 orr.w r3, r3, #56 ; 0x38 + 800552c: 81fb strh r3, [r7, #14] break; - 80031de: e00e b.n 80031fe + 800552e: e00e b.n 800554e case U2D_R2L://从上到下,从右到左 regval|=(1<<5)|(0<<4)|(1<<3); - 80031e0: 89fb ldrh r3, [r7, #14] - 80031e2: f043 0328 orr.w r3, r3, #40 ; 0x28 - 80031e6: 81fb strh r3, [r7, #14] + 8005530: 89fb ldrh r3, [r7, #14] + 8005532: f043 0328 orr.w r3, r3, #40 ; 0x28 + 8005536: 81fb strh r3, [r7, #14] break; - 80031e8: e009 b.n 80031fe + 8005538: e009 b.n 800554e case D2U_L2R://从下到上,从左到右 regval|=(0<<5)|(1<<4)|(1<<3); - 80031ea: 89fb ldrh r3, [r7, #14] - 80031ec: f043 0318 orr.w r3, r3, #24 - 80031f0: 81fb strh r3, [r7, #14] + 800553a: 89fb ldrh r3, [r7, #14] + 800553c: f043 0318 orr.w r3, r3, #24 + 8005540: 81fb strh r3, [r7, #14] break; - 80031f2: e004 b.n 80031fe + 8005542: e004 b.n 800554e case D2U_R2L://从下到上,从右到左 regval|=(0<<5)|(0<<4)|(1<<3); - 80031f4: 89fb ldrh r3, [r7, #14] - 80031f6: f043 0308 orr.w r3, r3, #8 - 80031fa: 81fb strh r3, [r7, #14] + 8005544: 89fb ldrh r3, [r7, #14] + 8005546: f043 0308 orr.w r3, r3, #8 + 800554a: 81fb strh r3, [r7, #14] break; - 80031fc: bf00 nop + 800554c: bf00 nop } if(lcddev.id==0x8989)//8989 IC - 80031fe: 4b07 ldr r3, [pc, #28] ; (800321c ) - 8003200: 889b ldrh r3, [r3, #4] - 8003202: f648 1289 movw r2, #35209 ; 0x8989 - 8003206: 4293 cmp r3, r2 - 8003208: d10a bne.n 8003220 + 800554e: 4b07 ldr r3, [pc, #28] ; (800556c ) + 8005550: 889b ldrh r3, [r3, #4] + 8005552: f648 1289 movw r2, #35209 ; 0x8989 + 8005556: 4293 cmp r3, r2 + 8005558: d10a bne.n 8005570 { dirreg=0X11; - 800320a: 2311 movs r3, #17 - 800320c: 737b strb r3, [r7, #13] + 800555a: 2311 movs r3, #17 + 800555c: 737b strb r3, [r7, #13] regval|=0X6040; //65K - 800320e: 89fb ldrh r3, [r7, #14] - 8003210: f443 43c0 orr.w r3, r3, #24576 ; 0x6000 - 8003214: f043 0340 orr.w r3, r3, #64 ; 0x40 - 8003218: 81fb strh r3, [r7, #14] - 800321a: e007 b.n 800322c - 800321c: 20000560 .word 0x20000560 + 800555e: 89fb ldrh r3, [r7, #14] + 8005560: f443 43c0 orr.w r3, r3, #24576 ; 0x6000 + 8005564: f043 0340 orr.w r3, r3, #64 ; 0x40 + 8005568: 81fb strh r3, [r7, #14] + 800556a: e007 b.n 800557c + 800556c: 20000820 .word 0x20000820 }else//其他驱动IC { dirreg=0X03; - 8003220: 2303 movs r3, #3 - 8003222: 737b strb r3, [r7, #13] + 8005570: 2303 movs r3, #3 + 8005572: 737b strb r3, [r7, #13] regval|=1<<12; - 8003224: 89fb ldrh r3, [r7, #14] - 8003226: f443 5380 orr.w r3, r3, #4096 ; 0x1000 - 800322a: 81fb strh r3, [r7, #14] + 8005574: 89fb ldrh r3, [r7, #14] + 8005576: f443 5380 orr.w r3, r3, #4096 ; 0x1000 + 800557a: 81fb strh r3, [r7, #14] } LCD_WriteReg(dirreg,regval); - 800322c: 7b7b ldrb r3, [r7, #13] - 800322e: b29b uxth r3, r3 - 8003230: 89fa ldrh r2, [r7, #14] - 8003232: 4611 mov r1, r2 - 8003234: 4618 mov r0, r3 - 8003236: f7ff fe6d bl 8002f14 + 800557c: 7b7b ldrb r3, [r7, #13] + 800557e: b29b uxth r3, r3 + 8005580: 89fa ldrh r2, [r7, #14] + 8005582: 4611 mov r1, r2 + 8005584: 4618 mov r0, r3 + 8005586: f7ff fe6d bl 8005264 } } - 800323a: bf00 nop - 800323c: bf00 nop - 800323e: 3710 adds r7, #16 - 8003240: 46bd mov sp, r7 - 8003242: bd80 pop {r7, pc} + 800558a: bf00 nop + 800558c: bf00 nop + 800558e: 3710 adds r7, #16 + 8005590: 46bd mov sp, r7 + 8005592: bd80 pop {r7, pc} -08003244 : +08005594 : //设置LCD显示方向 //dir:0,竖屏;1,横屏 void LCD_Display_Dir(uint8_t dir) { - 8003244: b580 push {r7, lr} - 8003246: b082 sub sp, #8 - 8003248: af00 add r7, sp, #0 - 800324a: 4603 mov r3, r0 - 800324c: 71fb strb r3, [r7, #7] + 8005594: b580 push {r7, lr} + 8005596: b082 sub sp, #8 + 8005598: af00 add r7, sp, #0 + 800559a: 4603 mov r3, r0 + 800559c: 71fb strb r3, [r7, #7] if(dir==0) //竖屏 - 800324e: 79fb ldrb r3, [r7, #7] - 8003250: 2b00 cmp r3, #0 - 8003252: d154 bne.n 80032fe + 800559e: 79fb ldrb r3, [r7, #7] + 80055a0: 2b00 cmp r3, #0 + 80055a2: d154 bne.n 800564e { lcddev.dir=0; //竖屏 - 8003254: 4b5d ldr r3, [pc, #372] ; (80033cc ) - 8003256: 2200 movs r2, #0 - 8003258: 719a strb r2, [r3, #6] + 80055a4: 4b5d ldr r3, [pc, #372] ; (800571c ) + 80055a6: 2200 movs r2, #0 + 80055a8: 719a strb r2, [r3, #6] lcddev.width=240; - 800325a: 4b5c ldr r3, [pc, #368] ; (80033cc ) - 800325c: 22f0 movs r2, #240 ; 0xf0 - 800325e: 801a strh r2, [r3, #0] + 80055aa: 4b5c ldr r3, [pc, #368] ; (800571c ) + 80055ac: 22f0 movs r2, #240 ; 0xf0 + 80055ae: 801a strh r2, [r3, #0] lcddev.height=320; - 8003260: 4b5a ldr r3, [pc, #360] ; (80033cc ) - 8003262: f44f 72a0 mov.w r2, #320 ; 0x140 - 8003266: 805a strh r2, [r3, #2] + 80055b0: 4b5a ldr r3, [pc, #360] ; (800571c ) + 80055b2: f44f 72a0 mov.w r2, #320 ; 0x140 + 80055b6: 805a strh r2, [r3, #2] if(lcddev.id==0X9341||lcddev.id==0X6804||lcddev.id==0X5310) - 8003268: 4b58 ldr r3, [pc, #352] ; (80033cc ) - 800326a: 889b ldrh r3, [r3, #4] - 800326c: f249 3241 movw r2, #37697 ; 0x9341 - 8003270: 4293 cmp r3, r2 - 8003272: d00b beq.n 800328c - 8003274: 4b55 ldr r3, [pc, #340] ; (80033cc ) - 8003276: 889b ldrh r3, [r3, #4] - 8003278: f646 0204 movw r2, #26628 ; 0x6804 - 800327c: 4293 cmp r3, r2 - 800327e: d005 beq.n 800328c - 8003280: 4b52 ldr r3, [pc, #328] ; (80033cc ) - 8003282: 889b ldrh r3, [r3, #4] - 8003284: f245 3210 movw r2, #21264 ; 0x5310 - 8003288: 4293 cmp r3, r2 - 800328a: d11e bne.n 80032ca + 80055b8: 4b58 ldr r3, [pc, #352] ; (800571c ) + 80055ba: 889b ldrh r3, [r3, #4] + 80055bc: f249 3241 movw r2, #37697 ; 0x9341 + 80055c0: 4293 cmp r3, r2 + 80055c2: d00b beq.n 80055dc + 80055c4: 4b55 ldr r3, [pc, #340] ; (800571c ) + 80055c6: 889b ldrh r3, [r3, #4] + 80055c8: f646 0204 movw r2, #26628 ; 0x6804 + 80055cc: 4293 cmp r3, r2 + 80055ce: d005 beq.n 80055dc + 80055d0: 4b52 ldr r3, [pc, #328] ; (800571c ) + 80055d2: 889b ldrh r3, [r3, #4] + 80055d4: f245 3210 movw r2, #21264 ; 0x5310 + 80055d8: 4293 cmp r3, r2 + 80055da: d11e bne.n 800561a { lcddev.wramcmd=0X2C; - 800328c: 4b4f ldr r3, [pc, #316] ; (80033cc ) - 800328e: 222c movs r2, #44 ; 0x2c - 8003290: 71da strb r2, [r3, #7] + 80055dc: 4b4f ldr r3, [pc, #316] ; (800571c ) + 80055de: 222c movs r2, #44 ; 0x2c + 80055e0: 71da strb r2, [r3, #7] lcddev.setxcmd=0X2A; - 8003292: 4b4e ldr r3, [pc, #312] ; (80033cc ) - 8003294: 222a movs r2, #42 ; 0x2a - 8003296: 721a strb r2, [r3, #8] + 80055e2: 4b4e ldr r3, [pc, #312] ; (800571c ) + 80055e4: 222a movs r2, #42 ; 0x2a + 80055e6: 721a strb r2, [r3, #8] lcddev.setycmd=0X2B; - 8003298: 4b4c ldr r3, [pc, #304] ; (80033cc ) - 800329a: 222b movs r2, #43 ; 0x2b - 800329c: 725a strb r2, [r3, #9] + 80055e8: 4b4c ldr r3, [pc, #304] ; (800571c ) + 80055ea: 222b movs r2, #43 ; 0x2b + 80055ec: 725a strb r2, [r3, #9] if(lcddev.id==0X6804||lcddev.id==0X5310) - 800329e: 4b4b ldr r3, [pc, #300] ; (80033cc ) - 80032a0: 889b ldrh r3, [r3, #4] - 80032a2: f646 0204 movw r2, #26628 ; 0x6804 - 80032a6: 4293 cmp r3, r2 - 80032a8: d006 beq.n 80032b8 - 80032aa: 4b48 ldr r3, [pc, #288] ; (80033cc ) - 80032ac: 889b ldrh r3, [r3, #4] - 80032ae: f245 3210 movw r2, #21264 ; 0x5310 - 80032b2: 4293 cmp r3, r2 - 80032b4: f040 8081 bne.w 80033ba + 80055ee: 4b4b ldr r3, [pc, #300] ; (800571c ) + 80055f0: 889b ldrh r3, [r3, #4] + 80055f2: f646 0204 movw r2, #26628 ; 0x6804 + 80055f6: 4293 cmp r3, r2 + 80055f8: d006 beq.n 8005608 + 80055fa: 4b48 ldr r3, [pc, #288] ; (800571c ) + 80055fc: 889b ldrh r3, [r3, #4] + 80055fe: f245 3210 movw r2, #21264 ; 0x5310 + 8005602: 4293 cmp r3, r2 + 8005604: f040 8081 bne.w 800570a { lcddev.width=320; - 80032b8: 4b44 ldr r3, [pc, #272] ; (80033cc ) - 80032ba: f44f 72a0 mov.w r2, #320 ; 0x140 - 80032be: 801a strh r2, [r3, #0] + 8005608: 4b44 ldr r3, [pc, #272] ; (800571c ) + 800560a: f44f 72a0 mov.w r2, #320 ; 0x140 + 800560e: 801a strh r2, [r3, #0] lcddev.height=480; - 80032c0: 4b42 ldr r3, [pc, #264] ; (80033cc ) - 80032c2: f44f 72f0 mov.w r2, #480 ; 0x1e0 - 80032c6: 805a strh r2, [r3, #2] + 8005610: 4b42 ldr r3, [pc, #264] ; (800571c ) + 8005612: f44f 72f0 mov.w r2, #480 ; 0x1e0 + 8005616: 805a strh r2, [r3, #2] if(lcddev.id==0X6804||lcddev.id==0X5310) - 80032c8: e077 b.n 80033ba + 8005618: e077 b.n 800570a } }else if(lcddev.id==0X8989) - 80032ca: 4b40 ldr r3, [pc, #256] ; (80033cc ) - 80032cc: 889b ldrh r3, [r3, #4] - 80032ce: f648 1289 movw r2, #35209 ; 0x8989 - 80032d2: 4293 cmp r3, r2 - 80032d4: d109 bne.n 80032ea + 800561a: 4b40 ldr r3, [pc, #256] ; (800571c ) + 800561c: 889b ldrh r3, [r3, #4] + 800561e: f648 1289 movw r2, #35209 ; 0x8989 + 8005622: 4293 cmp r3, r2 + 8005624: d109 bne.n 800563a { lcddev.wramcmd=R34; - 80032d6: 4b3d ldr r3, [pc, #244] ; (80033cc ) - 80032d8: 2222 movs r2, #34 ; 0x22 - 80032da: 71da strb r2, [r3, #7] + 8005626: 4b3d ldr r3, [pc, #244] ; (800571c ) + 8005628: 2222 movs r2, #34 ; 0x22 + 800562a: 71da strb r2, [r3, #7] lcddev.setxcmd=0X4E; - 80032dc: 4b3b ldr r3, [pc, #236] ; (80033cc ) - 80032de: 224e movs r2, #78 ; 0x4e - 80032e0: 721a strb r2, [r3, #8] + 800562c: 4b3b ldr r3, [pc, #236] ; (800571c ) + 800562e: 224e movs r2, #78 ; 0x4e + 8005630: 721a strb r2, [r3, #8] lcddev.setycmd=0X4F; - 80032e2: 4b3a ldr r3, [pc, #232] ; (80033cc ) - 80032e4: 224f movs r2, #79 ; 0x4f - 80032e6: 725a strb r2, [r3, #9] - 80032e8: e068 b.n 80033bc + 8005632: 4b3a ldr r3, [pc, #232] ; (800571c ) + 8005634: 224f movs r2, #79 ; 0x4f + 8005636: 725a strb r2, [r3, #9] + 8005638: e068 b.n 800570c }else { lcddev.wramcmd=R34; - 80032ea: 4b38 ldr r3, [pc, #224] ; (80033cc ) - 80032ec: 2222 movs r2, #34 ; 0x22 - 80032ee: 71da strb r2, [r3, #7] + 800563a: 4b38 ldr r3, [pc, #224] ; (800571c ) + 800563c: 2222 movs r2, #34 ; 0x22 + 800563e: 71da strb r2, [r3, #7] lcddev.setxcmd=R32; - 80032f0: 4b36 ldr r3, [pc, #216] ; (80033cc ) - 80032f2: 2220 movs r2, #32 - 80032f4: 721a strb r2, [r3, #8] + 8005640: 4b36 ldr r3, [pc, #216] ; (800571c ) + 8005642: 2220 movs r2, #32 + 8005644: 721a strb r2, [r3, #8] lcddev.setycmd=R33; - 80032f6: 4b35 ldr r3, [pc, #212] ; (80033cc ) - 80032f8: 2221 movs r2, #33 ; 0x21 - 80032fa: 725a strb r2, [r3, #9] - 80032fc: e05e b.n 80033bc + 8005646: 4b35 ldr r3, [pc, #212] ; (800571c ) + 8005648: 2221 movs r2, #33 ; 0x21 + 800564a: 725a strb r2, [r3, #9] + 800564c: e05e b.n 800570c } }else //横屏 { lcddev.dir=1; //横屏 - 80032fe: 4b33 ldr r3, [pc, #204] ; (80033cc ) - 8003300: 2201 movs r2, #1 - 8003302: 719a strb r2, [r3, #6] + 800564e: 4b33 ldr r3, [pc, #204] ; (800571c ) + 8005650: 2201 movs r2, #1 + 8005652: 719a strb r2, [r3, #6] lcddev.width=320; - 8003304: 4b31 ldr r3, [pc, #196] ; (80033cc ) - 8003306: f44f 72a0 mov.w r2, #320 ; 0x140 - 800330a: 801a strh r2, [r3, #0] + 8005654: 4b31 ldr r3, [pc, #196] ; (800571c ) + 8005656: f44f 72a0 mov.w r2, #320 ; 0x140 + 800565a: 801a strh r2, [r3, #0] lcddev.height=240; - 800330c: 4b2f ldr r3, [pc, #188] ; (80033cc ) - 800330e: 22f0 movs r2, #240 ; 0xf0 - 8003310: 805a strh r2, [r3, #2] + 800565c: 4b2f ldr r3, [pc, #188] ; (800571c ) + 800565e: 22f0 movs r2, #240 ; 0xf0 + 8005660: 805a strh r2, [r3, #2] if(lcddev.id==0X9341||lcddev.id==0X5310) - 8003312: 4b2e ldr r3, [pc, #184] ; (80033cc ) - 8003314: 889b ldrh r3, [r3, #4] - 8003316: f249 3241 movw r2, #37697 ; 0x9341 - 800331a: 4293 cmp r3, r2 - 800331c: d005 beq.n 800332a - 800331e: 4b2b ldr r3, [pc, #172] ; (80033cc ) - 8003320: 889b ldrh r3, [r3, #4] - 8003322: f245 3210 movw r2, #21264 ; 0x5310 - 8003326: 4293 cmp r3, r2 - 8003328: d109 bne.n 800333e + 8005662: 4b2e ldr r3, [pc, #184] ; (800571c ) + 8005664: 889b ldrh r3, [r3, #4] + 8005666: f249 3241 movw r2, #37697 ; 0x9341 + 800566a: 4293 cmp r3, r2 + 800566c: d005 beq.n 800567a + 800566e: 4b2b ldr r3, [pc, #172] ; (800571c ) + 8005670: 889b ldrh r3, [r3, #4] + 8005672: f245 3210 movw r2, #21264 ; 0x5310 + 8005676: 4293 cmp r3, r2 + 8005678: d109 bne.n 800568e { lcddev.wramcmd=0X2C; - 800332a: 4b28 ldr r3, [pc, #160] ; (80033cc ) - 800332c: 222c movs r2, #44 ; 0x2c - 800332e: 71da strb r2, [r3, #7] + 800567a: 4b28 ldr r3, [pc, #160] ; (800571c ) + 800567c: 222c movs r2, #44 ; 0x2c + 800567e: 71da strb r2, [r3, #7] lcddev.setxcmd=0X2A; - 8003330: 4b26 ldr r3, [pc, #152] ; (80033cc ) - 8003332: 222a movs r2, #42 ; 0x2a - 8003334: 721a strb r2, [r3, #8] + 8005680: 4b26 ldr r3, [pc, #152] ; (800571c ) + 8005682: 222a movs r2, #42 ; 0x2a + 8005684: 721a strb r2, [r3, #8] lcddev.setycmd=0X2B; - 8003336: 4b25 ldr r3, [pc, #148] ; (80033cc ) - 8003338: 222b movs r2, #43 ; 0x2b - 800333a: 725a strb r2, [r3, #9] - 800333c: e028 b.n 8003390 + 8005686: 4b25 ldr r3, [pc, #148] ; (800571c ) + 8005688: 222b movs r2, #43 ; 0x2b + 800568a: 725a strb r2, [r3, #9] + 800568c: e028 b.n 80056e0 }else if(lcddev.id==0X6804) - 800333e: 4b23 ldr r3, [pc, #140] ; (80033cc ) - 8003340: 889b ldrh r3, [r3, #4] - 8003342: f646 0204 movw r2, #26628 ; 0x6804 - 8003346: 4293 cmp r3, r2 - 8003348: d109 bne.n 800335e + 800568e: 4b23 ldr r3, [pc, #140] ; (800571c ) + 8005690: 889b ldrh r3, [r3, #4] + 8005692: f646 0204 movw r2, #26628 ; 0x6804 + 8005696: 4293 cmp r3, r2 + 8005698: d109 bne.n 80056ae { lcddev.wramcmd=0X2C; - 800334a: 4b20 ldr r3, [pc, #128] ; (80033cc ) - 800334c: 222c movs r2, #44 ; 0x2c - 800334e: 71da strb r2, [r3, #7] + 800569a: 4b20 ldr r3, [pc, #128] ; (800571c ) + 800569c: 222c movs r2, #44 ; 0x2c + 800569e: 71da strb r2, [r3, #7] lcddev.setxcmd=0X2B; - 8003350: 4b1e ldr r3, [pc, #120] ; (80033cc ) - 8003352: 222b movs r2, #43 ; 0x2b - 8003354: 721a strb r2, [r3, #8] + 80056a0: 4b1e ldr r3, [pc, #120] ; (800571c ) + 80056a2: 222b movs r2, #43 ; 0x2b + 80056a4: 721a strb r2, [r3, #8] lcddev.setycmd=0X2A; - 8003356: 4b1d ldr r3, [pc, #116] ; (80033cc ) - 8003358: 222a movs r2, #42 ; 0x2a - 800335a: 725a strb r2, [r3, #9] - 800335c: e018 b.n 8003390 + 80056a6: 4b1d ldr r3, [pc, #116] ; (800571c ) + 80056a8: 222a movs r2, #42 ; 0x2a + 80056aa: 725a strb r2, [r3, #9] + 80056ac: e018 b.n 80056e0 }else if(lcddev.id==0X8989) - 800335e: 4b1b ldr r3, [pc, #108] ; (80033cc ) - 8003360: 889b ldrh r3, [r3, #4] - 8003362: f648 1289 movw r2, #35209 ; 0x8989 - 8003366: 4293 cmp r3, r2 - 8003368: d109 bne.n 800337e + 80056ae: 4b1b ldr r3, [pc, #108] ; (800571c ) + 80056b0: 889b ldrh r3, [r3, #4] + 80056b2: f648 1289 movw r2, #35209 ; 0x8989 + 80056b6: 4293 cmp r3, r2 + 80056b8: d109 bne.n 80056ce { lcddev.wramcmd=R34; - 800336a: 4b18 ldr r3, [pc, #96] ; (80033cc ) - 800336c: 2222 movs r2, #34 ; 0x22 - 800336e: 71da strb r2, [r3, #7] + 80056ba: 4b18 ldr r3, [pc, #96] ; (800571c ) + 80056bc: 2222 movs r2, #34 ; 0x22 + 80056be: 71da strb r2, [r3, #7] lcddev.setxcmd=0X4F; - 8003370: 4b16 ldr r3, [pc, #88] ; (80033cc ) - 8003372: 224f movs r2, #79 ; 0x4f - 8003374: 721a strb r2, [r3, #8] + 80056c0: 4b16 ldr r3, [pc, #88] ; (800571c ) + 80056c2: 224f movs r2, #79 ; 0x4f + 80056c4: 721a strb r2, [r3, #8] lcddev.setycmd=0X4E; - 8003376: 4b15 ldr r3, [pc, #84] ; (80033cc ) - 8003378: 224e movs r2, #78 ; 0x4e - 800337a: 725a strb r2, [r3, #9] - 800337c: e008 b.n 8003390 + 80056c6: 4b15 ldr r3, [pc, #84] ; (800571c ) + 80056c8: 224e movs r2, #78 ; 0x4e + 80056ca: 725a strb r2, [r3, #9] + 80056cc: e008 b.n 80056e0 }else { lcddev.wramcmd=R34; - 800337e: 4b13 ldr r3, [pc, #76] ; (80033cc ) - 8003380: 2222 movs r2, #34 ; 0x22 - 8003382: 71da strb r2, [r3, #7] + 80056ce: 4b13 ldr r3, [pc, #76] ; (800571c ) + 80056d0: 2222 movs r2, #34 ; 0x22 + 80056d2: 71da strb r2, [r3, #7] lcddev.setxcmd=R33; - 8003384: 4b11 ldr r3, [pc, #68] ; (80033cc ) - 8003386: 2221 movs r2, #33 ; 0x21 - 8003388: 721a strb r2, [r3, #8] + 80056d4: 4b11 ldr r3, [pc, #68] ; (800571c ) + 80056d6: 2221 movs r2, #33 ; 0x21 + 80056d8: 721a strb r2, [r3, #8] lcddev.setycmd=R32; - 800338a: 4b10 ldr r3, [pc, #64] ; (80033cc ) - 800338c: 2220 movs r2, #32 - 800338e: 725a strb r2, [r3, #9] + 80056da: 4b10 ldr r3, [pc, #64] ; (800571c ) + 80056dc: 2220 movs r2, #32 + 80056de: 725a strb r2, [r3, #9] } if(lcddev.id==0X6804||lcddev.id==0X5310) - 8003390: 4b0e ldr r3, [pc, #56] ; (80033cc ) - 8003392: 889b ldrh r3, [r3, #4] - 8003394: f646 0204 movw r2, #26628 ; 0x6804 - 8003398: 4293 cmp r3, r2 - 800339a: d005 beq.n 80033a8 - 800339c: 4b0b ldr r3, [pc, #44] ; (80033cc ) - 800339e: 889b ldrh r3, [r3, #4] - 80033a0: f245 3210 movw r2, #21264 ; 0x5310 - 80033a4: 4293 cmp r3, r2 - 80033a6: d109 bne.n 80033bc + 80056e0: 4b0e ldr r3, [pc, #56] ; (800571c ) + 80056e2: 889b ldrh r3, [r3, #4] + 80056e4: f646 0204 movw r2, #26628 ; 0x6804 + 80056e8: 4293 cmp r3, r2 + 80056ea: d005 beq.n 80056f8 + 80056ec: 4b0b ldr r3, [pc, #44] ; (800571c ) + 80056ee: 889b ldrh r3, [r3, #4] + 80056f0: f245 3210 movw r2, #21264 ; 0x5310 + 80056f4: 4293 cmp r3, r2 + 80056f6: d109 bne.n 800570c { lcddev.width=480; - 80033a8: 4b08 ldr r3, [pc, #32] ; (80033cc ) - 80033aa: f44f 72f0 mov.w r2, #480 ; 0x1e0 - 80033ae: 801a strh r2, [r3, #0] + 80056f8: 4b08 ldr r3, [pc, #32] ; (800571c ) + 80056fa: f44f 72f0 mov.w r2, #480 ; 0x1e0 + 80056fe: 801a strh r2, [r3, #0] lcddev.height=320; - 80033b0: 4b06 ldr r3, [pc, #24] ; (80033cc ) - 80033b2: f44f 72a0 mov.w r2, #320 ; 0x140 - 80033b6: 805a strh r2, [r3, #2] - 80033b8: e000 b.n 80033bc + 8005700: 4b06 ldr r3, [pc, #24] ; (800571c ) + 8005702: f44f 72a0 mov.w r2, #320 ; 0x140 + 8005706: 805a strh r2, [r3, #2] + 8005708: e000 b.n 800570c if(lcddev.id==0X6804||lcddev.id==0X5310) - 80033ba: bf00 nop + 800570a: bf00 nop } } LCD_Scan_Dir(DFT_SCAN_DIR); //默认扫描方向 - 80033bc: 2000 movs r0, #0 - 80033be: f7ff fdd3 bl 8002f68 + 800570c: 2000 movs r0, #0 + 800570e: f7ff fdd3 bl 80052b8 } - 80033c2: bf00 nop - 80033c4: 3708 adds r7, #8 - 80033c6: 46bd mov sp, r7 - 80033c8: bd80 pop {r7, pc} - 80033ca: bf00 nop - 80033cc: 20000560 .word 0x20000560 + 8005712: bf00 nop + 8005714: 3708 adds r7, #8 + 8005716: 46bd mov sp, r7 + 8005718: bd80 pop {r7, pc} + 800571a: bf00 nop + 800571c: 20000820 .word 0x20000820 -080033d0 : +08005720 : //初始化lcd //该初始化函数可以初始化各种液晶! void LCDx_Init(void) { - 80033d0: b580 push {r7, lr} - 80033d2: af00 add r7, sp, #0 + 8005720: b580 push {r7, lr} + 8005722: af00 add r7, sp, #0 LCD_BL(0); - 80033d4: 2200 movs r2, #0 - 80033d6: 2101 movs r1, #1 - 80033d8: 4876 ldr r0, [pc, #472] ; (80035b4 ) - 80033da: f7fd fccd bl 8000d78 + 8005724: 2200 movs r2, #0 + 8005726: 2101 movs r1, #1 + 8005728: 4876 ldr r0, [pc, #472] ; (8005904 ) + 800572a: f7fb fb5b bl 8000de4 HAL_Delay(50); // delay 50 ms - 80033de: 2032 movs r0, #50 ; 0x32 - 80033e0: f7fd fa2e bl 8000840 + 800572e: 2032 movs r0, #50 ; 0x32 + 8005730: f7fb f8bc bl 80008ac LCD_WriteReg(0x0000,0x0001); - 80033e4: 2101 movs r1, #1 - 80033e6: 2000 movs r0, #0 - 80033e8: f7ff fd94 bl 8002f14 + 8005734: 2101 movs r1, #1 + 8005736: 2000 movs r0, #0 + 8005738: f7ff fd94 bl 8005264 HAL_Delay(50); // delay 50 ms - 80033ec: 2032 movs r0, #50 ; 0x32 - 80033ee: f7fd fa27 bl 8000840 + 800573c: 2032 movs r0, #50 ; 0x32 + 800573e: f7fb f8b5 bl 80008ac lcddev.id = LCD_ReadReg(0x0000); - 80033f2: 2000 movs r0, #0 - 80033f4: f7ff fda4 bl 8002f40 - 80033f8: 4603 mov r3, r0 - 80033fa: 461a mov r2, r3 - 80033fc: 4b6e ldr r3, [pc, #440] ; (80035b8 ) - 80033fe: 809a strh r2, [r3, #4] + 8005742: 2000 movs r0, #0 + 8005744: f7ff fda4 bl 8005290 + 8005748: 4603 mov r3, r0 + 800574a: 461a mov r2, r3 + 800574c: 4b6e ldr r3, [pc, #440] ; (8005908 ) + 800574e: 809a strh r2, [r3, #4] LCD_WriteReg(0x00E5,0x78F0); - 8003400: f647 01f0 movw r1, #30960 ; 0x78f0 - 8003404: 20e5 movs r0, #229 ; 0xe5 - 8003406: f7ff fd85 bl 8002f14 + 8005750: f647 01f0 movw r1, #30960 ; 0x78f0 + 8005754: 20e5 movs r0, #229 ; 0xe5 + 8005756: f7ff fd85 bl 8005264 LCD_WriteReg(0x0001,0x0100); - 800340a: f44f 7180 mov.w r1, #256 ; 0x100 - 800340e: 2001 movs r0, #1 - 8003410: f7ff fd80 bl 8002f14 + 800575a: f44f 7180 mov.w r1, #256 ; 0x100 + 800575e: 2001 movs r0, #1 + 8005760: f7ff fd80 bl 8005264 LCD_WriteReg(0x0002,0x0700); - 8003414: f44f 61e0 mov.w r1, #1792 ; 0x700 - 8003418: 2002 movs r0, #2 - 800341a: f7ff fd7b bl 8002f14 + 8005764: f44f 61e0 mov.w r1, #1792 ; 0x700 + 8005768: 2002 movs r0, #2 + 800576a: f7ff fd7b bl 8005264 LCD_WriteReg(0x0003,0x1030); - 800341e: f241 0130 movw r1, #4144 ; 0x1030 - 8003422: 2003 movs r0, #3 - 8003424: f7ff fd76 bl 8002f14 + 800576e: f241 0130 movw r1, #4144 ; 0x1030 + 8005772: 2003 movs r0, #3 + 8005774: f7ff fd76 bl 8005264 LCD_WriteReg(0x0004,0x0000); - 8003428: 2100 movs r1, #0 - 800342a: 2004 movs r0, #4 - 800342c: f7ff fd72 bl 8002f14 + 8005778: 2100 movs r1, #0 + 800577a: 2004 movs r0, #4 + 800577c: f7ff fd72 bl 8005264 LCD_WriteReg(0x0008,0x0202); - 8003430: f240 2102 movw r1, #514 ; 0x202 - 8003434: 2008 movs r0, #8 - 8003436: f7ff fd6d bl 8002f14 + 8005780: f240 2102 movw r1, #514 ; 0x202 + 8005784: 2008 movs r0, #8 + 8005786: f7ff fd6d bl 8005264 LCD_WriteReg(0x0009,0x0000); - 800343a: 2100 movs r1, #0 - 800343c: 2009 movs r0, #9 - 800343e: f7ff fd69 bl 8002f14 + 800578a: 2100 movs r1, #0 + 800578c: 2009 movs r0, #9 + 800578e: f7ff fd69 bl 8005264 LCD_WriteReg(0x000A,0x0000); - 8003442: 2100 movs r1, #0 - 8003444: 200a movs r0, #10 - 8003446: f7ff fd65 bl 8002f14 + 8005792: 2100 movs r1, #0 + 8005794: 200a movs r0, #10 + 8005796: f7ff fd65 bl 8005264 LCD_WriteReg(0x000C,0x0000); - 800344a: 2100 movs r1, #0 - 800344c: 200c movs r0, #12 - 800344e: f7ff fd61 bl 8002f14 + 800579a: 2100 movs r1, #0 + 800579c: 200c movs r0, #12 + 800579e: f7ff fd61 bl 8005264 LCD_WriteReg(0x000D,0x0000); - 8003452: 2100 movs r1, #0 - 8003454: 200d movs r0, #13 - 8003456: f7ff fd5d bl 8002f14 + 80057a2: 2100 movs r1, #0 + 80057a4: 200d movs r0, #13 + 80057a6: f7ff fd5d bl 8005264 LCD_WriteReg(0x000F,0x0000); - 800345a: 2100 movs r1, #0 - 800345c: 200f movs r0, #15 - 800345e: f7ff fd59 bl 8002f14 + 80057aa: 2100 movs r1, #0 + 80057ac: 200f movs r0, #15 + 80057ae: f7ff fd59 bl 8005264 //power on sequence VGHVGL LCD_WriteReg(0x0010,0x0000); - 8003462: 2100 movs r1, #0 - 8003464: 2010 movs r0, #16 - 8003466: f7ff fd55 bl 8002f14 + 80057b2: 2100 movs r1, #0 + 80057b4: 2010 movs r0, #16 + 80057b6: f7ff fd55 bl 8005264 LCD_WriteReg(0x0011,0x0007); - 800346a: 2107 movs r1, #7 - 800346c: 2011 movs r0, #17 - 800346e: f7ff fd51 bl 8002f14 + 80057ba: 2107 movs r1, #7 + 80057bc: 2011 movs r0, #17 + 80057be: f7ff fd51 bl 8005264 LCD_WriteReg(0x0012,0x0000); - 8003472: 2100 movs r1, #0 - 8003474: 2012 movs r0, #18 - 8003476: f7ff fd4d bl 8002f14 + 80057c2: 2100 movs r1, #0 + 80057c4: 2012 movs r0, #18 + 80057c6: f7ff fd4d bl 8005264 LCD_WriteReg(0x0013,0x0000); - 800347a: 2100 movs r1, #0 - 800347c: 2013 movs r0, #19 - 800347e: f7ff fd49 bl 8002f14 + 80057ca: 2100 movs r1, #0 + 80057cc: 2013 movs r0, #19 + 80057ce: f7ff fd49 bl 8005264 LCD_WriteReg(0x0007,0x0000); - 8003482: 2100 movs r1, #0 - 8003484: 2007 movs r0, #7 - 8003486: f7ff fd45 bl 8002f14 + 80057d2: 2100 movs r1, #0 + 80057d4: 2007 movs r0, #7 + 80057d6: f7ff fd45 bl 8005264 //vgh LCD_WriteReg(0x0010,0x1690); - 800348a: f241 6190 movw r1, #5776 ; 0x1690 - 800348e: 2010 movs r0, #16 - 8003490: f7ff fd40 bl 8002f14 + 80057da: f241 6190 movw r1, #5776 ; 0x1690 + 80057de: 2010 movs r0, #16 + 80057e0: f7ff fd40 bl 8005264 LCD_WriteReg(0x0011,0x0227); - 8003494: f240 2127 movw r1, #551 ; 0x227 - 8003498: 2011 movs r0, #17 - 800349a: f7ff fd3b bl 8002f14 + 80057e4: f240 2127 movw r1, #551 ; 0x227 + 80057e8: 2011 movs r0, #17 + 80057ea: f7ff fd3b bl 8005264 //delayms(100); //vregiout LCD_WriteReg(0x0012,0x009D); //0x001b - 800349e: 219d movs r1, #157 ; 0x9d - 80034a0: 2012 movs r0, #18 - 80034a2: f7ff fd37 bl 8002f14 + 80057ee: 219d movs r1, #157 ; 0x9d + 80057f0: 2012 movs r0, #18 + 80057f2: f7ff fd37 bl 8005264 //delayms(100); //vom amplitude LCD_WriteReg(0x0013,0x1900); - 80034a6: f44f 51c8 mov.w r1, #6400 ; 0x1900 - 80034aa: 2013 movs r0, #19 - 80034ac: f7ff fd32 bl 8002f14 + 80057f6: f44f 51c8 mov.w r1, #6400 ; 0x1900 + 80057fa: 2013 movs r0, #19 + 80057fc: f7ff fd32 bl 8005264 //delayms(100); //vom H LCD_WriteReg(0x0029,0x0025); - 80034b0: 2125 movs r1, #37 ; 0x25 - 80034b2: 2029 movs r0, #41 ; 0x29 - 80034b4: f7ff fd2e bl 8002f14 + 8005800: 2125 movs r1, #37 ; 0x25 + 8005802: 2029 movs r0, #41 ; 0x29 + 8005804: f7ff fd2e bl 8005264 LCD_WriteReg(0x002B,0x000D); - 80034b8: 210d movs r1, #13 - 80034ba: 202b movs r0, #43 ; 0x2b - 80034bc: f7ff fd2a bl 8002f14 + 8005808: 210d movs r1, #13 + 800580a: 202b movs r0, #43 ; 0x2b + 800580c: f7ff fd2a bl 8005264 //gamma LCD_WriteReg(0x0030,0x0007); - 80034c0: 2107 movs r1, #7 - 80034c2: 2030 movs r0, #48 ; 0x30 - 80034c4: f7ff fd26 bl 8002f14 + 8005810: 2107 movs r1, #7 + 8005812: 2030 movs r0, #48 ; 0x30 + 8005814: f7ff fd26 bl 8005264 LCD_WriteReg(0x0031,0x0303); - 80034c8: f240 3103 movw r1, #771 ; 0x303 - 80034cc: 2031 movs r0, #49 ; 0x31 - 80034ce: f7ff fd21 bl 8002f14 + 8005818: f240 3103 movw r1, #771 ; 0x303 + 800581c: 2031 movs r0, #49 ; 0x31 + 800581e: f7ff fd21 bl 8005264 LCD_WriteReg(0x0032,0x0003);// 0006 - 80034d2: 2103 movs r1, #3 - 80034d4: 2032 movs r0, #50 ; 0x32 - 80034d6: f7ff fd1d bl 8002f14 + 8005822: 2103 movs r1, #3 + 8005824: 2032 movs r0, #50 ; 0x32 + 8005826: f7ff fd1d bl 8005264 LCD_WriteReg(0x0035,0x0206); - 80034da: f240 2106 movw r1, #518 ; 0x206 - 80034de: 2035 movs r0, #53 ; 0x35 - 80034e0: f7ff fd18 bl 8002f14 + 800582a: f240 2106 movw r1, #518 ; 0x206 + 800582e: 2035 movs r0, #53 ; 0x35 + 8005830: f7ff fd18 bl 8005264 LCD_WriteReg(0x0036,0x0008); - 80034e4: 2108 movs r1, #8 - 80034e6: 2036 movs r0, #54 ; 0x36 - 80034e8: f7ff fd14 bl 8002f14 + 8005834: 2108 movs r1, #8 + 8005836: 2036 movs r0, #54 ; 0x36 + 8005838: f7ff fd14 bl 8005264 LCD_WriteReg(0x0037,0x0406); - 80034ec: f240 4106 movw r1, #1030 ; 0x406 - 80034f0: 2037 movs r0, #55 ; 0x37 - 80034f2: f7ff fd0f bl 8002f14 + 800583c: f240 4106 movw r1, #1030 ; 0x406 + 8005840: 2037 movs r0, #55 ; 0x37 + 8005842: f7ff fd0f bl 8005264 LCD_WriteReg(0x0038,0x0304);//0200 - 80034f6: f44f 7141 mov.w r1, #772 ; 0x304 - 80034fa: 2038 movs r0, #56 ; 0x38 - 80034fc: f7ff fd0a bl 8002f14 + 8005846: f44f 7141 mov.w r1, #772 ; 0x304 + 800584a: 2038 movs r0, #56 ; 0x38 + 800584c: f7ff fd0a bl 8005264 LCD_WriteReg(0x0039,0x0007); - 8003500: 2107 movs r1, #7 - 8003502: 2039 movs r0, #57 ; 0x39 - 8003504: f7ff fd06 bl 8002f14 + 8005850: 2107 movs r1, #7 + 8005852: 2039 movs r0, #57 ; 0x39 + 8005854: f7ff fd06 bl 8005264 LCD_WriteReg(0x003C,0x0602);// 0504 - 8003508: f240 6102 movw r1, #1538 ; 0x602 - 800350c: 203c movs r0, #60 ; 0x3c - 800350e: f7ff fd01 bl 8002f14 + 8005858: f240 6102 movw r1, #1538 ; 0x602 + 800585c: 203c movs r0, #60 ; 0x3c + 800585e: f7ff fd01 bl 8005264 LCD_WriteReg(0x003D,0x0008); - 8003512: 2108 movs r1, #8 - 8003514: 203d movs r0, #61 ; 0x3d - 8003516: f7ff fcfd bl 8002f14 + 8005862: 2108 movs r1, #8 + 8005864: 203d movs r0, #61 ; 0x3d + 8005866: f7ff fcfd bl 8005264 //ram LCD_WriteReg(0x0050,0x0000); - 800351a: 2100 movs r1, #0 - 800351c: 2050 movs r0, #80 ; 0x50 - 800351e: f7ff fcf9 bl 8002f14 + 800586a: 2100 movs r1, #0 + 800586c: 2050 movs r0, #80 ; 0x50 + 800586e: f7ff fcf9 bl 8005264 LCD_WriteReg(0x0051,0x00EF); - 8003522: 21ef movs r1, #239 ; 0xef - 8003524: 2051 movs r0, #81 ; 0x51 - 8003526: f7ff fcf5 bl 8002f14 + 8005872: 21ef movs r1, #239 ; 0xef + 8005874: 2051 movs r0, #81 ; 0x51 + 8005876: f7ff fcf5 bl 8005264 LCD_WriteReg(0x0052,0x0000); - 800352a: 2100 movs r1, #0 - 800352c: 2052 movs r0, #82 ; 0x52 - 800352e: f7ff fcf1 bl 8002f14 + 800587a: 2100 movs r1, #0 + 800587c: 2052 movs r0, #82 ; 0x52 + 800587e: f7ff fcf1 bl 8005264 LCD_WriteReg(0x0053,0x013F); - 8003532: f240 113f movw r1, #319 ; 0x13f - 8003536: 2053 movs r0, #83 ; 0x53 - 8003538: f7ff fcec bl 8002f14 + 8005882: f240 113f movw r1, #319 ; 0x13f + 8005886: 2053 movs r0, #83 ; 0x53 + 8005888: f7ff fcec bl 8005264 LCD_WriteReg(0x0060,0xA700); - 800353c: f44f 4127 mov.w r1, #42752 ; 0xa700 - 8003540: 2060 movs r0, #96 ; 0x60 - 8003542: f7ff fce7 bl 8002f14 + 800588c: f44f 4127 mov.w r1, #42752 ; 0xa700 + 8005890: 2060 movs r0, #96 ; 0x60 + 8005892: f7ff fce7 bl 8005264 LCD_WriteReg(0x0061,0x0001); - 8003546: 2101 movs r1, #1 - 8003548: 2061 movs r0, #97 ; 0x61 - 800354a: f7ff fce3 bl 8002f14 + 8005896: 2101 movs r1, #1 + 8005898: 2061 movs r0, #97 ; 0x61 + 800589a: f7ff fce3 bl 8005264 LCD_WriteReg(0x006A,0x0000); - 800354e: 2100 movs r1, #0 - 8003550: 206a movs r0, #106 ; 0x6a - 8003552: f7ff fcdf bl 8002f14 + 800589e: 2100 movs r1, #0 + 80058a0: 206a movs r0, #106 ; 0x6a + 80058a2: f7ff fcdf bl 8005264 // LCD_WriteReg(0x0080,0x0000); - 8003556: 2100 movs r1, #0 - 8003558: 2080 movs r0, #128 ; 0x80 - 800355a: f7ff fcdb bl 8002f14 + 80058a6: 2100 movs r1, #0 + 80058a8: 2080 movs r0, #128 ; 0x80 + 80058aa: f7ff fcdb bl 8005264 LCD_WriteReg(0x0081,0x0000); - 800355e: 2100 movs r1, #0 - 8003560: 2081 movs r0, #129 ; 0x81 - 8003562: f7ff fcd7 bl 8002f14 + 80058ae: 2100 movs r1, #0 + 80058b0: 2081 movs r0, #129 ; 0x81 + 80058b2: f7ff fcd7 bl 8005264 LCD_WriteReg(0x0082,0x0000); - 8003566: 2100 movs r1, #0 - 8003568: 2082 movs r0, #130 ; 0x82 - 800356a: f7ff fcd3 bl 8002f14 + 80058b6: 2100 movs r1, #0 + 80058b8: 2082 movs r0, #130 ; 0x82 + 80058ba: f7ff fcd3 bl 8005264 LCD_WriteReg(0x0083,0x0000); - 800356e: 2100 movs r1, #0 - 8003570: 2083 movs r0, #131 ; 0x83 - 8003572: f7ff fccf bl 8002f14 + 80058be: 2100 movs r1, #0 + 80058c0: 2083 movs r0, #131 ; 0x83 + 80058c2: f7ff fccf bl 8005264 LCD_WriteReg(0x0084,0x0000); - 8003576: 2100 movs r1, #0 - 8003578: 2084 movs r0, #132 ; 0x84 - 800357a: f7ff fccb bl 8002f14 + 80058c6: 2100 movs r1, #0 + 80058c8: 2084 movs r0, #132 ; 0x84 + 80058ca: f7ff fccb bl 8005264 LCD_WriteReg(0x0085,0x0000); - 800357e: 2100 movs r1, #0 - 8003580: 2085 movs r0, #133 ; 0x85 - 8003582: f7ff fcc7 bl 8002f14 + 80058ce: 2100 movs r1, #0 + 80058d0: 2085 movs r0, #133 ; 0x85 + 80058d2: f7ff fcc7 bl 8005264 // LCD_WriteReg(0x0090,0x0010); - 8003586: 2110 movs r1, #16 - 8003588: 2090 movs r0, #144 ; 0x90 - 800358a: f7ff fcc3 bl 8002f14 + 80058d6: 2110 movs r1, #16 + 80058d8: 2090 movs r0, #144 ; 0x90 + 80058da: f7ff fcc3 bl 8005264 LCD_WriteReg(0x0092,0x0600); - 800358e: f44f 61c0 mov.w r1, #1536 ; 0x600 - 8003592: 2092 movs r0, #146 ; 0x92 - 8003594: f7ff fcbe bl 8002f14 + 80058de: f44f 61c0 mov.w r1, #1536 ; 0x600 + 80058e2: 2092 movs r0, #146 ; 0x92 + 80058e4: f7ff fcbe bl 8005264 LCD_WriteReg(0x0007,0x0133); - 8003598: f240 1133 movw r1, #307 ; 0x133 - 800359c: 2007 movs r0, #7 - 800359e: f7ff fcb9 bl 8002f14 + 80058e8: f240 1133 movw r1, #307 ; 0x133 + 80058ec: 2007 movs r0, #7 + 80058ee: f7ff fcb9 bl 8005264 LCD_WriteReg(0x00,0x0022);// - 80035a2: 2122 movs r1, #34 ; 0x22 - 80035a4: 2000 movs r0, #0 - 80035a6: f7ff fcb5 bl 8002f14 + 80058f2: 2122 movs r1, #34 ; 0x22 + 80058f4: 2000 movs r0, #0 + 80058f6: f7ff fcb5 bl 8005264 LCD_Display_Dir(1); //默认为h屏 - 80035aa: 2001 movs r0, #1 - 80035ac: f7ff fe4a bl 8003244 + 80058fa: 2001 movs r0, #1 + 80058fc: f7ff fe4a bl 8005594 } - 80035b0: bf00 nop - 80035b2: bd80 pop {r7, pc} - 80035b4: 40010c00 .word 0x40010c00 - 80035b8: 20000560 .word 0x20000560 + 8005900: bf00 nop + 8005902: bd80 pop {r7, pc} + 8005904: 40010c00 .word 0x40010c00 + 8005908: 20000820 .word 0x20000820 -080035bc : +0800590c : //***********************************************************打点 读点 什么的 //设置光标位置 //Xpos:横坐标 //Ypos:纵坐标 void LCD_SetCursor(uint16_t Xpos, uint16_t Ypos) { - 80035bc: b580 push {r7, lr} - 80035be: b082 sub sp, #8 - 80035c0: af00 add r7, sp, #0 - 80035c2: 4603 mov r3, r0 - 80035c4: 460a mov r2, r1 - 80035c6: 80fb strh r3, [r7, #6] - 80035c8: 4613 mov r3, r2 - 80035ca: 80bb strh r3, [r7, #4] + 800590c: b580 push {r7, lr} + 800590e: b082 sub sp, #8 + 8005910: af00 add r7, sp, #0 + 8005912: 4603 mov r3, r0 + 8005914: 460a mov r2, r1 + 8005916: 80fb strh r3, [r7, #6] + 8005918: 4613 mov r3, r2 + 800591a: 80bb strh r3, [r7, #4] if(lcddev.id==0X9341||lcddev.id==0X5310) - 80035cc: 4b42 ldr r3, [pc, #264] ; (80036d8 ) - 80035ce: 889b ldrh r3, [r3, #4] - 80035d0: f249 3241 movw r2, #37697 ; 0x9341 - 80035d4: 4293 cmp r3, r2 - 80035d6: d005 beq.n 80035e4 - 80035d8: 4b3f ldr r3, [pc, #252] ; (80036d8 ) - 80035da: 889b ldrh r3, [r3, #4] - 80035dc: f245 3210 movw r2, #21264 ; 0x5310 - 80035e0: 4293 cmp r3, r2 - 80035e2: d124 bne.n 800362e + 800591c: 4b42 ldr r3, [pc, #264] ; (8005a28 ) + 800591e: 889b ldrh r3, [r3, #4] + 8005920: f249 3241 movw r2, #37697 ; 0x9341 + 8005924: 4293 cmp r3, r2 + 8005926: d005 beq.n 8005934 + 8005928: 4b3f ldr r3, [pc, #252] ; (8005a28 ) + 800592a: 889b ldrh r3, [r3, #4] + 800592c: f245 3210 movw r2, #21264 ; 0x5310 + 8005930: 4293 cmp r3, r2 + 8005932: d124 bne.n 800597e { LCD_WR_REG(lcddev.setxcmd); - 80035e4: 4b3c ldr r3, [pc, #240] ; (80036d8 ) - 80035e6: 7a1b ldrb r3, [r3, #8] - 80035e8: b29b uxth r3, r3 - 80035ea: 4618 mov r0, r3 - 80035ec: f7ff fc74 bl 8002ed8 + 8005934: 4b3c ldr r3, [pc, #240] ; (8005a28 ) + 8005936: 7a1b ldrb r3, [r3, #8] + 8005938: b29b uxth r3, r3 + 800593a: 4618 mov r0, r3 + 800593c: f7ff fc74 bl 8005228 LCD_WR_DATA(Xpos>>8); - 80035f0: 88fb ldrh r3, [r7, #6] - 80035f2: 0a1b lsrs r3, r3, #8 - 80035f4: b29b uxth r3, r3 - 80035f6: 4618 mov r0, r3 - 80035f8: f7ff fc7c bl 8002ef4 + 8005940: 88fb ldrh r3, [r7, #6] + 8005942: 0a1b lsrs r3, r3, #8 + 8005944: b29b uxth r3, r3 + 8005946: 4618 mov r0, r3 + 8005948: f7ff fc7c bl 8005244 LCD_WR_DATA(Xpos&0XFF); - 80035fc: 88fb ldrh r3, [r7, #6] - 80035fe: b2db uxtb r3, r3 - 8003600: b29b uxth r3, r3 - 8003602: 4618 mov r0, r3 - 8003604: f7ff fc76 bl 8002ef4 + 800594c: 88fb ldrh r3, [r7, #6] + 800594e: b2db uxtb r3, r3 + 8005950: b29b uxth r3, r3 + 8005952: 4618 mov r0, r3 + 8005954: f7ff fc76 bl 8005244 LCD_WR_REG(lcddev.setycmd); - 8003608: 4b33 ldr r3, [pc, #204] ; (80036d8 ) - 800360a: 7a5b ldrb r3, [r3, #9] - 800360c: b29b uxth r3, r3 - 800360e: 4618 mov r0, r3 - 8003610: f7ff fc62 bl 8002ed8 + 8005958: 4b33 ldr r3, [pc, #204] ; (8005a28 ) + 800595a: 7a5b ldrb r3, [r3, #9] + 800595c: b29b uxth r3, r3 + 800595e: 4618 mov r0, r3 + 8005960: f7ff fc62 bl 8005228 LCD_WR_DATA(Ypos>>8); - 8003614: 88bb ldrh r3, [r7, #4] - 8003616: 0a1b lsrs r3, r3, #8 - 8003618: b29b uxth r3, r3 - 800361a: 4618 mov r0, r3 - 800361c: f7ff fc6a bl 8002ef4 + 8005964: 88bb ldrh r3, [r7, #4] + 8005966: 0a1b lsrs r3, r3, #8 + 8005968: b29b uxth r3, r3 + 800596a: 4618 mov r0, r3 + 800596c: f7ff fc6a bl 8005244 LCD_WR_DATA(Ypos&0XFF); - 8003620: 88bb ldrh r3, [r7, #4] - 8003622: b2db uxtb r3, r3 - 8003624: b29b uxth r3, r3 - 8003626: 4618 mov r0, r3 - 8003628: f7ff fc64 bl 8002ef4 + 8005970: 88bb ldrh r3, [r7, #4] + 8005972: b2db uxtb r3, r3 + 8005974: b29b uxth r3, r3 + 8005976: 4618 mov r0, r3 + 8005978: f7ff fc64 bl 8005244 { if(lcddev.dir==1)Xpos=lcddev.width-1-Xpos;//横屏其实就是调转x,y坐标 LCD_WriteReg(lcddev.setxcmd, Xpos); LCD_WriteReg(lcddev.setycmd, Ypos); } } - 800362c: e050 b.n 80036d0 + 800597c: e050 b.n 8005a20 }else if(lcddev.id==0X6804) - 800362e: 4b2a ldr r3, [pc, #168] ; (80036d8 ) - 8003630: 889b ldrh r3, [r3, #4] - 8003632: f646 0204 movw r2, #26628 ; 0x6804 - 8003636: 4293 cmp r3, r2 - 8003638: d12f bne.n 800369a + 800597e: 4b2a ldr r3, [pc, #168] ; (8005a28 ) + 8005980: 889b ldrh r3, [r3, #4] + 8005982: f646 0204 movw r2, #26628 ; 0x6804 + 8005986: 4293 cmp r3, r2 + 8005988: d12f bne.n 80059ea if(lcddev.dir==1)Xpos=lcddev.width-1-Xpos;//横屏时处理 - 800363a: 4b27 ldr r3, [pc, #156] ; (80036d8 ) - 800363c: 799b ldrb r3, [r3, #6] - 800363e: 2b01 cmp r3, #1 - 8003640: d106 bne.n 8003650 - 8003642: 4b25 ldr r3, [pc, #148] ; (80036d8 ) - 8003644: 881a ldrh r2, [r3, #0] - 8003646: 88fb ldrh r3, [r7, #6] - 8003648: 1ad3 subs r3, r2, r3 - 800364a: b29b uxth r3, r3 - 800364c: 3b01 subs r3, #1 - 800364e: 80fb strh r3, [r7, #6] + 800598a: 4b27 ldr r3, [pc, #156] ; (8005a28 ) + 800598c: 799b ldrb r3, [r3, #6] + 800598e: 2b01 cmp r3, #1 + 8005990: d106 bne.n 80059a0 + 8005992: 4b25 ldr r3, [pc, #148] ; (8005a28 ) + 8005994: 881a ldrh r2, [r3, #0] + 8005996: 88fb ldrh r3, [r7, #6] + 8005998: 1ad3 subs r3, r2, r3 + 800599a: b29b uxth r3, r3 + 800599c: 3b01 subs r3, #1 + 800599e: 80fb strh r3, [r7, #6] LCD_WR_REG(lcddev.setxcmd); - 8003650: 4b21 ldr r3, [pc, #132] ; (80036d8 ) - 8003652: 7a1b ldrb r3, [r3, #8] - 8003654: b29b uxth r3, r3 - 8003656: 4618 mov r0, r3 - 8003658: f7ff fc3e bl 8002ed8 + 80059a0: 4b21 ldr r3, [pc, #132] ; (8005a28 ) + 80059a2: 7a1b ldrb r3, [r3, #8] + 80059a4: b29b uxth r3, r3 + 80059a6: 4618 mov r0, r3 + 80059a8: f7ff fc3e bl 8005228 LCD_WR_DATA(Xpos>>8); - 800365c: 88fb ldrh r3, [r7, #6] - 800365e: 0a1b lsrs r3, r3, #8 - 8003660: b29b uxth r3, r3 - 8003662: 4618 mov r0, r3 - 8003664: f7ff fc46 bl 8002ef4 + 80059ac: 88fb ldrh r3, [r7, #6] + 80059ae: 0a1b lsrs r3, r3, #8 + 80059b0: b29b uxth r3, r3 + 80059b2: 4618 mov r0, r3 + 80059b4: f7ff fc46 bl 8005244 LCD_WR_DATA(Xpos&0XFF); - 8003668: 88fb ldrh r3, [r7, #6] - 800366a: b2db uxtb r3, r3 - 800366c: b29b uxth r3, r3 - 800366e: 4618 mov r0, r3 - 8003670: f7ff fc40 bl 8002ef4 + 80059b8: 88fb ldrh r3, [r7, #6] + 80059ba: b2db uxtb r3, r3 + 80059bc: b29b uxth r3, r3 + 80059be: 4618 mov r0, r3 + 80059c0: f7ff fc40 bl 8005244 LCD_WR_REG(lcddev.setycmd); - 8003674: 4b18 ldr r3, [pc, #96] ; (80036d8 ) - 8003676: 7a5b ldrb r3, [r3, #9] - 8003678: b29b uxth r3, r3 - 800367a: 4618 mov r0, r3 - 800367c: f7ff fc2c bl 8002ed8 + 80059c4: 4b18 ldr r3, [pc, #96] ; (8005a28 ) + 80059c6: 7a5b ldrb r3, [r3, #9] + 80059c8: b29b uxth r3, r3 + 80059ca: 4618 mov r0, r3 + 80059cc: f7ff fc2c bl 8005228 LCD_WR_DATA(Ypos>>8); - 8003680: 88bb ldrh r3, [r7, #4] - 8003682: 0a1b lsrs r3, r3, #8 - 8003684: b29b uxth r3, r3 - 8003686: 4618 mov r0, r3 - 8003688: f7ff fc34 bl 8002ef4 + 80059d0: 88bb ldrh r3, [r7, #4] + 80059d2: 0a1b lsrs r3, r3, #8 + 80059d4: b29b uxth r3, r3 + 80059d6: 4618 mov r0, r3 + 80059d8: f7ff fc34 bl 8005244 LCD_WR_DATA(Ypos&0XFF); - 800368c: 88bb ldrh r3, [r7, #4] - 800368e: b2db uxtb r3, r3 - 8003690: b29b uxth r3, r3 - 8003692: 4618 mov r0, r3 - 8003694: f7ff fc2e bl 8002ef4 + 80059dc: 88bb ldrh r3, [r7, #4] + 80059de: b2db uxtb r3, r3 + 80059e0: b29b uxth r3, r3 + 80059e2: 4618 mov r0, r3 + 80059e4: f7ff fc2e bl 8005244 } - 8003698: e01a b.n 80036d0 + 80059e8: e01a b.n 8005a20 if(lcddev.dir==1)Xpos=lcddev.width-1-Xpos;//横屏其实就是调转x,y坐标 - 800369a: 4b0f ldr r3, [pc, #60] ; (80036d8 ) - 800369c: 799b ldrb r3, [r3, #6] - 800369e: 2b01 cmp r3, #1 - 80036a0: d106 bne.n 80036b0 - 80036a2: 4b0d ldr r3, [pc, #52] ; (80036d8 ) - 80036a4: 881a ldrh r2, [r3, #0] - 80036a6: 88fb ldrh r3, [r7, #6] - 80036a8: 1ad3 subs r3, r2, r3 - 80036aa: b29b uxth r3, r3 - 80036ac: 3b01 subs r3, #1 - 80036ae: 80fb strh r3, [r7, #6] + 80059ea: 4b0f ldr r3, [pc, #60] ; (8005a28 ) + 80059ec: 799b ldrb r3, [r3, #6] + 80059ee: 2b01 cmp r3, #1 + 80059f0: d106 bne.n 8005a00 + 80059f2: 4b0d ldr r3, [pc, #52] ; (8005a28 ) + 80059f4: 881a ldrh r2, [r3, #0] + 80059f6: 88fb ldrh r3, [r7, #6] + 80059f8: 1ad3 subs r3, r2, r3 + 80059fa: b29b uxth r3, r3 + 80059fc: 3b01 subs r3, #1 + 80059fe: 80fb strh r3, [r7, #6] LCD_WriteReg(lcddev.setxcmd, Xpos); - 80036b0: 4b09 ldr r3, [pc, #36] ; (80036d8 ) - 80036b2: 7a1b ldrb r3, [r3, #8] - 80036b4: b29b uxth r3, r3 - 80036b6: 88fa ldrh r2, [r7, #6] - 80036b8: 4611 mov r1, r2 - 80036ba: 4618 mov r0, r3 - 80036bc: f7ff fc2a bl 8002f14 + 8005a00: 4b09 ldr r3, [pc, #36] ; (8005a28 ) + 8005a02: 7a1b ldrb r3, [r3, #8] + 8005a04: b29b uxth r3, r3 + 8005a06: 88fa ldrh r2, [r7, #6] + 8005a08: 4611 mov r1, r2 + 8005a0a: 4618 mov r0, r3 + 8005a0c: f7ff fc2a bl 8005264 LCD_WriteReg(lcddev.setycmd, Ypos); - 80036c0: 4b05 ldr r3, [pc, #20] ; (80036d8 ) - 80036c2: 7a5b ldrb r3, [r3, #9] - 80036c4: b29b uxth r3, r3 - 80036c6: 88ba ldrh r2, [r7, #4] - 80036c8: 4611 mov r1, r2 - 80036ca: 4618 mov r0, r3 - 80036cc: f7ff fc22 bl 8002f14 + 8005a10: 4b05 ldr r3, [pc, #20] ; (8005a28 ) + 8005a12: 7a5b ldrb r3, [r3, #9] + 8005a14: b29b uxth r3, r3 + 8005a16: 88ba ldrh r2, [r7, #4] + 8005a18: 4611 mov r1, r2 + 8005a1a: 4618 mov r0, r3 + 8005a1c: f7ff fc22 bl 8005264 } - 80036d0: bf00 nop - 80036d2: 3708 adds r7, #8 - 80036d4: 46bd mov sp, r7 - 80036d6: bd80 pop {r7, pc} - 80036d8: 20000560 .word 0x20000560 + 8005a20: bf00 nop + 8005a22: 3708 adds r7, #8 + 8005a24: 46bd mov sp, r7 + 8005a26: bd80 pop {r7, pc} + 8005a28: 20000820 .word 0x20000820 -080036dc : +08005a2c : } //画点 //x,y:坐标 //POINT_COLOR:此点的颜色 void LCD_set_dot(uint16_t x,uint16_t y,uint16_t color) { - 80036dc: b580 push {r7, lr} - 80036de: b082 sub sp, #8 - 80036e0: af00 add r7, sp, #0 - 80036e2: 4603 mov r3, r0 - 80036e4: 80fb strh r3, [r7, #6] - 80036e6: 460b mov r3, r1 - 80036e8: 80bb strh r3, [r7, #4] - 80036ea: 4613 mov r3, r2 - 80036ec: 807b strh r3, [r7, #2] + 8005a2c: b580 push {r7, lr} + 8005a2e: b082 sub sp, #8 + 8005a30: af00 add r7, sp, #0 + 8005a32: 4603 mov r3, r0 + 8005a34: 80fb strh r3, [r7, #6] + 8005a36: 460b mov r3, r1 + 8005a38: 80bb strh r3, [r7, #4] + 8005a3a: 4613 mov r3, r2 + 8005a3c: 807b strh r3, [r7, #2] LCD_SetCursor(x,y); //设置光标位置 - 80036ee: 88ba ldrh r2, [r7, #4] - 80036f0: 88fb ldrh r3, [r7, #6] - 80036f2: 4611 mov r1, r2 - 80036f4: 4618 mov r0, r3 - 80036f6: f7ff ff61 bl 80035bc + 8005a3e: 88ba ldrh r2, [r7, #4] + 8005a40: 88fb ldrh r3, [r7, #6] + 8005a42: 4611 mov r1, r2 + 8005a44: 4618 mov r0, r3 + 8005a46: f7ff ff61 bl 800590c LCD_REG_ADDRESS=lcddev.wramcmd; //开始写入GRAM - 80036fa: 4b06 ldr r3, [pc, #24] ; (8003714 ) - 80036fc: 79da ldrb r2, [r3, #7] - 80036fe: f04f 43d8 mov.w r3, #1811939328 ; 0x6c000000 - 8003702: b292 uxth r2, r2 - 8003704: 801a strh r2, [r3, #0] + 8005a4a: 4b06 ldr r3, [pc, #24] ; (8005a64 ) + 8005a4c: 79da ldrb r2, [r3, #7] + 8005a4e: f04f 43d8 mov.w r3, #1811939328 ; 0x6c000000 + 8005a52: b292 uxth r2, r2 + 8005a54: 801a strh r2, [r3, #0] LCD_DATA_ADDRESS=color; - 8003706: 4a04 ldr r2, [pc, #16] ; (8003718 ) - 8003708: 887b ldrh r3, [r7, #2] - 800370a: 8013 strh r3, [r2, #0] + 8005a56: 4a04 ldr r2, [pc, #16] ; (8005a68 ) + 8005a58: 887b ldrh r3, [r7, #2] + 8005a5a: 8013 strh r3, [r2, #0] } - 800370c: bf00 nop - 800370e: 3708 adds r7, #8 - 8003710: 46bd mov sp, r7 - 8003712: bd80 pop {r7, pc} - 8003714: 20000560 .word 0x20000560 - 8003718: 6c000800 .word 0x6c000800 + 8005a5c: bf00 nop + 8005a5e: 3708 adds r7, #8 + 8005a60: 46bd mov sp, r7 + 8005a62: bd80 pop {r7, pc} + 8005a64: 20000820 .word 0x20000820 + 8005a68: 6c000800 .word 0x6c000800 -0800371c : +08005a6c : //清屏函数 //color:要清屏的填充色 void LCD_Clear(uint16_t color) { - 800371c: b580 push {r7, lr} - 800371e: b084 sub sp, #16 - 8003720: af00 add r7, sp, #0 - 8003722: 4603 mov r3, r0 - 8003724: 80fb strh r3, [r7, #6] + 8005a6c: b580 push {r7, lr} + 8005a6e: b084 sub sp, #16 + 8005a70: af00 add r7, sp, #0 + 8005a72: 4603 mov r3, r0 + 8005a74: 80fb strh r3, [r7, #6] uint32_t index=0; - 8003726: 2300 movs r3, #0 - 8003728: 60fb str r3, [r7, #12] + 8005a76: 2300 movs r3, #0 + 8005a78: 60fb str r3, [r7, #12] uint32_t totalpoint=lcddev.width; - 800372a: 4b23 ldr r3, [pc, #140] ; (80037b8 ) - 800372c: 881b ldrh r3, [r3, #0] - 800372e: 60bb str r3, [r7, #8] + 8005a7a: 4b23 ldr r3, [pc, #140] ; (8005b08 ) + 8005a7c: 881b ldrh r3, [r3, #0] + 8005a7e: 60bb str r3, [r7, #8] totalpoint*=lcddev.height; //得到总点数 - 8003730: 4b21 ldr r3, [pc, #132] ; (80037b8 ) - 8003732: 885b ldrh r3, [r3, #2] - 8003734: 461a mov r2, r3 - 8003736: 68bb ldr r3, [r7, #8] - 8003738: fb02 f303 mul.w r3, r2, r3 - 800373c: 60bb str r3, [r7, #8] + 8005a80: 4b21 ldr r3, [pc, #132] ; (8005b08 ) + 8005a82: 885b ldrh r3, [r3, #2] + 8005a84: 461a mov r2, r3 + 8005a86: 68bb ldr r3, [r7, #8] + 8005a88: fb02 f303 mul.w r3, r2, r3 + 8005a8c: 60bb str r3, [r7, #8] if((lcddev.id==0X6804)&&(lcddev.dir==1))//6804横屏的时候特殊处理 - 800373e: 4b1e ldr r3, [pc, #120] ; (80037b8 ) - 8003740: 889b ldrh r3, [r3, #4] - 8003742: f646 0204 movw r2, #26628 ; 0x6804 - 8003746: 4293 cmp r3, r2 - 8003748: d11a bne.n 8003780 - 800374a: 4b1b ldr r3, [pc, #108] ; (80037b8 ) - 800374c: 799b ldrb r3, [r3, #6] - 800374e: 2b01 cmp r3, #1 - 8003750: d116 bne.n 8003780 + 8005a8e: 4b1e ldr r3, [pc, #120] ; (8005b08 ) + 8005a90: 889b ldrh r3, [r3, #4] + 8005a92: f646 0204 movw r2, #26628 ; 0x6804 + 8005a96: 4293 cmp r3, r2 + 8005a98: d11a bne.n 8005ad0 + 8005a9a: 4b1b ldr r3, [pc, #108] ; (8005b08 ) + 8005a9c: 799b ldrb r3, [r3, #6] + 8005a9e: 2b01 cmp r3, #1 + 8005aa0: d116 bne.n 8005ad0 { lcddev.dir=0; - 8003752: 4b19 ldr r3, [pc, #100] ; (80037b8 ) - 8003754: 2200 movs r2, #0 - 8003756: 719a strb r2, [r3, #6] + 8005aa2: 4b19 ldr r3, [pc, #100] ; (8005b08 ) + 8005aa4: 2200 movs r2, #0 + 8005aa6: 719a strb r2, [r3, #6] lcddev.setxcmd=0X2A; - 8003758: 4b17 ldr r3, [pc, #92] ; (80037b8 ) - 800375a: 222a movs r2, #42 ; 0x2a - 800375c: 721a strb r2, [r3, #8] + 8005aa8: 4b17 ldr r3, [pc, #92] ; (8005b08 ) + 8005aaa: 222a movs r2, #42 ; 0x2a + 8005aac: 721a strb r2, [r3, #8] lcddev.setycmd=0X2B; - 800375e: 4b16 ldr r3, [pc, #88] ; (80037b8 ) - 8003760: 222b movs r2, #43 ; 0x2b - 8003762: 725a strb r2, [r3, #9] + 8005aae: 4b16 ldr r3, [pc, #88] ; (8005b08 ) + 8005ab0: 222b movs r2, #43 ; 0x2b + 8005ab2: 725a strb r2, [r3, #9] LCD_SetCursor(0x00,0x0000); //设置光标位置 - 8003764: 2100 movs r1, #0 - 8003766: 2000 movs r0, #0 - 8003768: f7ff ff28 bl 80035bc + 8005ab4: 2100 movs r1, #0 + 8005ab6: 2000 movs r0, #0 + 8005ab8: f7ff ff28 bl 800590c lcddev.dir=1; - 800376c: 4b12 ldr r3, [pc, #72] ; (80037b8 ) - 800376e: 2201 movs r2, #1 - 8003770: 719a strb r2, [r3, #6] + 8005abc: 4b12 ldr r3, [pc, #72] ; (8005b08 ) + 8005abe: 2201 movs r2, #1 + 8005ac0: 719a strb r2, [r3, #6] lcddev.setxcmd=0X2B; - 8003772: 4b11 ldr r3, [pc, #68] ; (80037b8 ) - 8003774: 222b movs r2, #43 ; 0x2b - 8003776: 721a strb r2, [r3, #8] + 8005ac2: 4b11 ldr r3, [pc, #68] ; (8005b08 ) + 8005ac4: 222b movs r2, #43 ; 0x2b + 8005ac6: 721a strb r2, [r3, #8] lcddev.setycmd=0X2A; - 8003778: 4b0f ldr r3, [pc, #60] ; (80037b8 ) - 800377a: 222a movs r2, #42 ; 0x2a - 800377c: 725a strb r2, [r3, #9] - 800377e: e003 b.n 8003788 + 8005ac8: 4b0f ldr r3, [pc, #60] ; (8005b08 ) + 8005aca: 222a movs r2, #42 ; 0x2a + 8005acc: 725a strb r2, [r3, #9] + 8005ace: e003 b.n 8005ad8 }else LCD_SetCursor(0x00,0x0000); //设置光标位置 - 8003780: 2100 movs r1, #0 - 8003782: 2000 movs r0, #0 - 8003784: f7ff ff1a bl 80035bc + 8005ad0: 2100 movs r1, #0 + 8005ad2: 2000 movs r0, #0 + 8005ad4: f7ff ff1a bl 800590c LCD_REG_ADDRESS=lcddev.wramcmd; //开始写入GRAM - 8003788: 4b0b ldr r3, [pc, #44] ; (80037b8 ) - 800378a: 79da ldrb r2, [r3, #7] - 800378c: f04f 43d8 mov.w r3, #1811939328 ; 0x6c000000 - 8003790: b292 uxth r2, r2 - 8003792: 801a strh r2, [r3, #0] + 8005ad8: 4b0b ldr r3, [pc, #44] ; (8005b08 ) + 8005ada: 79da ldrb r2, [r3, #7] + 8005adc: f04f 43d8 mov.w r3, #1811939328 ; 0x6c000000 + 8005ae0: b292 uxth r2, r2 + 8005ae2: 801a strh r2, [r3, #0] for(index=0;index + 8005ae4: 2300 movs r3, #0 + 8005ae6: 60fb str r3, [r7, #12] + 8005ae8: e005 b.n 8005af6 { LCD_DATA_ADDRESS=color; - 800379a: 4a08 ldr r2, [pc, #32] ; (80037bc ) - 800379c: 88fb ldrh r3, [r7, #6] - 800379e: 8013 strh r3, [r2, #0] + 8005aea: 4a08 ldr r2, [pc, #32] ; (8005b0c ) + 8005aec: 88fb ldrh r3, [r7, #6] + 8005aee: 8013 strh r3, [r2, #0] for(index=0;index + 8005af0: 68fb ldr r3, [r7, #12] + 8005af2: 3301 adds r3, #1 + 8005af4: 60fb str r3, [r7, #12] + 8005af6: 68fa ldr r2, [r7, #12] + 8005af8: 68bb ldr r3, [r7, #8] + 8005afa: 429a cmp r2, r3 + 8005afc: d3f5 bcc.n 8005aea } } - 80037ae: bf00 nop - 80037b0: bf00 nop - 80037b2: 3710 adds r7, #16 - 80037b4: 46bd mov sp, r7 - 80037b6: bd80 pop {r7, pc} - 80037b8: 20000560 .word 0x20000560 - 80037bc: 6c000800 .word 0x6c000800 + 8005afe: bf00 nop + 8005b00: bf00 nop + 8005b02: 3710 adds r7, #16 + 8005b04: 46bd mov sp, r7 + 8005b06: bd80 pop {r7, pc} + 8005b08: 20000820 .word 0x20000820 + 8005b0c: 6c000800 .word 0x6c000800 -080037c0 : +08005b10 : //初始化字体 //返回值:0,字库完好. // 其他,字库丢失 uint8_t font_init(void) { - 80037c0: b580 push {r7, lr} - 80037c2: b082 sub sp, #8 - 80037c4: af00 add r7, sp, #0 + 8005b10: b580 push {r7, lr} + 8005b12: b082 sub sp, #8 + 8005b14: af00 add r7, sp, #0 uint8_t t=0; - 80037c6: 2300 movs r3, #0 - 80037c8: 71fb strb r3, [r7, #7] + 8005b16: 2300 movs r3, #0 + 8005b18: 71fb strb r3, [r7, #7] while(t<10)//连续读取10次,都是错误,说明确实是有问题,得更新字库了 - 80037ca: e013 b.n 80037f4 + 8005b1a: e014 b.n 8005b46 { t++; - 80037cc: 79fb ldrb r3, [r7, #7] - 80037ce: 3301 adds r3, #1 - 80037d0: 71fb strb r3, [r7, #7] + 8005b1c: 79fb ldrb r3, [r7, #7] + 8005b1e: 3301 adds r3, #1 + 8005b20: 71fb strb r3, [r7, #7] W25QXX_Read((uint8_t*)&ftinfo,FONTINFOADDR,sizeof(ftinfo));//读出ftinfo结构体数据 - 80037d2: 2224 movs r2, #36 ; 0x24 - 80037d4: f44f 0180 mov.w r1, #4194304 ; 0x400000 - 80037d8: 480d ldr r0, [pc, #52] ; (8003810 ) - 80037da: f7fe fe71 bl 80024c0 + 8005b22: 2224 movs r2, #36 ; 0x24 + 8005b24: f44f 0180 mov.w r1, #4194304 ; 0x400000 + 8005b28: 480d ldr r0, [pc, #52] ; (8005b60 ) + 8005b2a: f7fe fe71 bl 8004810 if(ftinfo.fontok==0XAA) - 80037de: 4b0c ldr r3, [pc, #48] ; (8003810 ) - 80037e0: 781b ldrb r3, [r3, #0] - 80037e2: 2baa cmp r3, #170 ; 0xaa - 80037e4: d106 bne.n 80037f4 + 8005b2e: 4b0c ldr r3, [pc, #48] ; (8005b60 ) + 8005b30: 781b ldrb r3, [r3, #0] + 8005b32: 2baa cmp r3, #170 ; 0xaa + 8005b34: d107 bne.n 8005b46 { - ftinfo.f12addr+=1; - 80037e6: 4b0a ldr r3, [pc, #40] ; (8003810 ) - 80037e8: 68db ldr r3, [r3, #12] - 80037ea: 3301 adds r3, #1 - 80037ec: 4a08 ldr r2, [pc, #32] ; (8003810 ) - 80037ee: 60d3 str r3, [r2, #12] + ftinfo.f12addr=0x0042a929; + 8005b36: 4b0a ldr r3, [pc, #40] ; (8005b60 ) + 8005b38: 4a0a ldr r2, [pc, #40] ; (8005b64 ) + 8005b3a: 60da str r2, [r3, #12] + ftinfo.f16addr=0x004b6d89; + 8005b3c: 4b08 ldr r3, [pc, #32] ; (8005b60 ) + 8005b3e: 4a0a ldr r2, [pc, #40] ; (8005b68 ) + 8005b40: 615a str r2, [r3, #20] return 0; - 80037f0: 2300 movs r3, #0 - 80037f2: e008 b.n 8003806 + 8005b42: 2300 movs r3, #0 + 8005b44: e008 b.n 8005b58 while(t<10)//连续读取10次,都是错误,说明确实是有问题,得更新字库了 - 80037f4: 79fb ldrb r3, [r7, #7] - 80037f6: 2b09 cmp r3, #9 - 80037f8: d9e8 bls.n 80037cc + 8005b46: 79fb ldrb r3, [r7, #7] + 8005b48: 2b09 cmp r3, #9 + 8005b4a: d9e7 bls.n 8005b1c } } if(ftinfo.fontok!=0XAA)return 1; - 80037fa: 4b05 ldr r3, [pc, #20] ; (8003810 ) - 80037fc: 781b ldrb r3, [r3, #0] - 80037fe: 2baa cmp r3, #170 ; 0xaa - 8003800: d001 beq.n 8003806 - 8003802: 2301 movs r3, #1 - 8003804: e7ff b.n 8003806 + 8005b4c: 4b04 ldr r3, [pc, #16] ; (8005b60 ) + 8005b4e: 781b ldrb r3, [r3, #0] + 8005b50: 2baa cmp r3, #170 ; 0xaa + 8005b52: d001 beq.n 8005b58 + 8005b54: 2301 movs r3, #1 + 8005b56: e7ff b.n 8005b58 } - 8003806: 4618 mov r0, r3 - 8003808: 3708 adds r7, #8 - 800380a: 46bd mov sp, r7 - 800380c: bd80 pop {r7, pc} - 800380e: bf00 nop - 8003810: 2000056c .word 0x2000056c + 8005b58: 4618 mov r0, r3 + 8005b5a: 3708 adds r7, #8 + 8005b5c: 46bd mov sp, r7 + 8005b5e: bd80 pop {r7, pc} + 8005b60: 2000082c .word 0x2000082c + 8005b64: 0042a929 .word 0x0042a929 + 8005b68: 004b6d89 .word 0x004b6d89 -08003814 : +08005b6c : //从字库中查找出字模 //code 字符串的开始地址,GBK码 //mat 数据存放地址 (size/8+((size%8)?1:0))*(size) bytes大小 //size:字体大小 void Get_HzMat(unsigned char *code,unsigned char *mat,uint8_t size) { - 8003814: b580 push {r7, lr} - 8003816: b086 sub sp, #24 - 8003818: af00 add r7, sp, #0 - 800381a: 60f8 str r0, [r7, #12] - 800381c: 60b9 str r1, [r7, #8] - 800381e: 4613 mov r3, r2 - 8003820: 71fb strb r3, [r7, #7] + 8005b6c: b580 push {r7, lr} + 8005b6e: b086 sub sp, #24 + 8005b70: af00 add r7, sp, #0 + 8005b72: 60f8 str r0, [r7, #12] + 8005b74: 60b9 str r1, [r7, #8] + 8005b76: 4613 mov r3, r2 + 8005b78: 71fb strb r3, [r7, #7] unsigned char qh,ql; unsigned char i; unsigned long foffset; uint8_t csize=(size/8+((size%8)?1:0))*(size);//得到字体一个字符对应点阵集所占的字节数 - 8003822: 79fb ldrb r3, [r7, #7] - 8003824: 08db lsrs r3, r3, #3 - 8003826: b2db uxtb r3, r3 - 8003828: 461a mov r2, r3 - 800382a: 79fb ldrb r3, [r7, #7] - 800382c: f003 0307 and.w r3, r3, #7 - 8003830: b2db uxtb r3, r3 - 8003832: 2b00 cmp r3, #0 - 8003834: bf14 ite ne - 8003836: 2301 movne r3, #1 - 8003838: 2300 moveq r3, #0 - 800383a: b2db uxtb r3, r3 - 800383c: 4413 add r3, r2 - 800383e: b2db uxtb r3, r3 - 8003840: 79fa ldrb r2, [r7, #7] - 8003842: fb02 f303 mul.w r3, r2, r3 - 8003846: 757b strb r3, [r7, #21] + 8005b7a: 79fb ldrb r3, [r7, #7] + 8005b7c: 08db lsrs r3, r3, #3 + 8005b7e: b2db uxtb r3, r3 + 8005b80: 461a mov r2, r3 + 8005b82: 79fb ldrb r3, [r7, #7] + 8005b84: f003 0307 and.w r3, r3, #7 + 8005b88: b2db uxtb r3, r3 + 8005b8a: 2b00 cmp r3, #0 + 8005b8c: bf14 ite ne + 8005b8e: 2301 movne r3, #1 + 8005b90: 2300 moveq r3, #0 + 8005b92: b2db uxtb r3, r3 + 8005b94: 4413 add r3, r2 + 8005b96: b2db uxtb r3, r3 + 8005b98: 79fa ldrb r2, [r7, #7] + 8005b9a: fb02 f303 mul.w r3, r2, r3 + 8005b9e: 757b strb r3, [r7, #21] qh=*code; - 8003848: 68fb ldr r3, [r7, #12] - 800384a: 781b ldrb r3, [r3, #0] - 800384c: 753b strb r3, [r7, #20] + 8005ba0: 68fb ldr r3, [r7, #12] + 8005ba2: 781b ldrb r3, [r3, #0] + 8005ba4: 753b strb r3, [r7, #20] ql=*(++code); - 800384e: 68fb ldr r3, [r7, #12] - 8003850: 3301 adds r3, #1 - 8003852: 60fb str r3, [r7, #12] - 8003854: 68fb ldr r3, [r7, #12] - 8003856: 781b ldrb r3, [r3, #0] - 8003858: 75fb strb r3, [r7, #23] + 8005ba6: 68fb ldr r3, [r7, #12] + 8005ba8: 3301 adds r3, #1 + 8005baa: 60fb str r3, [r7, #12] + 8005bac: 68fb ldr r3, [r7, #12] + 8005bae: 781b ldrb r3, [r3, #0] + 8005bb0: 75fb strb r3, [r7, #23] if(qh<0x81||ql<0x40||ql==0xff||qh==0xff)//非 常用汉字 - 800385a: 7d3b ldrb r3, [r7, #20] - 800385c: 2b80 cmp r3, #128 ; 0x80 - 800385e: d908 bls.n 8003872 - 8003860: 7dfb ldrb r3, [r7, #23] - 8003862: 2b3f cmp r3, #63 ; 0x3f - 8003864: d905 bls.n 8003872 - 8003866: 7dfb ldrb r3, [r7, #23] - 8003868: 2bff cmp r3, #255 ; 0xff - 800386a: d002 beq.n 8003872 - 800386c: 7d3b ldrb r3, [r7, #20] - 800386e: 2bff cmp r3, #255 ; 0xff - 8003870: d10f bne.n 8003892 + 8005bb2: 7d3b ldrb r3, [r7, #20] + 8005bb4: 2b80 cmp r3, #128 ; 0x80 + 8005bb6: d908 bls.n 8005bca + 8005bb8: 7dfb ldrb r3, [r7, #23] + 8005bba: 2b3f cmp r3, #63 ; 0x3f + 8005bbc: d905 bls.n 8005bca + 8005bbe: 7dfb ldrb r3, [r7, #23] + 8005bc0: 2bff cmp r3, #255 ; 0xff + 8005bc2: d002 beq.n 8005bca + 8005bc4: 7d3b ldrb r3, [r7, #20] + 8005bc6: 2bff cmp r3, #255 ; 0xff + 8005bc8: d10f bne.n 8005bea { for(i=0;i - 8003878: 68bb ldr r3, [r7, #8] - 800387a: 1c5a adds r2, r3, #1 - 800387c: 60ba str r2, [r7, #8] - 800387e: 2200 movs r2, #0 - 8003880: 701a strb r2, [r3, #0] - 8003882: 7dbb ldrb r3, [r7, #22] - 8003884: 3301 adds r3, #1 - 8003886: 75bb strb r3, [r7, #22] - 8003888: 7dba ldrb r2, [r7, #22] - 800388a: 7d7b ldrb r3, [r7, #21] - 800388c: 429a cmp r2, r3 - 800388e: d3f3 bcc.n 8003878 + 8005bca: 2300 movs r3, #0 + 8005bcc: 75bb strb r3, [r7, #22] + 8005bce: e007 b.n 8005be0 + 8005bd0: 68bb ldr r3, [r7, #8] + 8005bd2: 1c5a adds r2, r3, #1 + 8005bd4: 60ba str r2, [r7, #8] + 8005bd6: 2200 movs r2, #0 + 8005bd8: 701a strb r2, [r3, #0] + 8005bda: 7dbb ldrb r3, [r7, #22] + 8005bdc: 3301 adds r3, #1 + 8005bde: 75bb strb r3, [r7, #22] + 8005be0: 7dba ldrb r2, [r7, #22] + 8005be2: 7d7b ldrb r3, [r7, #21] + 8005be4: 429a cmp r2, r3 + 8005be6: d3f3 bcc.n 8005bd0 return; //结束访问 - 8003890: e041 b.n 8003916 + 8005be8: e041 b.n 8005c6e } if(ql<0x7f)ql-=0x40;//注意! - 8003892: 7dfb ldrb r3, [r7, #23] - 8003894: 2b7e cmp r3, #126 ; 0x7e - 8003896: d803 bhi.n 80038a0 - 8003898: 7dfb ldrb r3, [r7, #23] - 800389a: 3b40 subs r3, #64 ; 0x40 - 800389c: 75fb strb r3, [r7, #23] - 800389e: e002 b.n 80038a6 + 8005bea: 7dfb ldrb r3, [r7, #23] + 8005bec: 2b7e cmp r3, #126 ; 0x7e + 8005bee: d803 bhi.n 8005bf8 + 8005bf0: 7dfb ldrb r3, [r7, #23] + 8005bf2: 3b40 subs r3, #64 ; 0x40 + 8005bf4: 75fb strb r3, [r7, #23] + 8005bf6: e002 b.n 8005bfe else ql-=0x41; - 80038a0: 7dfb ldrb r3, [r7, #23] - 80038a2: 3b41 subs r3, #65 ; 0x41 - 80038a4: 75fb strb r3, [r7, #23] + 8005bf8: 7dfb ldrb r3, [r7, #23] + 8005bfa: 3b41 subs r3, #65 ; 0x41 + 8005bfc: 75fb strb r3, [r7, #23] qh-=0x81; - 80038a6: 7d3b ldrb r3, [r7, #20] - 80038a8: 337f adds r3, #127 ; 0x7f - 80038aa: 753b strb r3, [r7, #20] + 8005bfe: 7d3b ldrb r3, [r7, #20] + 8005c00: 337f adds r3, #127 ; 0x7f + 8005c02: 753b strb r3, [r7, #20] foffset=((unsigned long)190*qh+ql)*csize; //得到字库中的字节偏移量 - 80038ac: 7d3b ldrb r3, [r7, #20] - 80038ae: 22be movs r2, #190 ; 0xbe - 80038b0: fb02 f203 mul.w r2, r2, r3 - 80038b4: 7dfb ldrb r3, [r7, #23] - 80038b6: 4413 add r3, r2 - 80038b8: 7d7a ldrb r2, [r7, #21] - 80038ba: fb02 f303 mul.w r3, r2, r3 - 80038be: 613b str r3, [r7, #16] + 8005c04: 7d3b ldrb r3, [r7, #20] + 8005c06: 22be movs r2, #190 ; 0xbe + 8005c08: fb02 f203 mul.w r2, r2, r3 + 8005c0c: 7dfb ldrb r3, [r7, #23] + 8005c0e: 4413 add r3, r2 + 8005c10: 7d7a ldrb r2, [r7, #21] + 8005c12: fb02 f303 mul.w r3, r2, r3 + 8005c16: 613b str r3, [r7, #16] switch(size) - 80038c0: 79fb ldrb r3, [r7, #7] - 80038c2: 2b18 cmp r3, #24 - 80038c4: d01c beq.n 8003900 - 80038c6: 2b18 cmp r3, #24 - 80038c8: dc25 bgt.n 8003916 - 80038ca: 2b0c cmp r3, #12 - 80038cc: d002 beq.n 80038d4 - 80038ce: 2b10 cmp r3, #16 - 80038d0: d00b beq.n 80038ea - 80038d2: e020 b.n 8003916 + 8005c18: 79fb ldrb r3, [r7, #7] + 8005c1a: 2b18 cmp r3, #24 + 8005c1c: d01c beq.n 8005c58 + 8005c1e: 2b18 cmp r3, #24 + 8005c20: dc25 bgt.n 8005c6e + 8005c22: 2b0c cmp r3, #12 + 8005c24: d002 beq.n 8005c2c + 8005c26: 2b10 cmp r3, #16 + 8005c28: d00b beq.n 8005c42 + 8005c2a: e020 b.n 8005c6e { case 12: W25QXX_Read(mat,foffset+ftinfo.f12addr,csize); - 80038d4: 4b11 ldr r3, [pc, #68] ; (800391c ) - 80038d6: 68da ldr r2, [r3, #12] - 80038d8: 693b ldr r3, [r7, #16] - 80038da: 4413 add r3, r2 - 80038dc: 7d7a ldrb r2, [r7, #21] - 80038de: b292 uxth r2, r2 - 80038e0: 4619 mov r1, r3 - 80038e2: 68b8 ldr r0, [r7, #8] - 80038e4: f7fe fdec bl 80024c0 + 8005c2c: 4b11 ldr r3, [pc, #68] ; (8005c74 ) + 8005c2e: 68da ldr r2, [r3, #12] + 8005c30: 693b ldr r3, [r7, #16] + 8005c32: 4413 add r3, r2 + 8005c34: 7d7a ldrb r2, [r7, #21] + 8005c36: b292 uxth r2, r2 + 8005c38: 4619 mov r1, r3 + 8005c3a: 68b8 ldr r0, [r7, #8] + 8005c3c: f7fe fde8 bl 8004810 break; - 80038e8: e015 b.n 8003916 + 8005c40: e015 b.n 8005c6e case 16: W25QXX_Read(mat,foffset+ftinfo.f16addr,csize); - 80038ea: 4b0c ldr r3, [pc, #48] ; (800391c ) - 80038ec: 695a ldr r2, [r3, #20] - 80038ee: 693b ldr r3, [r7, #16] - 80038f0: 4413 add r3, r2 - 80038f2: 7d7a ldrb r2, [r7, #21] - 80038f4: b292 uxth r2, r2 - 80038f6: 4619 mov r1, r3 - 80038f8: 68b8 ldr r0, [r7, #8] - 80038fa: f7fe fde1 bl 80024c0 + 8005c42: 4b0c ldr r3, [pc, #48] ; (8005c74 ) + 8005c44: 695a ldr r2, [r3, #20] + 8005c46: 693b ldr r3, [r7, #16] + 8005c48: 4413 add r3, r2 + 8005c4a: 7d7a ldrb r2, [r7, #21] + 8005c4c: b292 uxth r2, r2 + 8005c4e: 4619 mov r1, r3 + 8005c50: 68b8 ldr r0, [r7, #8] + 8005c52: f7fe fddd bl 8004810 break; - 80038fe: e00a b.n 8003916 + 8005c56: e00a b.n 8005c6e case 24: W25QXX_Read(mat,foffset+ftinfo.f24addr,csize); - 8003900: 4b06 ldr r3, [pc, #24] ; (800391c ) - 8003902: 69da ldr r2, [r3, #28] - 8003904: 693b ldr r3, [r7, #16] - 8003906: 4413 add r3, r2 - 8003908: 7d7a ldrb r2, [r7, #21] - 800390a: b292 uxth r2, r2 - 800390c: 4619 mov r1, r3 - 800390e: 68b8 ldr r0, [r7, #8] - 8003910: f7fe fdd6 bl 80024c0 + 8005c58: 4b06 ldr r3, [pc, #24] ; (8005c74 ) + 8005c5a: 69da ldr r2, [r3, #28] + 8005c5c: 693b ldr r3, [r7, #16] + 8005c5e: 4413 add r3, r2 + 8005c60: 7d7a ldrb r2, [r7, #21] + 8005c62: b292 uxth r2, r2 + 8005c64: 4619 mov r1, r3 + 8005c66: 68b8 ldr r0, [r7, #8] + 8005c68: f7fe fdd2 bl 8004810 break; - 8003914: bf00 nop + 8005c6c: bf00 nop } } - 8003916: 3718 adds r7, #24 - 8003918: 46bd mov sp, r7 - 800391a: bd80 pop {r7, pc} - 800391c: 2000056c .word 0x2000056c + 8005c6e: 3718 adds r7, #24 + 8005c70: 46bd mov sp, r7 + 8005c72: bd80 pop {r7, pc} + 8005c74: 2000082c .word 0x2000082c -08003920 : +08005c78 : //x,y :汉字的坐标 //font:汉字GBK码 //size:字体大小 //mode:0,正常显示,1,叠加显示 void Show_Font(uint16_t x,uint16_t y,uint8_t *font,uint8_t size,uint16_t bg,uint16_t color) { - 8003920: b580 push {r7, lr} - 8003922: b098 sub sp, #96 ; 0x60 - 8003924: af00 add r7, sp, #0 - 8003926: 60ba str r2, [r7, #8] - 8003928: 461a mov r2, r3 - 800392a: 4603 mov r3, r0 - 800392c: 81fb strh r3, [r7, #14] - 800392e: 460b mov r3, r1 - 8003930: 81bb strh r3, [r7, #12] - 8003932: 4613 mov r3, r2 - 8003934: 71fb strb r3, [r7, #7] + 8005c78: b580 push {r7, lr} + 8005c7a: b098 sub sp, #96 ; 0x60 + 8005c7c: af00 add r7, sp, #0 + 8005c7e: 60ba str r2, [r7, #8] + 8005c80: 461a mov r2, r3 + 8005c82: 4603 mov r3, r0 + 8005c84: 81fb strh r3, [r7, #14] + 8005c86: 460b mov r3, r1 + 8005c88: 81bb strh r3, [r7, #12] + 8005c8a: 4613 mov r3, r2 + 8005c8c: 71fb strb r3, [r7, #7] uint8_t temp,t,t1; uint16_t y0=y; - 8003936: 89bb ldrh r3, [r7, #12] - 8003938: f8a7 305a strh.w r3, [r7, #90] ; 0x5a + 8005c8e: 89bb ldrh r3, [r7, #12] + 8005c90: f8a7 305a strh.w r3, [r7, #90] ; 0x5a uint8_t dzk[72]; uint8_t csize=(size/8+((size%8)?1:0))*(size);//得到字体一个字符对应点阵集所占的字节数 - 800393c: 79fb ldrb r3, [r7, #7] - 800393e: 08db lsrs r3, r3, #3 - 8003940: b2db uxtb r3, r3 - 8003942: 461a mov r2, r3 - 8003944: 79fb ldrb r3, [r7, #7] - 8003946: f003 0307 and.w r3, r3, #7 - 800394a: b2db uxtb r3, r3 - 800394c: 2b00 cmp r3, #0 - 800394e: bf14 ite ne - 8003950: 2301 movne r3, #1 - 8003952: 2300 moveq r3, #0 - 8003954: b2db uxtb r3, r3 - 8003956: 4413 add r3, r2 - 8003958: b2db uxtb r3, r3 - 800395a: 79fa ldrb r2, [r7, #7] - 800395c: fb02 f303 mul.w r3, r2, r3 - 8003960: f887 3059 strb.w r3, [r7, #89] ; 0x59 + 8005c94: 79fb ldrb r3, [r7, #7] + 8005c96: 08db lsrs r3, r3, #3 + 8005c98: b2db uxtb r3, r3 + 8005c9a: 461a mov r2, r3 + 8005c9c: 79fb ldrb r3, [r7, #7] + 8005c9e: f003 0307 and.w r3, r3, #7 + 8005ca2: b2db uxtb r3, r3 + 8005ca4: 2b00 cmp r3, #0 + 8005ca6: bf14 ite ne + 8005ca8: 2301 movne r3, #1 + 8005caa: 2300 moveq r3, #0 + 8005cac: b2db uxtb r3, r3 + 8005cae: 4413 add r3, r2 + 8005cb0: b2db uxtb r3, r3 + 8005cb2: 79fa ldrb r2, [r7, #7] + 8005cb4: fb02 f303 mul.w r3, r2, r3 + 8005cb8: f887 3059 strb.w r3, [r7, #89] ; 0x59 if(size!=12&&size!=16)return; //不支持的size - 8003964: 79fb ldrb r3, [r7, #7] - 8003966: 2b0c cmp r3, #12 - 8003968: d002 beq.n 8003970 - 800396a: 79fb ldrb r3, [r7, #7] - 800396c: 2b10 cmp r3, #16 - 800396e: d15b bne.n 8003a28 + 8005cbc: 79fb ldrb r3, [r7, #7] + 8005cbe: 2b0c cmp r3, #12 + 8005cc0: d002 beq.n 8005cc8 + 8005cc2: 79fb ldrb r3, [r7, #7] + 8005cc4: 2b10 cmp r3, #16 + 8005cc6: d15b bne.n 8005d80 Get_HzMat(font,dzk,size); //得到相应大小的点阵数据 - 8003970: 79fa ldrb r2, [r7, #7] - 8003972: f107 0310 add.w r3, r7, #16 - 8003976: 4619 mov r1, r3 - 8003978: 68b8 ldr r0, [r7, #8] - 800397a: f7ff ff4b bl 8003814 + 8005cc8: 79fa ldrb r2, [r7, #7] + 8005cca: f107 0310 add.w r3, r7, #16 + 8005cce: 4619 mov r1, r3 + 8005cd0: 68b8 ldr r0, [r7, #8] + 8005cd2: f7ff ff4b bl 8005b6c for(t=0;t + 8005cd6: 2300 movs r3, #0 + 8005cd8: f887 305e strb.w r3, [r7, #94] ; 0x5e + 8005cdc: e049 b.n 8005d72 { temp=dzk[t]; //得到点阵数据 - 8003986: f897 305e ldrb.w r3, [r7, #94] ; 0x5e - 800398a: f107 0260 add.w r2, r7, #96 ; 0x60 - 800398e: 4413 add r3, r2 - 8003990: f813 3c50 ldrb.w r3, [r3, #-80] - 8003994: f887 305f strb.w r3, [r7, #95] ; 0x5f + 8005cde: f897 305e ldrb.w r3, [r7, #94] ; 0x5e + 8005ce2: f107 0260 add.w r2, r7, #96 ; 0x60 + 8005ce6: 4413 add r3, r2 + 8005ce8: f813 3c50 ldrb.w r3, [r3, #-80] + 8005cec: f887 305f strb.w r3, [r7, #95] ; 0x5f for(t1=0;t1<8;t1++) - 8003998: 2300 movs r3, #0 - 800399a: f887 305d strb.w r3, [r7, #93] ; 0x5d - 800399e: e033 b.n 8003a08 + 8005cf0: 2300 movs r3, #0 + 8005cf2: f887 305d strb.w r3, [r7, #93] ; 0x5d + 8005cf6: e033 b.n 8005d60 { if(temp&0x80){LCD_set_dot(x,y,color);}else{if(bg!=color){LCD_set_dot(x,y,bg);}} - 80039a0: f997 305f ldrsb.w r3, [r7, #95] ; 0x5f - 80039a4: 2b00 cmp r3, #0 - 80039a6: da07 bge.n 80039b8 - 80039a8: f8b7 206c ldrh.w r2, [r7, #108] ; 0x6c - 80039ac: 89b9 ldrh r1, [r7, #12] - 80039ae: 89fb ldrh r3, [r7, #14] - 80039b0: 4618 mov r0, r3 - 80039b2: f7ff fe93 bl 80036dc - 80039b6: e00c b.n 80039d2 - 80039b8: f8b7 2068 ldrh.w r2, [r7, #104] ; 0x68 - 80039bc: f8b7 306c ldrh.w r3, [r7, #108] ; 0x6c - 80039c0: 429a cmp r2, r3 - 80039c2: d006 beq.n 80039d2 - 80039c4: f8b7 2068 ldrh.w r2, [r7, #104] ; 0x68 - 80039c8: 89b9 ldrh r1, [r7, #12] - 80039ca: 89fb ldrh r3, [r7, #14] - 80039cc: 4618 mov r0, r3 - 80039ce: f7ff fe85 bl 80036dc + 8005cf8: f997 305f ldrsb.w r3, [r7, #95] ; 0x5f + 8005cfc: 2b00 cmp r3, #0 + 8005cfe: da07 bge.n 8005d10 + 8005d00: f8b7 206c ldrh.w r2, [r7, #108] ; 0x6c + 8005d04: 89b9 ldrh r1, [r7, #12] + 8005d06: 89fb ldrh r3, [r7, #14] + 8005d08: 4618 mov r0, r3 + 8005d0a: f7ff fe8f bl 8005a2c + 8005d0e: e00c b.n 8005d2a + 8005d10: f8b7 2068 ldrh.w r2, [r7, #104] ; 0x68 + 8005d14: f8b7 306c ldrh.w r3, [r7, #108] ; 0x6c + 8005d18: 429a cmp r2, r3 + 8005d1a: d006 beq.n 8005d2a + 8005d1c: f8b7 2068 ldrh.w r2, [r7, #104] ; 0x68 + 8005d20: 89b9 ldrh r1, [r7, #12] + 8005d22: 89fb ldrh r3, [r7, #14] + 8005d24: 4618 mov r0, r3 + 8005d26: f7ff fe81 bl 8005a2c temp<<=1; - 80039d2: f897 305f ldrb.w r3, [r7, #95] ; 0x5f - 80039d6: 005b lsls r3, r3, #1 - 80039d8: f887 305f strb.w r3, [r7, #95] ; 0x5f + 8005d2a: f897 305f ldrb.w r3, [r7, #95] ; 0x5f + 8005d2e: 005b lsls r3, r3, #1 + 8005d30: f887 305f strb.w r3, [r7, #95] ; 0x5f y++; - 80039dc: 89bb ldrh r3, [r7, #12] - 80039de: 3301 adds r3, #1 - 80039e0: 81bb strh r3, [r7, #12] + 8005d34: 89bb ldrh r3, [r7, #12] + 8005d36: 3301 adds r3, #1 + 8005d38: 81bb strh r3, [r7, #12] if((y-y0)==size) - 80039e2: 89ba ldrh r2, [r7, #12] - 80039e4: f8b7 305a ldrh.w r3, [r7, #90] ; 0x5a - 80039e8: 1ad2 subs r2, r2, r3 - 80039ea: 79fb ldrb r3, [r7, #7] - 80039ec: 429a cmp r2, r3 - 80039ee: d106 bne.n 80039fe + 8005d3a: 89ba ldrh r2, [r7, #12] + 8005d3c: f8b7 305a ldrh.w r3, [r7, #90] ; 0x5a + 8005d40: 1ad2 subs r2, r2, r3 + 8005d42: 79fb ldrb r3, [r7, #7] + 8005d44: 429a cmp r2, r3 + 8005d46: d106 bne.n 8005d56 { y=y0; - 80039f0: f8b7 305a ldrh.w r3, [r7, #90] ; 0x5a - 80039f4: 81bb strh r3, [r7, #12] + 8005d48: f8b7 305a ldrh.w r3, [r7, #90] ; 0x5a + 8005d4c: 81bb strh r3, [r7, #12] x++; - 80039f6: 89fb ldrh r3, [r7, #14] - 80039f8: 3301 adds r3, #1 - 80039fa: 81fb strh r3, [r7, #14] + 8005d4e: 89fb ldrh r3, [r7, #14] + 8005d50: 3301 adds r3, #1 + 8005d52: 81fb strh r3, [r7, #14] break; - 80039fc: e008 b.n 8003a10 + 8005d54: e008 b.n 8005d68 for(t1=0;t1<8;t1++) - 80039fe: f897 305d ldrb.w r3, [r7, #93] ; 0x5d - 8003a02: 3301 adds r3, #1 - 8003a04: f887 305d strb.w r3, [r7, #93] ; 0x5d - 8003a08: f897 305d ldrb.w r3, [r7, #93] ; 0x5d - 8003a0c: 2b07 cmp r3, #7 - 8003a0e: d9c7 bls.n 80039a0 + 8005d56: f897 305d ldrb.w r3, [r7, #93] ; 0x5d + 8005d5a: 3301 adds r3, #1 + 8005d5c: f887 305d strb.w r3, [r7, #93] ; 0x5d + 8005d60: f897 305d ldrb.w r3, [r7, #93] ; 0x5d + 8005d64: 2b07 cmp r3, #7 + 8005d66: d9c7 bls.n 8005cf8 for(t=0;t - 8003a26: e000 b.n 8003a2a + 8005d68: f897 305e ldrb.w r3, [r7, #94] ; 0x5e + 8005d6c: 3301 adds r3, #1 + 8005d6e: f887 305e strb.w r3, [r7, #94] ; 0x5e + 8005d72: f897 205e ldrb.w r2, [r7, #94] ; 0x5e + 8005d76: f897 3059 ldrb.w r3, [r7, #89] ; 0x59 + 8005d7a: 429a cmp r2, r3 + 8005d7c: d3af bcc.n 8005cde + 8005d7e: e000 b.n 8005d82 if(size!=12&&size!=16)return; //不支持的size - 8003a28: bf00 nop + 8005d80: bf00 nop } } } } - 8003a2a: 3760 adds r7, #96 ; 0x60 - 8003a2c: 46bd mov sp, r7 - 8003a2e: bd80 pop {r7, pc} + 8005d82: 3760 adds r7, #96 ; 0x60 + 8005d84: 46bd mov sp, r7 + 8005d86: bd80 pop {r7, pc} -08003a30 : +08005d88 : //num:要显示的字符:" "--->"~" //size:字体大小 12/16 //mode:叠加方式(1)还是非叠加方式(0) void LCD_ShowChar(uint16_t x,uint16_t y,uint8_t num,uint8_t size,uint16_t bg,uint16_t color) { - 8003a30: b590 push {r4, r7, lr} - 8003a32: b085 sub sp, #20 - 8003a34: af00 add r7, sp, #0 - 8003a36: 4604 mov r4, r0 - 8003a38: 4608 mov r0, r1 - 8003a3a: 4611 mov r1, r2 - 8003a3c: 461a mov r2, r3 - 8003a3e: 4623 mov r3, r4 - 8003a40: 80fb strh r3, [r7, #6] - 8003a42: 4603 mov r3, r0 - 8003a44: 80bb strh r3, [r7, #4] - 8003a46: 460b mov r3, r1 - 8003a48: 70fb strb r3, [r7, #3] - 8003a4a: 4613 mov r3, r2 - 8003a4c: 70bb strb r3, [r7, #2] + 8005d88: b590 push {r4, r7, lr} + 8005d8a: b085 sub sp, #20 + 8005d8c: af00 add r7, sp, #0 + 8005d8e: 4604 mov r4, r0 + 8005d90: 4608 mov r0, r1 + 8005d92: 4611 mov r1, r2 + 8005d94: 461a mov r2, r3 + 8005d96: 4623 mov r3, r4 + 8005d98: 80fb strh r3, [r7, #6] + 8005d9a: 4603 mov r3, r0 + 8005d9c: 80bb strh r3, [r7, #4] + 8005d9e: 460b mov r3, r1 + 8005da0: 70fb strb r3, [r7, #3] + 8005da2: 4613 mov r3, r2 + 8005da4: 70bb strb r3, [r7, #2] uint8_t temp,t1,t; uint16_t y0=y; - 8003a4e: 88bb ldrh r3, [r7, #4] - 8003a50: 817b strh r3, [r7, #10] + 8005da6: 88bb ldrh r3, [r7, #4] + 8005da8: 817b strh r3, [r7, #10] //设置窗口 num=num-' ';//得到偏移后的值 - 8003a52: 78fb ldrb r3, [r7, #3] - 8003a54: 3b20 subs r3, #32 - 8003a56: 70fb strb r3, [r7, #3] + 8005daa: 78fb ldrb r3, [r7, #3] + 8005dac: 3b20 subs r3, #32 + 8005dae: 70fb strb r3, [r7, #3] for(t=0;t + 8005db0: 2300 movs r3, #0 + 8005db2: 737b strb r3, [r7, #13] + 8005db4: e055 b.n 8005e62 { if(size==12){temp=asc2_1206[num][t];} //调用1206字体 - 8003a5e: 78bb ldrb r3, [r7, #2] - 8003a60: 2b0c cmp r3, #12 - 8003a62: d10b bne.n 8003a7c - 8003a64: 78fa ldrb r2, [r7, #3] - 8003a66: 7b79 ldrb r1, [r7, #13] - 8003a68: 482c ldr r0, [pc, #176] ; (8003b1c ) - 8003a6a: 4613 mov r3, r2 - 8003a6c: 005b lsls r3, r3, #1 - 8003a6e: 4413 add r3, r2 - 8003a70: 009b lsls r3, r3, #2 - 8003a72: 4403 add r3, r0 - 8003a74: 440b add r3, r1 - 8003a76: 781b ldrb r3, [r3, #0] - 8003a78: 73fb strb r3, [r7, #15] - 8003a7a: e007 b.n 8003a8c + 8005db6: 78bb ldrb r3, [r7, #2] + 8005db8: 2b0c cmp r3, #12 + 8005dba: d10b bne.n 8005dd4 + 8005dbc: 78fa ldrb r2, [r7, #3] + 8005dbe: 7b79 ldrb r1, [r7, #13] + 8005dc0: 482c ldr r0, [pc, #176] ; (8005e74 ) + 8005dc2: 4613 mov r3, r2 + 8005dc4: 005b lsls r3, r3, #1 + 8005dc6: 4413 add r3, r2 + 8005dc8: 009b lsls r3, r3, #2 + 8005dca: 4403 add r3, r0 + 8005dcc: 440b add r3, r1 + 8005dce: 781b ldrb r3, [r3, #0] + 8005dd0: 73fb strb r3, [r7, #15] + 8005dd2: e007 b.n 8005de4 else{ temp=asc2_1608[num][t]; } //调用1608字体 - 8003a7c: 78fa ldrb r2, [r7, #3] - 8003a7e: 7b7b ldrb r3, [r7, #13] - 8003a80: 4927 ldr r1, [pc, #156] ; (8003b20 ) - 8003a82: 0112 lsls r2, r2, #4 - 8003a84: 440a add r2, r1 - 8003a86: 4413 add r3, r2 - 8003a88: 781b ldrb r3, [r3, #0] - 8003a8a: 73fb strb r3, [r7, #15] + 8005dd4: 78fa ldrb r2, [r7, #3] + 8005dd6: 7b7b ldrb r3, [r7, #13] + 8005dd8: 4927 ldr r1, [pc, #156] ; (8005e78 ) + 8005dda: 0112 lsls r2, r2, #4 + 8005ddc: 440a add r2, r1 + 8005dde: 4413 add r3, r2 + 8005de0: 781b ldrb r3, [r3, #0] + 8005de2: 73fb strb r3, [r7, #15] for(t1=0;t1<8;t1++) - 8003a8c: 2300 movs r3, #0 - 8003a8e: 73bb strb r3, [r7, #14] - 8003a90: e033 b.n 8003afa + 8005de4: 2300 movs r3, #0 + 8005de6: 73bb strb r3, [r7, #14] + 8005de8: e033 b.n 8005e52 { if(temp&0x80){LCD_set_dot(x,y,color);}else{if(bg!=color){LCD_set_dot(x,y,bg);}} - 8003a92: f997 300f ldrsb.w r3, [r7, #15] - 8003a96: 2b00 cmp r3, #0 - 8003a98: da06 bge.n 8003aa8 - 8003a9a: 8cba ldrh r2, [r7, #36] ; 0x24 - 8003a9c: 88b9 ldrh r1, [r7, #4] - 8003a9e: 88fb ldrh r3, [r7, #6] - 8003aa0: 4618 mov r0, r3 - 8003aa2: f7ff fe1b bl 80036dc - 8003aa6: e009 b.n 8003abc - 8003aa8: 8c3a ldrh r2, [r7, #32] - 8003aaa: 8cbb ldrh r3, [r7, #36] ; 0x24 - 8003aac: 429a cmp r2, r3 - 8003aae: d005 beq.n 8003abc - 8003ab0: 8c3a ldrh r2, [r7, #32] - 8003ab2: 88b9 ldrh r1, [r7, #4] - 8003ab4: 88fb ldrh r3, [r7, #6] - 8003ab6: 4618 mov r0, r3 - 8003ab8: f7ff fe10 bl 80036dc + 8005dea: f997 300f ldrsb.w r3, [r7, #15] + 8005dee: 2b00 cmp r3, #0 + 8005df0: da06 bge.n 8005e00 + 8005df2: 8cba ldrh r2, [r7, #36] ; 0x24 + 8005df4: 88b9 ldrh r1, [r7, #4] + 8005df6: 88fb ldrh r3, [r7, #6] + 8005df8: 4618 mov r0, r3 + 8005dfa: f7ff fe17 bl 8005a2c + 8005dfe: e009 b.n 8005e14 + 8005e00: 8c3a ldrh r2, [r7, #32] + 8005e02: 8cbb ldrh r3, [r7, #36] ; 0x24 + 8005e04: 429a cmp r2, r3 + 8005e06: d005 beq.n 8005e14 + 8005e08: 8c3a ldrh r2, [r7, #32] + 8005e0a: 88b9 ldrh r1, [r7, #4] + 8005e0c: 88fb ldrh r3, [r7, #6] + 8005e0e: 4618 mov r0, r3 + 8005e10: f7ff fe0c bl 8005a2c temp<<=1; - 8003abc: 7bfb ldrb r3, [r7, #15] - 8003abe: 005b lsls r3, r3, #1 - 8003ac0: 73fb strb r3, [r7, #15] + 8005e14: 7bfb ldrb r3, [r7, #15] + 8005e16: 005b lsls r3, r3, #1 + 8005e18: 73fb strb r3, [r7, #15] y++; - 8003ac2: 88bb ldrh r3, [r7, #4] - 8003ac4: 3301 adds r3, #1 - 8003ac6: 80bb strh r3, [r7, #4] + 8005e1a: 88bb ldrh r3, [r7, #4] + 8005e1c: 3301 adds r3, #1 + 8005e1e: 80bb strh r3, [r7, #4] if(x>=lcddev.width){return;}//超区域了 - 8003ac8: 4b16 ldr r3, [pc, #88] ; (8003b24 ) - 8003aca: 881b ldrh r3, [r3, #0] - 8003acc: 88fa ldrh r2, [r7, #6] - 8003ace: 429a cmp r2, r3 - 8003ad0: d220 bcs.n 8003b14 + 8005e20: 4b16 ldr r3, [pc, #88] ; (8005e7c ) + 8005e22: 881b ldrh r3, [r3, #0] + 8005e24: 88fa ldrh r2, [r7, #6] + 8005e26: 429a cmp r2, r3 + 8005e28: d220 bcs.n 8005e6c if((y-y0)==size) - 8003ad2: 88ba ldrh r2, [r7, #4] - 8003ad4: 897b ldrh r3, [r7, #10] - 8003ad6: 1ad2 subs r2, r2, r3 - 8003ad8: 78bb ldrb r3, [r7, #2] - 8003ada: 429a cmp r2, r3 - 8003adc: d10a bne.n 8003af4 + 8005e2a: 88ba ldrh r2, [r7, #4] + 8005e2c: 897b ldrh r3, [r7, #10] + 8005e2e: 1ad2 subs r2, r2, r3 + 8005e30: 78bb ldrb r3, [r7, #2] + 8005e32: 429a cmp r2, r3 + 8005e34: d10a bne.n 8005e4c { y=y0; - 8003ade: 897b ldrh r3, [r7, #10] - 8003ae0: 80bb strh r3, [r7, #4] + 8005e36: 897b ldrh r3, [r7, #10] + 8005e38: 80bb strh r3, [r7, #4] x++; - 8003ae2: 88fb ldrh r3, [r7, #6] - 8003ae4: 3301 adds r3, #1 - 8003ae6: 80fb strh r3, [r7, #6] + 8005e3a: 88fb ldrh r3, [r7, #6] + 8005e3c: 3301 adds r3, #1 + 8005e3e: 80fb strh r3, [r7, #6] if(x>=lcddev.width){return;}//超区域了 - 8003ae8: 4b0e ldr r3, [pc, #56] ; (8003b24 ) - 8003aea: 881b ldrh r3, [r3, #0] - 8003aec: 88fa ldrh r2, [r7, #6] - 8003aee: 429a cmp r2, r3 - 8003af0: d307 bcc.n 8003b02 - 8003af2: e010 b.n 8003b16 + 8005e40: 4b0e ldr r3, [pc, #56] ; (8005e7c ) + 8005e42: 881b ldrh r3, [r3, #0] + 8005e44: 88fa ldrh r2, [r7, #6] + 8005e46: 429a cmp r2, r3 + 8005e48: d307 bcc.n 8005e5a + 8005e4a: e010 b.n 8005e6e for(t1=0;t1<8;t1++) - 8003af4: 7bbb ldrb r3, [r7, #14] - 8003af6: 3301 adds r3, #1 - 8003af8: 73bb strb r3, [r7, #14] - 8003afa: 7bbb ldrb r3, [r7, #14] - 8003afc: 2b07 cmp r3, #7 - 8003afe: d9c8 bls.n 8003a92 - 8003b00: e000 b.n 8003b04 + 8005e4c: 7bbb ldrb r3, [r7, #14] + 8005e4e: 3301 adds r3, #1 + 8005e50: 73bb strb r3, [r7, #14] + 8005e52: 7bbb ldrb r3, [r7, #14] + 8005e54: 2b07 cmp r3, #7 + 8005e56: d9c8 bls.n 8005dea + 8005e58: e000 b.n 8005e5c break; - 8003b02: bf00 nop + 8005e5a: bf00 nop for(t=0;t - 8003b12: e000 b.n 8003b16 + 8005e5c: 7b7b ldrb r3, [r7, #13] + 8005e5e: 3301 adds r3, #1 + 8005e60: 737b strb r3, [r7, #13] + 8005e62: 7b7a ldrb r2, [r7, #13] + 8005e64: 78bb ldrb r3, [r7, #2] + 8005e66: 429a cmp r2, r3 + 8005e68: d3a5 bcc.n 8005db6 + 8005e6a: e000 b.n 8005e6e if(x>=lcddev.width){return;}//超区域了 - 8003b14: bf00 nop + 8005e6c: bf00 nop } } } - 8003b16: 3714 adds r7, #20 - 8003b18: 46bd mov sp, r7 - 8003b1a: bd90 pop {r4, r7, pc} - 8003b1c: 08003c98 .word 0x08003c98 - 8003b20: 0800410c .word 0x0800410c - 8003b24: 20000560 .word 0x20000560 + 8005e6e: 3714 adds r7, #20 + 8005e70: 46bd mov sp, r7 + 8005e72: bd90 pop {r4, r7, pc} + 8005e74: 0800694c .word 0x0800694c + 8005e78: 08006dc0 .word 0x08006dc0 + 8005e7c: 20000820 .word 0x20000820 -08003b28 : +08005e80 : //width,height:区域大小 //size:字体大小 //*p:字符串起始地址 -void LCD_ShowString(uint16_t x,uint16_t y,uint8_t *p,uint8_t size,uint16_t bg,uint16_t color) +void LCD_ShowString(uint16_t x,uint16_t y,uint8_t *p,uint8_t size,uint16_t bg,uint16_t color,uint16_t len) { - 8003b28: b590 push {r4, r7, lr} - 8003b2a: b087 sub sp, #28 - 8003b2c: af02 add r7, sp, #8 - 8003b2e: 60ba str r2, [r7, #8] - 8003b30: 461a mov r2, r3 - 8003b32: 4603 mov r3, r0 - 8003b34: 81fb strh r3, [r7, #14] - 8003b36: 460b mov r3, r1 - 8003b38: 81bb strh r3, [r7, #12] - 8003b3a: 4613 mov r3, r2 - 8003b3c: 71fb strb r3, [r7, #7] - while(*p!='\0') - 8003b3e: e04e b.n 8003bde + 8005e80: b590 push {r4, r7, lr} + 8005e82: b087 sub sp, #28 + 8005e84: af02 add r7, sp, #8 + 8005e86: 60ba str r2, [r7, #8] + 8005e88: 461a mov r2, r3 + 8005e8a: 4603 mov r3, r0 + 8005e8c: 81fb strh r3, [r7, #14] + 8005e8e: 460b mov r3, r1 + 8005e90: 81bb strh r3, [r7, #12] + 8005e92: 4613 mov r3, r2 + 8005e94: 71fb strb r3, [r7, #7] + while(len--) + 8005e96: e052 b.n 8005f3e { if(x>=lcddev.width) - 8003b40: 4b2b ldr r3, [pc, #172] ; (8003bf0 ) - 8003b42: 881b ldrh r3, [r3, #0] - 8003b44: 89fa ldrh r2, [r7, #14] - 8003b46: 429a cmp r2, r3 - 8003b48: d306 bcc.n 8003b58 + 8005e98: 4b2e ldr r3, [pc, #184] ; (8005f54 ) + 8005e9a: 881b ldrh r3, [r3, #0] + 8005e9c: 89fa ldrh r2, [r7, #14] + 8005e9e: 429a cmp r2, r3 + 8005ea0: d306 bcc.n 8005eb0 { x=0; - 8003b4a: 2300 movs r3, #0 - 8003b4c: 81fb strh r3, [r7, #14] + 8005ea2: 2300 movs r3, #0 + 8005ea4: 81fb strh r3, [r7, #14] y+=size; - 8003b4e: 79fb ldrb r3, [r7, #7] - 8003b50: b29a uxth r2, r3 - 8003b52: 89bb ldrh r3, [r7, #12] - 8003b54: 4413 add r3, r2 - 8003b56: 81bb strh r3, [r7, #12] + 8005ea6: 79fb ldrb r3, [r7, #7] + 8005ea8: b29a uxth r2, r3 + 8005eaa: 89bb ldrh r3, [r7, #12] + 8005eac: 4413 add r3, r2 + 8005eae: 81bb strh r3, [r7, #12] + } + if(*p=='\0') + 8005eb0: 68bb ldr r3, [r7, #8] + 8005eb2: 781b ldrb r3, [r3, #0] + 8005eb4: 2b00 cmp r3, #0 + 8005eb6: d048 beq.n 8005f4a + { + return; } if(*p=='\r') - 8003b58: 68bb ldr r3, [r7, #8] - 8003b5a: 781b ldrb r3, [r3, #0] - 8003b5c: 2b0d cmp r3, #13 - 8003b5e: d102 bne.n 8003b66 + 8005eb8: 68bb ldr r3, [r7, #8] + 8005eba: 781b ldrb r3, [r3, #0] + 8005ebc: 2b0d cmp r3, #13 + 8005ebe: d102 bne.n 8005ec6 { p++; - 8003b60: 68bb ldr r3, [r7, #8] - 8003b62: 3301 adds r3, #1 - 8003b64: 60bb str r3, [r7, #8] + 8005ec0: 68bb ldr r3, [r7, #8] + 8005ec2: 3301 adds r3, #1 + 8005ec4: 60bb str r3, [r7, #8] } if(*p=='\n') - 8003b66: 68bb ldr r3, [r7, #8] - 8003b68: 781b ldrb r3, [r3, #0] - 8003b6a: 2b0a cmp r3, #10 - 8003b6c: d109 bne.n 8003b82 + 8005ec6: 68bb ldr r3, [r7, #8] + 8005ec8: 781b ldrb r3, [r3, #0] + 8005eca: 2b0a cmp r3, #10 + 8005ecc: d109 bne.n 8005ee2 { x=0; - 8003b6e: 2300 movs r3, #0 - 8003b70: 81fb strh r3, [r7, #14] + 8005ece: 2300 movs r3, #0 + 8005ed0: 81fb strh r3, [r7, #14] y+=size; - 8003b72: 79fb ldrb r3, [r7, #7] - 8003b74: b29a uxth r2, r3 - 8003b76: 89bb ldrh r3, [r7, #12] - 8003b78: 4413 add r3, r2 - 8003b7a: 81bb strh r3, [r7, #12] + 8005ed2: 79fb ldrb r3, [r7, #7] + 8005ed4: b29a uxth r2, r3 + 8005ed6: 89bb ldrh r3, [r7, #12] + 8005ed8: 4413 add r3, r2 + 8005eda: 81bb strh r3, [r7, #12] p++; - 8003b7c: 68bb ldr r3, [r7, #8] - 8003b7e: 3301 adds r3, #1 - 8003b80: 60bb str r3, [r7, #8] + 8005edc: 68bb ldr r3, [r7, #8] + 8005ede: 3301 adds r3, #1 + 8005ee0: 60bb str r3, [r7, #8] } if(*p<127) - 8003b82: 68bb ldr r3, [r7, #8] - 8003b84: 781b ldrb r3, [r3, #0] - 8003b86: 2b7e cmp r3, #126 ; 0x7e - 8003b88: d813 bhi.n 8003bb2 + 8005ee2: 68bb ldr r3, [r7, #8] + 8005ee4: 781b ldrb r3, [r3, #0] + 8005ee6: 2b7e cmp r3, #126 ; 0x7e + 8005ee8: d813 bhi.n 8005f12 { LCD_ShowChar(x,y,*p,size,bg,color); - 8003b8a: 68bb ldr r3, [r7, #8] - 8003b8c: 781a ldrb r2, [r3, #0] - 8003b8e: 79fc ldrb r4, [r7, #7] - 8003b90: 89b9 ldrh r1, [r7, #12] - 8003b92: 89f8 ldrh r0, [r7, #14] - 8003b94: 8cbb ldrh r3, [r7, #36] ; 0x24 - 8003b96: 9301 str r3, [sp, #4] - 8003b98: 8c3b ldrh r3, [r7, #32] - 8003b9a: 9300 str r3, [sp, #0] - 8003b9c: 4623 mov r3, r4 - 8003b9e: f7ff ff47 bl 8003a30 + 8005eea: 68bb ldr r3, [r7, #8] + 8005eec: 781a ldrb r2, [r3, #0] + 8005eee: 79fc ldrb r4, [r7, #7] + 8005ef0: 89b9 ldrh r1, [r7, #12] + 8005ef2: 89f8 ldrh r0, [r7, #14] + 8005ef4: 8cbb ldrh r3, [r7, #36] ; 0x24 + 8005ef6: 9301 str r3, [sp, #4] + 8005ef8: 8c3b ldrh r3, [r7, #32] + 8005efa: 9300 str r3, [sp, #0] + 8005efc: 4623 mov r3, r4 + 8005efe: f7ff ff43 bl 8005d88 x+=(size/2); - 8003ba2: 79fb ldrb r3, [r7, #7] - 8003ba4: 085b lsrs r3, r3, #1 - 8003ba6: b2db uxtb r3, r3 - 8003ba8: b29a uxth r2, r3 - 8003baa: 89fb ldrh r3, [r7, #14] - 8003bac: 4413 add r3, r2 - 8003bae: 81fb strh r3, [r7, #14] - 8003bb0: e012 b.n 8003bd8 + 8005f02: 79fb ldrb r3, [r7, #7] + 8005f04: 085b lsrs r3, r3, #1 + 8005f06: b2db uxtb r3, r3 + 8005f08: b29a uxth r2, r3 + 8005f0a: 89fb ldrh r3, [r7, #14] + 8005f0c: 4413 add r3, r2 + 8005f0e: 81fb strh r3, [r7, #14] + 8005f10: e012 b.n 8005f38 }else { Show_Font(x,y,p,size,bg,color); - 8003bb2: 79fa ldrb r2, [r7, #7] - 8003bb4: 89b9 ldrh r1, [r7, #12] - 8003bb6: 89f8 ldrh r0, [r7, #14] - 8003bb8: 8cbb ldrh r3, [r7, #36] ; 0x24 - 8003bba: 9301 str r3, [sp, #4] - 8003bbc: 8c3b ldrh r3, [r7, #32] - 8003bbe: 9300 str r3, [sp, #0] - 8003bc0: 4613 mov r3, r2 - 8003bc2: 68ba ldr r2, [r7, #8] - 8003bc4: f7ff feac bl 8003920 + 8005f12: 79fa ldrb r2, [r7, #7] + 8005f14: 89b9 ldrh r1, [r7, #12] + 8005f16: 89f8 ldrh r0, [r7, #14] + 8005f18: 8cbb ldrh r3, [r7, #36] ; 0x24 + 8005f1a: 9301 str r3, [sp, #4] + 8005f1c: 8c3b ldrh r3, [r7, #32] + 8005f1e: 9300 str r3, [sp, #0] + 8005f20: 4613 mov r3, r2 + 8005f22: 68ba ldr r2, [r7, #8] + 8005f24: f7ff fea8 bl 8005c78 p++; - 8003bc8: 68bb ldr r3, [r7, #8] - 8003bca: 3301 adds r3, #1 - 8003bcc: 60bb str r3, [r7, #8] - x+=size; - 8003bce: 79fb ldrb r3, [r7, #7] - 8003bd0: b29a uxth r2, r3 - 8003bd2: 89fb ldrh r3, [r7, #14] - 8003bd4: 4413 add r3, r2 - 8003bd6: 81fb strh r3, [r7, #14] + 8005f28: 68bb ldr r3, [r7, #8] + 8005f2a: 3301 adds r3, #1 + 8005f2c: 60bb str r3, [r7, #8] + x+=size; + 8005f2e: 79fb ldrb r3, [r7, #7] + 8005f30: b29a uxth r2, r3 + 8005f32: 89fb ldrh r3, [r7, #14] + 8005f34: 4413 add r3, r2 + 8005f36: 81fb strh r3, [r7, #14] } p++; - 8003bd8: 68bb ldr r3, [r7, #8] - 8003bda: 3301 adds r3, #1 - 8003bdc: 60bb str r3, [r7, #8] - while(*p!='\0') - 8003bde: 68bb ldr r3, [r7, #8] - 8003be0: 781b ldrb r3, [r3, #0] - 8003be2: 2b00 cmp r3, #0 - 8003be4: d1ac bne.n 8003b40 + 8005f38: 68bb ldr r3, [r7, #8] + 8005f3a: 3301 adds r3, #1 + 8005f3c: 60bb str r3, [r7, #8] + while(len--) + 8005f3e: 8d3b ldrh r3, [r7, #40] ; 0x28 + 8005f40: 1e5a subs r2, r3, #1 + 8005f42: 853a strh r2, [r7, #40] ; 0x28 + 8005f44: 2b00 cmp r3, #0 + 8005f46: d1a7 bne.n 8005e98 + 8005f48: e000 b.n 8005f4c + return; + 8005f4a: bf00 nop } } - 8003be6: bf00 nop - 8003be8: bf00 nop - 8003bea: 3714 adds r7, #20 - 8003bec: 46bd mov sp, r7 - 8003bee: bd90 pop {r4, r7, pc} - 8003bf0: 20000560 .word 0x20000560 + 8005f4c: 3714 adds r7, #20 + 8005f4e: 46bd mov sp, r7 + 8005f50: bd90 pop {r4, r7, pc} + 8005f52: bf00 nop + 8005f54: 20000820 .word 0x20000820 -08003bf4 <__libc_init_array>: - 8003bf4: b570 push {r4, r5, r6, lr} - 8003bf6: 2600 movs r6, #0 - 8003bf8: 4d0c ldr r5, [pc, #48] ; (8003c2c <__libc_init_array+0x38>) - 8003bfa: 4c0d ldr r4, [pc, #52] ; (8003c30 <__libc_init_array+0x3c>) - 8003bfc: 1b64 subs r4, r4, r5 - 8003bfe: 10a4 asrs r4, r4, #2 - 8003c00: 42a6 cmp r6, r4 - 8003c02: d109 bne.n 8003c18 <__libc_init_array+0x24> - 8003c04: f000 f822 bl 8003c4c <_init> - 8003c08: 2600 movs r6, #0 - 8003c0a: 4d0a ldr r5, [pc, #40] ; (8003c34 <__libc_init_array+0x40>) - 8003c0c: 4c0a ldr r4, [pc, #40] ; (8003c38 <__libc_init_array+0x44>) - 8003c0e: 1b64 subs r4, r4, r5 - 8003c10: 10a4 asrs r4, r4, #2 - 8003c12: 42a6 cmp r6, r4 - 8003c14: d105 bne.n 8003c22 <__libc_init_array+0x2e> - 8003c16: bd70 pop {r4, r5, r6, pc} - 8003c18: f855 3b04 ldr.w r3, [r5], #4 - 8003c1c: 4798 blx r3 - 8003c1e: 3601 adds r6, #1 - 8003c20: e7ee b.n 8003c00 <__libc_init_array+0xc> - 8003c22: f855 3b04 ldr.w r3, [r5], #4 - 8003c26: 4798 blx r3 - 8003c28: 3601 adds r6, #1 - 8003c2a: e7f2 b.n 8003c12 <__libc_init_array+0x1e> - 8003c2c: 080046fc .word 0x080046fc - 8003c30: 080046fc .word 0x080046fc - 8003c34: 080046fc .word 0x080046fc - 8003c38: 08004700 .word 0x08004700 +08005f58 <__errno>: + 8005f58: 4b01 ldr r3, [pc, #4] ; (8005f60 <__errno+0x8>) + 8005f5a: 6818 ldr r0, [r3, #0] + 8005f5c: 4770 bx lr + 8005f5e: bf00 nop + 8005f60: 20000024 .word 0x20000024 -08003c3c : - 8003c3c: 4603 mov r3, r0 - 8003c3e: 4402 add r2, r0 - 8003c40: 4293 cmp r3, r2 - 8003c42: d100 bne.n 8003c46 - 8003c44: 4770 bx lr - 8003c46: f803 1b01 strb.w r1, [r3], #1 - 8003c4a: e7f9 b.n 8003c40 +08005f64 <__libc_init_array>: + 8005f64: b570 push {r4, r5, r6, lr} + 8005f66: 2600 movs r6, #0 + 8005f68: 4d0c ldr r5, [pc, #48] ; (8005f9c <__libc_init_array+0x38>) + 8005f6a: 4c0d ldr r4, [pc, #52] ; (8005fa0 <__libc_init_array+0x3c>) + 8005f6c: 1b64 subs r4, r4, r5 + 8005f6e: 10a4 asrs r4, r4, #2 + 8005f70: 42a6 cmp r6, r4 + 8005f72: d109 bne.n 8005f88 <__libc_init_array+0x24> + 8005f74: f000 fc5c bl 8006830 <_init> + 8005f78: 2600 movs r6, #0 + 8005f7a: 4d0a ldr r5, [pc, #40] ; (8005fa4 <__libc_init_array+0x40>) + 8005f7c: 4c0a ldr r4, [pc, #40] ; (8005fa8 <__libc_init_array+0x44>) + 8005f7e: 1b64 subs r4, r4, r5 + 8005f80: 10a4 asrs r4, r4, #2 + 8005f82: 42a6 cmp r6, r4 + 8005f84: d105 bne.n 8005f92 <__libc_init_array+0x2e> + 8005f86: bd70 pop {r4, r5, r6, pc} + 8005f88: f855 3b04 ldr.w r3, [r5], #4 + 8005f8c: 4798 blx r3 + 8005f8e: 3601 adds r6, #1 + 8005f90: e7ee b.n 8005f70 <__libc_init_array+0xc> + 8005f92: f855 3b04 ldr.w r3, [r5], #4 + 8005f96: 4798 blx r3 + 8005f98: 3601 adds r6, #1 + 8005f9a: e7f2 b.n 8005f82 <__libc_init_array+0x1e> + 8005f9c: 080073e4 .word 0x080073e4 + 8005fa0: 080073e4 .word 0x080073e4 + 8005fa4: 080073e4 .word 0x080073e4 + 8005fa8: 080073e8 .word 0x080073e8 -08003c4c <_init>: - 8003c4c: b5f8 push {r3, r4, r5, r6, r7, lr} - 8003c4e: bf00 nop - 8003c50: bcf8 pop {r3, r4, r5, r6, r7} - 8003c52: bc08 pop {r3} - 8003c54: 469e mov lr, r3 - 8003c56: 4770 bx lr +08005fac : + 8005fac: 4603 mov r3, r0 + 8005fae: 4402 add r2, r0 + 8005fb0: 4293 cmp r3, r2 + 8005fb2: d100 bne.n 8005fb6 + 8005fb4: 4770 bx lr + 8005fb6: f803 1b01 strb.w r1, [r3], #1 + 8005fba: e7f9 b.n 8005fb0 -08003c58 <_fini>: - 8003c58: b5f8 push {r3, r4, r5, r6, r7, lr} - 8003c5a: bf00 nop - 8003c5c: bcf8 pop {r3, r4, r5, r6, r7} - 8003c5e: bc08 pop {r3} - 8003c60: 469e mov lr, r3 - 8003c62: 4770 bx lr +08005fbc : + 8005fbc: b40e push {r1, r2, r3} + 8005fbe: f06f 4100 mvn.w r1, #2147483648 ; 0x80000000 + 8005fc2: b500 push {lr} + 8005fc4: b09c sub sp, #112 ; 0x70 + 8005fc6: ab1d add r3, sp, #116 ; 0x74 + 8005fc8: 9002 str r0, [sp, #8] + 8005fca: 9006 str r0, [sp, #24] + 8005fcc: 9107 str r1, [sp, #28] + 8005fce: 9104 str r1, [sp, #16] + 8005fd0: 4808 ldr r0, [pc, #32] ; (8005ff4 ) + 8005fd2: 4909 ldr r1, [pc, #36] ; (8005ff8 ) + 8005fd4: f853 2b04 ldr.w r2, [r3], #4 + 8005fd8: 9105 str r1, [sp, #20] + 8005fda: 6800 ldr r0, [r0, #0] + 8005fdc: a902 add r1, sp, #8 + 8005fde: 9301 str r3, [sp, #4] + 8005fe0: f000 f868 bl 80060b4 <_svfiprintf_r> + 8005fe4: 2200 movs r2, #0 + 8005fe6: 9b02 ldr r3, [sp, #8] + 8005fe8: 701a strb r2, [r3, #0] + 8005fea: b01c add sp, #112 ; 0x70 + 8005fec: f85d eb04 ldr.w lr, [sp], #4 + 8005ff0: b003 add sp, #12 + 8005ff2: 4770 bx lr + 8005ff4: 20000024 .word 0x20000024 + 8005ff8: ffff0208 .word 0xffff0208 + +08005ffc <__ssputs_r>: + 8005ffc: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} + 8006000: 688e ldr r6, [r1, #8] + 8006002: 4682 mov sl, r0 + 8006004: 429e cmp r6, r3 + 8006006: 460c mov r4, r1 + 8006008: 4690 mov r8, r2 + 800600a: 461f mov r7, r3 + 800600c: d838 bhi.n 8006080 <__ssputs_r+0x84> + 800600e: 898a ldrh r2, [r1, #12] + 8006010: f412 6f90 tst.w r2, #1152 ; 0x480 + 8006014: d032 beq.n 800607c <__ssputs_r+0x80> + 8006016: 6825 ldr r5, [r4, #0] + 8006018: 6909 ldr r1, [r1, #16] + 800601a: 3301 adds r3, #1 + 800601c: eba5 0901 sub.w r9, r5, r1 + 8006020: 6965 ldr r5, [r4, #20] + 8006022: 444b add r3, r9 + 8006024: eb05 0545 add.w r5, r5, r5, lsl #1 + 8006028: eb05 75d5 add.w r5, r5, r5, lsr #31 + 800602c: 106d asrs r5, r5, #1 + 800602e: 429d cmp r5, r3 + 8006030: bf38 it cc + 8006032: 461d movcc r5, r3 + 8006034: 0553 lsls r3, r2, #21 + 8006036: d531 bpl.n 800609c <__ssputs_r+0xa0> + 8006038: 4629 mov r1, r5 + 800603a: f000 fb53 bl 80066e4 <_malloc_r> + 800603e: 4606 mov r6, r0 + 8006040: b950 cbnz r0, 8006058 <__ssputs_r+0x5c> + 8006042: 230c movs r3, #12 + 8006044: f04f 30ff mov.w r0, #4294967295 + 8006048: f8ca 3000 str.w r3, [sl] + 800604c: 89a3 ldrh r3, [r4, #12] + 800604e: f043 0340 orr.w r3, r3, #64 ; 0x40 + 8006052: 81a3 strh r3, [r4, #12] + 8006054: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} + 8006058: 464a mov r2, r9 + 800605a: 6921 ldr r1, [r4, #16] + 800605c: f000 face bl 80065fc + 8006060: 89a3 ldrh r3, [r4, #12] + 8006062: f423 6390 bic.w r3, r3, #1152 ; 0x480 + 8006066: f043 0380 orr.w r3, r3, #128 ; 0x80 + 800606a: 81a3 strh r3, [r4, #12] + 800606c: 6126 str r6, [r4, #16] + 800606e: 444e add r6, r9 + 8006070: 6026 str r6, [r4, #0] + 8006072: 463e mov r6, r7 + 8006074: 6165 str r5, [r4, #20] + 8006076: eba5 0509 sub.w r5, r5, r9 + 800607a: 60a5 str r5, [r4, #8] + 800607c: 42be cmp r6, r7 + 800607e: d900 bls.n 8006082 <__ssputs_r+0x86> + 8006080: 463e mov r6, r7 + 8006082: 4632 mov r2, r6 + 8006084: 4641 mov r1, r8 + 8006086: 6820 ldr r0, [r4, #0] + 8006088: f000 fac6 bl 8006618 + 800608c: 68a3 ldr r3, [r4, #8] + 800608e: 6822 ldr r2, [r4, #0] + 8006090: 1b9b subs r3, r3, r6 + 8006092: 4432 add r2, r6 + 8006094: 2000 movs r0, #0 + 8006096: 60a3 str r3, [r4, #8] + 8006098: 6022 str r2, [r4, #0] + 800609a: e7db b.n 8006054 <__ssputs_r+0x58> + 800609c: 462a mov r2, r5 + 800609e: f000 fb7b bl 8006798 <_realloc_r> + 80060a2: 4606 mov r6, r0 + 80060a4: 2800 cmp r0, #0 + 80060a6: d1e1 bne.n 800606c <__ssputs_r+0x70> + 80060a8: 4650 mov r0, sl + 80060aa: 6921 ldr r1, [r4, #16] + 80060ac: f000 face bl 800664c <_free_r> + 80060b0: e7c7 b.n 8006042 <__ssputs_r+0x46> + ... + +080060b4 <_svfiprintf_r>: + 80060b4: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} + 80060b8: 4698 mov r8, r3 + 80060ba: 898b ldrh r3, [r1, #12] + 80060bc: 4607 mov r7, r0 + 80060be: 061b lsls r3, r3, #24 + 80060c0: 460d mov r5, r1 + 80060c2: 4614 mov r4, r2 + 80060c4: b09d sub sp, #116 ; 0x74 + 80060c6: d50e bpl.n 80060e6 <_svfiprintf_r+0x32> + 80060c8: 690b ldr r3, [r1, #16] + 80060ca: b963 cbnz r3, 80060e6 <_svfiprintf_r+0x32> + 80060cc: 2140 movs r1, #64 ; 0x40 + 80060ce: f000 fb09 bl 80066e4 <_malloc_r> + 80060d2: 6028 str r0, [r5, #0] + 80060d4: 6128 str r0, [r5, #16] + 80060d6: b920 cbnz r0, 80060e2 <_svfiprintf_r+0x2e> + 80060d8: 230c movs r3, #12 + 80060da: 603b str r3, [r7, #0] + 80060dc: f04f 30ff mov.w r0, #4294967295 + 80060e0: e0d1 b.n 8006286 <_svfiprintf_r+0x1d2> + 80060e2: 2340 movs r3, #64 ; 0x40 + 80060e4: 616b str r3, [r5, #20] + 80060e6: 2300 movs r3, #0 + 80060e8: 9309 str r3, [sp, #36] ; 0x24 + 80060ea: 2320 movs r3, #32 + 80060ec: f88d 3029 strb.w r3, [sp, #41] ; 0x29 + 80060f0: 2330 movs r3, #48 ; 0x30 + 80060f2: f04f 0901 mov.w r9, #1 + 80060f6: f8cd 800c str.w r8, [sp, #12] + 80060fa: f8df 81a4 ldr.w r8, [pc, #420] ; 80062a0 <_svfiprintf_r+0x1ec> + 80060fe: f88d 302a strb.w r3, [sp, #42] ; 0x2a + 8006102: 4623 mov r3, r4 + 8006104: 469a mov sl, r3 + 8006106: f813 2b01 ldrb.w r2, [r3], #1 + 800610a: b10a cbz r2, 8006110 <_svfiprintf_r+0x5c> + 800610c: 2a25 cmp r2, #37 ; 0x25 + 800610e: d1f9 bne.n 8006104 <_svfiprintf_r+0x50> + 8006110: ebba 0b04 subs.w fp, sl, r4 + 8006114: d00b beq.n 800612e <_svfiprintf_r+0x7a> + 8006116: 465b mov r3, fp + 8006118: 4622 mov r2, r4 + 800611a: 4629 mov r1, r5 + 800611c: 4638 mov r0, r7 + 800611e: f7ff ff6d bl 8005ffc <__ssputs_r> + 8006122: 3001 adds r0, #1 + 8006124: f000 80aa beq.w 800627c <_svfiprintf_r+0x1c8> + 8006128: 9a09 ldr r2, [sp, #36] ; 0x24 + 800612a: 445a add r2, fp + 800612c: 9209 str r2, [sp, #36] ; 0x24 + 800612e: f89a 3000 ldrb.w r3, [sl] + 8006132: 2b00 cmp r3, #0 + 8006134: f000 80a2 beq.w 800627c <_svfiprintf_r+0x1c8> + 8006138: 2300 movs r3, #0 + 800613a: f04f 32ff mov.w r2, #4294967295 + 800613e: e9cd 2305 strd r2, r3, [sp, #20] + 8006142: f10a 0a01 add.w sl, sl, #1 + 8006146: 9304 str r3, [sp, #16] + 8006148: 9307 str r3, [sp, #28] + 800614a: f88d 3053 strb.w r3, [sp, #83] ; 0x53 + 800614e: 931a str r3, [sp, #104] ; 0x68 + 8006150: 4654 mov r4, sl + 8006152: 2205 movs r2, #5 + 8006154: f814 1b01 ldrb.w r1, [r4], #1 + 8006158: 4851 ldr r0, [pc, #324] ; (80062a0 <_svfiprintf_r+0x1ec>) + 800615a: f000 fa41 bl 80065e0 + 800615e: 9a04 ldr r2, [sp, #16] + 8006160: b9d8 cbnz r0, 800619a <_svfiprintf_r+0xe6> + 8006162: 06d0 lsls r0, r2, #27 + 8006164: bf44 itt mi + 8006166: 2320 movmi r3, #32 + 8006168: f88d 3053 strbmi.w r3, [sp, #83] ; 0x53 + 800616c: 0711 lsls r1, r2, #28 + 800616e: bf44 itt mi + 8006170: 232b movmi r3, #43 ; 0x2b + 8006172: f88d 3053 strbmi.w r3, [sp, #83] ; 0x53 + 8006176: f89a 3000 ldrb.w r3, [sl] + 800617a: 2b2a cmp r3, #42 ; 0x2a + 800617c: d015 beq.n 80061aa <_svfiprintf_r+0xf6> + 800617e: 4654 mov r4, sl + 8006180: 2000 movs r0, #0 + 8006182: f04f 0c0a mov.w ip, #10 + 8006186: 9a07 ldr r2, [sp, #28] + 8006188: 4621 mov r1, r4 + 800618a: f811 3b01 ldrb.w r3, [r1], #1 + 800618e: 3b30 subs r3, #48 ; 0x30 + 8006190: 2b09 cmp r3, #9 + 8006192: d94e bls.n 8006232 <_svfiprintf_r+0x17e> + 8006194: b1b0 cbz r0, 80061c4 <_svfiprintf_r+0x110> + 8006196: 9207 str r2, [sp, #28] + 8006198: e014 b.n 80061c4 <_svfiprintf_r+0x110> + 800619a: eba0 0308 sub.w r3, r0, r8 + 800619e: fa09 f303 lsl.w r3, r9, r3 + 80061a2: 4313 orrs r3, r2 + 80061a4: 46a2 mov sl, r4 + 80061a6: 9304 str r3, [sp, #16] + 80061a8: e7d2 b.n 8006150 <_svfiprintf_r+0x9c> + 80061aa: 9b03 ldr r3, [sp, #12] + 80061ac: 1d19 adds r1, r3, #4 + 80061ae: 681b ldr r3, [r3, #0] + 80061b0: 9103 str r1, [sp, #12] + 80061b2: 2b00 cmp r3, #0 + 80061b4: bfbb ittet lt + 80061b6: 425b neglt r3, r3 + 80061b8: f042 0202 orrlt.w r2, r2, #2 + 80061bc: 9307 strge r3, [sp, #28] + 80061be: 9307 strlt r3, [sp, #28] + 80061c0: bfb8 it lt + 80061c2: 9204 strlt r2, [sp, #16] + 80061c4: 7823 ldrb r3, [r4, #0] + 80061c6: 2b2e cmp r3, #46 ; 0x2e + 80061c8: d10c bne.n 80061e4 <_svfiprintf_r+0x130> + 80061ca: 7863 ldrb r3, [r4, #1] + 80061cc: 2b2a cmp r3, #42 ; 0x2a + 80061ce: d135 bne.n 800623c <_svfiprintf_r+0x188> + 80061d0: 9b03 ldr r3, [sp, #12] + 80061d2: 3402 adds r4, #2 + 80061d4: 1d1a adds r2, r3, #4 + 80061d6: 681b ldr r3, [r3, #0] + 80061d8: 9203 str r2, [sp, #12] + 80061da: 2b00 cmp r3, #0 + 80061dc: bfb8 it lt + 80061de: f04f 33ff movlt.w r3, #4294967295 + 80061e2: 9305 str r3, [sp, #20] + 80061e4: f8df a0c8 ldr.w sl, [pc, #200] ; 80062b0 <_svfiprintf_r+0x1fc> + 80061e8: 2203 movs r2, #3 + 80061ea: 4650 mov r0, sl + 80061ec: 7821 ldrb r1, [r4, #0] + 80061ee: f000 f9f7 bl 80065e0 + 80061f2: b140 cbz r0, 8006206 <_svfiprintf_r+0x152> + 80061f4: 2340 movs r3, #64 ; 0x40 + 80061f6: eba0 000a sub.w r0, r0, sl + 80061fa: fa03 f000 lsl.w r0, r3, r0 + 80061fe: 9b04 ldr r3, [sp, #16] + 8006200: 3401 adds r4, #1 + 8006202: 4303 orrs r3, r0 + 8006204: 9304 str r3, [sp, #16] + 8006206: f814 1b01 ldrb.w r1, [r4], #1 + 800620a: 2206 movs r2, #6 + 800620c: 4825 ldr r0, [pc, #148] ; (80062a4 <_svfiprintf_r+0x1f0>) + 800620e: f88d 1028 strb.w r1, [sp, #40] ; 0x28 + 8006212: f000 f9e5 bl 80065e0 + 8006216: 2800 cmp r0, #0 + 8006218: d038 beq.n 800628c <_svfiprintf_r+0x1d8> + 800621a: 4b23 ldr r3, [pc, #140] ; (80062a8 <_svfiprintf_r+0x1f4>) + 800621c: bb1b cbnz r3, 8006266 <_svfiprintf_r+0x1b2> + 800621e: 9b03 ldr r3, [sp, #12] + 8006220: 3307 adds r3, #7 + 8006222: f023 0307 bic.w r3, r3, #7 + 8006226: 3308 adds r3, #8 + 8006228: 9303 str r3, [sp, #12] + 800622a: 9b09 ldr r3, [sp, #36] ; 0x24 + 800622c: 4433 add r3, r6 + 800622e: 9309 str r3, [sp, #36] ; 0x24 + 8006230: e767 b.n 8006102 <_svfiprintf_r+0x4e> + 8006232: 460c mov r4, r1 + 8006234: 2001 movs r0, #1 + 8006236: fb0c 3202 mla r2, ip, r2, r3 + 800623a: e7a5 b.n 8006188 <_svfiprintf_r+0xd4> + 800623c: 2300 movs r3, #0 + 800623e: f04f 0c0a mov.w ip, #10 + 8006242: 4619 mov r1, r3 + 8006244: 3401 adds r4, #1 + 8006246: 9305 str r3, [sp, #20] + 8006248: 4620 mov r0, r4 + 800624a: f810 2b01 ldrb.w r2, [r0], #1 + 800624e: 3a30 subs r2, #48 ; 0x30 + 8006250: 2a09 cmp r2, #9 + 8006252: d903 bls.n 800625c <_svfiprintf_r+0x1a8> + 8006254: 2b00 cmp r3, #0 + 8006256: d0c5 beq.n 80061e4 <_svfiprintf_r+0x130> + 8006258: 9105 str r1, [sp, #20] + 800625a: e7c3 b.n 80061e4 <_svfiprintf_r+0x130> + 800625c: 4604 mov r4, r0 + 800625e: 2301 movs r3, #1 + 8006260: fb0c 2101 mla r1, ip, r1, r2 + 8006264: e7f0 b.n 8006248 <_svfiprintf_r+0x194> + 8006266: ab03 add r3, sp, #12 + 8006268: 9300 str r3, [sp, #0] + 800626a: 462a mov r2, r5 + 800626c: 4638 mov r0, r7 + 800626e: 4b0f ldr r3, [pc, #60] ; (80062ac <_svfiprintf_r+0x1f8>) + 8006270: a904 add r1, sp, #16 + 8006272: f3af 8000 nop.w + 8006276: 1c42 adds r2, r0, #1 + 8006278: 4606 mov r6, r0 + 800627a: d1d6 bne.n 800622a <_svfiprintf_r+0x176> + 800627c: 89ab ldrh r3, [r5, #12] + 800627e: 065b lsls r3, r3, #25 + 8006280: f53f af2c bmi.w 80060dc <_svfiprintf_r+0x28> + 8006284: 9809 ldr r0, [sp, #36] ; 0x24 + 8006286: b01d add sp, #116 ; 0x74 + 8006288: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} + 800628c: ab03 add r3, sp, #12 + 800628e: 9300 str r3, [sp, #0] + 8006290: 462a mov r2, r5 + 8006292: 4638 mov r0, r7 + 8006294: 4b05 ldr r3, [pc, #20] ; (80062ac <_svfiprintf_r+0x1f8>) + 8006296: a904 add r1, sp, #16 + 8006298: f000 f87c bl 8006394 <_printf_i> + 800629c: e7eb b.n 8006276 <_svfiprintf_r+0x1c2> + 800629e: bf00 nop + 80062a0: 080073b0 .word 0x080073b0 + 80062a4: 080073ba .word 0x080073ba + 80062a8: 00000000 .word 0x00000000 + 80062ac: 08005ffd .word 0x08005ffd + 80062b0: 080073b6 .word 0x080073b6 + +080062b4 <_printf_common>: + 80062b4: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} + 80062b8: 4616 mov r6, r2 + 80062ba: 4699 mov r9, r3 + 80062bc: 688a ldr r2, [r1, #8] + 80062be: 690b ldr r3, [r1, #16] + 80062c0: 4607 mov r7, r0 + 80062c2: 4293 cmp r3, r2 + 80062c4: bfb8 it lt + 80062c6: 4613 movlt r3, r2 + 80062c8: 6033 str r3, [r6, #0] + 80062ca: f891 2043 ldrb.w r2, [r1, #67] ; 0x43 + 80062ce: 460c mov r4, r1 + 80062d0: f8dd 8020 ldr.w r8, [sp, #32] + 80062d4: b10a cbz r2, 80062da <_printf_common+0x26> + 80062d6: 3301 adds r3, #1 + 80062d8: 6033 str r3, [r6, #0] + 80062da: 6823 ldr r3, [r4, #0] + 80062dc: 0699 lsls r1, r3, #26 + 80062de: bf42 ittt mi + 80062e0: 6833 ldrmi r3, [r6, #0] + 80062e2: 3302 addmi r3, #2 + 80062e4: 6033 strmi r3, [r6, #0] + 80062e6: 6825 ldr r5, [r4, #0] + 80062e8: f015 0506 ands.w r5, r5, #6 + 80062ec: d106 bne.n 80062fc <_printf_common+0x48> + 80062ee: f104 0a19 add.w sl, r4, #25 + 80062f2: 68e3 ldr r3, [r4, #12] + 80062f4: 6832 ldr r2, [r6, #0] + 80062f6: 1a9b subs r3, r3, r2 + 80062f8: 42ab cmp r3, r5 + 80062fa: dc28 bgt.n 800634e <_printf_common+0x9a> + 80062fc: f894 2043 ldrb.w r2, [r4, #67] ; 0x43 + 8006300: 1e13 subs r3, r2, #0 + 8006302: 6822 ldr r2, [r4, #0] + 8006304: bf18 it ne + 8006306: 2301 movne r3, #1 + 8006308: 0692 lsls r2, r2, #26 + 800630a: d42d bmi.n 8006368 <_printf_common+0xb4> + 800630c: 4649 mov r1, r9 + 800630e: 4638 mov r0, r7 + 8006310: f104 0243 add.w r2, r4, #67 ; 0x43 + 8006314: 47c0 blx r8 + 8006316: 3001 adds r0, #1 + 8006318: d020 beq.n 800635c <_printf_common+0xa8> + 800631a: 6823 ldr r3, [r4, #0] + 800631c: 68e5 ldr r5, [r4, #12] + 800631e: f003 0306 and.w r3, r3, #6 + 8006322: 2b04 cmp r3, #4 + 8006324: bf18 it ne + 8006326: 2500 movne r5, #0 + 8006328: 6832 ldr r2, [r6, #0] + 800632a: f04f 0600 mov.w r6, #0 + 800632e: 68a3 ldr r3, [r4, #8] + 8006330: bf08 it eq + 8006332: 1aad subeq r5, r5, r2 + 8006334: 6922 ldr r2, [r4, #16] + 8006336: bf08 it eq + 8006338: ea25 75e5 biceq.w r5, r5, r5, asr #31 + 800633c: 4293 cmp r3, r2 + 800633e: bfc4 itt gt + 8006340: 1a9b subgt r3, r3, r2 + 8006342: 18ed addgt r5, r5, r3 + 8006344: 341a adds r4, #26 + 8006346: 42b5 cmp r5, r6 + 8006348: d11a bne.n 8006380 <_printf_common+0xcc> + 800634a: 2000 movs r0, #0 + 800634c: e008 b.n 8006360 <_printf_common+0xac> + 800634e: 2301 movs r3, #1 + 8006350: 4652 mov r2, sl + 8006352: 4649 mov r1, r9 + 8006354: 4638 mov r0, r7 + 8006356: 47c0 blx r8 + 8006358: 3001 adds r0, #1 + 800635a: d103 bne.n 8006364 <_printf_common+0xb0> + 800635c: f04f 30ff mov.w r0, #4294967295 + 8006360: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} + 8006364: 3501 adds r5, #1 + 8006366: e7c4 b.n 80062f2 <_printf_common+0x3e> + 8006368: 2030 movs r0, #48 ; 0x30 + 800636a: 18e1 adds r1, r4, r3 + 800636c: f881 0043 strb.w r0, [r1, #67] ; 0x43 + 8006370: 1c5a adds r2, r3, #1 + 8006372: f894 1045 ldrb.w r1, [r4, #69] ; 0x45 + 8006376: 4422 add r2, r4 + 8006378: 3302 adds r3, #2 + 800637a: f882 1043 strb.w r1, [r2, #67] ; 0x43 + 800637e: e7c5 b.n 800630c <_printf_common+0x58> + 8006380: 2301 movs r3, #1 + 8006382: 4622 mov r2, r4 + 8006384: 4649 mov r1, r9 + 8006386: 4638 mov r0, r7 + 8006388: 47c0 blx r8 + 800638a: 3001 adds r0, #1 + 800638c: d0e6 beq.n 800635c <_printf_common+0xa8> + 800638e: 3601 adds r6, #1 + 8006390: e7d9 b.n 8006346 <_printf_common+0x92> + ... + +08006394 <_printf_i>: + 8006394: e92d 47ff stmdb sp!, {r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, lr} + 8006398: 460c mov r4, r1 + 800639a: 7e27 ldrb r7, [r4, #24] + 800639c: 4691 mov r9, r2 + 800639e: 2f78 cmp r7, #120 ; 0x78 + 80063a0: 4680 mov r8, r0 + 80063a2: 469a mov sl, r3 + 80063a4: 990c ldr r1, [sp, #48] ; 0x30 + 80063a6: f104 0243 add.w r2, r4, #67 ; 0x43 + 80063aa: d807 bhi.n 80063bc <_printf_i+0x28> + 80063ac: 2f62 cmp r7, #98 ; 0x62 + 80063ae: d80a bhi.n 80063c6 <_printf_i+0x32> + 80063b0: 2f00 cmp r7, #0 + 80063b2: f000 80d9 beq.w 8006568 <_printf_i+0x1d4> + 80063b6: 2f58 cmp r7, #88 ; 0x58 + 80063b8: f000 80a4 beq.w 8006504 <_printf_i+0x170> + 80063bc: f104 0642 add.w r6, r4, #66 ; 0x42 + 80063c0: f884 7042 strb.w r7, [r4, #66] ; 0x42 + 80063c4: e03a b.n 800643c <_printf_i+0xa8> + 80063c6: f1a7 0363 sub.w r3, r7, #99 ; 0x63 + 80063ca: 2b15 cmp r3, #21 + 80063cc: d8f6 bhi.n 80063bc <_printf_i+0x28> + 80063ce: a001 add r0, pc, #4 ; (adr r0, 80063d4 <_printf_i+0x40>) + 80063d0: f850 f023 ldr.w pc, [r0, r3, lsl #2] + 80063d4: 0800642d .word 0x0800642d + 80063d8: 08006441 .word 0x08006441 + 80063dc: 080063bd .word 0x080063bd + 80063e0: 080063bd .word 0x080063bd + 80063e4: 080063bd .word 0x080063bd + 80063e8: 080063bd .word 0x080063bd + 80063ec: 08006441 .word 0x08006441 + 80063f0: 080063bd .word 0x080063bd + 80063f4: 080063bd .word 0x080063bd + 80063f8: 080063bd .word 0x080063bd + 80063fc: 080063bd .word 0x080063bd + 8006400: 0800654f .word 0x0800654f + 8006404: 08006471 .word 0x08006471 + 8006408: 08006531 .word 0x08006531 + 800640c: 080063bd .word 0x080063bd + 8006410: 080063bd .word 0x080063bd + 8006414: 08006571 .word 0x08006571 + 8006418: 080063bd .word 0x080063bd + 800641c: 08006471 .word 0x08006471 + 8006420: 080063bd .word 0x080063bd + 8006424: 080063bd .word 0x080063bd + 8006428: 08006539 .word 0x08006539 + 800642c: 680b ldr r3, [r1, #0] + 800642e: f104 0642 add.w r6, r4, #66 ; 0x42 + 8006432: 1d1a adds r2, r3, #4 + 8006434: 681b ldr r3, [r3, #0] + 8006436: 600a str r2, [r1, #0] + 8006438: f884 3042 strb.w r3, [r4, #66] ; 0x42 + 800643c: 2301 movs r3, #1 + 800643e: e0a4 b.n 800658a <_printf_i+0x1f6> + 8006440: 6825 ldr r5, [r4, #0] + 8006442: 6808 ldr r0, [r1, #0] + 8006444: 062e lsls r6, r5, #24 + 8006446: f100 0304 add.w r3, r0, #4 + 800644a: d50a bpl.n 8006462 <_printf_i+0xce> + 800644c: 6805 ldr r5, [r0, #0] + 800644e: 600b str r3, [r1, #0] + 8006450: 2d00 cmp r5, #0 + 8006452: da03 bge.n 800645c <_printf_i+0xc8> + 8006454: 232d movs r3, #45 ; 0x2d + 8006456: 426d negs r5, r5 + 8006458: f884 3043 strb.w r3, [r4, #67] ; 0x43 + 800645c: 230a movs r3, #10 + 800645e: 485e ldr r0, [pc, #376] ; (80065d8 <_printf_i+0x244>) + 8006460: e019 b.n 8006496 <_printf_i+0x102> + 8006462: f015 0f40 tst.w r5, #64 ; 0x40 + 8006466: 6805 ldr r5, [r0, #0] + 8006468: 600b str r3, [r1, #0] + 800646a: bf18 it ne + 800646c: b22d sxthne r5, r5 + 800646e: e7ef b.n 8006450 <_printf_i+0xbc> + 8006470: 680b ldr r3, [r1, #0] + 8006472: 6825 ldr r5, [r4, #0] + 8006474: 1d18 adds r0, r3, #4 + 8006476: 6008 str r0, [r1, #0] + 8006478: 0628 lsls r0, r5, #24 + 800647a: d501 bpl.n 8006480 <_printf_i+0xec> + 800647c: 681d ldr r5, [r3, #0] + 800647e: e002 b.n 8006486 <_printf_i+0xf2> + 8006480: 0669 lsls r1, r5, #25 + 8006482: d5fb bpl.n 800647c <_printf_i+0xe8> + 8006484: 881d ldrh r5, [r3, #0] + 8006486: 2f6f cmp r7, #111 ; 0x6f + 8006488: bf0c ite eq + 800648a: 2308 moveq r3, #8 + 800648c: 230a movne r3, #10 + 800648e: 4852 ldr r0, [pc, #328] ; (80065d8 <_printf_i+0x244>) + 8006490: 2100 movs r1, #0 + 8006492: f884 1043 strb.w r1, [r4, #67] ; 0x43 + 8006496: 6866 ldr r6, [r4, #4] + 8006498: 2e00 cmp r6, #0 + 800649a: bfa8 it ge + 800649c: 6821 ldrge r1, [r4, #0] + 800649e: 60a6 str r6, [r4, #8] + 80064a0: bfa4 itt ge + 80064a2: f021 0104 bicge.w r1, r1, #4 + 80064a6: 6021 strge r1, [r4, #0] + 80064a8: b90d cbnz r5, 80064ae <_printf_i+0x11a> + 80064aa: 2e00 cmp r6, #0 + 80064ac: d04d beq.n 800654a <_printf_i+0x1b6> + 80064ae: 4616 mov r6, r2 + 80064b0: fbb5 f1f3 udiv r1, r5, r3 + 80064b4: fb03 5711 mls r7, r3, r1, r5 + 80064b8: 5dc7 ldrb r7, [r0, r7] + 80064ba: f806 7d01 strb.w r7, [r6, #-1]! + 80064be: 462f mov r7, r5 + 80064c0: 42bb cmp r3, r7 + 80064c2: 460d mov r5, r1 + 80064c4: d9f4 bls.n 80064b0 <_printf_i+0x11c> + 80064c6: 2b08 cmp r3, #8 + 80064c8: d10b bne.n 80064e2 <_printf_i+0x14e> + 80064ca: 6823 ldr r3, [r4, #0] + 80064cc: 07df lsls r7, r3, #31 + 80064ce: d508 bpl.n 80064e2 <_printf_i+0x14e> + 80064d0: 6923 ldr r3, [r4, #16] + 80064d2: 6861 ldr r1, [r4, #4] + 80064d4: 4299 cmp r1, r3 + 80064d6: bfde ittt le + 80064d8: 2330 movle r3, #48 ; 0x30 + 80064da: f806 3c01 strble.w r3, [r6, #-1] + 80064de: f106 36ff addle.w r6, r6, #4294967295 + 80064e2: 1b92 subs r2, r2, r6 + 80064e4: 6122 str r2, [r4, #16] + 80064e6: 464b mov r3, r9 + 80064e8: 4621 mov r1, r4 + 80064ea: 4640 mov r0, r8 + 80064ec: f8cd a000 str.w sl, [sp] + 80064f0: aa03 add r2, sp, #12 + 80064f2: f7ff fedf bl 80062b4 <_printf_common> + 80064f6: 3001 adds r0, #1 + 80064f8: d14c bne.n 8006594 <_printf_i+0x200> + 80064fa: f04f 30ff mov.w r0, #4294967295 + 80064fe: b004 add sp, #16 + 8006500: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} + 8006504: 4834 ldr r0, [pc, #208] ; (80065d8 <_printf_i+0x244>) + 8006506: f884 7045 strb.w r7, [r4, #69] ; 0x45 + 800650a: 680e ldr r6, [r1, #0] + 800650c: 6823 ldr r3, [r4, #0] + 800650e: f856 5b04 ldr.w r5, [r6], #4 + 8006512: 061f lsls r7, r3, #24 + 8006514: 600e str r6, [r1, #0] + 8006516: d514 bpl.n 8006542 <_printf_i+0x1ae> + 8006518: 07d9 lsls r1, r3, #31 + 800651a: bf44 itt mi + 800651c: f043 0320 orrmi.w r3, r3, #32 + 8006520: 6023 strmi r3, [r4, #0] + 8006522: b91d cbnz r5, 800652c <_printf_i+0x198> + 8006524: 6823 ldr r3, [r4, #0] + 8006526: f023 0320 bic.w r3, r3, #32 + 800652a: 6023 str r3, [r4, #0] + 800652c: 2310 movs r3, #16 + 800652e: e7af b.n 8006490 <_printf_i+0xfc> + 8006530: 6823 ldr r3, [r4, #0] + 8006532: f043 0320 orr.w r3, r3, #32 + 8006536: 6023 str r3, [r4, #0] + 8006538: 2378 movs r3, #120 ; 0x78 + 800653a: 4828 ldr r0, [pc, #160] ; (80065dc <_printf_i+0x248>) + 800653c: f884 3045 strb.w r3, [r4, #69] ; 0x45 + 8006540: e7e3 b.n 800650a <_printf_i+0x176> + 8006542: 065e lsls r6, r3, #25 + 8006544: bf48 it mi + 8006546: b2ad uxthmi r5, r5 + 8006548: e7e6 b.n 8006518 <_printf_i+0x184> + 800654a: 4616 mov r6, r2 + 800654c: e7bb b.n 80064c6 <_printf_i+0x132> + 800654e: 680b ldr r3, [r1, #0] + 8006550: 6826 ldr r6, [r4, #0] + 8006552: 1d1d adds r5, r3, #4 + 8006554: 6960 ldr r0, [r4, #20] + 8006556: 600d str r5, [r1, #0] + 8006558: 0635 lsls r5, r6, #24 + 800655a: 681b ldr r3, [r3, #0] + 800655c: d501 bpl.n 8006562 <_printf_i+0x1ce> + 800655e: 6018 str r0, [r3, #0] + 8006560: e002 b.n 8006568 <_printf_i+0x1d4> + 8006562: 0671 lsls r1, r6, #25 + 8006564: d5fb bpl.n 800655e <_printf_i+0x1ca> + 8006566: 8018 strh r0, [r3, #0] + 8006568: 2300 movs r3, #0 + 800656a: 4616 mov r6, r2 + 800656c: 6123 str r3, [r4, #16] + 800656e: e7ba b.n 80064e6 <_printf_i+0x152> + 8006570: 680b ldr r3, [r1, #0] + 8006572: 1d1a adds r2, r3, #4 + 8006574: 600a str r2, [r1, #0] + 8006576: 681e ldr r6, [r3, #0] + 8006578: 2100 movs r1, #0 + 800657a: 4630 mov r0, r6 + 800657c: 6862 ldr r2, [r4, #4] + 800657e: f000 f82f bl 80065e0 + 8006582: b108 cbz r0, 8006588 <_printf_i+0x1f4> + 8006584: 1b80 subs r0, r0, r6 + 8006586: 6060 str r0, [r4, #4] + 8006588: 6863 ldr r3, [r4, #4] + 800658a: 6123 str r3, [r4, #16] + 800658c: 2300 movs r3, #0 + 800658e: f884 3043 strb.w r3, [r4, #67] ; 0x43 + 8006592: e7a8 b.n 80064e6 <_printf_i+0x152> + 8006594: 4632 mov r2, r6 + 8006596: 4649 mov r1, r9 + 8006598: 4640 mov r0, r8 + 800659a: 6923 ldr r3, [r4, #16] + 800659c: 47d0 blx sl + 800659e: 3001 adds r0, #1 + 80065a0: d0ab beq.n 80064fa <_printf_i+0x166> + 80065a2: 6823 ldr r3, [r4, #0] + 80065a4: 079b lsls r3, r3, #30 + 80065a6: d413 bmi.n 80065d0 <_printf_i+0x23c> + 80065a8: 68e0 ldr r0, [r4, #12] + 80065aa: 9b03 ldr r3, [sp, #12] + 80065ac: 4298 cmp r0, r3 + 80065ae: bfb8 it lt + 80065b0: 4618 movlt r0, r3 + 80065b2: e7a4 b.n 80064fe <_printf_i+0x16a> + 80065b4: 2301 movs r3, #1 + 80065b6: 4632 mov r2, r6 + 80065b8: 4649 mov r1, r9 + 80065ba: 4640 mov r0, r8 + 80065bc: 47d0 blx sl + 80065be: 3001 adds r0, #1 + 80065c0: d09b beq.n 80064fa <_printf_i+0x166> + 80065c2: 3501 adds r5, #1 + 80065c4: 68e3 ldr r3, [r4, #12] + 80065c6: 9903 ldr r1, [sp, #12] + 80065c8: 1a5b subs r3, r3, r1 + 80065ca: 42ab cmp r3, r5 + 80065cc: dcf2 bgt.n 80065b4 <_printf_i+0x220> + 80065ce: e7eb b.n 80065a8 <_printf_i+0x214> + 80065d0: 2500 movs r5, #0 + 80065d2: f104 0619 add.w r6, r4, #25 + 80065d6: e7f5 b.n 80065c4 <_printf_i+0x230> + 80065d8: 080073c1 .word 0x080073c1 + 80065dc: 080073d2 .word 0x080073d2 + +080065e0 : + 80065e0: 4603 mov r3, r0 + 80065e2: b510 push {r4, lr} + 80065e4: b2c9 uxtb r1, r1 + 80065e6: 4402 add r2, r0 + 80065e8: 4293 cmp r3, r2 + 80065ea: 4618 mov r0, r3 + 80065ec: d101 bne.n 80065f2 + 80065ee: 2000 movs r0, #0 + 80065f0: e003 b.n 80065fa + 80065f2: 7804 ldrb r4, [r0, #0] + 80065f4: 3301 adds r3, #1 + 80065f6: 428c cmp r4, r1 + 80065f8: d1f6 bne.n 80065e8 + 80065fa: bd10 pop {r4, pc} + +080065fc : + 80065fc: 440a add r2, r1 + 80065fe: 4291 cmp r1, r2 + 8006600: f100 33ff add.w r3, r0, #4294967295 + 8006604: d100 bne.n 8006608 + 8006606: 4770 bx lr + 8006608: b510 push {r4, lr} + 800660a: f811 4b01 ldrb.w r4, [r1], #1 + 800660e: 4291 cmp r1, r2 + 8006610: f803 4f01 strb.w r4, [r3, #1]! + 8006614: d1f9 bne.n 800660a + 8006616: bd10 pop {r4, pc} + +08006618 : + 8006618: 4288 cmp r0, r1 + 800661a: b510 push {r4, lr} + 800661c: eb01 0402 add.w r4, r1, r2 + 8006620: d902 bls.n 8006628 + 8006622: 4284 cmp r4, r0 + 8006624: 4623 mov r3, r4 + 8006626: d807 bhi.n 8006638 + 8006628: 1e43 subs r3, r0, #1 + 800662a: 42a1 cmp r1, r4 + 800662c: d008 beq.n 8006640 + 800662e: f811 2b01 ldrb.w r2, [r1], #1 + 8006632: f803 2f01 strb.w r2, [r3, #1]! + 8006636: e7f8 b.n 800662a + 8006638: 4601 mov r1, r0 + 800663a: 4402 add r2, r0 + 800663c: 428a cmp r2, r1 + 800663e: d100 bne.n 8006642 + 8006640: bd10 pop {r4, pc} + 8006642: f813 4d01 ldrb.w r4, [r3, #-1]! + 8006646: f802 4d01 strb.w r4, [r2, #-1]! + 800664a: e7f7 b.n 800663c + +0800664c <_free_r>: + 800664c: b538 push {r3, r4, r5, lr} + 800664e: 4605 mov r5, r0 + 8006650: 2900 cmp r1, #0 + 8006652: d043 beq.n 80066dc <_free_r+0x90> + 8006654: f851 3c04 ldr.w r3, [r1, #-4] + 8006658: 1f0c subs r4, r1, #4 + 800665a: 2b00 cmp r3, #0 + 800665c: bfb8 it lt + 800665e: 18e4 addlt r4, r4, r3 + 8006660: f000 f8d0 bl 8006804 <__malloc_lock> + 8006664: 4a1e ldr r2, [pc, #120] ; (80066e0 <_free_r+0x94>) + 8006666: 6813 ldr r3, [r2, #0] + 8006668: 4610 mov r0, r2 + 800666a: b933 cbnz r3, 800667a <_free_r+0x2e> + 800666c: 6063 str r3, [r4, #4] + 800666e: 6014 str r4, [r2, #0] + 8006670: 4628 mov r0, r5 + 8006672: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr} + 8006676: f000 b8cb b.w 8006810 <__malloc_unlock> + 800667a: 42a3 cmp r3, r4 + 800667c: d90a bls.n 8006694 <_free_r+0x48> + 800667e: 6821 ldr r1, [r4, #0] + 8006680: 1862 adds r2, r4, r1 + 8006682: 4293 cmp r3, r2 + 8006684: bf01 itttt eq + 8006686: 681a ldreq r2, [r3, #0] + 8006688: 685b ldreq r3, [r3, #4] + 800668a: 1852 addeq r2, r2, r1 + 800668c: 6022 streq r2, [r4, #0] + 800668e: 6063 str r3, [r4, #4] + 8006690: 6004 str r4, [r0, #0] + 8006692: e7ed b.n 8006670 <_free_r+0x24> + 8006694: 461a mov r2, r3 + 8006696: 685b ldr r3, [r3, #4] + 8006698: b10b cbz r3, 800669e <_free_r+0x52> + 800669a: 42a3 cmp r3, r4 + 800669c: d9fa bls.n 8006694 <_free_r+0x48> + 800669e: 6811 ldr r1, [r2, #0] + 80066a0: 1850 adds r0, r2, r1 + 80066a2: 42a0 cmp r0, r4 + 80066a4: d10b bne.n 80066be <_free_r+0x72> + 80066a6: 6820 ldr r0, [r4, #0] + 80066a8: 4401 add r1, r0 + 80066aa: 1850 adds r0, r2, r1 + 80066ac: 4283 cmp r3, r0 + 80066ae: 6011 str r1, [r2, #0] + 80066b0: d1de bne.n 8006670 <_free_r+0x24> + 80066b2: 6818 ldr r0, [r3, #0] + 80066b4: 685b ldr r3, [r3, #4] + 80066b6: 4401 add r1, r0 + 80066b8: 6011 str r1, [r2, #0] + 80066ba: 6053 str r3, [r2, #4] + 80066bc: e7d8 b.n 8006670 <_free_r+0x24> + 80066be: d902 bls.n 80066c6 <_free_r+0x7a> + 80066c0: 230c movs r3, #12 + 80066c2: 602b str r3, [r5, #0] + 80066c4: e7d4 b.n 8006670 <_free_r+0x24> + 80066c6: 6820 ldr r0, [r4, #0] + 80066c8: 1821 adds r1, r4, r0 + 80066ca: 428b cmp r3, r1 + 80066cc: bf01 itttt eq + 80066ce: 6819 ldreq r1, [r3, #0] + 80066d0: 685b ldreq r3, [r3, #4] + 80066d2: 1809 addeq r1, r1, r0 + 80066d4: 6021 streq r1, [r4, #0] + 80066d6: 6063 str r3, [r4, #4] + 80066d8: 6054 str r4, [r2, #4] + 80066da: e7c9 b.n 8006670 <_free_r+0x24> + 80066dc: bd38 pop {r3, r4, r5, pc} + 80066de: bf00 nop + 80066e0: 200000dc .word 0x200000dc + +080066e4 <_malloc_r>: + 80066e4: b5f8 push {r3, r4, r5, r6, r7, lr} + 80066e6: 1ccd adds r5, r1, #3 + 80066e8: f025 0503 bic.w r5, r5, #3 + 80066ec: 3508 adds r5, #8 + 80066ee: 2d0c cmp r5, #12 + 80066f0: bf38 it cc + 80066f2: 250c movcc r5, #12 + 80066f4: 2d00 cmp r5, #0 + 80066f6: 4606 mov r6, r0 + 80066f8: db01 blt.n 80066fe <_malloc_r+0x1a> + 80066fa: 42a9 cmp r1, r5 + 80066fc: d903 bls.n 8006706 <_malloc_r+0x22> + 80066fe: 230c movs r3, #12 + 8006700: 6033 str r3, [r6, #0] + 8006702: 2000 movs r0, #0 + 8006704: bdf8 pop {r3, r4, r5, r6, r7, pc} + 8006706: f000 f87d bl 8006804 <__malloc_lock> + 800670a: 4921 ldr r1, [pc, #132] ; (8006790 <_malloc_r+0xac>) + 800670c: 680a ldr r2, [r1, #0] + 800670e: 4614 mov r4, r2 + 8006710: b99c cbnz r4, 800673a <_malloc_r+0x56> + 8006712: 4f20 ldr r7, [pc, #128] ; (8006794 <_malloc_r+0xb0>) + 8006714: 683b ldr r3, [r7, #0] + 8006716: b923 cbnz r3, 8006722 <_malloc_r+0x3e> + 8006718: 4621 mov r1, r4 + 800671a: 4630 mov r0, r6 + 800671c: f000 f862 bl 80067e4 <_sbrk_r> + 8006720: 6038 str r0, [r7, #0] + 8006722: 4629 mov r1, r5 + 8006724: 4630 mov r0, r6 + 8006726: f000 f85d bl 80067e4 <_sbrk_r> + 800672a: 1c43 adds r3, r0, #1 + 800672c: d123 bne.n 8006776 <_malloc_r+0x92> + 800672e: 230c movs r3, #12 + 8006730: 4630 mov r0, r6 + 8006732: 6033 str r3, [r6, #0] + 8006734: f000 f86c bl 8006810 <__malloc_unlock> + 8006738: e7e3 b.n 8006702 <_malloc_r+0x1e> + 800673a: 6823 ldr r3, [r4, #0] + 800673c: 1b5b subs r3, r3, r5 + 800673e: d417 bmi.n 8006770 <_malloc_r+0x8c> + 8006740: 2b0b cmp r3, #11 + 8006742: d903 bls.n 800674c <_malloc_r+0x68> + 8006744: 6023 str r3, [r4, #0] + 8006746: 441c add r4, r3 + 8006748: 6025 str r5, [r4, #0] + 800674a: e004 b.n 8006756 <_malloc_r+0x72> + 800674c: 6863 ldr r3, [r4, #4] + 800674e: 42a2 cmp r2, r4 + 8006750: bf0c ite eq + 8006752: 600b streq r3, [r1, #0] + 8006754: 6053 strne r3, [r2, #4] + 8006756: 4630 mov r0, r6 + 8006758: f000 f85a bl 8006810 <__malloc_unlock> + 800675c: f104 000b add.w r0, r4, #11 + 8006760: 1d23 adds r3, r4, #4 + 8006762: f020 0007 bic.w r0, r0, #7 + 8006766: 1ac2 subs r2, r0, r3 + 8006768: d0cc beq.n 8006704 <_malloc_r+0x20> + 800676a: 1a1b subs r3, r3, r0 + 800676c: 50a3 str r3, [r4, r2] + 800676e: e7c9 b.n 8006704 <_malloc_r+0x20> + 8006770: 4622 mov r2, r4 + 8006772: 6864 ldr r4, [r4, #4] + 8006774: e7cc b.n 8006710 <_malloc_r+0x2c> + 8006776: 1cc4 adds r4, r0, #3 + 8006778: f024 0403 bic.w r4, r4, #3 + 800677c: 42a0 cmp r0, r4 + 800677e: d0e3 beq.n 8006748 <_malloc_r+0x64> + 8006780: 1a21 subs r1, r4, r0 + 8006782: 4630 mov r0, r6 + 8006784: f000 f82e bl 80067e4 <_sbrk_r> + 8006788: 3001 adds r0, #1 + 800678a: d1dd bne.n 8006748 <_malloc_r+0x64> + 800678c: e7cf b.n 800672e <_malloc_r+0x4a> + 800678e: bf00 nop + 8006790: 200000dc .word 0x200000dc + 8006794: 200000e0 .word 0x200000e0 + +08006798 <_realloc_r>: + 8006798: b5f8 push {r3, r4, r5, r6, r7, lr} + 800679a: 4607 mov r7, r0 + 800679c: 4614 mov r4, r2 + 800679e: 460e mov r6, r1 + 80067a0: b921 cbnz r1, 80067ac <_realloc_r+0x14> + 80067a2: 4611 mov r1, r2 + 80067a4: e8bd 40f8 ldmia.w sp!, {r3, r4, r5, r6, r7, lr} + 80067a8: f7ff bf9c b.w 80066e4 <_malloc_r> + 80067ac: b922 cbnz r2, 80067b8 <_realloc_r+0x20> + 80067ae: f7ff ff4d bl 800664c <_free_r> + 80067b2: 4625 mov r5, r4 + 80067b4: 4628 mov r0, r5 + 80067b6: bdf8 pop {r3, r4, r5, r6, r7, pc} + 80067b8: f000 f830 bl 800681c <_malloc_usable_size_r> + 80067bc: 42a0 cmp r0, r4 + 80067be: d20f bcs.n 80067e0 <_realloc_r+0x48> + 80067c0: 4621 mov r1, r4 + 80067c2: 4638 mov r0, r7 + 80067c4: f7ff ff8e bl 80066e4 <_malloc_r> + 80067c8: 4605 mov r5, r0 + 80067ca: 2800 cmp r0, #0 + 80067cc: d0f2 beq.n 80067b4 <_realloc_r+0x1c> + 80067ce: 4631 mov r1, r6 + 80067d0: 4622 mov r2, r4 + 80067d2: f7ff ff13 bl 80065fc + 80067d6: 4631 mov r1, r6 + 80067d8: 4638 mov r0, r7 + 80067da: f7ff ff37 bl 800664c <_free_r> + 80067de: e7e9 b.n 80067b4 <_realloc_r+0x1c> + 80067e0: 4635 mov r5, r6 + 80067e2: e7e7 b.n 80067b4 <_realloc_r+0x1c> + +080067e4 <_sbrk_r>: + 80067e4: b538 push {r3, r4, r5, lr} + 80067e6: 2300 movs r3, #0 + 80067e8: 4d05 ldr r5, [pc, #20] ; (8006800 <_sbrk_r+0x1c>) + 80067ea: 4604 mov r4, r0 + 80067ec: 4608 mov r0, r1 + 80067ee: 602b str r3, [r5, #0] + 80067f0: f7f9 ff98 bl 8000724 <_sbrk> + 80067f4: 1c43 adds r3, r0, #1 + 80067f6: d102 bne.n 80067fe <_sbrk_r+0x1a> + 80067f8: 682b ldr r3, [r5, #0] + 80067fa: b103 cbz r3, 80067fe <_sbrk_r+0x1a> + 80067fc: 6023 str r3, [r4, #0] + 80067fe: bd38 pop {r3, r4, r5, pc} + 8006800: 20000850 .word 0x20000850 + +08006804 <__malloc_lock>: + 8006804: 4801 ldr r0, [pc, #4] ; (800680c <__malloc_lock+0x8>) + 8006806: f000 b811 b.w 800682c <__retarget_lock_acquire_recursive> + 800680a: bf00 nop + 800680c: 20000858 .word 0x20000858 + +08006810 <__malloc_unlock>: + 8006810: 4801 ldr r0, [pc, #4] ; (8006818 <__malloc_unlock+0x8>) + 8006812: f000 b80c b.w 800682e <__retarget_lock_release_recursive> + 8006816: bf00 nop + 8006818: 20000858 .word 0x20000858 + +0800681c <_malloc_usable_size_r>: + 800681c: f851 3c04 ldr.w r3, [r1, #-4] + 8006820: 1f18 subs r0, r3, #4 + 8006822: 2b00 cmp r3, #0 + 8006824: bfbc itt lt + 8006826: 580b ldrlt r3, [r1, r0] + 8006828: 18c0 addlt r0, r0, r3 + 800682a: 4770 bx lr + +0800682c <__retarget_lock_acquire_recursive>: + 800682c: 4770 bx lr + +0800682e <__retarget_lock_release_recursive>: + 800682e: 4770 bx lr + +08006830 <_init>: + 8006830: b5f8 push {r3, r4, r5, r6, r7, lr} + 8006832: bf00 nop + 8006834: bcf8 pop {r3, r4, r5, r6, r7} + 8006836: bc08 pop {r3} + 8006838: 469e mov lr, r3 + 800683a: 4770 bx lr + +0800683c <_fini>: + 800683c: b5f8 push {r3, r4, r5, r6, r7, lr} + 800683e: bf00 nop + 8006840: bcf8 pop {r3, r4, r5, r6, r7} + 8006842: bc08 pop {r3} + 8006844: 469e mov lr, r3 + 8006846: 4770 bx lr diff --git a/103ze/Debug/103ze_code.map b/103ze/Debug/103ze_code.map index 61efcce..9876e87 100644 --- a/103ze/Debug/103ze_code.map +++ b/103ze/Debug/103ze_code.map @@ -10,23 +10,69 @@ c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externalt c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp/crt0.o (__libc_init_array) c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-memset.o) c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp/crt0.o (memset) +c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-sprintf.o) + mycode/c.o (sprintf) +c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-svfprintf.o) + c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-sprintf.o) (_svfprintf_r) +c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-vfprintf_i.o) + c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-svfprintf.o) (_printf_i) +c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-memchr-stub.o) + c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-svfprintf.o) (memchr) +c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-memcpy-stub.o) + c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-svfprintf.o) (memcpy) +c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-memmove.o) + c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-svfprintf.o) (memmove) +c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-freer.o) + c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-svfprintf.o) (_free_r) +c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-mallocr.o) + c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-svfprintf.o) (_malloc_r) +c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-reallocr.o) + c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-svfprintf.o) (_realloc_r) +c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-sbrkr.o) + c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-mallocr.o) (_sbrk_r) +c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-mlock.o) + c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-freer.o) (__malloc_lock) +c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-msizer.o) + c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-reallocr.o) (_malloc_usable_size_r) +c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-reent.o) + c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-sbrkr.o) (errno) +c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-lock.o) + c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-mlock.o) (__retarget_lock_acquire_recursive) Allocating common symbols Common symbol size file USERPath 0x4 FATFS/App/fatfs.o +__lock___atexit_recursive_mutex + 0x1 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-lock.o) +__lock___arc4random_mutex + 0x1 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-lock.o) hspi2 0x58 Core/Src/main.o +errno 0x4 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-reent.o) ftinfo 0x24 mycode/text.o uwTick 0x4 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o pFlash 0x20 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o +__lock___env_recursive_mutex + 0x1 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-lock.o) +__lock___sinit_recursive_mutex + 0x1 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-lock.o) hsram1 0x48 Core/Src/main.o +__lock___malloc_recursive_mutex + 0x1 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-lock.o) retUSER 0x1 FATFS/App/fatfs.o lcddev 0xa mycode/lcd.o SD 0x230 mycode/c.o Timer2 0x1 mycode/fatfs_sd.o +__lock___at_quick_exit_mutex + 0x1 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-lock.o) Timer1 0x1 mycode/fatfs_sd.o +__lock___dd_hash_mutex + 0x1 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-lock.o) +__lock___tz_mutex 0x1 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-lock.o) USERFile 0x22c FATFS/App/fatfs.o USERFatFS 0x230 FATFS/App/fatfs.o +__lock___sfp_recursive_mutex + 0x1 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-lock.o) Discarded input sections @@ -401,15 +447,6 @@ Discarded input sections .text 0x0000000000000000 0x0 Core/Src/sysmem.o .data 0x0000000000000000 0x0 Core/Src/sysmem.o .bss 0x0000000000000000 0x0 Core/Src/sysmem.o - .bss.__sbrk_heap_end - 0x0000000000000000 0x4 Core/Src/sysmem.o - .text._sbrk 0x0000000000000000 0x6c Core/Src/sysmem.o - .debug_info 0x0000000000000000 0xa25 Core/Src/sysmem.o - .debug_abbrev 0x0000000000000000 0x1bf Core/Src/sysmem.o - .debug_aranges - 0x0000000000000000 0x20 Core/Src/sysmem.o - .debug_ranges 0x0000000000000000 0x10 Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0xff Core/Src/sysmem.o .debug_macro 0x0000000000000000 0xa9c Core/Src/sysmem.o .debug_macro 0x0000000000000000 0x10 Core/Src/sysmem.o .debug_macro 0x0000000000000000 0x22 Core/Src/sysmem.o @@ -428,16 +465,9 @@ Discarded input sections .debug_macro 0x0000000000000000 0x71 Core/Src/sysmem.o .debug_macro 0x0000000000000000 0x1c Core/Src/sysmem.o .debug_macro 0x0000000000000000 0x12a Core/Src/sysmem.o - .debug_macro 0x0000000000000000 0x23b Core/Src/sysmem.o .debug_macro 0x0000000000000000 0x103 Core/Src/sysmem.o .debug_macro 0x0000000000000000 0x6a Core/Src/sysmem.o .debug_macro 0x0000000000000000 0x1df Core/Src/sysmem.o - .debug_line 0x0000000000000000 0x4f8 Core/Src/sysmem.o - .debug_str 0x0000000000000000 0x6250 Core/Src/sysmem.o - .comment 0x0000000000000000 0x54 Core/Src/sysmem.o - .debug_frame 0x0000000000000000 0x34 Core/Src/sysmem.o - .ARM.attributes - 0x0000000000000000 0x2d Core/Src/sysmem.o .group 0x0000000000000000 0xc Core/Src/system_stm32f1xx.o .group 0x0000000000000000 0xc Core/Src/system_stm32f1xx.o .group 0x0000000000000000 0xc Core/Src/system_stm32f1xx.o @@ -2299,8 +2329,6 @@ Discarded input sections .text 0x0000000000000000 0x0 FATFS/App/fatfs.o .data 0x0000000000000000 0x0 FATFS/App/fatfs.o .bss 0x0000000000000000 0x0 FATFS/App/fatfs.o - .text.get_fattime - 0x0000000000000000 0xe FATFS/App/fatfs.o .debug_macro 0x0000000000000000 0xa9c FATFS/App/fatfs.o .debug_macro 0x0000000000000000 0x21b FATFS/App/fatfs.o .debug_macro 0x0000000000000000 0x2e FATFS/App/fatfs.o @@ -2496,24 +2524,10 @@ Discarded input sections .text 0x0000000000000000 0x0 Middlewares/Third_Party/FatFs/src/diskio.o .data 0x0000000000000000 0x0 Middlewares/Third_Party/FatFs/src/diskio.o .bss 0x0000000000000000 0x0 Middlewares/Third_Party/FatFs/src/diskio.o - .text.disk_status - 0x0000000000000000 0x34 Middlewares/Third_Party/FatFs/src/diskio.o - .text.disk_initialize - 0x0000000000000000 0x4c Middlewares/Third_Party/FatFs/src/diskio.o - .text.disk_read - 0x0000000000000000 0x40 Middlewares/Third_Party/FatFs/src/diskio.o - .text.disk_write - 0x0000000000000000 0x40 Middlewares/Third_Party/FatFs/src/diskio.o .text.disk_ioctl 0x0000000000000000 0x3c Middlewares/Third_Party/FatFs/src/diskio.o .text.get_fattime 0x0000000000000000 0xe Middlewares/Third_Party/FatFs/src/diskio.o - .debug_info 0x0000000000000000 0x4fe Middlewares/Third_Party/FatFs/src/diskio.o - .debug_abbrev 0x0000000000000000 0x18b Middlewares/Third_Party/FatFs/src/diskio.o - .debug_aranges - 0x0000000000000000 0x48 Middlewares/Third_Party/FatFs/src/diskio.o - .debug_ranges 0x0000000000000000 0x38 Middlewares/Third_Party/FatFs/src/diskio.o - .debug_macro 0x0000000000000000 0x1f7 Middlewares/Third_Party/FatFs/src/diskio.o .debug_macro 0x0000000000000000 0xa9c Middlewares/Third_Party/FatFs/src/diskio.o .debug_macro 0x0000000000000000 0x16 Middlewares/Third_Party/FatFs/src/diskio.o .debug_macro 0x0000000000000000 0x7c Middlewares/Third_Party/FatFs/src/diskio.o @@ -2555,12 +2569,6 @@ Discarded input sections .debug_macro 0x0000000000000000 0x28 Middlewares/Third_Party/FatFs/src/diskio.o .debug_macro 0x0000000000000000 0xd8 Middlewares/Third_Party/FatFs/src/diskio.o .debug_macro 0x0000000000000000 0xf5 Middlewares/Third_Party/FatFs/src/diskio.o - .debug_line 0x0000000000000000 0x786 Middlewares/Third_Party/FatFs/src/diskio.o - .debug_str 0x0000000000000000 0x8cb03 Middlewares/Third_Party/FatFs/src/diskio.o - .comment 0x0000000000000000 0x54 Middlewares/Third_Party/FatFs/src/diskio.o - .debug_frame 0x0000000000000000 0xec Middlewares/Third_Party/FatFs/src/diskio.o - .ARM.attributes - 0x0000000000000000 0x2d Middlewares/Third_Party/FatFs/src/diskio.o .group 0x0000000000000000 0xc Middlewares/Third_Party/FatFs/src/ff.o .group 0x0000000000000000 0xc Middlewares/Third_Party/FatFs/src/ff.o .group 0x0000000000000000 0xc Middlewares/Third_Party/FatFs/src/ff.o @@ -2605,74 +2613,15 @@ Discarded input sections .text 0x0000000000000000 0x0 Middlewares/Third_Party/FatFs/src/ff.o .data 0x0000000000000000 0x0 Middlewares/Third_Party/FatFs/src/ff.o .bss 0x0000000000000000 0x0 Middlewares/Third_Party/FatFs/src/ff.o - .bss.FatFs 0x0000000000000000 0x4 Middlewares/Third_Party/FatFs/src/ff.o - .bss.Fsid 0x0000000000000000 0x2 Middlewares/Third_Party/FatFs/src/ff.o - .bss.Files 0x0000000000000000 0x18 Middlewares/Third_Party/FatFs/src/ff.o - .rodata.ExCvt 0x0000000000000000 0x80 Middlewares/Third_Party/FatFs/src/ff.o - .text.mem_cpy 0x0000000000000000 0x3c Middlewares/Third_Party/FatFs/src/ff.o - .text.mem_set 0x0000000000000000 0x34 Middlewares/Third_Party/FatFs/src/ff.o - .text.mem_cmp 0x0000000000000000 0x4c Middlewares/Third_Party/FatFs/src/ff.o - .text.chk_chr 0x0000000000000000 0x34 Middlewares/Third_Party/FatFs/src/ff.o - .text.chk_lock - 0x0000000000000000 0xd8 Middlewares/Third_Party/FatFs/src/ff.o - .text.enq_lock - 0x0000000000000000 0x48 Middlewares/Third_Party/FatFs/src/ff.o - .text.inc_lock - 0x0000000000000000 0x16c Middlewares/Third_Party/FatFs/src/ff.o .text.dec_lock 0x0000000000000000 0x88 Middlewares/Third_Party/FatFs/src/ff.o - .text.clear_lock - 0x0000000000000000 0x54 Middlewares/Third_Party/FatFs/src/ff.o - .text.sync_window - 0x0000000000000000 0x92 Middlewares/Third_Party/FatFs/src/ff.o - .text.move_window - 0x0000000000000000 0x5c Middlewares/Third_Party/FatFs/src/ff.o .text.sync_fs 0x0000000000000000 0x15a Middlewares/Third_Party/FatFs/src/ff.o - .text.clust2sect - 0x0000000000000000 0x42 Middlewares/Third_Party/FatFs/src/ff.o - .text.get_fat 0x0000000000000000 0x174 Middlewares/Third_Party/FatFs/src/ff.o - .text.put_fat 0x0000000000000000 0x21c Middlewares/Third_Party/FatFs/src/ff.o - .text.remove_chain - 0x0000000000000000 0xb4 Middlewares/Third_Party/FatFs/src/ff.o - .text.create_chain - 0x0000000000000000 0x13a Middlewares/Third_Party/FatFs/src/ff.o - .text.clmt_clust - 0x0000000000000000 0x68 Middlewares/Third_Party/FatFs/src/ff.o - .text.dir_sdi 0x0000000000000000 0x128 Middlewares/Third_Party/FatFs/src/ff.o - .text.dir_next - 0x0000000000000000 0x1ee Middlewares/Third_Party/FatFs/src/ff.o - .text.dir_alloc - 0x0000000000000000 0x94 Middlewares/Third_Party/FatFs/src/ff.o - .text.ld_clust - 0x0000000000000000 0x5a Middlewares/Third_Party/FatFs/src/ff.o - .text.st_clust - 0x0000000000000000 0x4c Middlewares/Third_Party/FatFs/src/ff.o - .text.dir_find - 0x0000000000000000 0x9e Middlewares/Third_Party/FatFs/src/ff.o .text.dir_read 0x0000000000000000 0xbe Middlewares/Third_Party/FatFs/src/ff.o - .text.dir_register - 0x0000000000000000 0x72 Middlewares/Third_Party/FatFs/src/ff.o .text.dir_remove 0x0000000000000000 0x6e Middlewares/Third_Party/FatFs/src/ff.o .text.get_fileinfo 0x0000000000000000 0xe0 Middlewares/Third_Party/FatFs/src/ff.o - .rodata 0x0000000000000000 0x44 Middlewares/Third_Party/FatFs/src/ff.o - .text.create_name - 0x0000000000000000 0x180 Middlewares/Third_Party/FatFs/src/ff.o - .text.follow_path - 0x0000000000000000 0xdc Middlewares/Third_Party/FatFs/src/ff.o - .text.get_ldnumber - 0x0000000000000000 0x86 Middlewares/Third_Party/FatFs/src/ff.o - .text.check_fs - 0x0000000000000000 0xd4 Middlewares/Third_Party/FatFs/src/ff.o - .text.find_volume - 0x0000000000000000 0x594 Middlewares/Third_Party/FatFs/src/ff.o - .text.validate - 0x0000000000000000 0x66 Middlewares/Third_Party/FatFs/src/ff.o - .text.f_mount 0x0000000000000000 0x90 Middlewares/Third_Party/FatFs/src/ff.o - .text.f_open 0x0000000000000000 0x416 Middlewares/Third_Party/FatFs/src/ff.o - .text.f_read 0x0000000000000000 0x2d6 Middlewares/Third_Party/FatFs/src/ff.o .text.f_write 0x0000000000000000 0x35a Middlewares/Third_Party/FatFs/src/ff.o .text.f_sync 0x0000000000000000 0x174 Middlewares/Third_Party/FatFs/src/ff.o .text.f_close 0x0000000000000000 0x50 Middlewares/Third_Party/FatFs/src/ff.o @@ -2707,12 +2656,6 @@ Discarded input sections 0x0000000000000000 0x16 Middlewares/Third_Party/FatFs/src/ff.o .rodata.cst.6593 0x0000000000000000 0x16 Middlewares/Third_Party/FatFs/src/ff.o - .debug_info 0x0000000000000000 0x2333 Middlewares/Third_Party/FatFs/src/ff.o - .debug_abbrev 0x0000000000000000 0x2bf Middlewares/Third_Party/FatFs/src/ff.o - .debug_aranges - 0x0000000000000000 0x1e8 Middlewares/Third_Party/FatFs/src/ff.o - .debug_ranges 0x0000000000000000 0x1d8 Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x43e Middlewares/Third_Party/FatFs/src/ff.o .debug_macro 0x0000000000000000 0xa9c Middlewares/Third_Party/FatFs/src/ff.o .debug_macro 0x0000000000000000 0x21b Middlewares/Third_Party/FatFs/src/ff.o .debug_macro 0x0000000000000000 0x2e Middlewares/Third_Party/FatFs/src/ff.o @@ -2753,13 +2696,6 @@ Discarded input sections .debug_macro 0x0000000000000000 0xd8 Middlewares/Third_Party/FatFs/src/ff.o .debug_macro 0x0000000000000000 0xf5 Middlewares/Third_Party/FatFs/src/ff.o .debug_macro 0x0000000000000000 0x8e Middlewares/Third_Party/FatFs/src/ff.o - .debug_macro 0x0000000000000000 0x58 Middlewares/Third_Party/FatFs/src/ff.o - .debug_line 0x0000000000000000 0x2f22 Middlewares/Third_Party/FatFs/src/ff.o - .debug_str 0x0000000000000000 0x8d8f0 Middlewares/Third_Party/FatFs/src/ff.o - .comment 0x0000000000000000 0x54 Middlewares/Third_Party/FatFs/src/ff.o - .debug_frame 0x0000000000000000 0x8d0 Middlewares/Third_Party/FatFs/src/ff.o - .ARM.attributes - 0x0000000000000000 0x2d Middlewares/Third_Party/FatFs/src/ff.o .group 0x0000000000000000 0xc Middlewares/Third_Party/FatFs/src/ff_gen_drv.o .group 0x0000000000000000 0xc Middlewares/Third_Party/FatFs/src/ff_gen_drv.o .group 0x0000000000000000 0xc Middlewares/Third_Party/FatFs/src/ff_gen_drv.o @@ -3063,7 +2999,6 @@ Discarded input sections .debug_macro 0x0000000000000000 0xf5 mycode/c.o .debug_macro 0x0000000000000000 0x8e mycode/c.o .debug_macro 0x0000000000000000 0x64 mycode/c.o - COMMON 0x0000000000000000 0x230 mycode/c.o .group 0x0000000000000000 0xc mycode/falsh.o .group 0x0000000000000000 0xc mycode/falsh.o .group 0x0000000000000000 0xc mycode/falsh.o @@ -3407,10 +3342,6 @@ Discarded input sections .text 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-errno.o) .data 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-errno.o) .bss 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-errno.o) - .text.__errno 0x0000000000000000 0xc c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-errno.o) - .debug_frame 0x0000000000000000 0x20 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-errno.o) - .ARM.attributes - 0x0000000000000000 0x2d c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-errno.o) .text 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-exit.o) .data 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-exit.o) .bss 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-exit.o) @@ -3421,20 +3352,80 @@ Discarded input sections .text 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-impure.o) .data 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-impure.o) .bss 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-impure.o) - .data._impure_ptr - 0x0000000000000000 0x4 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-impure.o) - .data.impure_data - 0x0000000000000000 0x60 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-impure.o) .rodata._global_impure_ptr 0x0000000000000000 0x4 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-impure.o) - .ARM.attributes - 0x0000000000000000 0x2d c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-impure.o) .text 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-init.o) .data 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-init.o) .bss 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-init.o) .text 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-memset.o) .data 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-memset.o) .bss 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-memset.o) + .text 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-sprintf.o) + .data 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-sprintf.o) + .bss 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-sprintf.o) + .text._sprintf_r + 0x0000000000000000 0x38 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-sprintf.o) + .text 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-svfprintf.o) + .data 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-svfprintf.o) + .bss 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-svfprintf.o) + .text.__ssprint_r + 0x0000000000000000 0xf6 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-svfprintf.o) + .text 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-vfprintf_i.o) + .data 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-vfprintf_i.o) + .bss 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-vfprintf_i.o) + .text 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-memchr-stub.o) + .data 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-memchr-stub.o) + .bss 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-memchr-stub.o) + .text 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-memcpy-stub.o) + .data 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-memcpy-stub.o) + .bss 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-memcpy-stub.o) + .text 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-memmove.o) + .data 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-memmove.o) + .bss 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-memmove.o) + .text 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-freer.o) + .data 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-freer.o) + .bss 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-freer.o) + .text 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-mallocr.o) + .data 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-mallocr.o) + .bss 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-mallocr.o) + .text 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-reallocr.o) + .data 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-reallocr.o) + .bss 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-reallocr.o) + .text 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-sbrkr.o) + .data 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-sbrkr.o) + .bss 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-sbrkr.o) + .text 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-mlock.o) + .data 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-mlock.o) + .bss 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-mlock.o) + .text 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-msizer.o) + .data 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-msizer.o) + .bss 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-msizer.o) + .text 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-reent.o) + .data 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-reent.o) + .bss 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-reent.o) + .text.cleanup_glue + 0x0000000000000000 0x1a c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-reent.o) + .text._reclaim_reent + 0x0000000000000000 0xb8 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-reent.o) + .text 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-lock.o) + .data 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-lock.o) + .bss 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-lock.o) + .text.__retarget_lock_init + 0x0000000000000000 0x2 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-lock.o) + .text.__retarget_lock_init_recursive + 0x0000000000000000 0x2 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-lock.o) + .text.__retarget_lock_close + 0x0000000000000000 0x2 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-lock.o) + .text.__retarget_lock_close_recursive + 0x0000000000000000 0x2 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-lock.o) + .text.__retarget_lock_acquire + 0x0000000000000000 0x2 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-lock.o) + .text.__retarget_lock_try_acquire + 0x0000000000000000 0x4 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-lock.o) + .text.__retarget_lock_try_acquire_recursive + 0x0000000000000000 0x4 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-lock.o) + .text.__retarget_lock_release + 0x0000000000000000 0x2 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-lock.o) .text 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v7-m/nofp/crtend.o .data 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v7-m/nofp/crtend.o .bss 0x0000000000000000 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v7-m/nofp/crtend.o @@ -3522,7 +3513,7 @@ LOAD c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.exte 0x0000000008000000 g_pfnVectors 0x00000000080001e4 . = ALIGN (0x4) -.text 0x00000000080001e4 0x3a80 +.text 0x00000000080001e4 0x6664 0x00000000080001e4 . = ALIGN (0x4) *(.text) .text 0x00000000080001e4 0x40 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v7-m/nofp/crtbegin.o @@ -3580,368 +3571,507 @@ LOAD c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.exte .text.SysTick_Handler 0x0000000008000716 0xc Core/Src/stm32f1xx_it.o 0x0000000008000716 SysTick_Handler + *fill* 0x0000000008000722 0x2 + .text._sbrk 0x0000000008000724 0x6c Core/Src/sysmem.o + 0x0000000008000724 _sbrk .text.SystemInit - 0x0000000008000722 0xc Core/Src/system_stm32f1xx.o - 0x0000000008000722 SystemInit - *fill* 0x000000000800072e 0x2 + 0x0000000008000790 0xc Core/Src/system_stm32f1xx.o + 0x0000000008000790 SystemInit .text.Reset_Handler - 0x0000000008000730 0x48 Core/Startup/startup_stm32f103zetx.o - 0x0000000008000730 Reset_Handler + 0x000000000800079c 0x48 Core/Startup/startup_stm32f103zetx.o + 0x000000000800079c Reset_Handler .text.Default_Handler - 0x0000000008000778 0x2 Core/Startup/startup_stm32f103zetx.o - 0x0000000008000778 RTC_Alarm_IRQHandler - 0x0000000008000778 EXTI2_IRQHandler - 0x0000000008000778 TIM8_TRG_COM_IRQHandler - 0x0000000008000778 TIM8_CC_IRQHandler - 0x0000000008000778 TIM1_CC_IRQHandler - 0x0000000008000778 TIM6_IRQHandler - 0x0000000008000778 PVD_IRQHandler - 0x0000000008000778 SDIO_IRQHandler - 0x0000000008000778 EXTI3_IRQHandler - 0x0000000008000778 EXTI0_IRQHandler - 0x0000000008000778 I2C2_EV_IRQHandler - 0x0000000008000778 ADC1_2_IRQHandler - 0x0000000008000778 SPI1_IRQHandler - 0x0000000008000778 TAMPER_IRQHandler - 0x0000000008000778 TIM8_UP_IRQHandler - 0x0000000008000778 DMA2_Channel2_IRQHandler - 0x0000000008000778 DMA1_Channel4_IRQHandler - 0x0000000008000778 USART3_IRQHandler - 0x0000000008000778 RTC_IRQHandler - 0x0000000008000778 DMA1_Channel7_IRQHandler - 0x0000000008000778 CAN1_RX1_IRQHandler - 0x0000000008000778 UART5_IRQHandler - 0x0000000008000778 ADC3_IRQHandler - 0x0000000008000778 TIM4_IRQHandler - 0x0000000008000778 DMA2_Channel1_IRQHandler - 0x0000000008000778 I2C1_EV_IRQHandler - 0x0000000008000778 DMA1_Channel6_IRQHandler - 0x0000000008000778 UART4_IRQHandler - 0x0000000008000778 TIM3_IRQHandler - 0x0000000008000778 RCC_IRQHandler - 0x0000000008000778 TIM1_TRG_COM_IRQHandler - 0x0000000008000778 DMA1_Channel1_IRQHandler - 0x0000000008000778 Default_Handler - 0x0000000008000778 EXTI15_10_IRQHandler - 0x0000000008000778 TIM7_IRQHandler - 0x0000000008000778 TIM5_IRQHandler - 0x0000000008000778 EXTI9_5_IRQHandler - 0x0000000008000778 SPI2_IRQHandler - 0x0000000008000778 DMA1_Channel5_IRQHandler - 0x0000000008000778 EXTI4_IRQHandler - 0x0000000008000778 USB_LP_CAN1_RX0_IRQHandler - 0x0000000008000778 USB_HP_CAN1_TX_IRQHandler - 0x0000000008000778 DMA1_Channel3_IRQHandler - 0x0000000008000778 FSMC_IRQHandler - 0x0000000008000778 TIM1_UP_IRQHandler - 0x0000000008000778 WWDG_IRQHandler - 0x0000000008000778 TIM2_IRQHandler - 0x0000000008000778 TIM1_BRK_IRQHandler - 0x0000000008000778 EXTI1_IRQHandler - 0x0000000008000778 DMA2_Channel4_5_IRQHandler - 0x0000000008000778 USART2_IRQHandler - 0x0000000008000778 I2C2_ER_IRQHandler - 0x0000000008000778 DMA1_Channel2_IRQHandler - 0x0000000008000778 TIM8_BRK_IRQHandler - 0x0000000008000778 CAN1_SCE_IRQHandler - 0x0000000008000778 FLASH_IRQHandler - 0x0000000008000778 USART1_IRQHandler - 0x0000000008000778 SPI3_IRQHandler - 0x0000000008000778 I2C1_ER_IRQHandler - 0x0000000008000778 USBWakeUp_IRQHandler - 0x0000000008000778 DMA2_Channel3_IRQHandler - *fill* 0x000000000800077a 0x2 + 0x00000000080007e4 0x2 Core/Startup/startup_stm32f103zetx.o + 0x00000000080007e4 RTC_Alarm_IRQHandler + 0x00000000080007e4 EXTI2_IRQHandler + 0x00000000080007e4 TIM8_TRG_COM_IRQHandler + 0x00000000080007e4 TIM8_CC_IRQHandler + 0x00000000080007e4 TIM1_CC_IRQHandler + 0x00000000080007e4 TIM6_IRQHandler + 0x00000000080007e4 PVD_IRQHandler + 0x00000000080007e4 SDIO_IRQHandler + 0x00000000080007e4 EXTI3_IRQHandler + 0x00000000080007e4 EXTI0_IRQHandler + 0x00000000080007e4 I2C2_EV_IRQHandler + 0x00000000080007e4 ADC1_2_IRQHandler + 0x00000000080007e4 SPI1_IRQHandler + 0x00000000080007e4 TAMPER_IRQHandler + 0x00000000080007e4 TIM8_UP_IRQHandler + 0x00000000080007e4 DMA2_Channel2_IRQHandler + 0x00000000080007e4 DMA1_Channel4_IRQHandler + 0x00000000080007e4 USART3_IRQHandler + 0x00000000080007e4 RTC_IRQHandler + 0x00000000080007e4 DMA1_Channel7_IRQHandler + 0x00000000080007e4 CAN1_RX1_IRQHandler + 0x00000000080007e4 UART5_IRQHandler + 0x00000000080007e4 ADC3_IRQHandler + 0x00000000080007e4 TIM4_IRQHandler + 0x00000000080007e4 DMA2_Channel1_IRQHandler + 0x00000000080007e4 I2C1_EV_IRQHandler + 0x00000000080007e4 DMA1_Channel6_IRQHandler + 0x00000000080007e4 UART4_IRQHandler + 0x00000000080007e4 TIM3_IRQHandler + 0x00000000080007e4 RCC_IRQHandler + 0x00000000080007e4 TIM1_TRG_COM_IRQHandler + 0x00000000080007e4 DMA1_Channel1_IRQHandler + 0x00000000080007e4 Default_Handler + 0x00000000080007e4 EXTI15_10_IRQHandler + 0x00000000080007e4 TIM7_IRQHandler + 0x00000000080007e4 TIM5_IRQHandler + 0x00000000080007e4 EXTI9_5_IRQHandler + 0x00000000080007e4 SPI2_IRQHandler + 0x00000000080007e4 DMA1_Channel5_IRQHandler + 0x00000000080007e4 EXTI4_IRQHandler + 0x00000000080007e4 USB_LP_CAN1_RX0_IRQHandler + 0x00000000080007e4 USB_HP_CAN1_TX_IRQHandler + 0x00000000080007e4 DMA1_Channel3_IRQHandler + 0x00000000080007e4 FSMC_IRQHandler + 0x00000000080007e4 TIM1_UP_IRQHandler + 0x00000000080007e4 WWDG_IRQHandler + 0x00000000080007e4 TIM2_IRQHandler + 0x00000000080007e4 TIM1_BRK_IRQHandler + 0x00000000080007e4 EXTI1_IRQHandler + 0x00000000080007e4 DMA2_Channel4_5_IRQHandler + 0x00000000080007e4 USART2_IRQHandler + 0x00000000080007e4 I2C2_ER_IRQHandler + 0x00000000080007e4 DMA1_Channel2_IRQHandler + 0x00000000080007e4 TIM8_BRK_IRQHandler + 0x00000000080007e4 CAN1_SCE_IRQHandler + 0x00000000080007e4 FLASH_IRQHandler + 0x00000000080007e4 USART1_IRQHandler + 0x00000000080007e4 SPI3_IRQHandler + 0x00000000080007e4 I2C1_ER_IRQHandler + 0x00000000080007e4 USBWakeUp_IRQHandler + 0x00000000080007e4 DMA2_Channel3_IRQHandler + *fill* 0x00000000080007e6 0x2 .text.HAL_Init - 0x000000000800077c 0x2c Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o - 0x000000000800077c HAL_Init + 0x00000000080007e8 0x2c Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + 0x00000000080007e8 HAL_Init .text.HAL_InitTick - 0x00000000080007a8 0x60 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o - 0x00000000080007a8 HAL_InitTick + 0x0000000008000814 0x60 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + 0x0000000008000814 HAL_InitTick .text.HAL_IncTick - 0x0000000008000808 0x24 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o - 0x0000000008000808 HAL_IncTick + 0x0000000008000874 0x24 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + 0x0000000008000874 HAL_IncTick .text.HAL_GetTick - 0x000000000800082c 0x14 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o - 0x000000000800082c HAL_GetTick + 0x0000000008000898 0x14 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + 0x0000000008000898 HAL_GetTick .text.HAL_Delay - 0x0000000008000840 0x48 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o - 0x0000000008000840 HAL_Delay + 0x00000000080008ac 0x48 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + 0x00000000080008ac HAL_Delay .text.__NVIC_SetPriorityGrouping - 0x0000000008000888 0x48 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + 0x00000000080008f4 0x48 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o .text.__NVIC_GetPriorityGrouping - 0x00000000080008d0 0x1c Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + 0x000000000800093c 0x1c Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o .text.__NVIC_SetPriority - 0x00000000080008ec 0x54 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + 0x0000000008000958 0x54 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o .text.NVIC_EncodePriority - 0x0000000008000940 0x64 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + 0x00000000080009ac 0x64 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o .text.SysTick_Config - 0x00000000080009a4 0x44 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + 0x0000000008000a10 0x44 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o .text.HAL_NVIC_SetPriorityGrouping - 0x00000000080009e8 0x16 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o - 0x00000000080009e8 HAL_NVIC_SetPriorityGrouping + 0x0000000008000a54 0x16 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + 0x0000000008000a54 HAL_NVIC_SetPriorityGrouping .text.HAL_NVIC_SetPriority - 0x00000000080009fe 0x38 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o - 0x00000000080009fe HAL_NVIC_SetPriority + 0x0000000008000a6a 0x38 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + 0x0000000008000a6a HAL_NVIC_SetPriority .text.HAL_SYSTICK_Config - 0x0000000008000a36 0x18 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o - 0x0000000008000a36 HAL_SYSTICK_Config - *fill* 0x0000000008000a4e 0x2 + 0x0000000008000aa2 0x18 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + 0x0000000008000aa2 HAL_SYSTICK_Config + *fill* 0x0000000008000aba 0x2 .text.HAL_GPIO_Init - 0x0000000008000a50 0x328 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o - 0x0000000008000a50 HAL_GPIO_Init + 0x0000000008000abc 0x328 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o + 0x0000000008000abc HAL_GPIO_Init .text.HAL_GPIO_WritePin - 0x0000000008000d78 0x30 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o - 0x0000000008000d78 HAL_GPIO_WritePin + 0x0000000008000de4 0x30 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o + 0x0000000008000de4 HAL_GPIO_WritePin .text.HAL_RCC_OscConfig - 0x0000000008000da8 0x500 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o - 0x0000000008000da8 HAL_RCC_OscConfig + 0x0000000008000e14 0x500 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + 0x0000000008000e14 HAL_RCC_OscConfig .text.HAL_RCC_ClockConfig - 0x00000000080012a8 0x1d4 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o - 0x00000000080012a8 HAL_RCC_ClockConfig + 0x0000000008001314 0x1d4 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + 0x0000000008001314 HAL_RCC_ClockConfig .text.HAL_RCC_GetSysClockFreq - 0x000000000800147c 0xc0 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o - 0x000000000800147c HAL_RCC_GetSysClockFreq + 0x00000000080014e8 0xc0 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + 0x00000000080014e8 HAL_RCC_GetSysClockFreq .text.RCC_Delay - 0x000000000800153c 0x3c Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + 0x00000000080015a8 0x3c Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o .text.HAL_SPI_Init - 0x0000000008001578 0x108 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o - 0x0000000008001578 HAL_SPI_Init + 0x00000000080015e4 0x108 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + 0x00000000080015e4 HAL_SPI_Init .text.HAL_SPI_Transmit - 0x0000000008001680 0x278 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o - 0x0000000008001680 HAL_SPI_Transmit + 0x00000000080016ec 0x278 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + 0x00000000080016ec HAL_SPI_Transmit .text.HAL_SPI_Receive - 0x00000000080018f8 0x222 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o - 0x00000000080018f8 HAL_SPI_Receive + 0x0000000008001964 0x222 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + 0x0000000008001964 HAL_SPI_Receive .text.HAL_SPI_TransmitReceive - 0x0000000008001b1a 0x344 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o - 0x0000000008001b1a HAL_SPI_TransmitReceive + 0x0000000008001b86 0x344 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + 0x0000000008001b86 HAL_SPI_TransmitReceive .text.HAL_SPI_GetState - 0x0000000008001e5e 0x1a Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o - 0x0000000008001e5e HAL_SPI_GetState + 0x0000000008001eca 0x1a Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + 0x0000000008001eca HAL_SPI_GetState .text.SPI_WaitFlagStateUntilTimeout - 0x0000000008001e78 0x110 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + 0x0000000008001ee4 0x110 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o .text.SPI_EndRxTransaction - 0x0000000008001f88 0xa4 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + 0x0000000008001ff4 0xa4 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o .text.SPI_EndRxTxTransaction - 0x000000000800202c 0x3c Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + 0x0000000008002098 0x3c Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o .text.HAL_SRAM_Init - 0x0000000008002068 0x9a Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o - 0x0000000008002068 HAL_SRAM_Init - *fill* 0x0000000008002102 0x2 + 0x00000000080020d4 0x9a Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o + 0x00000000080020d4 HAL_SRAM_Init + *fill* 0x000000000800216e 0x2 .text.FSMC_NORSRAM_Init - 0x0000000008002104 0xd4 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o - 0x0000000008002104 FSMC_NORSRAM_Init + 0x0000000008002170 0xd4 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o + 0x0000000008002170 FSMC_NORSRAM_Init .text.FSMC_NORSRAM_Timing_Init - 0x00000000080021d8 0x68 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o - 0x00000000080021d8 FSMC_NORSRAM_Timing_Init + 0x0000000008002244 0x68 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o + 0x0000000008002244 FSMC_NORSRAM_Timing_Init .text.FSMC_NORSRAM_Extended_Timing_Init - 0x0000000008002240 0x70 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o - 0x0000000008002240 FSMC_NORSRAM_Extended_Timing_Init + 0x00000000080022ac 0x70 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o + 0x00000000080022ac FSMC_NORSRAM_Extended_Timing_Init .text.MX_FATFS_Init - 0x00000000080022b0 0x24 FATFS/App/fatfs.o - 0x00000000080022b0 MX_FATFS_Init + 0x000000000800231c 0x24 FATFS/App/fatfs.o + 0x000000000800231c MX_FATFS_Init + .text.get_fattime + 0x0000000008002340 0xe FATFS/App/fatfs.o + 0x0000000008002340 get_fattime + *fill* 0x000000000800234e 0x2 .text.USER_initialize - 0x00000000080022d4 0x2c FATFS/Target/user_diskio.o - 0x00000000080022d4 USER_initialize + 0x0000000008002350 0x2c FATFS/Target/user_diskio.o + 0x0000000008002350 USER_initialize .text.USER_status - 0x0000000008002300 0x2c FATFS/Target/user_diskio.o - 0x0000000008002300 USER_status + 0x000000000800237c 0x2c FATFS/Target/user_diskio.o + 0x000000000800237c USER_status .text.USER_read - 0x000000000800232c 0x26 FATFS/Target/user_diskio.o - 0x000000000800232c USER_read + 0x00000000080023a8 0x26 FATFS/Target/user_diskio.o + 0x00000000080023a8 USER_read .text.USER_write - 0x0000000008002352 0x26 FATFS/Target/user_diskio.o - 0x0000000008002352 USER_write + 0x00000000080023ce 0x26 FATFS/Target/user_diskio.o + 0x00000000080023ce USER_write .text.USER_ioctl - 0x0000000008002378 0x2a FATFS/Target/user_diskio.o - 0x0000000008002378 USER_ioctl - *fill* 0x00000000080023a2 0x2 + 0x00000000080023f4 0x2a FATFS/Target/user_diskio.o + 0x00000000080023f4 USER_ioctl + *fill* 0x000000000800241e 0x2 + .text.disk_status + 0x0000000008002420 0x34 Middlewares/Third_Party/FatFs/src/diskio.o + 0x0000000008002420 disk_status + .text.disk_initialize + 0x0000000008002454 0x4c Middlewares/Third_Party/FatFs/src/diskio.o + 0x0000000008002454 disk_initialize + .text.disk_read + 0x00000000080024a0 0x40 Middlewares/Third_Party/FatFs/src/diskio.o + 0x00000000080024a0 disk_read + .text.disk_write + 0x00000000080024e0 0x40 Middlewares/Third_Party/FatFs/src/diskio.o + 0x00000000080024e0 disk_write + .text.mem_cpy 0x0000000008002520 0x3c Middlewares/Third_Party/FatFs/src/ff.o + .text.mem_set 0x000000000800255c 0x34 Middlewares/Third_Party/FatFs/src/ff.o + .text.mem_cmp 0x0000000008002590 0x4c Middlewares/Third_Party/FatFs/src/ff.o + .text.chk_chr 0x00000000080025dc 0x34 Middlewares/Third_Party/FatFs/src/ff.o + .text.chk_lock + 0x0000000008002610 0xd8 Middlewares/Third_Party/FatFs/src/ff.o + .text.enq_lock + 0x00000000080026e8 0x48 Middlewares/Third_Party/FatFs/src/ff.o + .text.inc_lock + 0x0000000008002730 0x16c Middlewares/Third_Party/FatFs/src/ff.o + .text.clear_lock + 0x000000000800289c 0x54 Middlewares/Third_Party/FatFs/src/ff.o + .text.sync_window + 0x00000000080028f0 0x92 Middlewares/Third_Party/FatFs/src/ff.o + .text.move_window + 0x0000000008002982 0x5c Middlewares/Third_Party/FatFs/src/ff.o + .text.clust2sect + 0x00000000080029de 0x42 Middlewares/Third_Party/FatFs/src/ff.o + 0x00000000080029de clust2sect + .text.get_fat 0x0000000008002a20 0x174 Middlewares/Third_Party/FatFs/src/ff.o + 0x0000000008002a20 get_fat + .text.put_fat 0x0000000008002b94 0x21c Middlewares/Third_Party/FatFs/src/ff.o + 0x0000000008002b94 put_fat + .text.remove_chain + 0x0000000008002db0 0xb4 Middlewares/Third_Party/FatFs/src/ff.o + .text.create_chain + 0x0000000008002e64 0x13a Middlewares/Third_Party/FatFs/src/ff.o + .text.clmt_clust + 0x0000000008002f9e 0x68 Middlewares/Third_Party/FatFs/src/ff.o + .text.dir_sdi 0x0000000008003006 0x128 Middlewares/Third_Party/FatFs/src/ff.o + .text.dir_next + 0x000000000800312e 0x1ee Middlewares/Third_Party/FatFs/src/ff.o + .text.dir_alloc + 0x000000000800331c 0x94 Middlewares/Third_Party/FatFs/src/ff.o + .text.ld_clust + 0x00000000080033b0 0x5a Middlewares/Third_Party/FatFs/src/ff.o + .text.st_clust + 0x000000000800340a 0x4c Middlewares/Third_Party/FatFs/src/ff.o + .text.dir_find + 0x0000000008003456 0x9e Middlewares/Third_Party/FatFs/src/ff.o + .text.dir_register + 0x00000000080034f4 0x72 Middlewares/Third_Party/FatFs/src/ff.o + *fill* 0x0000000008003566 0x2 + .text.create_name + 0x0000000008003568 0x180 Middlewares/Third_Party/FatFs/src/ff.o + .text.follow_path + 0x00000000080036e8 0xdc Middlewares/Third_Party/FatFs/src/ff.o + .text.get_ldnumber + 0x00000000080037c4 0x86 Middlewares/Third_Party/FatFs/src/ff.o + *fill* 0x000000000800384a 0x2 + .text.check_fs + 0x000000000800384c 0xd4 Middlewares/Third_Party/FatFs/src/ff.o + .text.find_volume + 0x0000000008003920 0x594 Middlewares/Third_Party/FatFs/src/ff.o + .text.validate + 0x0000000008003eb4 0x66 Middlewares/Third_Party/FatFs/src/ff.o + *fill* 0x0000000008003f1a 0x2 + .text.f_mount 0x0000000008003f1c 0x90 Middlewares/Third_Party/FatFs/src/ff.o + 0x0000000008003f1c f_mount + .text.f_open 0x0000000008003fac 0x416 Middlewares/Third_Party/FatFs/src/ff.o + 0x0000000008003fac f_open + .text.f_read 0x00000000080043c2 0x2d6 Middlewares/Third_Party/FatFs/src/ff.o + 0x00000000080043c2 f_read .text.FATFS_LinkDriverEx - 0x00000000080023a4 0x94 Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - 0x00000000080023a4 FATFS_LinkDriverEx + 0x0000000008004698 0x94 Middlewares/Third_Party/FatFs/src/ff_gen_drv.o + 0x0000000008004698 FATFS_LinkDriverEx .text.FATFS_LinkDriver - 0x0000000008002438 0x1e Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - 0x0000000008002438 FATFS_LinkDriver - *fill* 0x0000000008002456 0x2 - .text.my_main 0x0000000008002458 0x68 mycode/c.o - 0x0000000008002458 my_main + 0x000000000800472c 0x1e Middlewares/Third_Party/FatFs/src/ff_gen_drv.o + 0x000000000800472c FATFS_LinkDriver + *fill* 0x000000000800474a 0x2 + .text.my_main 0x000000000800474c 0xc4 mycode/c.o + 0x000000000800474c my_main .text.W25QXX_Read - 0x00000000080024c0 0x6c mycode/falsh.o - 0x00000000080024c0 W25QXX_Read - .text.SELECT 0x000000000800252c 0x18 mycode/fatfs_sd.o + 0x0000000008004810 0x6c mycode/falsh.o + 0x0000000008004810 W25QXX_Read + .text.SELECT 0x000000000800487c 0x18 mycode/fatfs_sd.o .text.DESELECT - 0x0000000008002544 0x18 mycode/fatfs_sd.o + 0x0000000008004894 0x18 mycode/fatfs_sd.o .text.SPI_TxByte - 0x000000000800255c 0x34 mycode/fatfs_sd.o + 0x00000000080048ac 0x34 mycode/fatfs_sd.o .text.SPI_RxByte - 0x0000000008002590 0x3c mycode/fatfs_sd.o + 0x00000000080048e0 0x3c mycode/fatfs_sd.o .text.SPI_RxBytePtr - 0x00000000080025cc 0x1c mycode/fatfs_sd.o + 0x000000000800491c 0x1c mycode/fatfs_sd.o .text.SD_ReadyWait - 0x00000000080025e8 0x38 mycode/fatfs_sd.o + 0x0000000008004938 0x38 mycode/fatfs_sd.o .text.SD_PowerOn - 0x0000000008002620 0x98 mycode/fatfs_sd.o + 0x0000000008004970 0x98 mycode/fatfs_sd.o .text.SD_PowerOff - 0x00000000080026b8 0x18 mycode/fatfs_sd.o + 0x0000000008004a08 0x18 mycode/fatfs_sd.o .text.SD_CheckPower - 0x00000000080026d0 0x14 mycode/fatfs_sd.o + 0x0000000008004a20 0x14 mycode/fatfs_sd.o .text.SD_RxDataBlock - 0x00000000080026e4 0x6c mycode/fatfs_sd.o + 0x0000000008004a34 0x6c mycode/fatfs_sd.o .text.SD_TxDataBlock - 0x0000000008002750 0xa8 mycode/fatfs_sd.o + 0x0000000008004aa0 0xa8 mycode/fatfs_sd.o .text.SD_SendCmd - 0x00000000080027f8 0xa4 mycode/fatfs_sd.o + 0x0000000008004b48 0xa4 mycode/fatfs_sd.o .text.SD_disk_initialize - 0x000000000800289c 0x1d4 mycode/fatfs_sd.o - 0x000000000800289c SD_disk_initialize + 0x0000000008004bec 0x1d4 mycode/fatfs_sd.o + 0x0000000008004bec SD_disk_initialize .text.SD_disk_status - 0x0000000008002a70 0x28 mycode/fatfs_sd.o - 0x0000000008002a70 SD_disk_status + 0x0000000008004dc0 0x28 mycode/fatfs_sd.o + 0x0000000008004dc0 SD_disk_status .text.SD_disk_read - 0x0000000008002a98 0xd4 mycode/fatfs_sd.o - 0x0000000008002a98 SD_disk_read + 0x0000000008004de8 0xd4 mycode/fatfs_sd.o + 0x0000000008004de8 SD_disk_read .text.SD_disk_write - 0x0000000008002b6c 0x108 mycode/fatfs_sd.o - 0x0000000008002b6c SD_disk_write + 0x0000000008004ebc 0x108 mycode/fatfs_sd.o + 0x0000000008004ebc SD_disk_write .text.SD_disk_ioctl - 0x0000000008002c74 0x264 mycode/fatfs_sd.o - 0x0000000008002c74 SD_disk_ioctl + 0x0000000008004fc4 0x264 mycode/fatfs_sd.o + 0x0000000008004fc4 SD_disk_ioctl .text.LCD_WR_REG - 0x0000000008002ed8 0x1c mycode/lcd.o - 0x0000000008002ed8 LCD_WR_REG + 0x0000000008005228 0x1c mycode/lcd.o + 0x0000000008005228 LCD_WR_REG .text.LCD_WR_DATA - 0x0000000008002ef4 0x20 mycode/lcd.o - 0x0000000008002ef4 LCD_WR_DATA + 0x0000000008005244 0x20 mycode/lcd.o + 0x0000000008005244 LCD_WR_DATA .text.LCD_WriteReg - 0x0000000008002f14 0x2c mycode/lcd.o - 0x0000000008002f14 LCD_WriteReg + 0x0000000008005264 0x2c mycode/lcd.o + 0x0000000008005264 LCD_WriteReg .text.LCD_ReadReg - 0x0000000008002f40 0x28 mycode/lcd.o - 0x0000000008002f40 LCD_ReadReg + 0x0000000008005290 0x28 mycode/lcd.o + 0x0000000008005290 LCD_ReadReg .text.LCD_Scan_Dir - 0x0000000008002f68 0x2dc mycode/lcd.o - 0x0000000008002f68 LCD_Scan_Dir + 0x00000000080052b8 0x2dc mycode/lcd.o + 0x00000000080052b8 LCD_Scan_Dir .text.LCD_Display_Dir - 0x0000000008003244 0x18c mycode/lcd.o - 0x0000000008003244 LCD_Display_Dir + 0x0000000008005594 0x18c mycode/lcd.o + 0x0000000008005594 LCD_Display_Dir .text.LCDx_Init - 0x00000000080033d0 0x1ec mycode/lcd.o - 0x00000000080033d0 LCDx_Init + 0x0000000008005720 0x1ec mycode/lcd.o + 0x0000000008005720 LCDx_Init .text.LCD_SetCursor - 0x00000000080035bc 0x120 mycode/lcd.o - 0x00000000080035bc LCD_SetCursor + 0x000000000800590c 0x120 mycode/lcd.o + 0x000000000800590c LCD_SetCursor .text.LCD_set_dot - 0x00000000080036dc 0x40 mycode/lcd.o - 0x00000000080036dc LCD_set_dot + 0x0000000008005a2c 0x40 mycode/lcd.o + 0x0000000008005a2c LCD_set_dot .text.LCD_Clear - 0x000000000800371c 0xa4 mycode/lcd.o - 0x000000000800371c LCD_Clear + 0x0000000008005a6c 0xa4 mycode/lcd.o + 0x0000000008005a6c LCD_Clear .text.font_init - 0x00000000080037c0 0x54 mycode/text.o - 0x00000000080037c0 font_init + 0x0000000008005b10 0x5c mycode/text.o + 0x0000000008005b10 font_init .text.Get_HzMat - 0x0000000008003814 0x10c mycode/text.o - 0x0000000008003814 Get_HzMat + 0x0000000008005b6c 0x10c mycode/text.o + 0x0000000008005b6c Get_HzMat .text.Show_Font - 0x0000000008003920 0x110 mycode/text.o - 0x0000000008003920 Show_Font + 0x0000000008005c78 0x110 mycode/text.o + 0x0000000008005c78 Show_Font .text.LCD_ShowChar - 0x0000000008003a30 0xf8 mycode/text.o - 0x0000000008003a30 LCD_ShowChar + 0x0000000008005d88 0xf8 mycode/text.o + 0x0000000008005d88 LCD_ShowChar .text.LCD_ShowString - 0x0000000008003b28 0xcc mycode/text.o - 0x0000000008003b28 LCD_ShowString + 0x0000000008005e80 0xd8 mycode/text.o + 0x0000000008005e80 LCD_ShowString + .text.__errno 0x0000000008005f58 0xc c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-errno.o) + 0x0000000008005f58 __errno .text.__libc_init_array - 0x0000000008003bf4 0x48 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-init.o) - 0x0000000008003bf4 __libc_init_array - .text.memset 0x0000000008003c3c 0x10 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-memset.o) - 0x0000000008003c3c memset + 0x0000000008005f64 0x48 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-init.o) + 0x0000000008005f64 __libc_init_array + .text.memset 0x0000000008005fac 0x10 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-memset.o) + 0x0000000008005fac memset + .text.sprintf 0x0000000008005fbc 0x40 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-sprintf.o) + 0x0000000008005fbc siprintf + 0x0000000008005fbc sprintf + .text.__ssputs_r + 0x0000000008005ffc 0xb6 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-svfprintf.o) + 0x0000000008005ffc __ssputs_r + *fill* 0x00000000080060b2 0x2 + .text._svfprintf_r + 0x00000000080060b4 0x200 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-svfprintf.o) + 0x00000000080060b4 _svfiprintf_r + 0x00000000080060b4 _svfprintf_r + .text._printf_common + 0x00000000080062b4 0xde c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-vfprintf_i.o) + 0x00000000080062b4 _printf_common + *fill* 0x0000000008006392 0x2 + .text._printf_i + 0x0000000008006394 0x24c c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-vfprintf_i.o) + 0x0000000008006394 _printf_i + .text.memchr 0x00000000080065e0 0x1c c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-memchr-stub.o) + 0x00000000080065e0 memchr + .text.memcpy 0x00000000080065fc 0x1c c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-memcpy-stub.o) + 0x00000000080065fc memcpy + .text.memmove 0x0000000008006618 0x34 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-memmove.o) + 0x0000000008006618 memmove + .text._free_r 0x000000000800664c 0x98 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-freer.o) + 0x000000000800664c _free_r + .text._malloc_r + 0x00000000080066e4 0xb4 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-mallocr.o) + 0x00000000080066e4 _malloc_r + .text._realloc_r + 0x0000000008006798 0x4c c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-reallocr.o) + 0x0000000008006798 _realloc_r + .text._sbrk_r 0x00000000080067e4 0x20 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-sbrkr.o) + 0x00000000080067e4 _sbrk_r + .text.__malloc_lock + 0x0000000008006804 0xc c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-mlock.o) + 0x0000000008006804 __malloc_lock + .text.__malloc_unlock + 0x0000000008006810 0xc c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-mlock.o) + 0x0000000008006810 __malloc_unlock + .text._malloc_usable_size_r + 0x000000000800681c 0x10 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-msizer.o) + 0x000000000800681c _malloc_usable_size_r + .text.__retarget_lock_acquire_recursive + 0x000000000800682c 0x2 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-lock.o) + 0x000000000800682c __retarget_lock_acquire_recursive + .text.__retarget_lock_release_recursive + 0x000000000800682e 0x2 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-lock.o) + 0x000000000800682e __retarget_lock_release_recursive *(.glue_7) - .glue_7 0x0000000008003c4c 0x0 linker stubs + .glue_7 0x0000000008006830 0x0 linker stubs *(.glue_7t) - .glue_7t 0x0000000008003c4c 0x0 linker stubs + .glue_7t 0x0000000008006830 0x0 linker stubs *(.eh_frame) - .eh_frame 0x0000000008003c4c 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v7-m/nofp/crtbegin.o + .eh_frame 0x0000000008006830 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v7-m/nofp/crtbegin.o *(.init) - .init 0x0000000008003c4c 0x4 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v7-m/nofp/crti.o - 0x0000000008003c4c _init - .init 0x0000000008003c50 0x8 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v7-m/nofp/crtn.o + .init 0x0000000008006830 0x4 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v7-m/nofp/crti.o + 0x0000000008006830 _init + .init 0x0000000008006834 0x8 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v7-m/nofp/crtn.o *(.fini) - .fini 0x0000000008003c58 0x4 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v7-m/nofp/crti.o - 0x0000000008003c58 _fini - .fini 0x0000000008003c5c 0x8 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v7-m/nofp/crtn.o - 0x0000000008003c64 . = ALIGN (0x4) - 0x0000000008003c64 _etext = . + .fini 0x000000000800683c 0x4 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v7-m/nofp/crti.o + 0x000000000800683c _fini + .fini 0x0000000008006840 0x8 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v7-m/nofp/crtn.o + 0x0000000008006848 . = ALIGN (0x4) + 0x0000000008006848 _etext = . -.vfp11_veneer 0x0000000008003c64 0x0 - .vfp11_veneer 0x0000000008003c64 0x0 linker stubs +.vfp11_veneer 0x0000000008006848 0x0 + .vfp11_veneer 0x0000000008006848 0x0 linker stubs -.v4_bx 0x0000000008003c64 0x0 - .v4_bx 0x0000000008003c64 0x0 linker stubs +.v4_bx 0x0000000008006848 0x0 + .v4_bx 0x0000000008006848 0x0 linker stubs -.iplt 0x0000000008003c64 0x0 - .iplt 0x0000000008003c64 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v7-m/nofp/crtbegin.o +.iplt 0x0000000008006848 0x0 + .iplt 0x0000000008006848 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v7-m/nofp/crtbegin.o -.rodata 0x0000000008003c64 0xa98 - 0x0000000008003c64 . = ALIGN (0x4) +.rodata 0x0000000008006848 0xb9c + 0x0000000008006848 . = ALIGN (0x4) *(.rodata) - .rodata 0x0000000008003c64 0x10 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o - .rodata 0x0000000008003c74 0x13 mycode/c.o + .rodata 0x0000000008006848 0x10 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + .rodata 0x0000000008006858 0x44 Middlewares/Third_Party/FatFs/src/ff.o + .rodata 0x000000000800689c 0x1d mycode/c.o *(.rodata*) - *fill* 0x0000000008003c87 0x1 + *fill* 0x00000000080068b9 0x3 .rodata.AHBPrescTable - 0x0000000008003c88 0x10 Core/Src/system_stm32f1xx.o - 0x0000000008003c88 AHBPrescTable + 0x00000000080068bc 0x10 Core/Src/system_stm32f1xx.o + 0x00000000080068bc AHBPrescTable + .rodata.ExCvt 0x00000000080068cc 0x80 Middlewares/Third_Party/FatFs/src/ff.o .rodata.asc2_1206 - 0x0000000008003c98 0x474 mycode/text.o - 0x0000000008003c98 asc2_1206 + 0x000000000800694c 0x474 mycode/text.o + 0x000000000800694c asc2_1206 .rodata.asc2_1608 - 0x000000000800410c 0x5f0 mycode/text.o - 0x000000000800410c asc2_1608 - 0x00000000080046fc . = ALIGN (0x4) + 0x0000000008006dc0 0x5f0 mycode/text.o + 0x0000000008006dc0 asc2_1608 + .rodata._svfprintf_r.str1.1 + 0x00000000080073b0 0x11 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-svfprintf.o) + .rodata._printf_i.str1.1 + 0x00000000080073c1 0x22 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-vfprintf_i.o) + 0x00000000080073e4 . = ALIGN (0x4) + *fill* 0x00000000080073e3 0x1 -.rel.dyn 0x00000000080046fc 0x0 - .rel.iplt 0x00000000080046fc 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v7-m/nofp/crtbegin.o +.rel.dyn 0x00000000080073e4 0x0 + .rel.iplt 0x00000000080073e4 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v7-m/nofp/crtbegin.o -.ARM.extab 0x00000000080046fc 0x0 - 0x00000000080046fc . = ALIGN (0x4) +.ARM.extab 0x00000000080073e4 0x0 + 0x00000000080073e4 . = ALIGN (0x4) *(.ARM.extab* .gnu.linkonce.armextab.*) - 0x00000000080046fc . = ALIGN (0x4) + 0x00000000080073e4 . = ALIGN (0x4) -.ARM 0x00000000080046fc 0x0 - 0x00000000080046fc . = ALIGN (0x4) - 0x00000000080046fc __exidx_start = . +.ARM 0x00000000080073e4 0x0 + 0x00000000080073e4 . = ALIGN (0x4) + 0x00000000080073e4 __exidx_start = . *(.ARM.exidx*) - 0x00000000080046fc __exidx_end = . - 0x00000000080046fc . = ALIGN (0x4) + 0x00000000080073e4 __exidx_end = . + 0x00000000080073e4 . = ALIGN (0x4) -.preinit_array 0x00000000080046fc 0x0 - 0x00000000080046fc . = ALIGN (0x4) - 0x00000000080046fc PROVIDE (__preinit_array_start = .) +.preinit_array 0x00000000080073e4 0x0 + 0x00000000080073e4 . = ALIGN (0x4) + 0x00000000080073e4 PROVIDE (__preinit_array_start = .) *(.preinit_array*) - 0x00000000080046fc PROVIDE (__preinit_array_end = .) - 0x00000000080046fc . = ALIGN (0x4) + 0x00000000080073e4 PROVIDE (__preinit_array_end = .) + 0x00000000080073e4 . = ALIGN (0x4) -.init_array 0x00000000080046fc 0x4 - 0x00000000080046fc . = ALIGN (0x4) - 0x00000000080046fc PROVIDE (__init_array_start = .) +.init_array 0x00000000080073e4 0x4 + 0x00000000080073e4 . = ALIGN (0x4) + 0x00000000080073e4 PROVIDE (__init_array_start = .) *(SORT_BY_NAME(.init_array.*)) *(.init_array*) - .init_array 0x00000000080046fc 0x4 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v7-m/nofp/crtbegin.o - 0x0000000008004700 PROVIDE (__init_array_end = .) - 0x0000000008004700 . = ALIGN (0x4) + .init_array 0x00000000080073e4 0x4 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v7-m/nofp/crtbegin.o + 0x00000000080073e8 PROVIDE (__init_array_end = .) + 0x00000000080073e8 . = ALIGN (0x4) -.fini_array 0x0000000008004700 0x4 - 0x0000000008004700 . = ALIGN (0x4) +.fini_array 0x00000000080073e8 0x4 + 0x00000000080073e8 . = ALIGN (0x4) [!provide] PROVIDE (__fini_array_start = .) *(SORT_BY_NAME(.fini_array.*)) *(.fini_array*) - .fini_array 0x0000000008004700 0x4 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v7-m/nofp/crtbegin.o + .fini_array 0x00000000080073e8 0x4 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v7-m/nofp/crtbegin.o [!provide] PROVIDE (__fini_array_end = .) - 0x0000000008004704 . = ALIGN (0x4) - 0x0000000008004704 _sidata = LOADADDR (.data) + 0x00000000080073ec . = ALIGN (0x4) + 0x00000000080073ec _sidata = LOADADDR (.data) -.data 0x0000000020000000 0x24 load address 0x0000000008004704 +.data 0x0000000020000000 0x88 load address 0x00000000080073ec 0x0000000020000000 . = ALIGN (0x4) 0x0000000020000000 _sdata = . *(.data) @@ -3961,64 +4091,96 @@ LOAD c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.exte 0x000000002000000c 0x14 FATFS/Target/user_diskio.o 0x000000002000000c USER_Driver .data.Stat 0x0000000020000020 0x1 mycode/fatfs_sd.o + *fill* 0x0000000020000021 0x3 + .data._impure_ptr + 0x0000000020000024 0x4 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-impure.o) + 0x0000000020000024 _impure_ptr + .data.impure_data + 0x0000000020000028 0x60 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-impure.o) *(.RamFunc) *(.RamFunc*) - 0x0000000020000024 . = ALIGN (0x4) - *fill* 0x0000000020000021 0x3 - 0x0000000020000024 _edata = . + 0x0000000020000088 . = ALIGN (0x4) + 0x0000000020000088 _edata = . -.igot.plt 0x0000000020000024 0x0 load address 0x0000000008004728 - .igot.plt 0x0000000020000024 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v7-m/nofp/crtbegin.o - 0x0000000020000024 . = ALIGN (0x4) +.igot.plt 0x0000000020000088 0x0 load address 0x0000000008007474 + .igot.plt 0x0000000020000088 0x0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v7-m/nofp/crtbegin.o + 0x0000000020000088 . = ALIGN (0x4) -.bss 0x0000000020000024 0x56c load address 0x0000000008004728 - 0x0000000020000024 _sbss = . - 0x0000000020000024 __bss_start__ = _sbss +.bss 0x0000000020000088 0x7d8 load address 0x0000000008007474 + 0x0000000020000088 _sbss = . + 0x0000000020000088 __bss_start__ = _sbss *(.bss) - .bss 0x0000000020000024 0x1c c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v7-m/nofp/crtbegin.o + .bss 0x0000000020000088 0x1c c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v7-m/nofp/crtbegin.o *(.bss*) .bss.FSMC_Initialized - 0x0000000020000040 0x4 Core/Src/stm32f1xx_hal_msp.o - .bss.disk 0x0000000020000044 0xc Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - 0x0000000020000044 disk - .bss.CardType 0x0000000020000050 0x1 mycode/fatfs_sd.o + 0x00000000200000a4 0x4 Core/Src/stm32f1xx_hal_msp.o + .bss.__sbrk_heap_end + 0x00000000200000a8 0x4 Core/Src/sysmem.o + .bss.FatFs 0x00000000200000ac 0x4 Middlewares/Third_Party/FatFs/src/ff.o + .bss.Fsid 0x00000000200000b0 0x2 Middlewares/Third_Party/FatFs/src/ff.o + *fill* 0x00000000200000b2 0x2 + .bss.Files 0x00000000200000b4 0x18 Middlewares/Third_Party/FatFs/src/ff.o + .bss.disk 0x00000000200000cc 0xc Middlewares/Third_Party/FatFs/src/ff_gen_drv.o + 0x00000000200000cc disk + .bss.CardType 0x00000000200000d8 0x1 mycode/fatfs_sd.o .bss.PowerFlag - 0x0000000020000051 0x1 mycode/fatfs_sd.o + 0x00000000200000d9 0x1 mycode/fatfs_sd.o + *fill* 0x00000000200000da 0x2 + .bss.__malloc_free_list + 0x00000000200000dc 0x4 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-mallocr.o) + 0x00000000200000dc __malloc_free_list + .bss.__malloc_sbrk_start + 0x00000000200000e0 0x4 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-mallocr.o) + 0x00000000200000e0 __malloc_sbrk_start *(COMMON) - *fill* 0x0000000020000052 0x2 - COMMON 0x0000000020000054 0xa0 Core/Src/main.o - 0x0000000020000054 hspi2 - 0x00000000200000ac hsram1 - COMMON 0x00000000200000f4 0x4 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o - 0x00000000200000f4 uwTick - COMMON 0x00000000200000f8 0x464 FATFS/App/fatfs.o - 0x00000000200000f8 USERPath - 0x00000000200000fc retUSER - 0x0000000020000100 USERFile - 0x000000002000032c USERFatFS - COMMON 0x000000002000055c 0x2 mycode/fatfs_sd.o - 0x000000002000055c Timer2 - 0x000000002000055d Timer1 - *fill* 0x000000002000055e 0x2 - COMMON 0x0000000020000560 0xa mycode/lcd.o - 0x0000000020000560 lcddev - *fill* 0x000000002000056a 0x2 - COMMON 0x000000002000056c 0x24 mycode/text.o - 0x000000002000056c ftinfo - 0x0000000020000590 . = ALIGN (0x4) - 0x0000000020000590 _ebss = . - 0x0000000020000590 __bss_end__ = _ebss + COMMON 0x00000000200000e4 0xa0 Core/Src/main.o + 0x00000000200000e4 hspi2 + 0x000000002000013c hsram1 + COMMON 0x0000000020000184 0x4 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + 0x0000000020000184 uwTick + COMMON 0x0000000020000188 0x464 FATFS/App/fatfs.o + 0x0000000020000188 USERPath + 0x000000002000018c retUSER + 0x0000000020000190 USERFile + 0x00000000200003bc USERFatFS + COMMON 0x00000000200005ec 0x230 mycode/c.o + 0x00000000200005ec SD + COMMON 0x000000002000081c 0x2 mycode/fatfs_sd.o + 0x000000002000081c Timer2 + 0x000000002000081d Timer1 + *fill* 0x000000002000081e 0x2 + COMMON 0x0000000020000820 0xa mycode/lcd.o + 0x0000000020000820 lcddev + *fill* 0x000000002000082a 0x2 + COMMON 0x000000002000082c 0x24 mycode/text.o + 0x000000002000082c ftinfo + COMMON 0x0000000020000850 0x4 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-reent.o) + 0x0000000020000850 errno + COMMON 0x0000000020000854 0x9 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-lock.o) + 0x0000000020000854 __lock___atexit_recursive_mutex + 0x0000000020000855 __lock___arc4random_mutex + 0x0000000020000856 __lock___env_recursive_mutex + 0x0000000020000857 __lock___sinit_recursive_mutex + 0x0000000020000858 __lock___malloc_recursive_mutex + 0x0000000020000859 __lock___at_quick_exit_mutex + 0x000000002000085a __lock___dd_hash_mutex + 0x000000002000085b __lock___tz_mutex + 0x000000002000085c __lock___sfp_recursive_mutex + 0x0000000020000860 . = ALIGN (0x4) + *fill* 0x000000002000085d 0x3 + 0x0000000020000860 _ebss = . + 0x0000000020000860 __bss_end__ = _ebss ._user_heap_stack - 0x0000000020000590 0x1000 load address 0x0000000008004728 - 0x0000000020000590 . = ALIGN (0x8) + 0x0000000020000860 0x1000 load address 0x0000000008007474 + 0x0000000020000860 . = ALIGN (0x8) [!provide] PROVIDE (end = .) - 0x0000000020000590 PROVIDE (_end = .) - 0x0000000020000d90 . = (. + _Min_Heap_Size) - *fill* 0x0000000020000590 0x800 - 0x0000000020001590 . = (. + _Min_Stack_Size) - *fill* 0x0000000020000d90 0x800 - 0x0000000020001590 . = ALIGN (0x8) + 0x0000000020000860 PROVIDE (_end = .) + 0x0000000020001060 . = (. + _Min_Heap_Size) + *fill* 0x0000000020000860 0x800 + 0x0000000020001860 . = (. + _Min_Stack_Size) + *fill* 0x0000000020001060 0x800 + 0x0000000020001860 . = ALIGN (0x8) /DISCARD/ libc.a(*) @@ -4039,96 +4201,140 @@ LOAD c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.exte .ARM.attributes 0x00000000000000a4 0x2d Core/Src/stm32f1xx_it.o .ARM.attributes - 0x00000000000000d1 0x2d Core/Src/system_stm32f1xx.o + 0x00000000000000d1 0x2d Core/Src/sysmem.o .ARM.attributes - 0x00000000000000fe 0x21 Core/Startup/startup_stm32f103zetx.o + 0x00000000000000fe 0x2d Core/Src/system_stm32f1xx.o .ARM.attributes - 0x000000000000011f 0x2d Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + 0x000000000000012b 0x21 Core/Startup/startup_stm32f103zetx.o .ARM.attributes - 0x000000000000014c 0x2d Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + 0x000000000000014c 0x2d Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o .ARM.attributes - 0x0000000000000179 0x2d Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o + 0x0000000000000179 0x2d Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o .ARM.attributes - 0x00000000000001a6 0x2d Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + 0x00000000000001a6 0x2d Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o .ARM.attributes - 0x00000000000001d3 0x2d Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + 0x00000000000001d3 0x2d Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o .ARM.attributes - 0x0000000000000200 0x2d Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o + 0x0000000000000200 0x2d Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o .ARM.attributes - 0x000000000000022d 0x2d Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o + 0x000000000000022d 0x2d Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o .ARM.attributes - 0x000000000000025a 0x2d FATFS/App/fatfs.o + 0x000000000000025a 0x2d Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o .ARM.attributes - 0x0000000000000287 0x2d FATFS/Target/user_diskio.o + 0x0000000000000287 0x2d FATFS/App/fatfs.o .ARM.attributes - 0x00000000000002b4 0x2d Middlewares/Third_Party/FatFs/src/ff_gen_drv.o + 0x00000000000002b4 0x2d FATFS/Target/user_diskio.o .ARM.attributes - 0x00000000000002e1 0x2d mycode/c.o + 0x00000000000002e1 0x2d Middlewares/Third_Party/FatFs/src/diskio.o .ARM.attributes - 0x000000000000030e 0x2d mycode/falsh.o + 0x000000000000030e 0x2d Middlewares/Third_Party/FatFs/src/ff.o .ARM.attributes - 0x000000000000033b 0x2d mycode/fatfs_sd.o + 0x000000000000033b 0x2d Middlewares/Third_Party/FatFs/src/ff_gen_drv.o .ARM.attributes - 0x0000000000000368 0x2d mycode/lcd.o + 0x0000000000000368 0x2d mycode/c.o .ARM.attributes - 0x0000000000000395 0x2d mycode/text.o + 0x0000000000000395 0x2d mycode/falsh.o .ARM.attributes - 0x00000000000003c2 0x2d c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-init.o) + 0x00000000000003c2 0x2d mycode/fatfs_sd.o .ARM.attributes - 0x00000000000003ef 0x2d c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-memset.o) + 0x00000000000003ef 0x2d mycode/lcd.o .ARM.attributes - 0x000000000000041c 0x1d c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v7-m/nofp/crtn.o + 0x000000000000041c 0x2d mycode/text.o + .ARM.attributes + 0x0000000000000449 0x2d c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-errno.o) + .ARM.attributes + 0x0000000000000476 0x2d c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-impure.o) + .ARM.attributes + 0x00000000000004a3 0x2d c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-init.o) + .ARM.attributes + 0x00000000000004d0 0x2d c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-memset.o) + .ARM.attributes + 0x00000000000004fd 0x2d c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-sprintf.o) + .ARM.attributes + 0x000000000000052a 0x2d c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-svfprintf.o) + .ARM.attributes + 0x0000000000000557 0x2d c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-vfprintf_i.o) + .ARM.attributes + 0x0000000000000584 0x2d c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-memchr-stub.o) + .ARM.attributes + 0x00000000000005b1 0x2d c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-memcpy-stub.o) + .ARM.attributes + 0x00000000000005de 0x2d c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-memmove.o) + .ARM.attributes + 0x000000000000060b 0x2d c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-freer.o) + .ARM.attributes + 0x0000000000000638 0x2d c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-mallocr.o) + .ARM.attributes + 0x0000000000000665 0x2d c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-reallocr.o) + .ARM.attributes + 0x0000000000000692 0x2d c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-sbrkr.o) + .ARM.attributes + 0x00000000000006bf 0x2d c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-mlock.o) + .ARM.attributes + 0x00000000000006ec 0x2d c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-msizer.o) + .ARM.attributes + 0x0000000000000719 0x2d c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-reent.o) + .ARM.attributes + 0x0000000000000746 0x2d c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-lock.o) + .ARM.attributes + 0x0000000000000773 0x1d c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v7-m/nofp/crtn.o OUTPUT(103ze_code.elf elf32-littlearm) LOAD linker stubs LOAD c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc.a LOAD c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libm.a LOAD c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v7-m/nofp\libgcc.a -.debug_info 0x0000000000000000 0xbb02 +.debug_info 0x0000000000000000 0xed98 .debug_info 0x0000000000000000 0x117c Core/Src/main.o .debug_info 0x000000000000117c 0xbe6 Core/Src/stm32f1xx_hal_msp.o .debug_info 0x0000000000001d62 0x222 Core/Src/stm32f1xx_it.o - .debug_info 0x0000000000001f84 0x2be Core/Src/system_stm32f1xx.o - .debug_info 0x0000000000002242 0x22 Core/Startup/startup_stm32f103zetx.o - .debug_info 0x0000000000002264 0x7d0 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o - .debug_info 0x0000000000002a34 0xc42 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o - .debug_info 0x0000000000003676 0x701 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o - .debug_info 0x0000000000003d77 0x88e Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o - .debug_info 0x0000000000004605 0x16bd Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o - .debug_info 0x0000000000005cc2 0xd4b Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o - .debug_info 0x0000000000006a0d 0xae7 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o - .debug_info 0x00000000000074f4 0x5e8 FATFS/App/fatfs.o - .debug_info 0x0000000000007adc 0xced FATFS/Target/user_diskio.o - .debug_info 0x00000000000087c9 0x495 Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_info 0x0000000000008c5e 0x7bf mycode/c.o - .debug_info 0x000000000000941d 0x73b mycode/falsh.o - .debug_info 0x0000000000009b58 0xc6d mycode/fatfs_sd.o - .debug_info 0x000000000000a7c5 0x8a2 mycode/lcd.o - .debug_info 0x000000000000b067 0xa9b mycode/text.o + .debug_info 0x0000000000001f84 0xa25 Core/Src/sysmem.o + .debug_info 0x00000000000029a9 0x2be Core/Src/system_stm32f1xx.o + .debug_info 0x0000000000002c67 0x22 Core/Startup/startup_stm32f103zetx.o + .debug_info 0x0000000000002c89 0x7d0 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + .debug_info 0x0000000000003459 0xc42 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + .debug_info 0x000000000000409b 0x701 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o + .debug_info 0x000000000000479c 0x88e Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + .debug_info 0x000000000000502a 0x16bd Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .debug_info 0x00000000000066e7 0xd4b Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o + .debug_info 0x0000000000007432 0xae7 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o + .debug_info 0x0000000000007f19 0x5e8 FATFS/App/fatfs.o + .debug_info 0x0000000000008501 0xced FATFS/Target/user_diskio.o + .debug_info 0x00000000000091ee 0x4fe Middlewares/Third_Party/FatFs/src/diskio.o + .debug_info 0x00000000000096ec 0x2333 Middlewares/Third_Party/FatFs/src/ff.o + .debug_info 0x000000000000ba1f 0x495 Middlewares/Third_Party/FatFs/src/ff_gen_drv.o + .debug_info 0x000000000000beb4 0x7ef mycode/c.o + .debug_info 0x000000000000c6a3 0x73b mycode/falsh.o + .debug_info 0x000000000000cdde 0xc6d mycode/fatfs_sd.o + .debug_info 0x000000000000da4b 0x8a2 mycode/lcd.o + .debug_info 0x000000000000e2ed 0xaab mycode/text.o -.debug_abbrev 0x0000000000000000 0x26e2 +.debug_abbrev 0x0000000000000000 0x2ced .debug_abbrev 0x0000000000000000 0x292 Core/Src/main.o .debug_abbrev 0x0000000000000292 0x20b Core/Src/stm32f1xx_hal_msp.o .debug_abbrev 0x000000000000049d 0xd2 Core/Src/stm32f1xx_it.o - .debug_abbrev 0x000000000000056f 0x14e Core/Src/system_stm32f1xx.o - .debug_abbrev 0x00000000000006bd 0x12 Core/Startup/startup_stm32f103zetx.o - .debug_abbrev 0x00000000000006cf 0x1ed Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o - .debug_abbrev 0x00000000000008bc 0x313 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o - .debug_abbrev 0x0000000000000bcf 0x1e8 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o - .debug_abbrev 0x0000000000000db7 0x273 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o - .debug_abbrev 0x000000000000102a 0x26e Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o - .debug_abbrev 0x0000000000001298 0x1f2 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o - .debug_abbrev 0x000000000000148a 0x1ae Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o - .debug_abbrev 0x0000000000001638 0x19d FATFS/App/fatfs.o - .debug_abbrev 0x00000000000017d5 0x22e FATFS/Target/user_diskio.o - .debug_abbrev 0x0000000000001a03 0x1bc Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_abbrev 0x0000000000001bbf 0x1ff mycode/c.o - .debug_abbrev 0x0000000000001dbe 0x185 mycode/falsh.o - .debug_abbrev 0x0000000000001f43 0x2c5 mycode/fatfs_sd.o - .debug_abbrev 0x0000000000002208 0x29c mycode/lcd.o - .debug_abbrev 0x00000000000024a4 0x23e mycode/text.o + .debug_abbrev 0x000000000000056f 0x1bf Core/Src/sysmem.o + .debug_abbrev 0x000000000000072e 0x14e Core/Src/system_stm32f1xx.o + .debug_abbrev 0x000000000000087c 0x12 Core/Startup/startup_stm32f103zetx.o + .debug_abbrev 0x000000000000088e 0x1ed Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + .debug_abbrev 0x0000000000000a7b 0x313 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + .debug_abbrev 0x0000000000000d8e 0x1e8 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o + .debug_abbrev 0x0000000000000f76 0x273 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + .debug_abbrev 0x00000000000011e9 0x26e Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .debug_abbrev 0x0000000000001457 0x1f2 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o + .debug_abbrev 0x0000000000001649 0x1ae Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o + .debug_abbrev 0x00000000000017f7 0x19d FATFS/App/fatfs.o + .debug_abbrev 0x0000000000001994 0x22e FATFS/Target/user_diskio.o + .debug_abbrev 0x0000000000001bc2 0x18b Middlewares/Third_Party/FatFs/src/diskio.o + .debug_abbrev 0x0000000000001d4d 0x2bf Middlewares/Third_Party/FatFs/src/ff.o + .debug_abbrev 0x000000000000200c 0x1bc Middlewares/Third_Party/FatFs/src/ff_gen_drv.o + .debug_abbrev 0x00000000000021c8 0x201 mycode/c.o + .debug_abbrev 0x00000000000023c9 0x185 mycode/falsh.o + .debug_abbrev 0x000000000000254e 0x2c5 mycode/fatfs_sd.o + .debug_abbrev 0x0000000000002813 0x29c mycode/lcd.o + .debug_abbrev 0x0000000000002aaf 0x23e mycode/text.o -.debug_aranges 0x0000000000000000 0x9c8 +.debug_aranges 0x0000000000000000 0xc18 .debug_aranges 0x0000000000000000 0x48 Core/Src/main.o .debug_aranges @@ -4136,63 +4342,72 @@ LOAD c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.exte .debug_aranges 0x0000000000000098 0x60 Core/Src/stm32f1xx_it.o .debug_aranges - 0x00000000000000f8 0x28 Core/Src/system_stm32f1xx.o + 0x00000000000000f8 0x20 Core/Src/sysmem.o .debug_aranges - 0x0000000000000120 0x28 Core/Startup/startup_stm32f103zetx.o + 0x0000000000000118 0x28 Core/Src/system_stm32f1xx.o .debug_aranges - 0x0000000000000148 0xe0 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + 0x0000000000000140 0x28 Core/Startup/startup_stm32f103zetx.o .debug_aranges - 0x0000000000000228 0x100 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + 0x0000000000000168 0xe0 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o .debug_aranges - 0x0000000000000328 0x58 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o + 0x0000000000000248 0x100 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o .debug_aranges - 0x0000000000000380 0x90 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + 0x0000000000000348 0x58 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o .debug_aranges - 0x0000000000000410 0x1d0 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + 0x00000000000003a0 0x90 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o .debug_aranges - 0x00000000000005e0 0xb8 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o + 0x0000000000000430 0x1d0 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o .debug_aranges - 0x0000000000000698 0xa8 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o + 0x0000000000000600 0xb8 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o .debug_aranges - 0x0000000000000740 0x28 FATFS/App/fatfs.o + 0x00000000000006b8 0xa8 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o .debug_aranges - 0x0000000000000768 0x40 FATFS/Target/user_diskio.o + 0x0000000000000760 0x28 FATFS/App/fatfs.o .debug_aranges - 0x00000000000007a8 0x40 Middlewares/Third_Party/FatFs/src/ff_gen_drv.o + 0x0000000000000788 0x40 FATFS/Target/user_diskio.o .debug_aranges - 0x00000000000007e8 0x20 mycode/c.o + 0x00000000000007c8 0x48 Middlewares/Third_Party/FatFs/src/diskio.o .debug_aranges - 0x0000000000000808 0x20 mycode/falsh.o + 0x0000000000000810 0x1e8 Middlewares/Third_Party/FatFs/src/ff.o .debug_aranges - 0x0000000000000828 0xa8 mycode/fatfs_sd.o + 0x00000000000009f8 0x40 Middlewares/Third_Party/FatFs/src/ff_gen_drv.o .debug_aranges - 0x00000000000008d0 0xb8 mycode/lcd.o + 0x0000000000000a38 0x20 mycode/c.o .debug_aranges - 0x0000000000000988 0x40 mycode/text.o + 0x0000000000000a58 0x20 mycode/falsh.o + .debug_aranges + 0x0000000000000a78 0xa8 mycode/fatfs_sd.o + .debug_aranges + 0x0000000000000b20 0xb8 mycode/lcd.o + .debug_aranges + 0x0000000000000bd8 0x40 mycode/text.o -.debug_ranges 0x0000000000000000 0x890 +.debug_ranges 0x0000000000000000 0xab0 .debug_ranges 0x0000000000000000 0x38 Core/Src/main.o .debug_ranges 0x0000000000000038 0x40 Core/Src/stm32f1xx_hal_msp.o .debug_ranges 0x0000000000000078 0x50 Core/Src/stm32f1xx_it.o - .debug_ranges 0x00000000000000c8 0x18 Core/Src/system_stm32f1xx.o - .debug_ranges 0x00000000000000e0 0x20 Core/Startup/startup_stm32f103zetx.o - .debug_ranges 0x0000000000000100 0xd0 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o - .debug_ranges 0x00000000000001d0 0xf0 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o - .debug_ranges 0x00000000000002c0 0x48 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o - .debug_ranges 0x0000000000000308 0x80 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o - .debug_ranges 0x0000000000000388 0x1c0 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o - .debug_ranges 0x0000000000000548 0xa8 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o - .debug_ranges 0x00000000000005f0 0x98 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o - .debug_ranges 0x0000000000000688 0x18 FATFS/App/fatfs.o - .debug_ranges 0x00000000000006a0 0x30 FATFS/Target/user_diskio.o - .debug_ranges 0x00000000000006d0 0x30 Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_ranges 0x0000000000000700 0x10 mycode/c.o - .debug_ranges 0x0000000000000710 0x10 mycode/falsh.o - .debug_ranges 0x0000000000000720 0x98 mycode/fatfs_sd.o - .debug_ranges 0x00000000000007b8 0xa8 mycode/lcd.o - .debug_ranges 0x0000000000000860 0x30 mycode/text.o + .debug_ranges 0x00000000000000c8 0x10 Core/Src/sysmem.o + .debug_ranges 0x00000000000000d8 0x18 Core/Src/system_stm32f1xx.o + .debug_ranges 0x00000000000000f0 0x20 Core/Startup/startup_stm32f103zetx.o + .debug_ranges 0x0000000000000110 0xd0 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + .debug_ranges 0x00000000000001e0 0xf0 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + .debug_ranges 0x00000000000002d0 0x48 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o + .debug_ranges 0x0000000000000318 0x80 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + .debug_ranges 0x0000000000000398 0x1c0 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .debug_ranges 0x0000000000000558 0xa8 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o + .debug_ranges 0x0000000000000600 0x98 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o + .debug_ranges 0x0000000000000698 0x18 FATFS/App/fatfs.o + .debug_ranges 0x00000000000006b0 0x30 FATFS/Target/user_diskio.o + .debug_ranges 0x00000000000006e0 0x38 Middlewares/Third_Party/FatFs/src/diskio.o + .debug_ranges 0x0000000000000718 0x1d8 Middlewares/Third_Party/FatFs/src/ff.o + .debug_ranges 0x00000000000008f0 0x30 Middlewares/Third_Party/FatFs/src/ff_gen_drv.o + .debug_ranges 0x0000000000000920 0x10 mycode/c.o + .debug_ranges 0x0000000000000930 0x10 mycode/falsh.o + .debug_ranges 0x0000000000000940 0x98 mycode/fatfs_sd.o + .debug_ranges 0x00000000000009d8 0xa8 mycode/lcd.o + .debug_ranges 0x0000000000000a80 0x30 mycode/text.o -.debug_macro 0x0000000000000000 0x1a202 +.debug_macro 0x0000000000000000 0x1abc9 .debug_macro 0x0000000000000000 0x20e Core/Src/main.o .debug_macro 0x000000000000020e 0xa9c Core/Src/main.o .debug_macro 0x0000000000000caa 0x21b Core/Src/main.o @@ -4236,97 +4451,111 @@ LOAD c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.exte .debug_macro 0x0000000000017501 0x8e Core/Src/main.o .debug_macro 0x000000000001758f 0x1b7 Core/Src/stm32f1xx_hal_msp.o .debug_macro 0x0000000000017746 0x1c1 Core/Src/stm32f1xx_it.o - .debug_macro 0x0000000000017907 0x1a8 Core/Src/system_stm32f1xx.o - .debug_macro 0x0000000000017aaf 0x1cc Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o - .debug_macro 0x0000000000017c7b 0x1a8 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o - .debug_macro 0x0000000000017e23 0x213 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o - .debug_macro 0x0000000000018036 0x1ba Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o - .debug_macro 0x00000000000181f0 0x1b0 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o - .debug_macro 0x00000000000183a0 0x1a8 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o - .debug_macro 0x0000000000018548 0x1e1 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o - .debug_macro 0x0000000000018729 0x20a FATFS/App/fatfs.o - .debug_macro 0x0000000000018933 0xd8 FATFS/App/fatfs.o - .debug_macro 0x0000000000018a0b 0x2dc FATFS/Target/user_diskio.o - .debug_macro 0x0000000000018ce7 0x10 FATFS/Target/user_diskio.o - .debug_macro 0x0000000000018cf7 0x20 FATFS/Target/user_diskio.o - .debug_macro 0x0000000000018d17 0x16 FATFS/Target/user_diskio.o - .debug_macro 0x0000000000018d2d 0x7c FATFS/Target/user_diskio.o - .debug_macro 0x0000000000018da9 0xbd FATFS/Target/user_diskio.o - .debug_macro 0x0000000000018e66 0x56 FATFS/Target/user_diskio.o - .debug_macro 0x0000000000018ebc 0x64 FATFS/Target/user_diskio.o - .debug_macro 0x0000000000018f20 0x1f7 Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_macro 0x0000000000019117 0x233 mycode/c.o - .debug_macro 0x000000000001934a 0x38a mycode/c.o - .debug_macro 0x00000000000196d4 0x10 mycode/c.o - .debug_macro 0x00000000000196e4 0x1d1 mycode/falsh.o - .debug_macro 0x00000000000198b5 0x206 mycode/fatfs_sd.o - .debug_macro 0x0000000000019abb 0x1d0 mycode/lcd.o - .debug_macro 0x0000000000019c8b 0x384 mycode/lcd.o - .debug_macro 0x000000000001a00f 0x1e3 mycode/text.o - .debug_macro 0x000000000001a1f2 0x10 mycode/text.o + .debug_macro 0x0000000000017907 0xff Core/Src/sysmem.o + .debug_macro 0x0000000000017a06 0x23b Core/Src/sysmem.o + .debug_macro 0x0000000000017c41 0x1a8 Core/Src/system_stm32f1xx.o + .debug_macro 0x0000000000017de9 0x1cc Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + .debug_macro 0x0000000000017fb5 0x1a8 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + .debug_macro 0x000000000001815d 0x213 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o + .debug_macro 0x0000000000018370 0x1ba Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + .debug_macro 0x000000000001852a 0x1b0 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .debug_macro 0x00000000000186da 0x1a8 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o + .debug_macro 0x0000000000018882 0x1e1 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o + .debug_macro 0x0000000000018a63 0x20a FATFS/App/fatfs.o + .debug_macro 0x0000000000018c6d 0xd8 FATFS/App/fatfs.o + .debug_macro 0x0000000000018d45 0x2dc FATFS/Target/user_diskio.o + .debug_macro 0x0000000000019021 0x10 FATFS/Target/user_diskio.o + .debug_macro 0x0000000000019031 0x20 FATFS/Target/user_diskio.o + .debug_macro 0x0000000000019051 0x16 FATFS/Target/user_diskio.o + .debug_macro 0x0000000000019067 0x7c FATFS/Target/user_diskio.o + .debug_macro 0x00000000000190e3 0xbd FATFS/Target/user_diskio.o + .debug_macro 0x00000000000191a0 0x56 FATFS/Target/user_diskio.o + .debug_macro 0x00000000000191f6 0x64 FATFS/Target/user_diskio.o + .debug_macro 0x000000000001925a 0x1f7 Middlewares/Third_Party/FatFs/src/diskio.o + .debug_macro 0x0000000000019451 0x43e Middlewares/Third_Party/FatFs/src/ff.o + .debug_macro 0x000000000001988f 0x58 Middlewares/Third_Party/FatFs/src/ff.o + .debug_macro 0x00000000000198e7 0x1f7 Middlewares/Third_Party/FatFs/src/ff_gen_drv.o + .debug_macro 0x0000000000019ade 0x233 mycode/c.o + .debug_macro 0x0000000000019d11 0x38a mycode/c.o + .debug_macro 0x000000000001a09b 0x10 mycode/c.o + .debug_macro 0x000000000001a0ab 0x1d1 mycode/falsh.o + .debug_macro 0x000000000001a27c 0x206 mycode/fatfs_sd.o + .debug_macro 0x000000000001a482 0x1d0 mycode/lcd.o + .debug_macro 0x000000000001a652 0x384 mycode/lcd.o + .debug_macro 0x000000000001a9d6 0x1e3 mycode/text.o + .debug_macro 0x000000000001abb9 0x10 mycode/text.o -.debug_line 0x0000000000000000 0xc6fc +.debug_line 0x0000000000000000 0x102bc .debug_line 0x0000000000000000 0x884 Core/Src/main.o .debug_line 0x0000000000000884 0x77c Core/Src/stm32f1xx_hal_msp.o .debug_line 0x0000000000001000 0x73c Core/Src/stm32f1xx_it.o - .debug_line 0x000000000000173c 0x6f8 Core/Src/system_stm32f1xx.o - .debug_line 0x0000000000001e34 0x84 Core/Startup/startup_stm32f103zetx.o - .debug_line 0x0000000000001eb8 0x925 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o - .debug_line 0x00000000000027dd 0xb0d Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o - .debug_line 0x00000000000032ea 0x9e4 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o - .debug_line 0x0000000000003cce 0xd33 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o - .debug_line 0x0000000000004a01 0x1b9d Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o - .debug_line 0x000000000000659e 0xc98 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o - .debug_line 0x0000000000007236 0x981 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o - .debug_line 0x0000000000007bb7 0x715 FATFS/App/fatfs.o - .debug_line 0x00000000000082cc 0x8c7 FATFS/Target/user_diskio.o - .debug_line 0x0000000000008b93 0x7a3 Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_line 0x0000000000009336 0x73e mycode/c.o - .debug_line 0x0000000000009a74 0x69c mycode/falsh.o - .debug_line 0x000000000000a110 0xd6a mycode/fatfs_sd.o - .debug_line 0x000000000000ae7a 0xfac mycode/lcd.o - .debug_line 0x000000000000be26 0x8d6 mycode/text.o + .debug_line 0x000000000000173c 0x4f8 Core/Src/sysmem.o + .debug_line 0x0000000000001c34 0x6f8 Core/Src/system_stm32f1xx.o + .debug_line 0x000000000000232c 0x84 Core/Startup/startup_stm32f103zetx.o + .debug_line 0x00000000000023b0 0x925 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + .debug_line 0x0000000000002cd5 0xb0d Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + .debug_line 0x00000000000037e2 0x9e4 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o + .debug_line 0x00000000000041c6 0xd33 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + .debug_line 0x0000000000004ef9 0x1b9d Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .debug_line 0x0000000000006a96 0xc98 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o + .debug_line 0x000000000000772e 0x981 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o + .debug_line 0x00000000000080af 0x715 FATFS/App/fatfs.o + .debug_line 0x00000000000087c4 0x8c7 FATFS/Target/user_diskio.o + .debug_line 0x000000000000908b 0x786 Middlewares/Third_Party/FatFs/src/diskio.o + .debug_line 0x0000000000009811 0x2f22 Middlewares/Third_Party/FatFs/src/ff.o + .debug_line 0x000000000000c733 0x7a3 Middlewares/Third_Party/FatFs/src/ff_gen_drv.o + .debug_line 0x000000000000ced6 0x754 mycode/c.o + .debug_line 0x000000000000d62a 0x69c mycode/falsh.o + .debug_line 0x000000000000dcc6 0xd6a mycode/fatfs_sd.o + .debug_line 0x000000000000ea30 0xfac mycode/lcd.o + .debug_line 0x000000000000f9dc 0x8e0 mycode/text.o -.debug_str 0x0000000000000000 0x92d57 - .debug_str 0x0000000000000000 0x8cefd Core/Src/main.o +.debug_str 0x0000000000000000 0x93fbe + .debug_str 0x0000000000000000 0x8cef8 Core/Src/main.o 0x8d419 (size before relaxing) - .debug_str 0x000000000008cefd 0xc5 Core/Src/stm32f1xx_hal_msp.o + .debug_str 0x000000000008cef8 0xc5 Core/Src/stm32f1xx_hal_msp.o 0x8c968 (size before relaxing) - .debug_str 0x000000000008cfc2 0xbd Core/Src/stm32f1xx_it.o + .debug_str 0x000000000008cfbd 0xbd Core/Src/stm32f1xx_it.o 0x8c33b (size before relaxing) - .debug_str 0x000000000008d07f 0x52 Core/Src/system_stm32f1xx.o + .debug_str 0x000000000008d07a 0x220a Core/Src/sysmem.o + 0x6250 (size before relaxing) + .debug_str 0x000000000008f284 0x52 Core/Src/system_stm32f1xx.o 0x8c285 (size before relaxing) - .debug_str 0x000000000008d0d1 0x36 Core/Startup/startup_stm32f103zetx.o + .debug_str 0x000000000008f2d6 0x36 Core/Startup/startup_stm32f103zetx.o 0x64 (size before relaxing) - .debug_str 0x000000000008d107 0x5f6 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + .debug_str 0x000000000008f30c 0x5f6 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o 0x8c9fa (size before relaxing) - .debug_str 0x000000000008d6fd 0x300 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + .debug_str 0x000000000008f902 0x300 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o 0x8ca02 (size before relaxing) - .debug_str 0x000000000008d9fd 0x324 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o + .debug_str 0x000000000008fc02 0x324 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o 0x8c649 (size before relaxing) - .debug_str 0x000000000008dd21 0x24f Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + .debug_str 0x000000000008ff26 0x24f Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o 0x8c682 (size before relaxing) - .debug_str 0x000000000008df70 0x544 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .debug_str 0x0000000000090175 0x544 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o 0x8cb90 (size before relaxing) - .debug_str 0x000000000008e4b4 0x1fd Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o + .debug_str 0x00000000000906b9 0x1f7 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o 0x8c87b (size before relaxing) - .debug_str 0x000000000008e6b1 0x7ef Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o + .debug_str 0x00000000000908b0 0x7ef Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o 0x8cc1c (size before relaxing) - .debug_str 0x000000000008eea0 0x2f FATFS/App/fatfs.o + .debug_str 0x000000000009109f 0x2f FATFS/App/fatfs.o 0x8cbc6 (size before relaxing) - .debug_str 0x000000000008eecf 0x330a FATFS/Target/user_diskio.o + .debug_str 0x00000000000910ce 0x15dc FATFS/Target/user_diskio.o 0x8fe1e (size before relaxing) - .debug_str 0x00000000000921d9 0xcb Middlewares/Third_Party/FatFs/src/ff_gen_drv.o + .debug_str 0x00000000000926aa 0x52 Middlewares/Third_Party/FatFs/src/diskio.o + 0x8cb03 (size before relaxing) + .debug_str 0x00000000000926fc 0xd6b Middlewares/Third_Party/FatFs/src/ff.o + 0x8d8f0 (size before relaxing) + .debug_str 0x0000000000093467 0xa2 Middlewares/Third_Party/FatFs/src/ff_gen_drv.o 0x8cb54 (size before relaxing) - .debug_str 0x00000000000922a4 0x6e0 mycode/c.o - 0x8d3ae (size before relaxing) - .debug_str 0x0000000000092984 0x5a mycode/falsh.o + .debug_str 0x0000000000093509 0x6e8 mycode/c.o + 0x8d3b6 (size before relaxing) + .debug_str 0x0000000000093bf1 0x5a mycode/falsh.o 0x8c6c7 (size before relaxing) - .debug_str 0x00000000000929de 0x17b mycode/fatfs_sd.o + .debug_str 0x0000000000093c4b 0x17b mycode/fatfs_sd.o 0x8cafc (size before relaxing) - .debug_str 0x0000000000092b59 0x192 mycode/lcd.o + .debug_str 0x0000000000093dc6 0x18c mycode/lcd.o 0x8ca89 (size before relaxing) - .debug_str 0x0000000000092ceb 0x6c mycode/text.o + .debug_str 0x0000000000093f52 0x6c mycode/text.o 0x8cdb6 (size before relaxing) .comment 0x0000000000000000 0x53 @@ -4334,6 +4563,7 @@ LOAD c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.exte 0x54 (size before relaxing) .comment 0x0000000000000053 0x54 Core/Src/stm32f1xx_hal_msp.o .comment 0x0000000000000053 0x54 Core/Src/stm32f1xx_it.o + .comment 0x0000000000000053 0x54 Core/Src/sysmem.o .comment 0x0000000000000053 0x54 Core/Src/system_stm32f1xx.o .comment 0x0000000000000053 0x54 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o .comment 0x0000000000000053 0x54 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o @@ -4344,6 +4574,8 @@ LOAD c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.exte .comment 0x0000000000000053 0x54 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o .comment 0x0000000000000053 0x54 FATFS/App/fatfs.o .comment 0x0000000000000053 0x54 FATFS/Target/user_diskio.o + .comment 0x0000000000000053 0x54 Middlewares/Third_Party/FatFs/src/diskio.o + .comment 0x0000000000000053 0x54 Middlewares/Third_Party/FatFs/src/ff.o .comment 0x0000000000000053 0x54 Middlewares/Third_Party/FatFs/src/ff_gen_drv.o .comment 0x0000000000000053 0x54 mycode/c.o .comment 0x0000000000000053 0x54 mycode/falsh.o @@ -4351,25 +4583,43 @@ LOAD c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.exte .comment 0x0000000000000053 0x54 mycode/lcd.o .comment 0x0000000000000053 0x54 mycode/text.o -.debug_frame 0x0000000000000000 0x24c8 +.debug_frame 0x0000000000000000 0x32d8 .debug_frame 0x0000000000000000 0xcc Core/Src/main.o .debug_frame 0x00000000000000cc 0x108 Core/Src/stm32f1xx_hal_msp.o .debug_frame 0x00000000000001d4 0x104 Core/Src/stm32f1xx_it.o - .debug_frame 0x00000000000002d8 0x58 Core/Src/system_stm32f1xx.o - .debug_frame 0x0000000000000330 0x334 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o - .debug_frame 0x0000000000000664 0x428 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o - .debug_frame 0x0000000000000a8c 0x14c Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o - .debug_frame 0x0000000000000bd8 0x21c Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o - .debug_frame 0x0000000000000df4 0x824 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o - .debug_frame 0x0000000000001618 0x30c Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o - .debug_frame 0x0000000000001924 0x2dc Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o - .debug_frame 0x0000000000001c00 0x4c FATFS/App/fatfs.o - .debug_frame 0x0000000000001c4c 0xc4 FATFS/Target/user_diskio.o - .debug_frame 0x0000000000001d10 0xc8 Middlewares/Third_Party/FatFs/src/ff_gen_drv.o - .debug_frame 0x0000000000001dd8 0x30 mycode/c.o - .debug_frame 0x0000000000001e08 0x34 mycode/falsh.o - .debug_frame 0x0000000000001e3c 0x288 mycode/fatfs_sd.o - .debug_frame 0x00000000000020c4 0x2ec mycode/lcd.o - .debug_frame 0x00000000000023b0 0xcc mycode/text.o - .debug_frame 0x000000000000247c 0x2c c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-init.o) - .debug_frame 0x00000000000024a8 0x20 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-memset.o) + .debug_frame 0x00000000000002d8 0x34 Core/Src/sysmem.o + .debug_frame 0x000000000000030c 0x58 Core/Src/system_stm32f1xx.o + .debug_frame 0x0000000000000364 0x334 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + .debug_frame 0x0000000000000698 0x428 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + .debug_frame 0x0000000000000ac0 0x14c Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o + .debug_frame 0x0000000000000c0c 0x21c Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + .debug_frame 0x0000000000000e28 0x824 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .debug_frame 0x000000000000164c 0x30c Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o + .debug_frame 0x0000000000001958 0x2dc Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o + .debug_frame 0x0000000000001c34 0x4c FATFS/App/fatfs.o + .debug_frame 0x0000000000001c80 0xc4 FATFS/Target/user_diskio.o + .debug_frame 0x0000000000001d44 0xec Middlewares/Third_Party/FatFs/src/diskio.o + .debug_frame 0x0000000000001e30 0x8d0 Middlewares/Third_Party/FatFs/src/ff.o + .debug_frame 0x0000000000002700 0xc8 Middlewares/Third_Party/FatFs/src/ff_gen_drv.o + .debug_frame 0x00000000000027c8 0x30 mycode/c.o + .debug_frame 0x00000000000027f8 0x34 mycode/falsh.o + .debug_frame 0x000000000000282c 0x288 mycode/fatfs_sd.o + .debug_frame 0x0000000000002ab4 0x2ec mycode/lcd.o + .debug_frame 0x0000000000002da0 0xcc mycode/text.o + .debug_frame 0x0000000000002e6c 0x20 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-errno.o) + .debug_frame 0x0000000000002e8c 0x2c c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-init.o) + .debug_frame 0x0000000000002eb8 0x20 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-memset.o) + .debug_frame 0x0000000000002ed8 0x6c c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-sprintf.o) + .debug_frame 0x0000000000002f44 0x90 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-svfprintf.o) + .debug_frame 0x0000000000002fd4 0x60 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-vfprintf_i.o) + .debug_frame 0x0000000000003034 0x28 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-memchr-stub.o) + .debug_frame 0x000000000000305c 0x28 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-memcpy-stub.o) + .debug_frame 0x0000000000003084 0x28 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-memmove.o) + .debug_frame 0x00000000000030ac 0x38 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-freer.o) + .debug_frame 0x00000000000030e4 0x30 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-mallocr.o) + .debug_frame 0x0000000000003114 0x3c c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-reallocr.o) + .debug_frame 0x0000000000003150 0x2c c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-sbrkr.o) + .debug_frame 0x000000000000317c 0x30 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-mlock.o) + .debug_frame 0x00000000000031ac 0x20 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-nano-msizer.o) + .debug_frame 0x00000000000031cc 0x5c c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-reent.o) + .debug_frame 0x0000000000003228 0xb0 c:/st/stm32cubeide_1.6.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-lock.o) diff --git a/103ze/Debug/Core/Src/main.o b/103ze/Debug/Core/Src/main.o index 19df0b9..81e8404 100644 Binary files a/103ze/Debug/Core/Src/main.o and b/103ze/Debug/Core/Src/main.o differ diff --git a/103ze/Debug/Core/Src/stm32f1xx_hal_msp.o b/103ze/Debug/Core/Src/stm32f1xx_hal_msp.o index 59c3d13..0d4eaf7 100644 Binary files a/103ze/Debug/Core/Src/stm32f1xx_hal_msp.o and b/103ze/Debug/Core/Src/stm32f1xx_hal_msp.o differ diff --git a/103ze/Debug/Core/Src/stm32f1xx_it.o b/103ze/Debug/Core/Src/stm32f1xx_it.o index 9374ec9..7cc4c23 100644 Binary files a/103ze/Debug/Core/Src/stm32f1xx_it.o and b/103ze/Debug/Core/Src/stm32f1xx_it.o differ diff --git a/103ze/Debug/Core/Src/syscalls.o b/103ze/Debug/Core/Src/syscalls.o index 496f670..3300476 100644 Binary files a/103ze/Debug/Core/Src/syscalls.o and b/103ze/Debug/Core/Src/syscalls.o differ diff --git a/103ze/Debug/Core/Src/sysmem.o b/103ze/Debug/Core/Src/sysmem.o index 10694e0..e2254ba 100644 Binary files a/103ze/Debug/Core/Src/sysmem.o and b/103ze/Debug/Core/Src/sysmem.o differ diff --git a/103ze/Debug/Core/Src/system_stm32f1xx.o b/103ze/Debug/Core/Src/system_stm32f1xx.o index 5aa4b1e..ca13a5b 100644 Binary files a/103ze/Debug/Core/Src/system_stm32f1xx.o and b/103ze/Debug/Core/Src/system_stm32f1xx.o differ diff --git a/103ze/Debug/Core/Startup/startup_stm32f103zetx.o b/103ze/Debug/Core/Startup/startup_stm32f103zetx.o index 26def97..cce4889 100644 Binary files a/103ze/Debug/Core/Startup/startup_stm32f103zetx.o and b/103ze/Debug/Core/Startup/startup_stm32f103zetx.o differ diff --git a/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o b/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o index 3a103a4..4db1c58 100644 Binary files a/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o and b/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o differ diff --git a/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o b/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o index 2915189..95b9e9f 100644 Binary files a/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o and b/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o differ diff --git a/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o b/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o index 15d570c..fcf6096 100644 Binary files a/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o and b/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o differ diff --git a/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.o b/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.o index 059382b..dff7650 100644 Binary files a/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.o and b/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.o differ diff --git a/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o b/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o index 561892a..9f202b0 100644 Binary files a/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o and b/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o differ diff --git a/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o b/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o index 4ee5532..6cea29a 100644 Binary files a/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o and b/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o differ diff --git a/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o b/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o index 7e8482d..e01ec87 100644 Binary files a/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o and b/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o differ diff --git a/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.o b/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.o index e6379c7..e6e15d5 100644 Binary files a/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.o and b/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.o differ diff --git a/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.o b/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.o index 57b69db..d71d14b 100644 Binary files a/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.o and b/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.o differ diff --git a/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o b/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o index 6421a8a..191747c 100644 Binary files a/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o and b/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o differ diff --git a/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o b/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o index 68e56da..b73a3bb 100644 Binary files a/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o and b/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o differ diff --git a/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o b/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o index 5106094..9944057 100644 Binary files a/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o and b/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o differ diff --git a/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o b/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o index 8c7b384..da5a0c4 100644 Binary files a/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o and b/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o differ diff --git a/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o b/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o index feeefa4..8baabbe 100644 Binary files a/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o and b/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o differ diff --git a/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o b/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o index 24f20ad..67da957 100644 Binary files a/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o and b/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o differ diff --git a/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o b/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o index b71fff6..752b12b 100644 Binary files a/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o and b/103ze/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o differ diff --git a/103ze/Debug/FATFS/App/fatfs.o b/103ze/Debug/FATFS/App/fatfs.o index f47fe69..6ef5aac 100644 Binary files a/103ze/Debug/FATFS/App/fatfs.o and b/103ze/Debug/FATFS/App/fatfs.o differ diff --git a/103ze/Debug/FATFS/Target/user_diskio.o b/103ze/Debug/FATFS/Target/user_diskio.o index b47612d..84a7c1b 100644 Binary files a/103ze/Debug/FATFS/Target/user_diskio.o and b/103ze/Debug/FATFS/Target/user_diskio.o differ diff --git a/103ze/Debug/Middlewares/Third_Party/FatFs/src/diskio.o b/103ze/Debug/Middlewares/Third_Party/FatFs/src/diskio.o index eac7069..b90419c 100644 Binary files a/103ze/Debug/Middlewares/Third_Party/FatFs/src/diskio.o and b/103ze/Debug/Middlewares/Third_Party/FatFs/src/diskio.o differ diff --git a/103ze/Debug/Middlewares/Third_Party/FatFs/src/ff.o b/103ze/Debug/Middlewares/Third_Party/FatFs/src/ff.o index e687fa2..86b4c69 100644 Binary files a/103ze/Debug/Middlewares/Third_Party/FatFs/src/ff.o and b/103ze/Debug/Middlewares/Third_Party/FatFs/src/ff.o differ diff --git a/103ze/Debug/Middlewares/Third_Party/FatFs/src/ff_gen_drv.o b/103ze/Debug/Middlewares/Third_Party/FatFs/src/ff_gen_drv.o index 77941d3..ed997f9 100644 Binary files a/103ze/Debug/Middlewares/Third_Party/FatFs/src/ff_gen_drv.o and b/103ze/Debug/Middlewares/Third_Party/FatFs/src/ff_gen_drv.o differ diff --git a/103ze/Debug/Middlewares/Third_Party/FatFs/src/option/syscall.o b/103ze/Debug/Middlewares/Third_Party/FatFs/src/option/syscall.o index f720737..4f117d7 100644 Binary files a/103ze/Debug/Middlewares/Third_Party/FatFs/src/option/syscall.o and b/103ze/Debug/Middlewares/Third_Party/FatFs/src/option/syscall.o differ diff --git a/103ze/Debug/makefile b/103ze/Debug/makefile index 5775bd3..efcb9a8 100644 --- a/103ze/Debug/makefile +++ b/103ze/Debug/makefile @@ -66,8 +66,8 @@ all: main-build main-build: 103ze_code.elf secondary-outputs # Tool invocations -103ze_code.elf: $(OBJS) $(USER_OBJS) C:\Users\13370\Desktop\smartbooks\103ze\STM32F103ZETX_FLASH.ld makefile objects.list $(OPTIONAL_TOOL_DEPS) - arm-none-eabi-gcc -o "103ze_code.elf" @"objects.list" $(USER_OBJS) $(LIBS) -mcpu=cortex-m3 -T"C:\Users\13370\Desktop\smartbooks\103ze\STM32F103ZETX_FLASH.ld" --specs=nosys.specs -Wl,-Map="103ze_code.map" -Wl,--gc-sections -static --specs=nano.specs -mfloat-abi=soft -mthumb -Wl,--start-group -lc -lm -Wl,--end-group +103ze_code.elf: $(OBJS) $(USER_OBJS) C:\Users\kevin\Desktop\smartbooks\103ze\STM32F103ZETX_FLASH.ld makefile objects.list $(OPTIONAL_TOOL_DEPS) + arm-none-eabi-gcc -o "103ze_code.elf" @"objects.list" $(USER_OBJS) $(LIBS) -mcpu=cortex-m3 -T"C:\Users\kevin\Desktop\smartbooks\103ze\STM32F103ZETX_FLASH.ld" --specs=nosys.specs -Wl,-Map="103ze_code.map" -Wl,--gc-sections -static --specs=nano.specs -mfloat-abi=soft -mthumb -Wl,--start-group -lc -lm -Wl,--end-group @echo 'Finished building target: $@' @echo ' ' diff --git a/103ze/Debug/mycode/c.o b/103ze/Debug/mycode/c.o index 22a1275..c61410a 100644 Binary files a/103ze/Debug/mycode/c.o and b/103ze/Debug/mycode/c.o differ diff --git a/103ze/Debug/mycode/c.su b/103ze/Debug/mycode/c.su index ea9872e..fbee2cc 100644 --- a/103ze/Debug/mycode/c.su +++ b/103ze/Debug/mycode/c.su @@ -1 +1 @@ -c.c:14:5:my_main 656 static +c.c:14:5:my_main 672 static diff --git a/103ze/Debug/mycode/falsh.o b/103ze/Debug/mycode/falsh.o index 1720564..364ce0a 100644 Binary files a/103ze/Debug/mycode/falsh.o and b/103ze/Debug/mycode/falsh.o differ diff --git a/103ze/Debug/mycode/fatfs_sd.o b/103ze/Debug/mycode/fatfs_sd.o index 39f6e5b..16f0373 100644 Binary files a/103ze/Debug/mycode/fatfs_sd.o and b/103ze/Debug/mycode/fatfs_sd.o differ diff --git a/103ze/Debug/mycode/lcd.o b/103ze/Debug/mycode/lcd.o index 6c672f1..e198b1b 100644 Binary files a/103ze/Debug/mycode/lcd.o and b/103ze/Debug/mycode/lcd.o differ diff --git a/103ze/Debug/mycode/text.o b/103ze/Debug/mycode/text.o index e48a202..2b6ca22 100644 Binary files a/103ze/Debug/mycode/text.o and b/103ze/Debug/mycode/text.o differ diff --git a/103ze/Debug/mycode/text.su b/103ze/Debug/mycode/text.su index a855d7b..a617861 100644 --- a/103ze/Debug/mycode/text.su +++ b/103ze/Debug/mycode/text.su @@ -1,5 +1,5 @@ text.c:217:9:font_init 16 static -text.c:240:6:Get_HzMat 32 static -text.c:276:6:Show_Font 104 static -text.c:308:6:LCD_ShowChar 32 static -text.c:346:6:LCD_ShowString 40 static +text.c:241:6:Get_HzMat 32 static +text.c:277:6:Show_Font 104 static +text.c:309:6:LCD_ShowChar 32 static +text.c:347:6:LCD_ShowString 40 static diff --git a/103ze/mycode/c.c b/103ze/mycode/c.c index 28b24e5..d421979 100644 --- a/103ze/mycode/c.c +++ b/103ze/mycode/c.c @@ -20,19 +20,25 @@ int my_main() char str[16]; LCD_BL(0); LCDx_Init(); + LCD_Clear(GRAY); + if(font_init()) { - LCD_ShowString(0,16,(uint8_t *)"erro",16,RED,BLUE); + LCD_ShowString(0,16,(uint8_t *)"erro",16,RED,BLUE,64); } - LCD_Clear(GRAY); -/* + f_mount(&SD,"0:",1); res=f_open(&fil,"0:/demo.txt",FA_READ); - res=f_read(&fil,fil_buff,16,(UINT*)&br); + res=f_read(&fil,fil_buff,32,(UINT*)&br); sprintf(str,"%s\0\0",fil_buff); - LCD_ShowString(0,0,str,16,RED,BLUE); -*/ - LCD_ShowString(0,0,"123dsjvn啊",12,RED,BLUE); + LCD_ShowString(0,0,str,16,RED,BLUE,64); + + /* + sprintf(str,"%02x\n%02x\n%02x\n%02x\n%02x",ftinfo.fontok,ftinfo.ugbkaddr,ftinfo.ugbksize,ftinfo.f12addr,ftinfo.gbk12size); + LCD_ShowString(0,0,str,12,RED,BLUE); + + LCD_ShowString(0,100,"163165sdf阿尔法",12,RED,BLUE); + */ while(1) { diff --git a/103ze/mycode/text.c b/103ze/mycode/text.c index f936d86..83c14ea 100644 --- a/103ze/mycode/text.c +++ b/103ze/mycode/text.c @@ -223,7 +223,8 @@ uint8_t font_init(void) W25QXX_Read((uint8_t*)&ftinfo,FONTINFOADDR,sizeof(ftinfo));//读出ftinfo结构体数据 if(ftinfo.fontok==0XAA) { - ftinfo.f12addr+=1; + ftinfo.f12addr=0x0042a929; + ftinfo.f16addr=0x004b6d89; return 0; } @@ -343,9 +344,9 @@ void LCD_ShowChar(uint16_t x,uint16_t y,uint8_t num,uint8_t size,uint16_t bg,uin //size:字体大小 //*p:字符串起始地址 -void LCD_ShowString(uint16_t x,uint16_t y,uint8_t *p,uint8_t size,uint16_t bg,uint16_t color) +void LCD_ShowString(uint16_t x,uint16_t y,uint8_t *p,uint8_t size,uint16_t bg,uint16_t color,uint16_t len) { - while(*p!='\0') + while(len--) { if(x>=lcddev.width) @@ -353,6 +354,10 @@ void LCD_ShowString(uint16_t x,uint16_t y,uint8_t *p,uint8_t size,uint16_t bg,ui x=0; y+=size; } + if(*p=='\0') + { + return; + } if(*p=='\r') { p++; @@ -371,7 +376,7 @@ void LCD_ShowString(uint16_t x,uint16_t y,uint8_t *p,uint8_t size,uint16_t bg,ui { Show_Font(x,y,p,size,bg,color); p++; - x+=size; + x+=size; } p++; diff --git a/103ze/mycode/text.h b/103ze/mycode/text.h index c7c7445..084ec4e 100644 --- a/103ze/mycode/text.h +++ b/103ze/mycode/text.h @@ -14,7 +14,7 @@ //前面4M被fatfs占用了. //4M以后紧跟3个字库+UNIGBK.BIN,总大小3.09M,被字库占用了,不能动! //5.10M以后,用户可以自由使用.建议用最后的100K字节比较好. -__packed typedef struct +typedef struct { uint8_t fontok; //字库存在标志,0XAA,字库正常;其他,字库不存在 uint32_t ugbkaddr; //unigbk的地址 @@ -32,6 +32,6 @@ extern _font_info ftinfo; uint8_t font_init(void); void Show_Font(uint16_t x,uint16_t y,uint8_t *font,uint8_t size,uint16_t bg,uint16_t color); void LCD_ShowChar(uint16_t x,uint16_t y,uint8_t num,uint8_t size,uint16_t bg,uint16_t color); -void LCD_ShowString(uint16_t x,uint16_t y,uint8_t *p,uint8_t size,uint16_t bg,uint16_t color); +void LCD_ShowString(uint16_t x,uint16_t y,uint8_t *p,uint8_t size,uint16_t bg,uint16_t color,uint16_t len); #endif /* TEXT_H_ */