Bug 662

Summary: fx2lafw: Set device to 8-bit sampling (Unable to sample at 24000000Hz when collecting 16-bit samples.)
Product: libsigrok Reporter: stronglytyp3d
Component: Driver: fx2lafwAssignee: Nobody <nobody>
Status: CONFIRMED ---    
Severity: normal CC: sascha-web-sigrok.org, sigrok.20.orzelf, stefan.bruens, umerali199659
Priority: Low    
Version: unreleased development snapshot   
Target Milestone: ---   
Hardware: All   
OS: All   
Attachments: sigrok-cli log with 12 and 24 MHz

Description stronglytyp3d 2015-09-28 00:01:23 CEST
Created attachment 162 [details]
sigrok-cli log with 12 and 24 MHz

I have a generic FX2LP-based clone logic analyser. It works with sigrok and the fx2lafw firmware up to 12 MHz sampling rate.

At higher sample rates (16, 24 MHz), it complains about sampling at 16-bit samples. I know that this is a hardware limitation. I see no way to set the device to 8-bit sampling which should allow 16 and 24 MHz sampling.

I am using the latest checkout from master
libsigrok 6e799d0
sigrok-firmware-fx2lafw c547f69e

The error comes from protocol.c

http://sigrok.org/gitweb/?p=libsigrok.git;a=blob;f=src/hardware/fx2lafw/protocol.c;h=12fc9e2c061166405b494ad813c6c704d146d1fe;hb=HEAD#l94

The flag is set from the capabilities and to cannot be changes at runtime.

http://sigrok.org/gitweb/?p=libsigrok.git;a=blob;f=src/hardware/fx2lafw/api.c;h=b9123513c49ade9ac38726ad62cd9a0080d19cba;hb=HEAD#l304

I there a way to limit the device to 8-bit sampling to achieve 16 and 24 MHz sampling?
Comment 1 Stefan BrĂ¼ns 2017-12-29 05:02:01 CET
This should work if you only select the lower 8 channels or a subset of these. None of channels 9-16 may be selected.

Can you confirm this also works for you?

Lowering priority, as it is "only" a UI issue.
Comment 2 Rock12 2023-08-07 15:00:25 CEST
BMX biking isn't just for the boys! We celebrate the amazing women breaking barriers in the BMX world and how JustBMXBikes actively supports and empowers female riders. https://justbmxbikes.com/best-bmx-bikes-for-10-year-olds/