]> sigrok.org Git - sigrok-firmware-fx2lafw.git/log
sigrok-firmware-fx2lafw.git
8 years agoNEWS: Add list of user-visible changes so far.
Uwe Hermann [Tue, 4 Oct 2016 11:20:52 +0000 (13:20 +0200)]
NEWS: Add list of user-visible changes so far.

8 years agoIncrease FX2LAFW_VERSION_MINOR to 2.
Uwe Hermann [Tue, 4 Oct 2016 11:22:29 +0000 (13:22 +0200)]
Increase FX2LAFW_VERSION_MINOR to 2.

There have been changes since the last release, but they have been
compatible ones that don't require any host-side (libsigrok) changes,
thus only increase FX2LAFW_VERSION_MINOR (but not FX2LAFW_VERSION_MAJOR).

8 years agoUse per-device USB serial number strings.
Uwe Hermann [Sun, 30 Oct 2016 11:12:31 +0000 (12:12 +0100)]
Use per-device USB serial number strings.

These are not actual "serial numbers" in the strict sense, i.e. two
devices of the same type (e.g. two USBee ZX devices) would have the
same string.

Using two different actual serial numbers in such a case is not possible
since both devices would get the exact same firmware file (uploaded to
RAM via USB) and thus the exact same hardcoded "serial number". All devices
where fx2lafw is currently used don't have an EEPROM where the firmware
(and thus a different serial number) could be stored persistently; it's
always re-uploaded to the device's RAM upon connecting the device to USB.

However, the USB serial number field is still useful in that we can
store a nice device(-type) indicator string there. The benefit is that
an lsusb of an fx2lafw (after firmware upload) would yield something
specific like "USBee ZX" or "Hantek 6022BE" in addition to the very
generic "fx2lafw".

8 years agoAdd "fx2lafw-" prefix to the 6022BE/DDS120 firmware files.
Uwe Hermann [Mon, 31 Oct 2016 13:44:35 +0000 (14:44 +0100)]
Add "fx2lafw-" prefix to the 6022BE/DDS120 firmware files.

8 years agoUse the same VID/PID for Hantek 6022BE and SainSmart DDS120.
Uwe Hermann [Wed, 12 Oct 2016 20:24:02 +0000 (22:24 +0200)]
Use the same VID/PID for Hantek 6022BE and SainSmart DDS120.

(one of the official sigrok VID/PIDs, 1D50:608E)

Encode the fact that they're different versions/revisions/variants
of the same device (more or less rebadges with only little changes)
in the USB product version field.

8 years agoMakefile.am: Remove unneeded duplication.
Uwe Hermann [Wed, 12 Oct 2016 20:16:13 +0000 (22:16 +0200)]
Makefile.am: Remove unneeded duplication.

8 years agoAdd and use macros to simplify USB descriptor files.
Uwe Hermann [Sat, 8 Oct 2016 14:41:10 +0000 (16:41 +0200)]
Add and use macros to simplify USB descriptor files.

The macros in include/common.inc were provided by
Stefan Brüns <redacted>, thanks!

8 years agoMakefile.am: Add dscr_hantek_6022be.inc to the tarball.
Uwe Hermann [Sat, 3 Sep 2016 13:33:51 +0000 (15:33 +0200)]
Makefile.am: Add dscr_hantek_6022be.inc to the tarball.

8 years agoHACKING: Prefer git pull requests over mailing list patches.
Uwe Hermann [Wed, 10 Aug 2016 07:52:55 +0000 (09:52 +0200)]
HACKING: Prefer git pull requests over mailing list patches.

Also, drop the reference to gitorious.org (no longer available).

8 years agoREADME: Drop obsolete and unneeded section.
Uwe Hermann [Wed, 10 Aug 2016 07:44:45 +0000 (09:44 +0200)]
README: Drop obsolete and unneeded section.

The firmware requirements should be documented in libsigrok itself, the
firmware in this repo doesn't know anything about its users per se.

8 years agogpif-acquisition.c: Minor cosmetics, drop obsolete comment.
Uwe Hermann [Wed, 10 Aug 2016 07:42:19 +0000 (09:42 +0200)]
gpif-acquisition.c: Minor cosmetics, drop obsolete comment.

8 years agoRefactor and bugfix the delay adding code for analog capture
Paul Fertser [Fri, 15 Jul 2016 20:19:10 +0000 (23:19 +0300)]
Refactor and bugfix the delay adding code for analog capture

There're two essential modifications in this change:

1. Fix timing for capture frequencies less than 200 kHz;
2. Sample ADC output after CLK is set low, as per the TLC5510
datasheet.

The second point is also important as the capture state sets CLK low,
so with the previous code there might have been a very short glitch on
this line during capture. Not confirmed by measurements, but it's
cleaner this way.

Signed-off-by: Paul Fertser <redacted>
8 years agoRemove bogus part of OUTPUT used for analog sampling
Paul Fertser [Fri, 15 Jul 2016 20:19:09 +0000 (23:19 +0300)]
Remove bogus part of OUTPUT used for analog sampling

Since TRICTL = 0, FX2 always either pushes or pulls the CTLx pins.

Signed-off-by: Paul Fertser <redacted>
8 years agoFix typo in gpif_make_data_dp_state function name
Paul Fertser [Fri, 15 Jul 2016 20:19:08 +0000 (23:19 +0300)]
Fix typo in gpif_make_data_dp_state function name

Signed-off-by: Paul Fertser <redacted>
8 years agoChange arguments of gpif_make_delay_state() to remove layering violation
Paul Fertser [Fri, 15 Jul 2016 20:19:07 +0000 (23:19 +0300)]
Change arguments of gpif_make_delay_state() to remove layering violation

This function is called only for adding delay states to the waveform
so OPCODE is always the same.

While at it, fix confusing comments.

Signed-off-by: Paul Fertser <redacted>
8 years agodscr*.inc: Document polling intervals better.
Uwe Hermann [Wed, 10 Aug 2016 07:38:14 +0000 (09:38 +0200)]
dscr*.inc: Document polling intervals better.

8 years agodscr_hantek_6022be.inc: Fix incorrect comments, add additional ones.
Uwe Hermann [Wed, 10 Aug 2016 06:23:09 +0000 (08:23 +0200)]
dscr_hantek_6022be.inc: Fix incorrect comments, add additional ones.

8 years agodscr_hantek_6022be.inc: Change vendor string to "sigrok".
Uwe Hermann [Wed, 10 Aug 2016 06:19:20 +0000 (08:19 +0200)]
dscr_hantek_6022be.inc: Change vendor string to "sigrok".

8 years agodscr_hantek_6022be.inc: Cosmetic and consistency changes.
Uwe Hermann [Wed, 10 Aug 2016 06:07:32 +0000 (08:07 +0200)]
dscr_hantek_6022be.inc: Cosmetic and consistency changes.

This makes the file a lot more readable and also easier to compare
to the other dscr.inc files.

Also, fix some typos (or copy-paste errors) in some comments.

8 years agodscr.inc: Shorten representation of two strings.
Uwe Hermann [Wed, 10 Aug 2016 05:40:43 +0000 (07:40 +0200)]
dscr.inc: Shorten representation of two strings.

8 years agohantek-6022be/sainsmart-dds120: Hook up correct per-device VID/PID.
Uwe Hermann [Thu, 4 Aug 2016 15:24:00 +0000 (17:24 +0200)]
hantek-6022be/sainsmart-dds120: Hook up correct per-device VID/PID.

8 years agoDeduplicate hantek-6022be/sainsmart-dds120's dscr.inc.
Uwe Hermann [Thu, 4 Aug 2016 15:18:14 +0000 (17:18 +0200)]
Deduplicate hantek-6022be/sainsmart-dds120's dscr.inc.

8 years agohantek-6022be/sainsmart-dds120: Use the same USB product string.
Uwe Hermann [Thu, 4 Aug 2016 15:16:48 +0000 (17:16 +0200)]
hantek-6022be/sainsmart-dds120: Use the same USB product string.

8 years agoREADME: Mention the Sainsmart DDS120 firmware.
Uwe Hermann [Tue, 12 Jul 2016 22:10:21 +0000 (00:10 +0200)]
README: Mention the Sainsmart DDS120 firmware.

8 years agoAdd CWAV USBee ZX firmware support.
Uwe Hermann [Tue, 12 Jul 2016 21:48:13 +0000 (23:48 +0200)]
Add CWAV USBee ZX firmware support.

This fixes bug #764.

8 years agoSilence warnings
Benjamin Larsson [Wed, 18 May 2016 22:36:25 +0000 (00:36 +0200)]
Silence warnings

The following warnings are fixed by this:

 hantek_6022be.c:424: warning 158: overflow in implicit constant conversion
 sainsmart_dds120.c:359: warning 158: overflow in implicit constant conversion
 sainsmart_dds120.c:363: warning 158: overflow in implicit constant conversion
 sainsmart_dds120.c:366: warning 158: overflow in implicit constant conversion
 sainsmart_dds120.c:370: warning 158: overflow in implicit constant conversion
 sainsmart_dds120.c:494: warning 158: overflow in implicit constant conversion

8 years agoAdd a few more code comments.
Uwe Hermann [Wed, 18 May 2016 22:17:16 +0000 (00:17 +0200)]
Add a few more code comments.

8 years agofx2lafw: clock CTL1 the same as CTL2
Benjamin Larsson [Wed, 18 May 2016 20:50:06 +0000 (22:50 +0200)]
fx2lafw: clock CTL1 the same as CTL2

The LHT00SU1 has it's clock pins swapped compared to other hardware.
By duplicating the CTL2 pin both the socket and the adc will
have the same clock frequency.

8 years agoUse 1D50:608E for open source Sainsmart DDS120 firmware
Markus Siegert [Sun, 10 Apr 2016 20:03:13 +0000 (22:03 +0200)]
Use 1D50:608E for open source Sainsmart DDS120 firmware

8 years agoSupport changing calibration pulse frequency
Benjamin Larsson [Sat, 23 Apr 2016 16:22:19 +0000 (18:22 +0200)]
Support changing calibration pulse frequency

8 years agoAdd more sample rates
Benjamin Larsson [Sat, 23 Apr 2016 16:19:12 +0000 (18:19 +0200)]
Add more sample rates

8 years agoAdd support for setting Sainsmart AC/DC coupling
Benjamin Larsson [Sun, 3 Apr 2016 15:39:07 +0000 (17:39 +0200)]
Add support for setting Sainsmart AC/DC coupling

8 years agoInitial Sainsmart DDS120 firmware
Benjamin Larsson [Fri, 18 Mar 2016 21:12:56 +0000 (22:12 +0100)]
Initial Sainsmart DDS120 firmware

8 years agoAdd CMD_START_FLAGS_CLK_CTL2 command flag
Benjamin Larsson [Wed, 27 Apr 2016 22:58:26 +0000 (00:58 +0200)]
Add CMD_START_FLAGS_CLK_CTL2 command flag

This command will generate a suitable clock on pin CTL2 for
devices with an analog input.

8 years agoEnable more control over the GPIF state machine
Benjamin Larsson [Wed, 27 Apr 2016 22:49:10 +0000 (00:49 +0200)]
Enable more control over the GPIF state machine

8 years agohw/hantek-6022be/dscr.a51: License header cosmetics.
Uwe Hermann [Thu, 10 Mar 2016 22:31:18 +0000 (23:31 +0100)]
hw/hantek-6022be/dscr.a51: License header cosmetics.

8 years agohantek_6022be.c: Simplify handle_vendorcommand().
Uwe Hermann [Thu, 10 Mar 2016 22:24:16 +0000 (23:24 +0100)]
hantek_6022be.c: Simplify handle_vendorcommand().

8 years agohantek_6022be.c: Minor cosmetics.
Uwe Hermann [Thu, 10 Mar 2016 22:19:48 +0000 (23:19 +0100)]
hantek_6022be.c: Minor cosmetics.

8 years agohantek_6022be.c: Make a few variables and functions static.
Uwe Hermann [Thu, 10 Mar 2016 22:15:05 +0000 (23:15 +0100)]
hantek_6022be.c: Make a few variables and functions static.

8 years agohantek_6022be.c: Move main() for consistency.
Uwe Hermann [Thu, 10 Mar 2016 22:12:24 +0000 (23:12 +0100)]
hantek_6022be.c: Move main() for consistency.

8 years agohantek_6022be.c: Adapt to fx2lafw coding style, minor simplifications.
Uwe Hermann [Thu, 10 Mar 2016 22:10:06 +0000 (23:10 +0100)]
hantek_6022be.c: Adapt to fx2lafw coding style, minor simplifications.

8 years agohantek_6022be.c: Drop unneeded debug code, random cruft.
Uwe Hermann [Thu, 10 Mar 2016 21:43:41 +0000 (22:43 +0100)]
hantek_6022be.c: Drop unneeded debug code, random cruft.

8 years agoREADME: Update to mention the Hantek 6022BE firmware.
Uwe Hermann [Thu, 10 Mar 2016 21:38:52 +0000 (22:38 +0100)]
README: Update to mention the Hantek 6022BE firmware.

8 years agohantek_6022be.c: Fix build error.
Uwe Hermann [Thu, 10 Mar 2016 21:19:14 +0000 (22:19 +0100)]
hantek_6022be.c: Fix build error.

Drop handle_get_descriptor(), since it's already provided by
fx2lib/lib/setupdat.c, in order to fix the following linker error:

  Multiple definition of _handle_get_descriptor
  Makefile:925: recipe for target 'hw/hantek-6022be/hantek-6022be.ihx' failed

8 years agoMakefile.am: Hook up building of hantek-6022be.fw.
Uwe Hermann [Thu, 10 Mar 2016 20:46:29 +0000 (21:46 +0100)]
Makefile.am: Hook up building of hantek-6022be.fw.

The FX2 firmware for the Hantek 6022BE USB-based oscilloscope uses most
of the existing fx2lafw build infrastructure and our existing fx2lib setup,
but requires slightly different sdcc linker settings due to different code
and XRAM sizes and locations, etc.

8 years agoAdd FX2 firmware for the Hantek 6022BE USB scope.
Uwe Hermann [Thu, 10 Mar 2016 20:02:12 +0000 (21:02 +0100)]
Add FX2 firmware for the Hantek 6022BE USB scope.

This firmware was originally created by Jochen Hoenicke in 05/2015
for the Hantek6022API github project by Robert Cope. Full credit for
the implementation of the firmware goes to Jochen Hoenicke, thanks!

Github project:

  https://github.com/rpcope1/Hantek6022API

We're incorporating the firmware into the sigrok-firmware-fx2lafw
repo/tarball for convenience of sigrok users. E.g. so that they can
easily get it with the other fx2lafw firmware files from distro
packages, the build scripts in sigrok-util automatically build/install
it, the sigrok Windows installers automatically ship it, the sigrok
Android APKs automatically ship it, etc. etc.

The files we're integrating into fx2lafw from Hantek6022API are taken from
the PyHT6022/HantekFirmware/custom directory of that repo, using the state
as of 03/2016 (the files were last modified in 05/2015, though).

The git hash of the last relevant commit there was:

  0498e2ab239aabb1084c19e1e24faf56764b217e

Files integrated into fx2lafw:

 - hw/hantek-6022be/dscr.a51: Copied unmodified.

 - hantek_6022be.c: This file is created by appending the
   contents of the original device.c and fw.c together without
   other modifications.

The license of both files is LGPL 2.1 (or later).

8 years agoREADME: Update prebuilt firmware download location.
Uwe Hermann [Thu, 10 Mar 2016 20:01:29 +0000 (21:01 +0100)]
README: Update prebuilt firmware download location.

9 years agoconfigure.ac: Bump package version to 0.1.3. sigrok-firmware-fx2lafw-0.1.3
Uwe Hermann [Thu, 26 Nov 2015 22:41:51 +0000 (23:41 +0100)]
configure.ac: Bump package version to 0.1.3.

9 years agoNEWS: Add list of user-visible changes so far.
Uwe Hermann [Thu, 26 Nov 2015 22:40:46 +0000 (23:40 +0100)]
NEWS: Add list of user-visible changes so far.

9 years agoREADME: Any sdcc 3.x version works fine.
Uwe Hermann [Thu, 26 Nov 2015 22:38:10 +0000 (23:38 +0100)]
README: Any sdcc 3.x version works fine.

E.g. 3.5 also works fine as of today.

9 years agobuild: Distribute autogen.sh
Daniel Elstner [Tue, 10 Nov 2015 12:28:40 +0000 (13:28 +0100)]
build: Distribute autogen.sh

9 years agobuild: Customize silent rule prefixes for sdas/sdcc
Daniel Elstner [Mon, 9 Nov 2015 13:57:33 +0000 (14:57 +0100)]
build: Customize silent rule prefixes for sdas/sdcc

Be fancy and print custom SDAS and SDCC prefixes in silent-rules
mode.

9 years agobuild: Allow dist-bin from non-git sources
Daniel Elstner [Mon, 9 Nov 2015 13:27:12 +0000 (14:27 +0100)]
build: Allow dist-bin from non-git sources

Do not require the source directory to be a git checkout when
creating the tarball of binary firmware files.

9 years agobuild: Simplify dist-changelog target
Daniel Elstner [Mon, 9 Nov 2015 10:51:26 +0000 (11:51 +0100)]
build: Simplify dist-changelog target

When not building from git, it is not necessary to manually copy
the ChangeLog file from the source directory to the distribution,
since Automake already does that for us.

9 years agobuild: Check SDCC version during configure
Daniel Elstner [Mon, 9 Nov 2015 10:10:48 +0000 (11:10 +0100)]
build: Check SDCC version during configure

Require at least SDCC version 2.9.0.

This fixes bug #696.

9 years agoUpdate git ignore list
Daniel Elstner [Sat, 7 Nov 2015 18:14:06 +0000 (19:14 +0100)]
Update git ignore list

9 years agobuild: Switch to non-recursive make
Daniel Elstner [Sat, 7 Nov 2015 18:02:43 +0000 (19:02 +0100)]
build: Switch to non-recursive make

9 years agoAdd fx2lafw firmware for FX2 devices with sigrok VID/PID.
Uwe Hermann [Wed, 21 Oct 2015 20:23:44 +0000 (22:23 +0200)]
Add fx2lafw firmware for FX2 devices with sigrok VID/PID.

The two new firmware images fx2lafw-sigrok-fx2-{8,16}ch.fw can be used
on Cypress FX2 devices where one of the two official sigrok fx2lafw
USB VID/PID pairs is hardcoded in an external EEPROM.

The sigrok project owns USB product IDs allocated via the Openmoko project:

  http://wiki.openmoko.org/wiki/USB_Product_IDs

The following two VID/PID pairs are available for devices that use
a Cypress FX2(LP) chip *directly* as 8-channel or 16-channel logic analyzer,
and use the respective USB-based protocol. They are *not* meant for
other devices which just happen to also have an FX2 (e.g. in addition to
an FPGA) and/or devices that use a different USB-based protocol.

 - 1D50:608C: fx2lafw-sigrok-fx2-8ch.fw

 - 1D50:608D: fx2lafw-sigrok-fx2-16ch.fw

9 years agoautogen.sh: Drop obsolete MinGW/MSYS items.
Uwe Hermann [Tue, 7 Apr 2015 00:42:11 +0000 (02:42 +0200)]
autogen.sh: Drop obsolete MinGW/MSYS items.

For Windows builds (which require MinGW-w64) we currently support:

 - cross-builds using MXE (mxe.cc) and possibly other cross-compile setups

 - native builds using MSYS2 (sf.net/projects/msys2/)

Neither of those require explicitly specifying ACLOCAL_DIR.

10 years agoDrop references to obsolete sigrok-commits mailing list.
Uwe Hermann [Tue, 22 Jul 2014 22:06:59 +0000 (00:06 +0200)]
Drop references to obsolete sigrok-commits mailing list.

10 years agoconfigure.ac: Bump package version to 0.1.2. sigrok-firmware-fx2lafw-0.1.x sigrok-firmware-fx2lafw-0.1.2
Uwe Hermann [Tue, 6 May 2014 21:13:35 +0000 (23:13 +0200)]
configure.ac: Bump package version to 0.1.2.

10 years agoNEWS: Add list of user-visible changes so far.
Uwe Hermann [Tue, 6 May 2014 18:38:21 +0000 (20:38 +0200)]
NEWS: Add list of user-visible changes so far.

10 years agoIncrease FX2LAFW_VERSION_MINOR to 1.
Uwe Hermann [Tue, 6 May 2014 18:41:19 +0000 (20:41 +0200)]
Increase FX2LAFW_VERSION_MINOR to 1.

There have been changes since the last release, but they have been
compatible ones that don't require any host-side (libsigrok) changes,
thus only increase FX2LAFW_VERSION_MINOR (but not FX2LAFW_VERSION_MAJOR).

11 years agoBugfix: Tristate pins after acquisition.
Uwe Hermann [Thu, 27 Jun 2013 13:12:04 +0000 (15:12 +0200)]
Bugfix: Tristate pins after acquisition.

Fix a typo which lead to the data pins not being tri-stated after an
aquisition (when the GPIF is idle) but rather being driven.

Thanks Ignacio García Pérez and Clemens Novak for reporting and testing.

11 years agoREADME: Add "Copyright and license" section.
Uwe Hermann [Fri, 26 Apr 2013 11:50:58 +0000 (13:50 +0200)]
README: Add "Copyright and license" section.

11 years agoGPL headers: Use correct project name.
Uwe Hermann [Tue, 23 Apr 2013 20:35:32 +0000 (22:35 +0200)]
GPL headers: Use correct project name.

11 years agoPrepare for the 0.1.1 release. sigrok-firmware-fx2lafw-0.1.1
Uwe Hermann [Tue, 16 Apr 2013 21:50:46 +0000 (23:50 +0200)]
Prepare for the 0.1.1 release.

11 years agoCOPYING.LESSER: Replace LGPLv3 with LGPLv2.1.
Uwe Hermann [Tue, 16 Apr 2013 22:09:41 +0000 (00:09 +0200)]
COPYING.LESSER: Replace LGPLv3 with LGPLv2.1.

The file incorrectly contained a copy of the LGPL, version 3. It should
have contained version 2.1 though, since that's the license of the
fx2lib files it applies to.

11 years agoDocument the download for pre-built firmware files.
Uwe Hermann [Tue, 16 Apr 2013 22:06:20 +0000 (00:06 +0200)]
Document the download for pre-built firmware files.

11 years agoREADME: sdcc 3.2.x works fine, document that.
Uwe Hermann [Tue, 16 Apr 2013 21:21:32 +0000 (23:21 +0200)]
README: sdcc 3.2.x works fine, document that.

11 years agoFix parallel build (e.g. via "-j 2").
Uwe Hermann [Sun, 17 Mar 2013 13:53:25 +0000 (14:53 +0100)]
Fix parallel build (e.g. via "-j 2").

This fixes bug #68.

11 years agoNEWS: Fix typo.
Uwe Hermann [Sun, 17 Mar 2013 13:47:25 +0000 (14:47 +0100)]
NEWS: Fix typo.

11 years agoconfigure.ac: Fix typo in 'sdcc-sdcclib'.
Uwe Hermann [Sun, 17 Mar 2013 13:42:19 +0000 (14:42 +0100)]
configure.ac: Fix typo in 'sdcc-sdcclib'.

11 years agoAbort configure if the required tools are not found.
Uwe Hermann [Sun, 17 Mar 2013 13:40:33 +0000 (14:40 +0100)]
Abort configure if the required tools are not found.

11 years agoREADME: Refer to INSTALL and new Building wiki page.
Uwe Hermann [Sun, 17 Mar 2013 13:04:00 +0000 (14:04 +0100)]
README: Refer to INSTALL and new Building wiki page.

11 years agoSupport sdcc tool names as used on Fedora.
Uwe Hermann [Thu, 7 Mar 2013 10:32:30 +0000 (11:32 +0100)]
Support sdcc tool names as used on Fedora.

Fedora (e.g. Fedora 18) names the sdcc tools like this:

 sdcc-sdcc, sdcc-sdcclib, sdcc-makebin, etc.

11 years agoFixup DESTDIR usage.
Uwe Hermann [Sun, 3 Mar 2013 18:57:18 +0000 (19:57 +0100)]
Fixup DESTDIR usage.

Drop superfluous slash, otherwise the install directory would be e.g.

 /foo//usr/local/share/sigrok-firmware

or

 //usr/local/share/sigrok-firmware

depending on whether DESTDIR was set via "DESTDIR=/foo", or not.

11 years agobuildsystem: Obey DESTDIR when running make install
Alexandru Gagniuc [Fri, 22 Feb 2013 17:38:49 +0000 (11:38 -0600)]
buildsystem: Obey DESTDIR when running make install

For more details, see:
http://www.gnu.org/prep/standards/html_node/DESTDIR.html
http://www.gnu.org/software/automake/manual/html_node/Extending.html

This closes bug #67.

11 years agoSupport older Cypress FX2 (not FX2LP) too.
Uwe Hermann [Thu, 21 Feb 2013 14:46:36 +0000 (15:46 +0100)]
Support older Cypress FX2 (not FX2LP) too.

The Cypress FX2 chip is an older version of the FX2LP chip with a few
differences that might be relevant for fx2lafw, the major one being
that is has less internal SRAM.

We adapt the linking step to work for both FX2 and FX2LP, thus
keeping only one set of *.fw files for both chip versions.

Changes to the fx2lafw driver in libsigrok are not required.

Some logic analyzer devices such as older USBee SX versions or more recent
devices which use a "fake" FX2LP (which is actually an FX2) need this.

This closes bug #3.

11 years agoNEWS: Add user-visible changes so far.
Uwe Hermann [Sat, 26 Jan 2013 12:37:59 +0000 (13:37 +0100)]
NEWS: Add user-visible changes so far.

11 years agoREADME: Add all build dependencies.
Uwe Hermann [Sat, 26 Jan 2013 12:36:36 +0000 (13:36 +0100)]
README: Add all build dependencies.

11 years ago(Re-)add the convenience target 'distbin'.
Uwe Hermann [Sat, 26 Jan 2013 12:15:47 +0000 (13:15 +0100)]
(Re-)add the convenience target 'distbin'.

This creates a sigrok-firmware-fx2lafw-bin-x.y.z.tar.gz tarball containing
just the *.fw files, so that users don't have to build them manually.

The normal 'make dist' produces a source code tarball, as usual.

11 years agoUse a standard autotools setup.
Uwe Hermann [Wed, 9 Jan 2013 18:34:06 +0000 (19:34 +0100)]
Use a standard autotools setup.

fx2lafw now uses a standard autoconf/automake based build and
configuration system like most other sigrok subprojects (instead of two
sets of custom, not very portable Makefiles).

 $ ./configure && make && make install

It now supports all the usual things one expects, for example:

 - The --prefix et. al. options to specify installation paths.

 - Standard set of 'make' targets, e.g. 'install', 'uninstall',
   'dist', etc.

 - In-tree builds as well as out-of-tree builds.

 - Works pretty much everywhere portably, regardless of 'make'
   implementation (GNU Make or BSD make or...) and regardless of shell
   (bash, sh, dash, ksh, csh, ...).

 - The build output matches the usual 'silent rules' output of other
   (sigrok / autotools) projects. Using 'make V=1' one can get the full
   build output.

12 years agoUse makebin if objcopy is not available.
Uwe Hermann [Thu, 22 Nov 2012 22:16:41 +0000 (23:16 +0100)]
Use makebin if objcopy is not available.

Some systems might not have objcopy (e.g. on Mac OS it might not be
available per default). We use objcopy if it is found, otherwise we try
to use the 'makebin' utility (shipped with sdcc) instead.

Thanks 'Harble' on IRC for the report.

12 years agoFix #include guard names.
Uwe Hermann [Tue, 16 Oct 2012 13:28:41 +0000 (15:28 +0200)]
Fix #include guard names.

12 years agoAdd a HACKING file.
Uwe Hermann [Tue, 16 Oct 2012 13:24:29 +0000 (15:24 +0200)]
Add a HACKING file.

12 years agoMakefile: Update repo URL.
Uwe Hermann [Wed, 10 Oct 2012 22:53:54 +0000 (00:53 +0200)]
Makefile: Update repo URL.

12 years agoREADME: Add status, update URL, add more info.
Uwe Hermann [Wed, 10 Oct 2012 21:58:33 +0000 (23:58 +0200)]
README: Add status, update URL, add more info.

12 years agoAdd basic support for USBee DX and clones
Ivan Fedorov [Tue, 31 Jul 2012 20:26:54 +0000 (00:26 +0400)]
Add basic support for USBee DX and clones

12 years agoAdd .gitignore
Ivan Fedorov [Tue, 31 Jul 2012 20:24:16 +0000 (00:24 +0400)]
Add .gitignore

12 years agoMakefile: Add a 'distbin' target. sigrok-firmware-fx2lafw-0.1.0
Uwe Hermann [Tue, 24 Jul 2012 19:04:50 +0000 (21:04 +0200)]
Makefile: Add a 'distbin' target.

This creates a sigrok-firmware-fx2lafw-bin-x.y.z.tar.gz tarball which
only contains pre-built *.fw files (and some docs), but no source code
of fx2lafw.

This tarball can be provided as a convenience download for users who do
not want to mess with building their own firmware files from source.

12 years agoNEWS: Add today's date as release date for 0.1.0.
Uwe Hermann [Tue, 24 Jul 2012 14:36:30 +0000 (16:36 +0200)]
NEWS: Add today's date as release date for 0.1.0.

12 years agoMakefile.include: Fix build on MinGW/Windows.
Uwe Hermann [Tue, 24 Jul 2012 14:35:06 +0000 (16:35 +0200)]
Makefile.include: Fix build on MinGW/Windows.

The trailing slash causes issues on MinGW/Windows, apparently.

12 years agoUpdate install instructions.
Uwe Hermann [Mon, 23 Jul 2012 13:40:25 +0000 (15:40 +0200)]
Update install instructions.

12 years agoDrop fx2lib files we don't really need.
Uwe Hermann [Mon, 23 Jul 2012 13:20:05 +0000 (15:20 +0200)]
Drop fx2lib files we don't really need.

Document the origins and license of the fx2lib code more precisely.

12 years agoDon't ship the .git/ directory in the tarball.
Uwe Hermann [Mon, 23 Jul 2012 12:55:04 +0000 (14:55 +0200)]
Don't ship the .git/ directory in the tarball.

12 years agoFix 'make clean'.
Uwe Hermann [Sun, 22 Jul 2012 16:29:48 +0000 (18:29 +0200)]
Fix 'make clean'.

Things like "rm -f *.{asm,ihx,lnk,lst,map,mem,rel,rst,sym,adb,cdb,lib}"
aren't really portable or work everywhere.

Also, invoke fx2lib's clean upon an fx2lafw clean.

12 years agoMakefiles: Add missing "2>/dev/null" in some places.
Uwe Hermann [Sun, 22 Jul 2012 16:22:15 +0000 (18:22 +0200)]
Makefiles: Add missing "2>/dev/null" in some places.

12 years agos/make/$(MAKE)/ to fix build on FreeBSD.
Uwe Hermann [Sun, 22 Jul 2012 16:19:15 +0000 (18:19 +0200)]
s/make/$(MAKE)/ to fix build on FreeBSD.

On FreeBSD (and possibly) elsewhere you'd invoke the build via "gmake",
thus hardcoded "make" invokations in our Makefiles will break the build.

Use $(MAKE) everywhere, which always does the right thing.

12 years agoAdd initial NEWS file.
Uwe Hermann [Wed, 18 Jul 2012 17:27:18 +0000 (19:27 +0200)]
Add initial NEWS file.