From 767f6e2f7e643fee25c40b2fd6e04240a19a9e00 Mon Sep 17 00:00:00 2001 From: Oleg Moiseenko <807634+merlokk@users.noreply.github.com> Date: Mon, 1 Apr 2024 18:46:20 +0300 Subject: [PATCH] Update logging in the vs code in development.md --- docs/development.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/docs/development.md b/docs/development.md index 409dbd56..33c295b8 100644 --- a/docs/development.md +++ b/docs/development.md @@ -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.