Skip to content

Commit

Permalink
Switch to thumbv7em-none-eabi
Browse files Browse the repository at this point in the history
Ferrocene supports that already.
  • Loading branch information
Urhengulas committed May 7, 2024
1 parent 39ff25e commit a30c097
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

env:
CARGO_TERM_COLOR: always
CORE_TARGET: thumbv7m-none-eabi # needed by `core`
CORE_TARGET: thumbv7em-none-eabi # needed by `core`

jobs:
test:
Expand Down
4 changes: 2 additions & 2 deletions test-flip-link-app/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[target.thumbv7m-none-eabi]
[target.thumbv7em-none-eabi]
runner = "qemu-system-arm -cpu cortex-m3 -machine lm3s6965evb -nographic -semihosting-config enable=on,target=native -kernel"
rustflags = [
"-C", "linker=flip-link",
"-C", "link-arg=-Tlink.x",
]

[build]
target = "thumbv7m-none-eabi"
target = "thumbv7em-none-eabi"
2 changes: 1 addition & 1 deletion tests/verify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const CRATE: &str = "test-flip-link-app";
/// Example firmware in `$CRATE/examples`
const FILES: [&str; 4] = ["crash", "exception", "hello", "panic"];
/// Compilation target firmware is build for
const TARGET: &str = "thumbv7m-none-eabi";
const TARGET: &str = "thumbv7em-none-eabi";

type Result<T> = std::result::Result<T, Box<dyn std::error::Error>>;

Expand Down
2 changes: 1 addition & 1 deletion xtest/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ mod cargo {
mod rustup {
use super::*;

const TARGET: &str = "thumbv7m-none-eabi";
const TARGET: &str = "thumbv7em-none-eabi";

pub fn install_target() -> Result<()> {
let status = Command::new("rustup")
Expand Down

0 comments on commit a30c097

Please sign in to comment.