I am running Fedora 22 - x64 and have downloaded and installed the jlink-5.2.1.x86_64.rpm package. My hardware is a Renesas YRDKRX62N development board. The JLinkExe program works the first time that I plug the board in but fails every time after that.
Here is the output of the "lsusb -vd 1366:0101" before I run the JLinkExe command.
Display All
This is the output of the JLinkExe command on first run.
Display All
This is the output of the "lsusb -vd 1366:0101" command after the JLinkExe command has been run.
Display All
This is the output for all subsequent runs of the JLinkExe command
This is the relevant bits of a strace of the JLinkExe process.
In addition, the dmesg log sees this.
Here is the output of the "lsusb -vd 1366:0101" before I run the JLinkExe command.
Source Code
- Bus 005 Device 012: ID 1366:0101 SEGGER J-Link PLUS
- Device Descriptor:
- bLength 18
- bDescriptorType 1
- bcdUSB 1.10
- bDeviceClass 0 (Defined at Interface level)
- bDeviceSubClass 0
- bDeviceProtocol 0
- bMaxPacketSize0 8
- idVendor 0x1366 SEGGER
- idProduct 0x0101 J-Link PLUS
- bcdDevice 0.01
- iManufacturer 1 SEGGER
- iProduct 2 J-Link
- iSerial 3 123456
- bNumConfigurations 1
- Configuration Descriptor:
- bLength 9
- bDescriptorType 2
- wTotalLength 32
- bNumInterfaces 1
- bConfigurationValue 1
- iConfiguration 0
- bmAttributes 0xc0
- Self Powered
- MaxPower 100mA
- Interface Descriptor:
- bLength 9
- bDescriptorType 4
- bInterfaceNumber 0
- bAlternateSetting 0
- bNumEndpoints 2
- bInterfaceClass 255 Vendor Specific Class
- bInterfaceSubClass 255 Vendor Specific Subclass
- bInterfaceProtocol 255 Vendor Specific Protocol
- iInterface 0
- Endpoint Descriptor:
- bLength 7
- bDescriptorType 5
- bEndpointAddress 0x81 EP 1 IN
- bmAttributes 2
- Transfer Type Bulk
- Synch Type None
- Usage Type Data
- wMaxPacketSize 0x0040 1x 64 bytes
- bInterval 0
- Endpoint Descriptor:
- bLength 7
- bDescriptorType 5
- bEndpointAddress 0x02 EP 2 OUT
- bmAttributes 2
- Transfer Type Bulk
- Synch Type None
- Usage Type Data
- wMaxPacketSize 0x0040 1x 64 bytes
- bInterval 0
- Device Status: 0x0001
- Self Powered
This is the output of the JLinkExe command on first run.
Brainfuck Source Code
- SEGGER J-Link Commander V5.02a ('?' for help)
- Compiled Sep 4 2015 18:50:52
- DLL version V5.02a, compiled Sep 4 2015 18:50:47
- Firmware: J-Link ARM-OB SAM7 compiled Jun 1 2012 09:33:42
- Hardware: V2.10
- S/N: ---------
- Emulator has Trace capability
- VTarget = 3.300V
- Info: TotalIRLen = 8, IRPrint = 0x00C1
- Info: Found Renesas RX62N device
- Info: Debugger authenticated successfully.
- Info: Endian: little
- Found 1 JTAG device, Total IRLen = 8:
- #0 Id: 0x0D002447, IRLen: 08, IRPrint: 0xC1, RX62N Core (Renesas)
- Renesas RX core identified.
- Target interface speed: 100 kHz
This is the output of the "lsusb -vd 1366:0101" command after the JLinkExe command has been run.
Source Code
- Bus 005 Device 012: ID 1366:0101 SEGGER J-Link PLUS
- Device Descriptor:
- bLength 18
- bDescriptorType 1
- bcdUSB 1.10
- bDeviceClass 0 (Defined at Interface level)
- bDeviceSubClass 0
- bDeviceProtocol 0
- bMaxPacketSize0 8
- idVendor 0x1366 SEGGER
- idProduct 0x0101 J-Link PLUS
- bcdDevice 0.01
- iManufacturer 1 (error)
- iProduct 2 (error)
- iSerial 3 (error)
- bNumConfigurations 1
- Configuration Descriptor:
- bLength 9
- bDescriptorType 2
- wTotalLength 32
- bNumInterfaces 1
- bConfigurationValue 1
- iConfiguration 0
- bmAttributes 0xc0
- Self Powered
- MaxPower 100mA
- Interface Descriptor:
- bLength 9
- bDescriptorType 4
- bInterfaceNumber 0
- bAlternateSetting 0
- bNumEndpoints 2
- bInterfaceClass 255 Vendor Specific Class
- bInterfaceSubClass 255 Vendor Specific Subclass
- bInterfaceProtocol 255 Vendor Specific Protocol
- iInterface 0
- Endpoint Descriptor:
- bLength 7
- bDescriptorType 5
- bEndpointAddress 0x81 EP 1 IN
- bmAttributes 2
- Transfer Type Bulk
- Synch Type None
- Usage Type Data
- wMaxPacketSize 0x0040 1x 64 bytes
- bInterval 0
- Endpoint Descriptor:
- bLength 7
- bDescriptorType 5
- bEndpointAddress 0x02 EP 2 OUT
- bmAttributes 2
- Transfer Type Bulk
- Synch Type None
- Usage Type Data
- wMaxPacketSize 0x0040 1x 64 bytes
- bInterval 0
- Device Status: 0x0001
- Self Powered
This is the output for all subsequent runs of the JLinkExe command
This is the relevant bits of a strace of the JLinkExe process.
Source Code
- ioctl(3, USBDEVFS_CLAIMINTERFACE, 0x7ffc1d6d068c) = 0
- ioctl(3, USBDEVFS_BULK, 0x7ffc1d6d1790) = 1
- ioctl(3, USBDEVFS_BULK, 0x7ffc1d6d1790) = 2
- ioctl(3, USBDEVFS_BULK, 0x7ffc1d6d1760) = 112
- lseek(3, 0, SEEK_SET) = 0
- read(3, "\22\1\20\1\0\0\0\10f\23\1\1\1\0\1\2\3\1", 18) = 18
- ioctl(3, USBDEVFS_CONTROL, 0x7ffc1d6d16a0) = -1 ETIMEDOUT (Connection timed out)
- close(3) = 0
In addition, the dmesg log sees this.