On 2017.11.29 09:29:37, Romain Tartičre wrote:
> Hello!
>
> After updating sigrock and pulseview on FreeBSD, I could not use my
> fx2lafw device anymore. After investigating the issue, I found out the
> culpit: when usb_get_port_path() is called while the device is open, the
> function fails, but since the return value is never tested, the
> uninitialized memory that was supposed to receive the path is copied and
> considered valid, and execution continues.
>
> As a consequence, when attempting to compare the device path and
> uninitialized memory later on, no match is found.
Hi,
thank you, my fx2lafw LA is working again :)
But, it seems that DreamSourceLab DSLogic doesn't:
LD_LIBRARY_PATH=/home/johnny/.opt/la_sigrok/lib
/home/johnny/.opt/la_sigrok/bin/sigrok-cli
--scan
The following devices were found:
demo - Demo device with 12 channels: D0 D1 D2 D3 D4 D5 D6 D7 A0 A1 A2 A3
dreamsourcelab-dslogic - DreamSourceLab DSLogic Pro with 16 channels: 0 1 2
3 4 5 6 7 8 9 10 11 12 13 14 15
SIGROK_FIRMWARE_DIR=$HOME/src/la_sigrok/old/share/sigrok-firmware
LD_LIBRARY_PATH=/home/johnny/.opt/la_sigrok/lib
/home/johnny/.opt/la_sigrok/bin/sigrok-cli
-d dreamsourcelab-dslogic --samples 10
sr: dreamsourcelab-dslogic: Failed to send start command:
LIBUSB_ERROR_NO_DEVICE.
sr: session: Could not start dreamsourcelab-dslogic device usb/2-1.2
acquisition.
sr: dreamsourcelab-dslogic: Failed to send stop command:
LIBUSB_ERROR_NO_DEVICE.
Failed to start session.
LD_LIBRARY_PATH=/home/johnny/.opt/la_sigrok/lib
/home/johnny/.opt/la_sigrok/bin/sigrok-cli
--version
sigrok-cli 0.8.0-git-f0de24f
Libraries and features:
- libsigrok 0.6.0-git-be619379/4:0:0 (rt: 0.6.0-git-be619379/4:0:0).
- Libs:
- glib 2.50.2 (rt: 2.50.2/5002:2)
- libzip 1.3.2
- libserialport 0.1.1/1:0:1 (rt: 0.1.1/1:0:1)
- libusb-1.0
- libftdi 1.4
- librevisa 0.0.20130412
- Host: amd64-unknown-freebsd11.1, little-endian.
- SCPI backends: TCP, RPC, serial, VISA, USBTMC.
- libsigrokdecode 0.6.0-git-e8b5381/4:0:0 (rt: 0.6.0-git-e8b5381/4:0:0).
- Libs:
- glib 2.50.2 (rt: 2.50.2/5002:2)
- Python 3.6.4 / 0x30604f0 (API 1013, ABI 3)
- Host: amd64-unknown-freebsd11.1, little-endian.
$HOME/src/la_sigrok/old contains firmware from:
FWURL="https://github.com/DreamSourceLab/DSView/raw/
4cc02c8d780e17527cd05e0ba7aa45288e49bd8a/DSView/res"
The LED on the device will become green after scan attempt.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel