Skip to content

Commit 192eeeb

Browse files
committed
Fix Embed.toml for the blinky demo and add readme
1 parent 21ab7cd commit 192eeeb

File tree

2 files changed

+49
-14
lines changed

2 files changed

+49
-14
lines changed
Lines changed: 31 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,63 @@
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.
31-
enabled = true
44+
enabled = false
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
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/blinky-button-demo/README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Blinky button demo
2+
3+
This example turns on LED 1 when you press Button 1 on the nrf52-dk (PCA10040).
4+
5+
## Set up with `cargo-embed`
6+
7+
Install `cargo-embed` if you don't have it already:
8+
9+
```console
10+
$ cargo install cargo-embed
11+
```
12+
13+
Then just `cd` to the example folder and run
14+
15+
```console
16+
$ cargo embed --target thumbv7em-none-eabihf
17+
```
18+

0 commit comments

Comments
 (0)