Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions variants/HY_TinySTM103T/ldscript.ld
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
*****************************************************************************
**

** File : LinkerScript.ld
** File : ldscript.ld
**
** Abstract : Linker script for STM32F103CBTx Device with
** 128KByte FLASH, 20KByte RAM
** Abstract : Linker script for STM32F103C(8-B)Tx Device with
** 32/64/128KByte FLASH, 10/20KByte RAM
**
** Set heap size, stack size and stack location according
** to application requirements.
Expand Down Expand Up @@ -52,16 +52,16 @@
ENTRY(Reset_Handler)

/* Highest address of the user mode stack */
_estack = 0x20005000; /* end of RAM */
_estack = 0x20000000 + LD_MAX_DATA_SIZE; /* 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 */

/* Specify the memory areas */
MEMORY
{
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 20K
FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 128K
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = LD_MAX_DATA_SIZE
Comment thread
fpistm marked this conversation as resolved.
Outdated
FLASH (rx) : ORIGIN = 0x8000000 + LD_FLASH_OFFSET, LENGTH = LD_MAX_SIZE - LD_FLASH_OFFSET
}

/* Define output sections */
Expand Down