Commit graph

503 commits

Author SHA1 Message Date
litghost
8ce20e2e58 Enable warning as error for Windows 2013-09-27 16:31:37 +00:00
litghost
abe064cea8 Fixes for Windows build warnings on VS2012 2013-09-27 16:31:37 +00:00
Robert Ghilduta
4e3f01587b libbladeRF: copy lusb_flash_read() and lusb_flash_write() functions for legacy
This commit copies lusb_flash_read() and lusb_flash_write() from the before
57116c91, thus allowing devices running <= v1.3 to upgrade properly.
2013-09-27 00:31:26 -07:00
Brian Padalino
a36ed9a5f1 libbladeRF: More backward compatibility fixes. 2013-09-25 00:31:46 -04:00
Brian Padalino
26e8f3c0c0 libbladeRF: Moved where legacy warning is printed. 2013-09-25 00:31:45 -04:00
Brian Padalino
7ef33c6ba8 libbladeRF: Fixed vendor command to enable RF. 2013-09-25 00:31:45 -04:00
Brian Padalino
d05cc61574 libbladeRF: Support for legacy config interface.
Added checks for the legacy config interface being interface 0 instead
of interface 3 which changed in the v1.4 bump.
2013-09-25 00:31:45 -04:00
Brian Padalino
d55b9ddd10 Merge pull request #117 from litghost/expand_fix
Add variable expansion support to recover function
2013-09-24 21:29:57 -07:00
litghost
46e261796d Add variable expansion support to recover function 2013-09-24 21:10:38 -07:00
Robert Ghilduta
267cbeab99 libbladeRF: fixup libusb uninitialized errors 2013-09-23 00:35:57 -07:00
Brian Padalino
50d9b16d5c Merge pull request #111 from rtucker/fix_setup_guide_docs
Minor README.md fixes
2013-09-22 19:45:22 -07:00
Robert Ghilduta
c1e8b10dd2 utilities: fixup: add ver.c to make the previous CMakeFile change work 2013-09-22 16:50:27 -07:00
Ryan Tucker
040f09ec72 fix merge-related catastrophe 2013-09-22 19:36:21 -04:00
litghost
dcbf6d3c53 Added note in root level for bladeRF-flash and documentation for bladeRF-flash 2013-09-22 19:34:30 -04:00
Ryan Tucker
f90c964ce3 Update information on latest fx3 image 2013-09-22 19:33:02 -04:00
Ryan Tucker
518ab924ea Update link to KB3GTN's setup guide 2013-09-22 19:33:02 -04:00
Nuand
0d1b6d40ed Merge pull request #114 from litghost/fix_load_fpga_method
[libbladeRF] Fixed double interface 1 set and fixed return code issues in lusb_load_fpga
2013-09-22 16:02:20 -07:00
Keith Rothman
0f96ab0c6e [libbladeRF] Fixed double interface 1 set and fixed return code issues in lusb_load_fpga 2013-09-22 22:52:28 +00:00
Nuand
d1e3790bfc Merge pull request #113 from litghost/fx3_u1u2_fix
[FX3] When in FPGA load and RF mode, transitions to U1/U2 should be rejected
2013-09-22 15:23:17 -07:00
Keith Rothman
a4bd1b740e [FX3] When in FPGA load and RF mode, transitions to U1/U2 should be rejected 2013-09-22 22:14:15 +00:00
Robert Ghilduta
5708a393af utilities: add an alternate method of determining the installed libusbx version
Sometimes check_function_exists does not work on Windows, it is then worth
testing to see if the LIBUSBX_API_VERSION is equal or greater than 0x01000102
(1.0.16). This version contains the neccessary libusb hotplug features needed to
make bladeRF-flash work.
2013-09-22 14:18:08 -07:00
Brian Padalino
457e2cdc78 Merge pull request #112 from litghost/flash_readme
README's for bladeRF-flash
2013-09-22 11:13:29 -07:00
Brian Padalino
b8465fe95a Merge pull request #110 from rtucker/goodbye_world
Rename hello_world_small.c to lms_spi_controller.c
2013-09-22 11:13:04 -07:00
litghost
727aab2a18 Added bladeRF-flash to TOC 2013-09-22 10:52:15 -07:00
litghost
a781b7ffdd Added link to forum post of forcing DFU mode 2013-09-22 10:50:29 -07:00
litghost
fb63448a0e Change default flash tool to bladeRF-flash 2013-09-22 10:47:51 -07:00
litghost
ddc40b1c26 Update README.md 2013-09-22 10:29:35 -07:00
litghost
c092b0e955 Added note in root level for bladeRF-flash and documentation for bladeRF-flash 2013-09-22 17:06:47 +00:00
Ryan Tucker
d90dad8f74 lms_spi_controller: Remove inaccurate header comment 2013-09-22 11:17:08 -04:00
Ryan Tucker
151b78355e Rename hello_world_small.c to lms_spi_controller.c 2013-09-22 11:14:26 -04:00
Nuand
9638078ba4 Merge pull request #109 from litghost/fx3_cleanup_v3
Fx3 cleanup v3
2013-09-22 03:51:21 -07:00
Keith Rothman
83d4eb2c3c [libbladeRF] Removed incorrect free 2013-09-22 03:50:29 -07:00
Keith Rothman
349f93decc [bladeRF-flash] Changed messages to be less hostile when flashing a v1.2 board 2013-09-22 09:22:14 +00:00
Keith Rothman
917f47d8bd [bladeRF-flash] Ignore failures in flashing or reseting, and just look for the bootloader 2013-09-22 08:24:44 +00:00
Keith Rothman
d5cf78f627 [FX3] Fixed end-point halt 2013-09-22 08:07:08 +00:00
Keith Rothman
1d481cefd3 [FX3/libbladeRF] Added explicit calibration cache 2013-09-22 08:07:08 +00:00
Keith Rothman
004ea967b5 [libbladeRF] Removed incorrect free 2013-09-22 08:07:08 +00:00
Keith Rothman
57116c919a [FX3/libbladeRF] Major refactoring of FX3 application firmware-v1.4 firmware_v1.4 libbladeRF_v0.5.0
- Split RF, FPGA load, and firmware methods into seperate .c files
 - Split several vendor requests to eliminate magic glEp0Idx and to allow
   for better error handling
   - Updated libbladeRF to use new vendor requests and properly check return
     code.
 - Changed glSpiPageSize from global to #define
 - Move OTP handling into firmware.c
 - Version bump

Conflicts:

	fx3_firmware/bladeRF.c
2013-09-22 08:06:48 +00:00
Jon Szymaniak
2fb5619b66 Updated CONTRIBUTORS file 2013-09-22 02:16:58 -04:00
Robert Ghilduta
1734184c3e fx3_firmware: speed up FPGA image bitflipping by using a lookup table
The bitflipping look takes about 180 instruction cycles to flip 1 byte. The new
method takes less than 5 clock cycles, making both images load times seem
almost instantenous. Further optimizations can be made by adding a Duff's
machine.
2013-09-21 21:03:17 -07:00
Jon Szymaniak
cc1e290422 libbladeRF: Fixed # samples parameter on initial TX callbacks (libusb backend) 2013-09-21 14:21:02 -04:00
Robert Ghilduta
5e995b88ca fx3_firmware: add SET_SEL (Select Exit Latency) handling 2013-09-21 07:30:50 -07:00
Nuand
f726d3b4ba Merge pull request #106 from litghost/fx3_cleanup_v2
Assorted fixes for problems found via USB30CV and USB20CV
2013-09-21 07:29:34 -07:00
Keith Rothman
06c204ff13 Assorted fixes for problems found via USB30CV and USB20CV
- Move and use interface numbers
 - Renumber USB_IF_CONFIG from 0 to 3
 - Introduced 0 alt-interface as a NULL interface
 - Fixed FS descriptor length
 - Implemented GET_STATUS, SET_FEATURE, CLEAR_FEATURE w.r.t. halting bulk streams
 - Added include guards for firmware_common/bladeRF.h
 - Changed guard on suspend/resume requests to key on glUsbConfiguration instead
   of glUsbAltInterface.  This is because suspend/resume requests are on
   interfaces, not endpoints.
 - Addresses github tickets #97, #98, #99
2013-09-21 14:08:29 +00:00
Jon Szymaniak
7a5961688e libbladeRF: Fixed use of uninitialized data (libusb backend)
Fixed defect introduced in 9015bdbb5c, where a device handle's device identifier information was being populated from a (most likely) uninitialized bladerf_devinfo, rather than the one fully populated by a call to lusb_get_devinfo().
2013-09-19 11:11:41 -04:00
Jon Szymaniak
553985478b cmake: Added check for libusb_get_version (github edit)
This function is used by libbladeRF. This check effectively ensures the library is >= 1.0.10.
2013-09-19 10:03:35 -04:00
Jon Szymaniak
9015bdbb5c libbladeRF, bladeRF-flash: Added device identifier info matching to API routines libbladeRF_v0.4.0
Initializing, extracting, and comparing device identifier information
(struct bladerf_devinfo) is now exposed through the API. Among other
things, this allow users to check if a device specifier string matches a
device they already have a handle for.

To support this, a copy of bladerf_devinfo information is now kept around in
the device handle; backends are responsible for populating this in their
open() implementation. A couple of the fields were already present, so
this only adds a couple small variables worth of overhead.

Some re-arranging of the linux and libusb probe and open calls has been done
to achieve this. A few warnings and bugs were addressed in this process:

  - The Linux backend was attempting to fill in a serial number via
    a cached entry.

  - There was some potential for a read of an uninitialized portion
    of an otp buffer.

  - Missing serial # has been made non-fatal. (Some developers'
    device do not have serial numbers.)

Files associated with this functionality was moved from host/common
back into the library, which should now be used instead. bladeRF-flash
has been updated to use these new API functions.
2013-09-18 23:15:48 -04:00
Brian Padalino
372fd51586 libbladeRF: Host side fix for #107.
Setting the SPI flash interface is not required for reading.  Only for writing.  Turns out, if you try to set that interface twice then things do not go so well.

I am not 100% sure if this is just a host side fix for a firmware issue, but it alleviates the problem for now.

Also fixed some tabs that snuck in there.
2013-09-18 18:37:05 -04:00
Jon Szymaniak
a79bf948c4 libbladeRF: Workaround for libusb_set_interface_alt_setting() issue in Windows
This addresses Issue #101, in which prevents FW 1.0 users from upgrading.
2013-09-16 23:03:41 -04:00
Jon Szymaniak
a5f68dfeb8 host: All build output is placed in a single directory
All executables and libraries are now placed in a single "output" directory.
For Windows builds, third-party DLLs are copied into this directory.

This commit also moves some CFLAGS changes in the top-level CMakeLists.txt
down to where some other compiler flags are set up. (Non-functional change)
2013-09-16 01:23:04 -04:00