aboutsummaryrefslogtreecommitdiff
path: root/hexedit/pico_ram_only.ld
diff options
context:
space:
mode:
Diffstat (limited to 'hexedit/pico_ram_only.ld')
-rw-r--r--hexedit/pico_ram_only.ld14
1 files changed, 14 insertions, 0 deletions
diff --git a/hexedit/pico_ram_only.ld b/hexedit/pico_ram_only.ld
new file mode 100644
index 0000000..1185af5
--- /dev/null
+++ b/hexedit/pico_ram_only.ld
@@ -0,0 +1,14 @@
+ENTRY(main)
+
+MEMORY {
+ FLASH(rx) : ORIGIN = 0x10000000, LENGTH = 2M
+ SRAM(rwx) : ORIGIN = 0x20000000, LENGTH = 264K
+}
+
+SECTIONS {
+ .text : {
+ main.o(.text);
+ *(.text);
+ . = ALIGN(4);
+ } > SRAM
+}