Skip to content

Melhuishj patch 1 #331

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions src/start/qemu.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,26 @@ cargo build --target thumbv7m-none-eabi
cargo build
```

> **NOTE**: If you encounter an error during this build step, you may need to switch
> to the GNU linker. This is achieved by commenting out the LLD linker and
> uncommenting the GNU linker in `.cargo/config` like below.
> ```toml
> # LLD (shipped with the Rust toolchain) is used as the default linker
> # "-C", "link-arg=-Tlink.x",
>
> # if you run into problems with LLD switch to the GNU linker by commenting out
> # this line
> "-C", "linker=arm-none-eabi-ld",
> ```
> At this point you should
> ```console
> cargo clean
> cargo build
> ```
> If you encounter ``error: linker `arm-none-eabi-ld` not found`` you will need to
> install `libnewlib-arm-none-eabi` (`sudo apt install libnewlib-arm-none-eabi` in
> Ubuntu/Debian). You may also need to `clean` before building again like above.

## Inspecting

Now we have a non-native ELF binary in `target/thumbv7m-none-eabi/debug/app`. We
Expand Down