[SOLVED]J-Link, Ubuntu Linux 9.04, file too short. Need Help.

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [SOLVED]J-Link, Ubuntu Linux 9.04, file too short. Need Help.

    My J-Link works great in Windows XP. I'm now trying to get it to work on my Ubuntu 9.04 32 bit machine. I followed the instructions in the README file that came with the Linux version of J-Link Server. I copied the 45 file, added the group "plugdev", added me as a user, etc...

    I have libusb-0.1-4 installed.

    I can see the J-Link USB device when I do "lsusb -v"

    When I try to run the J-Link program I get an error as follows "file too short". Anyone know how to fix this? Thanks.

    Source Code

    1. ~/segger/JLink_Linux_090804$ ./start
    2. ./JLinkExe: error while loading shared libraries: ./libjlinkarm.so.0: file too short


    Source Code

    1. lsusb -v
    2. Bus 004 Device 004: ID 1366:0101
    3. Device Descriptor:
    4. bLength 18
    5. bDescriptorType 1
    6. bcdUSB 2.00
    7. bDeviceClass 0 (Defined at Interface level)
    8. bDeviceSubClass 0
    9. bDeviceProtocol 0
    10. bMaxPacketSize0 8
    11. idVendor 0x1366
    12. idProduct 0x0101
    13. bcdDevice 1.00
    14. iManufacturer 1 SEGGER
    15. iProduct 2 J-Link
    16. iSerial xxxxxxxxxxxxxxx
    17. bNumConfigurations 1
    18. Configuration Descriptor:
    19. bLength 9
    20. bDescriptorType 2
    21. wTotalLength 32
    22. bNumInterfaces 1
    23. bConfigurationValue 1
    24. iConfiguration 0
    25. bmAttributes 0xc0
    26. Self Powered
    27. MaxPower 100mA
    28. Interface Descriptor:
    29. bLength 9
    30. bDescriptorType 4
    31. bInterfaceNumber 0
    32. bAlternateSetting 0
    33. bNumEndpoints 2
    34. bInterfaceClass 255 Vendor Specific Class
    35. bInterfaceSubClass 255 Vendor Specific Subclass
    36. bInterfaceProtocol 255 Vendor Specific Protocol
    37. iInterface 0
    38. Endpoint Descriptor:
    39. bLength 7
    40. bDescriptorType 5
    41. bEndpointAddress 0x81 EP 1 IN
    42. bmAttributes 2
    43. Transfer Type Bulk
    44. Synch Type None
    45. Usage Type Data
    46. wMaxPacketSize 0x0040 1x 64 bytes
    47. bInterval 1
    48. Endpoint Descriptor:
    49. bLength 7
    50. bDescriptorType 5
    51. bEndpointAddress 0x02 EP 2 OUT
    52. bmAttributes 2
    53. Transfer Type Bulk
    54. Synch Type None
    55. Usage Type Data
    56. wMaxPacketSize 0x0040 1x 64 bytes
    57. bInterval 1
    58. Device Status: 0x0001
    59. Self Powered
    Display All
  • Apparently no one has seen this issue. Let me ask this from a different angle... Has anyone got the J-Link tool to work with Ubuntu? if so, what version of Ubuntu and how did you get it to work? Come on guys, help a mate out!