完成,可以通过ADC防止堵转卡死
This commit is contained in:
Binary file not shown.
+4469
-3363
File diff suppressed because it is too large
Load Diff
+133
-126
@@ -25,6 +25,7 @@ uwTick 0x4 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0
|
||||
pFlash 0x20 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.o
|
||||
dis_buff 0x5 ./My_Soul/my_main.o
|
||||
key1 0x10 ./My_Soul/my_main.o
|
||||
overload 0x10 ./My_Soul/my_main.o
|
||||
key3 0x10 ./My_Soul/my_main.o
|
||||
key2 0x10 ./My_Soul/my_main.o
|
||||
hadc 0x40 ./Core/Src/main.o
|
||||
@@ -690,10 +691,6 @@ Discarded input sections
|
||||
0x0000000000000000 0x10 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.o
|
||||
.text.HAL_ADC_MspDeInit
|
||||
0x0000000000000000 0x10 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.o
|
||||
.text.HAL_ADC_Start
|
||||
0x0000000000000000 0xa8 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.o
|
||||
.text.HAL_ADC_Stop
|
||||
0x0000000000000000 0x80 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.o
|
||||
.text.HAL_ADC_PollForConversion
|
||||
0x0000000000000000 0x130 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.o
|
||||
.text.HAL_ADC_PollForEvent
|
||||
@@ -706,8 +703,6 @@ Discarded input sections
|
||||
0x0000000000000000 0x104 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.o
|
||||
.text.HAL_ADC_Stop_DMA
|
||||
0x0000000000000000 0xec ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.o
|
||||
.text.HAL_ADC_GetValue
|
||||
0x0000000000000000 0x16 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.o
|
||||
.text.HAL_ADC_IRQHandler
|
||||
0x0000000000000000 0x170 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.o
|
||||
.text.HAL_ADC_ConvCpltCallback
|
||||
@@ -724,12 +719,6 @@ Discarded input sections
|
||||
0x0000000000000000 0x14 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.o
|
||||
.text.HAL_ADC_GetError
|
||||
0x0000000000000000 0x14 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.o
|
||||
.text.ADC_Enable
|
||||
0x0000000000000000 0x108 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.o
|
||||
.text.ADC_Disable
|
||||
0x0000000000000000 0xe2 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.o
|
||||
.text.ADC_ConversionStop
|
||||
0x0000000000000000 0x98 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.o
|
||||
.text.ADC_DMAConvCplt
|
||||
0x0000000000000000 0xb4 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.o
|
||||
.text.ADC_DMAHalfConvCplt
|
||||
@@ -2746,7 +2735,7 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id
|
||||
0x0000000008000000 g_pfnVectors
|
||||
0x00000000080000c0 . = ALIGN (0x4)
|
||||
|
||||
.text 0x00000000080000c0 0x2564
|
||||
.text 0x00000000080000c0 0x2b7c
|
||||
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
|
||||
@@ -2842,136 +2831,153 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id
|
||||
.text.HAL_ADC_Init
|
||||
0x0000000008000884 0x280 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.o
|
||||
0x0000000008000884 HAL_ADC_Init
|
||||
.text.HAL_ADC_Start
|
||||
0x0000000008000b04 0xa8 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.o
|
||||
0x0000000008000b04 HAL_ADC_Start
|
||||
.text.HAL_ADC_Stop
|
||||
0x0000000008000bac 0x80 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.o
|
||||
0x0000000008000bac HAL_ADC_Stop
|
||||
.text.HAL_ADC_GetValue
|
||||
0x0000000008000c2c 0x16 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.o
|
||||
0x0000000008000c2c HAL_ADC_GetValue
|
||||
*fill* 0x0000000008000c42 0x2
|
||||
.text.HAL_ADC_ConfigChannel
|
||||
0x0000000008000b04 0x1ec ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.o
|
||||
0x0000000008000b04 HAL_ADC_ConfigChannel
|
||||
0x0000000008000c44 0x1ec ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.o
|
||||
0x0000000008000c44 HAL_ADC_ConfigChannel
|
||||
.text.ADC_Enable
|
||||
0x0000000008000e30 0x108 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.o
|
||||
.text.ADC_Disable
|
||||
0x0000000008000f38 0xe2 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.o
|
||||
.text.ADC_ConversionStop
|
||||
0x000000000800101a 0x98 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.o
|
||||
*fill* 0x00000000080010b2 0x2
|
||||
.text.__NVIC_SetPriority
|
||||
0x0000000008000cf0 0xdc ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.o
|
||||
0x00000000080010b4 0xdc ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.o
|
||||
.text.SysTick_Config
|
||||
0x0000000008000dcc 0x48 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.o
|
||||
0x0000000008001190 0x48 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.o
|
||||
.text.HAL_NVIC_SetPriority
|
||||
0x0000000008000e14 0x2a ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.o
|
||||
0x0000000008000e14 HAL_NVIC_SetPriority
|
||||
0x00000000080011d8 0x2a ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.o
|
||||
0x00000000080011d8 HAL_NVIC_SetPriority
|
||||
.text.HAL_SYSTICK_Config
|
||||
0x0000000008000e3e 0x1a ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.o
|
||||
0x0000000008000e3e HAL_SYSTICK_Config
|
||||
0x0000000008001202 0x1a ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.o
|
||||
0x0000000008001202 HAL_SYSTICK_Config
|
||||
.text.HAL_GPIO_Init
|
||||
0x0000000008000e58 0x2e0 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o
|
||||
0x0000000008000e58 HAL_GPIO_Init
|
||||
0x000000000800121c 0x2e0 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o
|
||||
0x000000000800121c HAL_GPIO_Init
|
||||
.text.HAL_GPIO_ReadPin
|
||||
0x0000000008001138 0x3a ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o
|
||||
0x0000000008001138 HAL_GPIO_ReadPin
|
||||
0x00000000080014fc 0x3a ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o
|
||||
0x00000000080014fc HAL_GPIO_ReadPin
|
||||
.text.HAL_GPIO_WritePin
|
||||
0x0000000008001172 0x3a ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o
|
||||
0x0000000008001172 HAL_GPIO_WritePin
|
||||
0x0000000008001536 0x3a ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o
|
||||
0x0000000008001536 HAL_GPIO_WritePin
|
||||
.text.HAL_RCC_OscConfig
|
||||
0x00000000080011ac 0x634 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o
|
||||
0x00000000080011ac HAL_RCC_OscConfig
|
||||
0x0000000008001570 0x634 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o
|
||||
0x0000000008001570 HAL_RCC_OscConfig
|
||||
.text.HAL_RCC_ClockConfig
|
||||
0x00000000080017e0 0x19c ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o
|
||||
0x00000000080017e0 HAL_RCC_ClockConfig
|
||||
0x0000000008001ba4 0x19c ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o
|
||||
0x0000000008001ba4 HAL_RCC_ClockConfig
|
||||
.text.HAL_RCC_GetSysClockFreq
|
||||
0x000000000800197c 0xc8 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o
|
||||
0x000000000800197c HAL_RCC_GetSysClockFreq
|
||||
0x0000000008001d40 0xc8 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o
|
||||
0x0000000008001d40 HAL_RCC_GetSysClockFreq
|
||||
.text.GEI_BUTTON_CODE
|
||||
0x0000000008001a44 0xbc ./My_Soul/button.o
|
||||
0x0000000008001a44 GEI_BUTTON_CODE
|
||||
0x0000000008001e08 0xbc ./My_Soul/button.o
|
||||
0x0000000008001e08 GEI_BUTTON_CODE
|
||||
.text.Send_to_595
|
||||
0x0000000008001b00 0xee ./My_Soul/my_main.o
|
||||
0x0000000008001b00 Send_to_595
|
||||
*fill* 0x0000000008001bee 0x2
|
||||
.text.display 0x0000000008001bf0 0x22c ./My_Soul/my_main.o
|
||||
0x0000000008001bf0 display
|
||||
.text.mymain 0x0000000008001e1c 0x798 ./My_Soul/my_main.o
|
||||
0x0000000008001e1c mymain
|
||||
0x0000000008001ec4 0xee ./My_Soul/my_main.o
|
||||
0x0000000008001ec4 Send_to_595
|
||||
*fill* 0x0000000008001fb2 0x2
|
||||
.text.display 0x0000000008001fb4 0x22c ./My_Soul/my_main.o
|
||||
0x0000000008001fb4 display
|
||||
.text.mymain 0x00000000080021e0 0x9ec ./My_Soul/my_main.o
|
||||
0x00000000080021e0 mymain
|
||||
.text.__libc_init_array
|
||||
0x00000000080025b4 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)
|
||||
0x00000000080025b4 __libc_init_array
|
||||
.text.memset 0x00000000080025fc 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)
|
||||
0x00000000080025fc memset
|
||||
0x0000000008002bcc 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)
|
||||
0x0000000008002bcc __libc_init_array
|
||||
.text.memset 0x0000000008002c14 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)
|
||||
0x0000000008002c14 memset
|
||||
*(.glue_7)
|
||||
.glue_7 0x000000000800260c 0x0 linker stubs
|
||||
.glue_7 0x0000000008002c24 0x0 linker stubs
|
||||
*(.glue_7t)
|
||||
.glue_7t 0x000000000800260c 0x0 linker stubs
|
||||
.glue_7t 0x0000000008002c24 0x0 linker stubs
|
||||
*(.eh_frame)
|
||||
.eh_frame 0x000000000800260c 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 0x0000000008002c24 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 0x000000000800260c 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
|
||||
0x000000000800260c _init
|
||||
.init 0x0000000008002610 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 0x0000000008002c24 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
|
||||
0x0000000008002c24 _init
|
||||
.init 0x0000000008002c28 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 0x0000000008002618 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
|
||||
0x0000000008002618 _fini
|
||||
.fini 0x000000000800261c 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
|
||||
0x0000000008002624 . = ALIGN (0x4)
|
||||
0x0000000008002624 _etext = .
|
||||
.fini 0x0000000008002c30 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
|
||||
0x0000000008002c30 _fini
|
||||
.fini 0x0000000008002c34 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
|
||||
0x0000000008002c3c . = ALIGN (0x4)
|
||||
0x0000000008002c3c _etext = .
|
||||
|
||||
.vfp11_veneer 0x0000000008002624 0x0
|
||||
.vfp11_veneer 0x0000000008002624 0x0 linker stubs
|
||||
.vfp11_veneer 0x0000000008002c3c 0x0
|
||||
.vfp11_veneer 0x0000000008002c3c 0x0 linker stubs
|
||||
|
||||
.v4_bx 0x0000000008002624 0x0
|
||||
.v4_bx 0x0000000008002624 0x0 linker stubs
|
||||
.v4_bx 0x0000000008002c3c 0x0
|
||||
.v4_bx 0x0000000008002c3c 0x0 linker stubs
|
||||
|
||||
.iplt 0x0000000008002624 0x0
|
||||
.iplt 0x0000000008002624 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 0x0000000008002c3c 0x0
|
||||
.iplt 0x0000000008002c3c 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 0x0000000008002624 0x58
|
||||
0x0000000008002624 . = ALIGN (0x4)
|
||||
.rodata 0x0000000008002c3c 0x5c
|
||||
0x0000000008002c3c . = ALIGN (0x4)
|
||||
*(.rodata)
|
||||
.rodata 0x0000000008002624 0x20 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o
|
||||
.rodata 0x0000000008002c3c 0x20 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o
|
||||
*(.rodata*)
|
||||
.rodata.AHBPrescTable
|
||||
0x0000000008002644 0x10 ./Core/Src/system_stm32f0xx.o
|
||||
0x0000000008002644 AHBPrescTable
|
||||
0x0000000008002c5c 0x10 ./Core/Src/system_stm32f0xx.o
|
||||
0x0000000008002c5c AHBPrescTable
|
||||
.rodata.d_num_data
|
||||
0x0000000008002654 0x14 ./My_Soul/my_main.o
|
||||
0x0000000008002654 d_num_data
|
||||
0x0000000008002c6c 0x14 ./My_Soul/my_main.o
|
||||
0x0000000008002c6c d_num_data
|
||||
.rodata.mymain
|
||||
0x0000000008002668 0x14 ./My_Soul/my_main.o
|
||||
0x000000000800267c . = ALIGN (0x4)
|
||||
0x0000000008002c80 0x18 ./My_Soul/my_main.o
|
||||
0x0000000008002c98 . = ALIGN (0x4)
|
||||
|
||||
.rel.dyn 0x000000000800267c 0x0
|
||||
.rel.iplt 0x000000000800267c 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 0x0000000008002c98 0x0
|
||||
.rel.iplt 0x0000000008002c98 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 0x000000000800267c 0x0
|
||||
0x000000000800267c . = ALIGN (0x4)
|
||||
.ARM.extab 0x0000000008002c98 0x0
|
||||
0x0000000008002c98 . = ALIGN (0x4)
|
||||
*(.ARM.extab* .gnu.linkonce.armextab.*)
|
||||
0x000000000800267c . = ALIGN (0x4)
|
||||
0x0000000008002c98 . = ALIGN (0x4)
|
||||
|
||||
.ARM 0x000000000800267c 0x0
|
||||
0x000000000800267c . = ALIGN (0x4)
|
||||
0x000000000800267c __exidx_start = .
|
||||
.ARM 0x0000000008002c98 0x0
|
||||
0x0000000008002c98 . = ALIGN (0x4)
|
||||
0x0000000008002c98 __exidx_start = .
|
||||
*(.ARM.exidx*)
|
||||
0x000000000800267c __exidx_end = .
|
||||
0x000000000800267c . = ALIGN (0x4)
|
||||
0x0000000008002c98 __exidx_end = .
|
||||
0x0000000008002c98 . = ALIGN (0x4)
|
||||
|
||||
.preinit_array 0x000000000800267c 0x0
|
||||
0x000000000800267c . = ALIGN (0x4)
|
||||
0x000000000800267c PROVIDE (__preinit_array_start = .)
|
||||
.preinit_array 0x0000000008002c98 0x0
|
||||
0x0000000008002c98 . = ALIGN (0x4)
|
||||
0x0000000008002c98 PROVIDE (__preinit_array_start = .)
|
||||
*(.preinit_array*)
|
||||
0x000000000800267c PROVIDE (__preinit_array_end = .)
|
||||
0x000000000800267c . = ALIGN (0x4)
|
||||
0x0000000008002c98 PROVIDE (__preinit_array_end = .)
|
||||
0x0000000008002c98 . = ALIGN (0x4)
|
||||
|
||||
.init_array 0x000000000800267c 0x4
|
||||
0x000000000800267c . = ALIGN (0x4)
|
||||
0x000000000800267c PROVIDE (__init_array_start = .)
|
||||
.init_array 0x0000000008002c98 0x4
|
||||
0x0000000008002c98 . = ALIGN (0x4)
|
||||
0x0000000008002c98 PROVIDE (__init_array_start = .)
|
||||
*(SORT_BY_NAME(.init_array.*))
|
||||
*(.init_array*)
|
||||
.init_array 0x000000000800267c 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
|
||||
0x0000000008002680 PROVIDE (__init_array_end = .)
|
||||
0x0000000008002680 . = ALIGN (0x4)
|
||||
.init_array 0x0000000008002c98 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
|
||||
0x0000000008002c9c PROVIDE (__init_array_end = .)
|
||||
0x0000000008002c9c . = ALIGN (0x4)
|
||||
|
||||
.fini_array 0x0000000008002680 0x4
|
||||
0x0000000008002680 . = ALIGN (0x4)
|
||||
.fini_array 0x0000000008002c9c 0x4
|
||||
0x0000000008002c9c . = ALIGN (0x4)
|
||||
[!provide] PROVIDE (__fini_array_start = .)
|
||||
*(SORT_BY_NAME(.fini_array.*))
|
||||
*(.fini_array*)
|
||||
.fini_array 0x0000000008002680 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 0x0000000008002c9c 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 = .)
|
||||
0x0000000008002684 . = ALIGN (0x4)
|
||||
0x0000000008002684 _sidata = LOADADDR (.data)
|
||||
0x0000000008002ca0 . = ALIGN (0x4)
|
||||
0x0000000008002ca0 _sidata = LOADADDR (.data)
|
||||
|
||||
.data 0x0000000020000000 0x10 load address 0x0000000008002684
|
||||
.data 0x0000000020000000 0x10 load address 0x0000000008002ca0
|
||||
0x0000000020000000 . = ALIGN (0x4)
|
||||
0x0000000020000000 _sdata = .
|
||||
*(.data)
|
||||
@@ -2994,11 +3000,11 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id
|
||||
0x0000000020000010 . = ALIGN (0x4)
|
||||
0x0000000020000010 _edata = .
|
||||
|
||||
.igot.plt 0x0000000020000010 0x0 load address 0x0000000008002694
|
||||
.igot.plt 0x0000000020000010 0x0 load address 0x0000000008002cb0
|
||||
.igot.plt 0x0000000020000010 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
|
||||
0x0000000020000010 . = ALIGN (0x4)
|
||||
|
||||
.bss 0x0000000020000010 0xac load address 0x0000000008002694
|
||||
.bss 0x0000000020000010 0xbc load address 0x0000000008002cb0
|
||||
0x0000000020000010 _sbss = .
|
||||
0x0000000020000010 __bss_start__ = _sbss
|
||||
*(.bss)
|
||||
@@ -3012,27 +3018,28 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id
|
||||
0x0000000020000030 hadc
|
||||
COMMON 0x0000000020000070 0x4 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o
|
||||
0x0000000020000070 uwTick
|
||||
COMMON 0x0000000020000074 0x48 ./My_Soul/my_main.o
|
||||
COMMON 0x0000000020000074 0x58 ./My_Soul/my_main.o
|
||||
0x0000000020000074 key4
|
||||
0x0000000020000084 dis_buff
|
||||
0x000000002000008c key1
|
||||
0x000000002000009c key3
|
||||
0x00000000200000ac key2
|
||||
0x00000000200000bc . = ALIGN (0x4)
|
||||
0x00000000200000bc _ebss = .
|
||||
0x00000000200000bc __bss_end__ = _ebss
|
||||
0x000000002000009c overload
|
||||
0x00000000200000ac key3
|
||||
0x00000000200000bc key2
|
||||
0x00000000200000cc . = ALIGN (0x4)
|
||||
0x00000000200000cc _ebss = .
|
||||
0x00000000200000cc __bss_end__ = _ebss
|
||||
|
||||
._user_heap_stack
|
||||
0x00000000200000bc 0x804 load address 0x0000000008002694
|
||||
0x00000000200000c0 . = ALIGN (0x8)
|
||||
*fill* 0x00000000200000bc 0x4
|
||||
0x00000000200000cc 0x804 load address 0x0000000008002cb0
|
||||
0x00000000200000d0 . = ALIGN (0x8)
|
||||
*fill* 0x00000000200000cc 0x4
|
||||
[!provide] PROVIDE (end = .)
|
||||
0x00000000200000c0 PROVIDE (_end = .)
|
||||
0x00000000200004c0 . = (. + _Min_Heap_Size)
|
||||
*fill* 0x00000000200000c0 0x400
|
||||
0x00000000200008c0 . = (. + _Min_Stack_Size)
|
||||
*fill* 0x00000000200004c0 0x400
|
||||
0x00000000200008c0 . = ALIGN (0x8)
|
||||
0x00000000200000d0 PROVIDE (_end = .)
|
||||
0x00000000200004d0 . = (. + _Min_Heap_Size)
|
||||
*fill* 0x00000000200000d0 0x400
|
||||
0x00000000200008d0 . = (. + _Min_Stack_Size)
|
||||
*fill* 0x00000000200004d0 0x400
|
||||
0x00000000200008d0 . = ALIGN (0x8)
|
||||
|
||||
/DISCARD/
|
||||
libc.a(*)
|
||||
@@ -3088,7 +3095,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 0x4910
|
||||
.debug_info 0x0000000000000000 0x4dc5
|
||||
.debug_info 0x0000000000000000 0xa5a ./Core/Src/main.o
|
||||
.debug_info 0x0000000000000a5a 0x888 ./Core/Src/stm32f0xx_hal_msp.o
|
||||
.debug_info 0x00000000000012e2 0x1b3 ./Core/Src/stm32f0xx_it.o
|
||||
@@ -3100,9 +3107,9 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id
|
||||
.debug_info 0x000000000000333a 0x6d3 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o
|
||||
.debug_info 0x0000000000003a0d 0x88d ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o
|
||||
.debug_info 0x000000000000429a 0x1d4 ./My_Soul/button.o
|
||||
.debug_info 0x000000000000446e 0x4a2 ./My_Soul/my_main.o
|
||||
.debug_info 0x000000000000446e 0x957 ./My_Soul/my_main.o
|
||||
|
||||
.debug_abbrev 0x0000000000000000 0x1342
|
||||
.debug_abbrev 0x0000000000000000 0x1353
|
||||
.debug_abbrev 0x0000000000000000 0x208 ./Core/Src/main.o
|
||||
.debug_abbrev 0x0000000000000208 0x1ac ./Core/Src/stm32f0xx_hal_msp.o
|
||||
.debug_abbrev 0x00000000000003b4 0xd2 ./Core/Src/stm32f0xx_it.o
|
||||
@@ -3114,7 +3121,7 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id
|
||||
.debug_abbrev 0x0000000000000c95 0x1e8 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o
|
||||
.debug_abbrev 0x0000000000000e7d 0x23b ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o
|
||||
.debug_abbrev 0x00000000000010b8 0xf6 ./My_Soul/button.o
|
||||
.debug_abbrev 0x00000000000011ae 0x194 ./My_Soul/my_main.o
|
||||
.debug_abbrev 0x00000000000011ae 0x1a5 ./My_Soul/my_main.o
|
||||
|
||||
.debug_aranges 0x0000000000000000 0x4b0
|
||||
.debug_aranges
|
||||
@@ -3208,7 +3215,7 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id
|
||||
.debug_macro 0x000000000000e563 0x1cc ./My_Soul/button.o
|
||||
.debug_macro 0x000000000000e72f 0x206 ./My_Soul/my_main.o
|
||||
|
||||
.debug_line 0x0000000000000000 0x6e34
|
||||
.debug_line 0x0000000000000000 0x6f12
|
||||
.debug_line 0x0000000000000000 0x844 ./Core/Src/main.o
|
||||
.debug_line 0x0000000000000844 0x727 ./Core/Src/stm32f0xx_hal_msp.o
|
||||
.debug_line 0x0000000000000f6b 0x744 ./Core/Src/stm32f0xx_it.o
|
||||
@@ -3220,9 +3227,9 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id
|
||||
.debug_line 0x000000000000435c 0xad7 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o
|
||||
.debug_line 0x0000000000004e33 0xd46 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o
|
||||
.debug_line 0x0000000000005b79 0x736 ./My_Soul/button.o
|
||||
.debug_line 0x00000000000062af 0xb85 ./My_Soul/my_main.o
|
||||
.debug_line 0x00000000000062af 0xc63 ./My_Soul/my_main.o
|
||||
|
||||
.debug_str 0x0000000000000000 0x56677
|
||||
.debug_str 0x0000000000000000 0x566a2
|
||||
.debug_str 0x0000000000000000 0x554fa ./Core/Src/main.o
|
||||
0x557e3 (size before relaxing)
|
||||
.debug_str 0x00000000000554fa 0x4e ./Core/Src/stm32f0xx_hal_msp.o
|
||||
@@ -3243,10 +3250,10 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id
|
||||
0x5529d (size before relaxing)
|
||||
.debug_str 0x0000000000056125 0x240 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o
|
||||
0x554c8 (size before relaxing)
|
||||
.debug_str 0x0000000000056365 0x47 ./My_Soul/button.o
|
||||
.debug_str 0x0000000000056365 0x41 ./My_Soul/button.o
|
||||
0x551f7 (size before relaxing)
|
||||
.debug_str 0x00000000000563ac 0x2cb ./My_Soul/my_main.o
|
||||
0x554ea (size before relaxing)
|
||||
.debug_str 0x00000000000563a6 0x2fc ./My_Soul/my_main.o
|
||||
0x5588c (size before relaxing)
|
||||
|
||||
.comment 0x0000000000000000 0x53
|
||||
.comment 0x0000000000000000 0x53 ./Core/Src/main.o
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
my_main.c:43:6:Send_to_595 24 static
|
||||
my_main.c:76:6:display 16 static
|
||||
my_main.c:141:6:mymain 24 static
|
||||
my_main.c:44:6:Send_to_595 24 static
|
||||
my_main.c:77:6:display 16 static
|
||||
my_main.c:142:6:mymain 40 static
|
||||
|
||||
+88
-8
@@ -19,8 +19,9 @@
|
||||
#define KEY2 HAL_GPIO_ReadPin(KEY3_GPIO_Port, KEY3_Pin)
|
||||
#define KEY3 HAL_GPIO_ReadPin(KEY4_GPIO_Port, KEY4_Pin)
|
||||
|
||||
struct button key1,key2,key3,key4;
|
||||
struct button key1,key2,key3,key4,overload;
|
||||
|
||||
extern ADC_HandleTypeDef hadc;
|
||||
const char d_num_data[2][10]=
|
||||
{
|
||||
{0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f},
|
||||
@@ -141,9 +142,10 @@ long countdown_set=15000;
|
||||
void mymain()
|
||||
{
|
||||
uint32_t runtime=0,move=0;
|
||||
uint8_t mode=0;
|
||||
uint16_t adc;
|
||||
|
||||
uint8_t mode=0,overload_mode=0;
|
||||
uint16_t adc,adc_times=0;
|
||||
uint32_t adc_l;
|
||||
uint16_t overload_times=0;
|
||||
MOTA(0);
|
||||
MOTB(0);
|
||||
HC595_DCK(0);
|
||||
@@ -159,6 +161,7 @@ void mymain()
|
||||
|
||||
while(1)
|
||||
{
|
||||
|
||||
switch(mode)
|
||||
{
|
||||
case 0:
|
||||
@@ -172,6 +175,10 @@ void mymain()
|
||||
mode=1;
|
||||
}
|
||||
|
||||
HAL_ADC_Start(&hadc);
|
||||
HAL_ADC_GetValue(&hadc);
|
||||
HAL_ADC_Stop(&hadc);
|
||||
|
||||
dis_buff.d_num[0]=((countdown/100)%10);
|
||||
dis_buff.d_num[1]=((countdown/100)%10);
|
||||
dis_buff.d_num[2]=((countdown/100)%10);
|
||||
@@ -202,7 +209,7 @@ void mymain()
|
||||
dis_buff.dot2=0;
|
||||
dis_buff.dot3=0;
|
||||
dis_buff.dot4=0;
|
||||
|
||||
overload_times=0;
|
||||
if(key2.code!=0)
|
||||
{
|
||||
mode=2;
|
||||
@@ -249,10 +256,19 @@ void mymain()
|
||||
mode=3;
|
||||
countdown=countdown_set-countdown;
|
||||
}
|
||||
if(key4.code!=0)
|
||||
if(key4.code<0)
|
||||
{
|
||||
mode=1;
|
||||
}
|
||||
if(overload.code!=0)
|
||||
{
|
||||
overload_times+=1;
|
||||
}
|
||||
if(overload_times>2)
|
||||
{
|
||||
overload_mode=2;
|
||||
mode=5;
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
MOTB(0);
|
||||
@@ -284,10 +300,19 @@ void mymain()
|
||||
mode=2;
|
||||
countdown=countdown_set-countdown;
|
||||
}
|
||||
if(key4.code!=0)
|
||||
if(key4.code<0)
|
||||
{
|
||||
mode=1;
|
||||
}
|
||||
if(overload.code!=0)
|
||||
{
|
||||
overload_times+=1;
|
||||
}
|
||||
if(overload_times>2)
|
||||
{
|
||||
overload_mode=3;
|
||||
mode=5;
|
||||
}
|
||||
break;
|
||||
case 4:
|
||||
//setting mode
|
||||
@@ -324,6 +349,45 @@ void mymain()
|
||||
dis_buff.d_num[1]=dis_buff.d_num[1]==0?255:dis_buff.d_num[1];
|
||||
dis_buff.dot3=1;
|
||||
|
||||
break;
|
||||
case 5:
|
||||
//overload
|
||||
MOTB(0);
|
||||
MOTA(0);
|
||||
overload_times=0;
|
||||
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.dot3=1;
|
||||
dis_buff.led_err=1;
|
||||
if(key4.code!=0){mode=1;}
|
||||
|
||||
if(key2.code!=0)
|
||||
{
|
||||
mode=2;
|
||||
if(overload_mode==2)
|
||||
{
|
||||
|
||||
}else
|
||||
{
|
||||
countdown=countdown_set-countdown;
|
||||
}
|
||||
|
||||
}
|
||||
if(key3.code!=0)
|
||||
{
|
||||
mode=3;
|
||||
if(overload_mode==3)
|
||||
{
|
||||
|
||||
}else
|
||||
{
|
||||
countdown=countdown_set-countdown;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -352,7 +416,23 @@ void mymain()
|
||||
dis_buff.led_run=1;
|
||||
}
|
||||
}
|
||||
|
||||
HAL_ADC_Start(&hadc);
|
||||
adc_l+=HAL_ADC_GetValue(&hadc);
|
||||
adc_times+=1;
|
||||
HAL_ADC_Stop(&hadc);
|
||||
if(adc_times==32)
|
||||
{
|
||||
adc=adc_l>>5;
|
||||
adc_times=0;
|
||||
adc_l=0;
|
||||
}
|
||||
if(adc>600)
|
||||
{
|
||||
GEI_BUTTON_CODE(&overload,1);
|
||||
}else
|
||||
{
|
||||
GEI_BUTTON_CODE(&overload,0);
|
||||
}
|
||||
GEI_BUTTON_CODE(&key1,KEY1);
|
||||
GEI_BUTTON_CODE(&key2,KEY2);
|
||||
GEI_BUTTON_CODE(&key3,KEY3);
|
||||
|
||||
Reference in New Issue
Block a user