Merge pull request #7 from japaric/runner

set default runner to arm-none-eabi-gdb
This commit is contained in:
Jorge Aparicio
2017-05-26 15:17:04 -05:00
committed by GitHub
3 changed files with 15 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
[target.thumbv6m-none-eabi] [target.thumbv6m-none-eabi]
runner = 'arm-none-eabi-gdb'
rustflags = [ rustflags = [
"-C", "link-arg=-Tlink.x", "-C", "link-arg=-Tlink.x",
"-C", "linker=arm-none-eabi-ld", "-C", "linker=arm-none-eabi-ld",
@@ -6,6 +7,7 @@ rustflags = [
] ]
[target.thumbv7m-none-eabi] [target.thumbv7m-none-eabi]
runner = 'arm-none-eabi-gdb'
rustflags = [ rustflags = [
"-C", "link-arg=-Tlink.x", "-C", "link-arg=-Tlink.x",
"-C", "linker=arm-none-eabi-ld", "-C", "linker=arm-none-eabi-ld",
@@ -13,6 +15,7 @@ rustflags = [
] ]
[target.thumbv7em-none-eabi] [target.thumbv7em-none-eabi]
runner = 'arm-none-eabi-gdb'
rustflags = [ rustflags = [
"-C", "link-arg=-Tlink.x", "-C", "link-arg=-Tlink.x",
"-C", "linker=arm-none-eabi-ld", "-C", "linker=arm-none-eabi-ld",
@@ -20,6 +23,7 @@ rustflags = [
] ]
[target.thumbv7em-none-eabihf] [target.thumbv7em-none-eabihf]
runner = 'arm-none-eabi-gdb'
rustflags = [ rustflags = [
"-C", "link-arg=-Tlink.x", "-C", "link-arg=-Tlink.x",
"-C", "linker=arm-none-eabi-ld", "-C", "linker=arm-none-eabi-ld",

View File

@@ -6,7 +6,7 @@ keywords = ["arm", "cortex-m", "template"]
license = "MIT OR Apache-2.0" license = "MIT OR Apache-2.0"
name = "cortex-m-quickstart" name = "cortex-m-quickstart"
repository = "https://github.com/japaric/cortex-m-quickstart" repository = "https://github.com/japaric/cortex-m-quickstart"
version = "0.1.5" version = "0.1.6"
[dependencies] [dependencies]
cortex-m = "0.2.6" cortex-m = "0.2.6"

View File

@@ -121,6 +121,16 @@
//! $ arm-none-eabi-gdb target/.. //! $ arm-none-eabi-gdb target/..
//! ``` //! ```
//! //!
//! **NOTE** As of nightly-2017-05-14 or so and cortex-m-quickstart v0.1.6 you
//! can simply run `cargo run` or `cargo run --example $ex` to build and flash
//! the program, and immediately start a debug session. IOW, it lets you omit
//! `arm-none-eabi-gdb` command.
//!
//! ```
//! $ cargo run --example hello
//! > # drop you into GDB session
//! ```
//!
//! # Examples //! # Examples
//! //!
//! Check the [examples module](./examples/index.html) //! Check the [examples module](./examples/index.html)