From af574683a1a9583d34a13deee2e41170295f7461 Mon Sep 17 00:00:00 2001
From: Tilman Sauerbeck <tilman@code-monkey.de>
Date: Mon, 17 Jun 2019 21:45:34 +0200
Subject: [PATCH] bootloader: Put the binary at offset 0x8000 in flash.

This generates a binary that can be loaded as an application,
which allows for easy testing of the code.
---
 src/bootloader/bootloader.ld | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/bootloader/bootloader.ld b/src/bootloader/bootloader.ld
index 8083a7e..55b6057 100644
--- a/src/bootloader/bootloader.ld
+++ b/src/bootloader/bootloader.ld
@@ -7,7 +7,8 @@
 /* Linker script to configure memory regions. */
 MEMORY
 {
-  FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0x40000   /* 256k */
+  FLASH (rx)
+    : ORIGIN = 0x00008000, LENGTH = 0x38000
 
   RAM (rwx)
     : ORIGIN = 0x1fffe000, LENGTH = 0x08000
-- 
2.30.2