This is the source code for the firmware of the FreeSRP's Cypress EZ-USB FX3 controller.
Install the FX3 SDK. Make sure you source
its envsetup.sh
script so the build system can find the libraries and compilers.
There's one utility in the SDK you need to compile first:
cd $FX3_INSTALL_PATH/util/elf2img
gcc elf2img.c -o elf2img
Then, just run:
mkdir build && cd build
cmake ..
make
to compile the firmware. You can now load FreeSRP.img
onto the FX3.
Right now, the FPGA runs a MicroBlaze processor that handles interfacing with the AD9364. However, this MicroBlaze will be eliminated and the FX3 will handle all of the interfacing with the AD9364. That's why there's a driver for the AD9364 in this repo, but it's not currently being used and still needs some work (on both the FX3 and FPGA).