屏幕已驱动起

This commit is contained in:
2021-10-13 12:16:22 +08:00
parent 3ff28bd9a6
commit 36917d148f
9 changed files with 2304 additions and 2290 deletions
Binary file not shown.
+2085 -2050
View File
File diff suppressed because it is too large Load Diff
+132 -138
View File
@@ -22,7 +22,6 @@ Common symbol size file
key4 0x10 ./my_software/my_code.o
uwTick 0x4 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o
LCD_RAM_Tab 0x17 ./my_software/ht1621.o
pFlash 0x20 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.o
dis_buff 0xa ./Core/Src/main.o
key1 0x10 ./my_software/my_code.o
@@ -2586,8 +2585,8 @@ Discarded input sections
.text 0x0000000000000000 0x0 ./my_software/ht1621.o
.data 0x0000000000000000 0x0 ./my_software/ht1621.o
.bss 0x0000000000000000 0x0 ./my_software/ht1621.o
.text.WritenDataHT1621
0x0000000000000000 0x182 ./my_software/ht1621.o
.text.Write1DataHT1621
0x0000000000000000 0x148 ./my_software/ht1621.o
.debug_macro 0x0000000000000000 0xa7e ./my_software/ht1621.o
.debug_macro 0x0000000000000000 0x12d ./my_software/ht1621.o
.debug_macro 0x0000000000000000 0x2e ./my_software/ht1621.o
@@ -2829,7 +2828,7 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id
0x0000000008000000 g_pfnVectors
0x00000000080000c0 . = ALIGN (0x4)
.text 0x00000000080000c0 0x303c
.text 0x00000000080000c0 0x3070
0x00000000080000c0 . = ALIGN (0x4)
*(.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
@@ -2983,121 +2982,119 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id
.text.WriteCommandHT1621
0x0000000008001fea 0xee ./my_software/ht1621.o
0x0000000008001fea WriteCommandHT1621
.text.Write1DataHT1621
0x00000000080020d8 0x148 ./my_software/ht1621.o
0x00000000080020d8 Write1DataHT1621
.text.HT1621_num_init
0x0000000008002220 0xfc ./my_software/ht1621.o
0x0000000008002220 HT1621_num_init
.text.WritenDataHT1621
0x00000000080020d8 0x182 ./my_software/ht1621.o
0x00000000080020d8 WritenDataHT1621
.text.HT1621_Init
0x000000000800231c 0x62 ./my_software/ht1621.o
0x000000000800231c HT1621_Init
.text.HT1621_Display
0x000000000800237e 0x4a ./my_software/ht1621.o
0x000000000800237e HT1621_Display
0x000000000800225a 0x5e ./my_software/ht1621.o
0x000000000800225a HT1621_Init
.text.ds_in_or_out
0x00000000080023c8 0x6c ./my_software/my_code.o
0x00000000080023c8 ds_in_or_out
0x00000000080022b8 0x6c ./my_software/my_code.o
0x00000000080022b8 ds_in_or_out
.text.Sand_Byte_to_595_2
0x0000000008002434 0xd4 ./my_software/my_code.o
0x0000000008002434 Sand_Byte_to_595_2
0x0000000008002324 0xd4 ./my_software/my_code.o
0x0000000008002324 Sand_Byte_to_595_2
.text.hc2_sever
0x0000000008002508 0xa4 ./my_software/my_code.o
0x0000000008002508 hc2_sever
0x00000000080023f8 0xa4 ./my_software/my_code.o
0x00000000080023f8 hc2_sever
.text.moto_server
0x00000000080025ac 0x1c4 ./my_software/my_code.o
0x00000000080025ac moto_server
.text.my_code 0x0000000008002770 0x91c ./my_software/my_code.o
0x0000000008002770 my_code
0x000000000800249c 0x1c4 ./my_software/my_code.o
0x000000000800249c moto_server
.text.HT1621_Display_GetButton
0x0000000008002660 0x150 ./my_software/my_code.o
0x0000000008002660 HT1621_Display_GetButton
.text.my_code 0x00000000080027b0 0x910 ./my_software/my_code.o
0x00000000080027b0 my_code
.text.__libc_init_array
0x000000000800308c 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)
0x000000000800308c __libc_init_array
.text.memset 0x00000000080030d4 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)
0x00000000080030d4 memset
0x00000000080030c0 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)
0x00000000080030c0 __libc_init_array
.text.memset 0x0000000008003108 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)
0x0000000008003108 memset
*(.glue_7)
.glue_7 0x00000000080030e4 0x0 linker stubs
.glue_7 0x0000000008003118 0x0 linker stubs
*(.glue_7t)
.glue_7t 0x00000000080030e4 0x0 linker stubs
.glue_7t 0x0000000008003118 0x0 linker stubs
*(.eh_frame)
.eh_frame 0x00000000080030e4 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 0x0000000008003118 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 0x00000000080030e4 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
0x00000000080030e4 _init
.init 0x00000000080030e8 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 0x0000000008003118 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
0x0000000008003118 _init
.init 0x000000000800311c 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 0x00000000080030f0 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
0x00000000080030f0 _fini
.fini 0x00000000080030f4 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
0x00000000080030fc . = ALIGN (0x4)
0x00000000080030fc _etext = .
.fini 0x0000000008003124 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
0x0000000008003124 _fini
.fini 0x0000000008003128 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
0x0000000008003130 . = ALIGN (0x4)
0x0000000008003130 _etext = .
.vfp11_veneer 0x00000000080030fc 0x0
.vfp11_veneer 0x00000000080030fc 0x0 linker stubs
.vfp11_veneer 0x0000000008003130 0x0
.vfp11_veneer 0x0000000008003130 0x0 linker stubs
.v4_bx 0x00000000080030fc 0x0
.v4_bx 0x00000000080030fc 0x0 linker stubs
.v4_bx 0x0000000008003130 0x0
.v4_bx 0x0000000008003130 0x0 linker stubs
.iplt 0x00000000080030fc 0x0
.iplt 0x00000000080030fc 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 0x0000000008003130 0x0
.iplt 0x0000000008003130 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 0x00000000080030fc 0x60
0x00000000080030fc . = ALIGN (0x4)
.rodata 0x0000000008003130 0x64
0x0000000008003130 . = ALIGN (0x4)
*(.rodata)
.rodata 0x00000000080030fc 0x20 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o
.rodata 0x0000000008003130 0x20 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o
.rodata 0x0000000008003150 0x8 ./my_software/my_code.o
*(.rodata*)
.rodata.AHBPrescTable
0x000000000800311c 0x10 ./Core/Src/system_stm32f0xx.o
0x000000000800311c AHBPrescTable
0x0000000008003158 0x10 ./Core/Src/system_stm32f0xx.o
0x0000000008003158 AHBPrescTable
.rodata.LED_Tab
0x000000000800312c 0x17 ./my_software/ht1621.o
0x000000000800312c LED_Tab
*fill* 0x0000000008003143 0x1
0x0000000008003168 0x12 ./my_software/my_code.o
0x0000000008003168 LED_Tab
*fill* 0x000000000800317a 0x2
.rodata.my_code
0x0000000008003144 0x18 ./my_software/my_code.o
0x000000000800315c . = ALIGN (0x4)
0x000000000800317c 0x18 ./my_software/my_code.o
0x0000000008003194 . = ALIGN (0x4)
.rel.dyn 0x000000000800315c 0x0
.rel.iplt 0x000000000800315c 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.dyn 0x0000000008003194 0x0
.rel.iplt 0x0000000008003194 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 0x000000000800315c 0x0
0x000000000800315c . = ALIGN (0x4)
.ARM.extab 0x0000000008003194 0x0
0x0000000008003194 . = ALIGN (0x4)
*(.ARM.extab* .gnu.linkonce.armextab.*)
0x000000000800315c . = ALIGN (0x4)
0x0000000008003194 . = ALIGN (0x4)
.ARM 0x000000000800315c 0x0
0x000000000800315c . = ALIGN (0x4)
0x000000000800315c __exidx_start = .
.ARM 0x0000000008003194 0x0
0x0000000008003194 . = ALIGN (0x4)
0x0000000008003194 __exidx_start = .
*(.ARM.exidx*)
0x000000000800315c __exidx_end = .
0x000000000800315c . = ALIGN (0x4)
0x0000000008003194 __exidx_end = .
0x0000000008003194 . = ALIGN (0x4)
.preinit_array 0x000000000800315c 0x0
0x000000000800315c . = ALIGN (0x4)
0x000000000800315c PROVIDE (__preinit_array_start = .)
.preinit_array 0x0000000008003194 0x0
0x0000000008003194 . = ALIGN (0x4)
0x0000000008003194 PROVIDE (__preinit_array_start = .)
*(.preinit_array*)
0x000000000800315c PROVIDE (__preinit_array_end = .)
0x000000000800315c . = ALIGN (0x4)
0x0000000008003194 PROVIDE (__preinit_array_end = .)
0x0000000008003194 . = ALIGN (0x4)
.init_array 0x000000000800315c 0x4
0x000000000800315c . = ALIGN (0x4)
0x000000000800315c PROVIDE (__init_array_start = .)
.init_array 0x0000000008003194 0x4
0x0000000008003194 . = ALIGN (0x4)
0x0000000008003194 PROVIDE (__init_array_start = .)
*(SORT_BY_NAME(.init_array.*))
*(.init_array*)
.init_array 0x000000000800315c 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
0x0000000008003160 PROVIDE (__init_array_end = .)
0x0000000008003160 . = ALIGN (0x4)
.init_array 0x0000000008003194 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
0x0000000008003198 PROVIDE (__init_array_end = .)
0x0000000008003198 . = ALIGN (0x4)
.fini_array 0x0000000008003160 0x4
0x0000000008003160 . = ALIGN (0x4)
.fini_array 0x0000000008003198 0x4
0x0000000008003198 . = ALIGN (0x4)
[!provide] PROVIDE (__fini_array_start = .)
*(SORT_BY_NAME(.fini_array.*))
*(.fini_array*)
.fini_array 0x0000000008003160 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 0x0000000008003198 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 = .)
0x0000000008003164 . = ALIGN (0x4)
0x0000000008003164 _sidata = LOADADDR (.data)
0x000000000800319c . = ALIGN (0x4)
0x000000000800319c _sidata = LOADADDR (.data)
.data 0x0000000020000000 0xc load address 0x0000000008003164
.data 0x0000000020000000 0xc load address 0x000000000800319c
0x0000000020000000 . = ALIGN (0x4)
0x0000000020000000 _sdata = .
*(.data)
@@ -3117,11 +3114,11 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id
*fill* 0x0000000020000009 0x3
0x000000002000000c _edata = .
.igot.plt 0x000000002000000c 0x0 load address 0x0000000008003170
.igot.plt 0x000000002000000c 0x0 load address 0x00000000080031a8
.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)
.bss 0x000000002000000c 0xf8 load address 0x0000000008003170
.bss 0x000000002000000c 0xe0 load address 0x00000000080031a8
0x000000002000000c _sbss = .
0x000000002000000c __bss_start__ = _sbss
*(.bss)
@@ -3133,32 +3130,29 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id
0x0000000020000034 hadc
COMMON 0x0000000020000074 0x4 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o
0x0000000020000074 uwTick
COMMON 0x0000000020000078 0x17 ./my_software/ht1621.o
0x0000000020000078 LCD_RAM_Tab
*fill* 0x000000002000008f 0x1
COMMON 0x0000000020000090 0x74 ./my_software/my_code.o
0x0000000020000090 key4
0x00000000200000a0 key1
0x00000000200000b0 overload
0x00000000200000c0 key3
0x00000000200000d0 ADCC
0x00000000200000e4 key2
0x00000000200000f4 moto
0x0000000020000104 . = ALIGN (0x4)
0x0000000020000104 _ebss = .
0x0000000020000104 __bss_end__ = _ebss
COMMON 0x0000000020000078 0x74 ./my_software/my_code.o
0x0000000020000078 key4
0x0000000020000088 key1
0x0000000020000098 overload
0x00000000200000a8 key3
0x00000000200000b8 ADCC
0x00000000200000cc key2
0x00000000200000dc moto
0x00000000200000ec . = ALIGN (0x4)
0x00000000200000ec _ebss = .
0x00000000200000ec __bss_end__ = _ebss
._user_heap_stack
0x0000000020000104 0x604 load address 0x0000000008003170
0x0000000020000108 . = ALIGN (0x8)
*fill* 0x0000000020000104 0x4
0x00000000200000ec 0x604 load address 0x00000000080031a8
0x00000000200000f0 . = ALIGN (0x8)
*fill* 0x00000000200000ec 0x4
[!provide] PROVIDE (end = .)
0x0000000020000108 PROVIDE (_end = .)
0x0000000020000308 . = (. + _Min_Heap_Size)
*fill* 0x0000000020000108 0x200
0x0000000020000708 . = (. + _Min_Stack_Size)
*fill* 0x0000000020000308 0x400
0x0000000020000708 . = ALIGN (0x8)
0x00000000200000f0 PROVIDE (_end = .)
0x00000000200002f0 . = (. + _Min_Heap_Size)
*fill* 0x00000000200000f0 0x200
0x00000000200006f0 . = (. + _Min_Stack_Size)
*fill* 0x00000000200002f0 0x400
0x00000000200006f0 . = ALIGN (0x8)
/DISCARD/
libc.a(*)
@@ -3216,7 +3210,7 @@ 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/thumb/v6-m/nofp/libgcc.a
.debug_info 0x0000000000000000 0x54e8
.debug_info 0x0000000000000000 0x54cd
.debug_info 0x0000000000000000 0xb3c ./Core/Src/main.o
.debug_info 0x0000000000000b3c 0x888 ./Core/Src/stm32f0xx_hal_msp.o
.debug_info 0x00000000000013c4 0x1b3 ./Core/Src/stm32f0xx_it.o
@@ -3228,10 +3222,10 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id
.debug_info 0x000000000000341c 0x6d3 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o
.debug_info 0x0000000000003aef 0x88d ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o
.debug_info 0x000000000000437c 0x1d4 ./my_software/button.o
.debug_info 0x0000000000004550 0x4cd ./my_software/ht1621.o
.debug_info 0x0000000000004a1d 0xacb ./my_software/my_code.o
.debug_info 0x0000000000004550 0x438 ./my_software/ht1621.o
.debug_info 0x0000000000004988 0xb45 ./my_software/my_code.o
.debug_abbrev 0x0000000000000000 0x1556
.debug_abbrev 0x0000000000000000 0x1576
.debug_abbrev 0x0000000000000000 0x21f ./Core/Src/main.o
.debug_abbrev 0x000000000000021f 0x1ac ./Core/Src/stm32f0xx_hal_msp.o
.debug_abbrev 0x00000000000003cb 0xd2 ./Core/Src/stm32f0xx_it.o
@@ -3243,10 +3237,10 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id
.debug_abbrev 0x0000000000000cac 0x1e8 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o
.debug_abbrev 0x0000000000000e94 0x23b ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o
.debug_abbrev 0x00000000000010cf 0xf6 ./my_software/button.o
.debug_abbrev 0x00000000000011c5 0x1a9 ./my_software/ht1621.o
.debug_abbrev 0x000000000000136e 0x1e8 ./my_software/my_code.o
.debug_abbrev 0x00000000000011c5 0x18d ./my_software/ht1621.o
.debug_abbrev 0x0000000000001352 0x224 ./my_software/my_code.o
.debug_aranges 0x0000000000000000 0x518
.debug_aranges 0x0000000000000000 0x510
.debug_aranges
0x0000000000000000 0x40 ./Core/Src/main.o
.debug_aranges
@@ -3270,11 +3264,11 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id
.debug_aranges
0x0000000000000460 0x20 ./my_software/button.o
.debug_aranges
0x0000000000000480 0x50 ./my_software/ht1621.o
0x0000000000000480 0x40 ./my_software/ht1621.o
.debug_aranges
0x00000000000004d0 0x48 ./my_software/my_code.o
0x00000000000004c0 0x50 ./my_software/my_code.o
.debug_ranges 0x0000000000000000 0x450
.debug_ranges 0x0000000000000000 0x448
.debug_ranges 0x0000000000000000 0x30 ./Core/Src/main.o
.debug_ranges 0x0000000000000030 0x20 ./Core/Src/stm32f0xx_hal_msp.o
.debug_ranges 0x0000000000000050 0x30 ./Core/Src/stm32f0xx_it.o
@@ -3286,8 +3280,8 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id
.debug_ranges 0x0000000000000310 0x48 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o
.debug_ranges 0x0000000000000358 0x70 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o
.debug_ranges 0x00000000000003c8 0x10 ./my_software/button.o
.debug_ranges 0x00000000000003d8 0x40 ./my_software/ht1621.o
.debug_ranges 0x0000000000000418 0x38 ./my_software/my_code.o
.debug_ranges 0x00000000000003d8 0x30 ./my_software/ht1621.o
.debug_ranges 0x0000000000000408 0x40 ./my_software/my_code.o
.debug_macro 0x0000000000000000 0xec48
.debug_macro 0x0000000000000000 0x1c5 ./Core/Src/main.o
@@ -3340,13 +3334,13 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id
.debug_macro 0x000000000000e22f 0x1b4 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o
.debug_macro 0x000000000000e3e3 0x1bf ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o
.debug_macro 0x000000000000e5a2 0x1cc ./my_software/button.o
.debug_macro 0x000000000000e76e 0x212 ./my_software/ht1621.o
.debug_macro 0x000000000000e980 0x5e ./my_software/ht1621.o
.debug_macro 0x000000000000e9de 0x1e4 ./my_software/my_code.o
.debug_macro 0x000000000000e76e 0x1da ./my_software/ht1621.o
.debug_macro 0x000000000000e948 0x5e ./my_software/ht1621.o
.debug_macro 0x000000000000e9a6 0x21c ./my_software/my_code.o
.debug_macro 0x000000000000ebc2 0x22 ./my_software/my_code.o
.debug_macro 0x000000000000ebe4 0x64 ./my_software/my_code.o
.debug_line 0x0000000000000000 0x791f
.debug_line 0x0000000000000000 0x78b1
.debug_line 0x0000000000000000 0x851 ./Core/Src/main.o
.debug_line 0x0000000000000851 0x727 ./Core/Src/stm32f0xx_hal_msp.o
.debug_line 0x0000000000000f78 0x744 ./Core/Src/stm32f0xx_it.o
@@ -3358,10 +3352,10 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id
.debug_line 0x0000000000004369 0xad7 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o
.debug_line 0x0000000000004e40 0xd46 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o
.debug_line 0x0000000000005b86 0x73a ./my_software/button.o
.debug_line 0x00000000000062c0 0x987 ./my_software/ht1621.o
.debug_line 0x0000000000006c47 0xcd8 ./my_software/my_code.o
.debug_line 0x00000000000062c0 0x88a ./my_software/ht1621.o
.debug_line 0x0000000000006b4a 0xd67 ./my_software/my_code.o
.debug_str 0x0000000000000000 0x5692c
.debug_str 0x0000000000000000 0x56904
.debug_str 0x0000000000000000 0x55732 ./Core/Src/main.o
0x55a16 (size before relaxing)
.debug_str 0x0000000000055732 0x4e ./Core/Src/stm32f0xx_hal_msp.o
@@ -3384,10 +3378,10 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id
0x554c9 (size before relaxing)
.debug_str 0x000000000005659d 0x40 ./my_software/button.o
0x5526b (size before relaxing)
.debug_str 0x00000000000565dd 0x217 ./my_software/ht1621.o
0x55642 (size before relaxing)
.debug_str 0x00000000000567f4 0x138 ./my_software/my_code.o
0x55a38 (size before relaxing)
.debug_str 0x00000000000565dd 0x183 ./my_software/ht1621.o
0x555ae (size before relaxing)
.debug_str 0x0000000000056760 0x1a4 ./my_software/my_code.o
0x55aa4 (size before relaxing)
.comment 0x0000000000000000 0x53
.comment 0x0000000000000000 0x53 ./Core/Src/main.o
@@ -3404,7 +3398,7 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id
.comment 0x0000000000000053 0x54 ./my_software/ht1621.o
.comment 0x0000000000000053 0x54 ./my_software/my_code.o
.debug_frame 0x0000000000000000 0xff4
.debug_frame 0x0000000000000000 0xfd8
.debug_frame 0x0000000000000000 0xa8 ./Core/Src/main.o
.debug_frame 0x00000000000000a8 0x70 ./Core/Src/stm32f0xx_hal_msp.o
.debug_frame 0x0000000000000118 0x9c ./Core/Src/stm32f0xx_it.o
@@ -3415,9 +3409,9 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id
.debug_frame 0x0000000000000ae4 0x110 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o
.debug_frame 0x0000000000000bf4 0x198 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o
.debug_frame 0x0000000000000d8c 0x30 ./my_software/button.o
.debug_frame 0x0000000000000dbc 0xe4 ./my_software/ht1621.o
.debug_frame 0x0000000000000ea0 0xc8 ./my_software/my_code.o
.debug_frame 0x0000000000000f68 0x2c /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)
.debug_frame 0x0000000000000f94 0x20 /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)
.debug_frame 0x0000000000000fb4 0x20 /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(_udivsi3.o)
.debug_frame 0x0000000000000fd4 0x20 /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(_divsi3.o)
.debug_frame 0x0000000000000dbc 0xa8 ./my_software/ht1621.o
.debug_frame 0x0000000000000e64 0xe8 ./my_software/my_code.o
.debug_frame 0x0000000000000f4c 0x2c /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)
.debug_frame 0x0000000000000f78 0x20 /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)
.debug_frame 0x0000000000000f98 0x20 /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(_udivsi3.o)
.debug_frame 0x0000000000000fb8 0x20 /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(_divsi3.o)
+1 -3
View File
@@ -2,6 +2,4 @@ ht1621.c:19:6:WriteClockHT1621 8 static
ht1621.c:29:6:WriteCommandHT1621 24 static
ht1621.c:61:6:Write1DataHT1621 24 static
ht1621.c:103:6:WritenDataHT1621 24 static
ht1621.c:169:6:HT1621_num_init 16 static
ht1621.c:194:6:HT1621_Init 8 static
ht1621.c:222:6:HT1621_Display 8 static
ht1621.c:150:6:HT1621_Init 8 static
+4 -3
View File
@@ -1,6 +1,7 @@
my_code.c:45:6:ds_in_or_out 48 static
my_code.c:63:9:Read_Ds 8 static
my_code.c:70:6:Sand_Byte_to_595_2 24 static
my_code.c:93:6:hc2_sever 16 static
my_code.c:71:6:Sand_Byte_to_595_2 24 static
my_code.c:92:6:hc2_sever 16 static
my_code.c:119:6:moto_server 8 static
my_code.c:211:6:my_code 32 static
my_code.c:225:6:HT1621_Display_GetButton 24 static
my_code.c:269:6:my_code 32 static
+1 -66
View File
@@ -139,53 +139,9 @@ void WritenDataHT1621(unsigned char Addr,unsigned char *Databuf,unsigned char Cn
HC595_RCK(1); //CS 片选关
HC595_DCK(1);
}
/**
* @brief 数据交换,自动生成液晶需要的数组,此程序,需要根据液晶图纸修改
* @param None
* @retval None
*/
const unsigned char LED_Tab[]=
{
0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71, //0-15 = 0--f
0x58, //16=c
0x37, //17=N
0x40, //18=-
0x0E, //19=J
0x3E, //20=U
0x76, //21=H
0x30, //22=I
};
unsigned char LCD_RAM_Tab[sizeof(LED_Tab)];
#define LCD_A 0x01
#define LCD_B 0x02
#define LCD_C 0x04
#define LCD_D 0x08
#define LCD_E 0x10
#define LCD_F 0x20
#define LCD_G 0x40
#define LCD_P 0x80
void HT1621_num_init(void)
{
unsigned char num,LCD_data;
for(num=0; num<sizeof(LED_Tab); num++)
{
LCD_data = 0;
LCD_data = LCD_data | ((unsigned char)((char)(LED_Tab[num] & LCD_P)) << 7);
LCD_data = LCD_data | ((unsigned char)((char)(LED_Tab[num] & LCD_E)) << 6);
LCD_data = LCD_data | ((unsigned char)((char)(LED_Tab[num] & LCD_F)) << 5);
LCD_data = LCD_data | ((unsigned char)((char)(LED_Tab[num] & LCD_A)) << 4);
LCD_data = LCD_data | ((unsigned char)((char)(LED_Tab[num] & LCD_D)) << 3);
LCD_data = LCD_data | ((unsigned char)((char)(LED_Tab[num] & LCD_C)) << 2);
LCD_data = LCD_data | ((unsigned char)((char)(LED_Tab[num] & LCD_G)) << 1);
LCD_data = LCD_data | ((unsigned char)((char)(LED_Tab[num] & LCD_B)) << 0);
LCD_RAM_Tab[num] = LCD_data;
}
}
/**
* @brief HT1621 Init
* @param None
@@ -209,28 +165,7 @@ void HT1621_Init(void) //退出掉电低功耗状态重新初始化HT1621
WriteCommandHT1621(BUZZ_OFF);
WriteCommandHT1621(IRQ_DIS);
HT1621_num_init(); //自动生成液晶屏需要的数组
}
/**
* @brief 用户显示程序,需要自己完善
* @param None
* @param None
* @retval None
*/
void HT1621_Display(void)
{
Write1DataHT1621(0,0x00);
Write1DataHT1621(1,0x00);
Write1DataHT1621(2,0x00);
Write1DataHT1621(3,0x00);
Write1DataHT1621(4,0x00);
Write1DataHT1621(5,0x00);
Write1DataHT1621(6,0x00);
Write1DataHT1621(7,0x00);
}
-3
View File
@@ -42,10 +42,7 @@ void Write1DataHT1621(unsigned char Addr,unsigned char Dat);
void WritenDataHT1621(unsigned char Addr,unsigned char *Databuf,unsigned char Cnt);
void HT1621_num_init(void);
void HT1621_Init(void);
void HT1621_Display(void);
#endif /* HT1621_H_ */
+79 -25
View File
@@ -67,6 +67,7 @@ uint8_t Read_Ds()
//return READ_HC595_DCK;
}
//send data to 959
void Sand_Byte_to_595_2(uint8_t h)
{
ds_in_or_out(1);
@@ -88,8 +89,6 @@ void Sand_Byte_to_595_2(uint8_t h)
HC595_RCK(1);
HC595_RCK(0);
}
void hc2_sever()
{
char h=0;
@@ -116,6 +115,7 @@ void hc2_sever()
Sand_Byte_to_595_2(h);
}
//motor cool start
void moto_server()
{
if(HAL_GetTick()>moto.moto_run)
@@ -206,6 +206,64 @@ void moto_server()
dis_buff.moto2b=0;
}
}
const unsigned char LED_Tab[]=
{
0x7d,0x05,0x5b,0x1f,0x27,0x3e,0x7e,0x15,0x7f,0x3f, //0-9
0x77,0x6e,0x71,0x5e,0x7a,0x73, //a-f
0x00,0x02
};
#define A 0x80
#define B 0x40
#define C 0x20
#define D 0x10
#define E 0x08
#define F 0x04
#define G 0x02
#define H 0x01
void HT1621_Display_GetButton(void)
{
unsigned char send_buff[8]={0,0,0,0,0,0,0,0,0};
unsigned char lcd_buff[4]={0,0,0,0};
//WritenDataHT1621(0,send_buff,8);
lcd_buff[0]=LED_Tab[dis_buff.d_num[0]];
if(dis_buff.dot1==1)
{
lcd_buff[0]|=0x80;
}
lcd_buff[1]=LED_Tab[dis_buff.d_num[1]];
if(dis_buff.dot2==1)
{
lcd_buff[1]|=0x80;
}
lcd_buff[2]=LED_Tab[dis_buff.d_num[2]];
if(dis_buff.dot3==1)
{
lcd_buff[2]|=0x80;
}
lcd_buff[3]=LED_Tab[dis_buff.d_num[3]];
if(dis_buff.dot4==1)
{
lcd_buff[3]|=0x80;
}
send_buff[0]=lcd_buff[0]>>4;
send_buff[1]=lcd_buff[0]&0x0f;
send_buff[2]=lcd_buff[1]>>4;
send_buff[3]=lcd_buff[1]&0x0f;
send_buff[4]=lcd_buff[2]>>4;
send_buff[5]=lcd_buff[2]&0x0f;
send_buff[6]=lcd_buff[3]>>4;
send_buff[7]=lcd_buff[3]&0x0f;
WritenDataHT1621(0,send_buff,8);
}
void my_code()
@@ -214,12 +272,9 @@ void my_code()
uint8_t mode=0,overload_mode=0;
uint16_t overload_times=0;
long countdown=0;
long countdown=1000;
long countdown_set=15000;
dis_buff.d_num[0]=8;
dis_buff.d_num[1]=8;
dis_buff.d_num[2]=8;
dis_buff.d_num[3]=8;
dis_buff.moto1a=0;
dis_buff.moto1b=0;
@@ -241,21 +296,19 @@ void my_code()
HT1621_Init();
while(1)
{
//*adc读取 并计滤波 并计算温度*/
///*获取两个通道*/
//get ADC
for(char a=0;a<2;a++)
{
HAL_ADC_Start(&hadc);
while(HAL_ADC_PollForConversion(&hadc,0xffff)!=HAL_OK);
ADCC.adc_filtering[a]+=HAL_ADC_GetValue(&hadc); //把读到的值加到滤波缓存
ADCC.adc_filtering[a]+=HAL_ADC_GetValue(&hadc);
}
HAL_ADC_Stop(&hadc);
///*开始滤波*/
ADCC.filtering_times+=1; //每采样加一次记一次
if(ADCC.filtering_times==set_filtering_times) //当达到设定的滤波采样次数
ADCC.filtering_times+=1;
if(ADCC.filtering_times==set_filtering_times)
{
ADCC.filtering_times=0;
ADCC.adc_value[0]=ADCC.adc_filtering[0]/set_filtering_times; //就除于采样次数
ADCC.adc_value[0]=ADCC.adc_filtering[0]/set_filtering_times;
ADCC.adc_filtering[0]=0;
ADCC.adc_value[1]=ADCC.adc_filtering[1]/set_filtering_times;
ADCC.adc_filtering[1]=0;
@@ -304,20 +357,22 @@ void my_code()
if(dis_buff.led_run==1)
{
dis_buff.led_run=0;
dis_buff.dot4=1;
}else
{
dis_buff.led_run=1;
dis_buff.dot4=0;
}
}
dis_buff.d_num[0]=0xff;
dis_buff.d_num[1]=0xff;
dis_buff.d_num[2]=0xff;
dis_buff.d_num[3]=0xff;
dis_buff.d_num[0]=16;
dis_buff.d_num[1]=16;
dis_buff.d_num[2]=16;
dis_buff.d_num[3]=16;
dis_buff.dot1=0;
dis_buff.dot2=0;
dis_buff.dot3=0;
dis_buff.dot4=0;
overload_times=0;
if(key2.code!=0)
{
@@ -359,7 +414,7 @@ void my_code()
dis_buff.d_num[3]=(countdown/100)%10;
dis_buff.d_num[2]=(countdown/1000)%10;
dis_buff.d_num[1]=((countdown/10000)%10);
dis_buff.d_num[1]=dis_buff.d_num[1]==0?255:dis_buff.d_num[1];
dis_buff.d_num[1]=dis_buff.d_num[1]==0?16:dis_buff.d_num[1];
dis_buff.dot3=1;
if(key3.code!=0)
@@ -405,7 +460,7 @@ void my_code()
dis_buff.d_num[3]=(countdown/100)%10;
dis_buff.d_num[2]=(countdown/1000)%10;
dis_buff.d_num[1]=((countdown/10000)%10);
dis_buff.d_num[1]=dis_buff.d_num[1]==0?255:dis_buff.d_num[1];
dis_buff.d_num[1]=dis_buff.d_num[1]==0?16:dis_buff.d_num[1];
dis_buff.dot3=1;
if(key2.code!=0)
{
@@ -459,7 +514,7 @@ void my_code()
dis_buff.d_num[3]=(countdown_set/100)%10;
dis_buff.d_num[2]=(countdown_set/1000)%10;
dis_buff.d_num[1]=((countdown_set/10000)%10);
dis_buff.d_num[1]=dis_buff.d_num[1]==0?255:dis_buff.d_num[1];
dis_buff.d_num[1]=dis_buff.d_num[1]==0?16:dis_buff.d_num[1];
dis_buff.dot3=1;
break;
@@ -474,7 +529,7 @@ void my_code()
dis_buff.d_num[3]=(countdown/100)%10;
dis_buff.d_num[2]=(countdown/1000)%10;
dis_buff.d_num[1]=((countdown/10000)%10);
dis_buff.d_num[1]=dis_buff.d_num[1]==0?255:dis_buff.d_num[1];
dis_buff.d_num[1]=dis_buff.d_num[1]==0?16:dis_buff.d_num[1];
dis_buff.dot3=1;
if(key4.code!=0){mode=1;}
@@ -518,8 +573,7 @@ void my_code()
GEI_BUTTON_CODE(&key2,dis_buff.button_flag[1]);
GEI_BUTTON_CODE(&key3,dis_buff.button_flag[2]);
GEI_BUTTON_CODE(&key4,dis_buff.button_flag[3]);
//display_and_button_loop();
HT1621_Display();
HT1621_Display_GetButton();
hc2_sever();
moto_server();
}
+2 -2
View File
@@ -22,8 +22,8 @@ void my_code();
struct display_penal
{
char d_num[4];
char button_flag[4];
unsigned char d_num[4];
unsigned char button_flag[4];
char dot1:1;
char dot2:1;
char dot3:1;