aboutsummaryrefslogtreecommitdiff
path: root/linker
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2023-01-19 00:03:18 -0700
committerJosh Rahm <joshuarahm@gmail.com>2023-01-19 00:03:18 -0700
commite5d891fbb9c672cf8c5ec31d7540a9e55747b3a0 (patch)
treecf95d840084dbcc10fc0e1fe0d0b0c80e1e23b95 /linker
parente4a979594d3df9e158051636a373501942caf044 (diff)
downloadch573-e5d891fbb9c672cf8c5ec31d7540a9e55747b3a0.tar.gz
ch573-e5d891fbb9c672cf8c5ec31d7540a9e55747b3a0.tar.bz2
ch573-e5d891fbb9c672cf8c5ec31d7540a9e55747b3a0.zip
Switch to use CMake
Diffstat (limited to 'linker')
-rw-r--r--linker/ls.ld18
1 files changed, 18 insertions, 0 deletions
diff --git a/linker/ls.ld b/linker/ls.ld
new file mode 100644
index 0000000..dbac92b
--- /dev/null
+++ b/linker/ls.ld
@@ -0,0 +1,18 @@
+MEMORY
+{
+ flash : org = 0x00000000, len = 512k
+ sram : org = 0x20003800, len = 18k
+}
+
+SECTIONS
+{
+ gpio_a = ABSOLUTE(0x400010A0);
+ gpio_b = ABSOLUTE(0x400010C0);
+
+ . = ORIGIN(flash);
+ .text : ALIGN(0x04) {
+ *(.isr_vector);
+ . = ALIGN(0x100);
+ *(.text);
+ } >flash AT>flash
+}