install Jlink under FreeBSD

957 Views Asked by At

I download jlink soft for Linux from www.segger.com, install it under FreeBSD 9.0 with linux compat.

./JLinkExe could run, but couldn't connect my Jlink device.

Anyone help how to install jlkink soft that can connect jlink via usb. Trouble info as below.

www# ./JLinkExe
SEGGER J-Link Commander V4.50i ('?' for help)
Compiled Jun 22 2012 19:00:38
Can not connect to J-Link via USB.
J-Link>exit
www# cat JLink.log

T2882C6C0 000:000 SEGGER J-Link V4.50i Log File (0000ms, 0000ms total)
T2882C6C0 000:000 DLL Compiled: Jun 22 2012 19:00:36 (0001ms, 0001ms total)
T2882C6C0 000:000 Logging started @ 2012-08-12 10:57 (0001ms, 0001ms total)
T2882C6C0 000:001 JLINK_SetWarnOutHandler(...) (0001ms, 0002ms total)
T2882C6C0 000:002 JLINK_OpenEx(...)
  ***** Error: Can not connect to J-Link via USB.  returns "Can not connect to J-Link via USB." (0005ms, 0007ms total)
T2882C6C0 002:721 JLINK_ClrError() (0000ms, 0007ms total)
T2882C6C0 002:721 JLINK_Close() (0000ms, 0007ms total)
www# 
1

There are 1 best solutions below

0
On

Not sure if it would work on FreeBSD, but this worked on Ubuntu for me:

Create file 45-jlink.rules in /etc/udev/rules.d Contents are:

SUBSYSTEM=="usb", ATTRS{idVendor}=="1366", ATTRS{idProduct}=="010[1234]", MODE="664", GROUP="plugdev"   

See: http://forum.segger.com/index.php?page=Thread&threadID=1175