2019-03-20 18:35:30 +00:00
|
|
|
/* Copyright 2019 SoloKeys Developers */
|
|
|
|
/* */
|
|
|
|
/* Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or */
|
|
|
|
/* http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or */
|
|
|
|
/* http://opensource.org/licenses/MIT>, at your option. This file may not be */
|
|
|
|
/* copied, modified, or distributed except according to those terms. */
|
2018-10-17 04:32:32 +00:00
|
|
|
|
|
|
|
ENTRY(Reset_Handler)
|
|
|
|
|
2019-03-20 18:35:30 +00:00
|
|
|
/* End of RAM */
|
|
|
|
_estack = 0x2000c000;
|
|
|
|
|
|
|
|
_MIN_STACK_SIZE = 0x400;
|
2018-10-17 04:32:32 +00:00
|
|
|
|
|
|
|
MEMORY
|
|
|
|
{
|
2019-03-22 17:54:42 +00:00
|
|
|
flash (rx) : ORIGIN = 0x08008000, LENGTH = 186K - 8
|
2019-03-22 01:03:49 +00:00
|
|
|
ram (xrw) : ORIGIN = 0x20000000, LENGTH = 48K
|
2019-03-20 18:35:30 +00:00
|
|
|
sram2 (rw) : ORIGIN = 0x10000000, LENGTH = 16K
|
2018-10-17 04:32:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
SECTIONS
|
|
|
|
{
|
2019-03-20 18:35:30 +00:00
|
|
|
.isr_vector :
|
|
|
|
{
|
|
|
|
. = ALIGN(8);
|
|
|
|
KEEP(*(.isr_vector))
|
|
|
|
. = ALIGN(8);
|
|
|
|
} >flash
|
|
|
|
|
|
|
|
.text :
|
|
|
|
{
|
|
|
|
. = ALIGN(8);
|
|
|
|
*(.text*)
|
|
|
|
*(.rodata*)
|
|
|
|
KEEP(*(.init))
|
|
|
|
KEEP(*(.finit))
|
|
|
|
. = ALIGN(8);
|
|
|
|
_etext = .;
|
|
|
|
} >flash
|
|
|
|
|
|
|
|
_sidata = LOADADDR(.data);
|
|
|
|
|
|
|
|
.data :
|
|
|
|
{
|
|
|
|
. = ALIGN(8);
|
|
|
|
_sdata = .;
|
|
|
|
*(.data*)
|
|
|
|
. = ALIGN(8);
|
|
|
|
_edata = .;
|
|
|
|
} >ram AT> flash
|
|
|
|
|
|
|
|
.bss :
|
|
|
|
{
|
|
|
|
. = ALIGN(4);
|
|
|
|
_sbss = .;
|
|
|
|
__bss_start__ = _sbss;
|
|
|
|
*(.bss*)
|
|
|
|
*(COMMON)
|
|
|
|
. = ALIGN(4);
|
|
|
|
_ebss = .;
|
|
|
|
__bss_end__ = _ebss;
|
|
|
|
} > ram
|
|
|
|
|
|
|
|
._stack :
|
|
|
|
{
|
|
|
|
. = ALIGN(8);
|
|
|
|
end = .;
|
|
|
|
_end = .;
|
|
|
|
. = . + _MIN_STACK_SIZE;
|
|
|
|
. = ALIGN(8);
|
|
|
|
} > ram
|
2018-10-17 04:32:32 +00:00
|
|
|
|
|
|
|
}
|