Skip to content

Commit 7521c60

Browse files
committed
update the CHANGELOG
1 parent 657775c commit 7521c60

File tree

2 files changed

+33
-2
lines changed

2 files changed

+33
-2
lines changed

cortex-m-rt/CHANGELOG.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,37 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99

10+
## [v0.4.0] - 2018-04-09
11+
12+
### Added
13+
14+
- LLD support. The linker script provided by this crate has been tweaked to support both LLD and GNU
15+
LD. To use LLD as a linker change `.cargo/config` to look like this:
16+
17+
``` diff
18+
[target.thumbv7m-none-eabi]
19+
rustflags = [
20+
"-C", "link-arg=-Tlink.x",
21+
- "-C", "linker=arm-none-eabi-ld",
22+
- "-Z", "linker-flavor=ld",
23+
+ "-C", "linker=lld",
24+
+ "-Z", "linker-flavor=ld.lld",
25+
]
26+
```
27+
28+
### Removed
29+
30+
- [breaking-change] Stack overflow protection has been removed. Unfortunately, supporting this
31+
feature produces totally wrong `arm-none-eabi-size` reports when LLD is used to link the
32+
program. If you need the stack overflow protection feature you can continue to use version
33+
v0.3.13+.
34+
35+
- [breaking-change] The "abort-on-panic" Cargo feature, which provided a `panic_fmt` implementation,
36+
has been removed. If you were using this feature you can instead use a [panic implementation
37+
crate][panic-impl].
38+
39+
[panic-impl]: https://crates.io/keywords/panic-impl
40+
1041
## [v0.3.15] - 2018-04-08
1142

1243
### Fixed

cortex-m-rt/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
//! $ # add this crate as a dependency
3939
//! $ cargo add cortex-m-rt --vers 0.4.0
4040
//!
41-
//! $ # select a panicking behavior
41+
//! $ # select a panicking behavior (look for the panic-impl keyword on crates.io)
4242
//! $ cargo add panic-abort
4343
//!
4444
//! $ # memory layout of the device
@@ -151,7 +151,7 @@
151151
//! #[linkage = "weak"]
152152
//! #[naked]
153153
//! #[no_mangle]
154-
//! extern "C" fn WWDG() {
154+
//! extern "C" fn PVD() {
155155
//! unsafe {
156156
//! asm!("b DEFAULT_HANDLER" :::: "volatile");
157157
//! core::intrinsics::unreachable();

0 commit comments

Comments
 (0)