diff options
Diffstat (limited to '.cargo')
| -rw-r--r-- | .cargo/flash_algo.toml | 11 | ||||
| -rw-r--r-- | .cargo/imxrt1010.toml | 12 | ||||
| -rw-r--r-- | .cargo/imxrt1040.toml | 12 | ||||
| -rw-r--r-- | .cargo/imxrt1170.toml | 12 |
4 files changed, 47 insertions, 0 deletions
diff --git a/.cargo/flash_algo.toml b/.cargo/flash_algo.toml new file mode 100644 index 0000000..51a41a8 --- /dev/null +++ b/.cargo/flash_algo.toml @@ -0,0 +1,11 @@ +[build] +target = "thumbv7em-none-eabi" + +[target.'cfg(all(target_os = "none", target_arch = "arm"))'] +rustflags = [ + "-Clink-arg=-nmagic", + "-Clink-arg=-Tlink.x", + "-Clink-arg=-Tmemory.x", + "-Clink-arg=-Tdefmt.x", +] +runner = "target-gen elf --fixed-load-address" diff --git a/.cargo/imxrt1010.toml b/.cargo/imxrt1010.toml new file mode 100644 index 0000000..645c968 --- /dev/null +++ b/.cargo/imxrt1010.toml @@ -0,0 +1,12 @@ +[build] +target = "thumbv7em-none-eabihf" +target-dir = "target/imxrt1010" + +[target.thumbv7em-none-eabihf] +runner = "probe-rs run --chip=mimxrt1010" +rustflags = [ + "-Clink-arg=--nmagic", + "-Clink-arg=-Timxrt-link.x", + "-Clink-arg=-Tdefmt.x", + "-Ctarget-cpu=cortex-m7", +] diff --git a/.cargo/imxrt1040.toml b/.cargo/imxrt1040.toml new file mode 100644 index 0000000..2223c2d --- /dev/null +++ b/.cargo/imxrt1040.toml @@ -0,0 +1,12 @@ +[build] +target = "thumbv7em-none-eabihf" +target-dir = "target/imxrt1040" + +[target.thumbv7em-none-eabihf] +runner = "probe-rs run --chip=mimxrt1040" +rustflags = [ + "-Clink-arg=--nmagic", + "-Clink-arg=-Timxrt-link.x", + "-Clink-arg=-Tdefmt.x", + "-Ctarget-cpu=cortex-m7", +] diff --git a/.cargo/imxrt1170.toml b/.cargo/imxrt1170.toml new file mode 100644 index 0000000..1648dbb --- /dev/null +++ b/.cargo/imxrt1170.toml @@ -0,0 +1,12 @@ +[build] +target = "thumbv7em-none-eabihf" +target-dir = "target/imxrt1170" + +[target.thumbv7em-none-eabihf] +runner = "probe-rs run --chip=mimxrt1170" +rustflags = [ + "-Clink-arg=--nmagic", + "-Clink-arg=-Timxrt-link.x", + "-Clink-arg=-Tdefmt.x", + "-Ctarget-cpu=cortex-m7", +] |
