Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b7884948b2 | ||
|
|
01e9a597c1 | ||
|
|
ae503ee8fb | ||
|
|
4a398df058 | ||
|
|
efb84ccf53 | ||
|
|
a462ab027d | ||
|
|
6da25bced8 |
@@ -3,11 +3,6 @@ runner = 'arm-none-eabi-gdb'
|
|||||||
rustflags = [
|
rustflags = [
|
||||||
"-C", "link-arg=-Wl,-Tlink.x",
|
"-C", "link-arg=-Wl,-Tlink.x",
|
||||||
"-C", "link-arg=-nostartfiles",
|
"-C", "link-arg=-nostartfiles",
|
||||||
|
|
||||||
# uncomment to use rustc LLD to link programs (a)
|
|
||||||
# "-C", "link-arg=-Tlink.x",
|
|
||||||
# "-C", "linker=lld",
|
|
||||||
# "-Z", "linker-flavor=ld.lld",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[target.thumbv7m-none-eabi]
|
[target.thumbv7m-none-eabi]
|
||||||
@@ -15,11 +10,6 @@ runner = 'arm-none-eabi-gdb'
|
|||||||
rustflags = [
|
rustflags = [
|
||||||
"-C", "link-arg=-Wl,-Tlink.x",
|
"-C", "link-arg=-Wl,-Tlink.x",
|
||||||
"-C", "link-arg=-nostartfiles",
|
"-C", "link-arg=-nostartfiles",
|
||||||
|
|
||||||
# uncomment to use rustc LLD to link programs (a)
|
|
||||||
# "-C", "link-arg=-Tlink.x",
|
|
||||||
# "-C", "linker=lld",
|
|
||||||
# "-Z", "linker-flavor=ld.lld",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[target.thumbv7em-none-eabi]
|
[target.thumbv7em-none-eabi]
|
||||||
@@ -27,11 +17,6 @@ runner = 'arm-none-eabi-gdb'
|
|||||||
rustflags = [
|
rustflags = [
|
||||||
"-C", "link-arg=-Wl,-Tlink.x",
|
"-C", "link-arg=-Wl,-Tlink.x",
|
||||||
"-C", "link-arg=-nostartfiles",
|
"-C", "link-arg=-nostartfiles",
|
||||||
|
|
||||||
# uncomment to use rustc LLD to link programs (a)
|
|
||||||
# "-C", "link-arg=-Tlink.x",
|
|
||||||
# "-C", "linker=lld",
|
|
||||||
# "-Z", "linker-flavor=ld.lld",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[target.thumbv7em-none-eabihf]
|
[target.thumbv7em-none-eabihf]
|
||||||
@@ -39,12 +24,4 @@ runner = 'arm-none-eabi-gdb'
|
|||||||
rustflags = [
|
rustflags = [
|
||||||
"-C", "link-arg=-Wl,-Tlink.x",
|
"-C", "link-arg=-Wl,-Tlink.x",
|
||||||
"-C", "link-arg=-nostartfiles",
|
"-C", "link-arg=-nostartfiles",
|
||||||
|
|
||||||
# uncomment to use rustc LLD to link programs (a)
|
|
||||||
# "-C", "link-arg=-Tlink.x",
|
|
||||||
# "-C", "linker=lld",
|
|
||||||
# "-Z", "linker-flavor=ld.lld",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
# (a) you also need to comment out the other two `link-arg` lines. But note that as of v0.6.0 LLD
|
|
||||||
# has a bug where it mislinks FFI calls and they up crashing the program at runtime
|
|
||||||
@@ -5,6 +5,12 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [v0.3.2] - 2018-06-19
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Bumped the panic-semihosting dependency to fix some examples when compiling with latest nightly.
|
||||||
|
|
||||||
## [v0.3.1] - 2018-05-13
|
## [v0.3.1] - 2018-05-13
|
||||||
|
|
||||||
- Document the standard `main` interface issue in the troubleshooting guide.
|
- Document the standard `main` interface issue in the troubleshooting guide.
|
||||||
@@ -172,7 +178,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
|
|
||||||
- Initial release
|
- Initial release
|
||||||
|
|
||||||
[Unreleased]: https://github.com/japaric/cortex-m-quickstart/compare/v0.3.1...HEAD
|
[Unreleased]: https://github.com/japaric/cortex-m-quickstart/compare/v0.3.2...HEAD
|
||||||
|
[v0.3.2]: https://github.com/japaric/cortex-m-quickstart/compare/v0.3.1...v0.3.2
|
||||||
[v0.3.1]: https://github.com/japaric/cortex-m-quickstart/compare/v0.3.0...v0.3.1
|
[v0.3.1]: https://github.com/japaric/cortex-m-quickstart/compare/v0.3.0...v0.3.1
|
||||||
[v0.3.0]: https://github.com/japaric/cortex-m-quickstart/compare/v0.2.7...v0.3.0
|
[v0.3.0]: https://github.com/japaric/cortex-m-quickstart/compare/v0.2.7...v0.3.0
|
||||||
[v0.2.7]: https://github.com/japaric/cortex-m-quickstart/compare/v0.2.6...v0.2.7
|
[v0.2.7]: https://github.com/japaric/cortex-m-quickstart/compare/v0.2.6...v0.2.7
|
||||||
|
|||||||
@@ -6,13 +6,13 @@ 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.3.1"
|
version = "0.3.2"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
cortex-m = "0.5.0"
|
cortex-m = "0.5.0"
|
||||||
cortex-m-rt = "0.5.0"
|
cortex-m-rt = "0.5.0"
|
||||||
cortex-m-semihosting = "0.3.0"
|
cortex-m-semihosting = "0.3.0"
|
||||||
panic-semihosting = "0.2.0"
|
panic-semihosting = "0.3.0"
|
||||||
|
|
||||||
# Uncomment for the panic example.
|
# Uncomment for the panic example.
|
||||||
# panic-itm = "0.1.1"
|
# panic-itm = "0.1.1"
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
//! ---
|
//! ---
|
||||||
|
|
||||||
#![feature(alloc)]
|
#![feature(alloc)]
|
||||||
|
#![feature(alloc_error_handler)]
|
||||||
#![feature(global_allocator)]
|
#![feature(global_allocator)]
|
||||||
#![feature(lang_items)]
|
#![feature(lang_items)]
|
||||||
#![no_main]
|
#![no_main]
|
||||||
@@ -25,6 +26,7 @@ extern crate cortex_m_rt as rt;
|
|||||||
extern crate cortex_m_semihosting as sh;
|
extern crate cortex_m_semihosting as sh;
|
||||||
extern crate panic_semihosting;
|
extern crate panic_semihosting;
|
||||||
|
|
||||||
|
use core::alloc::Layout;
|
||||||
use core::fmt::Write;
|
use core::fmt::Write;
|
||||||
|
|
||||||
use alloc_cortex_m::CortexMHeap;
|
use alloc_cortex_m::CortexMHeap;
|
||||||
@@ -54,9 +56,9 @@ fn main() -> ! {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// define what happens in an Out Of Memory (OOM) condition
|
// define what happens in an Out Of Memory (OOM) condition
|
||||||
#[lang = "oom"]
|
#[alloc_error_handler]
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub fn rust_oom() -> ! {
|
pub fn alloc_error(layout: Layout) -> ! {
|
||||||
asm::bkpt();
|
asm::bkpt();
|
||||||
|
|
||||||
loop {}
|
loop {}
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
//! 2) Clone this crate
|
//! 2) Clone this crate
|
||||||
//!
|
//!
|
||||||
//! ``` text
|
//! ``` text
|
||||||
//! $ git clone cortex-m-quickstart --vers 0.3.0
|
//! $ cargo clone cortex-m-quickstart --vers 0.3.0
|
||||||
//! ```
|
//! ```
|
||||||
//!
|
//!
|
||||||
//! 3) Change the crate name, author and version
|
//! 3) Change the crate name, author and version
|
||||||
|
|||||||
Reference in New Issue
Block a user