Commit graph

1,893 commits

Author SHA1 Message Date
Jon Szymaniak
538e2d7987 bladeRF-cli: Fixed bladeRF-cli exit on FW/FPGA version mismatch
A status check needed an override for the situation where a user
was loading and incompatible FW or FPGA version.

Fixes #466.
2016-04-14 12:44:51 -04:00
Jon Szymaniak
c92e4a7800 libbladeRF: Fixed NIOS pkt 8x32 reads
The address was fixed to be 0, rather than the requested address.
2016-04-14 11:47:43 -04:00
Jon Szymaniak
5b41d5e663 libbladeRF: Remove duplicate entry from CHANGELOG 2016-04-11 13:33:50 -04:00
Jon Szymaniak
d8c1b52726 libbladeRF: Updated version to v1.6.1 libbladeRF_v1.6.1
Bumped patch version to denote bug fixes.
2016-04-11 13:32:07 -04:00
Jon Szymaniak
a817a09098 libbladeRF: Fixed comment typo 2016-04-11 13:29:47 -04:00
Jon Szymaniak
ceca4cd9bf libbladeRF: Fixed missing buffer state update of deferred TX submissions
This was missed in ba561a4aa1
(a fix for #458).

This fixes #465.
2016-04-11 13:13:56 -04:00
Jon Szymaniak
bbef0fb84d libbladeRF: Updated some debug text
- Removed "Full" because the wait is called for both RX or TX
  and this isn't intuitive

- Added print of buffer status
2016-04-11 12:35:01 -04:00
Jon Szymaniak
f3fcef7672 fx3_firmware: Added missing dependency to .elf->.img target 2016-04-07 18:39:05 -04:00
Jon Szymaniak
79e263f8d3 libbladeRF: Doxygen typo fix 2016-04-07 15:11:56 -04:00
Jon Szymaniak
97fdeff93d libbladeRF: Check exact sizes when loading/flashing FPGA bitstream
Prevent users from loading/flashing the incorrect FPGA image by checking
against the device's reported FPGA size. This was previously only
done (roughly) when writing the FPGA to flash.

Nuand's official bitstreams to not use compression; the FPGA sizes
are known to be specific sizes.

Those making customizations (e.g., enabling compression) may
use the BLADERF_SKIP_FPGA_SIZE_CHECK environment variable.
2016-04-07 15:08:21 -04:00
Jon Szymaniak
db00227aef libbladeRF: Updated version to v1.6.0 libbladeRF_v1.6.0
Minor version increment to denote support for new VID/PID
2016-04-07 11:56:58 -04:00
Jon Szymaniak
56e3ca9110 host: drivers: Updated VID/PID in CyUSB3 driver INF files 2016-04-06 23:22:40 -04:00
Jon Szymaniak
9f59594c63 udev: Updated udev rules to include new VID/PID 2016-04-06 23:22:39 -04:00
Jon Szymaniak
5e5d46d4d4 libbladeRF: Added FX3 firmware v2.0.0 to version compat table 2016-04-06 23:22:38 -04:00
Jon Szymaniak
da239d19cc libbladeRF: Support both current and legacy VID/PID 2016-04-06 23:22:37 -04:00
Jon Szymaniak
eed888c223 fx3_firmware: Version incremented to v2.0.0 firmware_v2.0.0
Major version bump due to use of newly assigned VID/PID.
2016-04-06 17:36:01 -04:00
Jon Szymaniak
850a110b84 firmware_common: Updated VID/PID with USB-IF registered VID
Nuand has been assigned a VID of: 2CFO
2016-04-06 17:36:01 -04:00
Jon Szymaniak
0e4b18e70e fx3_firmware: Updated bladeRF VID:PID to 2cf0:5246 2016-04-06 17:36:01 -04:00
Jon Szymaniak
4d38c589b3 fx3_firmware: Fixed duplicate inclusion guard 2016-04-06 17:36:01 -04:00
Brian Glod
597435bcd5 hdl: Deleting obsolete files.
These files are not used. Constraints are located in the platform
directory.
2016-04-06 16:43:06 -04:00
Jon Szymaniak
d5a481f982 libbladeRF: Corrected LIBBLADERF_API_VERSION mismatch. Updated to v1.5.3. libbladeRF_v1.5.3 2016-04-06 16:26:52 -04:00
Jon Szymaniak
ae33a19a6e libbladeRF: Updated version to v1.5.2 libbladeRF_v1.5.2 2016-04-06 16:12:35 -04:00
Jon Szymaniak
e95c7d6045 libbladeRF: Added FX3 firmware v1.9.1 to version compat table 2016-04-06 16:10:48 -04:00
Jon Szymaniak
d622e6580a fx3_firmware: Updated version to v1.9.1 firmware_v1.9.1
Patch version incremented for build system changes.
2016-04-06 16:06:06 -04:00
Jon Szymaniak
ea15c91c25 fx3_firmware: Use CMake for project configuration and Makefile generation
The combination of CMake and a custom Makefile/toolchain.mk was messy.

This change is to achieve better consistency with the CMake-oriented
workflow of the remainder of the project software and to make it easier
to maintain and change in the future. (CMake options may be used to
enable/disable features.)
2016-04-06 16:06:06 -04:00
Brian Glod
1f0e6f65e0 build: Fix SignalTap in scripted builds
Simply enabling SignalTap and specifying the .stp file in the project
settings is not sufficient for getting SignalTap into the build. The
.stp file must be translated into project assignments that get appended
to the .qsf file. This is done by calling 'quartus_stp' with the project
name, revision, the .stp file, and the parameter to enable SignalTap in
the project. Quartus_stp must run successfully before Analysis &
Synthesis.

Also added an exception to let non-Web Editions (e.g. Standard and Pro)
of the Quartus tools to add SignalTap files without enabling TalkBack.
2016-04-01 23:19:31 -04:00
Jon Szymaniak
822ff461b8 fx3_firmware: Corrected README regarding FX3 SDK v1.3.3 requirement 2016-03-22 21:48:01 -04:00
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
Jon Szymaniak
61c3b571cb libbladeRF: Do not clear burst state flags if an error occurred
Clearing these flags when an error occurs does not make sense.

If a user retries the call with a BURST_END flag set  (e.g., due to a
short timeout expiring) then this would report an error because the
internal state is no longer in a burst.

Fixes #457.
2016-02-25 16:37:08 -05:00
Jon Szymaniak
1b96a9c52d Updated CONTRIBUTORS file
Give Ryan get proper credit for all his work putting out PPA fires
2016-02-14 16:24:15 -05:00
Jon Szymaniak
271e9567bb Merge pull request #456 from rtucker/dev-pandoc-failsafe
generate.bash: gracefully handle pandoc failures
2016-02-14 16:21:36 -05:00
Ryan Tucker
c63143391b generate.bash: gracefully handle pandoc failures 2016-02-14 14:11:56 -05:00
Jon Szymaniak
977b1222e9 Merge pull request #455 from rtucker/dev-issue454
debian: gracefully handle failed wget when downloading FPGA/firmware images (#454)
2016-02-13 20:57:06 -05:00
Ryan Tucker
25b463fcc7 debian: check for valid bitstream download
Don't overwrite the existing file if the new file fails
the md5sum test.
2016-02-13 12:38:32 -05:00
Ryan Tucker
54ce13ab13 debian: don't clobber rbf/img files on failed dl (#454)
If wget fails, it's clobbering the FPGA/firmware storage
in /usr/share/Nuand/bladeRF, leading to terrible results.

Download to a temp file, then copy that if wget was
successful.

An MITM where a trusted proxy is frobulating HTTPS is
still possible; checking the md5sum again is probably
a great idea.
2016-02-13 12:17:37 -05:00
Jon Szymaniak
7c55150c98 host/common: Apply nominal DC offset values at end of cal routines
The nominal DC offset values were being left up to the caller to
apply. However, the bladeRF-cli was not doing this.

For convenience, these functions now apply the resulting nominal
values identified before exiting.
2016-02-10 15:18:44 -05:00
Jon Szymaniak
630264ca73 Merge pull request #451 from rtucker/dev-issue354
hdl: check for null TALKBACK_ENABLED (#354)
2016-01-24 19:06:25 -05:00
Ryan Tucker
a82c85e48c hdl: check for null TALKBACK_ENABLED (#354)
This handles the case where TALKBACK_ENABLED has never been explicitly
set and is empty.
2016-01-24 17:10:26 -05:00
Jon Szymaniak
87751a16cc host/examples: Added GRC loopback example 2016-01-17 21:39:01 -05:00
Jon Szymaniak
2f8208ab71 host/examples: Fixed default gain in rx_gui
This was not using the value supplied via the command-line
2016-01-17 21:05:21 -05:00
Jon Szymaniak
d52fdbf3e0 examples/gnuradio: Added README for rx_gui 2016-01-17 20:24:17 -05:00
Jon Szymaniak
125f5b3ecd host/examples: Point to HTML FRS document
This is preferred over the PDF, as people can link to individual
sections more easily.
2016-01-16 15:51:32 -05:00
Jon Szymaniak
e472cde71d bladeRF-cli: Added newline in firmware loading text 2016-01-16 15:23:58 -05:00
Jon Szymaniak
1be8b76b35 libbladeRF/doc: Fixed link to forums 2016-01-12 13:50:46 -05:00
Jon Szymaniak
74bc5e9657 bladeRF-cli: Addressed build issues cause by endianess macros
Use CONST variants of macros when assigning constants.

For values that are not constants, the declaration and assignments
have been separated just to avoid any potential future C89
shenanigans.
2016-01-11 23:38:02 -05:00
Jon Szymaniak
a4a065f3ae host: Added endian-conversion macros for use with constants
The existing macros make use of functions, which cannot be used to
define constants on architectures where they are actually implemented
as functions (as opposed to macros).
2016-01-11 23:38:02 -05:00
Jon Szymaniak
279db7aee4 host/common: Added missing extern "C" { ... } in headers 2016-01-11 23:01:20 -05:00
Jon Szymaniak
a459c21209 Merge pull request #449 from pothosware/fix_snprintf_vsnprintf_vc14
libbladeRF: use c99 snprintf/vsnprintf for vc14
2016-01-10 20:49:01 -05:00
Bjoern Kerler
5a360d7b4c libbladeRF: use c99 snprintf/vsnprintf for vc14
These functions come with MSVC 2015 (vc14) as part of the c99 support.
The compatibility definitions in host_config.h.in were causing
a compilation error. This fix disables the compatibility definitions
when the more recent vc14 compiler is detected.
2016-01-10 17:27:36 -08:00
Jon Szymaniak
6e35ea384e matlab: Fixed loopback name typo in bladeRF_Simulink.m 2016-01-08 17:56:16 -05:00