/* RP2040 with 2 MiB of QSPI flash. * * The boot ROM reads the first 256 bytes of flash into RAM and executes them to * bring up XIP, so .boot2 must sit at the very start and the vector table must * follow immediately after it. */ MEMORY { BOOT2 : ORIGIN = 0x10000000, LENGTH = 0x100 FLASH : ORIGIN = 0x10000100, LENGTH = 2048K - 0x100 /* The four 64 KiB SRAM banks are striped, so treat them as one region. */ RAM : ORIGIN = 0x20000000, LENGTH = 256K } EXTERN(BOOT2_FIRMWARE) SECTIONS { .boot2 ORIGIN(BOOT2) : { KEEP(*(.boot2)); } > BOOT2 } INSERT BEFORE .text;