Skip to content

Commit fa8c0aa

Browse files
committed
DOCS: Add snaplog command documentation.
1 parent ab5dfac commit fa8c0aa

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# How to gather logs from uhk whose usb doesn't work
2+
3+
Put this into a macro named `$onInit`:
4+
5+
```
6+
zephyr uhk logs 1
7+
zephyr log enable wrn Battery
8+
zephyr log enable wrn Bt
9+
zephyr log enable wrn StateSync
10+
zephyr log enable inf udc
11+
zephyr log enable wrn udc_nrf
12+
zephyr log enable inf hogp
13+
zephyr log enable dbg c2usb
14+
```
15+
16+
Adjust log levels as needed.
17+
18+
You can see the logs in real time:
19+
20+
- on the oled display
21+
- in Agent's advanced settings (click the Agent button 7x on the about page and scroll up)
22+
23+
Create this macro and bind it somewhere convenient:
24+
25+
```
26+
zephyr uhk snaplog
27+
```
28+
29+
Reproduce the issue.
30+
31+
Run the `snaplog` macro. This will export the usb log buffer into the persistent status buffer.
32+
33+
Restart uhk using its reset button
34+
35+
Start Agent.
36+
37+
Yellow bar should pop up with the zephyr your log.

0 commit comments

Comments
 (0)