Skip to main content
Topic: Help: Cannot connect to logic sniffer board using Kubuntu 9.10 (Read 1356 times) previous topic - next topic

Help: Cannot connect to logic sniffer board using Kubuntu 9.10

Hi,

I have just received my logic sniffer through the post. I followed the tutorial from seek studio on how to install the software and run the SUMP program. However it looks as if the system is not finding the board as it fails at the bf_loader stage.

lsusb command shows a the PIC chip attached with ID 04d8:000a, looking at the bf_loader.sh file the id numbers in the 'cable' command are vid=0403 pid=6010. Does this mean my board is enumerating with the wrong usb ID?

I have posted my console output for running the sump program, lsusb and the contents of the script file where the error occurs. The device behaviour on power on is as follows: the ack light flashes then goes out and the trig light comes on and stays on.

Does anyone know what is going on here, or what the problem might be?



Running bp_logicanalyzer_linux.sh command:
[tt:]paul@thewho:~/robotics/logic_sniffer/bp_logic_analyzer$ ./bp_logicanalyzer_linux.sh
Couldn't connect to suitable USB device.
Error: Cable connection failed!
Error: Cable not configured. Please use 'cable' command first!
./bf_loader.sh: line 13:  2594 Segmentation fault      sudo ./jtag_lin $CMDFile
Experimental:  JNI_OnLoad called.
Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version   = RXTX-2.1-7
/dev/ttyS0
Device Controller found: org.sump.analyzer.devices.FpgaDeviceController
/dev/ttyS0
Device Controller found: org.sump.analyzer.devices.Hp16500DeviceController
Device Controller = FPGA Controller
Tool found: org.sump.analyzer.tools.I2CProtocolAnalysis
Tool found: org.sump.analyzer.tools.SPIProtocolAnalysis
Tool found: org.sump.analyzer.tools.StateAnalysis
Tool found: org.sump.analyzer.tools.UARTProtocolAnalysis[/tt:]

Running lsusb:
[tt:]paul@thewho:~/robotics/logic_sniffer/bp_logic_analyzer$ lsusb
Bus 011 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 2040:9950 Hauppauge
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 010 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 002: ID 046d:c512 Logitech, Inc. LX-700 Cordless Desktop Receiver
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 004: ID 04d8:000a Microchip Technology, Inc.
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 058f:6362 Alcor Micro Corp. Hi-Speed 21-in-1 Flash Card Reader/Writer (Internal/External)
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 009 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 006: ID 03eb:2103 Atmel Corp. JTAG ICE mkII
Bus 001 Device 005: ID 0409:005a NEC Corp. HighSpeed Hub
Bus 001 Device 004: ID 0dda:2026 Integrated Circuit Solution, Inc. USB2.0 Card Reader
Bus 001 Device 002: ID 0409:005a NEC Corp. HighSpeed Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub[/tt:]


Contents of bf_loader.sh
Code: [Select]
#!/bin/bash

CMDFile=Butterfly_loader.cmd
SVFFile=$1
TMPFile=svftemp.svf

cp $1 bin/$TMPFile
cd bin
echo cable ft2232 vid=0403 pid=6010 > $CMDFile
echo bsdl path . >> $CMDFile
echo detect >> $CMDFile
echo svf $TMPFile progress >> $CMDFile
sudo ./jtag_lin $CMDFile
rm $CMDFile
rm $TMPFile

Re: Help: Cannot connect to logic sniffer board using Kubuntu 9.10

Reply #1
Hi amp - there are some bugs in the first firmware/bitstream releases. I think the problem might be solved with an updated firmware and bitstream. This post shows how to update both:
http://dangerousprototypes.com/2010/05/ ... rs-needed/

Please let me know if that helps.
Got a question? Please ask in the forum for the fastest answers.

Re: Help: Cannot connect to logic sniffer board using Kubuntu 9.10

Reply #2
I'm sorry, there doesn't seem to be a very complete upgrade package right now, we're getting ready to make a new release. For now, this post has links to the latest firmware (05/06) and bitstream (2.04):
http://dangerousprototypes.com/forum/in ... opic=580.0
Got a question? Please ask in the forum for the fastest answers.

Re: Help: Cannot connect to logic sniffer board using Kubuntu 9.10

Reply #3
Hi I have managed to get the logic analyser working with the client on my kubuntu system by following the following thread:
http://dangerousprototypes.com/forum/index.php?topic=488.0

The problem was simply the location the logic analyser appeared on my system.

However I still get the following error on running the script (even though the client works)

[tt:]Error: Cable connection failed!                                                                                    
Error: Cable not configured. Please use 'cable' command first!                                                     
./bf_loader.sh: line 13:  3091 Segmentation fault      sudo ./jtag_lin $CMDFile
.... [/tt:]

Can someone comment on what this part of the script does. I would guess at trying to download bit stream perhaps?? But I really dont know the system, or know if I even need this part.

Thanks
Paul