Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding GPIO MPSSE support to FX2. #24

Open
wants to merge 1 commit into
base: linux-descriptors
Choose a base branch
from

Conversation

RacingTornado
Copy link

@RacingTornado RacingTornado commented Jul 8, 2016

This commit adds MPSSE GPIO support only to the FX2. The steps to follow are similar to the other commits:
To run this first clone the repository, then cd to the fx2lib directory and checkout this particular branch.
After this run 2 commands:
git submodule init
git submodule update
make
After this , navigate to the examples/mpsse_gpio directory and execute the following commands:
make
Now push the FX2 device inside the USB port(remove any udev rules you may have set up for Cypresse's VID and PID) and run
make fx2_download

Now open another terminal download and install https://github.com/devttys0/libmpsse. Then
cd libmpsse
cd src
./configure
After this we need to make some changes depending on where you have libftdi installed. The basic operations to perform are the following.
Open up the Makefile and in the CFLAGS option add the following include statement:
-I/usr/local/include/libftdi1 depending on where you have libftdi installed. libftdi can be installed by following these rules http://developer.intra2net.com/mailarchive/html/libftdi/2013/msg00014.html.
After this type in make in the file. It should build the necessary files. Install the files as sudo using make install. Following this go to the examples directory and add the following line to line number 2.
CFLAGS=-I/usr/local/include/libftdi1 -g. The g is to enable debugging.
Then load the program onto the FX2 using make fx2_load and then run sudo ./gpio. You should see the response on the console. Since the pin directions are continuously being changed you may see some toggles on other pins also.

CLEAR_EP2();
}

/*********************************************************************************
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

..........

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants