Added more comments
Added comments about M3/M4 cpu and alignment requirements.
This commit is contained in:
parent
bfe0676079
commit
0f331293d0
29
linker.ld
29
linker.ld
|
@ -1,6 +1,8 @@
|
||||||
/*
|
/*
|
||||||
* Filename: linker.ld
|
* Filename: linker.ld
|
||||||
* Micro-Controller: stm32f103c8t6
|
* Micro-Controller: stm32f103c8t6
|
||||||
|
* Cortex-M3 and Cortex-M4 only need to be 4byte aligned where as
|
||||||
|
* other's might need 8byte or something differnt.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
@ -66,29 +68,30 @@ SECTIONS
|
||||||
} > RAM AT > FLASH
|
} > RAM AT > FLASH
|
||||||
|
|
||||||
/* BSS: Placed in SRAM memory types. */
|
/* BSS: Placed in SRAM memory types. */
|
||||||
|
/* Holds all uninitialized globals and static variables.*/
|
||||||
.bss :
|
.bss :
|
||||||
{
|
{
|
||||||
_sbss = .; /* */
|
_sbss = .; /* Start of BSS */
|
||||||
*(.bss) /**/
|
*(.bss) /* Uninitialized data */
|
||||||
*(COMMON) /**/
|
*(COMMON) /* Common symbols (zero-init) */
|
||||||
_ebss = .; /**/
|
_ebss = .; /* End of BSS */
|
||||||
} > RAM
|
} > RAM
|
||||||
|
|
||||||
/* Stack Section: */
|
/* Stack Section: Sizes known at compile time. */
|
||||||
._stack :
|
._stack :
|
||||||
{
|
{
|
||||||
. = ALIGN(8); /**/
|
. = ALIGN(8); /* Align to 8-byte boundry */
|
||||||
_estack = .; /**/
|
_estack = .; /* End of stack (top of the stack) */
|
||||||
. = . + 2048; /**/
|
. = . + 2048; /* Reserve 2KB for stack */
|
||||||
_sstack = .; /**/
|
_sstack = .; /*Start of stack */
|
||||||
} > RAM
|
} > RAM
|
||||||
|
|
||||||
/* Heap Section: */
|
/* Heap Section: Used for dynamic memory allocation. */
|
||||||
.heap :
|
.heap :
|
||||||
{
|
{
|
||||||
_sheap = .; /**/
|
_sheap = .; /* Start of heap */
|
||||||
. = . + 2048; /**/
|
. = . + 2048; /* Reserve 2 KB for heap */
|
||||||
_eheap = .; /**/
|
_eheap = .; /* End of heap */
|
||||||
} > RAM
|
} > RAM
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue