Allow flashing using DapperMime RP2040 probe
This commit is contained in:
parent
3b4d6269fd
commit
92bba4e46f
|
@ -2,7 +2,7 @@
|
||||||
target = "thumbv6m-none-eabi"
|
target = "thumbv6m-none-eabi"
|
||||||
|
|
||||||
[target.thumbv6m-none-eabi]
|
[target.thumbv6m-none-eabi]
|
||||||
runner = "elf2uf2-rs -d" # "probe-run --chip RP2040"
|
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",
|
||||||
|
|
21
Cargo.lock
generated
21
Cargo.lock
generated
|
@ -208,7 +208,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "embassy-cortex-m"
|
name = "embassy-cortex-m"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+https://github.com/embassy-rs/embassy#22c32b5d5ccaea49d6cf9a08a88433928c1609d3"
|
source = "git+https://github.com/embassy-rs/embassy#573c433f64a049d4e0d501df1194c3228aae0863"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"atomic-polyfill 1.0.1",
|
"atomic-polyfill 1.0.1",
|
||||||
"cfg-if",
|
"cfg-if",
|
||||||
|
@ -223,7 +223,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "embassy-embedded-hal"
|
name = "embassy-embedded-hal"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+https://github.com/embassy-rs/embassy#22c32b5d5ccaea49d6cf9a08a88433928c1609d3"
|
source = "git+https://github.com/embassy-rs/embassy#573c433f64a049d4e0d501df1194c3228aae0863"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"embassy-sync",
|
"embassy-sync",
|
||||||
"embedded-hal 0.2.7",
|
"embedded-hal 0.2.7",
|
||||||
|
@ -237,7 +237,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "embassy-executor"
|
name = "embassy-executor"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+https://github.com/embassy-rs/embassy#22c32b5d5ccaea49d6cf9a08a88433928c1609d3"
|
source = "git+https://github.com/embassy-rs/embassy#573c433f64a049d4e0d501df1194c3228aae0863"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"atomic-polyfill 1.0.1",
|
"atomic-polyfill 1.0.1",
|
||||||
"cfg-if",
|
"cfg-if",
|
||||||
|
@ -252,12 +252,12 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "embassy-futures"
|
name = "embassy-futures"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+https://github.com/embassy-rs/embassy#22c32b5d5ccaea49d6cf9a08a88433928c1609d3"
|
source = "git+https://github.com/embassy-rs/embassy#573c433f64a049d4e0d501df1194c3228aae0863"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "embassy-hal-common"
|
name = "embassy-hal-common"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+https://github.com/embassy-rs/embassy#22c32b5d5ccaea49d6cf9a08a88433928c1609d3"
|
source = "git+https://github.com/embassy-rs/embassy#573c433f64a049d4e0d501df1194c3228aae0863"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"num-traits",
|
"num-traits",
|
||||||
]
|
]
|
||||||
|
@ -265,7 +265,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "embassy-macros"
|
name = "embassy-macros"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+https://github.com/embassy-rs/embassy#22c32b5d5ccaea49d6cf9a08a88433928c1609d3"
|
source = "git+https://github.com/embassy-rs/embassy#573c433f64a049d4e0d501df1194c3228aae0863"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"darling",
|
"darling",
|
||||||
"proc-macro2",
|
"proc-macro2",
|
||||||
|
@ -276,7 +276,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "embassy-rp"
|
name = "embassy-rp"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+https://github.com/embassy-rs/embassy#22c32b5d5ccaea49d6cf9a08a88433928c1609d3"
|
source = "git+https://github.com/embassy-rs/embassy#573c433f64a049d4e0d501df1194c3228aae0863"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"atomic-polyfill 1.0.1",
|
"atomic-polyfill 1.0.1",
|
||||||
"cfg-if",
|
"cfg-if",
|
||||||
|
@ -316,7 +316,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "embassy-sync"
|
name = "embassy-sync"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+https://github.com/embassy-rs/embassy#22c32b5d5ccaea49d6cf9a08a88433928c1609d3"
|
source = "git+https://github.com/embassy-rs/embassy#573c433f64a049d4e0d501df1194c3228aae0863"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"atomic-polyfill 1.0.1",
|
"atomic-polyfill 1.0.1",
|
||||||
"cfg-if",
|
"cfg-if",
|
||||||
|
@ -329,7 +329,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "embassy-time"
|
name = "embassy-time"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+https://github.com/embassy-rs/embassy#22c32b5d5ccaea49d6cf9a08a88433928c1609d3"
|
source = "git+https://github.com/embassy-rs/embassy#573c433f64a049d4e0d501df1194c3228aae0863"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"atomic-polyfill 1.0.1",
|
"atomic-polyfill 1.0.1",
|
||||||
"cfg-if",
|
"cfg-if",
|
||||||
|
@ -343,7 +343,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "embassy-usb"
|
name = "embassy-usb"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+https://github.com/embassy-rs/embassy#22c32b5d5ccaea49d6cf9a08a88433928c1609d3"
|
source = "git+https://github.com/embassy-rs/embassy#573c433f64a049d4e0d501df1194c3228aae0863"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"defmt",
|
"defmt",
|
||||||
"embassy-futures",
|
"embassy-futures",
|
||||||
|
@ -559,6 +559,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "3ab1f00eac22bd18f8e5cae9555f2820b3a0c166b5b556ee3e203746ea6dcf3a"
|
checksum = "3ab1f00eac22bd18f8e5cae9555f2820b3a0c166b5b556ee3e203746ea6dcf3a"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cortex-m",
|
"cortex-m",
|
||||||
|
"defmt",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
|
|
@ -9,7 +9,7 @@ cortex-m-rt = "0.7.0"
|
||||||
|
|
||||||
defmt = "0.3"
|
defmt = "0.3"
|
||||||
defmt-rtt = "0.3"
|
defmt-rtt = "0.3"
|
||||||
panic-probe = "0.3"
|
panic-probe = { version = "0.3", features = ["print-defmt"] }
|
||||||
|
|
||||||
embassy-executor = { version = "0.1.0", git = "https://github.com/embassy-rs/embassy", features = ["defmt", "integrated-timers"] }
|
embassy-executor = { version = "0.1.0", git = "https://github.com/embassy-rs/embassy", features = ["defmt", "integrated-timers"] }
|
||||||
embassy-time = { version = "0.1.0", git = "https://github.com/embassy-rs/embassy", features = ["defmt", "defmt-timestamp-uptime"] }
|
embassy-time = { version = "0.1.0", git = "https://github.com/embassy-rs/embassy", features = ["defmt", "defmt-timestamp-uptime"] }
|
||||||
|
|
10
memory.x
10
memory.x
|
@ -3,3 +3,13 @@ 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