2314 Commits

Author SHA1 Message Date
Jared Boone
f8b6e9145c CPLD: Pull up HOST_SYNC signal, which is usually floating.
HOST_SYNC is only connected to connector P28, and is therefore not driven (left to float) unless connected to some synchronization signal. Pull it up to keep it steady.

In doing so, I had to switch all unused pins to pull-up, and all input-only and tri-state pins to float. All input/tri-state pins except for HOST_SYNC are tied to the microcontroller and can be pulled up there.
2019-01-16 17:55:45 -08:00
Jared Boone
3932c5694e PortaPack: Add .SVF of current JEDEC bitstream file.
PortaPack build consumes this file to embed the bitstream into the firmware.
2019-01-15 15:31:53 -08:00
Jared Boone
97806e8159 PortaPack: Build DFU binary without forcing serial number to "RunningFromRAM".
This was causing problems for HackRF mode, where some host PC software was depending on a valid serial number.
2019-01-15 11:31:39 -08:00
Jared Boone
909066cdf8 PortaPack: Replace OperaCake handlers, they were tripping up host tools. Skip operacake_init if PortaPack compiled in, letting operacake_boards be all zero. Should be safe, right? 2019-01-14 20:42:39 -08:00
Jared Boone
07f370bfba PortaPack: Silence warnings about unused functions/variables I'm liable to use soon.
I don't like the __attribute__((unused)) markup, but woud rather not delete or comment out the code.
2019-01-09 15:48:59 -08:00
Jared Boone
e87b3f4fea PortaPack: Address some unused variable/function warnings. 2019-01-09 15:30:24 -08:00
Jared Boone
8721fe606a Host: Add USB request ordinal for WCID 2019-01-09 15:07:08 -08:00
Jared Boone
e05677ab0d OperaCake: Bring together with PortaPack code.
The plan is to have them coexist in the firmware binary, even if the hardware is mutually exclusive at runtime.
2019-01-07 15:35:41 -08:00
Jared Boone
5e88bb8565 USB: Set Opera Cake USB handlers to null unless hardware is detected. 2019-01-07 15:30:32 -08:00
Jared Boone
0666dc961d USB: Bring in constants from host source code.
TODO: Deduplicate this when I'm not feeling so lazy.
2019-01-07 15:29:51 -08:00
Jared Boone
c7d761089f USB: Make vendor request handler table read/write (not const). 2019-01-07 15:29:18 -08:00
Dominic Spill
90d4014859 SPI flash: check busy flag is clear BEFORE enabling writes 2019-01-04 19:58:04 -07:00
Dominic Spill
1b95b2edc7 Merge pull request #571 from miek/fix-write-enable-hang
Fix hang in w25q80bv_write_enable
2019-01-05 01:01:10 +00:00
Mike Walters
a357a7b1f0 Fix hang in w25q80bv_write_enable
This line is meant to wait for the WEL bit to be set, to signify that
the WRITE_ENABLE command has finished.

The previous code didn't do any masking, so would hang if any other
status bits were set.
2019-01-05 00:53:43 +00:00
Kate J. Temkin
73b5089581 Fix communications failures on USB suspend. (#97)
Linux issues a `GET_STATUS` request to validate that a USB device has
correctly resumed after an idle suspend; but HackRF has thus far not
implemented `GET_STATUS`. As a result, Linux assumes our USB devices
are failing to resume, and winds up resetting them. Oops. ^-^
2019-01-03 15:17:47 +00:00
Jared Boone
46ba0512d4 PortaPack: Remove noisy, extraneous "+" for amplifier gain labels, add space before "dB". 2019-01-02 09:37:43 -08:00
Jared Boone
c477317408 PortaPack: Improve baseband filter frequency label readability. 2019-01-02 09:35:15 -08:00
Jared Boone
a2902d7d3a PortaPack: Hide first-IF mixer icon when bypassed. 2018-12-31 14:58:10 -08:00
Jared Boone
d0681933e6 PortaPack: Update TX gain label.
Turns out the HackRF code refers to MAX2837 TX VGA gain, which is mis-labeled as a baseband setting. It's actually in the IF portion of the TX path.
2018-12-31 14:47:42 -08:00
Jared Boone
bb059ddfa7 PortaPack: Store LNA state for use when radio path direction changes. 2018-12-31 14:22:49 -08:00
Jared Boone
fd65f35872 PortaPack: Draw gain value for LNA. 2018-12-31 14:22:22 -08:00
Jared Boone
9cce90b02e PortaPack: Define draw-dB function earier so it can be used for LNA. 2018-12-31 14:21:47 -08:00
Jared Boone
1775c44b79 PortaPack: Don't draw sample rate.
It looks ugly, needs fixing.
2018-12-31 14:21:08 -08:00
Jared Boone
c09f76a92c PortaPack: Consolidate color palette. 2018-12-31 14:07:39 -08:00
Jared Boone
53b1250061 PortaPack: Fix integer rendering so a 0 value doesn't show up as an empty string. 2018-12-31 10:59:40 -08:00
Jared Boone
de3f5a0e9f PortaPack: Add string draw fn, +dB draw fn. 2018-12-31 10:47:18 -08:00
Jared Boone
494f203f8d PortaPack: Clean up tuning frequency rendering, add spaces per 3-digit group for readability. 2018-12-31 10:36:17 -08:00
Jared Boone
f60b2479fb JTAG: Restore CPLD pin config functions, leave pins in pull-only state when not actively operating. 2018-12-31 10:12:28 -08:00
Jared Boone
cd24e01d75 CMake: Put libopencm3 dependencies in the right place. 2018-12-30 14:11:11 -08:00
Jared Boone
1d26b59b2d CMake: incorporate libopencm3 into build process. 2018-12-30 13:42:01 -08:00
Jared Boone
bb2fe4259c CMake: Base paths off location of hackrf-common.cmake. 2018-12-28 17:07:51 -08:00
Jared Boone
961ad732fa CMake: Create DFU path variable. 2018-12-28 17:07:30 -08:00
Jared Boone
2e6153a653 I2C: Device probe function I wrote, didn't need, but thought might be useful in the future. 2018-12-27 21:11:35 -08:00
Jared Boone
b35ec285b6 PortaPack UI: Miscellaneous clean-up
Remove "portapack" arg to many static functions, no idea why I thought that was necessary.
Add PortaPack presence detect function using JTAG.
Create a "hackrf_ui_t" type that has function pointers to a specific UI implementation, returned by a UI detection function.
2018-12-27 21:11:00 -08:00
Jared Boone
816d435dc5 Pin setup: Break out JTAG configuration, rework to consider PortaPack. 2018-12-27 20:33:33 -08:00
Jared Boone
bfd3b1b768 Set 1V8 enable state before configuring pin function or to output mode
...to avoid glitching 1V8 enable voltage.
2018-12-27 20:31:31 -08:00
Jared Boone
610e6b58cc Set VAA_ENABLE# state before setting GPIO to output.
...to avoid glitching the output voltage.
2018-12-27 20:29:25 -08:00
Jared Boone
5535cf059e Pin setup: Make GPIO direction reset the *first* step. 2018-12-27 20:26:55 -08:00
Jared Boone
0b46745aed OperaCake code conflicts with PortaPack code, make compile-time conditional. 2018-12-27 15:14:52 -08:00
Jared Boone
d8f579af2b Merge from mossmann/master 2018-12-27 14:56:29 -08:00
Jared Boone
88fb406a55 PortaPack: Conditionally claim JTAG pins in SCU #defines 2018-12-27 10:10:01 -08:00
Dominic Spill
454e32b8c8 Travis artefacts (#564)
* Try artefacts deployed to gh_pages

* Try to use gh_pages from the travis_artefacts branch

* Try deploying to a different repo

* Try to organise files deployed to github pages

* Test pushing a local dir to master

* Try pushing to original repo

* Be verbose so I can debug it

* Setting env variables

* Oops, environment variables aren't what I thought

* Try to push to nightly repo

* Remove unused cp command

* Copy firmware to archive directory

* Fix pathing to artefacts

* Use TRAVIS_BUID_DIR instead of assuming path

* Use mkdir -p to ensure directories exist

* Put / back in to CPLD path

* Move repo to GSG

* Switch to master branch

* Add nightly deployment

* Fix escaping in sed command

* Allow firmware version styring to be overridden

* Fix some sed commands....

* Switch to master branch for builds
2018-12-20 20:38:10 -07:00
Dominic Spill
847d00d770 Fix typo in still in use error message 2018-12-18 14:42:41 -07:00
Michael Ossmann
74ef45a0dd Merge pull request #558 from dominicgs/multiple_hackrf_stop_rx_issue_463
Fix multiple hackrf stop rx
2018-12-06 15:48:53 -07:00
Dominic Spill
9da5b3ea8c Install g++ libs for arm embedded (#563) 2018-12-05 19:23:52 -07:00
Dominic Spill
7ebd2a3b5a Travis clean up (#562)
Tidy Travis dependency installation
2018-12-05 18:49:10 -07:00
Dominic Spill
9da826e9ef Add Windows build art(e|i)facts (#561)
This includes:
 * Cmake clean up - thanks @Qyriad
 * Windows binaries saved after each appveyor build
 * A bump to the Visual Studio version that we use to build it
 * An appveyor cygwin script for building firmware, it doesn't work but it seems like someone might pick it up and make it work, or blow it away if we switch to Travis firmware artefacts
2018-12-05 18:45:26 -07:00
Dominic Spill
290df811a3 Merge pull request #560 from dominicgs/travis
Switch to xenial build platform (no more containers)
2018-12-05 18:43:54 -07:00
Dominic Spill
7ac0251eb6 Switch to xenial build platform (no more containers) 2018-12-05 11:49:33 -07:00
Dominic Spill
01bf974894 Merge pull request #557 from dominicgs/travis
Remove oclint travis line because it's no longer installed by default
2018-11-30 08:49:52 +11:00