|
|
|
@ -4,8 +4,8 @@ |
|
|
|
|
|
|
|
|
|
** File : stm32_flash.ld |
|
|
|
|
** |
|
|
|
|
** Abstract : Linker script for STM32F103RB Device with |
|
|
|
|
** 128KByte FLASH, 20KByte RAM |
|
|
|
|
** Abstract : Linker script for STM32F103C6 Device with |
|
|
|
|
** 328KByte FLASH, 10KByte RAM |
|
|
|
|
** |
|
|
|
|
** Set heap size, stack size and stack location according |
|
|
|
|
** to application requirements. |
|
|
|
@ -32,7 +32,7 @@ |
|
|
|
|
ENTRY(Reset_Handler) |
|
|
|
|
|
|
|
|
|
/* Highest address of the user mode stack */ |
|
|
|
|
_estack = 0x20005000; /* end of RAM */ |
|
|
|
|
_estack = 0x20002800; /* end of RAM */ |
|
|
|
|
/* Generate a link error if heap and stack don't fit into RAM */ |
|
|
|
|
_Min_Heap_Size = 0x200; /* required amount of heap */ |
|
|
|
|
_Min_Stack_Size = 0x400; /* required amount of stack */ |
|
|
|
@ -40,8 +40,8 @@ _Min_Stack_Size = 0x400; /* required amount of stack */ |
|
|
|
|
/* Specify the memory areas */ |
|
|
|
|
MEMORY |
|
|
|
|
{ |
|
|
|
|
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 20K |
|
|
|
|
FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 24K |
|
|
|
|
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 10K |
|
|
|
|
FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 32K |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/* Define output sections */ |
|
|
|
|