Skip to content

Commit 164b2dd

Browse files
committed
Merge upstream, add support for 52811
2 parents 4a87d05 + 22910ee commit 164b2dd

File tree

45 files changed

+888
-135
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+888
-135
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
- PWM module ([#200]).
1313
- I2S module ([#201]).
1414
- SPIS module ([#226]).
15+
- Add support for the nRF52811 ([#227]).
1516

1617
### Fixes
1718

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
members = [
33
"xtask",
44
"nrf52810-hal",
5+
"nrf52811-hal",
56
"nrf52832-hal",
67
"nrf52833-hal",
78
"nrf52840-hal",

README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,23 @@ Every nRF chip has its own crate, listed below:
1818
|-------|------|-----------|
1919
| [`nrf51-hal`](./nrf51-hal) | [![docs.rs](https://docs.rs/nrf51-hal/badge.svg)](https://docs.rs/nrf51-hal) | [![crates.io](https://img.shields.io/crates/d/nrf51-hal.svg)](https://crates.io/crates/nrf51-hal) |
2020
| [`nrf52810-hal`](./nrf52810-hal) | [![docs.rs](https://docs.rs/nrf52810-hal/badge.svg)](https://docs.rs/nrf52810-hal) | [![crates.io](https://img.shields.io/crates/d/nrf52810-hal.svg)](https://crates.io/crates/nrf52810-hal) |
21+
| [`nrf52811-hal`](./nrf52811-hal) | [![docs.rs](https://docs.rs/nrf52811-hal/badge.svg)](https://docs.rs/nrf52811-hal) | [![crates.io](https://img.shields.io/crates/d/nrf52811-hal.svg)](https://crates.io/crates/nrf52811-hal) |
2122
| [`nrf52832-hal`](./nrf52832-hal) | [![docs.rs](https://docs.rs/nrf52832-hal/badge.svg)](https://docs.rs/nrf52832-hal) | [![crates.io](https://img.shields.io/crates/d/nrf52832-hal.svg)](https://crates.io/crates/nrf52832-hal) |
2223
| [`nrf52833-hal`](./nrf52833-hal) | [![docs.rs](https://docs.rs/nrf52833-hal/badge.svg)](https://docs.rs/nrf52833-hal) | [![crates.io](https://img.shields.io/crates/d/nrf52833-hal.svg)](https://crates.io/crates/nrf52833-hal) |
2324
| [`nrf52840-hal`](./nrf52840-hal) | [![docs.rs](https://docs.rs/nrf52840-hal/badge.svg)](https://docs.rs/nrf52840-hal) | [![crates.io](https://img.shields.io/crates/d/nrf52840-hal.svg)](https://crates.io/crates/nrf52840-hal) |
2425
| [`nrf9160-hal`](./nrf9160-hal) | [![docs.rs](https://docs.rs/nrf9160-hal/badge.svg)](https://docs.rs/nrf9160-hal) | [![crates.io](https://img.shields.io/crates/d/nrf9160-hal.svg)](https://crates.io/crates/nrf9160-hal) |
2526

2627
## Device Reference Manuals from Nordic
2728

28-
- [nRF52840 Reference Manual](http://infocenter.nordicsemi.com/pdf/nRF52840_PS_v1.0.pdf)
29-
- [nRF52832 Reference Manual](http://infocenter.nordicsemi.com/pdf/nRF52832_PS_v1.4.pdf)
30-
- [nRF52810 Reference Manual](http://infocenter.nordicsemi.com/pdf/nRF52810_PS_v1.2.pdf)
31-
- [nRF9160 Reference Manual](http://infocenter.nordicsemi.com/pdf/nRF9160_PS_v1.1.pdf)
29+
| Device | Product Specification | DK Reference Guide |
30+
|-------|------|-----------|
31+
| [`nRF52810`](https://www.nordicsemi.com/Products/Low-power-short-range-wireless/nRF52810) | [`v1.3`](https://infocenter.nordicsemi.com/pdf/nRF52810_PS_v1.3.pdf) | [`v1.3.1*`](https://infocenter.nordicsemi.com/pdf/nRF52_DK_User_Guide_v1.3.1.pdf) |
32+
| [`nRF52811`](https://www.nordicsemi.com/Products/Low-power-short-range-wireless/nRF52811) | [`v1.0`](https://infocenter.nordicsemi.com/pdf/nRF52811_PS_v1.0.pdf) | [`v1.3.1*`](https://infocenter.nordicsemi.com/pdf/nRF52_DK_User_Guide_v1.3.1.pdf) |
33+
| [`nRF52832`](https://www.nordicsemi.com/Products/Low-power-short-range-wireless/nRF52832) | [`v1.4`](https://infocenter.nordicsemi.com/pdf/nRF52832_PS_v1.4.pdf) | [`v1.3.1*`](https://infocenter.nordicsemi.com/pdf/nRF52_DK_User_Guide_v1.3.1.pdf) |
34+
| [`nRF52833`](https://www.nordicsemi.com/Products/Low-power-short-range-wireless/nRF52833) | [`v1.3`](https://infocenter.nordicsemi.com/pdf/nRF52833_PS_v1.3.pdf) | [`v1.0.1`](http://infocenter.nordicsemi.com/pdf/nRF52833_DK_User_Guide_v1.0.1.pdf) |
35+
| [`nRF52840`](https://www.nordicsemi.com/Products/Low-power-short-range-wireless/nRF52840) | [`v1.1`](https://infocenter.nordicsemi.com/pdf/nRF52840_PS_v1.1.pdf) | [`v1.2`](https://infocenter.nordicsemi.com/pdf/nRF52840_DK_User_Guide_v1.2.pdf) |
36+
| [`nRF9160`](https://www.nordicsemi.com/Products/Low-power-cellular-IoT/nRF9160) | [`v2.0`](https://infocenter.nordicsemi.com/pdf/nRF9160_PS_v2.0.pdf) | [`v0.9.3`](https://infocenter.nordicsemi.com/pdf/nRF9160_DK_HW_User_Guide_v0.9.3.pdf) |
37+
\* These devices do not have a seperate developement kit and share the [NRF52 DK](https://www.nordicsemi.com/Software-and-tools/Development-Kits/nRF52-DK)
3238

3339
## License
3440

examples/blinky-button-demo/Embed.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ log_level = "WARN"
4141
[default.rtt]
4242
# Whether or not an RTTUI should be opened after flashing.
4343
# This is exclusive and cannot be used with GDB at the moment.
44-
enabled = false
44+
enabled = true
4545
# A list of channel associations to be displayed. If left empty, all channels are displayed.
4646
channels = [
4747
# { up = 0, down = 0, name = "name", format = "String" }
@@ -60,4 +60,4 @@ log_path = "./logs"
6060
# This is exclusive and cannot be used with RTT at the moment.
6161
enabled = false
6262
# The connection string in host:port format wher the GDB server will open a socket.
63-
# gdb_connection_string
63+
# gdb_connection_string

examples/ccm-demo/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ rtt-target = {version = "0.2.0", features = ["cortex-m"] }
1212
rand_core = "0.5.1"
1313

1414
nrf52810-hal = { path = "../../nrf52810-hal", features = ["rt"], optional = true }
15+
nrf52811-hal = { path = "../../nrf52811-hal", features = ["rt"], optional = true }
1516
nrf52832-hal = { path = "../../nrf52832-hal", features = ["rt"], optional = true }
1617
nrf52840-hal = { path = "../../nrf52840-hal", features = ["rt"], optional = true }
1718
nrf52833-hal = { path = "../../nrf52833-hal", features = ["rt"], optional = true }
@@ -23,6 +24,7 @@ test = false
2324

2425
[features]
2526
52810 = ["nrf52810-hal"]
27+
52811 = ["nrf52811-hal"]
2628
52832 = ["nrf52832-hal"]
2729
52840 = ["nrf52840-hal"]
2830
52833 = ["nrf52833-hal"]

examples/ccm-demo/Embed.toml

Lines changed: 29 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,61 @@
1-
[probe]
2-
# The index of the probe in the connected probe list.
3-
# probe_index = 0
1+
[default.probe]
2+
# USB vendor ID
3+
# usb_vid = "1337"
4+
# USB product ID
5+
# usb_pid = "1337"
6+
# Serial number
7+
# serial = "12345678"
48
# The protocol to be used for communicating with the target.
59
protocol = "Swd"
610
# The speed in kHz of the data link to the target.
711
# speed = 1337
812

9-
[flashing]
13+
[default.flashing]
1014
# Whether or not the target should be flashed.
1115
enabled = true
12-
# Whether or not the target should be halted after flashing.
16+
# Whether or not the target should be halted after reset.
17+
# DEPRECATED, moved to reset section
1318
halt_afterwards = false
1419
# Whether or not bytes erased but not rewritten with data from the ELF
1520
# should be restored with their contents before erasing.
1621
restore_unwritten_bytes = false
1722
# The path where an SVG of the assembled flash layout should be written to.
1823
# flash_layout_output_path = "out.svg"
1924

20-
[general]
25+
[default.reset]
26+
# Whether or not the target should be reset.
27+
# When flashing is enabled as well, the target will be reset after flashing.
28+
enabled = true
29+
# Whether or not the target should be halted after reset.
30+
halt_afterwards = false
31+
32+
[default.general]
2133
# The chip name of the chip to be debugged.
22-
#chip = "nRF52832"
34+
chip = "nRF52832_xxAA"
2335
# A list of chip descriptions to be loaded during runtime.
2436
chip_descriptions = []
25-
# The default log level to be used.
26-
log_level = "Warn"
37+
# The default log level to be used. Possible values are one of:
38+
# "OFF", "ERROR", "WARN", "INFO", "DEBUG", "TRACE"
39+
log_level = "WARN"
2740

28-
[rtt]
41+
[default.rtt]
2942
# Whether or not an RTTUI should be opened after flashing.
3043
# This is exclusive and cannot be used with GDB at the moment.
3144
enabled = true
3245
# A list of channel associations to be displayed. If left empty, all channels are displayed.
3346
channels = [
34-
# { up = 0, down = 0, name = "name" }
47+
# { up = 0, down = 0, name = "name", format = "String" }
3548
]
3649
# The duration in ms for which the logger should retry to attach to RTT.
3750
timeout = 3000
3851
# Whether timestamps in the RTTUI are enabled
3952
show_timestamps = true
53+
# Whether to save rtt history buffer on exit.
54+
log_enabled = false
55+
# Where to save rtt history buffer relative to manifest path.
56+
log_path = "./logs"
4057

41-
[gdb]
58+
[default.gdb]
4259
# Whether or not a GDB server should be opened after flashing.
4360
# This is exclusive and cannot be used with RTT at the moment.
4461
enabled = false

examples/ccm-demo/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
Choose the microcontroller with one of the following features:
44
- 52810
5+
- 52811
56
- 52832
67
- 52840
78

examples/ccm-demo/src/main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
// Import the right HAL/PAC crate, depending on the target chip
55
#[cfg(feature = "52810")]
66
pub use nrf52810_hal as hal;
7+
#[cfg(feature = "52811")]
8+
pub use nrf52811_hal as hal;
79
#[cfg(feature = "52832")]
810
pub use nrf52832_hal as hal;
911
#[cfg(feature = "52833")]

examples/comp-demo/Embed.toml

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
[default.probe]
2-
# The index of the probe in the connected probe list.
3-
# probe_index = 0
2+
# USB vendor ID
3+
# usb_vid = "1337"
4+
# USB product ID
5+
# usb_pid = "1337"
6+
# Serial number
7+
# serial = "12345678"
48
# The protocol to be used for communicating with the target.
59
protocol = "Swd"
610
# The speed in kHz of the data link to the target.
@@ -9,38 +13,51 @@ protocol = "Swd"
913
[default.flashing]
1014
# Whether or not the target should be flashed.
1115
enabled = true
12-
# Whether or not the target should be halted after flashing.
16+
# Whether or not the target should be halted after reset.
17+
# DEPRECATED, moved to reset section
1318
halt_afterwards = false
1419
# Whether or not bytes erased but not rewritten with data from the ELF
1520
# should be restored with their contents before erasing.
1621
restore_unwritten_bytes = false
1722
# The path where an SVG of the assembled flash layout should be written to.
1823
# flash_layout_output_path = "out.svg"
1924

25+
[default.reset]
26+
# Whether or not the target should be reset.
27+
# When flashing is enabled as well, the target will be reset after flashing.
28+
enabled = true
29+
# Whether or not the target should be halted after reset.
30+
halt_afterwards = false
31+
2032
[default.general]
2133
# The chip name of the chip to be debugged.
2234
chip = "nRF52840"
2335
# A list of chip descriptions to be loaded during runtime.
2436
chip_descriptions = []
25-
# The default log level to be used.
26-
log_level = "Warn"
37+
# The default log level to be used. Possible values are one of:
38+
# "OFF", "ERROR", "WARN", "INFO", "DEBUG", "TRACE"
39+
log_level = "WARN"
2740

2841
[default.rtt]
2942
# Whether or not an RTTUI should be opened after flashing.
3043
# This is exclusive and cannot be used with GDB at the moment.
3144
enabled = true
3245
# A list of channel associations to be displayed. If left empty, all channels are displayed.
3346
channels = [
34-
# { up = 0, down = 0, name = "name" }
47+
# { up = 0, down = 0, name = "name", format = "String" }
3548
]
3649
# The duration in ms for which the logger should retry to attach to RTT.
3750
timeout = 3000
3851
# Whether timestamps in the RTTUI are enabled
3952
show_timestamps = true
53+
# Whether to save rtt history buffer on exit.
54+
log_enabled = false
55+
# Where to save rtt history buffer relative to manifest path.
56+
log_path = "./logs"
4057

4158
[default.gdb]
4259
# Whether or not a GDB server should be opened after flashing.
4360
# This is exclusive and cannot be used with RTT at the moment.
4461
enabled = false
4562
# The connection string in host:port format wher the GDB server will open a socket.
46-
# gdb_connection_string
63+
# gdb_connection_string

examples/ecb-demo/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ cortex-m-rt = "0.6.12"
1111
rtt-target = {version = "0.2.0", features = ["cortex-m"] }
1212

1313
nrf52810-hal = { path = "../../nrf52810-hal", features = ["rt"], optional = true }
14+
nrf52811-hal = { path = "../../nrf52811-hal", features = ["rt"], optional = true }
1415
nrf52832-hal = { path = "../../nrf52832-hal", features = ["rt"], optional = true }
1516
nrf52840-hal = { path = "../../nrf52840-hal", features = ["rt"], optional = true }
1617
nrf52833-hal = { path = "../../nrf52833-hal", features = ["rt"], optional = true }
@@ -24,6 +25,7 @@ test = false
2425
[features]
2526
51 = ["nrf51-hal"]
2627
52810 = ["nrf52810-hal"]
28+
52811 = ["nrf52811-hal"]
2729
52832 = ["nrf52832-hal"]
2830
52840 = ["nrf52840-hal"]
2931
52833 = ["nrf52833-hal"]

0 commit comments

Comments
 (0)