Commit Graph

30 Commits

Author SHA1 Message Date
Martin Braun
5f73667284 host/firmware/tools: Update minimum CMake versions
Various sub-projects around the UHD repository specify their own minimum
CMake versions (independent of UHD). We modify the minimum CMake
versions in the following way:

- All CMake files under firmware/ are bumped from 2.6 to 3.5. This is to
  allow newer CMake versions to work with these files (CMake 4 and
  beyond do no longer work if the minimum version is below 3.5). However,
  note that these CMake files are so simple they will keep working with
  older CMake versions, but that will require manually demoting the
  minimum version. Because more people are using CMake versions newer
  than 3.5 (especially with recent checkouts of UHD), this seems the
  more compatible solution.
- The CMake files for extension_example and init_usrp are bumped to
  3.12. This matches the version that UHD uses, which increases
  compatibility.
2025-09-24 13:48:07 +02:00
Lars Amsel
bfaa556600 Move ignore of build folders into top level
Move ignored build folder to into top level and ignore all folders
that starts with build.
2025-07-18 11:19:52 +02:00
Martin Braun
a69ab0c23a cmake: Update coding style to use lowercase commands
Also updates our coding style file.

Ancient CMake versions required upper-case commands.  Later command
names became case-insensitive.  Now the preferred style is lower-case.

Run the following shell code (with GNU compliant sed):

cmake --help-command-list | grep -v "cmake version" | while read c; do
  echo 's/\b'"$(echo $c | tr '[:lower:]' '[:upper:]')"'\(\s*\)(/'"$c"'\1(/g'
done > convert.sed \
&& git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' \
'*CMakeLists.txt' | xargs -0 gsed -i -f convert.sed && rm convert.sed

(Make sure the backslashes don't get mangled!)
2018-11-14 14:10:09 -08:00
Marcus Müller
d9bcf00f69 made FX2 EEPROMS and firmware build with modern SDCC 3.6 2017-06-29 15:53:15 -07:00
Marcus Müller
aacaa4b1c2 Added make target to produce C array from eeprom.bin 2017-01-26 16:22:49 +01:00
211217613
23a04bf3ed Close file handlers the python way, changed var bytes to out_bytes 2016-06-27 09:58:04 -07:00
Ben Hilburn
0e39127672 Squashed commit uhd/cleanup. 2013-11-27 11:53:38 -08:00
Josh Blum
9d0ce59f3c b100: firmware updates for next branch compatability 2012-07-19 13:24:42 -07:00
Nick Foster
63991f7922 B100: enable_gpif(0) disables FIFO output clock on FX2. this prevents the "stuffing zeroes" problem and improves transport reliability. 2012-03-16 11:27:39 -07:00
Nick Foster
10a4d951a1 B100: Firmware reset tweaks. 2012-02-09 11:39:03 -08:00
Nick Foster
5c56ca574f B100: use FPGA external reset on init 2012-02-06 13:01:15 -08:00
Nick Foster
0d2acffaf4 B100/B150: firmware disable FIFOs until host enables to keep junk out 2012-02-03 17:38:33 -08:00
Josh Blum
a0887f3bd3 b100: bump compat numbers for slave fifo mode
Conflicts:

	host/lib/usrp/b100/b100_impl.hpp
2012-02-01 10:05:52 -08:00
Nick Foster
081714b4ce B100 firmware changes to allow slave mode TX/RX. 2012-02-01 10:04:53 -08:00
Ben Hilburn
76bcd09b37 Fixing VID comment in firmware to reflect ERLLC rather than FSF. 2011-10-14 15:55:43 -07:00
Josh Blum
1a695f9484 b100: new eeprom map for special 9 byte serial 2011-10-12 10:16:48 -07:00
Nick Foster
5fcad09af2 B100: change B100 PID in usb_descriptors.a51 as well 2011-10-11 10:22:59 -07:00
Nick Foster
ee917d28ff B100: use PA6 for pktend 2011-10-10 15:49:51 -07:00
Jason Abele
05a8d2cca8 1 Character Patch for USRP1 usrp_eeprom.bin generation 2011-10-10 15:49:51 -07:00
Nick Foster
2d7f96cd04 B100: modify build_eeprom for correct B100 PID 2011-10-10 15:49:51 -07:00
Nick Foster
7d08d1b587 B100 firmware fix for FPGA load race condition, plus a little cleanup for readability 2011-10-10 15:47:28 -07:00
Josh Blum
deae10bc1c b100: added b100 firmware (squashed) 2011-06-14 17:56:54 -07:00
Josh Blum
0f64366dee usrp1: reverted spi transaction changes to the usrp1 firmware (broken and not needed) 2011-03-30 16:50:02 -07:00
Josh Blum
94a492dc40 uhd: rename identifier for usrp1 eeprom, and fix offsets, add serial support to usrp2 2010-11-05 17:39:18 -07:00
Josh Blum
3ac3457184 Merge branch 'good_stuff' into mb_eeprom
Conflicts:
	firmware/fx2/include
2010-11-05 13:53:39 -07:00
Josh Blum
c473cc56fa usrp1: pulled in cmake build system for usrp1 firmware 2010-11-05 12:32:09 -07:00
Nick Foster
b96088b692 EEPROM burning in UHD. Changed some USB device handle stuff. Added usrp_init_eeprom.cpp. Hacked up the firmware makefile to behave and to generate .bin EEPROM images instead of IHX. 2010-08-31 16:44:30 -07:00
Josh Blum
2f3269f359 usrp1: images for usrp1, makefile checks for image generation dependencies 2010-08-19 18:23:19 -07:00
Thomas Tsou
b3a092055a usrp1: Add SPI transaction command to FX2 firmware
The existing SPI read command is set for half-duplex 8-bit
or 16-bit writes followed by an equivalent sized read.
This patch adds a new command, VRQ_SPI_TRANSACT, which
performs a full-duplex transaction up to 4-bytes. Since the
data buffer of the USB control transfer is not available
for outbound data on IN requests, the 4 bytes of write data
are sent through the request parameters. Enables are sent
in the previsouly unused high byte of the length parameter.
The USB field mappings are shown below. Only rising edge
and MSB operation is supported.

Field (8-bit)           Description
=====                   =====
bmRequestType           0x80 (USB Device IN request)
bRequest                0x83 (VRQ_SPI_TRANSACT)
wValueH                 OUT data(0)
wValueL                 OUT data(1)
wIndexH                 OUT data(2)
wIndexL                 OUT data(3)
wLengthH                SPI enables
wLengthL                Number of bytes to transfer (1-4)

EP0BUF                  IN data
2010-08-13 17:54:01 -07:00
Thomas Tsou
70eae1d242 usrp1: Add FX2 firmware files
These firmware files for the usrp1 are imported from
GNURadio.
2010-08-13 12:25:36 -07:00