Skip to content

Instantly share code, notes, and snippets.

@dreamcat4
Created August 25, 2020 19:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dreamcat4/73dccadcbb506e462d81fbd3c28742c0 to your computer and use it in GitHub Desktop.
Save dreamcat4/73dccadcbb506e462d81fbd3c28742c0 to your computer and use it in GitHub Desktop.
# Cargo build options
# https://doc.rust-lang.org/cargo/reference/config.html
[target.thumbv7m-none-eabi]
runner = 'arm-none-eabi-gdb'
rustflags = [
"-C", "linker=arm-none-eabi-ld",
]
[target.thumbv7em-none-eabihf]
runner = 'arm-none-eabi-gdb'
rustflags = [
"-C", "link-arg=-Tlink.x",
]
[build]
# By default, build for ARM Cortex-M3 CPU.
target = "thumbv7m-none-eabi"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment