Skip to content
This repository was archived by the owner on Jul 29, 2025. It is now read-only.

Add a comment about updating the runner section #115

Open
wants to merge 1 commit 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
36 changes: 26 additions & 10 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,30 @@
# Configure defaults for Cargo that allow `cargo run`, `cargo build`, and
# `cargo test` to work for embedded (or emulated) targets.

[build]
# Pick ONE of these compilation targets to be Cargo's default
# target = "thumbv6m-none-eabi" # Cortex-M0 and Cortex-M0+
target = "thumbv7m-none-eabi" # Cortex-M3
# target = "thumbv7em-none-eabi" # Cortex-M4 and Cortex-M7 (no FPU)
# target = "thumbv7em-none-eabihf" # Cortex-M4F and Cortex-M7F (with FPU)
# target = "thumbv8m.base-none-eabi" # Cortex-M23
# target = "thumbv8m.main-none-eabi" # Cortex-M33 (no FPU)
# target = "thumbv8m.main-none-eabihf" # Cortex-M33 (with FPU)

[target.thumbv7m-none-eabi]
# If you change the target in the `[build]` section above, you will need to
# update the target triple in this section's name to match. If you commonly
# use more than one target, you will need to duplicate this section.
#
# uncomment this to make `cargo run` execute programs on QEMU
# runner = "qemu-system-arm -cpu cortex-m3 -machine lm3s6965evb -nographic -semihosting-config enable=on,target=native -kernel"
# runner = """
# qemu-system-arm \
# -cpu cortex-m3 \ # Change this as apropriate for the target
# -machine lm3s6965evb \
# -nographic \
# -semihosting-config enable=on,target=native \
# -kernel
# """

[target.'cfg(all(target_arch = "arm", target_os = "none"))']
# uncomment ONE of these three option to make `cargo run` start a GDB session
Expand Down Expand Up @@ -29,12 +53,4 @@ rustflags = [
# "-C", "link-arg=-nostartfiles",
]

[build]
# Pick ONE of these compilation targets
# target = "thumbv6m-none-eabi" # Cortex-M0 and Cortex-M0+
target = "thumbv7m-none-eabi" # Cortex-M3
# target = "thumbv7em-none-eabi" # Cortex-M4 and Cortex-M7 (no FPU)
# target = "thumbv7em-none-eabihf" # Cortex-M4F and Cortex-M7F (with FPU)
# target = "thumbv8m.base-none-eabi" # Cortex-M23
# target = "thumbv8m.main-none-eabi" # Cortex-M33 (no FPU)
# target = "thumbv8m.main-none-eabihf" # Cortex-M33 (with FPU)