Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BLADERF_FORMAT_SC8_Q7_META not working? #913

Closed
manoskav opened this issue Mar 24, 2023 · 9 comments
Closed

BLADERF_FORMAT_SC8_Q7_META not working? #913

manoskav opened this issue Mar 24, 2023 · 9 comments

Comments

@manoskav
Copy link

Hello,
does BLADERF_FORMAT_SC8_Q7_META really work? I am trying to use it, but I get overruns in all bladerf_sync_rx calls. I am running the example https://github.com/Nuand/bladeRF/blob/master/host/libraries/libbladeRF/doc/examples/sync_rx_meta.c where I only change the format in bladerf_sync_config call. Also, the scheduled sync_rx part of the example seems to get stuck.

I am using bladeRF 2.0 micro xA4 on a raspberry pi 4.
Everything is on latest version as seen below from bladeRF-cli:

bladeRF> version

  bladeRF-cli version:        1.9.0-git-12699a5c
  libbladeRF version:         2.5.0-git-12699a5c

  Firmware version:           2.4.0-git-a3d5c55f
  FPGA version:               0.15.0 (configured from SPI flash)

I get the following output when executing the test:

Opening and initializing device...

RX frequency: 1575420000 Hz
RX samplerate: 1000000 sps
RX bandwidth: 1000000 Hz
RX gain: 60
TX frequency: 1575420000 Hz
TX samplerate: 1000000 sps
TX bandwidth: 1000000
TX gain: 60

Running RX meta "now" example...
Overrun detected. 1016 valid samples were read.
Overrun detected. 1016 valid samples were read.
Overrun detected. 1016 valid samples were read.
Overrun detected. 1016 valid samples were read.
Overrun detected. 1016 valid samples were read.
Overrun detected. 1016 valid samples were read.
Overrun detected. 1016 valid samples were read.
Overrun detected. 1016 valid samples were read.
Overrun detected. 1016 valid samples were read.
Overrun detected. 1016 valid samples were read.
Overrun detected. 1016 valid samples were read.
Overrun detected. 1016 valid samples were read.
Overrun detected. 1016 valid samples were read.
Overrun detected. 1016 valid samples were read.
Overrun detected. 1016 valid samples were read.

Running RX meta "scheduled" example...
Current RX timestamp: 0x000000000000448e
[ERROR @ host/libraries/libbladeRF/src/backend/usb/libusb.c:1089] Transfer timed out for buffer 0x55a77db230
Scheduled RX failed: Operation timed out

BLADERF_FORMAT_SC16_Q11_META works as expected.

Originally posted by @manoskav in #884 (comment)

@rghilduta
Copy link
Collaborator

We're getting closer to a solution, please hold tight!

@manoskav
Copy link
Author

Holding tight! Thanks!
(accidentally closed issue)

@manoskav manoskav reopened this Mar 31, 2023
@rthomp10
Copy link
Collaborator

rthomp10 commented Mar 31, 2023

The FPGA image will have to be recompiled, but tests are passing! Now you can switch between formats with -b <8|16> within the example.

@manoskav
Copy link
Author

The FPGA image will have to be recompiled, but tests are passing! Now you can switch between formats with -b <8|16> within the example.

Thank you @rthomp10 !
Will the new FPGA image be uploaded at https://www.nuand.com/fpga_images/ ?

@rthomp10
Copy link
Collaborator

rthomp10 commented Apr 3, 2023

Sure thing @manoskav. The updated FPGA image will most likely be up on the site this week.

@manoskav
Copy link
Author

Hello!

Any news on the 8-bit format fix?

@rghilduta
Copy link
Collaborator

The FPGA image for v0.15.0 have been updated on the website. Please give them a try and let us know!

@manoskav
Copy link
Author

Ohh I thought it was not updated due to the older date and version.
I will test and let you know!
Thanks!

@manoskav
Copy link
Author

Everything works as expected now with the SC8Q7_META format! Thanks for the fast support and fixes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants