mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
36 lines
604 B
Plaintext
36 lines
604 B
Plaintext
ENTRY(main)
|
|
MEMORY
|
|
{
|
|
FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 128K
|
|
RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 20K
|
|
|
|
}
|
|
|
|
SECTIONS
|
|
{
|
|
.text :
|
|
{
|
|
KEEP(*(.isr_vector))
|
|
*(.text)
|
|
*(.text.*)
|
|
*(.rodata)
|
|
*(.rodata.*)
|
|
_sidata = .;
|
|
} >FLASH
|
|
|
|
/* Initialized data will initially be loaded in FLASH at the end of the .text section. */
|
|
.data : AT (_sidata)
|
|
{
|
|
_sdata = .;
|
|
*(.data) /* Initialized data */
|
|
_edata = .;
|
|
} >RAM
|
|
|
|
.bss : {
|
|
_sbss = .;
|
|
*(.bss) /* Zero-filled run time allocate data memory */
|
|
_ebss = .;
|
|
} >RAM
|
|
|
|
_estack = ORIGIN(RAM) + LENGTH(RAM);
|
|
} |