Commit graph

125 commits

Author SHA1 Message Date
Robert Ghilduta
9d999ae2cf fx3_firmware: bump version to 2.2.0
Version 2.2.0 includes reunification of the FX3 builds and OTP support for
Winbond chips.
2018-06-19 00:38:37 -04:00
Robert Ghilduta
bbebcd110c fx3_firmware: change when NuandFpgaConfigSwInit() is called
NuandFpgaConfigSwInit() is now delayed because it now requires the SPI
manufacturer to be known.
2018-06-19 00:38:37 -04:00
Robert Ghilduta
d6a9911fce fx3_firmware: add manufacturer specific calls
Add support for reading OTP security registers from Winbond chips.
2018-06-19 00:38:37 -04:00
Robert Ghilduta
9dd948609f fx3_firmware: add isOtp to SPI transfer function
Winbond flash chips have a specific SPI command for reading the security
registers.
2018-06-19 00:38:37 -04:00
Robert Ghilduta
1b974a3f9c fx3_firmware: unify bladeRF builds
Differentiate different bladeRF products based on the SPI chip manufacturer.
2018-06-19 00:38:37 -04:00
Robert Ghilduta
9d24fe7ebe fx3_firmware: use SPI Manufacturer to tell boards apart 2018-06-18 20:38:20 -04:00
Rey Tucker
d6f0624437 fx3: update CHANGELOG for v2.1.1 2018-05-22 13:00:21 -04:00
Rey Tucker
fe730209dd fx3: fix spurious 0x40 error when ending loopback (#41)
When ending a loopback test (e.g. with
libbladeRF_test_digital_loopback), a spurious 0x40 error occurred from
trying to clear the glChHandlePtoU DMA channel, which does not get set
up if loopback is enabled.
2018-05-22 13:00:21 -04:00
Rey Tucker
4d8a128758 fx3: version 2.1.1
This version corrects an issue with loading FPGA bitstreams from flash
in a headless configuration (with nothing connected to the USB
connector).
2018-04-06 15:27:07 -04:00
Rey Tucker
b144033168 fx3: skip EP Config during FPGA config if no USB
If the USB interface is not connected, CyU3PUsbGetSpeed() returns
CY_U3P_NOT_CONNECTED.  Previously we treated this as an error, which
caused failures when loading an FPGA bitstream from flash in a headless
configuration.

We now assume a reasonable DMA size and skip the USB configuration
altogether if there is no USB connection.
2018-04-06 15:27:07 -04:00
Rey Tucker
d4d799bf0c fx3_firmware v2.1.0: add bladeRF 2.0 support
Squashed commit of the following:

    fx3_firmware: update CHANGELOG for 2.1.0
    libbladeRF: add fw 2.1.0 to compatibility tables
    fx3: version number bump 2.0.0 -> 2.1.0
    fx3: clean up CMakeLists.txt, add config switches
    fx3: copyright date bump
    fx3: move USB descriptors to own linker section
    fx3: move descriptor consts to board-specific files
    fx3: add support for bladeRF 2.0
2017-12-21 12:55:05 -05:00
Rey Tucker
20cfbb88ce fx3: fix cmake invocation in README.md
The cmake invocation was incorrect and pointed at a non-existant
filename.

Initial report: https://nuand.com/forums/viewtopic.php?f=4&t=3977
2017-11-06 10:36:57 -05:00
Jon Szymaniak
f3fcef7672 fx3_firmware: Added missing dependency to .elf->.img target 2016-04-07 18:39:05 -04:00
Jon Szymaniak
eed888c223 fx3_firmware: Version incremented to v2.0.0
Major version bump due to use of newly assigned VID/PID.
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
Jon Szymaniak
d622e6580a fx3_firmware: Updated version to 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
Jon Szymaniak
822ff461b8 fx3_firmware: Corrected README regarding FX3 SDK v1.3.3 requirement 2016-03-22 21:48:01 -04:00
Jon Szymaniak
347574a757 fx3_firmware; Retroactive CHANGELOG update (v1.9.0) 2015-12-28 23:37:01 -05:00
Jon Szymaniak
23988ed7fd fx3_firmware: Version updated to v1.9.0
Minor version number increment to denote added functionality
to host<->FW interface.
2015-12-28 16:10:39 -05:00
Jon Szymaniak
ff6f2b1cf1 firmware_common: Added command ID for reading FW log entries 2015-12-28 16:10:39 -05:00
Jon Szymaniak
d2ff39f207 fx3_firmware: Adding simple logging mechanism
A simple event logger has been added to the firmware to replace
the use of CyU3PDebugPrint() calls. This is intended to provide access
to errors and diagnostic information without requiring JTAG access.
2015-12-28 16:10:39 -05:00
Jon Szymaniak
6be819225e fx3_firmware: Updated version to 1.8.1 2015-09-08 11:33:34 -04:00
Jon Szymaniak
aa2472a59f fx3_firmware: Addressed build warnings 2015-09-08 11:32:06 -04:00
Jon Szymaniak
c74d172351 fx3_firmware: Updated toolchain.mk.sample for FX3 SDK v1.3.3 2015-09-08 11:31:58 -04:00
Jon Szymaniak
c05bc6e612 fx3_firmware: Updated README
Added note about FX3 SDK 1.3.3 not yet being tested yet.
Review of the 1.3.3 release notes indicates that some source-level and build-script changes may be needed.
2015-01-26 13:18:19 -05:00
Jon Szymaniak
239b1cf45d fx3_firmware: Added sample .gdbinit file
Defaults for bladeRF FX3 debugging with the Segger J-Link
2014-11-08 15:15:06 -05:00
Jon Szymaniak
0b466c6aed fx3_firmware: Version bump to v1.8.0
Minor rev incremented to denote added to "public" interface.
2014-11-06 15:28:53 -05:00
Jon Szymaniak
79aaf43a2a fx3_firmware: Added "device ready" query
This "device ready" status is used to denote that the device is
ready to be configured and used. Until the device becomes "ready"
all control requests will return an error.

This provides libbladeRF with a means to query when the device is done
loading an FPGA from flash, as well as any other firmware-based
initializations that may be needed in the future.
2014-11-06 15:25:48 -05:00
Jon Szymaniak
5f4f242132 fx3_firmware: Cleaned up bladeRFAppThread_Entry
The loop in this function was rather strange, and theoretically
could roll over and reload the FPGA (albeit for an extreme uptime).
2014-11-06 14:37:00 -05:00
Jon Szymaniak
ca697ee6df fx3_firmware: Bumped patch revision (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
Jon Szymaniak
0dd8205ca1 fx3: Added firmware CHANGELOG 2014-07-05 13:52:24 -04:00
Jon Szymaniak
0e6c731746 fx3: Bumped version to 1.7.0
Version bumped to denote added firmware loopback feature.
2014-05-17 23:40:32 -04:00
Robert Ghilduta
fb16748089 fx3_firmware: add the firmware based loopback support 2014-04-04 05:29:37 -07:00
Jon Szymaniak
6f901e8691 fx3_firmware: Patch version bump to denote fixes for #195, #196 2014-01-14 22:33:49 -05:00
Jon Szymaniak
d0ff5d2c85 fx3_firmware: Perform "warm" GPIO config when enabling flash access
This fixes issue #196.

A "warm" IO reconfiguration is required, otherwise the FPGA's nConfig
will be reset to a default of CyFalse (resetting the FPGA).

Additionally, the firmware.c and associated functions have been renamed;
these are flash-related functions in general -- the "Firmware" name was
misleading.
2014-01-13 23:14:03 -05:00
Jon Szymaniak
d3411e1226 fx3_firmware: Consolidated and GPIF (re)configuration in gpif.c
The PIB and GPIF (re)configuration have been tucked away in gpif.c,
which is now used by the FPGA loader and RF link configurations.

Unnecessary PIB and IOMatrix configurations have been removed.

This fixes Issue #195, as the FPGA loader previously did not include a
PIB reset, which has been found to be required when changing from a
16-bit to 32-bit GPIF configuration.
2014-01-13 23:14:03 -05:00
Jon Szymaniak
a17ef3a8c0 fx3_firmware: README.md typo fix 2014-01-10 19:38:55 -05:00
Jon Szymaniak
dff0842425 fx3_firmware: Updated README.md
Updated README to reflect that The build now requires a kludgy
combination of CMake and toolchain.mk.

This (Isssue #174) is still on the radar to clean up.
2014-01-10 19:34:38 -05:00
Jon Szymaniak
8cd076af1e fx3: Check return value of CyU3PDmaChannelSetXfer()
We won't clear the EP halt (and possibly ACK) if this fails.

This addresses CID 1097393 ("Unchecked return value")
2013-12-28 12:46:43 -05:00
Brian Padalino
324d8ccd68 Updating to fix a PIB problem. 2013-12-28 12:46:43 -05:00
Brian Padalino
150c29dd21 More debugging and moving strobes around. 2013-12-28 12:46:42 -05:00
Brian Padalino
13b26089e4 Reset. 2013-12-28 12:46:42 -05:00
Brian Padalino
59ffe58e7c More tweaks. Still times out. 2013-12-28 12:46:42 -05:00
Brian Padalino
6105e0717f Bump the firmware revision. 2013-12-28 12:46:42 -05:00
Brian Padalino
06c0f4f037 Fixed up reception and transmission. 2013-12-28 12:46:42 -05:00
Brian Padalino
2d955b2bc1 Fixed transmit timing out. 2013-12-28 12:46:42 -05:00