rp2040

RP2040 Programming without SDK
Log | Files | Refs

memmap.ld (740B)


      1 MEMORY
      2 {
      3 	FLASH(rx) : ORIGIN = 0x10000000, LENGTH = 2m
      4 	SRAM(rwx) : ORIGIN = 0x20000000, LENGTH = 256k
      5 	SRAM4(rwx) : ORIGIN = 0x20040000, LENGTH = 4k
      6 }
      7 
      8 SECTIONS
      9 {
     10 	.flash : {
     11 		*(.boot2)
     12 		. = 0x100;
     13 		*(.vectors)
     14 	} > FLASH
     15 	.text : {
     16 		kernel_start = .;
     17 		*(.text)
     18 	} > SRAM4 AT > FLASH
     19 	.data : ALIGN(4) {
     20 		*(.data)
     21 	} > SRAM4 AT > FLASH
     22 	.rodata : ALIGN(4) {
     23 		*(.rodata)
     24 		*(.got*)
     25 		kernel_end = .;
     26 	} > SRAM4 AT > FLASH
     27 	prog_start = LOADADDR(.text);
     28 	prog_size = kernel_end - kernel_start;
     29 	.proc0 0x20000000 : {
     30 		*(.proc0)
     31 	} > SRAM AT > FLASH
     32 	proc0_start = LOADADDR(.proc0);
     33 	proc0_size = SIZEOF(.proc0);
     34 	.proc1 0x20000100 : {
     35 		*(.proc1)
     36 	} > SRAM AT > FLASH
     37 	proc1_start = LOADADDR(.proc1);
     38 	proc1_size = SIZEOF(.proc1);
     39 }