Question: Can command prompts be used to build FX3 projects?
Answer: Do the following to use command prompts for building FX3 projects:
Step 1: Install Make for Windows
The make command is used for building the project. Download Make for Windows from here. You can also use the make.exe installer available with this knowledge base article (KBA).
Run the installer. After the installation is complete, Make for Windows is available at C:\Program Files (x86)\GnuWin32\bin.
Now, add the path C:\Program Files (x86)\GnuWin32\bin to the PATH environment variable so that command prompt can locate make.exe.
Step 2: Create FX3 project build environment
Follow these steps to create FX3 project build environment:
1. Create a folder, for instance FX3_cmd_build, and a subfolder, for instance examples.
2. Copy the folders fw_lib, fw_build, and util from the FX3 SDK installation directory, for instance C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3 to the FX3_cmd_build folder.
The FX3_cmd_build folder will now contain the subfolders as shown in Figure 1.
Figure 1. FX3_cmd_build Folder Structure
3.Copy the firmware project folder from the SDK, which is to be built using command prompt, to the examples folder. In this KBA, the example project cyfxusbi2cregmode in FX3 SDK is built using command prompt, and is available in: C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\firmware\serialif_examples\
Note: The path depends on the installation directory of FX3 SDK.
Copy the entire cyfxusbi2cregmode folder to the examples subfolder.
4. Open the copied cyfxusbi2cregmode folder. This folder will contain the files as shown in Figure 2.
Figure 2. Files in cyfxusbi2cregmode Folder
5. Modify the makefile:
a. Change FX3FWROOT = ../../.. to FX3FWROOT = ../..