Segger J-link Setup in Manjaro Linux (Arch Linux)

Segger J-link Setup in Manjaro Linux (Arch Linux)

14 Sep 2019, 09:03pm TZ +05:30
linux, manjaro, nRF51, nRF52
Embedded, tools

Now, who does not know about J-Link in the embedded community.

This is Quick way to install it in my favorite Manjaro Linux

First to find the latest package repository for J-Link.

https://aur.archlinux.org/packages/jlink-software-and-documentation/

Installing the Package #

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
cd /tmp
# Get the Package
git clone https://aur.archlinux.org/jlink-software-and-documentation.git

cd jlink-software-and-documentation

# Create the Package and Install it
makepkg -s
sudo pacman -U jlink-software-and-documentation*.pkg.tar.xz

# Clean-up
cd ..
rm -rf jlink-software-and-documentation

Test it out #

Well the command would look strange JLinkExe

Yes its a EXE in Linux!

Make sure the Connect you J-Link debugger or Development board.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
$ JLinkExe
SEGGER J-Link Commander V6.50b (Compiled Sep  6 2019 17:46:52)
DLL version V6.50b, compiled Sep  6 2019 17:46:40

Connecting to J-Link via USB...O.K.
Firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Jan  7 2019 14:07:15
Hardware version: V1.00
S/N: 68200XXXX
VTref=3.300V


Type "connect" to establish a target connection, '?' for help
J-Link>usb
Disconnecting from J-Link...O.K.
Connecting to J-Link via USB...O.K.
Firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Jan  7 2019 14:07:15
Hardware version: V1.00
S/N: 68200XXXX
VTref=3.300V
J-Link>
J-Link>q
$

This is tested with my Nordic Semiconductors nRF52-DK unit connected.

Note: The serial number S/N is intentionally blocked. You would see the correct number that matches your board.

In case there is problem #

Possibly the USB permission is acting up.

You might need to manually place the rules file under

/etc/udev/rules.d/ directory.

Download the 99-jlink.rules file by right clicking on this to Save link as...

Note: make sure that the file permission are set as 664 for this file

That would be -rw-rw-r-- before coping it.

Also Reboot the PC after install of the Rules file.