Bug 662 - fx2lafw: Set device to 8-bit sampling (Unable to sample at 24000000Hz when collecting 16-bit samples.)
Summary: fx2lafw: Set device to 8-bit sampling (Unable to sample at 24000000Hz when co...
Status: CONFIRMED
Alias: None
Product: libsigrok
Classification: Unclassified
Component: Driver: fx2lafw (show other bugs)
Version: unreleased development snapshot
Hardware: All All
: Low normal
Target Milestone: ---
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-28 00:01 CEST by stronglytyp3d
Modified: 2023-08-07 15:00 CEST (History)
4 users (show)



Attachments
sigrok-cli log with 12 and 24 MHz (7.49 KB, text/plain)
2015-09-28 00:01 CEST, stronglytyp3d
Details

Note You need to log in before you can comment on or make changes to this bug.
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/