Commit graph

2,557 commits

Author SHA1 Message Date
Robert Ghilduta
fcf9423325 Bump pillow 2025-10-06 16:06:05 -07:00
Robert Ghilduta
712d49e28f libbladeRF: add RX reordering and prime worker before RX enable
- Add RX buffer sequence tracking with reorder queue to deliver in-order buffers
  despite out-of-order USB completions. Pause submissions when the reorder
  queue holds data to avoid overwriting, and reset tracking on stream start.
- Introduce sync_prime_stream() to start the sync worker and wait until it is
  running. This is used to avoid start-up gaps.
- Call sync_prime_stream() on RX enable paths for bladerf1/bladerf2 boards
  before backend enable, reducing early stream discontinuities (e.g., with
  RX_MUX_32BIT_COUNTER).
- This does not at affect TX code paths.

This improves RX robustness and eliminates potential early out-of-order batches
on some platforms under high sample rates and low compute throughput.
2025-09-28 20:28:22 -07:00
Ryan Thompson
7d7d87f686 libbladeRF: improve RFIC BIST loopback error message
Change from log_debug to log_error and provide clearer message when
RFIC BIST loopback is attempted in FPGA tuning mode. The new message
explicitly states the requirement (HOST mode) and current state (FPGA
mode), making it actionable for users.
2025-07-16 17:52:11 -05:00
Ryan Thompson
2935ce5251 test: added oversample test channel select and disabled channel check
If we see over 40% of the samples at zero, it's likely that a channel
is disabled. Reverting 55b5a0d07c will
get this test to fail.
2025-07-07 12:45:18 -05:00
Ryan Thompson
55b5a0d07c libbladeRF: fix OC register from 0x54 to 0xD4 enabling both RX1 and RX2
This occurs because the OC register (0x003) was set to 0x54, which only
enables RX1 in oversample mode. Now both channels are enabled by default
and appropriately gated at the top level adc_assignment_proc
in hosted.vhd.
2025-07-03 21:38:50 -05:00
Ben Morse
3d647f3db9 host: improve txrx_hwloop test
- fix bug where test would erroneously pass due to negative value
- add gain, better threshold control, png output
- requirements.txt now supports Ubuntu 20.04 and newer
2025-07-03 01:29:26 -07:00
ifrasch17
fa2f917179 bladeRF-fsk: bump version to add configurable sample rate, better test_suite 2025-07-01 17:48:53 -06:00
Ben Morse
7706720f99 docker: fix rocky-9 Docker build 2025-07-01 13:22:22 -07:00
Ben Morse
4494aa41ab host: test_regression can build every bitfile 2025-06-13 15:39:22 -07:00
Ben Morse
e55e12b889 docker: fix all docker images
- delete many dockers, the rest are fully functioning
- build.bash returns with correct exit code
- base moves to alpine
- add rocky in place of centos
- some platforms require a cmake compile to get modern cmake
- add i686 build to existing i386
2025-06-13 15:39:13 -07:00
Ben Morse
ddc83606ff host: fix test_txrx_hwloop
- fix duty cycle error for subsequent iterations in the test
2025-06-13 15:39:07 -07:00
Ryan Thompson
b2f9503fce bladeRF-power: build: look for brew installed ncurses 2025-06-13 15:39:06 -07:00
Ben Morse
86c5063425 host: Fixes for Windows
- Changes around getopt/getopt_long
- CLOCK_MONOTONIC fix
- link fix
2025-06-13 15:39:00 -07:00
Ben Morse
a93191ae39 bladeRF-fsk: bump
- fix compiler error
- update windows threading
2025-06-13 15:38:48 -07:00
Ben Morse
6d61b4f86f bladeRF-fsk: add cmake flag to build FSK project 2025-06-07 22:04:26 -07:00
Ben Morse
918535854c bladeRF-fsk: host: various errors and compiler warning fixes on multiple platforms 2025-06-07 21:58:57 -07:00
Ryan Thompson
5be9df53a8 test: add libbladeRF oversample test 2025-05-20 01:47:40 -07:00
Ryan Thompson
8f490c0a67 libbladeRF: fix max sample throughput warning for oversample feature 2025-05-20 01:47:21 -07:00
Robert Ghilduta
d77b35c7c5 bladeRF-fsk: unitialized value fixup 2025-05-20 01:43:35 -07:00
Robert Ghilduta
2c12352457 docker: add Ubuntu distributions, update debian distro packages 2025-05-20 01:43:22 -07:00
Robert Ghilduta
761f39e1d7 docker: update from yum to DNF 2025-05-20 00:47:40 -07:00
Robert Ghilduta
8f99003e36 libbladeRF_test: update dependency 2025-05-20 00:32:33 -07:00
Robert Ghilduta
cd29f93a58 libladeRF: LTO fix
Fixes libbladeRF LTO compilation error
cmake -DCMAKE_C_FLAGS="-flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing" -DCMAKE_BUILD_TYPE=Release ..
2025-05-19 23:58:10 -07:00
Ryan Thompson
8931d475f3 host: add ifdef for array size macro 2025-05-19 23:57:50 -07:00
Ryan Thompson
a59d95fc80 host: fsk submodule init on make 2025-05-19 23:57:43 -07:00
Robert Ghilduta
bbdfbe1760 fsk: bump submodule to include build library fix 2025-05-14 01:22:16 -07:00
Robert Ghilduta
09c8208778 libbladeRF: bump version to 2.6.0
v2.6.0 (2025-05-06)
--------------------------------

This version of libbladeRF is intended for use with:

  FX3 Firmware v2.6.0
  FPGA         v0.16.0

New Features:
 * Added SC16_Q11 packed sample format support, improving sample efficiency
 * Increased FX3 GPIF buffer sizes, significantly boosting USB throughput (~356MB/s)
 * Implemented dynamic Nios base address assignment based on RAM size
 * Added parallel build support for hosted FPGA variants (40, 115, A4, A5, A9)
 * Enabled elf-gdb and gdb-server support for improved FPGA debugging capability
 * Added git revision information to FPGA build outputs
 * bladeRF 2.0: Added support for gain calibration loading, enabling, and management
 * bladeRF 2.0: Introduced bladeRF-power CLI tool for managing gain calibration
 * bladeRF 2.0: Added bladerf_get_gain_target function for gain management
 * bladeRF 2.0: Added bladerf_format_to_string API call
 * bladeRF 2.0: Added bladerf_image_print_metadata API to display image metadata
 * bladeRF 2.0: Improved compatibility checking between FPGA and FX3 firmware GPIF buffers

Improvements:
 * libbladeRF now compiles and runs under MinGW and MSVC on Windows platforms
 * Replaced libpthreadswin32 dependency with native libbladeRF threading macros
 * Improved error handling and reporting for out-of-range frequency and sample rate settings
 * Added detailed logging for USB transfer and Nios access timeouts
 * Updated Doxygen to v1.9.8, adding support for light/dark modes and modernized configuration
 * Improved GPIF buffer alignment handling for larger FX3 buffer sizes
 * Added CMake find_package() support for easier integration into external projects
 * Streamlined internal error checking macros, simplifying codebase
 * Enhanced sync_rx_meta example with additional argument parsing and MIMO support
 * Improved FPGA simulations for bladeRF 1.0 and bladeRF 2.0 micro

Bug Fixes:
 * Fixed delayed sample and off-by-one timestamp issues on bladeRF 1.0
 * Corrected TX meta sample gap issue when timestamp set to META_NOW
 * Resolved corrupted UART buffer in command_uart component
 * Fixed TX deadlock scenarios by refactoring RX/TX DMA prioritization
 * Addressed SC16_Q11 packed RX discontinuity issue on overflow condition
 * Fixed false timing paths and resolved multiple timing violations
 * Fixed calibration load check in bladerf_get_gain_calibration
 * Corrected RX meta packet timestamp and flags assignment
 * Fixed sync TX initialization bug

Miscellaneous:
 * Updated API documentation to reflect larger GPIF buffer sizes
 * Improved FX3 SDK setup instructions in README
 * Minor typo and documentation corrections throughout the codebase
2025-05-11 04:22:46 -07:00
Robert Ghilduta
902fc43305 firmware: bump version to 2.6.0
v2.6.0 (2025-05-06)
--------------------------------
 * Fixed missing break in BLADE_USB_CMD_QUERY_FPGA_SOURCE command handling
 * Improved FX3 SDK setup instructions in README
2025-05-11 04:21:32 -07:00
Robert Ghilduta
f746c5bd13 fpga: bump version to 0.16.0
--------------------------------
v0.16.0 (2025-05-06)
--------------------------------

This version brings significant FPGA improvements including sc16q11 packed mode
support and optimized USB throughput, along with important bug fixes for bladeRF
1.0 and 2.0 micro devices.

 Features:
 * hdl: Added sc16q11 packed mode for improved sample efficiency
 * hdl: Increased FX3 GPIF buffer sizes, boosting USB throughput (~356MB/s)
 * hdl: Implemented dynamic Nios base address assignment based on RAM size
 * hdl: Added parallel build support for hosted FPGA variants (40, 115, A4, A5, A9)
 * nios: Enabled elf-gdb and gdb-server support for improved debugging capability
 * hdl: Added git revision information to FPGA build outputs

 Fixes:
 * hdl: Fixed delayed sample and off-by-one timestamp bugs on bladeRF 1.0
 * hdl: Corrected TX meta sample gap issue when timestamp set to META NOW
 * hdl: Fixed corrupted UART buffer in command_uart component
 * hdl: Resolved TX deadlock scenarios by refactoring RX/TX DMA prioritization
 * hdl: Improved FPGA simulation accuracy for bladeRF 1 and 2 micro models
 * hdl: Fixed false timing paths and resolved multiple timing violations
2025-05-11 04:21:30 -07:00
Robert Ghilduta
e1325c0103 bladeRF-cli: bump version to 1.10.0
v1.10.0 (2025-05-06)
--------------------------------
 * Added sc16q11 packed format support
 * Improved sample format tracking and replaced legacy bit_mode handling
 * Migrated threading to unified libbladeRF thread macros
 * Updated CMake minimum requirement to modernized syntax
 * Fixed RX sample count overflow (issue #941)
 * Return error code when no available devices detected (issue #844)
 * Clarified K/M/G prefixes as powers of 1024 in documentation (issue #840)
 * Updated documentation to reflect sample limit changes
2025-05-11 04:17:01 -07:00
Robert Ghilduta
2003fd968f python: bump version to 1.4.0
v1.4.0 (2025-05-06)
--------------------------------
 * add support for SC16_Q11_META format
 * update Python binding definitions
2025-05-11 04:17:01 -07:00
Robert Ghilduta
5627503b27 matlab: bump version to 1.1.0
v1.1.0 (2025-05-06)
--------------------------------
 * Add bladerf_image_type_to_string API binding
 * Add missing RFIC_BIST loopback type
 * Improve enum string handling and conversion functions
 * Fix module default value handling in calibrate method
 * Standardize version information handling
2025-05-11 04:17:01 -07:00
Robert Ghilduta
20b9810eb0 misc: add missing CHANGELOGs
All CHANGELOGs should be up to date now.
2025-05-11 04:17:01 -07:00
Robert Ghilduta
5e4da73c1c bladeRF-fsk: add git submodule for bladeRF-fsk repo 2025-05-11 04:17:01 -07:00
Robert Ghilduta
ff812e5305 bladeRF-fsk: move into its own repo 2025-04-24 04:36:36 -07:00
Robert Ghilduta
619e058115 matlab: add missing bladerf_image_type_to_string
Add missing bladerf_image_type_to_string API_EXPORT declaration and also
add it to matlab
2025-04-24 04:36:36 -07:00
Robert Ghilduta
6905c37642 host: finish off cross-platform support for Windows
libbladeRF now compiles under MinGW as well as MSVC under Windows
2025-04-24 04:36:36 -07:00
Robert Ghilduta
352b206044 WIP: momentarily disable bladeRF-fsk on Windows 2025-04-24 04:36:36 -07:00
Robert Ghilduta
d673366f4c host: final pthread migration to make linux compile 2025-04-24 04:36:36 -07:00
Robert Ghilduta
a83f21d525 host: clean up windows build script, remove pthreads 2025-04-24 04:36:36 -07:00
Robert Ghilduta
401d7df2c0 host: clean up README, and misc files to indicate remove libpthreadswin32 2025-04-24 04:36:36 -07:00
Robert Ghilduta
11506a4762 host: fixup windows related files 2025-04-24 04:36:36 -07:00
Robert Ghilduta
34fce67f4f host: remove pthreadswin32 cmake 2025-04-24 04:36:36 -07:00
Robert Ghilduta
7985676d0d host: switch over from using pthread.h to libbladeRF's thread.h 2025-04-24 04:36:36 -07:00
Robert Ghilduta
5863f983a2 host: remove remaining libpthreadswin32 and add fixups to cmake 2025-04-24 04:36:36 -07:00
Robert Ghilduta
1062b40d46 host: begin removing libpthreadswin32 from cmakes 2025-04-24 04:36:36 -07:00
Robert Ghilduta
bb93c07af8 host: libbladeRF's thread.h now compiles and runs.
Lowest level functions should now work. Async/sync functions probably still do
not work.
2025-04-24 04:36:36 -07:00
Robert Ghilduta
ee0e0040b6 libbladeRF_test: change over to libbladeRF thread macros 2025-04-24 04:36:36 -07:00
Robert Ghilduta
03b2481db9 bladeRF-cli: move to libbladeRF thread macros 2025-04-24 04:36:36 -07:00
Robert Ghilduta
5cdcd28e16 host: convert async/sync to libbladeRF thread macros 2025-04-24 04:36:36 -07:00