From 0c5d4d438d4118c7931e6168fc59192e5f253762 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Thu, 1 Dec 2016 17:38:04 -0800 Subject: 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 --- platform/devices/MCIMX7D/linker/gcc/MCIMX7D_M4_ocram.ld | 6 +++--- 1 file 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); -- cgit v1.2.3