-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
29: use less unstable dependencies r=japaric a=japaric This PR and the ones at the bottom reduce the number of unstable features needed for Cortex-M development to a single one: `lang = "panic_fmt"`, which already has a path towards stabilization and which we hope to get on stable by 1.28. [Check out the temporary documentation](https://japaric.github.io/cortex-m-quickstart/cortex_m_quickstart/index.html) (we still need more docs) to try out this preview. We would love your input on [these unresolved questions](rust-embedded/cortex-m-rt#69 (comment)) This PR depends on: - rust-embedded/cortex-m-rt#69 - rust-embedded/cortex-m#88 - rust-embedded/panic-semihosting#2 - rust-embedded/svd2rust#203 - japaric/stm32f103xx#24 Co-authored-by: Jorge Aparicio <jorge@japaric.io>
- Loading branch information
Showing
33 changed files
with
1,035 additions
and
715 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,50 @@ | ||
[target.thumbv6m-none-eabi] | ||
runner = 'arm-none-eabi-gdb' | ||
rustflags = [ | ||
"-C", "link-arg=-Tlink.x", | ||
"-C", "linker=lld", | ||
"-Z", "linker-flavor=ld.lld", | ||
# "-C", "linker=arm-none-eabi-ld", | ||
# "-Z", "linker-flavor=ld", | ||
"-C", "link-arg=-Wl,-Tlink.x", | ||
"-C", "link-arg=-nostartfiles", | ||
|
||
# uncomment to use rustc LLD to link programs (a) | ||
# "-C", "link-arg=-Tlink.x", | ||
# "-C", "linker=lld", | ||
# "-Z", "linker-flavor=ld.lld", | ||
] | ||
|
||
[target.thumbv7m-none-eabi] | ||
runner = 'arm-none-eabi-gdb' | ||
rustflags = [ | ||
"-C", "link-arg=-Tlink.x", | ||
"-C", "linker=lld", | ||
"-Z", "linker-flavor=ld.lld", | ||
# "-C", "linker=arm-none-eabi-ld", | ||
# "-Z", "linker-flavor=ld", | ||
"-C", "link-arg=-Wl,-Tlink.x", | ||
"-C", "link-arg=-nostartfiles", | ||
|
||
# uncomment to use rustc LLD to link programs (a) | ||
# "-C", "link-arg=-Tlink.x", | ||
# "-C", "linker=lld", | ||
# "-Z", "linker-flavor=ld.lld", | ||
] | ||
|
||
[target.thumbv7em-none-eabi] | ||
runner = 'arm-none-eabi-gdb' | ||
rustflags = [ | ||
"-C", "link-arg=-Tlink.x", | ||
"-C", "linker=lld", | ||
"-Z", "linker-flavor=ld.lld", | ||
# "-C", "linker=arm-none-eabi-ld", | ||
# "-Z", "linker-flavor=ld", | ||
"-C", "link-arg=-Wl,-Tlink.x", | ||
"-C", "link-arg=-nostartfiles", | ||
|
||
# uncomment to use rustc LLD to link programs (a) | ||
# "-C", "link-arg=-Tlink.x", | ||
# "-C", "linker=lld", | ||
# "-Z", "linker-flavor=ld.lld", | ||
] | ||
|
||
[target.thumbv7em-none-eabihf] | ||
runner = 'arm-none-eabi-gdb' | ||
rustflags = [ | ||
"-C", "link-arg=-Tlink.x", | ||
"-C", "linker=lld", | ||
"-Z", "linker-flavor=ld.lld", | ||
# "-C", "linker=arm-none-eabi-ld", | ||
# "-Z", "linker-flavor=ld", | ||
"-C", "link-arg=-Wl,-Tlink.x", | ||
"-C", "link-arg=-nostartfiles", | ||
|
||
# uncomment to use rustc LLD to link programs (a) | ||
# "-C", "link-arg=-Tlink.x", | ||
# "-C", "linker=lld", | ||
# "-Z", "linker-flavor=ld.lld", | ||
] | ||
|
||
# (a) you also need to comment out the other two `link-arg` lines. But note that as of v0.6.0 LLD | ||
# has a bug where it mislinks FFI calls and they up crashing the program at runtime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
**/*.rs.bk | ||
.#* | ||
.gdb_history | ||
Cargo.lock | ||
target/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.