-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trying to use STM Workbench generated makefile for actions
- Loading branch information
1 parent
334c29b
commit 076508c
Showing
14 changed files
with
280 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
eclipse.preferences.version=1 | ||
encoding//Src/display_kingmeter.c=UTF-8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
################################################################################ | ||
# Automatically-generated file. Do not edit! | ||
################################################################################ | ||
|
||
# Add inputs and outputs from these tool invocations to the build variables | ||
C_SRCS += \ | ||
Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.c \ | ||
Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_adc.c \ | ||
Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_adc_ex.c \ | ||
Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.c \ | ||
Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.c \ | ||
Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c \ | ||
Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.c \ | ||
Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.c \ | ||
Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.c \ | ||
Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.c \ | ||
Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.c \ | ||
Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.c \ | ||
Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.c \ | ||
Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.c \ | ||
Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.c | ||
|
||
OBJS += \ | ||
build/stm32f1xx_hal.o \ | ||
build/stm32f1xx_hal_adc.o \ | ||
build/stm32f1xx_hal_adc_ex.o \ | ||
build/stm32f1xx_hal_cortex.o \ | ||
build/stm32f1xx_hal_dma.o \ | ||
build/stm32f1xx_hal_flash.o \ | ||
build/stm32f1xx_hal_flash_ex.o \ | ||
build/stm32f1xx_hal_gpio.o \ | ||
build/stm32f1xx_hal_gpio_ex.o \ | ||
build/stm32f1xx_hal_pwr.o \ | ||
build/stm32f1xx_hal_rcc.o \ | ||
build/stm32f1xx_hal_rcc_ex.o \ | ||
build/stm32f1xx_hal_tim.o \ | ||
build/stm32f1xx_hal_tim_ex.o \ | ||
build/stm32f1xx_hal_uart.o | ||
|
||
C_DEPS += \ | ||
build/stm32f1xx_hal.d \ | ||
build/stm32f1xx_hal_adc.d \ | ||
build/stm32f1xx_hal_adc_ex.d \ | ||
build/stm32f1xx_hal_cortex.d \ | ||
build/stm32f1xx_hal_dma.d \ | ||
build/stm32f1xx_hal_flash.d \ | ||
build/stm32f1xx_hal_flash_ex.d \ | ||
build/stm32f1xx_hal_gpio.d \ | ||
build/stm32f1xx_hal_gpio_ex.d \ | ||
build/stm32f1xx_hal_pwr.d \ | ||
build/stm32f1xx_hal_rcc.d \ | ||
build/stm32f1xx_hal_rcc_ex.d \ | ||
build/stm32f1xx_hal_tim.d \ | ||
build/stm32f1xx_hal_tim_ex.d \ | ||
build/stm32f1xx_hal_uart.d | ||
|
||
INC_PATH = INC | ||
DRIVERS_PATH = Drivers/STM32F1xx_HAL_Driver/Inc | ||
LEGACY_PATH = Drivers/STM32F1xx_HAL_Driver/Inc/Legacy | ||
DEVICE_PATH = Drivers/CMSIS/Device/ST/STM32F1xx/Include | ||
CMSIS_PATH = Drivers/CMSIS/Include | ||
|
||
|
||
# Each subdirectory must supply rules for building sources it contributes | ||
build/%.o: Drivers/STM32F1xx_HAL_Driver/Src/%.c | ||
@echo 'Building file: $<' | ||
@echo 'Invoking: MCU GCC Compiler' | ||
@echo $(PWD) | ||
arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -mfloat-abi=soft '-D__weak=__attribute__((weak))' -DARM_MATH_CM3 '-D__packed=__attribute__((__packed__))' -DUSE_HAL_DRIVER -DSTM32F103x6 -I $(INC_PATH) -I $(DRIVERS_PATH) -I $(LEGACY_PATH) -I $(DEVICE_PATH) -I $(CMSIS_PATH) -Os -g3 -Wall -fmessage-length=0 -ffunction-sections -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" -o "$@" "$<" | ||
@echo 'Finished building: $<' | ||
@echo ' ' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
################################################################################ | ||
# Automatically-generated file. Do not edit! | ||
################################################################################ | ||
|
||
# Add inputs and outputs from these tool invocations to the build variables | ||
C_SRCS += \ | ||
Src/FOC.c \ | ||
Src/display_bafang.c \ | ||
Src/display_kingmeter.c \ | ||
Src/display_kunteng.c \ | ||
Src/eeprom.c \ | ||
Src/main.c \ | ||
Src/print.c \ | ||
Src/stm32f1xx_hal_msp.c \ | ||
Src/stm32f1xx_it.c \ | ||
Src/system_stm32f1xx_Bootloader.c | ||
|
||
OBJS += \ | ||
build/FOC.o \ | ||
build/display_bafang.o \ | ||
build/display_kingmeter.o \ | ||
build/display_kunteng.o \ | ||
build/eeprom.o \ | ||
build/main.o \ | ||
build/print.o \ | ||
build/stm32f1xx_hal_msp.o \ | ||
build/stm32f1xx_it.o \ | ||
build/system_stm32f1xx_Bootloader.o | ||
|
||
C_DEPS += \ | ||
build/FOC.d \ | ||
build/display_bafang.d \ | ||
build/display_kingmeter.d \ | ||
build/display_kunteng.d \ | ||
build/eeprom.d \ | ||
build/main.d \ | ||
build/print.d \ | ||
build/stm32f1xx_hal_msp.d \ | ||
build/stm32f1xx_it.d \ | ||
build/system_stm32f1xx_Bootloader.d | ||
|
||
INC_PATH = INC | ||
DRIVERS_PATH = Drivers/STM32F1xx_HAL_Driver/Inc | ||
LEGACY_PATH = Drivers/STM32F1xx_HAL_Driver/Inc/Legacy | ||
DEVICE_PATH = Drivers/CMSIS/Device/ST/STM32F1xx/Include | ||
CMSIS_PATH = Drivers/CMSIS/Include | ||
|
||
|
||
# Each subdirectory must supply rules for building sources it contributes | ||
build/%.o: Src/%.c | ||
@echo 'Building file: $<' | ||
@echo 'Invoking: MCU GCC Compiler' | ||
@echo $(PWD) | ||
arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -mfloat-abi=soft '-D__weak=__attribute__((weak))' -DARM_MATH_CM3 '-D__packed=__attribute__((__packed__))' -DUSE_HAL_DRIVER -DSTM32F103x6 -I $(INC_PATH) -I $(DRIVERS_PATH) -I $(LEGACY_PATH) -I $(DEVICE_PATH) -I $(CMSIS_PATH) -Os -g3 -Wall -fmessage-length=0 -ffunction-sections -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" -o "$@" "$<" | ||
@echo 'Finished building: $<' | ||
@echo ' ' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
################################################################################ | ||
# Automatically-generated file. Do not edit! | ||
################################################################################ | ||
|
||
# Add inputs and outputs from these tool invocations to the build variables | ||
S_SRCS += \ | ||
Startup/startup_stm32f103x6.s | ||
|
||
OBJS += \ | ||
build/startup_stm32f103x6.o | ||
|
||
|
||
# Each subdirectory must supply rules for building sources it contributes | ||
build/%.o: Startup/%.s | ||
@echo 'Building file: $<' | ||
@echo 'Invoking: MCU GCC Assembler' | ||
@echo $(PWD) | ||
arm-none-eabi-as -mcpu=cortex-m3 -mthumb -mfloat-abi=soft -g -o "$@" "$<" | ||
@echo 'Finished building: $<' | ||
@echo ' ' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
################################################################################ | ||
# Automatically-generated file. Do not edit! | ||
################################################################################ | ||
|
||
-include makefile.init | ||
|
||
RM := rm -rf | ||
|
||
# All of the sources participating in the build are defined here | ||
-include sources.mk | ||
-include startup/subdir.mk | ||
-include Src/subdir.mk | ||
-include Drivers/STM32F1xx_HAL_Driver/Src/subdir.mk | ||
-include subdir.mk | ||
-include objects.mk | ||
|
||
ifneq ($(MAKECMDGOALS),clean) | ||
ifneq ($(strip $(S_UPPER_DEPS)),) | ||
-include $(S_UPPER_DEPS) | ||
endif | ||
ifneq ($(strip $(C_DEPS)),) | ||
-include $(C_DEPS) | ||
endif | ||
endif | ||
|
||
-include makefile.defs | ||
|
||
SRC_PATH = Drivers/CMSIS | ||
|
||
# Add inputs and outputs from these tool invocations to the build variables | ||
|
||
# All Target | ||
all: LishuiFOC_01.elf | ||
|
||
# Tool invocations | ||
LishuiFOC_01.elf: $(OBJS) $(USER_OBJS) STM32F103C6Tx_FLASH_Bootloader.ld | ||
@echo 'Building target: $@' | ||
@echo 'Invoking: MCU GCC Linker' | ||
arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -mfloat-abi=soft -L $(SRC_PATH) -specs=nosys.specs -specs=nano.specs -T"STM32F103C6Tx_FLASH_Bootloader.ld" -Wl,-Map=output.map -Wl,--gc-sections -o "build/EBiCS_Firmware.elf" @"objects.list" $(USER_OBJS) $(LIBS) -lm | ||
@echo 'Finished building target: $@' | ||
@echo ' ' | ||
$(MAKE) --no-print-directory post-build | ||
|
||
# Other Targets | ||
clean: | ||
-$(RM) * | ||
-@echo ' ' | ||
|
||
post-build: | ||
-@echo 'Generating hex and Printing size information:' | ||
arm-none-eabi-objcopy -O ihex "build/EBiCS_Firmware.elf" "build/EBiCS_Firmware.hex" | ||
arm-none-eabi-objcopy -O binary "build/EBiCS_Firmware.elf" "build/EBiCS_Firmware.bin" | ||
arm-none-eabi-size "build/EBiCS_Firmware.elf" | ||
stat "build/EBiCS_Firmware.bin" | ||
-@echo ' ' | ||
|
||
|
||
.PHONY: all clean dependents | ||
.SECONDARY: post-build | ||
|
||
-include makefile.targets |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
"build/stm32f1xx_hal.o" | ||
"build/stm32f1xx_hal_adc.o" | ||
"build/stm32f1xx_hal_adc_ex.o" | ||
"build/stm32f1xx_hal_cortex.o" | ||
"build/stm32f1xx_hal_dma.o" | ||
"build/stm32f1xx_hal_flash.o" | ||
"build/stm32f1xx_hal_flash_ex.o" | ||
"build/stm32f1xx_hal_gpio.o" | ||
"build/stm32f1xx_hal_gpio_ex.o" | ||
"build/stm32f1xx_hal_pwr.o" | ||
"build/stm32f1xx_hal_rcc.o" | ||
"build/stm32f1xx_hal_rcc_ex.o" | ||
"build/stm32f1xx_hal_tim.o" | ||
"build/stm32f1xx_hal_tim_ex.o" | ||
"build/stm32f1xx_hal_uart.o" | ||
"build/FOC.o" | ||
"build/display_bafang.o" | ||
"build/display_kingmeter.o" | ||
"build/display_kunteng.o" | ||
"build/eeprom.o" | ||
"build/main.o" | ||
"build/print.o" | ||
"build/stm32f1xx_hal_msp.o" | ||
"build/stm32f1xx_it.o" | ||
"build/system_stm32f1xx_Bootloader.o" | ||
"build/startup_stm32f103x6.o" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
################################################################################ | ||
# Automatically-generated file. Do not edit! | ||
################################################################################ | ||
|
||
USER_OBJS := | ||
|
||
LIBS := -larm_cortexM3l_math | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
################################################################################ | ||
# Automatically-generated file. Do not edit! | ||
################################################################################ | ||
|
||
OBJ_SRCS := | ||
S_SRCS := | ||
ASM_SRCS := | ||
C_SRCS := | ||
S_UPPER_SRCS := | ||
O_SRCS := | ||
EXECUTABLES := | ||
OBJS := | ||
S_UPPER_DEPS := | ||
C_DEPS := | ||
|
||
# Every subdirectory with source files must be described here | ||
SUBDIRS := \ | ||
Drivers/STM32F1xx_HAL_Driver/Src \ | ||
Src \ | ||
startup \ | ||
|