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%
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
|
||
|---|---|---|
| debian | ||
| doc | ||
| firmware_common | ||
| fpga_common | ||
| fx3_firmware | ||
| hdl | ||
| host | ||
| legal | ||
| .clang-format | ||
| .gitignore | ||
| CHANGELOG | ||
| CMakeLists.txt | ||
| CONTRIBUTORS | ||
| COPYING | ||
| README.md | ||
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
- Clone this repository via:
git clone https://github.com/Nuand/bladeRF.git - Fetch the latest pre-built bladeRF FPGA image. See the README.md in the hdl directory for more information.
- Fetch the latest pre-built bladeRF firmware image. See the README.md in the fx3_firmware directory for more information.
- Follow the instructions in the host directory to build and install libbladeRF and the bladeRF-cli utility.
- Attach the bladeRF board to your fastest USB port.
- You should now be able to see your device in the list output via
bladeRF-cli -p - You can view additional information about the device via
bladeRF-cli -e info -e version. - 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
recoverycommand in bladeRF-cli for additional details.
- 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 |