summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrobert-hh <robert@hammelrath.com>2021-06-08 13:34:53 +0200
committerDamien George <damien@micropython.org>2021-06-26 22:27:02 +1000
commitb35566af799ccb76711d228f1314f7df53ee42bc (patch)
tree69c14f51288e022378ee7edffc56c45dafecad64
parenta262faa2274e4c6297e735afe2a6c944ce58fd70 (diff)
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.
-rw-r--r--ports/mimxrt/boards/MIMXRT1062.ld4
-rw-r--r--ports/mimxrt/boards/TEENSY40/mpconfigboard.mk2
2 files changed, 2 insertions, 4 deletions
diff --git a/ports/mimxrt/boards/MIMXRT1062.ld b/ports/mimxrt/boards/MIMXRT1062.ld
index 5ab7e1533..5edf70ee4 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 0f818af42..beab16c08 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