diff options
author | Stefan Agner <stefan.agner@toradex.com> | 2016-12-01 17:38:04 -0800 |
---|---|---|
committer | Stefan Agner <stefan.agner@toradex.com> | 2016-12-02 10:25:01 -0800 |
commit | 0c5d4d438d4118c7931e6168fc59192e5f253762 (patch) | |
tree | 8839085b70fefacc91e8976901a5788f1223145a | |
parent | 09814914eb07f670e5b6d65c86ca18cbc76d4d73 (diff) |
increase and move location of memory in OCRAM linker file
Move the memory (m_data) area in the OCRAM linker file to the
EPDC OCRAM area. Also use the code bus for the code area instead
of the system bus which should improve performance. This allows
firmware of up to ~64KiB and memory of 128KiB.
Note: To get more heap space in FreeRTOS configTOTAL_HEAP_SIZE in
FreeRTOSConfig.h needs to be adjusted as well.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
-rw-r--r-- | platform/devices/MCIMX7D/linker/gcc/MCIMX7D_M4_ocram.ld | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/platform/devices/MCIMX7D/linker/gcc/MCIMX7D_M4_ocram.ld b/platform/devices/MCIMX7D/linker/gcc/MCIMX7D_M4_ocram.ld index 5653095..c74b792 100644 --- a/platform/devices/MCIMX7D/linker/gcc/MCIMX7D_M4_ocram.ld +++ b/platform/devices/MCIMX7D/linker/gcc/MCIMX7D_M4_ocram.ld @@ -55,9 +55,9 @@ STACK_SIZE = DEFINED(__stack_size__) ? __stack_size__ : 0x0400; /* Specify the memory areas */ MEMORY { - m_interrupts (RX) : ORIGIN = 0x20210000, LENGTH = 0x00000240 - m_text (RX) : ORIGIN = 0x20210240, LENGTH = 0x00007DC0 - m_data (RW) : ORIGIN = 0x20000000, LENGTH = 0x00008000 + m_interrupts (RX) : ORIGIN = 0x00910000, LENGTH = 0x00000240 + m_text (RX) : ORIGIN = 0x00910240, LENGTH = 0x0000fdc0 + m_data (RW) : ORIGIN = 0x20220000, LENGTH = 0x00020000 /* EPDC */ } __FLASH_START = ORIGIN(m_interrupts); |