Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8aa495ac66 | ||
|
|
62453e1e94 |
15
CHANGELOG.md
15
CHANGELOG.md
@@ -5,7 +5,17 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## v0.1.3 - 2017-05-12
|
||||
## v0.1.4 - 2017-05-13
|
||||
|
||||
### Added
|
||||
|
||||
- A dependencies section to the documentation
|
||||
|
||||
### Changed
|
||||
|
||||
- Extend troubleshooting section
|
||||
|
||||
## v0.1.3 - 2017-05-13
|
||||
|
||||
### Added
|
||||
|
||||
@@ -33,7 +43,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
||||
|
||||
- Initial release
|
||||
|
||||
[Unreleased]: https://github.com/japaric/cortex-m-quickstart/compare/v0.1.3...HEAD
|
||||
[Unreleased]: https://github.com/japaric/cortex-m-quickstart/compare/v0.1.4...HEAD
|
||||
[v0.1.4]: https://github.com/japaric/cortex-m-quickstart/compare/v0.1.3...v0.1.4
|
||||
[v0.1.3]: https://github.com/japaric/cortex-m-quickstart/compare/v0.1.2...v0.1.3
|
||||
[v0.1.2]: https://github.com/japaric/cortex-m-quickstart/compare/v0.1.1...v0.1.2
|
||||
[v0.1.1]: https://github.com/japaric/cortex-m-quickstart/compare/v0.1.0...v0.1.1
|
||||
|
||||
@@ -6,7 +6,7 @@ keywords = ["arm", "cortex-m", "template"]
|
||||
license = "MIT OR Apache-2.0"
|
||||
name = "cortex-m-quickstart"
|
||||
repository = "https://github.com/japaric/cortex-m-quickstart"
|
||||
version = "0.1.3"
|
||||
version = "0.1.4"
|
||||
|
||||
[dependencies]
|
||||
cortex-m = "0.2.6"
|
||||
|
||||
26
src/lib.rs
26
src/lib.rs
@@ -1,5 +1,15 @@
|
||||
//! A template for building applications for ARM Cortex-M microcontrollers
|
||||
//!
|
||||
//! # Dependencies
|
||||
//!
|
||||
//! - Nightly Rust toolchain: `rustup default nightly`
|
||||
//! - ARM linker: `sudo apt-get install binutils-arm-none-eabi`
|
||||
//! - Cargo `clone` subcommand: `cargo install cargo-clone`
|
||||
//! - GDB: `sudo apt-get install gdb-arm-none-eabi`
|
||||
//! - OpenOCD: `sudo apt-get install OpenOCD`
|
||||
//! - Xargo: `cargo install xargo`
|
||||
//! - [Optional] Cargo `add` subcommand: `cargo install cargo-edit`
|
||||
//!
|
||||
//! # Usage
|
||||
//!
|
||||
//! - Clone this crate
|
||||
@@ -67,9 +77,6 @@
|
||||
//! - Build the application
|
||||
//!
|
||||
//! ``` text
|
||||
//! # if not installed
|
||||
//! $ cargo install xargo
|
||||
//!
|
||||
//! # NOTE this command requires `arm-none-eabi-ld` to be in $PATH
|
||||
//! $ xargo build --release
|
||||
//!
|
||||
@@ -201,6 +208,19 @@
|
||||
//!
|
||||
//! Solution: Use `xargo build`.
|
||||
//!
|
||||
//! ## Used the stable toolchain
|
||||
//!
|
||||
//! Error message:
|
||||
//!
|
||||
//! ``` text
|
||||
//! $ xargo build
|
||||
//! error: failed to run `rustc` to learn about target-specific information
|
||||
//!
|
||||
//! To learn more, run the command again with --verbose.
|
||||
//! ```
|
||||
//!
|
||||
//! Solution: Switch to the nightly toolchain with `rustup default nightly`.
|
||||
//!
|
||||
//! ## Used `gdb` instead of `arm-none-eabi-gdb`
|
||||
//!
|
||||
//! Error message:
|
||||
|
||||
Reference in New Issue
Block a user