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
Ryan Tucker 60fac98fa6 bladeRF-cli: update print/set commands for bladeRF 2
Squashed commit of the following:

commit 4012eb78bb37d4e6e6f5607f5221d888b188c1a9
Merge: c174c7b47 fc968d9d6
Author: Ryan Tucker <ryan.tucker@nuand.com>
Date:   Thu Jul 20 12:55:59 2017 -0400

    Merge branch 'rtucker-host-fixups'

commit fc968d9d61c3aa4dcd16294de5d8f1c038bf7dcc
Author: Ryan Tucker <ryan.tucker@nuand.com>
Date:   Mon Jul 17 17:04:06 2017 -0400

    bladeRF-cli/printset: add support for bladerf2 GPIOs

commit 259fed535ab8db6a5ca2aca28f191eff107d0ea3
Author: Ryan Tucker <ryan.tucker@nuand.com>
Date:   Mon Jul 17 17:03:46 2017 -0400

    bladeRF-cli/printset: frequency cleanup/consistency

commit 1b2b6c128b9a5385b4eb3f0ff34b494bef6a6036
Author: Ryan Tucker <ryan.tucker@nuand.com>
Date:   Mon Jul 17 17:02:52 2017 -0400

    bladeRF-cli/printset: bandwidth refactor/consistency

commit 4eb522a147318ac3ea13f395bfa2128b24f18945
Author: Ryan Tucker <ryan.tucker@nuand.com>
Date:   Mon Jul 17 16:12:53 2017 -0400

    bladeRF-cli/printset: add semicolons to PRINTSET_DECLs

    This is really minor, but it helps with syntax highlighting in editors.

commit 8c0ad320db764f25f5234208f6347e043c0196cc
Author: Ryan Tucker <ryan.tucker@nuand.com>
Date:   Mon Jul 17 16:11:20 2017 -0400

    bladeRF-cli/printset: refactor set_samplerate

commit d7574425755d2e730bec84ac04ee1adf8c5d2312
Author: Ryan Tucker <ryan.tucker@nuand.com>
Date:   Mon Jul 17 15:10:49 2017 -0400

    bladeRF-cli/printset: formatting/consistency cleanup

commit 69fa2b570966b71021239860f6592f007bc788db
Author: Ryan Tucker <ryan.tucker@nuand.com>
Date:   Mon Jul 17 13:58:45 2017 -0400

    bladeRF-cli/printset: create *err alias ptr

    This is not strictly necessary, but it cleans up the code a bit and lets
    clang-format do its thing w/r/t lining up assignment operators.

commit d06368768ae7ae95b653161494a7538f913b5857
Author: Ryan Tucker <ryan.tucker@nuand.com>
Date:   Mon Jul 17 13:53:03 2017 -0400

    bladeRF-cli/printset: modules -> channels

    migrate from modules to channels

    also do some incremental formatting/consistency tweaks

commit cbb6ed92ed6be329d229958a0daef0bb5782c3f0
Author: Ryan Tucker <ryan.tucker@nuand.com>
Date:   Mon Jul 17 13:27:47 2017 -0400

    bladeRF-cli: print/set loopback: add AD9361 BIST

commit 6740ff9a8d9760e48109bdc03d38d38e5564b34c
Author: Ryan Tucker <ryan.tucker@nuand.com>
Date:   Mon Jul 17 13:24:14 2017 -0400

    bladeRF-cli: refactor 'set frequency'

commit 18b6bcf2abbb1423557352057a22419252e5d1ef
Author: Ryan Tucker <ryan.tucker@nuand.com>
Date:   Mon Jul 17 13:10:44 2017 -0400

    bladeRF-cli: fix and refactor 'set bandwidth'

    Query the specific range permitted by the hardware

    DRY the BW changing/printing code

commit 94730399669e8f7208a46d7e2e5d17c034a00430
Author: Ryan Tucker <ryan.tucker@nuand.com>
Date:   Mon Jul 17 12:16:01 2017 -0400

    cli/printset: fix 'set frequency' command

    Use the bladerf_get_frequency_range function, use str2uint64_suffix to
    be explicit about wanting uint64 freqs

commit 2d9fffbd264add78eee83005047b88275811da10
Author: Ryan Tucker <ryan.tucker@nuand.com>
Date:   Mon Jul 17 11:51:21 2017 -0400

    bladerf2: fix TX frequency range

    Turns out that libad9361 does bounds-checking on the frequency, and it
    silently enforces 70e6 <= f <= 6000e6.

commit 4494a734542aeab2602ec9abe1f8522e19262e51
Author: Ryan Tucker <ryan.tucker@nuand.com>
Date:   Mon Jul 17 11:50:38 2017 -0400

    bladerf2: improve commenting on macros
2017-12-21 12:55:05 -05:00
debian Update copyright date ranges to include 2017 2017-12-21 12:55:05 -05:00
doc doc/packaging.md: Fix minor typo 2015-01-29 17:23:11 -05:00
firmware_common firmware_common: add bladerf2 usb pid 2017-12-21 12:54:55 -05:00
fpga_common fpga_common: fix overrun in 16x64 NIOS II packet packing 2017-12-21 12:54:57 -05:00
fx3_firmware fx3: fix cmake invocation in README.md 2017-11-06 10:36:57 -05:00
hdl hdl: bladerf-micro: disable AD9361 DDS subsystem 2017-12-21 12:55:04 -05:00
host bladeRF-cli: update print/set commands for bladeRF 2 2017-12-21 12:55:05 -05:00
legal Update copyright date ranges to include 2017 2017-12-21 12:55:05 -05:00
.clang-format bladerf2.c/.clang-format: minor whitespace tweaks 2017-12-21 12:55:05 -05:00
.gitignore gitignore: Added modelsim compiled libraries, transcripts, and waveforms 2015-12-14 15:29:58 -05:00
CHANGELOG bladeRF 2016.06 release 2016-06-29 17:24:49 -04:00
CMakeLists.txt fx3_firmware: Use CMake for project configuration and Makefile generation 2016-04-06 16:06:06 -04:00
CONTRIBUTORS CONTRIBUTORS: self-updating 2017-08-02 18:06:21 -04: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