aboutsummaryrefslogtreecommitdiffstats
path: root/doc/jlink.md
diff options
context:
space:
mode:
authormashuptwice <info@mashup-tech.de>2022-08-25 10:56:09 +0200
committermashuptwice <info@mashup-tech.de>2022-08-25 10:56:09 +0200
commit5c253c10a8534879ea002baa7766ba341f1c168b (patch)
treea4bc18491594b36689f86bb030bbccac36496a0e /doc/jlink.md
parenta86668b6b717fb618cc4cc7167e49e3339748417 (diff)
parent69563ed03155eb861f8b8ada1df1325995fab51b (diff)
Merge remote-tracking branch 'upstream/develop' into workflow-ignore-md
Diffstat (limited to 'doc/jlink.md')
-rw-r--r--doc/jlink.md10
1 files changed, 7 insertions, 3 deletions
diff --git a/doc/jlink.md b/doc/jlink.md
index eebcac49..b69c4c46 100644
--- a/doc/jlink.md
+++ b/doc/jlink.md
@@ -1,6 +1,7 @@
# Flashing the firmware with JLink
Start JLinkExe:
+
```
$ /opt/SEGGER/JLink/JLinkExe -device nrf52 -if swd -speed 4000 -autoconnect 1
SEGGER J-Link Commander V6.70d (Compiled Apr 16 2020 17:59:37)
@@ -43,6 +44,7 @@ J-Link>
```
Use the command loadfile to program the .hex file:
+
```
J-Link>loadfile pinetime-app.hex
Downloading file [pinetime-app.hex]...
@@ -56,6 +58,7 @@ O.K.
```
Then reset (r) and start (g) the CPU:
+
```
J-Link>r
Reset delay: 0 ms
@@ -66,17 +69,18 @@ J-Link>g
```
# JLink RTT
+
RTT is a feature from Segger's JLink devices that allows bidirectional communication between the debugger and the target. This feature can be used to get the logs from the embedded software on the development computer.
- - Program the MCU with the code (see above)
- - Start JLinkExe
+- Program the MCU with the code (see above)
+- Start JLinkExe
```
$ JLinkExe -device nrf52 -if swd -speed 4000 -autoconnect 1
```
Start JLinkRTTClient
+
```
$ JLinkRTTClient
```
-