Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
. Theg
is to enable debugging.Then load the program onto the FX2 using
make fx2_load
and then runsudo ./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.