stm32f1x_cl: Add initial support for STM32F1x connectivity line
This currently supports the stm32f107, but support will be added for the F105 shortly (missing a linker script and I can't properly test without a devkit).
This commit is contained in:
parent
0a88373add
commit
5c6018f0e2
9 changed files with 376 additions and 0 deletions
54
cpu/arm/stm32f1x_cl/STM32F107VCT.ld
Normal file
54
cpu/arm/stm32f1x_cl/STM32F107VCT.ld
Normal file
|
@ -0,0 +1,54 @@
|
|||
MEMORY
|
||||
{
|
||||
CODE (rx) : ORIGIN = 0x08000000, LENGTH = 256K
|
||||
DATA (xrw) : ORIGIN = 0x20000000, LENGTH = 64K
|
||||
}
|
||||
|
||||
/* Section Definitions */
|
||||
|
||||
EXTERN (vector_table)
|
||||
ENTRY(reset_handler)
|
||||
SECTIONS
|
||||
{
|
||||
|
||||
/* Make sure the vector table is at address 0 */
|
||||
|
||||
.text : {
|
||||
*(.vectors)
|
||||
*(.text*)
|
||||
. = ALIGN(4);
|
||||
*(.rodata*)
|
||||
. = ALIGN(4);
|
||||
} >CODE
|
||||
|
||||
. = ALIGN(4);
|
||||
_etext = . ;
|
||||
PROVIDE (etext = .);
|
||||
|
||||
.data :
|
||||
{
|
||||
_data = . ;
|
||||
*(.data)
|
||||
. = ALIGN(4);
|
||||
_edata = . ;
|
||||
PROVIDE (_edata = .);
|
||||
} >DATA AT >CODE
|
||||
_data_loadaddr = LOADADDR(.data);
|
||||
|
||||
/* .bss section which is used for uninitialized data */
|
||||
|
||||
.bss :
|
||||
{
|
||||
__bss_start = . ;
|
||||
__bss_start__ = . ;
|
||||
*(.bss)
|
||||
*(COMMON)
|
||||
. = ALIGN(4);
|
||||
_ebss = . ;
|
||||
} >DATA
|
||||
. = ALIGN(4);
|
||||
|
||||
_end = .;
|
||||
PROVIDE (_end = .);
|
||||
}
|
||||
PROVIDE(_stack = ORIGIN(DATA) + LENGTH(DATA));
|
Loading…
Add table
Add a link
Reference in a new issue