summaryrefslogtreecommitdiff
path: root/platform/devices/MCIMX7D/linker/arm/MCIMX7D_M4_QSPIB.scf
diff options
context:
space:
mode:
Diffstat (limited to 'platform/devices/MCIMX7D/linker/arm/MCIMX7D_M4_QSPIB.scf')
-rwxr-xr-xplatform/devices/MCIMX7D/linker/arm/MCIMX7D_M4_QSPIB.scf36
1 files changed, 36 insertions, 0 deletions
diff --git a/platform/devices/MCIMX7D/linker/arm/MCIMX7D_M4_QSPIB.scf b/platform/devices/MCIMX7D/linker/arm/MCIMX7D_M4_QSPIB.scf
new file mode 100755
index 0000000..b7857af
--- /dev/null
+++ b/platform/devices/MCIMX7D/linker/arm/MCIMX7D_M4_QSPIB.scf
@@ -0,0 +1,36 @@
+#! armcc -E --cpu Cortex-M4
+
+#define m_text_start 0x68000000
+#define m_text_size 0x7FF0
+
+#define m_data_start 0x20000000
+#define m_data_size 0x7FF0
+
+#define HEAP_SIZE 0x200
+#define STACK_SIZE 0x400
+#define MY_ALIGN(address, alignment) ((address + (alignment-1)) AND ~(alignment-1))
+
+
+LR_m_text m_text_start m_text_size
+{
+ ER_m_text m_text_start m_text_size {
+ * (RESET,+FIRST)
+ * (InRoot$$Sections)
+ .ANY (+RO)
+ }
+
+ RW_m_data m_data_start { ; RW data
+ .ANY (+RW )
+ }
+ ZI_m_data +0 { ; ZI data
+ .ANY (+ZI )
+ }
+
+ ARM_LIB_HEAP (m_data_start+m_data_size-HEAP_SIZE-STACK_SIZE) EMPTY HEAP_SIZE
+ { ; Heap region growing up
+ }
+ ARM_LIB_STACK (m_data_start+m_data_size) EMPTY -STACK_SIZE
+ { ; Stack region growing down
+ }
+
+}