Skip to content

Commit 7277147

Browse files
committed
Fix MIMXRT1015 memory map issue in target_MIMXRT1015xxxxx.py
Signed-off-by: Kris Wang <[email protected]>
1 parent df605c7 commit 7277147

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

pyocd/target/builtin/target_MIMXRT1015xxxxx.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -728,15 +728,14 @@ class MIMXRT1015xxxxx(IMXRT):
728728

729729
VENDOR = "NXP"
730730

731-
# Note: itcm, dtcm, and ocram share a single 128 KB block of RAM that can be configurably
732-
# divided between those regions (this is called FlexRAM). Thus, the memory map regions for
733-
# each of these RAMs allocate the maximum possible of 128 KB, but that is the maximum and
734-
# will not actually be available in all regions simultaneously.
731+
# Note: by default there are 64 KB ITCM, 64 KB DTCM and 128 KB OCRAM available for MIMXRT1015.
732+
# And it also has 256 KB FlexRAM that can be enabled and configured by GPR17, customers can
733+
# allocate this 256 KB FlexRAM to ITCM/DTCM/OCRAM, but the FlexRAM is not available by default.
735734
MEMORY_MAP = MemoryMap(
736-
RamRegion(name="itcm", start=0x00000000, length=0x8000), # 32 KB
735+
RamRegion(name="itcm", start=0x00000000, length=0x10000), # 64 KB
737736
RomRegion(name="romcp", start=0x00200000, length=0x18000), # 96 KB
738-
RamRegion(name="dtcm", start=0x20000000, length=0x8000), # 32 KB
739-
RamRegion(name="ocram", start=0x20200000, length=0x10000), # 64 KB
737+
RamRegion(name="dtcm", start=0x20000000, length=0x10000), # 64 KB
738+
RamRegion(name="ocram", start=0x20200000, length=0x20000), # 128 KB
740739
FlashRegion(name="flexspi", start=0x60000000, end=0x60ffffff, blocksize=0x1000, is_boot_memory=True,
741740
algo=FLASH_ALGO_QUADSPI, page_size=0x100),
742741
)

0 commit comments

Comments
 (0)