Skip to content

Commit 80130c5

Browse files
Add target to build without Nordic SoftDevice.
1 parent 757d56f commit 80130c5

File tree

3 files changed

+19
-4
lines changed

3 files changed

+19
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ This is a basic Mbed OS project for [micro:bit V2](https://microbit.org/new-micr
2323
- [Arm GCC](https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads)
2424

2525
**Mbed only requirements:**
26-
- Python (2 or 3, at the moment Python 2 might be preferred)
26+
- Python 3
2727
- pip (version >= 10.0)
2828
- Mercurial
2929
- [Mbed CLI](https://github.com/ARMmbed/mbed-cli)
@@ -55,9 +55,11 @@ targets.
5555
`nrf52_microbit_v1_47`: These board versions do not really need a new target
5656
and are the same as the `nrf52_microbit_v1_43`
5757
- `nrf52_microbit_v2`: This is essentially the same as `nrf52_microbit_v1_43`,
58-
but since the board is only manufactured in the `S` variant, only contains
59-
the LSM motion sensor (no FXOS), so it's useful to use this target name to
60-
be able to do conditional compilation.
58+
but since the board is currently only manufactured in the `S` variant, only
59+
contains the LSM motion sensor (no FXOS), so it's useful to use this target
60+
name to be able to do conditional compilation.
61+
- `nrf52_microbit_v2_nosd`: V2 target without including SoftDevice (Nordic
62+
Bluetooth stack).
6163

6264
The version of the board can be seen on the silkscreen at the back, near the
6365
right side of the edge connector.

custom_targets.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,5 +95,16 @@
9595
},
9696
"NRF52_MICROBIT_v2": {
9797
"inherits": ["NRF52_MICROBIT_v1_43"]
98+
},
99+
"NRF52_MICROBIT_v2_NOSD": {
100+
"inherits": ["NRF52_MICROBIT_v1_43"],
101+
"extra_labels_remove": [
102+
"NORDIC_SOFTDEVICE",
103+
"SOFTDEVICE_COMMON",
104+
"SOFTDEVICE_S140_FULL"
105+
],
106+
"extra_labels_add": [
107+
"SOFTDEVICE_NONE"
108+
]
98109
}
99110
}

mbed_app.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
"NRF52_MICROBIT_v1_47": {
3131
},
3232
"NRF52_MICROBIT_v2": {
33+
},
34+
"NRF52_MICROBIT_v2_NOSD": {
3335
}
3436
}
3537
}

0 commit comments

Comments
 (0)