summaryrefslogtreecommitdiff
path: root/doc/jlink.md
diff options
context:
space:
mode:
authorKieran Cawthray <kieranc@gmail.com>2022-09-05 22:03:56 +0200
committerKieran Cawthray <kieranc@gmail.com>2022-09-05 22:03:56 +0200
commit293340515812b15030b6497a3eed1b1b8fceadae (patch)
treea46c96953676a756723477a363a5eedafbbd3dd1 /doc/jlink.md
parent593ca2028d77c013fa4026a7183b7f66f2cca5ba (diff)
parentf53e75063b6ef618d65a1f287df52ba01c3351f5 (diff)
Merge remote-tracking branch 'upstream/develop' into pts-options
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
```
-