Commit graph

1,137 commits

Author SHA1 Message Date
Ryan Tucker
e9570df455 bladeRF-cli: remove bladeRF-flash mention from man page 2014-07-26 12:16:37 -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
Brian Padalino
880d0c20c4 hdl: Adding bus handshake signaling.
Modifying timestamps to request then acknowledge the current timestamp
using a handshake method and storage registers for a current snapshot.
2014-07-10 22:10:22 -04:00
Brian Padalino
2ddb78e20f hdl: Adding fx3_pll for better clock control. 2014-07-10 22:10:22 -04:00
Jon Szymaniak
f5d60382a6 libbladeRF: Fixed typo in version comparison routine 2014-07-10 21:41:24 -04:00
Robert Ghilduta
caca6fafe2 bladeRF-cli: allow cli to go lower than 300MHz
bladeRF-cli now relies on bladerf_set_frequency() to determine if a frequency
selection is invalid.
2014-07-10 04:30:45 -04:00
Robert Ghilduta
13be4650d7 libbladeRF: fix bladerf_xb200_get_path()
bladerf_xb200_get_path() was returning the opposite path of the actual signal
through the XB-200.
2014-07-10 04:30:45 -04:00
Robert Ghilduta
19af14c7f1 libbladeRF: make bladerf_get_frequency() XB-200 compatible
bladerf_get_frequency() needs to be aware if the XB-200 is connected, and to
compensate for the frequency offset if it is.
2014-07-10 04:30:45 -04:00
Robert Ghilduta
f7686fdab7 libbladeRF: add auto filtbank selection API
This commit introduces 1dB and 3dB rolloff point based filterbank selection.
bladerf_set_frequency() will set the appropriate filter based on frequency.
2014-07-10 04:30:45 -04:00
Robert Ghilduta
503ff35ac0 libbladeRF: introduce optimal gain functions 2014-07-10 04:30:45 -04:00
Jon Szymaniak
3a30c49490 Merge pull request #276 from rtucker/dev-issue166
Add Debian packages to download FPGA/FX3 images (Fixes #166)
2014-07-08 22:13:23 -04:00
Jon Szymaniak
280675c68c Merge pull request #275 from rtucker/dev-help_and_man_fixes_cleaned_3
Markdown-ify the bladeRF-cli interactive help
2014-07-08 22:11:48 -04:00
Ryan Tucker
00c512356f Change FPGA/Firmware download path to be cleaner
Now using /usr/share/Nuand/bladeRF for everything, instead of
/usr/share/bladerf/{firmware,fpga}
2014-07-07 18:09:57 -04:00
Ryan Tucker
dfaceaa6cc Use ${CMAKE_COMMAND} -E copy instead of cp
Normal Windows doesn't have cp, alas
2014-07-07 18:03:32 -04:00
Jon Szymaniak
a5b87f83cd bladeRF-cli: Fixed 'xb enable 200' return code for outdated FPGA 2014-07-07 00:41:07 -04:00