优化中,生成HEX文件

This commit is contained in:
2021-10-24 11:04:21 +08:00
parent 230f928a0f
commit b8bf07f4cf
27 changed files with 3005 additions and 3072 deletions
+1
View File
@@ -22,6 +22,7 @@
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_coreid.509070238" name="Core" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_coreid" useByScannerDiscovery="false" value="0" valueType="string"/>
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_board.2118512488" name="Board" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_board" useByScannerDiscovery="false" value="genericBoard" valueType="string"/>
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.defaults.662707504" name="Defaults" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.defaults" useByScannerDiscovery="false" value="com.st.stm32cube.ide.common.services.build.inputs.revA.1.0.5 || Debug || true || Executable || com.st.stm32cube.ide.mcu.gnu.managedbuild.option.toolchain.value.workspace || STM32F030F4Px || 0 || 0 || arm-none-eabi- || ${gnu_tools_for_stm32_compiler_path} || ../Drivers/STM32F0xx_HAL_Driver/Inc | ../Drivers/CMSIS/Include | ../Core/Inc | ../Drivers/STM32F0xx_HAL_Driver/Inc/Legacy | ../Drivers/CMSIS/Device/ST/STM32F0xx/Include || || || USE_HAL_DRIVER | STM32F030x6 || || Drivers | Core/Startup | Core || || || ${workspace_loc:/${ProjName}/STM32F030F4PX_FLASH.ld} || true || NonSecure || || secure_nsclib.o || || None || " valueType="string"/>
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.converthex.1319346613" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.converthex" value="true" valueType="boolean"/>
<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.ELF" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.targetplatform.1501135504" isAbstract="false" osList="all" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.targetplatform"/>
<builder buildPath="${workspace_loc:/Motor_Controller2}/Debug" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.builder.1249847428" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="Gnu Make Builder" parallelBuildOn="true" parallelizationNumber="optimal" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.builder"/>
<tool id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.assembler.130361303" name="MCU GCC Assembler" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.assembler">
Binary file not shown.
+2293 -2621
View File
File diff suppressed because it is too large Load Diff
+396 -216
View File
@@ -25,7 +25,7 @@ read_data_buffer 0x3 ./my_software/r480r.o
r480 0x6 ./my_software/my_code.o
uwTick 0x4 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o
pFlash 0x20 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.o
dis_buff 0xa ./Core/Src/main.o
dis_buff 0x11 ./Core/Src/main.o
key1 0x10 ./my_software/my_code.o
overload 0x10 ./my_software/my_code.o
key3 0x10 ./my_software/my_code.o
@@ -2947,22 +2947,14 @@ Discarded input sections
.group 0x0000000000000000 0xc ./my_software/flash.o
.group 0x0000000000000000 0xc ./my_software/flash.o
.group 0x0000000000000000 0xc ./my_software/flash.o
.group 0x0000000000000000 0xc ./my_software/flash.o
.text 0x0000000000000000 0x0 ./my_software/flash.o
.data 0x0000000000000000 0x0 ./my_software/flash.o
.bss 0x0000000000000000 0x0 ./my_software/flash.o
.text.STMFLASH_ReadWord
0x0000000000000000 0x14 ./my_software/flash.o
.text.STMFLASH_Write
0x0000000000000000 0xf0 ./my_software/flash.o
.text.STMFLASH_Read
0x0000000000000000 0x44 ./my_software/flash.o
.debug_info 0x0000000000000000 0x2ed ./my_software/flash.o
.debug_abbrev 0x0000000000000000 0x132 ./my_software/flash.o
.debug_info 0x0000000000000000 0x151 ./my_software/flash.o
.debug_abbrev 0x0000000000000000 0x9a ./my_software/flash.o
.debug_aranges
0x0000000000000000 0x30 ./my_software/flash.o
.debug_ranges 0x0000000000000000 0x20 ./my_software/flash.o
.debug_macro 0x0000000000000000 0x1df ./my_software/flash.o
0x0000000000000000 0x18 ./my_software/flash.o
.debug_macro 0x0000000000000000 0x1da ./my_software/flash.o
.debug_macro 0x0000000000000000 0xa7e ./my_software/flash.o
.debug_macro 0x0000000000000000 0x133 ./my_software/flash.o
.debug_macro 0x0000000000000000 0x2e ./my_software/flash.o
@@ -3004,13 +2996,96 @@ Discarded input sections
.debug_macro 0x0000000000000000 0x28 ./my_software/flash.o
.debug_macro 0x0000000000000000 0xf1 ./my_software/flash.o
.debug_macro 0x0000000000000000 0x8e ./my_software/flash.o
.debug_macro 0x0000000000000000 0x10 ./my_software/flash.o
.debug_line 0x0000000000000000 0x7e5 ./my_software/flash.o
.debug_str 0x0000000000000000 0x5c146 ./my_software/flash.o
.debug_line 0x0000000000000000 0x6fa ./my_software/flash.o
.debug_str 0x0000000000000000 0x5bffd ./my_software/flash.o
.comment 0x0000000000000000 0x54 ./my_software/flash.o
.debug_frame 0x0000000000000000 0x74 ./my_software/flash.o
.ARM.attributes
0x0000000000000000 0x2c ./my_software/flash.o
0x0000000000000000 0x31 ./my_software/flash.o
.group 0x0000000000000000 0xc ./my_software/gpio.o
.group 0x0000000000000000 0xc ./my_software/gpio.o
.group 0x0000000000000000 0xc ./my_software/gpio.o
.group 0x0000000000000000 0xc ./my_software/gpio.o
.group 0x0000000000000000 0xc ./my_software/gpio.o
.group 0x0000000000000000 0xc ./my_software/gpio.o
.group 0x0000000000000000 0xc ./my_software/gpio.o
.group 0x0000000000000000 0xc ./my_software/gpio.o
.group 0x0000000000000000 0xc ./my_software/gpio.o
.group 0x0000000000000000 0xc ./my_software/gpio.o
.group 0x0000000000000000 0xc ./my_software/gpio.o
.group 0x0000000000000000 0xc ./my_software/gpio.o
.group 0x0000000000000000 0xc ./my_software/gpio.o
.group 0x0000000000000000 0xc ./my_software/gpio.o
.group 0x0000000000000000 0xc ./my_software/gpio.o
.group 0x0000000000000000 0xc ./my_software/gpio.o
.group 0x0000000000000000 0xc ./my_software/gpio.o
.group 0x0000000000000000 0xc ./my_software/gpio.o
.group 0x0000000000000000 0xc ./my_software/gpio.o
.group 0x0000000000000000 0xc ./my_software/gpio.o
.group 0x0000000000000000 0xc ./my_software/gpio.o
.group 0x0000000000000000 0xc ./my_software/gpio.o
.group 0x0000000000000000 0xc ./my_software/gpio.o
.group 0x0000000000000000 0xc ./my_software/gpio.o
.group 0x0000000000000000 0xc ./my_software/gpio.o
.group 0x0000000000000000 0xc ./my_software/gpio.o
.group 0x0000000000000000 0xc ./my_software/gpio.o
.group 0x0000000000000000 0xc ./my_software/gpio.o
.group 0x0000000000000000 0xc ./my_software/gpio.o
.group 0x0000000000000000 0xc ./my_software/gpio.o
.group 0x0000000000000000 0xc ./my_software/gpio.o
.group 0x0000000000000000 0xc ./my_software/gpio.o
.group 0x0000000000000000 0xc ./my_software/gpio.o
.group 0x0000000000000000 0xc ./my_software/gpio.o
.group 0x0000000000000000 0xc ./my_software/gpio.o
.group 0x0000000000000000 0xc ./my_software/gpio.o
.group 0x0000000000000000 0xc ./my_software/gpio.o
.group 0x0000000000000000 0xc ./my_software/gpio.o
.group 0x0000000000000000 0xc ./my_software/gpio.o
.group 0x0000000000000000 0xc ./my_software/gpio.o
.group 0x0000000000000000 0xc ./my_software/gpio.o
.text 0x0000000000000000 0x0 ./my_software/gpio.o
.data 0x0000000000000000 0x0 ./my_software/gpio.o
.bss 0x0000000000000000 0x0 ./my_software/gpio.o
.debug_macro 0x0000000000000000 0xa7e ./my_software/gpio.o
.debug_macro 0x0000000000000000 0x133 ./my_software/gpio.o
.debug_macro 0x0000000000000000 0x2e ./my_software/gpio.o
.debug_macro 0x0000000000000000 0x22 ./my_software/gpio.o
.debug_macro 0x0000000000000000 0x22 ./my_software/gpio.o
.debug_macro 0x0000000000000000 0x8e ./my_software/gpio.o
.debug_macro 0x0000000000000000 0x51 ./my_software/gpio.o
.debug_macro 0x0000000000000000 0x103 ./my_software/gpio.o
.debug_macro 0x0000000000000000 0x6a ./my_software/gpio.o
.debug_macro 0x0000000000000000 0x1df ./my_software/gpio.o
.debug_macro 0x0000000000000000 0x1c ./my_software/gpio.o
.debug_macro 0x0000000000000000 0x22 ./my_software/gpio.o
.debug_macro 0x0000000000000000 0xb5 ./my_software/gpio.o
.debug_macro 0x0000000000000000 0x391 ./my_software/gpio.o
.debug_macro 0x0000000000000000 0x6e67 ./my_software/gpio.o
.debug_macro 0x0000000000000000 0x66 ./my_software/gpio.o
.debug_macro 0x0000000000000000 0x34a6 ./my_software/gpio.o
.debug_macro 0x0000000000000000 0x174 ./my_software/gpio.o
.debug_macro 0x0000000000000000 0x55 ./my_software/gpio.o
.debug_macro 0x0000000000000000 0x924 ./my_software/gpio.o
.debug_macro 0x0000000000000000 0xe5 ./my_software/gpio.o
.debug_macro 0x0000000000000000 0x1af ./my_software/gpio.o
.debug_macro 0x0000000000000000 0xb3 ./my_software/gpio.o
.debug_macro 0x0000000000000000 0x1a0 ./my_software/gpio.o
.debug_macro 0x0000000000000000 0x1ed ./my_software/gpio.o
.debug_macro 0x0000000000000000 0x34 ./my_software/gpio.o
.debug_macro 0x0000000000000000 0x43 ./my_software/gpio.o
.debug_macro 0x0000000000000000 0x28 ./my_software/gpio.o
.debug_macro 0x0000000000000000 0x33d ./my_software/gpio.o
.debug_macro 0x0000000000000000 0xbc ./my_software/gpio.o
.debug_macro 0x0000000000000000 0xb0 ./my_software/gpio.o
.debug_macro 0x0000000000000000 0x15a ./my_software/gpio.o
.debug_macro 0x0000000000000000 0x22c ./my_software/gpio.o
.debug_macro 0x0000000000000000 0x61 ./my_software/gpio.o
.debug_macro 0x0000000000000000 0xa5 ./my_software/gpio.o
.debug_macro 0x0000000000000000 0x4c ./my_software/gpio.o
.debug_macro 0x0000000000000000 0x2b ./my_software/gpio.o
.debug_macro 0x0000000000000000 0x8d8 ./my_software/gpio.o
.debug_macro 0x0000000000000000 0x28 ./my_software/gpio.o
.debug_macro 0x0000000000000000 0xf1 ./my_software/gpio.o
.debug_macro 0x0000000000000000 0x8e ./my_software/gpio.o
.group 0x0000000000000000 0xc ./my_software/ht1621.o
.group 0x0000000000000000 0xc ./my_software/ht1621.o
.group 0x0000000000000000 0xc ./my_software/ht1621.o
@@ -3057,8 +3132,6 @@ 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.Write1DataHT1621
0x0000000000000000 0x148 ./my_software/ht1621.o
.debug_macro 0x0000000000000000 0xa7e ./my_software/ht1621.o
.debug_macro 0x0000000000000000 0x133 ./my_software/ht1621.o
.debug_macro 0x0000000000000000 0x2e ./my_software/ht1621.o
@@ -3101,7 +3174,101 @@ Discarded input sections
.debug_macro 0x0000000000000000 0xf1 ./my_software/ht1621.o
.debug_macro 0x0000000000000000 0x8e ./my_software/ht1621.o
.debug_macro 0x0000000000000000 0x28 ./my_software/ht1621.o
.group 0x0000000000000000 0xc ./my_software/my_code.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
.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
.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
.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
.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
.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
.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
.text 0x0000000000000000 0x0 ./my_software/iic.o
.data 0x0000000000000000 0x0 ./my_software/iic.o
.bss 0x0000000000000000 0x0 ./my_software/iic.o
.debug_info 0x0000000000000000 0x151 ./my_software/iic.o
.debug_abbrev 0x0000000000000000 0x9a ./my_software/iic.o
.debug_aranges
0x0000000000000000 0x18 ./my_software/iic.o
.debug_macro 0x0000000000000000 0x1da ./my_software/iic.o
.debug_macro 0x0000000000000000 0xa7e ./my_software/iic.o
.debug_macro 0x0000000000000000 0x133 ./my_software/iic.o
.debug_macro 0x0000000000000000 0x2e ./my_software/iic.o
.debug_macro 0x0000000000000000 0x22 ./my_software/iic.o
.debug_macro 0x0000000000000000 0x22 ./my_software/iic.o
.debug_macro 0x0000000000000000 0x8e ./my_software/iic.o
.debug_macro 0x0000000000000000 0x51 ./my_software/iic.o
.debug_macro 0x0000000000000000 0x103 ./my_software/iic.o
.debug_macro 0x0000000000000000 0x6a ./my_software/iic.o
.debug_macro 0x0000000000000000 0x1df ./my_software/iic.o
.debug_macro 0x0000000000000000 0x1c ./my_software/iic.o
.debug_macro 0x0000000000000000 0x22 ./my_software/iic.o
.debug_macro 0x0000000000000000 0xb5 ./my_software/iic.o
.debug_macro 0x0000000000000000 0x391 ./my_software/iic.o
.debug_macro 0x0000000000000000 0x6e67 ./my_software/iic.o
.debug_macro 0x0000000000000000 0x66 ./my_software/iic.o
.debug_macro 0x0000000000000000 0x34a6 ./my_software/iic.o
.debug_macro 0x0000000000000000 0x174 ./my_software/iic.o
.debug_macro 0x0000000000000000 0x55 ./my_software/iic.o
.debug_macro 0x0000000000000000 0x924 ./my_software/iic.o
.debug_macro 0x0000000000000000 0xe5 ./my_software/iic.o
.debug_macro 0x0000000000000000 0x1af ./my_software/iic.o
.debug_macro 0x0000000000000000 0xb3 ./my_software/iic.o
.debug_macro 0x0000000000000000 0x1a0 ./my_software/iic.o
.debug_macro 0x0000000000000000 0x1ed ./my_software/iic.o
.debug_macro 0x0000000000000000 0x34 ./my_software/iic.o
.debug_macro 0x0000000000000000 0x43 ./my_software/iic.o
.debug_macro 0x0000000000000000 0x28 ./my_software/iic.o
.debug_macro 0x0000000000000000 0x33d ./my_software/iic.o
.debug_macro 0x0000000000000000 0xbc ./my_software/iic.o
.debug_macro 0x0000000000000000 0xb0 ./my_software/iic.o
.debug_macro 0x0000000000000000 0x15a ./my_software/iic.o
.debug_macro 0x0000000000000000 0x22c ./my_software/iic.o
.debug_macro 0x0000000000000000 0x61 ./my_software/iic.o
.debug_macro 0x0000000000000000 0xa5 ./my_software/iic.o
.debug_macro 0x0000000000000000 0x4c ./my_software/iic.o
.debug_macro 0x0000000000000000 0x2b ./my_software/iic.o
.debug_macro 0x0000000000000000 0x8d8 ./my_software/iic.o
.debug_macro 0x0000000000000000 0x28 ./my_software/iic.o
.debug_macro 0x0000000000000000 0xf1 ./my_software/iic.o
.debug_macro 0x0000000000000000 0x8e ./my_software/iic.o
.debug_line 0x0000000000000000 0x6f6 ./my_software/iic.o
.debug_str 0x0000000000000000 0x5bff9 ./my_software/iic.o
.comment 0x0000000000000000 0x54 ./my_software/iic.o
.ARM.attributes
0x0000000000000000 0x31 ./my_software/iic.o
.group 0x0000000000000000 0xc ./my_software/my_code.o
.group 0x0000000000000000 0xc ./my_software/my_code.o
.group 0x0000000000000000 0xc ./my_software/my_code.o
@@ -3148,7 +3315,7 @@ Discarded input sections
.text 0x0000000000000000 0x0 ./my_software/my_code.o
.data 0x0000000000000000 0x0 ./my_software/my_code.o
.bss 0x0000000000000000 0x0 ./my_software/my_code.o
.text.Read_Ds 0x0000000000000000 0x26 ./my_software/my_code.o
.text.Read_Ds 0x0000000000000000 0x2e ./my_software/my_code.o
.debug_macro 0x0000000000000000 0xa7e ./my_software/my_code.o
.debug_macro 0x0000000000000000 0x133 ./my_software/my_code.o
.debug_macro 0x0000000000000000 0x2e ./my_software/my_code.o
@@ -3360,7 +3527,9 @@ LOAD ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.o
LOAD ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.o
LOAD ./my_software/button.o
LOAD ./my_software/flash.o
LOAD ./my_software/gpio.o
LOAD ./my_software/ht1621.o
LOAD ./my_software/iic.o
LOAD ./my_software/my_code.o
LOAD ./my_software/r480r.o
START GROUP
@@ -3394,7 +3563,7 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id
0x0000000008000000 g_pfnVectors
0x00000000080000c0 . = ALIGN (0x4)
.text 0x00000000080000c0 0x3974
.text 0x00000000080000c0 0x372c
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
@@ -3593,137 +3762,136 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id
.text.GEI_BUTTON_CODE
0x0000000008002558 0xbc ./my_software/button.o
0x0000000008002558 GEI_BUTTON_CODE
.text.change_io_function
0x0000000008002614 0x68 ./my_software/gpio.o
0x0000000008002614 change_io_function
.text.WriteClockHT1621
0x0000000008002614 0x26 ./my_software/ht1621.o
0x0000000008002614 WriteClockHT1621
0x000000000800267c 0x26 ./my_software/ht1621.o
0x000000000800267c WriteClockHT1621
.text.WriteCommandHT1621
0x000000000800263a 0xee ./my_software/ht1621.o
0x000000000800263a WriteCommandHT1621
0x00000000080026a2 0xee ./my_software/ht1621.o
0x00000000080026a2 WriteCommandHT1621
.text.WritenDataHT1621
0x0000000008002728 0x182 ./my_software/ht1621.o
0x0000000008002728 WritenDataHT1621
0x0000000008002790 0x182 ./my_software/ht1621.o
0x0000000008002790 WritenDataHT1621
.text.HT1621_Init
0x00000000080028aa 0x5e ./my_software/ht1621.o
0x00000000080028aa HT1621_Init
.text.ds_in_or_out
0x0000000008002908 0x6c ./my_software/my_code.o
0x0000000008002908 ds_in_or_out
0x0000000008002912 0x5e ./my_software/ht1621.o
0x0000000008002912 HT1621_Init
.text.Sand_Byte_to_595_2
0x0000000008002974 0xd4 ./my_software/my_code.o
0x0000000008002974 Sand_Byte_to_595_2
0x0000000008002970 0xdc ./my_software/my_code.o
0x0000000008002970 Sand_Byte_to_595_2
.text.hc2_sever
0x0000000008002a48 0xa4 ./my_software/my_code.o
0x0000000008002a48 hc2_sever
0x0000000008002a4c 0x88 ./my_software/my_code.o
0x0000000008002a4c hc2_sever
.text.moto_server
0x0000000008002aec 0x1c4 ./my_software/my_code.o
0x0000000008002aec moto_server
0x0000000008002ad4 0x1a0 ./my_software/my_code.o
0x0000000008002ad4 moto_server
.text.HT1621_Display_GetButton
0x0000000008002cb0 0x150 ./my_software/my_code.o
0x0000000008002cb0 HT1621_Display_GetButton
.text.my_code 0x0000000008002e00 0xa20 ./my_software/my_code.o
0x0000000008002e00 my_code
0x0000000008002c74 0x124 ./my_software/my_code.o
0x0000000008002c74 HT1621_Display_GetButton
.text.my_code 0x0000000008002d98 0x840 ./my_software/my_code.o
0x0000000008002d98 my_code
.text.r480_init
0x0000000008003820 0x20 ./my_software/r480r.o
0x0000000008003820 r480_init
0x00000000080035d8 0x20 ./my_software/r480r.o
0x00000000080035d8 r480_init
.text.read_433_exit
0x0000000008003840 0x138 ./my_software/r480r.o
0x0000000008003840 read_433_exit
0x00000000080035f8 0x138 ./my_software/r480r.o
0x00000000080035f8 read_433_exit
.text.HAL_GPIO_EXTI_Callback
0x0000000008003978 0x20 ./my_software/r480r.o
0x0000000008003978 HAL_GPIO_EXTI_Callback
0x0000000008003730 0x20 ./my_software/r480r.o
0x0000000008003730 HAL_GPIO_EXTI_Callback
.text.HAL_TIM_PeriodElapsedCallback
0x0000000008003998 0x2c ./my_software/r480r.o
0x0000000008003998 HAL_TIM_PeriodElapsedCallback
0x0000000008003750 0x2c ./my_software/r480r.o
0x0000000008003750 HAL_TIM_PeriodElapsedCallback
.text.__libc_init_array
0x00000000080039c4 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)
0x00000000080039c4 __libc_init_array
.text.memset 0x0000000008003a0c 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)
0x0000000008003a0c memset
0x000000000800377c 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)
0x000000000800377c __libc_init_array
.text.memset 0x00000000080037c4 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)
0x00000000080037c4 memset
*(.glue_7)
.glue_7 0x0000000008003a1c 0x0 linker stubs
.glue_7 0x00000000080037d4 0x0 linker stubs
*(.glue_7t)
.glue_7t 0x0000000008003a1c 0x0 linker stubs
.glue_7t 0x00000000080037d4 0x0 linker stubs
*(.eh_frame)
.eh_frame 0x0000000008003a1c 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 0x00000000080037d4 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 0x0000000008003a1c 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
0x0000000008003a1c _init
.init 0x0000000008003a20 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 0x00000000080037d4 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
0x00000000080037d4 _init
.init 0x00000000080037d8 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 0x0000000008003a28 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
0x0000000008003a28 _fini
.fini 0x0000000008003a2c 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
0x0000000008003a34 . = ALIGN (0x4)
0x0000000008003a34 _etext = .
.fini 0x00000000080037e0 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
0x00000000080037e0 _fini
.fini 0x00000000080037e4 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
0x00000000080037ec . = ALIGN (0x4)
0x00000000080037ec _etext = .
.vfp11_veneer 0x0000000008003a34 0x0
.vfp11_veneer 0x0000000008003a34 0x0 linker stubs
.vfp11_veneer 0x00000000080037ec 0x0
.vfp11_veneer 0x00000000080037ec 0x0 linker stubs
.v4_bx 0x0000000008003a34 0x0
.v4_bx 0x0000000008003a34 0x0 linker stubs
.v4_bx 0x00000000080037ec 0x0
.v4_bx 0x00000000080037ec 0x0 linker stubs
.iplt 0x0000000008003a34 0x0
.iplt 0x0000000008003a34 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 0x00000000080037ec 0x0
.iplt 0x00000000080037ec 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 0x0000000008003a34 0x68
0x0000000008003a34 . = ALIGN (0x4)
.rodata 0x00000000080037ec 0x5c
0x00000000080037ec . = ALIGN (0x4)
*(.rodata)
.rodata 0x0000000008003a34 0x20 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o
.rodata 0x0000000008003a54 0x8 ./my_software/my_code.o
.rodata 0x00000000080037ec 0x20 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o
*(.rodata*)
.rodata.AHBPrescTable
0x0000000008003a5c 0x10 ./Core/Src/system_stm32f0xx.o
0x0000000008003a5c AHBPrescTable
0x000000000800380c 0x10 ./Core/Src/system_stm32f0xx.o
0x000000000800380c AHBPrescTable
.rodata.LED_Tab
0x0000000008003a6c 0x12 ./my_software/my_code.o
0x0000000008003a6c LED_Tab
*fill* 0x0000000008003a7e 0x2
0x000000000800381c 0x12 ./my_software/my_code.o
0x000000000800381c LED_Tab
*fill* 0x000000000800382e 0x2
.rodata.my_code
0x0000000008003a80 0x1c ./my_software/my_code.o
0x0000000008003a9c . = ALIGN (0x4)
0x0000000008003830 0x18 ./my_software/my_code.o
0x0000000008003848 . = ALIGN (0x4)
.rel.dyn 0x0000000008003a9c 0x0
.rel.iplt 0x0000000008003a9c 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 0x0000000008003848 0x0
.rel.iplt 0x0000000008003848 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 0x0000000008003a9c 0x0
0x0000000008003a9c . = ALIGN (0x4)
.ARM.extab 0x0000000008003848 0x0
0x0000000008003848 . = ALIGN (0x4)
*(.ARM.extab* .gnu.linkonce.armextab.*)
0x0000000008003a9c . = ALIGN (0x4)
0x0000000008003848 . = ALIGN (0x4)
.ARM 0x0000000008003a9c 0x0
0x0000000008003a9c . = ALIGN (0x4)
0x0000000008003a9c __exidx_start = .
.ARM 0x0000000008003848 0x0
0x0000000008003848 . = ALIGN (0x4)
0x0000000008003848 __exidx_start = .
*(.ARM.exidx*)
0x0000000008003a9c __exidx_end = .
0x0000000008003a9c . = ALIGN (0x4)
0x0000000008003848 __exidx_end = .
0x0000000008003848 . = ALIGN (0x4)
.preinit_array 0x0000000008003a9c 0x0
0x0000000008003a9c . = ALIGN (0x4)
0x0000000008003a9c PROVIDE (__preinit_array_start = .)
.preinit_array 0x0000000008003848 0x0
0x0000000008003848 . = ALIGN (0x4)
0x0000000008003848 PROVIDE (__preinit_array_start = .)
*(.preinit_array*)
0x0000000008003a9c PROVIDE (__preinit_array_end = .)
0x0000000008003a9c . = ALIGN (0x4)
0x0000000008003848 PROVIDE (__preinit_array_end = .)
0x0000000008003848 . = ALIGN (0x4)
.init_array 0x0000000008003a9c 0x4
0x0000000008003a9c . = ALIGN (0x4)
0x0000000008003a9c PROVIDE (__init_array_start = .)
.init_array 0x0000000008003848 0x4
0x0000000008003848 . = ALIGN (0x4)
0x0000000008003848 PROVIDE (__init_array_start = .)
*(SORT_BY_NAME(.init_array.*))
*(.init_array*)
.init_array 0x0000000008003a9c 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
0x0000000008003aa0 PROVIDE (__init_array_end = .)
0x0000000008003aa0 . = ALIGN (0x4)
.init_array 0x0000000008003848 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
0x000000000800384c PROVIDE (__init_array_end = .)
0x000000000800384c . = ALIGN (0x4)
.fini_array 0x0000000008003aa0 0x4
0x0000000008003aa0 . = ALIGN (0x4)
.fini_array 0x000000000800384c 0x4
0x000000000800384c . = ALIGN (0x4)
[!provide] PROVIDE (__fini_array_start = .)
*(SORT_BY_NAME(.fini_array.*))
*(.fini_array*)
.fini_array 0x0000000008003aa0 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 0x000000000800384c 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 = .)
0x0000000008003aa4 . = ALIGN (0x4)
0x0000000008003aa4 _sidata = LOADADDR (.data)
0x0000000008003850 . = ALIGN (0x4)
0x0000000008003850 _sidata = LOADADDR (.data)
.data 0x0000000020000000 0xc load address 0x0000000008003aa4
.data 0x0000000020000000 0xc load address 0x0000000008003850
0x0000000020000000 . = ALIGN (0x4)
0x0000000020000000 _sdata = .
*(.data)
@@ -3743,11 +3911,11 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id
*fill* 0x0000000020000009 0x3
0x000000002000000c _edata = .
.igot.plt 0x000000002000000c 0x0 load address 0x0000000008003ab0
.igot.plt 0x000000002000000c 0x0 load address 0x000000000800385c
.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 0x144 load address 0x0000000008003ab0
.bss 0x000000002000000c 0x14c load address 0x000000000800385c
0x000000002000000c _sbss = .
0x000000002000000c __bss_start__ = _sbss
*(.bss)
@@ -3768,38 +3936,38 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id
0x0000000020000034 read_begin
*(COMMON)
*fill* 0x0000000020000035 0x3
COMMON 0x0000000020000038 0x94 ./Core/Src/main.o
COMMON 0x0000000020000038 0x9c ./Core/Src/main.o
0x0000000020000038 dis_buff
0x0000000020000044 htim14
0x000000002000008c hadc
COMMON 0x00000000200000cc 0x4 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o
0x00000000200000cc uwTick
COMMON 0x00000000200000d0 0x7c ./my_software/my_code.o
0x00000000200000d0 key4
0x00000000200000e0 r480
0x00000000200000e8 key1
0x00000000200000f8 overload
0x0000000020000108 key3
0x0000000020000118 ADCC
0x000000002000012c key2
0x000000002000013c moto
COMMON 0x000000002000014c 0x3 ./my_software/r480r.o
0x000000002000014c read_data_buffer
0x0000000020000150 . = ALIGN (0x4)
*fill* 0x000000002000014f 0x1
0x0000000020000150 _ebss = .
0x0000000020000150 __bss_end__ = _ebss
0x000000002000004c htim14
0x0000000020000094 hadc
COMMON 0x00000000200000d4 0x4 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o
0x00000000200000d4 uwTick
COMMON 0x00000000200000d8 0x7c ./my_software/my_code.o
0x00000000200000d8 key4
0x00000000200000e8 r480
0x00000000200000f0 key1
0x0000000020000100 overload
0x0000000020000110 key3
0x0000000020000120 ADCC
0x0000000020000134 key2
0x0000000020000144 moto
COMMON 0x0000000020000154 0x3 ./my_software/r480r.o
0x0000000020000154 read_data_buffer
0x0000000020000158 . = ALIGN (0x4)
*fill* 0x0000000020000157 0x1
0x0000000020000158 _ebss = .
0x0000000020000158 __bss_end__ = _ebss
._user_heap_stack
0x0000000020000150 0x600 load address 0x0000000008003ab0
0x0000000020000150 . = ALIGN (0x8)
0x0000000020000158 0x600 load address 0x000000000800385c
0x0000000020000158 . = ALIGN (0x8)
[!provide] PROVIDE (end = .)
0x0000000020000150 PROVIDE (_end = .)
0x0000000020000350 . = (. + _Min_Heap_Size)
*fill* 0x0000000020000150 0x200
0x0000000020000750 . = (. + _Min_Stack_Size)
*fill* 0x0000000020000350 0x400
0x0000000020000750 . = ALIGN (0x8)
0x0000000020000158 PROVIDE (_end = .)
0x0000000020000358 . = (. + _Min_Heap_Size)
*fill* 0x0000000020000158 0x200
0x0000000020000758 . = (. + _Min_Stack_Size)
*fill* 0x0000000020000358 0x400
0x0000000020000758 . = ALIGN (0x8)
/DISCARD/
libc.a(*)
@@ -3840,66 +4008,70 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id
.ARM.attributes
0x000000000000024f 0x2c ./my_software/button.o
.ARM.attributes
0x000000000000027b 0x2c ./my_software/ht1621.o
0x000000000000027b 0x2c ./my_software/gpio.o
.ARM.attributes
0x00000000000002a7 0x2c ./my_software/my_code.o
0x00000000000002a7 0x2c ./my_software/ht1621.o
.ARM.attributes
0x00000000000002d3 0x2c ./my_software/r480r.o
0x00000000000002d3 0x2c ./my_software/my_code.o
.ARM.attributes
0x00000000000002ff 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)
0x00000000000002ff 0x2c ./my_software/r480r.o
.ARM.attributes
0x000000000000032b 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-memset.o)
0x000000000000032b 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)
.ARM.attributes
0x0000000000000357 0x1e /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)
0x0000000000000357 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-memset.o)
.ARM.attributes
0x0000000000000375 0x1e /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)
0x0000000000000383 0x1e /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)
.ARM.attributes
0x0000000000000393 0x1e /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(_dvmd_tls.o)
0x00000000000003a1 0x1e /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)
.ARM.attributes
0x00000000000003b1 0x1e /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
0x00000000000003bf 0x1e /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(_dvmd_tls.o)
.ARM.attributes
0x00000000000003dd 0x1e /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
OUTPUT(Motor_Controller2.elf elf32-littlearm)
LOAD linker stubs
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/libc.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
.debug_info 0x0000000000000000 0xacfa
.debug_info 0x0000000000000000 0xf4a ./Core/Src/main.o
.debug_info 0x0000000000000f4a 0xcdc ./Core/Src/stm32f0xx_hal_msp.o
.debug_info 0x0000000000001c26 0x76a ./Core/Src/stm32f0xx_it.o
.debug_info 0x0000000000002390 0x2c3 ./Core/Src/system_stm32f0xx.o
.debug_info 0x0000000000002653 0x22 ./Core/Startup/startup_stm32f030f4px.o
.debug_info 0x0000000000002675 0x6be ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o
.debug_info 0x0000000000002d33 0xd62 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.o
.debug_info 0x0000000000003a95 0x7a0 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.o
.debug_info 0x0000000000004235 0x6d3 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o
.debug_info 0x0000000000004908 0x88d ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o
.debug_info 0x0000000000005195 0x2ba9 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.o
.debug_info 0x0000000000007d3e 0x1529 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.o
.debug_info 0x0000000000009267 0x1d4 ./my_software/button.o
.debug_info 0x000000000000943b 0x438 ./my_software/ht1621.o
.debug_info 0x0000000000009873 0xb98 ./my_software/my_code.o
.debug_info 0x000000000000a40b 0x8ef ./my_software/r480r.o
.debug_info 0x0000000000000000 0xaea4
.debug_info 0x0000000000000000 0xf2f ./Core/Src/main.o
.debug_info 0x0000000000000f2f 0xcdc ./Core/Src/stm32f0xx_hal_msp.o
.debug_info 0x0000000000001c0b 0x76a ./Core/Src/stm32f0xx_it.o
.debug_info 0x0000000000002375 0x2c3 ./Core/Src/system_stm32f0xx.o
.debug_info 0x0000000000002638 0x22 ./Core/Startup/startup_stm32f030f4px.o
.debug_info 0x000000000000265a 0x6be ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o
.debug_info 0x0000000000002d18 0xd62 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.o
.debug_info 0x0000000000003a7a 0x7a0 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.o
.debug_info 0x000000000000421a 0x6d3 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o
.debug_info 0x00000000000048ed 0x88d ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o
.debug_info 0x000000000000517a 0x2ba9 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.o
.debug_info 0x0000000000007d23 0x1529 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.o
.debug_info 0x000000000000924c 0x1d4 ./my_software/button.o
.debug_info 0x0000000000009420 0x2d3 ./my_software/gpio.o
.debug_info 0x00000000000096f3 0x3cc ./my_software/ht1621.o
.debug_info 0x0000000000009abf 0xaf6 ./my_software/my_code.o
.debug_info 0x000000000000a5b5 0x8ef ./my_software/r480r.o
.debug_abbrev 0x0000000000000000 0x1d62
.debug_abbrev 0x0000000000000000 0x253 ./Core/Src/main.o
.debug_abbrev 0x0000000000000253 0x1c8 ./Core/Src/stm32f0xx_hal_msp.o
.debug_abbrev 0x000000000000041b 0x187 ./Core/Src/stm32f0xx_it.o
.debug_abbrev 0x00000000000005a2 0x145 ./Core/Src/system_stm32f0xx.o
.debug_abbrev 0x00000000000006e7 0x12 ./Core/Startup/startup_stm32f030f4px.o
.debug_abbrev 0x00000000000006f9 0x21e ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o
.debug_abbrev 0x0000000000000917 0x1f1 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.o
.debug_abbrev 0x0000000000000b08 0x2a9 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.o
.debug_abbrev 0x0000000000000db1 0x1e8 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o
.debug_abbrev 0x0000000000000f99 0x23b ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o
.debug_abbrev 0x00000000000011d4 0x26f ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.o
.debug_abbrev 0x0000000000001443 0x277 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.o
.debug_abbrev 0x00000000000016ba 0xf6 ./my_software/button.o
.debug_abbrev 0x00000000000017b0 0x18d ./my_software/ht1621.o
.debug_abbrev 0x000000000000193d 0x224 ./my_software/my_code.o
.debug_abbrev 0x0000000000001b61 0x201 ./my_software/r480r.o
.debug_abbrev 0x0000000000000000 0x1e10
.debug_abbrev 0x0000000000000000 0x23c ./Core/Src/main.o
.debug_abbrev 0x000000000000023c 0x1c8 ./Core/Src/stm32f0xx_hal_msp.o
.debug_abbrev 0x0000000000000404 0x187 ./Core/Src/stm32f0xx_it.o
.debug_abbrev 0x000000000000058b 0x145 ./Core/Src/system_stm32f0xx.o
.debug_abbrev 0x00000000000006d0 0x12 ./Core/Startup/startup_stm32f030f4px.o
.debug_abbrev 0x00000000000006e2 0x21e ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o
.debug_abbrev 0x0000000000000900 0x1f1 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.o
.debug_abbrev 0x0000000000000af1 0x2a9 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.o
.debug_abbrev 0x0000000000000d9a 0x1e8 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o
.debug_abbrev 0x0000000000000f82 0x23b ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o
.debug_abbrev 0x00000000000011bd 0x26f ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.o
.debug_abbrev 0x000000000000142c 0x277 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.o
.debug_abbrev 0x00000000000016a3 0xf6 ./my_software/button.o
.debug_abbrev 0x0000000000001799 0x127 ./my_software/gpio.o
.debug_abbrev 0x00000000000018c0 0x176 ./my_software/ht1621.o
.debug_abbrev 0x0000000000001a36 0x1d9 ./my_software/my_code.o
.debug_abbrev 0x0000000000001c0f 0x201 ./my_software/r480r.o
.debug_aranges 0x0000000000000000 0xaa8
.debug_aranges 0x0000000000000000 0xab8
.debug_aranges
0x0000000000000000 0x48 ./Core/Src/main.o
.debug_aranges
@@ -3927,11 +4099,13 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id
.debug_aranges
0x00000000000009c0 0x20 ./my_software/button.o
.debug_aranges
0x00000000000009e0 0x40 ./my_software/ht1621.o
0x00000000000009e0 0x20 ./my_software/gpio.o
.debug_aranges
0x0000000000000a20 0x50 ./my_software/my_code.o
0x0000000000000a00 0x38 ./my_software/ht1621.o
.debug_aranges
0x0000000000000a70 0x38 ./my_software/r480r.o
0x0000000000000a38 0x48 ./my_software/my_code.o
.debug_aranges
0x0000000000000a80 0x38 ./my_software/r480r.o
.debug_ranges 0x0000000000000000 0x9b0
.debug_ranges 0x0000000000000000 0x38 ./Core/Src/main.o
@@ -3947,11 +4121,12 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id
.debug_ranges 0x00000000000003f0 0x3c0 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.o
.debug_ranges 0x00000000000007b0 0x158 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.o
.debug_ranges 0x0000000000000908 0x10 ./my_software/button.o
.debug_ranges 0x0000000000000918 0x30 ./my_software/ht1621.o
.debug_ranges 0x0000000000000948 0x40 ./my_software/my_code.o
.debug_ranges 0x0000000000000918 0x10 ./my_software/gpio.o
.debug_ranges 0x0000000000000928 0x28 ./my_software/ht1621.o
.debug_ranges 0x0000000000000950 0x38 ./my_software/my_code.o
.debug_ranges 0x0000000000000988 0x28 ./my_software/r480r.o
.debug_macro 0x0000000000000000 0xfbd0
.debug_macro 0x0000000000000000 0xfd9f
.debug_macro 0x0000000000000000 0x1d9 ./Core/Src/main.o
.debug_macro 0x00000000000001d9 0xa7e ./Core/Src/main.o
.debug_macro 0x0000000000000c57 0x133 ./Core/Src/main.o
@@ -4006,15 +4181,15 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id
.debug_macro 0x000000000000ef62 0x1c2 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.o
.debug_macro 0x000000000000f124 0x1c1 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.o
.debug_macro 0x000000000000f2e5 0x1e0 ./my_software/button.o
.debug_macro 0x000000000000f4c5 0x1ee ./my_software/ht1621.o
.debug_macro 0x000000000000f6b3 0x5e ./my_software/ht1621.o
.debug_macro 0x000000000000f711 0x243 ./my_software/my_code.o
.debug_macro 0x000000000000f954 0x22 ./my_software/my_code.o
.debug_macro 0x000000000000f976 0x64 ./my_software/my_code.o
.debug_macro 0x000000000000f9da 0x16 ./my_software/my_code.o
.debug_macro 0x000000000000f9f0 0x1e0 ./my_software/r480r.o
.debug_macro 0x000000000000f4c5 0x1da ./my_software/gpio.o
.debug_macro 0x000000000000f69f 0x1ee ./my_software/ht1621.o
.debug_macro 0x000000000000f88d 0x5e ./my_software/ht1621.o
.debug_macro 0x000000000000f8eb 0x24e ./my_software/my_code.o
.debug_macro 0x000000000000fb39 0x22 ./my_software/my_code.o
.debug_macro 0x000000000000fb5b 0x64 ./my_software/my_code.o
.debug_macro 0x000000000000fbbf 0x1e0 ./my_software/r480r.o
.debug_line 0x0000000000000000 0xd257
.debug_line 0x0000000000000000 0xd877
.debug_line 0x0000000000000000 0x8c1 ./Core/Src/main.o
.debug_line 0x00000000000008c1 0x793 ./Core/Src/stm32f0xx_hal_msp.o
.debug_line 0x0000000000001054 0x7a5 ./Core/Src/stm32f0xx_it.o
@@ -4028,11 +4203,12 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id
.debug_line 0x0000000000005de9 0x35a1 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.o
.debug_line 0x000000000000938a 0x18b2 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.o
.debug_line 0x000000000000ac3c 0x76b ./my_software/button.o
.debug_line 0x000000000000b3a7 0x8bb ./my_software/ht1621.o
.debug_line 0x000000000000bc62 0xe04 ./my_software/my_code.o
.debug_line 0x000000000000ca66 0x7f1 ./my_software/r480r.o
.debug_line 0x000000000000b3a7 0x725 ./my_software/gpio.o
.debug_line 0x000000000000bacc 0x835 ./my_software/ht1621.o
.debug_line 0x000000000000c301 0xd85 ./my_software/my_code.o
.debug_line 0x000000000000d086 0x7f1 ./my_software/r480r.o
.debug_str 0x0000000000000000 0x5ede8
.debug_str 0x0000000000000000 0x5edcc
.debug_str 0x0000000000000000 0x5c865 ./Core/Src/main.o
0x5cc12 (size before relaxing)
.debug_str 0x000000000005c865 0x84 ./Core/Src/stm32f0xx_hal_msp.o
@@ -4059,11 +4235,13 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id
0x5c9ca (size before relaxing)
.debug_str 0x000000000005e981 0x40 ./my_software/button.o
0x5c031 (size before relaxing)
.debug_str 0x000000000005e9c1 0x183 ./my_software/ht1621.o
0x5c374 (size before relaxing)
.debug_str 0x000000000005eb44 0x1ed ./my_software/my_code.o
0x5c8b3 (size before relaxing)
.debug_str 0x000000000005ed31 0xb7 ./my_software/r480r.o
.debug_str 0x000000000005e9c1 0x32 ./my_software/gpio.o
0x5c09e (size before relaxing)
.debug_str 0x000000000005e9f3 0x172 ./my_software/ht1621.o
0x5c363 (size before relaxing)
.debug_str 0x000000000005eb65 0x1b0 ./my_software/my_code.o
0x5c849 (size before relaxing)
.debug_str 0x000000000005ed15 0xb7 ./my_software/r480r.o
0x5c5ec (size before relaxing)
.comment 0x0000000000000000 0x53
@@ -4080,11 +4258,12 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id
.comment 0x0000000000000053 0x54 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.o
.comment 0x0000000000000053 0x54 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.o
.comment 0x0000000000000053 0x54 ./my_software/button.o
.comment 0x0000000000000053 0x54 ./my_software/gpio.o
.comment 0x0000000000000053 0x54 ./my_software/ht1621.o
.comment 0x0000000000000053 0x54 ./my_software/my_code.o
.comment 0x0000000000000053 0x54 ./my_software/r480r.o
.debug_frame 0x0000000000000000 0x2558
.debug_frame 0x0000000000000000 0x2548
.debug_frame 0x0000000000000000 0xc4 ./Core/Src/main.o
.debug_frame 0x00000000000000c4 0xb0 ./Core/Src/stm32f0xx_hal_msp.o
.debug_frame 0x0000000000000174 0xd4 ./Core/Src/stm32f0xx_it.o
@@ -4097,10 +4276,11 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id
.debug_frame 0x0000000000000e20 0xf00 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.o
.debug_frame 0x0000000000001d20 0x560 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.o
.debug_frame 0x0000000000002280 0x30 ./my_software/button.o
.debug_frame 0x00000000000022b0 0xa8 ./my_software/ht1621.o
.debug_frame 0x0000000000002358 0xe8 ./my_software/my_code.o
.debug_frame 0x0000000000002440 0x8c ./my_software/r480r.o
.debug_frame 0x00000000000024cc 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 0x00000000000024f8 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 0x0000000000002518 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 0x0000000000002538 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 0x00000000000022b0 0x30 ./my_software/gpio.o
.debug_frame 0x00000000000022e0 0x88 ./my_software/ht1621.o
.debug_frame 0x0000000000002368 0xc8 ./my_software/my_code.o
.debug_frame 0x0000000000002430 0x8c ./my_software/r480r.o
.debug_frame 0x00000000000024bc 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 0x00000000000024e8 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 0x0000000000002508 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 0x0000000000002528 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)
+10 -2
View File
@@ -51,6 +51,9 @@ default.size.stdout \
OBJDUMP_LIST += \
Motor_Controller2.list \
OBJCOPY_HEX += \
Motor_Controller2.hex \
OBJCOPY_BIN += \
Motor_Controller2.bin \
@@ -77,6 +80,11 @@ Motor_Controller2.list: $(EXECUTABLES) makefile objects.list $(OPTIONAL_TOOL_DEP
@echo 'Finished building: $@'
@echo ' '
Motor_Controller2.hex: $(EXECUTABLES) makefile objects.list $(OPTIONAL_TOOL_DEPS)
arm-none-eabi-objcopy -O ihex $(EXECUTABLES) "Motor_Controller2.hex"
@echo 'Finished building: $@'
@echo ' '
Motor_Controller2.bin: $(EXECUTABLES) makefile objects.list $(OPTIONAL_TOOL_DEPS)
arm-none-eabi-objcopy -O binary $(EXECUTABLES) "Motor_Controller2.bin"
@echo 'Finished building: $@'
@@ -84,10 +92,10 @@ Motor_Controller2.bin: $(EXECUTABLES) makefile objects.list $(OPTIONAL_TOOL_DEPS
# Other Targets
clean:
-$(RM) $(SIZE_OUTPUT)$(OBJDUMP_LIST)$(EXECUTABLES)$(OBJS)$(S_DEPS)$(S_UPPER_DEPS)$(C_DEPS)$(OBJCOPY_BIN) Motor_Controller2.elf
-$(RM) $(OBJCOPY_HEX)$(SIZE_OUTPUT)$(OBJDUMP_LIST)$(EXECUTABLES)$(OBJS)$(S_DEPS)$(S_UPPER_DEPS)$(C_DEPS)$(OBJCOPY_BIN) Motor_Controller2.elf
-@echo ' '
secondary-outputs: $(SIZE_OUTPUT) $(OBJDUMP_LIST) $(OBJCOPY_BIN)
secondary-outputs: $(SIZE_OUTPUT) $(OBJDUMP_LIST) $(OBJCOPY_HEX) $(OBJCOPY_BIN)
fail-specified-linker-script-missing:
@echo 'Error: Cannot find the specified linker script. Check the linker settings in the build configuration.'
-3
View File
@@ -1,3 +0,0 @@
flash.c:12:10:STMFLASH_ReadWord 16 static
flash.c:17:6:STMFLASH_Write 64 static
flash.c:62:6:STMFLASH_Read 40 static
+92
View File
@@ -0,0 +1,92 @@
my_software/gpio.o: ../my_software/gpio.c ../my_software/gpio.h \
../Core/Inc/main.h ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h \
../Core/Inc/stm32f0xx_hal_conf.h \
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h \
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h \
../Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h \
../Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f030x6.h \
../Drivers/CMSIS/Include/core_cm0.h \
../Drivers/CMSIS/Include/cmsis_version.h \
../Drivers/CMSIS/Include/cmsis_compiler.h \
../Drivers/CMSIS/Include/cmsis_gcc.h \
../Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h \
../Drivers/STM32F0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h \
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h \
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h \
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_exti.h \
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h \
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h \
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h \
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h \
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h \
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h \
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h \
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h \
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h \
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h \
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h \
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h \
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h
../my_software/gpio.h:
../Core/Inc/main.h:
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h:
../Core/Inc/stm32f0xx_hal_conf.h:
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h:
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h:
../Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h:
../Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f030x6.h:
../Drivers/CMSIS/Include/core_cm0.h:
../Drivers/CMSIS/Include/cmsis_version.h:
../Drivers/CMSIS/Include/cmsis_compiler.h:
../Drivers/CMSIS/Include/cmsis_gcc.h:
../Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h:
../Drivers/STM32F0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h:
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h:
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h:
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h:
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_exti.h:
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h:
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h:
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h:
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h:
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h:
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h:
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h:
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h:
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h:
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h:
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h:
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h:
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h:
+1
View File
@@ -0,0 +1 @@
gpio.c:9:6:change_io_function 40 static
+4 -5
View File
@@ -1,5 +1,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:150:6:HT1621_Init 8 static
ht1621.c:14:6:WriteClockHT1621 8 static
ht1621.c:20:6:WriteCommandHT1621 24 static
ht1621.c:49:6:WritenDataHT1621 24 static
ht1621.c:92:6:HT1621_Init 8 static
+92
View File
@@ -0,0 +1,92 @@
my_software/iic.o: ../my_software/iic.c ../my_software/iic.h \
../Core/Inc/main.h ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h \
../Core/Inc/stm32f0xx_hal_conf.h \
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h \
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h \
../Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h \
../Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f030x6.h \
../Drivers/CMSIS/Include/core_cm0.h \
../Drivers/CMSIS/Include/cmsis_version.h \
../Drivers/CMSIS/Include/cmsis_compiler.h \
../Drivers/CMSIS/Include/cmsis_gcc.h \
../Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h \
../Drivers/STM32F0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h \
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h \
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h \
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_exti.h \
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h \
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h \
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h \
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h \
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h \
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h \
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h \
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h \
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h \
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h \
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h \
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h \
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h
../my_software/iic.h:
../Core/Inc/main.h:
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h:
../Core/Inc/stm32f0xx_hal_conf.h:
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h:
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h:
../Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h:
../Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f030x6.h:
../Drivers/CMSIS/Include/core_cm0.h:
../Drivers/CMSIS/Include/cmsis_version.h:
../Drivers/CMSIS/Include/cmsis_compiler.h:
../Drivers/CMSIS/Include/cmsis_gcc.h:
../Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h:
../Drivers/STM32F0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h:
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h:
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h:
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h:
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_exti.h:
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h:
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h:
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h:
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h:
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h:
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h:
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h:
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h:
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h:
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h:
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h:
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h:
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h:
View File
+4 -2
View File
@@ -28,8 +28,8 @@ my_software/my_code.o: ../my_software/my_code.c ../my_software/my_code.h \
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h \
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h \
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h \
../my_software/button.h ../my_software/ht1621.h ../my_software/flash.h \
../my_software/r480r.h
../my_software/gpio.h ../my_software/button.h ../my_software/ht1621.h \
../my_software/flash.h ../my_software/r480r.h
../my_software/my_code.h:
@@ -93,6 +93,8 @@ my_software/my_code.o: ../my_software/my_code.c ../my_software/my_code.h \
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h:
../my_software/gpio.h:
../my_software/button.h:
../my_software/ht1621.h:
+6 -7
View File
@@ -1,7 +1,6 @@
my_code.c:46:6:ds_in_or_out 48 static
my_code.c:64:9:Read_Ds 8 static
my_code.c:72:6:Sand_Byte_to_595_2 24 static
my_code.c:93:6:hc2_sever 16 static
my_code.c:120:6:moto_server 8 static
my_code.c:226:6:HT1621_Display_GetButton 24 static
my_code.c:270:6:my_code 32 static
my_code.c:48:9:Read_Ds 8 static
my_code.c:56:6:Sand_Byte_to_595_2 24 static
my_code.c:77:6:hc2_sever 16 static
my_code.c:104:6:moto_server 8 static
my_code.c:210:6:HT1621_Display_GetButton 24 static
my_code.c:254:6:my_code 32 static
+6
View File
@@ -7,21 +7,27 @@
C_SRCS += \
../my_software/button.c \
../my_software/flash.c \
../my_software/gpio.c \
../my_software/ht1621.c \
../my_software/iic.c \
../my_software/my_code.c \
../my_software/r480r.c
OBJS += \
./my_software/button.o \
./my_software/flash.o \
./my_software/gpio.o \
./my_software/ht1621.o \
./my_software/iic.o \
./my_software/my_code.o \
./my_software/r480r.o
C_DEPS += \
./my_software/button.d \
./my_software/flash.d \
./my_software/gpio.d \
./my_software/ht1621.d \
./my_software/iic.d \
./my_software/my_code.d \
./my_software/r480r.d
+2
View File
@@ -24,6 +24,8 @@
"./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.o"
"./my_software/button.o"
"./my_software/flash.o"
"./my_software/gpio.o"
"./my_software/ht1621.o"
"./my_software/iic.o"
"./my_software/my_code.o"
"./my_software/r480r.o"
+1
View File
@@ -9,6 +9,7 @@ S_SRCS :=
C_SRCS :=
S_UPPER_SRCS :=
O_SRCS :=
OBJCOPY_HEX :=
SIZE_OUTPUT :=
OBJDUMP_LIST :=
EXECUTABLES :=
+1 -1
View File
@@ -131,7 +131,7 @@ ProjectManager.StackSize=0x400
ProjectManager.TargetToolchain=STM32CubeIDE
ProjectManager.ToolChainLocation=
ProjectManager.UnderRoot=true
ProjectManager.functionlistsort=1-SystemClock_Config-RCC-false-HAL-false,2-MX_GPIO_Init-GPIO-false-HAL-true,3-MX_ADC_Init-ADC-false-HAL-true,4-MX_TIM3_Init-TIM3-false-HAL-true
ProjectManager.functionlistsort=1-SystemClock_Config-RCC-false-HAL-false,2-MX_GPIO_Init-GPIO-false-HAL-true,3-MX_ADC_Init-ADC-false-HAL-true,4-MX_TIM14_Init-TIM14-false-HAL-true
RCC.AHBFreq_Value=48000000
RCC.APB1Freq_Value=48000000
RCC.APB1TimFreq_Value=48000000
+1 -59
View File
@@ -9,64 +9,6 @@
#include "flash.h"
uint32_t STMFLASH_ReadWord(uint32_t faddr)
{
return *(uint32_t*)faddr;
}
void STMFLASH_Write(uint32_t WriteAddr,uint32_t *pBuffer,uint32_t NumToWrite)
{
FLASH_EraseInitTypeDef FlashEraseInit;
HAL_StatusTypeDef FlashStatus=HAL_OK;
uint32_t PageError=0;
uint32_t addrx=0;
uint32_t endaddr=0;
if(WriteAddr<STM32_FLASH_BASE||WriteAddr%4)return; //非法地址
HAL_FLASH_Unlock(); //解锁
addrx=WriteAddr; //写入的起始地址
endaddr=WriteAddr+NumToWrite*8; //写入的结束地址
if(addrx<0X1FFF0000)
{
while(addrx<endaddr) //扫清一切障碍.(对非FFFFFFFF的地方,先擦除)
{
if(STMFLASH_ReadWord(addrx)!=0XFFFFFFFF) //有非0XFFFFFFFF的地方,要擦除这个扇区
{
FlashEraseInit.TypeErase=FLASH_TYPEERASE_PAGES; //擦除类型,页擦除
FlashEraseInit.PageAddress=31; //从哪页开始擦除
FlashEraseInit.NbPages=1; //一次只擦除一页
if(HAL_FLASHEx_Erase(&FlashEraseInit,&PageError)!=HAL_OK)
{
break;//发生错误了
}
}else addrx+=4;
FLASH_WaitForLastOperation(FLASH_WAITETIME); //等待上次操作完成
}
}
FlashStatus=FLASH_WaitForLastOperation(FLASH_WAITETIME); //等待上次操作完成
if(FlashStatus==HAL_OK)
{
while(WriteAddr<endaddr) //写数据
{
if(HAL_FLASH_Program(FLASH_TYPEPROGRAM_DOUBLEWORD,WriteAddr,*(uint64_t*) pBuffer)!=HAL_OK)//写入数据
{
break; //写入异常
}
WriteAddr+=8;
pBuffer+=2;
}
}
HAL_FLASH_Lock(); //上锁
}
void STMFLASH_Read(uint32_t ReadAddr,uint32_t *pBuffer,uint32_t NumToRead) //连续读取
{
uint32_t i;
for(i=0;i<NumToRead;i++)
{
pBuffer[i]=STMFLASH_ReadWord(ReadAddr); //读取4个字节.
ReadAddr+=4; //偏移4个字节.
}
}
-4
View File
@@ -10,9 +10,5 @@
#include "main.h"
#define STM32_FLASH_BASE 0x08007c00
#define FLASH_WAITETIME 100
void STMFLASH_Write(uint32_t WriteAddr,uint32_t *pBuffer,uint32_t NumToWrite);
void STMFLASH_Read(uint32_t ReadAddr,uint32_t *pBuffer,uint32_t NumToRead);
#endif /* FLASH_H_ */
+26
View File
@@ -0,0 +1,26 @@
/*
* gpio.c
*
* Created on: Oct 24, 2021
* Author: wuwenfeng
*/
#include "gpio.h"
void change_io_function(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin,char a)
{
GPIO_InitTypeDef GPIO_InitStruct;
GPIO_InitStruct.Pin = GPIO_Pin;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
if(a==1)
{
GPIO_InitStruct.Pull = GPIO_PULLUP;
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
}
if(a==0)
{
GPIO_InitStruct.Pull = GPIO_NOPULL;
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
}
HAL_GPIO_Init(GPIOx, &GPIO_InitStruct);
}
+13
View File
@@ -0,0 +1,13 @@
/*
* gpio.h
*
* Created on: Oct 24, 2021
* Author: wuwenfeng
*/
#ifndef GPIO_H_
#define GPIO_H_
#include "main.h"
void change_io_function(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin,char a);
#endif /* GPIO_H_ */
+13 -78
View File
@@ -9,29 +9,20 @@
#include "ht1621.h"
#include "my_code.h"
#define HT1621_addrbit 6 //驱动ic的ram地址位数 A5-A0
#define HT1621_addrbit 6
/**
* @brief HT1621 clk
* @param None
* @retval None
*/
void WriteClockHT1621(void)
{
HC595_SCK(0);
HC595_SCK(1);
}
/**
* @brief Write HT1621 Command
* @param FunctonCode->功能/命令码
* @retval None
*/
void WriteCommandHT1621(unsigned char FunctonCode)
{
unsigned char Shift = 0x80;
unsigned char i;
HC595_RCK(0); //CS 片选开
HC595_DCK(1); //100
HC595_RCK(0);
HC595_DCK(1);
WriteClockHT1621();
HC595_DCK(0);
WriteClockHT1621();
@@ -48,71 +39,26 @@ void WriteCommandHT1621(unsigned char FunctonCode)
Shift = Shift >> 1;
}
{HC595_DCK(0);}
WriteClockHT1621(); //发送一个 0 命令码中最后一位 X
HC595_RCK(1); //CS 片选关
WriteClockHT1621();
HC595_RCK(1);
HC595_DCK(1);
}
/**
* @brief Write 1 data to HT1621
* @param Addr->写入ram的地址
* @param Databuf->写入ram的数据
* @retval None
*/
void Write1DataHT1621(unsigned char Addr,unsigned char Dat)
{
unsigned char i;
unsigned char Shift;
HC595_RCK(0); //CS 片选开
HC595_DCK(1); //101
WriteClockHT1621();
HC595_DCK(0);
WriteClockHT1621();
HC595_DCK(1);
WriteClockHT1621();
Shift = 0x20; //屏蔽高3位 只用5位
for( i = 0; i < HT1621_addrbit; i++)
{
if(Addr & Shift)
{HC595_DCK(1);}
else
{HC595_DCK(0);}
WriteClockHT1621();
Shift = Shift >> 1;
}
Shift = 0x01;
for (i = 0; i < 4; i++)
{
if( Dat & Shift)
{HC595_DCK(1);}
else
{HC595_DCK(0);}
WriteClockHT1621();
Shift = Shift << 1;
}
HC595_RCK(1); //CS 片选关
HC595_DCK(1);
}
/**
* @brief Write n data to HT1621
* @param Addr->写入ram的起始地址
* @param Databuf->写入ram的数据buffer
* @param Cnt->写入ram的数据个数
* @retval None
*/
void WritenDataHT1621(unsigned char Addr,unsigned char *Databuf,unsigned char Cnt)
{
unsigned char i,j;
unsigned char Shift;
unsigned char dataval;
HC595_RCK(0); //CS 片选开
HC595_RCK(0);
HC595_DCK(1); //101
WriteClockHT1621();
HC595_DCK(0);
WriteClockHT1621();
HC595_DCK(1);
WriteClockHT1621();
Shift = 0x20; //屏蔽高3位 只用5位
Shift = 0x20;
for( i = 0; i < HT1621_addrbit; i++)
{
if (Addr & Shift)
@@ -136,36 +82,25 @@ void WritenDataHT1621(unsigned char Addr,unsigned char *Databuf,unsigned char Cn
Shift = Shift << 1;
}
}
HC595_RCK(1); //CS 片选关
HC595_RCK(1);
HC595_DCK(1);
}
/**
* @brief HT1621 Init
* @param None
* @retval None
*/
void HT1621_Init(void) //退出掉电低功耗状态重新初始化HT1621
void HT1621_Init(void)
{
HC595_RCK(1);
HC595_SCK(1);
HC595_DCK(1);
WriteCommandHT1621(OSC_ON);
WriteCommandHT1621(DISP_ON);
WriteCommandHT1621(COM_1_3__4);
//上电默认配置(以下未用功能关闭降低功耗)
WriteCommandHT1621(TIMER_DIS);
WriteCommandHT1621(WDT_DIS);
WriteCommandHT1621(BUZZ_OFF);
WriteCommandHT1621(IRQ_DIS);
}
-1
View File
@@ -38,7 +38,6 @@
void WriteClockHT1621(void);
void WriteCommandHT1621(unsigned char FunctonCode);
void Write1DataHT1621(unsigned char Addr,unsigned char Dat);
void WritenDataHT1621(unsigned char Addr,unsigned char *Databuf,unsigned char Cnt);
+8
View File
@@ -0,0 +1,8 @@
/*
* iic.c
*
* Created on: Oct 24, 2021
* Author: wuwenfeng
*/
#include "iic.h"
+14
View File
@@ -0,0 +1,14 @@
/*
* iic.h
*
* Created on: Oct 24, 2021
* Author: wuwenfeng
*/
#ifndef IIC_H_
#define IIC_H_
#include "main.h"
#endif /* IIC_H_ */
+12 -64
View File
@@ -5,6 +5,7 @@
* Author: wuwenfeng
*/
#include "my_code.h"
#include "gpio.h"
#include "button.h"
#include "ht1621.h"
#include "flash.h"
@@ -43,27 +44,10 @@ struct
}moto;
void ds_in_or_out(char a)//change the io function
{
GPIO_InitTypeDef GPIO_InitStruct = {0};
GPIO_InitStruct.Pin = HC595_DLK_Pin;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
if(a==0)
{
GPIO_InitStruct.Pull = GPIO_PULLUP;
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
}
if(a==1)
{
GPIO_InitStruct.Pull = GPIO_NOPULL;
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
}
HAL_GPIO_Init(HC595_DLK_GPIO_Port, &GPIO_InitStruct);
}
uint8_t Read_Ds()
{
ds_in_or_out(0);
change_io_function(HC595_DLK_GPIO_Port,HC595_DLK_Pin,1);
if(READ_HC595_DCK){return 0;}else{return 1;}
//return READ_HC595_DCK;
}
@@ -71,7 +55,7 @@ uint8_t Read_Ds()
//send data to 959
void Sand_Byte_to_595_2(uint8_t h)
{
ds_in_or_out(1);
change_io_function(HC595_DLK_GPIO_Port,HC595_DLK_Pin,0);
HC595_DCK(0);
HC595_SCK2(0);
HC595_RCK(0);
@@ -225,8 +209,8 @@ const unsigned char LED_Tab[]=
#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};
unsigned char send_buff[8];
unsigned char lcd_buff[4];
//WritenDataHT1621(0,send_buff,8);
@@ -277,22 +261,6 @@ void my_code()
long countdown_set=15000;
dis_buff.moto1a=0;
dis_buff.moto1b=0;
dis_buff.moto2a=0;
dis_buff.moto2b=0;
moto.moto_run=0;
moto.pwm_run=0;
moto.moto1a=0;
moto.moto1b=0;
moto.moto2a=0;
moto.moto2b=0;
moto.moto1a_=0;
moto.moto1b_=0;
moto.moto2a_=0;
moto.moto2b_=0;
HT1621_Init();
r480_init();
@@ -352,7 +320,13 @@ void my_code()
moto.moto1b=0;
moto.moto2a=0;
moto.moto2b=0;
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;
if(HAL_GetTick()>runtime)
{
runtime+=1000;
@@ -367,14 +341,7 @@ void my_code()
dis_buff.dot4=0;
}
}
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;
overload_times=0;
if(key2.code!=0)
@@ -562,26 +529,7 @@ void my_code()
}
break;
case 6:
//debug
if(HAL_GetTick()>runtime)
{
runtime+=1000;
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[3]=(r480.times/100)%10;
dis_buff.d_num[2]=(r480.times/1000)%10;
dis_buff.d_num[1]=((r480.times/10000)%10);
break;
}
if(ADCC.adc_value[0]>600||ADCC.adc_value[1]>600)
+9 -9
View File
@@ -24,16 +24,16 @@ struct display_penal
{
unsigned char d_num[4];
unsigned char button_flag[4];
char dot1:1;
char dot2:1;
char dot3:1;
char dot4:1;
char led_run:1;
char dot1;
char dot2;
char dot3;
char dot4;
char led_run;
char moto1a:1;
char moto1b:1;
char moto2a:1;
char moto2b:1;
char moto1a;
char moto1b;
char moto2a;
char moto2b;
}dis_buff;
#endif /* MY_CODE_H_ */