Skip to content

Instantly share code, notes, and snippets.

@bradfa
Last active July 20, 2020 18:15
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save bradfa/2c86121f99f89b001693a2e42ce71f4b to your computer and use it in GitHub Desktop.
Save bradfa/2c86121f99f89b001693a2e42ce71f4b to your computer and use it in GitHub Desktop.
Sigrok DSLogic Pro Exact Steps

Follow the instructions from sigrok build from source: http://sigrok.org/wiki/Linux

Be sure to buld C++ support into libsigrok, you'll need it for pulseview. You'll need a few dependencies like doxygen (no idea why) that you may not have on your system.

Also, for libsigrok, if the dslogic pro doesn't seem to work, you can try using https://github.com/asanza/libsigrok/tree/master instead, which has some patches to fixup issues. Many of (all?) these patches have been sent to the sigrok mailing list.

Install the udev rules as per http://sigrok.org/wiki/Fx2lafw#Usage

Then add PIDs of 0002 and 0003 to the DSLogic section, like found here (until upstreamed): https://github.com/bradfa/libsigrok/commit/62caf6233320fdead83493ce64806e840b967477

Get the DSLogicPro.bin (FPGA bitstream) and DSLogicPro.fw (fx2 firmware) from the DSView git repo: https://github.com/DreamSourceLab/DSView/tree/master/DSView/res and put these files into /usr/local/share/sigrok-firmware/ directory named per their uses, like dreamsourcelab-dslogic-pro-fpga.fw for the fpga and dreamsourcelab-dslogic-pro-fx2.fw for the fx2 firmware.

@bradfa
Copy link
Author

bradfa commented Apr 12, 2016

If you turn on triggering or change the threshold levels, it all goes pear shaped right now, but fixes shouldn't be too bad.

@jhovold
Copy link

jhovold commented Jan 27, 2017

Thanks for the summary. Note that latest DSLogic firmware does not seem to work (channels not sampled correctly). When selecting "Scan for devices" in Pulseview I also get:

 sr: ezusb: Unable to set configuration: LIBUSB_ERROR_BUSY
 sr: fx2lafw: Firmware upload failed for device 3.40 (logical).

Reverting to f15aa50d32e51ee67dace9efe0f0044c2876b276^ works. This has been reported to the sigrok list.

@bradfa
Copy link
Author

bradfa commented Dec 6, 2018

For clarity, the v0.97 tagged version of DSLogicPro firmware and FPGA binary work with the libsigrok 0.5.1, sigrok-cli 0.7.1, and pulseview 0.4.1 releases. This tag corresponds to SHA: 2e17f42187059a70077477d54640f5ec95dfc085 here: https://github.com/DreamSourceLab/DSView/tree/2e17f42187059a70077477d54640f5ec95dfc085/DSView/res

@bradfa
Copy link
Author

bradfa commented Jul 20, 2020

On Debian Buster amd64 the udev rules are already correct and you only need to drop in the proper fx2 and FPGA "firmware" files into /usr/local/share/sigrok-firmware/ directory with the correct names.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment