From b35566af799ccb76711d228f1314f7df53ee42bc Mon Sep 17 00:00:00 2001 From: robert-hh Date: Tue, 8 Jun 2021 13:34:53 +0200 Subject: [PATCH] mimxrt/boards: Set vfs partition start to 1 MBbyte. This avoids the irritation of the PJRC HalfKay loader on Teensy 4.0. Block 0 and 1 are properly erased and the additional formatting in the make script is not required anymore. --- ports/mimxrt/boards/MIMXRT1062.ld | 4 ++-- ports/mimxrt/boards/TEENSY40/mpconfigboard.mk | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/ports/mimxrt/boards/MIMXRT1062.ld b/ports/mimxrt/boards/MIMXRT1062.ld index 5ab7e15332..5edf70ee46 100644 --- a/ports/mimxrt/boards/MIMXRT1062.ld +++ b/ports/mimxrt/boards/MIMXRT1062.ld @@ -8,8 +8,8 @@ ivt_size = 0x00001000; interrupts_start = 0x60002000; interrupts_size = 0x00000400; text_start = 0x60002400; -text_size = ((((text_start) + 1M) + (4k - 1)) & ~(4k - 1)) - (text_start); /* reserve 1M for code but align on 4k boundary */ -vfs_start = (text_start) + (text_size); +vfs_start = 0x60100000; +text_size = ((vfs_start) - (text_start)); vfs_size = ((flash_end) - (vfs_start)); itcm_start = 0x00000000; itcm_size = 0x00020000; diff --git a/ports/mimxrt/boards/TEENSY40/mpconfigboard.mk b/ports/mimxrt/boards/TEENSY40/mpconfigboard.mk index 0f818af42c..beab16c086 100644 --- a/ports/mimxrt/boards/TEENSY40/mpconfigboard.mk +++ b/ports/mimxrt/boards/TEENSY40/mpconfigboard.mk @@ -5,5 +5,3 @@ MICROPY_FLOAT_IMPL = double deploy: $(BUILD)/firmware.hex teensy_loader_cli --mcu=imxrt1062 -v -w $< - sleep 1 - $(PYTHON) $(TOP)/tools/pyboard.py --device $(PORT) $(BOARD_DIR)/format.py