Simplify memory.x
by adding link-rp.x
to cargo rustflags. Closes #1.
This commit is contained in:
parent
ced9529639
commit
650e5530b7
|
@ -6,6 +6,7 @@ runner = "probe-run --chip RP2040" # "elf2uf2-rs -d"
|
||||||
rustflags = [
|
rustflags = [
|
||||||
"-C", "link-arg=--nmagic",
|
"-C", "link-arg=--nmagic",
|
||||||
"-C", "link-arg=-Tlink.x",
|
"-C", "link-arg=-Tlink.x",
|
||||||
|
"-C", "link-arg=-Tlink-rp.x",
|
||||||
"-C", "link-arg=-Tdefmt.x",
|
"-C", "link-arg=-Tdefmt.x",
|
||||||
"-C", "linker=flip-link",
|
"-C", "linker=flip-link",
|
||||||
"-C", "inline-threshold=5",
|
"-C", "inline-threshold=5",
|
||||||
|
|
10
memory.x
10
memory.x
|
@ -3,13 +3,3 @@ MEMORY {
|
||||||
FLASH : ORIGIN = 0x10000100, LENGTH = 2048K - 0x100
|
FLASH : ORIGIN = 0x10000100, LENGTH = 2048K - 0x100
|
||||||
RAM : ORIGIN = 0x20000000, LENGTH = 256K
|
RAM : ORIGIN = 0x20000000, LENGTH = 256K
|
||||||
}
|
}
|
||||||
|
|
||||||
EXTERN(BOOT2_FIRMWARE)
|
|
||||||
|
|
||||||
SECTIONS {
|
|
||||||
/* ### Boot loader */
|
|
||||||
.boot2 ORIGIN(BOOT2) :
|
|
||||||
{
|
|
||||||
KEEP(*(.boot2));
|
|
||||||
} > BOOT2
|
|
||||||
} INSERT BEFORE .text;
|
|
Loading…
Reference in a new issue