Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
12 years ago

SignalTap working on Windows but not on Linux

Hi!

I'm having some problems when trying to use SignalTap on Linux.

I'm using two different setups:

- DE2 development board with integrated USB Blaster

- Custom board (EP4CE15) + external USB blaster clone

The thing is, on Windows I can use SignalTap on both setups with no problem.

On Linux I can use SignalTap with the DE2 but not on my custom board. Programmer works OK though. As far as I know it's only SignalTap what it's not working.

Do you know what could the problem be? Anything I can try?

Thank you very much for your help!

Information that can be useful:

- Linux Quartus II 64-Bit Version 13.0 Build 156. I tested also 12.1sp1 with same behaviour.

- Tested on Ubuntu 12.04 and 13.04 64 bits

"lsusb -v" for DE2 and USB blaster clone differ slightly on bMaxPacketSize0 and some names and serial numbers. I don't know if that could be a problem

DE2 USB Blaster


$ sudo lsusb -v -d 09fb:6001
Bus 005 Device 003: ID 09fb:6001 Altera Blaster
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         8
  idVendor           0x09fb Altera
  idProduct          0x6001 Blaster
  bcdDevice            4.00
  iManufacturer           1 Altera
  iProduct                2 USB-Blaster
  iSerial                 3 91d28408
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              150mA
    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              2 USB-Blaster
      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:     0x0000
  (Bus Powered)

USB Blaster clone


$ sudo lsusb -v -d 09fb:6001
Bus 005 Device 002: ID 09fb:6001 Altera Blaster
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x09fb Altera
  idProduct          0x6001 Blaster
  bcdDevice            4.00
  iManufacturer           1 Altera
  iProduct                2 USB-Blaster-ARM????
  iSerial                 3 8D8C41695350
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              150mA
    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              2 USB-Blaster-ARM????
      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:     0x0000
  (Bus Powered)

For both USB blasters, this is the udev configuration.

$ cat /etc/udev/rules.d/51-usbblaster.rules#  Altera USB-Blaster for Quartus FPGA Software
SUBSYSTEMS=="usb", ATTR{idVendor}=="09fb", ATTR{idProduct}=="6001", MODE="0666"
SUBSYSTEMS=="usb", ATTR{idVendor}=="09fb", ATTR{idProduct}=="6002", MODE="0666"
SUBSYSTEMS=="usb", ATTR{idVendor}=="09fb", ATTR{idProduct}=="6003", MODE="0666"#  USB-Blaster II
SUBSYSTEMS=="usb", ATTR{idVendor}=="09fb", ATTR{idProduct}=="6010", MODE="0666"
SUBSYSTEMS=="usb", ATTR{idVendor}=="09fb", ATTR{idProduct}=="6810", MODE="0666"

If you need any additional info, please let me know.

14 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I've done some tests with several USB hubs, but same results...

    Now I've got an official Altera USB Blaster and "sudo lsusb -v -d 09fb:6001" shows exactly the same that DE2.

    I think I'll contact my clone vendors to ask them to check/correct this. The only difference shown in lsusb between the clone and the original is:

    bMaxPacketSize0: 8 (altera) vs 64 (clone)

    iProduct and iInterface: USB-Blaster (altera) vs USB-Blaster-ARM???? (clone)

    iSerial: 91d28408 (altera) vs 8D8C41695350 (clone)

    bMaxPacketSize0 might make the difference. Do you think that iProduct, iInterface or iSerial might have any influence?

    Do you want me to go on revere-engineering my clone?

    Thanks a lot!
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    I've done some tests with several USB hubs, but same results...

    Now I've got an official Altera USB Blaster and "sudo lsusb -v -d 09fb:6001" shows exactly the same that DE2.

    I think I'll contact my clone vendors to ask them to check/correct this. The only difference shown in lsusb between the clone and the original is:

    bMaxPacketSize0: 8 (altera) vs 64 (clone)

    iProduct and iInterface: USB-Blaster (altera) vs USB-Blaster-ARM???? (clone)

    iSerial: 91d28408 (altera) vs 8D8C41695350 (clone)

    bMaxPacketSize0 might make the difference. Do you think that iProduct, iInterface or iSerial might have any influence?

    Do you want me to go on revere-engineering my clone?

    Thanks a lot!

    --- Quote End ---

    Wow, I'm having the same problem as you.. on Win8 it runs fine, on Linux.. It doesn't. It recognizes my cable, I'm able to run once jtagconfig, then it doesn't work anymore and I have to remove and insert back the cable. I'm able to program my device, but to call a tcl with Signal trap doesn't work.. please can we try to reverse engineer it?

    the output from my dmesg:

    [20062.358849] usb 3-2: new full-speed USB device number 8 using xhci_hcd

    [20062.370796] usb 3-2: New USB device found, idVendor=09fb, idProduct=6001

    [20062.370807] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3

    [20062.370812] usb 3-2: Product: USB-Blaster-ARM技术论坛

    [20062.370817] usb 3-2: Manufacturer: Altera

    [20062.370821] usb 3-2: SerialNumber: 8D77536E5655

    it is a sainsmart, rev.C, like the one listed on their website. from the spec you can read something like:

    • ALTERA USB ByteBlaster

    • USB interface

    • FPGA/CPLD download

    • SignalTap II embeded logic analyzer

    • NIOS II debug

    Any difference between Blaster I and ByteBlaster?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    please can we try to reverse engineer it?

    --- Quote End ---

    Ok, lets see ...

    --- Quote Start ---

    the output from my dmesg:

    usb 3-2: new full-speed USB device number 8 using xhci_hcd

    usb 3-2: New USB device found, idVendor=09fb, idProduct=6001

    usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3

    usb 3-2: Product: USB-Blaster-ARM技术论坛

    usb 3-2: Manufacturer: Altera

    usb 3-2: SerialNumber: 8D77536E5655

    it is a sainsmart, rev.C, like the one listed on their website.

    --- Quote End ---

    Ok, what is inside the Sainsmart device?

    http://www.sainsmart.com/home-page-view/usb-blaster-download-cable-for-fpga-development-board.html

    Remove the outer shell and read the part numbers on the devices (perhaps your version does not have the TQFP part number removed).

    Cheers,

    Dave
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    Ok, lets see ...

    Ok, what is inside the Sainsmart device?

    http://www.sainsmart.com/home-page-view/usb-blaster-download-cable-for-fpga-development-board.html

    Remove the outer shell and read the part numbers on the devices (perhaps your version does not have the TQFP part number removed).

    Cheers,

    Dave

    --- Quote End ---

    Well I think my version is exactly like the first one posted here:

    - TQFP-48 I can't read the model.

    - 8 MHz XT

    - 74HC244 octal buffer

    - AMS1117 3.3V LDO regulator

    - 2x LED

    - Resistors and capacitors.