Skip to content

Commit e3347c7

Browse files
authored
Merge pull request #58 from nrf-rs/features/thumbv7em-none-eabi-support
Add thumbv7em-none-eabi support to config.toml
2 parents 272e40c + 8be8cc0 commit e3347c7

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

.cargo/config.toml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
[alias]
22
xtask = "run --package xtask --"
33

4+
# For micro:bit v1.x
5+
46
[target.thumbv6m-none-eabi]
57
runner = 'probe-run --chip nRF51822_xxAA'
68
rustflags = [
@@ -9,10 +11,18 @@ rustflags = [
911
"-C", "link-arg=-Tdefmt.x",
1012
]
1113

14+
# For micro:bit v2
15+
16+
[target.thumbv7em-none-eabi]
17+
runner = "probe-run --chip nRF52833_xxAA"
18+
rustflags = [
19+
"-C", "linker=flip-link",
20+
"-C", "link-arg=-Tlink.x",
21+
"-C", "link-arg=-Tdefmt.x",
22+
]
23+
1224
[target.thumbv7em-none-eabihf]
13-
# Execute binary using gdb when calling cargo run
1425
runner = "probe-run --chip nRF52833_xxAA"
15-
# Tweak to the linking process required by the cortex-m-rt crate
1626
rustflags = [
1727
"-C", "linker=flip-link",
1828
"-C", "link-arg=-Tlink.x",

CHANGELOG.md

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

88
## [Unreleased]
99

10+
### Added
11+
12+
- Added support for the thumbv7em-none-eabi target for microbit:v2 (same as
13+
thumbv7em-none-eabihf but without hardware floating point support)
14+
15+
### Changed
16+
1017
- Rearrange LED display modules under the same root module and change their
1118
APIs to be more aligned with each other.
1219
- Add BLE Beacon demo.

0 commit comments

Comments
 (0)