Skip to content

Commit

Permalink
Install ucrt64 ninja and cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
multiplemonomials committed Oct 15, 2023
1 parent 3ce265e commit 2c8c061
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/compile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Install libusb and ucrt64 GCC compiler
run: |
$env:PATH = "C:\msys64\usr\bin;$env:PATH"
pacman --noconfirm -Sy mingw-w64-ucrt-x86_64-libusb mingw-w64-ucrt-x86_64-gcc ninja
pacman --noconfirm -Sy mingw-w64-ucrt-x86_64-libusb mingw-w64-ucrt-x86_64-gcc mingw-w64-ucrt-x86_64-ninja mingw-w64-ucrt-x86_64-cmake
- name: Compile project
run: |
$env:PATH = "C:\msys64\ucrt64\bin;C:\msys64\usr\bin;$env:PATH"
Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,20 @@ FXLoad is a tool for flashing firmware to the Anchor Chips/Cypress/Infineon EZ-U

FXLoad supports the following chips (in order of most to least recent):
- [Cypress/Infineon FX2LP](https://www.infineon.com/cms/en/product/universal-serial-bus/usb-2.0-peripheral-controllers/ez-usb-fx2lp-fx2g2-usb-2.0-peripheral-controller/) (CY7C68013A) (`-t FX2LP`)
- [Cypress/Infineon FX2 (CY7C68013) (`-t FX2`)
- Cypress/Infineon FX2 (CY7C68013) (`-t FX2`)
- Cypress/Infineon FX (CY7C64613) (`-t FX`)
- Anchor Chips AN21 (AN2131SC) (`-t AN21`)

More info about the EZ-USB series of micros can be found [here](http://www.linux-usb.org/ezusb/).

## License & History

The last original version of fxload was published in 2008 by David Brownell at http://linux-hotplug.sourceforge.net. This version is Linux only as it requires

In 2010, Wolfgang Wieser created some patches to make assigning VIDs and PIDs easier [here](https://www.triplespark.net/elec/periph/USB-FX2/eeprom/) (these currently are not merged into this version)



## Code Installation

## USB Setup
Expand Down
10 changes: 7 additions & 3 deletions src/ezusb.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,14 @@ extern "C"
#endif

// If supported, define an attribute to mark functions as doing printf formatting
#ifndef _MSC_VER
#define PRINTF_FORMAT_ATTRIBUTE __attribute__ ((format (printf, 1, 2)))
#else
#ifdef __MINGW32__
// On mingw we need to specify that we're using gnu printf provided by ucrt
#define PRINTF_FORMAT_ATTRIBUTE __attribute__ ((format (gnu_printf, 1, 2)))
#elif defined(_MSC_VER)
// No corresponding attribute for MSVC
#define PRINTF_FORMAT_ATTRIBUTE
#else
#define PRINTF_FORMAT_ATTRIBUTE __attribute__ ((format (printf, 1, 2)))
#endif

// Utility function to print to stderr
Expand Down

0 comments on commit 2c8c061

Please sign in to comment.