You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
microzig/rp2040.ld

59 lines
969 B
Plaintext

/*
* This file was auto-generated by microzig
*
* Target CPU: ARM Cortex-M0+
* Target Chip: RP2040
*/
ENTRY(microzig_main);
MEMORY
{
flash0 (rx!w) : ORIGIN = 0x10000000, LENGTH = 0x00200000
ram0 (rw!x) : ORIGIN = 0x20000000, LENGTH = 0x00040000
}
SECTIONS
{
.boot2 : {
__boot2_start__ = .;
KEEP (*(.boot2))
__boot2_end__ = .;
} > flash0
ASSERT(__boot2_end__ - __boot2_start__ == 256,
"ERROR: Pico second stage bootloader must be 256 bytes in size")
.text :
{
KEEP(*(microzig_flash_start))
*(.text*)
*(.rodata*)
} > flash0
.ARM.exidx : {
*(.ARM.exidx* .gnu.linkonce.armexidx.*)
} >flash0
.flash1 :
{
*(.flash1)
} > flash1
.data :
{
microzig_data_start = .;
*(.data*)
microzig_data_end = .;
} > ram0 AT> flash0
.bss (NOLOAD) :
{
microzig_bss_start = .;
*(.bss*)
microzig_bss_end = .;
} > ram0
microzig_data_load_start = LOADADDR(.data);
}