-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenocd.toml
More file actions
94 lines (76 loc) · 2.49 KB
/
Copy pathopenocd.toml
File metadata and controls
94 lines (76 loc) · 2.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# =============================================================================
# openocd.toml — OpenOCD backend example
#
# ⚠ You must start the OpenOCD daemon manually before using this config, e.g.:
# openocd -f interface/stlink.cfg -f target/stm32f4x.cfg
# Keep OpenOCD running, then execute ucap:
# ucap rw -c examples/openocd.toml # Continuous read/write (Ctrl+C to stop)
# ucap mon -c examples/openocd.toml # Real-time monitor with GUI
# =============================================================================
# Read/Write frequency (Hz)
rw_freq = 500
[backend]
name = 'openocd'
# Debugger frequency (Hz). 0 = max speed (default), positive = specific freq, negative = backend default. Unset here, uses max speed
# freq = 0
[backend.openocd]
host = 'localhost'
port = 4444
[save]
enable = true
dir = 'data/openocd_session'
auto_name = true
save_figure = true
[plot]
show = true
[[plot.figures]]
name = 'Core & Peripherals'
axes = [['ax_core'], ['ax_periph']]
sharex = 'col'
[plot.axes.ax_core.kwargs]
ylabel = 'Core Value'
xlabel = 'Time (s)'
[plot.axes.ax_periph.kwargs]
ylabel = 'Peripheral Value'
# =============================================================================
# pre_vars: Read target info before acquisition
# =============================================================================
[[pre_vars]]
name = 'cpuid'
address = 0xE000ED00
format = '<I'
[[pre_vars]]
name = 'target_info'
address = 0xE0042000
format = '<I'
# =============================================================================
# vars: Variables to read/write continuously
# =============================================================================
# --- Internal temperature sensor ---
[[vars]]
name = 'temp_sensor'
address = 0x4001204C
format = '<H'
expr = '(x * 3.3 / 4096 - 0.76) / 0.0025 + 25'
plot = { axis = 'ax_core' }
# --- System tick counter ---
[[vars]]
name = 'systick_cvr'
address = 0xE000E018
format = '<I'
plot = { axis = 'ax_core' }
# --- Random number generator (if target supports it) ---
[[vars]]
name = 'rng_data'
address = 0x50060808
format = '<I'
plot = { axis = 'ax_periph' }
# =============================================================================
# post_vars: Read status after acquisition
# =============================================================================
[[post_vars]]
name = 'dwt_cyccnt'
address = 0xE0001004
format = '<I'
[extra]
metadata = { description = 'OpenOCD backend demo', note = 'Ensure OpenOCD daemon is running before using this config' }