aboutsummaryrefslogtreecommitdiff
path: root/cortex-m-rt/memory.x
diff options
context:
space:
mode:
Diffstat (limited to 'cortex-m-rt/memory.x')
-rw-r--r--cortex-m-rt/memory.x19
1 files changed, 19 insertions, 0 deletions
diff --git a/cortex-m-rt/memory.x b/cortex-m-rt/memory.x
new file mode 100644
index 0000000..8027efc
--- /dev/null
+++ b/cortex-m-rt/memory.x
@@ -0,0 +1,19 @@
+/* Device specific memory layout */
+
+MEMORY
+{
+ /* FLASH and RAM are mandatory memory regions */
+ FLASH : ORIGIN = 0x08000000, LENGTH = 64K
+ RAM : ORIGIN = 0x20000000, LENGTH = 20K
+
+ /* More memory regions can declared: for example this is a second RAM region */
+ /* CCRAM : ORIGIN = 0x10000000, LENGTH = 8K */
+}
+
+/* The location of the stack can be overridden using the `_stack_start` symbol.
+ By default it will be placed at the end of the RAM region */
+/* _stack_start = ORIGIN(CCRAM) + LENGTH(CCRAM); */
+
+/* The location of the .text section can be overridden using the `_stext` symbol.
+ By default it will place after .vector_table */
+/* _stext = ORIGIN(FLASH) + 0x100; */