Skip to content

Commit 6fa2576

Browse files
Merge pull request #229 from andresovela/master
Update Embed.toml of all examples to new defaults
2 parents 8625f44 + f40bb57 commit 6fa2576

File tree

15 files changed

+441
-103
lines changed

15 files changed

+441
-103
lines changed

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/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/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/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/gpiote-demo/Embed.toml

Lines changed: 28 additions & 11 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.
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

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
Lines changed: 45 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,63 @@
11
[default.probe]
2+
# USB vendor ID
3+
# usb_vid = "1337"
4+
# USB product ID
5+
# usb_pid = "1337"
6+
# Serial number
7+
# serial = "12345678"
8+
# The protocol to be used for communicating with the target.
29
protocol = "Swd"
10+
# The speed in kHz of the data link to the target.
11+
# speed = 1337
312

413
[default.flashing]
14+
# Whether or not the target should be flashed.
515
enabled = true
16+
# Whether or not the target should be halted after reset.
17+
# DEPRECATED, moved to reset section
618
halt_afterwards = false
19+
# Whether or not bytes erased but not rewritten with data from the ELF
20+
# should be restored with their contents before erasing.
721
restore_unwritten_bytes = false
22+
# The path where an SVG of the assembled flash layout should be written to.
23+
# flash_layout_output_path = "out.svg"
24+
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
831

932
[default.general]
33+
# The chip name of the chip to be debugged.
1034
chip = "nRF52840"
35+
# A list of chip descriptions to be loaded during runtime.
1136
chip_descriptions = []
12-
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"
1340

1441
[default.rtt]
42+
# Whether or not an RTTUI should be opened after flashing.
43+
# This is exclusive and cannot be used with GDB at the moment.
1544
enabled = true
16-
channels = []
45+
# A list of channel associations to be displayed. If left empty, all channels are displayed.
46+
channels = [
47+
# { up = 0, down = 0, name = "name", format = "String" }
48+
]
49+
# The duration in ms for which the logger should retry to attach to RTT.
1750
timeout = 3000
51+
# Whether timestamps in the RTTUI are enabled
1852
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"
1957

2058
[default.gdb]
21-
enabled = false
59+
# Whether or not a GDB server should be opened after flashing.
60+
# This is exclusive and cannot be used with RTT at the moment.
61+
enabled = false
62+
# The connection string in host:port format wher the GDB server will open a socket.
63+
# gdb_connection_string

0 commit comments

Comments
 (0)