RASP-FT232H-MPSSE-Mac

De MCHobby - Wiki
Révision datée du 19 février 2017 à 21:24 par Admin (discussion | contributions) (Page créée avec « {{RASP-FT232H-NAV}} {{traduction}} = Mac OSX = To access the MPSSE mode on Mac OSX we need to install libftdi and the Adafruit Python GPIO library. Carefully follow the... »)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)
Sauter à la navigation Sauter à la recherche


MCHobby investit du temps et de l'argent dans la réalisation de traduction et/ou documentation. C'est un travail long et fastidieux réalisé dans l'esprit Open-Source... donc gratuit et librement accessible.
SI vous aimez nos traductions et documentations ALORS aidez nous à en produire plus en achetant vos produits chez MCHobby.

Mac OSX

To access the MPSSE mode on Mac OSX we need to install libftdi and the Adafruit Python GPIO library. Carefully follow the steps below to install these libraries.

Note that these steps were tested using OSX Mavericks. The steps should work for later versions like Yosemite, but you might need to search for extra help on installing Xcode command line tools below.

First before you get started you will need to make sure you have Xcode and the Xcode command line tools installed. This is required to compile and build libraries from source. Follow the steps in the answer to this Stackoverflow question for a good walkthrough of how to install the Xcode command line tools.

Next install the Homebrew package manager which will be used to install the necessary libftdi depedencies. Follow the installation instructions from the bottom of Homebrew's homepage to install it.

Now run the following commands in a terminal in order to install libftdi and its dependencies:

brew install cmake
brew install libusb
brew install swig
brew install --build-from-source https://raw.githubusercontent.com/Homebrew/homebrew-core/99ebd41decde2dd0fbab799bed88cfcb230a096a/Formula/libftdi.rb
mkdir -p ~/Library/Python/2.7/lib/python/site-packages
echo '/usr/local/lib/python2.7/site-packages' > ~/Library/Python/2.7/lib/python/site-packages/homebrew.pth

The commands above should complete without any errors. If you do see errors, make sure you have Xcode and Homebrew successfully installed and try again.

Next download the Adafruit Python GPIO library by clicking the button below:

Download-icon.pngAdafruit Python GPIO library

Unzip the archive and navigate to the folder inside a terminal. Then run the following command to install the library:

sudo python setup.py install

You should see the Python library successfully install without any errors.

To test the libraries are installed run the following command in a terminal to open the Python interpretor:

python

At the Python interpretor >>> prompt type the following commands to test loading the libraries:

import Adafruit_GPIO
import ftdi1

You should see no response from the Python interpretor after entering each line. If you do see an error that a module cannot be loaded, go back to the libftdi installation steps above and carefully check they completed successfully.

If there are no errors, congratulations you've successfully installed libftdi and the Adafruit Python GPIO library! Move on to the next section to learn how to access the MPSSE mode GPIO, SPI, I2C, etc.

To quit the Python interpretor enter the following:

quit()

Désactiver le pilote FTDI sous OSX 10.11 El Capitan

Note on OSX 10.11 El Capitan and higher you might need to permanently disable Apple's built in FTDI serial driver in order to use all of the FT232H's functions. This can be accomplished by following section 7.3 Block with D2xxHelper from the FTDI app note here.


Source: Adafruit FT232H Breakout Add a serial protocol 'swiss army knife' to your computer and talk directly to devices with SPI, I2C, serial UART, GPIO's, and more!
Créé par Toni DiCola pour AdaFruit Industries.

Traduction réalisée par Meurisse D pour MCHobby.be.

Toute référence, mention ou extrait de cette traduction doit être explicitement accompagné du texte suivant : «  Traduction par MCHobby (www.MCHobby.be) - Vente de kit et composants » avec un lien vers la source (donc cette page) et ce quelque soit le média utilisé.

L'utilisation commercial de la traduction (texte) et/ou réalisation, même partielle, pourrait être soumis à redevance. Dans tous les cas de figures, vous devez également obtenir l'accord du(des) détenteur initial des droits. Celui de MC Hobby s'arrêtant au travail de traduction proprement dit.

Traduit avec l'autorisation d'AdaFruit Industries - Translated with the permission from Adafruit Industries - www.adafruit.com