summaryrefslogtreecommitdiffstats
path: root/app/crypto.ld
diff options
context:
space:
mode:
Diffstat (limited to 'app/crypto.ld')
-rw-r--r--app/crypto.ld15
1 files changed, 9 insertions, 6 deletions
diff --git a/app/crypto.ld b/app/crypto.ld
index b36fefa..a2d5a9c 100644
--- a/app/crypto.ld
+++ b/app/crypto.ld
@@ -17,13 +17,13 @@
* along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
-/* Linker script for STM32F101C8T6, 64K flash, 20K RAM). */
+/* Linker script for Olimex STM32-H103 (STM32F103RBT6, 128K flash, 20K RAM). */
/* Define memory regions. */
MEMORY
{
- rom (rx) : ORIGIN = 0x08000000, LENGTH = 64K
- ram (rwx) : ORIGIN = 0x20000000, LENGTH = 10K
+ rom (rx) : ORIGIN = 0x08002000, LENGTH = 120K
+ ram (rwx) : ORIGIN = 0x20000000, LENGTH = 20K
}
/* Include the common ld script. */
@@ -31,10 +31,13 @@ INCLUDE libopencm3_stm32f1.ld
dfu_shared_location = ORIGIN(ram) + LENGTH(ram) - 1024;
+/* PROVIDE(_stack = dfu_shared_location ); */
+
SECTIONS
{
- .dfu_shared dfu_shared_location :{
- dfu_flag = .;
- }
+ .dfu_shared dfu_shared_location :{
+ dfu_flag = .;
+ }
}
+