Skip to content

Commit 9956ff4

Browse files
authored
core: wire up flash make target for Teensy 4.x (#13077)
related to kinx-project/kint#5
1 parent d59f8d1 commit 9956ff4

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include $(CHIBIOS_CONTRIB)/os/hal/boards/PJRC_TEENSY_4_1/board.mk
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
TEENSY_LOADER_CLI_MCU = imxrt1062

tmk_core/chibios.mk

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,8 +390,10 @@ ifndef TEENSY_LOADER_CLI
390390
endif
391391
endif
392392

393+
TEENSY_LOADER_CLI_MCU ?= $(MCU_LDSCRIPT)
394+
393395
define EXEC_TEENSY
394-
$(TEENSY_LOADER_CLI) -mmcu=$(MCU_LDSCRIPT) -w -v $(BUILD_DIR)/$(TARGET).hex
396+
$(TEENSY_LOADER_CLI) -mmcu=$(TEENSY_LOADER_CLI_MCU) -w -v $(BUILD_DIR)/$(TARGET).hex
395397
endef
396398

397399
teensy: $(BUILD_DIR)/$(TARGET).hex cpfirmware sizeafter
@@ -408,6 +410,8 @@ else ifeq ($(strip $(BOOTLOADER)),kiibohd)
408410
$(call EXEC_DFU_UTIL)
409411
else ifeq ($(strip $(MCU_FAMILY)),KINETIS)
410412
$(call EXEC_TEENSY)
413+
else ifeq ($(strip $(MCU_FAMILY)),MIMXRT1062)
414+
$(call EXEC_TEENSY)
411415
else ifeq ($(strip $(MCU_FAMILY)),STM32)
412416
$(call EXEC_DFU_UTIL)
413417
else

0 commit comments

Comments
 (0)