core: wire up flash make target for Teensy 4.x (#13077)
related to https://github.com/kinx-project/kint/issues/5
This commit is contained in:
parent
d59f8d1c02
commit
9956ff4e03
3 changed files with 7 additions and 1 deletions
1
platforms/chibios/IC_TEENSY_4_1/board/board.mk
Normal file
1
platforms/chibios/IC_TEENSY_4_1/board/board.mk
Normal file
|
@ -0,0 +1 @@
|
||||||
|
include $(CHIBIOS_CONTRIB)/os/hal/boards/PJRC_TEENSY_4_1/board.mk
|
1
platforms/chibios/IC_TEENSY_4_1/rules.mk
Normal file
1
platforms/chibios/IC_TEENSY_4_1/rules.mk
Normal file
|
@ -0,0 +1 @@
|
||||||
|
TEENSY_LOADER_CLI_MCU = imxrt1062
|
|
@ -390,8 +390,10 @@ ifndef TEENSY_LOADER_CLI
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
TEENSY_LOADER_CLI_MCU ?= $(MCU_LDSCRIPT)
|
||||||
|
|
||||||
define EXEC_TEENSY
|
define EXEC_TEENSY
|
||||||
$(TEENSY_LOADER_CLI) -mmcu=$(MCU_LDSCRIPT) -w -v $(BUILD_DIR)/$(TARGET).hex
|
$(TEENSY_LOADER_CLI) -mmcu=$(TEENSY_LOADER_CLI_MCU) -w -v $(BUILD_DIR)/$(TARGET).hex
|
||||||
endef
|
endef
|
||||||
|
|
||||||
teensy: $(BUILD_DIR)/$(TARGET).hex cpfirmware sizeafter
|
teensy: $(BUILD_DIR)/$(TARGET).hex cpfirmware sizeafter
|
||||||
|
@ -408,6 +410,8 @@ else ifeq ($(strip $(BOOTLOADER)),kiibohd)
|
||||||
$(call EXEC_DFU_UTIL)
|
$(call EXEC_DFU_UTIL)
|
||||||
else ifeq ($(strip $(MCU_FAMILY)),KINETIS)
|
else ifeq ($(strip $(MCU_FAMILY)),KINETIS)
|
||||||
$(call EXEC_TEENSY)
|
$(call EXEC_TEENSY)
|
||||||
|
else ifeq ($(strip $(MCU_FAMILY)),MIMXRT1062)
|
||||||
|
$(call EXEC_TEENSY)
|
||||||
else ifeq ($(strip $(MCU_FAMILY)),STM32)
|
else ifeq ($(strip $(MCU_FAMILY)),STM32)
|
||||||
$(call EXEC_DFU_UTIL)
|
$(call EXEC_DFU_UTIL)
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue