Acquire Devices Electronics Prototyping Company

Getting Started with your FX2 USB Board

Ready to plug in your Pike, SerMod-56 or SerMod-100 FX2 USB Board and want to get started with a simple example. These steps aim to get you started quickly. The steps provided are to download code to your USB Board using the Cypress Development Kit on Microsoft Windows.

Step 1 - Downloading Type Cypress Development Kit with the uVision IDE

Your First Step will be to download the CY3684 EZ-USB FX2 Development Kit executable. Once the kit is installed with the uVision Tools the CyUSB driver's information file needs some minor edits. The OS will search for a driver when the USB Board is plugged in. The Cypress Driver will have to be selected, and an inf file that contains information about the USB devices that the driver controls will be edited. After installing the Cypress CY3681 EZ-USB FX2 Development Kit you will have to edit the cyusb.inf file to allow Windows XP to recognize the Pike, SerMod-56, or SerMod-100 when attached to the USB on your PC. Once the device is attached you will be selecting the "C:\Cypress\USB\Drivers\CyUsb\cyusb.inf" file as a driver through the advanced menu. Two edits will need to be made to the cyusb.inf file. The first edit will be under the [Cypress] tag, and the second will be under the [Strings] tag of the cyusb.inf file. Please see the example cyusb.inf file as an example. Make sure these edits have been made before you have assigned this driver to the USB device. The driver can be assigned/re-assigned through the Windows Device Manager.

Step 2 - Interfacing with the USB Board

Once this file is edited correctly you can interface with your USB Board through the Cypress CyConsole which comes with the CY3681 EZ-USB FX2 Development Kit and the screen output should be identical what is shown in the picture below. The EZ-USB enumerates with the default Vendor ID/Product ID of 0x04B4/0x8613. This console uses the CyUSB driver and cyusb.inf file to interface to your USB Board.


Default CY3681 CyUsb Console Ouput

Step 3 - Downloading the Code

Now you can run the EZ-USB Interface by selecting Options->EZ-USB Interface in the CyConsole and should see a window similar to the image below:


Default CY3681 EZ-USB Interface Ouput

Now the "Download" button on the EZ-USB Interface can be selected prompting for a hex file to be selected. From here you can select this sermod56.hex file regardless if you have a SerMod-56, SerMod-100 or Pike. The source for this code can also be downloaded from the Sermod56.zip file. Once this hex file is downloaded to the device the EZ-USB Interface will change according to the device descriptor compiled in the sermod56.hex file. The contents of the descriptor can be found in the dscr.a51 file in the Sermod56.zip file. You can then call vendor requests defined in the firmware by clicking the "Vend Req" button. See the Starter USB Software on the SerMod-56 product page regardless of the USB FX2 Board you have to toggle some of the port pins through vendor requests.


SerMod-56 CY3681 EZ-USB Interface Ouput
SerMod-56 CY3681 Console Ouput

Step 4 - Going in your own direction

Looking through the Sermod56.zip project file as well as all the other examples found in the C:\Cypress\USB\Examples\FX2LP folder is the fastest way to get started. This code can all be built easily through the uVision IDE and downloaded using the EZ-USB Interface. Please be sure to disable the bmSUSP interrupt or strange results can happen. To disable this only one bit needs to be changed, see the project in Sermod56.zip and search for (***) which are the lines where changes have been made from the Bulkloop example.

Once your familiar with these examples see our USB Software Page for all the ways you can use your FX2 USB Board.