reviving stm32f1
This commit is contained in:
parent
ddfee50ab6
commit
9cb7595d61
|
@ -25,15 +25,6 @@
|
||||||
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
|
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
|
||||||
</natures>
|
</natures>
|
||||||
<filteredResources>
|
<filteredResources>
|
||||||
<filter>
|
|
||||||
<id>1491445130159</id>
|
|
||||||
<name></name>
|
|
||||||
<type>30</type>
|
|
||||||
<matcher>
|
|
||||||
<id>org.eclipse.ui.ide.multiFilter</id>
|
|
||||||
<arguments>1.0-name-matches-false-false-stm32f1egt</arguments>
|
|
||||||
</matcher>
|
|
||||||
</filter>
|
|
||||||
<filter>
|
<filter>
|
||||||
<id>1491445130166</id>
|
<id>1491445130166</id>
|
||||||
<name></name>
|
<name></name>
|
||||||
|
|
|
@ -150,6 +150,10 @@ ifeq ($(LDSCRIPT),)
|
||||||
LDSCRIPT= config/stm32f4ems/STM32F407xG.ld
|
LDSCRIPT= config/stm32f4ems/STM32F407xG.ld
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(PROJECT_CPU),)
|
||||||
|
PROJECT_CPU=ST_STM32F4
|
||||||
|
endif
|
||||||
|
|
||||||
# C sources that can be compiled in ARM or THUMB mode depending on the global
|
# C sources that can be compiled in ARM or THUMB mode depending on the global
|
||||||
# setting.
|
# setting.
|
||||||
CSRC = $(STARTUPSRC) \
|
CSRC = $(STARTUPSRC) \
|
||||||
|
@ -223,6 +227,11 @@ TCPPSRC =
|
||||||
# List ASM source files here
|
# List ASM source files here
|
||||||
ASMXSRC = $(STARTUPASM) $(PORTASM) $(OSALASM)
|
ASMXSRC = $(STARTUPASM) $(PORTASM) $(OSALASM)
|
||||||
|
|
||||||
|
ifeq ($(CONFIGPATH),)
|
||||||
|
CONFIGPATH=config/stm32f4ems
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
INCDIR = $(CHIBIOS)/os/license \
|
INCDIR = $(CHIBIOS)/os/license \
|
||||||
$(PORTINC) \
|
$(PORTINC) \
|
||||||
$(OSALINC) \
|
$(OSALINC) \
|
||||||
|
@ -237,7 +246,7 @@ INCDIR = $(CHIBIOS)/os/license \
|
||||||
$(CHIBIOS)/os/hal/lib/streams \
|
$(CHIBIOS)/os/hal/lib/streams \
|
||||||
$(CHIBIOS)/os/various \
|
$(CHIBIOS)/os/various \
|
||||||
$(CHIBIOS)/os/various/devices_lib/accel \
|
$(CHIBIOS)/os/various/devices_lib/accel \
|
||||||
config/stm32f4ems \
|
$(CONFIGPATH) \
|
||||||
config/engines \
|
config/engines \
|
||||||
config \
|
config \
|
||||||
ext \
|
ext \
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
rem
|
||||||
|
rem STM32F469 version of the firmware for https://rusefi.com/forum/viewtopic.php?f=4&t=1215
|
||||||
|
rem
|
||||||
|
|
||||||
|
cd ../../..
|
||||||
|
set EXTRA_PARAMS="-DSTM32F469xx"
|
||||||
|
set PROJECT_CPU=ST_STM32F1
|
||||||
|
set LDSCRIPT=config/stm32f1egt/STM32F103xB.ld
|
||||||
|
call compile_and_program.bat -r
|
|
@ -35,9 +35,15 @@ ifeq ($(PROJECT_CPU),ST_STM32F7)
|
||||||
HW_LAYER_EMS += $(PROJECT_DIR)/hw_layer/stm32f7/stm32f7xx_hal_flash.c \
|
HW_LAYER_EMS += $(PROJECT_DIR)/hw_layer/stm32f7/stm32f7xx_hal_flash.c \
|
||||||
$(PROJECT_DIR)/hw_layer/stm32f7/stm32f7xx_hal_flash_ex.c
|
$(PROJECT_DIR)/hw_layer/stm32f7/stm32f7xx_hal_flash_ex.c
|
||||||
HW_LAYER_EMS_CPP += $(PROJECT_DIR)/hw_layer/stm32f7/mpu_util.cpp
|
HW_LAYER_EMS_CPP += $(PROJECT_DIR)/hw_layer/stm32f7/mpu_util.cpp
|
||||||
else
|
endif
|
||||||
|
|
||||||
|
ifeq ($(PROJECT_CPU),ST_STM32F4)
|
||||||
HW_LAYER_EMS += $(PROJECT_DIR)/hw_layer/stm32f4/stm32f4xx_hal_flash.c \
|
HW_LAYER_EMS += $(PROJECT_DIR)/hw_layer/stm32f4/stm32f4xx_hal_flash.c \
|
||||||
$(PROJECT_DIR)/hw_layer/stm32f4/stm32f4xx_hal_flash_ex.c
|
$(PROJECT_DIR)/hw_layer/stm32f4/stm32f4xx_hal_flash_ex.c
|
||||||
HW_LAYER_EMS_CPP += $(PROJECT_DIR)/hw_layer/stm32f4/mpu_util.cpp
|
HW_LAYER_EMS_CPP += $(PROJECT_DIR)/hw_layer/stm32f4/mpu_util.cpp
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(PROJECT_CPU),ST_STM32F1)
|
||||||
|
HW_LAYER_EMS_CPP += $(PROJECT_DIR)/hw_layer/stm32f1/mpu_util.cpp
|
||||||
|
endif
|
||||||
|
|
Loading…
Reference in New Issue