“优化了一下”

This commit is contained in:
2021-11-05 10:21:32 +08:00
parent a4d76b0005
commit 7a4c0b2aba
6 changed files with 2126 additions and 2161 deletions
Binary file not shown.
+1826 -1846
View File
File diff suppressed because it is too large Load Diff
+188 -187
View File
@@ -28,12 +28,12 @@ pFlash 0x20 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0
dis_buff 0x11 ./Core/Src/main.o dis_buff 0x11 ./Core/Src/main.o
key1 0x10 ./my_software/my_code.o key1 0x10 ./my_software/my_code.o
key3 0x10 ./my_software/my_code.o key3 0x10 ./my_software/my_code.o
ADCC 0x14 ./my_software/my_code.o ADCC 0x14 ./Core/Src/main.o
key2 0x10 ./my_software/my_code.o key2 0x10 ./my_software/my_code.o
htim14 0x48 ./Core/Src/main.o htim14 0x48 ./Core/Src/main.o
hadc 0x40 ./Core/Src/main.o hadc 0x40 ./Core/Src/main.o
moto 0x10 ./my_software/my_code.o moto 0x10 ./Core/Src/main.o
config 0x8 ./my_software/my_code.o config 0xc ./my_software/my_code.o
Discarded input sections Discarded input sections
@@ -3148,7 +3148,7 @@ Discarded input sections
.debug_macro 0x0000000000000000 0x28 ./my_software/ht1621.o .debug_macro 0x0000000000000000 0x28 ./my_software/ht1621.o
.debug_macro 0x0000000000000000 0xf1 ./my_software/ht1621.o .debug_macro 0x0000000000000000 0xf1 ./my_software/ht1621.o
.debug_macro 0x0000000000000000 0xa6 ./my_software/ht1621.o .debug_macro 0x0000000000000000 0xa6 ./my_software/ht1621.o
.debug_macro 0x0000000000000000 0x40 ./my_software/ht1621.o .debug_macro 0x0000000000000000 0x52 ./my_software/ht1621.o
.group 0x0000000000000000 0xc ./my_software/iic.o .group 0x0000000000000000 0xc ./my_software/iic.o
.group 0x0000000000000000 0xc ./my_software/iic.o .group 0x0000000000000000 0xc ./my_software/iic.o
.group 0x0000000000000000 0xc ./my_software/iic.o .group 0x0000000000000000 0xc ./my_software/iic.o
@@ -3532,7 +3532,7 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id
0x0000000008000000 g_pfnVectors 0x0000000008000000 g_pfnVectors
0x00000000080000c0 . = ALIGN (0x4) 0x00000000080000c0 . = ALIGN (0x4)
.text 0x00000000080000c0 0x3e00 .text 0x00000000080000c0 0x3df0
0x00000000080000c0 . = ALIGN (0x4) 0x00000000080000c0 . = ALIGN (0x4)
*(.text) *(.text)
.text 0x00000000080000c0 0x48 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtbegin.o .text 0x00000000080000c0 0x48 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtbegin.o
@@ -3787,121 +3787,121 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id
.text.Sand_Byte_to_595_2 .text.Sand_Byte_to_595_2
0x0000000008002f18 0xdc ./my_software/my_code.o 0x0000000008002f18 0xdc ./my_software/my_code.o
0x0000000008002f18 Sand_Byte_to_595_2 0x0000000008002f18 Sand_Byte_to_595_2
.text.hc2_sever .text.HC595_control_server
0x0000000008002ff4 0x88 ./my_software/my_code.o 0x0000000008002ff4 0x88 ./my_software/my_code.o
0x0000000008002ff4 hc2_sever 0x0000000008002ff4 HC595_control_server
.text.moto_server .text.Motoer_control_server
0x000000000800307c 0x1a0 ./my_software/my_code.o 0x000000000800307c 0x170 ./my_software/my_code.o
0x000000000800307c moto_server 0x000000000800307c Motoer_control_server
.text.HT1621_Display_GetButton .text.HT1621_Display_GetButton
0x000000000800321c 0x124 ./my_software/my_code.o 0x00000000080031ec 0x124 ./my_software/my_code.o
0x000000000800321c HT1621_Display_GetButton 0x00000000080031ec HT1621_Display_GetButton
.text.check_need_reset .text.check_need_reset
0x0000000008003340 0xd8 ./my_software/my_code.o 0x0000000008003310 0xd8 ./my_software/my_code.o
0x0000000008003340 check_need_reset 0x0000000008003310 check_need_reset
.text.my_code 0x0000000008003418 0x894 ./my_software/my_code.o .text.my_code 0x00000000080033e8 0x8b4 ./my_software/my_code.o
0x0000000008003418 my_code 0x00000000080033e8 my_code
.text.r480_init .text.r480_init
0x0000000008003cac 0x20 ./my_software/r480r.o 0x0000000008003c9c 0x20 ./my_software/r480r.o
0x0000000008003cac r480_init 0x0000000008003c9c r480_init
.text.read_433_exit .text.read_433_exit
0x0000000008003ccc 0x138 ./my_software/r480r.o 0x0000000008003cbc 0x138 ./my_software/r480r.o
0x0000000008003ccc read_433_exit 0x0000000008003cbc read_433_exit
.text.HAL_GPIO_EXTI_Callback .text.HAL_GPIO_EXTI_Callback
0x0000000008003e04 0x20 ./my_software/r480r.o 0x0000000008003df4 0x20 ./my_software/r480r.o
0x0000000008003e04 HAL_GPIO_EXTI_Callback 0x0000000008003df4 HAL_GPIO_EXTI_Callback
.text.HAL_TIM_PeriodElapsedCallback .text.HAL_TIM_PeriodElapsedCallback
0x0000000008003e24 0x2c ./my_software/r480r.o 0x0000000008003e14 0x2c ./my_software/r480r.o
0x0000000008003e24 HAL_TIM_PeriodElapsedCallback 0x0000000008003e14 HAL_TIM_PeriodElapsedCallback
.text.__libc_init_array .text.__libc_init_array
0x0000000008003e50 0x48 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/nofp/libc_nano.a(lib_a-init.o) 0x0000000008003e40 0x48 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/nofp/libc_nano.a(lib_a-init.o)
0x0000000008003e50 __libc_init_array 0x0000000008003e40 __libc_init_array
.text.memset 0x0000000008003e98 0x10 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/nofp/libc_nano.a(lib_a-memset.o) .text.memset 0x0000000008003e88 0x10 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/nofp/libc_nano.a(lib_a-memset.o)
0x0000000008003e98 memset 0x0000000008003e88 memset
*(.glue_7) *(.glue_7)
.glue_7 0x0000000008003ea8 0x0 linker stubs .glue_7 0x0000000008003e98 0x0 linker stubs
*(.glue_7t) *(.glue_7t)
.glue_7t 0x0000000008003ea8 0x0 linker stubs .glue_7t 0x0000000008003e98 0x0 linker stubs
*(.eh_frame) *(.eh_frame)
.eh_frame 0x0000000008003ea8 0x0 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtbegin.o .eh_frame 0x0000000008003e98 0x0 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtbegin.o
*(.init) *(.init)
.init 0x0000000008003ea8 0x4 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crti.o .init 0x0000000008003e98 0x4 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crti.o
0x0000000008003ea8 _init 0x0000000008003e98 _init
.init 0x0000000008003eac 0x8 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtn.o .init 0x0000000008003e9c 0x8 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtn.o
*(.fini) *(.fini)
.fini 0x0000000008003eb4 0x4 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crti.o .fini 0x0000000008003ea4 0x4 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crti.o
0x0000000008003eb4 _fini 0x0000000008003ea4 _fini
.fini 0x0000000008003eb8 0x8 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtn.o .fini 0x0000000008003ea8 0x8 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtn.o
0x0000000008003ec0 . = ALIGN (0x4) 0x0000000008003eb0 . = ALIGN (0x4)
0x0000000008003ec0 _etext = . 0x0000000008003eb0 _etext = .
.vfp11_veneer 0x0000000008003ec0 0x0 .vfp11_veneer 0x0000000008003eb0 0x0
.vfp11_veneer 0x0000000008003ec0 0x0 linker stubs .vfp11_veneer 0x0000000008003eb0 0x0 linker stubs
.v4_bx 0x0000000008003ec0 0x0 .v4_bx 0x0000000008003eb0 0x0
.v4_bx 0x0000000008003ec0 0x0 linker stubs .v4_bx 0x0000000008003eb0 0x0 linker stubs
.iplt 0x0000000008003ec0 0x0 .iplt 0x0000000008003eb0 0x0
.iplt 0x0000000008003ec0 0x0 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtbegin.o .iplt 0x0000000008003eb0 0x0 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtbegin.o
.rodata 0x0000000008003ec0 0x58 .rodata 0x0000000008003eb0 0x58
0x0000000008003ec0 . = ALIGN (0x4) 0x0000000008003eb0 . = ALIGN (0x4)
*(.rodata) *(.rodata)
.rodata 0x0000000008003ec0 0x20 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o .rodata 0x0000000008003eb0 0x20 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o
*(.rodata*) *(.rodata*)
.rodata.AHBPrescTable .rodata.AHBPrescTable
0x0000000008003ee0 0x10 ./Core/Src/system_stm32f0xx.o 0x0000000008003ed0 0x10 ./Core/Src/system_stm32f0xx.o
0x0000000008003ee0 AHBPrescTable 0x0000000008003ed0 AHBPrescTable
.rodata.LED_Tab .rodata.LED_Tab
0x0000000008003ef0 0x12 ./my_software/my_code.o 0x0000000008003ee0 0x12 ./my_software/my_code.o
0x0000000008003ef0 LED_Tab 0x0000000008003ee0 LED_Tab
*fill* 0x0000000008003f02 0x2 *fill* 0x0000000008003ef2 0x2
.rodata.my_code .rodata.my_code
0x0000000008003f04 0x14 ./my_software/my_code.o 0x0000000008003ef4 0x14 ./my_software/my_code.o
0x0000000008003f18 . = ALIGN (0x4) 0x0000000008003f08 . = ALIGN (0x4)
.rel.dyn 0x0000000008003f18 0x0 .rel.dyn 0x0000000008003f08 0x0
.rel.iplt 0x0000000008003f18 0x0 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtbegin.o .rel.iplt 0x0000000008003f08 0x0 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtbegin.o
.ARM.extab 0x0000000008003f18 0x0 .ARM.extab 0x0000000008003f08 0x0
0x0000000008003f18 . = ALIGN (0x4) 0x0000000008003f08 . = ALIGN (0x4)
*(.ARM.extab* .gnu.linkonce.armextab.*) *(.ARM.extab* .gnu.linkonce.armextab.*)
0x0000000008003f18 . = ALIGN (0x4) 0x0000000008003f08 . = ALIGN (0x4)
.ARM 0x0000000008003f18 0x0 .ARM 0x0000000008003f08 0x0
0x0000000008003f18 . = ALIGN (0x4) 0x0000000008003f08 . = ALIGN (0x4)
0x0000000008003f18 __exidx_start = . 0x0000000008003f08 __exidx_start = .
*(.ARM.exidx*) *(.ARM.exidx*)
0x0000000008003f18 __exidx_end = . 0x0000000008003f08 __exidx_end = .
0x0000000008003f18 . = ALIGN (0x4) 0x0000000008003f08 . = ALIGN (0x4)
.preinit_array 0x0000000008003f18 0x0 .preinit_array 0x0000000008003f08 0x0
0x0000000008003f18 . = ALIGN (0x4) 0x0000000008003f08 . = ALIGN (0x4)
0x0000000008003f18 PROVIDE (__preinit_array_start = .) 0x0000000008003f08 PROVIDE (__preinit_array_start = .)
*(.preinit_array*) *(.preinit_array*)
0x0000000008003f18 PROVIDE (__preinit_array_end = .) 0x0000000008003f08 PROVIDE (__preinit_array_end = .)
0x0000000008003f18 . = ALIGN (0x4) 0x0000000008003f08 . = ALIGN (0x4)
.init_array 0x0000000008003f18 0x4 .init_array 0x0000000008003f08 0x4
0x0000000008003f18 . = ALIGN (0x4) 0x0000000008003f08 . = ALIGN (0x4)
0x0000000008003f18 PROVIDE (__init_array_start = .) 0x0000000008003f08 PROVIDE (__init_array_start = .)
*(SORT_BY_NAME(.init_array.*)) *(SORT_BY_NAME(.init_array.*))
*(.init_array*) *(.init_array*)
.init_array 0x0000000008003f18 0x4 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtbegin.o .init_array 0x0000000008003f08 0x4 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtbegin.o
0x0000000008003f1c PROVIDE (__init_array_end = .) 0x0000000008003f0c PROVIDE (__init_array_end = .)
0x0000000008003f1c . = ALIGN (0x4) 0x0000000008003f0c . = ALIGN (0x4)
.fini_array 0x0000000008003f1c 0x4 .fini_array 0x0000000008003f0c 0x4
0x0000000008003f1c . = ALIGN (0x4) 0x0000000008003f0c . = ALIGN (0x4)
[!provide] PROVIDE (__fini_array_start = .) [!provide] PROVIDE (__fini_array_start = .)
*(SORT_BY_NAME(.fini_array.*)) *(SORT_BY_NAME(.fini_array.*))
*(.fini_array*) *(.fini_array*)
.fini_array 0x0000000008003f1c 0x4 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtbegin.o .fini_array 0x0000000008003f0c 0x4 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtbegin.o
[!provide] PROVIDE (__fini_array_end = .) [!provide] PROVIDE (__fini_array_end = .)
0x0000000008003f20 . = ALIGN (0x4) 0x0000000008003f10 . = ALIGN (0x4)
0x0000000008003f20 _sidata = LOADADDR (.data) 0x0000000008003f10 _sidata = LOADADDR (.data)
.data 0x0000000020000000 0xc load address 0x0000000008003f20 .data 0x0000000020000000 0xc load address 0x0000000008003f10
0x0000000020000000 . = ALIGN (0x4) 0x0000000020000000 . = ALIGN (0x4)
0x0000000020000000 _sdata = . 0x0000000020000000 _sdata = .
*(.data) *(.data)
@@ -3921,11 +3921,11 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id
*fill* 0x0000000020000009 0x3 *fill* 0x0000000020000009 0x3
0x000000002000000c _edata = . 0x000000002000000c _edata = .
.igot.plt 0x000000002000000c 0x0 load address 0x0000000008003f2c .igot.plt 0x000000002000000c 0x0 load address 0x0000000008003f1c
.igot.plt 0x000000002000000c 0x0 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtbegin.o .igot.plt 0x000000002000000c 0x0 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtbegin.o
0x000000002000000c . = ALIGN (0x4) 0x000000002000000c . = ALIGN (0x4)
.bss 0x000000002000000c 0x144 load address 0x0000000008003f2c .bss 0x000000002000000c 0x148 load address 0x0000000008003f1c
0x000000002000000c _sbss = . 0x000000002000000c _sbss = .
0x000000002000000c __bss_start__ = _sbss 0x000000002000000c __bss_start__ = _sbss
*(.bss) *(.bss)
@@ -3946,38 +3946,39 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id
0x0000000020000034 read_begin 0x0000000020000034 read_begin
*(COMMON) *(COMMON)
*fill* 0x0000000020000035 0x3 *fill* 0x0000000020000035 0x3
COMMON 0x0000000020000038 0x9c ./Core/Src/main.o COMMON 0x0000000020000038 0xc0 ./Core/Src/main.o
0x0000000020000038 dis_buff 0x0000000020000038 dis_buff
0x000000002000004c htim14 0x000000002000004c ADCC
0x0000000020000094 hadc 0x0000000020000060 htim14
COMMON 0x00000000200000d4 0x4 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o 0x00000000200000a8 hadc
0x00000000200000d4 uwTick 0x00000000200000e8 moto
COMMON 0x00000000200000d8 0x74 ./my_software/my_code.o COMMON 0x00000000200000f8 0x4 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o
0x00000000200000d8 key4 0x00000000200000f8 uwTick
0x00000000200000e8 r480 COMMON 0x00000000200000fc 0x54 ./my_software/my_code.o
0x00000000200000f0 key1 0x00000000200000fc key4
0x0000000020000100 key3 0x000000002000010c r480
0x0000000020000110 ADCC 0x0000000020000114 key1
0x0000000020000124 key2 0x0000000020000124 key3
0x0000000020000134 moto 0x0000000020000134 key2
0x0000000020000144 config 0x0000000020000144 config
COMMON 0x000000002000014c 0x3 ./my_software/r480r.o COMMON 0x0000000020000150 0x3 ./my_software/r480r.o
0x000000002000014c read_data_buffer 0x0000000020000150 read_data_buffer
0x0000000020000150 . = ALIGN (0x4) 0x0000000020000154 . = ALIGN (0x4)
*fill* 0x000000002000014f 0x1 *fill* 0x0000000020000153 0x1
0x0000000020000150 _ebss = . 0x0000000020000154 _ebss = .
0x0000000020000150 __bss_end__ = _ebss 0x0000000020000154 __bss_end__ = _ebss
._user_heap_stack ._user_heap_stack
0x0000000020000150 0x600 load address 0x0000000008003f2c 0x0000000020000154 0x604 load address 0x0000000008003f1c
0x0000000020000150 . = ALIGN (0x8) 0x0000000020000158 . = ALIGN (0x8)
*fill* 0x0000000020000154 0x4
[!provide] PROVIDE (end = .) [!provide] PROVIDE (end = .)
0x0000000020000150 PROVIDE (_end = .) 0x0000000020000158 PROVIDE (_end = .)
0x0000000020000350 . = (. + _Min_Heap_Size) 0x0000000020000358 . = (. + _Min_Heap_Size)
*fill* 0x0000000020000150 0x200 *fill* 0x0000000020000158 0x200
0x0000000020000750 . = (. + _Min_Stack_Size) 0x0000000020000758 . = (. + _Min_Stack_Size)
*fill* 0x0000000020000350 0x400 *fill* 0x0000000020000358 0x400
0x0000000020000750 . = ALIGN (0x8) 0x0000000020000758 . = ALIGN (0x8)
/DISCARD/ /DISCARD/
libc.a(*) libc.a(*)
@@ -4049,29 +4050,29 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id
LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/nofp/libm.a LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/nofp/libm.a
LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/libgcc.a LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/libgcc.a
.debug_info 0x0000000000000000 0xbe6e .debug_info 0x0000000000000000 0xc063
.debug_info 0x0000000000000000 0xf4c ./Core/Src/main.o .debug_info 0x0000000000000000 0x104d ./Core/Src/main.o
.debug_info 0x0000000000000f4c 0xcdc ./Core/Src/stm32f0xx_hal_msp.o .debug_info 0x000000000000104d 0xcdc ./Core/Src/stm32f0xx_hal_msp.o
.debug_info 0x0000000000001c28 0x76a ./Core/Src/stm32f0xx_it.o .debug_info 0x0000000000001d29 0x76a ./Core/Src/stm32f0xx_it.o
.debug_info 0x0000000000002392 0x2c3 ./Core/Src/system_stm32f0xx.o .debug_info 0x0000000000002493 0x2c3 ./Core/Src/system_stm32f0xx.o
.debug_info 0x0000000000002655 0x22 ./Core/Startup/startup_stm32f030f4px.o .debug_info 0x0000000000002756 0x22 ./Core/Startup/startup_stm32f030f4px.o
.debug_info 0x0000000000002677 0x6be ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o .debug_info 0x0000000000002778 0x6be ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o
.debug_info 0x0000000000002d35 0xd62 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.o .debug_info 0x0000000000002e36 0xd62 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.o
.debug_info 0x0000000000003a97 0x7a0 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.o .debug_info 0x0000000000003b98 0x7a0 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.o
.debug_info 0x0000000000004237 0x6d3 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o .debug_info 0x0000000000004338 0x6d3 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o
.debug_info 0x000000000000490a 0x8ed ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.o .debug_info 0x0000000000004a0b 0x8ed ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.o
.debug_info 0x00000000000051f7 0x88d ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o .debug_info 0x00000000000052f8 0x88d ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o
.debug_info 0x0000000000005a84 0x2ba9 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.o .debug_info 0x0000000000005b85 0x2ba9 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.o
.debug_info 0x000000000000862d 0x1529 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.o .debug_info 0x000000000000872e 0x1529 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.o
.debug_info 0x0000000000009b56 0x1d4 ./my_software/button.o .debug_info 0x0000000000009c57 0x1d4 ./my_software/button.o
.debug_info 0x0000000000009d2a 0x269 ./my_software/eeprom.o .debug_info 0x0000000000009e2b 0x269 ./my_software/eeprom.o
.debug_info 0x0000000000009f93 0x2d3 ./my_software/gpio.o .debug_info 0x000000000000a094 0x2d3 ./my_software/gpio.o
.debug_info 0x000000000000a266 0x3cc ./my_software/ht1621.o .debug_info 0x000000000000a367 0x4cd ./my_software/ht1621.o
.debug_info 0x000000000000a632 0x3ea ./my_software/iic.o .debug_info 0x000000000000a834 0x3ea ./my_software/iic.o
.debug_info 0x000000000000aa1c 0xb63 ./my_software/my_code.o .debug_info 0x000000000000ac1e 0xb56 ./my_software/my_code.o
.debug_info 0x000000000000b57f 0x8ef ./my_software/r480r.o .debug_info 0x000000000000b774 0x8ef ./my_software/r480r.o
.debug_abbrev 0x0000000000000000 0x22ae .debug_abbrev 0x0000000000000000 0x2283
.debug_abbrev 0x0000000000000000 0x23c ./Core/Src/main.o .debug_abbrev 0x0000000000000000 0x23c ./Core/Src/main.o
.debug_abbrev 0x000000000000023c 0x1c8 ./Core/Src/stm32f0xx_hal_msp.o .debug_abbrev 0x000000000000023c 0x1c8 ./Core/Src/stm32f0xx_hal_msp.o
.debug_abbrev 0x0000000000000404 0x187 ./Core/Src/stm32f0xx_it.o .debug_abbrev 0x0000000000000404 0x187 ./Core/Src/stm32f0xx_it.o
@@ -4090,8 +4091,8 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id
.debug_abbrev 0x0000000000001a88 0x127 ./my_software/gpio.o .debug_abbrev 0x0000000000001a88 0x127 ./my_software/gpio.o
.debug_abbrev 0x0000000000001baf 0x176 ./my_software/ht1621.o .debug_abbrev 0x0000000000001baf 0x176 ./my_software/ht1621.o
.debug_abbrev 0x0000000000001d25 0x179 ./my_software/iic.o .debug_abbrev 0x0000000000001d25 0x179 ./my_software/iic.o
.debug_abbrev 0x0000000000001e9e 0x20f ./my_software/my_code.o .debug_abbrev 0x0000000000001e9e 0x1e4 ./my_software/my_code.o
.debug_abbrev 0x00000000000020ad 0x201 ./my_software/r480r.o .debug_abbrev 0x0000000000002082 0x201 ./my_software/r480r.o
.debug_aranges 0x0000000000000000 0xb88 .debug_aranges 0x0000000000000000 0xb88
.debug_aranges .debug_aranges
@@ -4157,7 +4158,7 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id
.debug_ranges 0x00000000000009f0 0x38 ./my_software/my_code.o .debug_ranges 0x00000000000009f0 0x38 ./my_software/my_code.o
.debug_ranges 0x0000000000000a28 0x28 ./my_software/r480r.o .debug_ranges 0x0000000000000a28 0x28 ./my_software/r480r.o
.debug_macro 0x0000000000000000 0x10442 .debug_macro 0x0000000000000000 0x10460
.debug_macro 0x0000000000000000 0x1d9 ./Core/Src/main.o .debug_macro 0x0000000000000000 0x1d9 ./Core/Src/main.o
.debug_macro 0x00000000000001d9 0xa7e ./Core/Src/main.o .debug_macro 0x00000000000001d9 0xa7e ./Core/Src/main.o
.debug_macro 0x0000000000000c57 0x133 ./Core/Src/main.o .debug_macro 0x0000000000000c57 0x133 ./Core/Src/main.o
@@ -4200,32 +4201,32 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id
.debug_macro 0x000000000000df02 0x28 ./Core/Src/main.o .debug_macro 0x000000000000df02 0x28 ./Core/Src/main.o
.debug_macro 0x000000000000df2a 0xf1 ./Core/Src/main.o .debug_macro 0x000000000000df2a 0xf1 ./Core/Src/main.o
.debug_macro 0x000000000000e01b 0xa6 ./Core/Src/main.o .debug_macro 0x000000000000e01b 0xa6 ./Core/Src/main.o
.debug_macro 0x000000000000e0c1 0x40 ./Core/Src/main.o .debug_macro 0x000000000000e0c1 0x52 ./Core/Src/main.o
.debug_macro 0x000000000000e101 0x1d0 ./Core/Src/stm32f0xx_hal_msp.o .debug_macro 0x000000000000e113 0x1d0 ./Core/Src/stm32f0xx_hal_msp.o
.debug_macro 0x000000000000e2d1 0x1da ./Core/Src/stm32f0xx_it.o .debug_macro 0x000000000000e2e3 0x1da ./Core/Src/stm32f0xx_it.o
.debug_macro 0x000000000000e4ab 0x1c1 ./Core/Src/system_stm32f0xx.o .debug_macro 0x000000000000e4bd 0x1c1 ./Core/Src/system_stm32f0xx.o
.debug_macro 0x000000000000e66c 0x1e5 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o .debug_macro 0x000000000000e67e 0x1e5 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o
.debug_macro 0x000000000000e851 0x1e5 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.o .debug_macro 0x000000000000e863 0x1e5 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.o
.debug_macro 0x000000000000ea36 0x1c1 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.o .debug_macro 0x000000000000ea48 0x1c1 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.o
.debug_macro 0x000000000000ebf7 0x1c8 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o .debug_macro 0x000000000000ec09 0x1c8 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o
.debug_macro 0x000000000000edbf 0x1c1 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.o .debug_macro 0x000000000000edd1 0x1c1 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.o
.debug_macro 0x000000000000ef80 0x1d3 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o .debug_macro 0x000000000000ef92 0x1d3 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o
.debug_macro 0x000000000000f153 0x1c2 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.o .debug_macro 0x000000000000f165 0x1c2 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.o
.debug_macro 0x000000000000f315 0x1c1 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.o .debug_macro 0x000000000000f327 0x1c1 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.o
.debug_macro 0x000000000000f4d6 0x1e0 ./my_software/button.o .debug_macro 0x000000000000f4e8 0x1e0 ./my_software/button.o
.debug_macro 0x000000000000f6b6 0x1e9 ./my_software/eeprom.o .debug_macro 0x000000000000f6c8 0x1e9 ./my_software/eeprom.o
.debug_macro 0x000000000000f89f 0x46 ./my_software/eeprom.o .debug_macro 0x000000000000f8b1 0x46 ./my_software/eeprom.o
.debug_macro 0x000000000000f8e5 0x1da ./my_software/gpio.o .debug_macro 0x000000000000f8f7 0x1da ./my_software/gpio.o
.debug_macro 0x000000000000fabf 0x1ee ./my_software/ht1621.o .debug_macro 0x000000000000fad1 0x1ee ./my_software/ht1621.o
.debug_macro 0x000000000000fcad 0x5e ./my_software/ht1621.o .debug_macro 0x000000000000fcbf 0x5e ./my_software/ht1621.o
.debug_macro 0x000000000000fd0b 0x220 ./my_software/iic.o .debug_macro 0x000000000000fd1d 0x220 ./my_software/iic.o
.debug_macro 0x000000000000ff2b 0x24d ./my_software/my_code.o .debug_macro 0x000000000000ff3d 0x247 ./my_software/my_code.o
.debug_macro 0x0000000000010178 0x3a ./my_software/my_code.o .debug_macro 0x0000000000010184 0x4c ./my_software/my_code.o
.debug_macro 0x00000000000101b2 0x64 ./my_software/my_code.o .debug_macro 0x00000000000101d0 0x64 ./my_software/my_code.o
.debug_macro 0x0000000000010216 0x4c ./my_software/my_code.o .debug_macro 0x0000000000010234 0x4c ./my_software/my_code.o
.debug_macro 0x0000000000010262 0x1e0 ./my_software/r480r.o .debug_macro 0x0000000000010280 0x1e0 ./my_software/r480r.o
.debug_line 0x0000000000000000 0xf273 .debug_line 0x0000000000000000 0xf263
.debug_line 0x0000000000000000 0x8df ./Core/Src/main.o .debug_line 0x0000000000000000 0x8df ./Core/Src/main.o
.debug_line 0x00000000000008df 0x793 ./Core/Src/stm32f0xx_hal_msp.o .debug_line 0x00000000000008df 0x793 ./Core/Src/stm32f0xx_hal_msp.o
.debug_line 0x0000000000001072 0x7a5 ./Core/Src/stm32f0xx_it.o .debug_line 0x0000000000001072 0x7a5 ./Core/Src/stm32f0xx_it.o
@@ -4244,49 +4245,49 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id
.debug_line 0x000000000000c3c8 0x725 ./my_software/gpio.o .debug_line 0x000000000000c3c8 0x725 ./my_software/gpio.o
.debug_line 0x000000000000caed 0x835 ./my_software/ht1621.o .debug_line 0x000000000000caed 0x835 ./my_software/ht1621.o
.debug_line 0x000000000000d322 0x923 ./my_software/iic.o .debug_line 0x000000000000d322 0x923 ./my_software/iic.o
.debug_line 0x000000000000dc45 0xe3d ./my_software/my_code.o .debug_line 0x000000000000dc45 0xe2d ./my_software/my_code.o
.debug_line 0x000000000000ea82 0x7f1 ./my_software/r480r.o .debug_line 0x000000000000ea72 0x7f1 ./my_software/r480r.o
.debug_str 0x0000000000000000 0x5f5c4 .debug_str 0x0000000000000000 0x5f616
.debug_str 0x0000000000000000 0x5c9bc ./Core/Src/main.o .debug_str 0x0000000000000000 0x5ca5f ./Core/Src/main.o
0x5cd69 (size before relaxing) 0x5ce0c (size before relaxing)
.debug_str 0x000000000005c9bc 0x84 ./Core/Src/stm32f0xx_hal_msp.o .debug_str 0x000000000005ca5f 0x84 ./Core/Src/stm32f0xx_hal_msp.o
0x5c924 (size before relaxing) 0x5c924 (size before relaxing)
.debug_str 0x000000000005ca40 0x9a ./Core/Src/stm32f0xx_it.o .debug_str 0x000000000005cae3 0x9a ./Core/Src/stm32f0xx_it.o
0x5c5a4 (size before relaxing) 0x5c5a4 (size before relaxing)
.debug_str 0x000000000005cada 0x5f ./Core/Src/system_stm32f0xx.o .debug_str 0x000000000005cb7d 0x5f ./Core/Src/system_stm32f0xx.o
0x5be5e (size before relaxing) 0x5be5e (size before relaxing)
.debug_str 0x000000000005cb39 0x36 ./Core/Startup/startup_stm32f030f4px.o .debug_str 0x000000000005cbdc 0x36 ./Core/Startup/startup_stm32f030f4px.o
0x7c (size before relaxing) 0x7c (size before relaxing)
.debug_str 0x000000000005cb6f 0x317 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o .debug_str 0x000000000005cc12 0x317 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o
0x5c335 (size before relaxing) 0x5c335 (size before relaxing)
.debug_str 0x000000000005ce86 0x387 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.o .debug_str 0x000000000005cf29 0x387 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.o
0x5c55e (size before relaxing) 0x5c55e (size before relaxing)
.debug_str 0x000000000005d20d 0x1dc ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.o .debug_str 0x000000000005d2b0 0x1dc ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.o
0x5c1e9 (size before relaxing) 0x5c1e9 (size before relaxing)
.debug_str 0x000000000005d3e9 0x150 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o .debug_str 0x000000000005d48c 0x150 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o
0x5c03d (size before relaxing) 0x5c03d (size before relaxing)
.debug_str 0x000000000005d539 0x2eb ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.o .debug_str 0x000000000005d5dc 0x2eb ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.o
0x5c3cd (size before relaxing) 0x5c3cd (size before relaxing)
.debug_str 0x000000000005d824 0x240 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o .debug_str 0x000000000005d8c7 0x240 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o
0x5c268 (size before relaxing) 0x5c268 (size before relaxing)
.debug_str 0x000000000005da64 0xe27 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.o .debug_str 0x000000000005db07 0xe27 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.o
0x5d219 (size before relaxing) 0x5d219 (size before relaxing)
.debug_str 0x000000000005e88b 0x538 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.o .debug_str 0x000000000005e92e 0x538 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.o
0x5c9ca (size before relaxing) 0x5c9ca (size before relaxing)
.debug_str 0x000000000005edc3 0x40 ./my_software/button.o .debug_str 0x000000000005ee66 0x40 ./my_software/button.o
0x5c090 (size before relaxing) 0x5c090 (size before relaxing)
.debug_str 0x000000000005ee03 0x145 ./my_software/eeprom.o .debug_str 0x000000000005eea6 0x145 ./my_software/eeprom.o
0x5c199 (size before relaxing) 0x5c199 (size before relaxing)
.debug_str 0x000000000005ef48 0x32 ./my_software/gpio.o .debug_str 0x000000000005efeb 0x32 ./my_software/gpio.o
0x5c0fd (size before relaxing) 0x5c0fd (size before relaxing)
.debug_str 0x000000000005ef7a 0x16d ./my_software/ht1621.o .debug_str 0x000000000005f01d 0x16d ./my_software/ht1621.o
0x5c4ba (size before relaxing) 0x5c55d (size before relaxing)
.debug_str 0x000000000005f0e7 0x256 ./my_software/iic.o .debug_str 0x000000000005f18a 0x256 ./my_software/iic.o
0x5c2f3 (size before relaxing) 0x5c2f3 (size before relaxing)
.debug_str 0x000000000005f33d 0x1d0 ./my_software/my_code.o .debug_str 0x000000000005f3e0 0x17f ./my_software/my_code.o
0x5ca6d (size before relaxing) 0x5cabf (size before relaxing)
.debug_str 0x000000000005f50d 0xb7 ./my_software/r480r.o .debug_str 0x000000000005f55f 0xb7 ./my_software/r480r.o
0x5c64b (size before relaxing) 0x5c64b (size before relaxing)
.comment 0x0000000000000000 0x53 .comment 0x0000000000000000 0x53
+6 -6
View File
@@ -1,6 +1,6 @@
my_code.c:56:6:Sand_Byte_to_595_2 24 static my_code.c:21:6:Sand_Byte_to_595_2 24 static
my_code.c:77:6:hc2_sever 16 static my_code.c:42:6:HC595_control_server 16 static
my_code.c:104:6:moto_server 8 static my_code.c:69:6:Motoer_control_server 8 static
my_code.c:210:6:HT1621_Display_GetButton 24 static my_code.c:164:6:HT1621_Display_GetButton 24 static
my_code.c:255:6:check_need_reset 16 static my_code.c:209:6:check_need_reset 16 static
my_code.c:288:6:my_code 48 static my_code.c:242:6:my_code 40 static
+74 -122
View File
@@ -16,41 +16,6 @@ struct button key1,key2,key3,key4;
config_setting config; config_setting config;
#define set_filtering_times 50
struct
{
//ADC_HandleTypeDef *device;
int filtering_times;
unsigned long adc_filtering[2];
int adc_value[2];
}ADCC;
struct
{
uint32_t moto_run;
int pwm_run;
char moto1a;
char moto1b;
char moto2a;
char moto2b;
char moto1a_;
char moto1b_;
char moto2a_;
char moto2b_;
}moto;
//uint8_t Read_Ds()
//{
// change_io_function(HC595_DLK_GPIO_Port,HC595_DLK_Pin,1);
// if(READ_HC595_DCK){return 0;}else{return 1;}
// //return READ_HC595_DCK;
//}
//send data to 959 //send data to 959
void Sand_Byte_to_595_2(uint8_t h) void Sand_Byte_to_595_2(uint8_t h)
@@ -74,7 +39,7 @@ void Sand_Byte_to_595_2(uint8_t h)
HC595_RCK(1); HC595_RCK(1);
HC595_RCK(0); HC595_RCK(0);
} }
void hc2_sever() void HC595_control_server()
{ {
char h=0; char h=0;
if(dis_buff.led_run==1) if(dis_buff.led_run==1)
@@ -101,61 +66,50 @@ void hc2_sever()
} }
//motor cool start //motor cool start
void moto_server() void Motoer_control_server()
{ {
if(HAL_GetTick()>moto.moto_run) if(HAL_GetTick()>moto.moto_run)
{ {
moto.moto_run=HAL_GetTick()+10; moto.moto_run=HAL_GetTick()+10; //set the index follow delay
if(moto.moto1a!=moto.moto1a_)
if(moto.moto1a>moto.moto1a_)
{ {
if(moto.moto1a>moto.moto1a_) moto.moto1a_++;
{
moto.moto1a_++;
}
if(moto.moto1a<moto.moto1a_)
{
moto.moto1a_--;
}
} }
if(moto.moto1b!=moto.moto1b_) if(moto.moto1a<moto.moto1a_)
{ {
if(moto.moto1b>moto.moto1b_) moto.moto1a_--;
{
moto.moto1b_++;
}
if(moto.moto1b<moto.moto1b_)
{
moto.moto1b_--;
}
} }
if(moto.moto2a!=moto.moto2a_)
if(moto.moto1b>moto.moto1b_)
{ {
if(moto.moto2a>moto.moto2a_) moto.moto1b_++;
{
moto.moto2a_++;
}
if(moto.moto2a<moto.moto2a_)
{
moto.moto2a_--;
}
} }
if(moto.moto2b!=moto.moto2b_) if(moto.moto1b<moto.moto1b_)
{ {
if(moto.moto2b>moto.moto2b_) moto.moto1b_--;
{
moto.moto2b_++;
}
if(moto.moto2b<moto.moto2b_)
{
moto.moto2b_--;
}
} }
if(moto.moto2a>moto.moto2a_)
{
moto.moto2a_++;
}
if(moto.moto2a<moto.moto2a_)
{
moto.moto2a_--;
}
if(moto.moto2b>moto.moto2b_)
{
moto.moto2b_++;
}
if(moto.moto2b<moto.moto2b_)
{
moto.moto2b_--;
}
} }
moto.pwm_run++; moto.pwm_run++;
if(moto.pwm_run==10) if(moto.pwm_run==10)
{ {
@@ -289,20 +243,16 @@ void my_code()
{ {
uint32_t runtime=0,move=0; uint32_t runtime=0,move=0;
uint8_t mode=1; uint8_t mode=1;
long countdown=1000; long countdown=1000;
long countdown_set=15000; char moto_sw_buff1,moto_sw_buff2;
uint16_t moto_sw_buff1_pp=0,moto_sw_buff2_pp=0;
char moto_in1,moto_in2;
uint16_t moto_in1_pp=0,moto_in2_pp=0;
HT1621_Init(); HT1621_Init();
r480_init(); r480_init();
config.begin=0; config.begin=0;
AT24CXX_Read(32,(char *)&config,sizeof(config_setting)); AT24CXX_Read(EEPROM_BEGIN_ADD,(char *)&config,sizeof(config_setting));
if(config.begin!=0xab||check_need_reset()) if(config.begin!=CONFIG_EFF_CODE||check_need_reset())
{ {
mode=0; mode=0;
r480.key=0; r480.key=0;
@@ -354,14 +304,15 @@ void my_code()
} }
if(r480.key==0xd7) if(r480.key==0xd7)
{ {
config.begin=0xab; config.begin=CONFIG_EFF_CODE;
config.key_code[0]=r480.add[0]; config.key_code[0]=r480.add[0];
config.key_code[1]=r480.add[1]; config.key_code[1]=r480.add[1];
config.countdown_set=15000;
r480.key=0; r480.key=0;
r480.add[0]=0; r480.add[0]=0;
r480.add[1]=0; r480.add[1]=0;
mode=1; mode=1;
AT24CXX_Write(32,(char *)&config,sizeof(config_setting)); AT24CXX_Write(EEPROM_BEGIN_ADD,(char *)&config,sizeof(config_setting));
} }
break; break;
@@ -397,7 +348,7 @@ void my_code()
if(key2.code!=0) if(key2.code!=0)
{ {
mode=2; mode=2;
countdown=countdown_set; countdown=config.countdown_set;
moto.moto1a=10; moto.moto1a=10;
moto.moto1b=0; moto.moto1b=0;
moto.moto2a=10; moto.moto2a=10;
@@ -410,7 +361,7 @@ void my_code()
moto.moto2a=0; moto.moto2a=0;
moto.moto2b=10; moto.moto2b=10;
mode=3; mode=3;
countdown=countdown_set; countdown=config.countdown_set;
} }
if(key1.code!=0) if(key1.code!=0)
{ {
@@ -445,7 +396,7 @@ void my_code()
if(key3.code!=0) if(key3.code!=0)
{ {
mode=3; mode=3;
countdown=countdown_set-countdown; countdown=config.countdown_set-countdown;
moto.moto1a=0; moto.moto1a=0;
moto.moto1b=10; moto.moto1b=10;
moto.moto2a=0; moto.moto2a=0;
@@ -456,13 +407,13 @@ void my_code()
mode=1; mode=1;
} }
if(ADCC.adc_value[1]>400||(moto_in1==1&&READ_MOT_IN1==0)) if(ADCC.adc_value[1]>400||(moto_sw_buff1==1&&READ_MOT_IN1==0))
{ {
//overload_times=0; //overload_times=0;
moto.moto1a=0; moto.moto1a=0;
moto.moto1b=0; moto.moto1b=0;
} }
if(ADCC.adc_value[0]>400||(moto_in2==1&&READ_MOT_IN2==0)) if(ADCC.adc_value[0]>400||(moto_sw_buff2==1&&READ_MOT_IN2==0))
{ {
moto.moto2a=0; moto.moto2a=0;
moto.moto2b=0; moto.moto2b=0;
@@ -494,7 +445,7 @@ void my_code()
if(key2.code!=0) if(key2.code!=0)
{ {
mode=2; mode=2;
countdown=countdown_set-countdown; countdown=config.countdown_set-countdown;
moto.moto1a=10; moto.moto1a=10;
moto.moto1b=0; moto.moto1b=0;
moto.moto2a=10; moto.moto2a=10;
@@ -504,13 +455,13 @@ void my_code()
{ {
mode=1; mode=1;
} }
if(ADCC.adc_value[1]>400||(moto_in1==1&&READ_MOT_IN1==0)) if(ADCC.adc_value[1]>400||(moto_sw_buff1==1&&READ_MOT_IN1==0))
{ {
//overload_times=0; //overload_times=0;
moto.moto1a=0; moto.moto1a=0;
moto.moto1b=0; moto.moto1b=0;
} }
if(ADCC.adc_value[0]>400||(moto_in2==1&&READ_MOT_IN2==0)) if(ADCC.adc_value[0]>400||(moto_sw_buff2==1&&READ_MOT_IN2==0))
{ {
//overload_times2=0; //overload_times2=0;
moto.moto2a=0; moto.moto2a=0;
@@ -531,25 +482,26 @@ void my_code()
dis_buff.dot4=1; dis_buff.dot4=1;
} }
countdown-=100; countdown-=100;
if(countdown<0)
{
mode=1;
}
if(key2.code<0){countdown_set+=1000;countdown=10000;}
if(key3.code<0){countdown_set-=1000;countdown=10000;} if(key2.code<0){config.countdown_set+=1000;countdown=10000;}
if(key3.code<0){config.countdown_set-=1000;countdown=10000;}
} }
if(key2.code>0){countdown_set+=100;countdown=10000;} if(key2.code>0){config.countdown_set+=100;countdown=10000;}
if(key3.code>0){countdown_set-=100;countdown=10000;} if(key3.code>0){config.countdown_set-=100;countdown=10000;}
if(countdown_set<100){countdown_set=100;} if(config.countdown_set<100){config.countdown_set=100;}
if(countdown_set>60000){countdown_set=60000;} if(config.countdown_set>60000){config.countdown_set=60000;}
if(key4.code!=0){mode=1;} if(key4.code!=0||countdown<0)
dis_buff.d_num[3]=(countdown_set/100)%10; {
dis_buff.d_num[2]=(countdown_set/1000)%10; mode=1;
dis_buff.d_num[1]=((countdown_set/10000)%10); AT24CXX_Write(EEPROM_BEGIN_ADD,(char *)&config,sizeof(config_setting));
}
dis_buff.d_num[3]=(config.countdown_set/100)%10;
dis_buff.d_num[2]=(config.countdown_set/1000)%10;
dis_buff.d_num[1]=((config.countdown_set/10000)%10);
dis_buff.d_num[1]=dis_buff.d_num[1]==0?16:dis_buff.d_num[1]; dis_buff.d_num[1]=dis_buff.d_num[1]==0?16:dis_buff.d_num[1];
@@ -595,28 +547,28 @@ void my_code()
dis_buff.button_flag[2]=0; dis_buff.button_flag[2]=0;
dis_buff.button_flag[3]=0; dis_buff.button_flag[3]=0;
if(moto_in1!=READ_MOT_IN1) if(moto_sw_buff1!=READ_MOT_IN1)
{ {
moto_in1_pp++; moto_sw_buff1_pp++;
if(moto_in1_pp==100) if(moto_sw_buff1_pp==100)
{ {
moto_in1_pp=0; moto_sw_buff1_pp=0;
moto_in1=READ_MOT_IN1; moto_sw_buff1=READ_MOT_IN1;
} }
} }
if(moto_in2!=READ_MOT_IN2) if(moto_sw_buff2!=READ_MOT_IN2)
{ {
moto_in2_pp++; moto_sw_buff2_pp++;
if(moto_in2_pp==100) if(moto_sw_buff2_pp==100)
{ {
moto_in2_pp=0; moto_sw_buff2_pp=0;
moto_in2=READ_MOT_IN2; moto_sw_buff2=READ_MOT_IN2;
} }
} }
HT1621_Display_GetButton(); HT1621_Display_GetButton();
hc2_sever(); HC595_control_server();
moto_server(); Motoer_control_server();
} }
} }
+32
View File
@@ -25,12 +25,16 @@ void my_code();
#define READ_MOT_IN1 HAL_GPIO_ReadPin(MOT_IN1_GPIO_Port, MOT_IN1_Pin) #define READ_MOT_IN1 HAL_GPIO_ReadPin(MOT_IN1_GPIO_Port, MOT_IN1_Pin)
#define READ_MOT_IN2 HAL_GPIO_ReadPin(MOT_IN2_GPIO_Port, MOT_IN2_Pin) #define READ_MOT_IN2 HAL_GPIO_ReadPin(MOT_IN2_GPIO_Port, MOT_IN2_Pin)
#define EEPROM_BEGIN_ADD 32
#define CONFIG_EFF_CODE 0xab
typedef struct typedef struct
{ {
char key_code[2]; char key_code[2];
char begin; char begin;
int time; int time;
long countdown_set;
}config_setting; }config_setting;
struct display_penal struct display_penal
@@ -49,4 +53,32 @@ struct display_penal
char moto2b; char moto2b;
}dis_buff; }dis_buff;
#define set_filtering_times 50
struct
{
//ADC_HandleTypeDef *device;
int filtering_times;
unsigned long adc_filtering[2];
int adc_value[2];
}ADCC;
struct
{
uint32_t moto_run;
int pwm_run;
char moto1a;
char moto1b;
char moto2a;
char moto2b;
char moto1a_;
char moto1b_;
char moto2a_;
char moto2b_;
}moto;
#endif /* MY_CODE_H_ */ #endif /* MY_CODE_H_ */