bladeRF USB 3.0 Superspeed Software Defined Radio Source Code http://nuand.com
  • C 45.8%
  • VHDL 21%
  • Verilog 15.8%
  • Tcl 3.8%
  • MATLAB 3.2%
  • Other 10.3%
Find a file
Jon Szymaniak ba561a4aa1 libbladeRF: Fixed race condition in TX buffer submission
It is possible that the buffer completion callback occurs before
advance_tx_buffer() acts upon a successful return code from
async_submit_stream_buffer().

We must ensure the buffer is in the IN_FLIGHT state before
we temporarily drop the buffer lock (so a stream lock can be acquired),
or else the assertion at sync_worker.c:150 may not be upheld.

Therefore, we default the buffer state to being IN_FLIGHT before
dropping the lock, and revert it to FULL if the buffer submission
fails (due to an error or a need to block in a non-blocking call).

This fixes #458. The associated defect was introduced in:
    6b197881 libbladeRF: Utilize all available TX buffers
2016-02-27 11:47:14 -05:00
debian debian: check for valid bitstream download 2016-02-13 12:38:32 -05:00
doc doc/packaging.md: Fix minor typo 2015-01-29 17:23:11 -05:00
firmware_common firmware_common: Added command ID for reading FW log entries 2015-12-28 16:10:39 -05:00
fpga_common libbladeRF: Added BLADERF_MODULE_INVALID enumeration value 2015-12-28 22:20:20 -05:00
fx3_firmware fx3_firmware; Retroactive CHANGELOG update (v1.9.0) 2015-12-28 23:37:01 -05:00
hdl hdl: check for null TALKBACK_ENABLED (#354) 2016-01-24 17:10:26 -05:00
host libbladeRF: Fixed race condition in TX buffer submission 2016-02-27 11:47:14 -05:00
legal matlab: Added MATLAB libbladeRF bindings 2015-11-23 17:55:36 -05:00
.gitignore gitignore: Added modelsim compiled libraries, transcripts, and waveforms 2015-12-14 15:29:58 -05:00
CHANGELOG bladeRF 2016.01-rc1 release 2016-01-07 17:04:10 -05:00
CMakeLists.txt cmake: FX3 firmware build is disabled by default 2013-12-21 17:36:06 -05:00
CONTRIBUTORS Updated CONTRIBUTORS file 2016-02-14 16:24:15 -05:00
COPYING COPYING: Touched up the text and specifically referenced items 2014-10-31 10:50:31 -04:00
README.md Update CMake options in READMEs (#285) 2014-07-27 13:32:49 -04:00

bladeRF Source

This repository contains all the source code required to program and interact with a bladeRF platform, including firmware for the Cypress FX3 USB controller, HDL for the Altera Cyclone IV FPGA, and C code for the host side libraries, drivers, and utilities. The source is organized as follows:

Directory Description
firmware_common Source and header files common between firmware and host software
fx3_firmware Firmware for the Cypress FX3 USB controller
hdl All HDL code associated with the Cyclone IV FPGA
host Host-side libraries, drivers, utilities and samples

Quick Start

  1. Clone this repository via: git clone https://github.com/Nuand/bladeRF.git
  2. Fetch the latest pre-built bladeRF FPGA image. See the README.md in the hdl directory for more information.
  3. Fetch the latest pre-built bladeRF firmware image. See the README.md in the fx3_firmware directory for more information.
  4. Follow the instructions in the host directory to build and install libbladeRF and the bladeRF-cli utility.
  5. Attach the bladeRF board to your fastest USB port.
  6. You should now be able to see your device in the list output via bladeRF-cli -p
  7. You can view additional information about the device via bladeRF-cli -e info -e version.
  8. If any warnings indicate that a firmware update is needed, run:bladeRF-cli -f <firmware_file>.
  • If you ever find the device booting into the FX3 bootloader (e.g., if you unplug the device in the middle of a firmware upgrade), see the recovery command in bladeRF-cli for additional details.
  1. See the overview of the bladeRF-cli for more information about loading the FPGA and using the command line interface tool

For more information, see the bladeRF wiki.

Build Variables

Below are global options to choose which parts of the bladeRF project should be built from the top level. Please see the fx3_firmware and host subdirectories for more specific options.

Option Description
-DENABLE_FX3_BUILD=<ON/OFF> Enables building the FX3 firmware. Default: OFF
-DENABLE_HOST_BUILD=<ON/OFF> Enables building the host library and utilities overall. Default: ON