Commit graph

1,150 commits

Author SHA1 Message Date
Jon Szymaniak
261c22c964 Merge pull request #297 from rtucker/dev-issue292
CMake: Enabling docs or libtecla but missing the deps is now a fatal error 
Fixes #292.
2014-07-27 14:35:34 -04:00
Jon Szymaniak
d1dab671f8 host: Corrected libusb ChangeLog link in README.md 2014-07-27 13:47:31 -04:00
Jon Szymaniak
7636a6759b host: Updated README.md content
Updated version numbers and project links.

Removed Debian/Ubuntu install commands; these are listed on the wiki. Eventually, we'll pull the wiki content into the official docs, and include similar instructions for a number of distros.
2014-07-27 13:46:08 -04:00
Ryan Tucker
9e98e38e33 Update CMake options in READMEs (#285)
Found all the cmake options I could, put them into the appropriate
READMEs.  There is some overlap between files but this may be a good
starting point at least.
2014-07-27 13:32:49 -04:00
Jon Szymaniak
cfdd94ab9a Additional top-level README.md touchups
Fixed a few formatting and typo issues.
2014-07-27 13:27:15 -04:00
Jon Szymaniak
4db1d6a6ba Updated "Quick Start" in top-level README.md
Links and firmware update information had become dated.
2014-07-27 13:23:56 -04:00
Jon Szymaniak
095f15de72 Merge pull request #296 from rtucker/dev-issue295
bladeRF-flash expurgation (Fixes: #295)
2014-07-27 13:10:30 -04:00
Jon Szymaniak
26bd29e374 Merge pull request #294 from rtucker/dev-issue290
bladeRF-cli: Corrected typo in tx help (Fixes: #290)
2014-07-27 13:06:19 -04:00
Ryan Tucker
f7eec5a61e minor markdown error
Turns out that I can't see backticks with my monitor brightness set too low...
2014-07-26 13:27:33 -04:00
Ryan Tucker
287ac7cc03 host CMake: missing deps now FATAL_ERROR (#292)
In the event that BUILD_DOCUMENTATION is ON but Doxygen
or help2man are missing, or in the event ENABLE_LIBTECLA
is ON and libtecla is missing, raise a FATAL_ERROR and
abort CMake.

Since BUILD_DOCUMENTATION is OFF by default, and the existence
of libtecla determines the default for ENABLE_LIBTECLA, this
should have no impact for the casual "cmake .." user.
2014-07-26 13:13:28 -04:00
Ryan Tucker
5d3958c976 libbladeRF: clarify doxygen instructions in README 2014-07-26 12:44:33 -04:00
Ryan Tucker
51dede1451 README: update refs to bladeRF-flash (Fixes: #295)
Not 100% certain I like the answer to "If your board is stuck,"
but I do believe the 'recover' command is built for this.  Maybe
we need a wiki page or additional interactive help?
2014-07-26 12:20:29 -04:00
Ryan Tucker
e9570df455 bladeRF-cli: remove bladeRF-flash mention from man page 2014-07-26 12:16:37 -04:00
Ryan Tucker
e7e20f3a10 Correct typo in tx help (Fixes: #290) 2014-07-26 11:40:47 -04:00
Jon Szymaniak
dddc72f1c6 Updated CHANGELOG for bladeRF-2014.09-rc2 2014.09-rc2 bladeRF-2014.09-rc2 2014-07-24 22:59:24 -04:00
Jon Szymaniak
9300b2f456 bladeRF-cli: Bumped patch version for bug fixes (v0.11.1) bladeRF-cli_v0.11.1 2014-07-24 21:49:56 -04:00
Jon Szymaniak
1f4676e07f libbladeRF: Bumped patch version (v0.16.2) libbladeRF_v0.16.2
This was done to account for the OSX RPATH build change, before
we place a 2014.09-rc2 tag on the repo.
2014-07-24 20:27:03 -04:00
Jon Szymaniak
4e7225cee0 bladeRF-cli: Updated README.md
Fixed typos and a few outdated items.
2014-07-24 20:26:36 -04:00
Jon Szymaniak
77b3465b0b bladeRF-cli: Updated CHANGELOG to retroactively denote libbladeRF dep 2014-07-24 19:48:51 -04:00
Jon Szymaniak
f607510500 cmake: Defaulted Windows LIBUSB_PATH to libusb-1.0.19 2014-07-22 23:26:58 -04:00
Jon Szymaniak
94156b2a71 bladeRF-cli: Addressed MSVC warning about extraneous /lm argument
MSVC does not appear to require linking against a library to
utilize functions in math.h (e.g., sqrt()).
2014-07-22 23:21:31 -04:00
Jon Szymaniak
58d4870221 host: Updated OSX RPATH settings
In response to CMake 3.0 generating warnings regarding policy CMP0042,
the OSX RPATH settings have been updated per recommendations found
in the CMake Wiki:
  http://www.cmake.org/Wiki/CMake_RPATH_handling#Mac_OS_X_and_the_RPATH

This fixes #279.
2014-07-22 03:28:46 -04:00
Jon Szymaniak
58c3ff4f10 bladeRF-cli: Fixed expr usage in generate.bash
expr does not appear to have a "match" operator in OSX. This has been
replaced with the ":" syntax for compatibility.

Additionally, a "--" argument has been added to avoid issues with
"$line" evaluating to an argument.

This fixes #278. Thank you to Mathieu Rene (@mrene) for reporting this
issue and providing these fixes.
2014-07-22 02:52:20 -04:00
Jon Szymaniak
41e3427ed1 host/misc: Added a Windows build script 2014-07-22 02:10:04 -04:00
Jon Szymaniak
0e5fc8fca2 host: Removed bladeRF-flash
A majority of functionality presented by bladeRF-flash is now duplicated
in the bladeRF-cli utility.

Now that the bladeRF USB interfaces have stabilized more and the
instructions for bootloader-based recovery are available, this program
is generally no longer needed. As such, it is being removed to avoid
future neglect and bitrot.
2014-07-22 00:20:52 -04:00
Jon Szymaniak
361d01da31 libbladeRF: Version bump (v0.16.1) libbladeRF_v0.16.1 2014-07-20 17:04:53 -04:00
Jon Szymaniak
28cf6c732a libbladeRF: Updated README.md
Removed some dated text, fixed Doxygen make targer, and linked to CHANGELOG.
2014-07-20 17:04:04 -04:00
Brian Padalino
c3bd0f217f hdl/libbladeRF/debian: Bumping FPGA v.0.0.6. fpga_v0.0.6 2014-07-20 16:34:55 -04:00
Jon Szymaniak
c548e97ac0 Merge pull request #287 from rtucker/dev-debian_fw_v1.7.1
debian: Update firmware pointer to v1.7.1
2014-07-20 13:21:38 -04:00
Ryan Tucker
354e639d8c debian: Update firmware pointer to v1.7.1 2014-07-20 10:56:34 -04:00
Brian Padalino
6c3e5c0b2a hdl: Modified FPGA correction phase/gain for 16-bit accesses. 2014-07-19 23:48:59 -04:00
Jon Szymaniak
997237a263 libbladeRF: Account for FPGA offset of gain correction value 2014-07-19 23:33:50 -04:00
Jon Szymaniak
64d0c50ab7 libbladeRF: Added simple set & readback tests for control functions
This program performs some simple operations with the various libbladeRF
"control" functions. It is mainly intended to only check for the
presence of grossly erroneous code in these functions, that would cause
crashes or bizarre results.
2014-07-19 23:25:45 -04:00
Jon Szymaniak
f0e2ad685e libbladeRF: Fixed LPF mode readback
This became inconsistent when the LPF disabled mode was updated
to both disable bypass and power down the LPF in a5402b78.
2014-07-19 20:06:40 -04:00
Jon Szymaniak
399a9259f2 bladeRF-cli: Added note about viewing available loopback modes 2014-07-19 18:22:49 -04:00
Jon Szymaniak
6433ec9d77 bladeRF-cli: Added support for enabling/disabling FW loopback 2014-07-19 16:55:41 -04:00
Jon Szymaniak
042926f61d libbladeRF: Added temporary workaround for FX3 "Already started" error
This error from the FX3 is likely harmless, and I'll investigate further
soon. It only appears to occur when the firmware loopback mode times
out, and does not hinder further use of the device.

Given the lack of apparent severity, this band-aid is intended to keep
libbladeRF from overreacting until some time can be spend fixing the
underlying issue.
2014-07-19 16:55:41 -04:00
Jon Szymaniak
51170a05e5 libbladeRF: Added readback of FW loopback, disable it for LMS loopback
Added the ability to read back the state of FW loopback from devices
running FW v1.7.1. While it is possible to enable FW loopback mode in
v1.7.0 firmware, libbladeRF will now enforce the v1.7.1 requirement so
it can correctly read back and report the FW mode.

bladerf_set_loopback() has also been updated to ensure that the
FW loopback is disabled when switching to an LMS loopback mode.
2014-07-19 16:31:46 -04:00
Jon Szymaniak
d794827da6 libbladeRF: Added FW version v1.7.1 to compatibility matrix 2014-07-19 15:13:24 -04:00
Jon Szymaniak
ca697ee6df fx3_firmware: Bumped patch revision (v1.7.1) firmware_v1.7.1 2014-07-19 13:31:53 -04:00
Jon Szymaniak
dadf19eee0 fx3_firmware: Added support for reading back FW loopback state 2014-07-19 13:31:13 -04:00
Jon Szymaniak
55713e8ecd fx3_firmware: Clear DMA buffers when disabling an RX or TX module
Stale RX and TX samples have been reported (issue #255). This occurs
because the CyU3PResetEp() call does not reset DMA channels and their
underlying DMA buffers, nor does it clear the DMA buffers associated
with an endpoint.

Use of the existing ClearDMAChannel() as is would have required some
ridiculous shoehorning, so some cleanup was done:

    - Endpoint halt & ACK operations have been removed from
      ClearDMAChannel(). These operations are outside of the scope
      of clearing DMA buffers, and have been moved to their respective
      locations in handling set/clear halt endpoint requests.

    - reset_endpoint() has been added to the NuandApplication function
      table. Internally, this operation is now used in performing
      the halt_endpoint() operation.

    - Misc return value checks added. Granted, these don't help much
      as there's no accessible debug log.
2014-07-19 13:31:13 -04:00
Brian Padalino
13267cf1e3 libbladeRF: Correct equation for samplerate.
Corrected a samplerate equation calculation which helps determine how
many transfers should be outstanding over any timeout period at a
specific samplerate.  The samplerate should always be greater than the
calculated number, not less than.
2014-07-19 13:13:19 -04:00
Jon Szymaniak
40399b00c3 bladeRF-cli: Fixed typo in 'set loopback' usage text 2014-07-11 21:59:56 -04:00
Brian Padalino
12a38d27a6 cli: Fix poke command argument check.
Removed double check for the number of arguments in the cli poke
command.  Also changed the error message to properly reflect an
invalid value instead of a number of addresses.
2014-07-11 14:00:00 -04:00
Robert Ghilduta
af887e5d39 libbladeRF: change xb-200 filterbank frequency range from doubles to unsigned ints 2014-07-10 22:41:26 -04:00
Brian Padalino
094b5170f0 cli: Print the actual frequency set.
Since bladerf_set_frequency() does not return an actual value set
and may clamp the requested frequency, cause the CLI to query the
currently set frequency and print that out to avoid confusion.
2014-07-10 22:31:44 -04:00
Brian Padalino
c7c971a00c libbladeRF: Fix frequency selection clamping.
While clamping the minimum values for the frequency selection, the
lowest value was being set but not checked against.

Also modify the range table to use the enumerations for lowest and
highest frequency for consistency.
2014-07-10 22:31:44 -04:00
Robert Ghilduta
b8157e5354 libbladeRF: check return value 2014-07-10 22:29:10 -04:00
Brian Padalino
12f3ad2b82 hdl: Change polarity of the LMS SPI. 2014-07-10 22:10:22 -04:00