276°
Posted 20 hours ago

Adafruit FT232H Breakout - General Purpose USB to GPIO+SPI+I2C

£9.9£99Clearance
ZTS2023's avatar
Shared by
ZTS2023
Joined in 2023
82
63

About this deal

Board: Configuration files for common development boards like “atmel_sam4s_xplained_pro.cfg” - “olimex_stm32_h107.cfg” - “stm32f4discovery.cfg” .. etc. You can see that these files reuse configuration files from interface and target. All application notes are in PDF format and require a PDF reader such as Adobe Acrobat or similar before they can be viewed. To communicate with our target chip, we need a program on the hostand hardware as a bridge between the host and the chip. In this tutorial, we will use OpenOCD as the program on the host to send commands and communicate using SWD. We'll use an FT2232H as the bridge to translate signals from the USB port to the SWD interface. To flash an image to internal flash, we need to define internal flash banks. It could be one bank like our present target, “efm32.cfg” did for us. To make sure, type the following:

The OpenOCD directory file has a folder called “scripts”. In this folder, you will see "interface", "board", and "target" folders. And these are pretty much the only folders you need. D5 - DSR or data set ready pin. Like DTR, this is another optional pin for flow control in RS-232 serial connections. Operation configuration mode and USB Description strings configurable in external EEPROM over the USB interface.

Contributing to PyPI

All of the suggested tutorial works as one would expect, see below. This is actually where I started. However, when trying to use the FT232H with other programs that specify the drivers from FTDI, i.e., FTD2XX drivers, those programs can not find the FT232H device Information. A standard call for .getDeviceInfo() fails. I believe it is because this (������) is what is read instead of the actual device information. Therefore an error is thrown: A similar error message will pop up when you run OpenOCD in Linux without permission. Make sure you run OpenOCD with sudo, “sudo opeocd”. References:

D1 - RX or receive pin. This pin is the serial data input for the FT232H chip and should be connected to the TX or transmist pin of a serial device. libftdi is a nice open source alternative to FTDI's binary drivers. You can find more details here about interacting with the FT232H at a low level using libftdi.

Learn how to make flashing your ARM-based MCU easy by using OpenOCD debugger with an FT2232H adapter. All data sheets are in PDF format and require a PDF reader such as Adobe Acrobat or similar before they can be viewed.

BTW: When I am asked to specify the USB device as in the printout above, what should I try? I have already tried the serial number FTLD454D, the productID 0x6014, and the vendorID 0x403. Remember: We have a configuration file (I named it SWD_FT.cfg) and the target is one of the EFM32 chips. Open On-Chip Debugger (OpenOCD) is a free, open-source project that aims to provide debugging, in-system programming, and boundary scan using a debug adapter. The adapter is a hardware module that provides the right signals for the target to understand. In our tutorial, we will use an adapter with FT2232H chip, so we will use an FTDI interface driver: openocd -f config1.cfg -f config2.cfg -f config3.cfg Understanding the Basics of Adapter Configuration

Using PyPI

FT232R, FT245R, FT232H, FT2232H, FT4232H, FT2232D, FT200XD, FT201X, FT220X, FT221X, FT230X, FT234XD, FT231X, FT240X, FT120, FT121, FT122, FT313H, FT4222H & FT260 If you have any problems, take a look at the troubleshooting section— it could be bad wiring or a driver problem for Windows users. What can the FT232H chip do? This chip from FTDIis similar to their USB to serial converter chips but addsa 'multi-protocol synchronous serial engine' which allows it to speak many common protocols like SPI, I2C, serial UART, JTAG, and more! There's even a handful of digital GPIO pins that you can read and write to do things like flash LEDs, read switches or buttons, andmore. The FT232H breakout is like adding a little swiss army knife forserial protocols to your computer! You must also tell OpenOCD more information about your adapter (interface). For example, you need to specify the VID/PID, serial number, or the number of the channel you will use for FT2232H, since it has two channels.

You should also tell OpenOCD the initial values of the FTDI GPIO data and direction registers through the ftdi_layout_init command. You should first put the initial values of the channel’s 16 pins, and then the directions. Knowing that "1" is for selecting direction as output and "0" isfor input, and each channel in ft2232H has 16 pins. Then remove your default FTDI driver. You can use a tool from FTDI called CDM Uninstaller x.x - Windows Device Driver Uninstaller: Just enter your VID and PID. This command accepts bin (binary), ihex (Intel hex), elf (ELF file), s19 (Motorola s19), mem, or builder formats.D0 - TX or transmit pin. This pin is the serial data output by the FT232H chip and should be connected to the RX or receive pin of a serial device. First connect your FT232H board to the machine and follow the Zadig tool steps here to enable the libusb-based driver for the FT232H board. The adapter can support more than one transport protocol, so OpenOCD allows you to select the transport protocol: Once the installation is done you might need to reboot your machine if the installation program tells you to do so. To use the FT_PROG programming tool from FTDI you might need to erase the EEPROM of the FT232H to put it into a state where FT_PROG can detect the device. To do this you can use a small eeprom command line tool from libftdi by following the steps below. Note that these steps are for Windows users (since FT PROG is only usable on Windows).

Asda Great Deal

Free UK shipping. 15 day free returns.
Community Updates
*So you can easily identify outgoing links on our site, we've marked them with an "*" symbol. Links on our site are monetised, but this never affects which deals get posted. Find more info in our FAQs and About Us page.
New Comment