aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lpc176x/Kconfig9
-rw-r--r--src/lpc176x/Makefile2
2 files changed, 10 insertions, 1 deletions
diff --git a/src/lpc176x/Kconfig b/src/lpc176x/Kconfig
index fa80c463..372b7007 100644
--- a/src/lpc176x/Kconfig
+++ b/src/lpc176x/Kconfig
@@ -25,6 +25,15 @@ config CLOCK_FREQ
default 25000000 if MACH_LPC1768 # 100000000 / 4
default 30000000 if MACH_LPC1769 # 120000000 / 4
+config SMOOTHIEWARE_BOOTLOADER
+ bool "Target board uses Smoothieware bootloader"
+ default y
+
+config FLASH_START
+ hex
+ default 0x4000 if SMOOTHIEWARE_BOOTLOADER
+ default 0x0000
+
config USBSERIAL
bool "Use USB for communication (instead of serial)"
default y
diff --git a/src/lpc176x/Makefile b/src/lpc176x/Makefile
index 94e6a268..7edd26eb 100644
--- a/src/lpc176x/Makefile
+++ b/src/lpc176x/Makefile
@@ -33,7 +33,7 @@ target-y := $(OUT)LPC1768.ld $(target-y)
$(OUT)LPC1768.ld: lib/lpc176x/device/TOOLCHAIN_GCC_ARM/LPC1768.ld $(OUT)board-link
@echo " Preprocessing $@"
- $(Q)$(CPP) -P -MD -MT $@ $< -o $@
+ $(Q)$(CPP) -P -MD -MT $@ -DMBED_APP_START=$(CONFIG_FLASH_START) -DMBED_APP_SIZE="(512K - $(CONFIG_FLASH_START))" $< -o $@
# Build the additional bin output file
target-y += $(OUT)klipper.bin