]> git.gag.com Git - fw/altos/commitdiff
quantimotor-v2: Use LPC11U12-specific linker script
authorKeith Packard <keithp@keithp.com>
Tue, 6 May 2025 19:46:08 +0000 (12:46 -0700)
committerKeith Packard <keithp@keithp.com>
Tue, 6 May 2025 19:47:08 +0000 (12:47 -0700)
And switch the usual script back to LPC11U14 memory size.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/lpc/Makefile.defs
src/lpc/altos-lpc11u12.ld [new file with mode: 0644]
src/lpc/altos.ld
src/quantimotor-v2/Makefile

index 9b1554c7aa0b4fa3cb6d027f8f6cd1bb17abac96..dd3d8af791209e435514079d3301eb53a97bd9b7 100644 (file)
@@ -5,8 +5,12 @@ endif
 ifdef RAMSIZE
 LINKER_SCRIPT=altos-$(RAMSIZE).ld
 else
+ifdef LPC11U12
+LINKER_SCRIPT=altos-lpc11u12.ld
+else
 LINKER_SCRIPT=altos.ld
 endif
+endif
 
 include $(TOPDIR)/lpc/Makefile-lpc.defs
 
diff --git a/src/lpc/altos-lpc11u12.ld b/src/lpc/altos-lpc11u12.ld
new file mode 100644 (file)
index 0000000..c2e913c
--- /dev/null
@@ -0,0 +1,26 @@
+/*
+ * Copyright © 2025 Keith Packard <keithp@keithp.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+ */
+
+__flash = 0x1000;
+__flash_size = 12K;
+__ram = 0x10000000;
+__ram_size = 4k;
+__stack_size = 128;
+
+INCLUDE registers.ld
+INCLUDE picolibc.ld
index eea57db8411e89a83ddb3edff725e9bc1bfcfda9..3e0157300fb2d4c86a0ac2d0631b7738d7318403 100644 (file)
@@ -17,7 +17,7 @@
  */
 
 __flash = 0x1000;
-__flash_size = 12K;
+__flash_size = 28K;
 __ram = 0x10000000;
 __ram_size = 4k;
 __stack_size = 128;
index c4fd6cba9ccac3a109c872cc630200b3be2be5e1..c23f9571a8b63c9a3c11057c26f65fb1a714115e 100644 (file)
@@ -3,6 +3,10 @@
 #
 #
 
+# use the 11u12 linker script
+
+LPC11U12=1
+
 include ../lpc/Makefile.defs
 
 INC = \