# HG changeset patch # User Ethan Zonca # Date 2014-07-09 16:41:08 # Node ID 9fdc9e276115ecb4c7abc3ccdd15435ecbddbf88 # Parent 676f49902c7d798340d7512635af6fb566c3e3d8 Fixed linkerfile diff --git a/stm32-flash.ld b/stm32-flash.ld --- a/stm32-flash.ld +++ b/stm32-flash.ld @@ -33,7 +33,7 @@ ENTRY(Reset_Handler) /* Highest address of the user mode stack */ -_estack = 0x20004000; /* end of 16K RAM */ +_estack = 0x20001000; /* end of 4K RAM */ /* Generate a link error if heap and stack don't fit into RAM */ _Min_Heap_Size = 0x200; /* required amount of heap */ @@ -42,8 +42,8 @@ ENTRY(Reset_Handler) /* Specify the memory areas */ MEMORY { - FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 256K - RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 16K + FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 32K + RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 4K MEMORY_B1 (rx) : ORIGIN = 0x60000000, LENGTH = 0K }