Skip to content

Commit

Permalink
Update logging in the vs code in development.md
Browse files Browse the repository at this point in the history
  • Loading branch information
merlokk authored Apr 1, 2024
1 parent 22b7898 commit 767f6e2
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,31 @@ in a second terminal:
JLinkRTTClient
```
For Windows add these lines to the `tasks.json`:
```json
{
"label": "logs",
"type": "shell",
"command": "C:\\WINDOWS\\System32\\cmd.exe",
"args": ["/K", "C:\\Program Files\\SEGGER\\JLink\\JLinkRTTClient.exe"],
"options": {
"cwd": "C:\\Program Files\\SEGGER\\JLink"
},
"problemMatcher": []
},
{
"label": "logger server",
"type": "shell",
"command": "C:\\WINDOWS\\System32\\cmd.exe",
"args": ["/K", "C:\\Program Files\\SEGGER\\JLink\\JLink.Exe", "-if", "SWD", "-device", "nrf52", "-speed", "4000", "-autoconnect", "1"],
"options": {
"cwd": "C:\\Program Files\\SEGGER\\JLink"
},
"problemMatcher": []
},
```


## Using SWO pin as UART to monitor NRF_LOG

One can set `NRF_LOG_UART_ON_SWO_ENABLED := 1` in `Makefile.defs` to activate this functionality.
Expand Down

0 comments on commit 767f6e2

Please sign in to comment.