FTDI Community

Please login or register.

Login with username, password and session length.
Advanced Search  

News:

Welcome to the FTDI Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ FTDI Support


New Bridgetek Community is now open

Please note that we have created the Bridgetek Community to discuss all Bridgetek products e.g. EVE, MCU.

Please follow this link and create a new user account to get started.

Bridgetek Community

Author Topic: Ft_SetFlowControl Failed. FT245RL chip can't read.  (Read 10251 times)

zyx

  • Newbie
  • *
  • Posts: 3
    • View Profile
Ft_SetFlowControl Failed. FT245RL chip can't read.
« on: September 20, 2021, 08:08:44 PM »

Hi,

We are currently having some issues with the FT245RL chip which communicates with an FPGA. We have our own software to use that chip to send data to our computer, but our computer can't get any data. We saw Ft_SetFlowControl failed. Our computer is currently running macOS High Sierra 10.13.5, and the same computer with the same software worked well in the past when it was running Sierra 10.12.3. We've tried two versions of D2XX drivers (we're using direct drivers), 1.4.4 (old) and 1.4.24 (latest), getting the same problem.

We also tested the "simple" code under /Samples/Simple in the driver package (which just writes some data to the chip and then reads the data back), and even that code ran into errors. The number of bytes in D2XX receive-queue was always a zero or a bunch of zeros and the readings were just junk. We tried this piece of simple code on several different computers running macOS Sierra 10.12.6, High Sierra 10.13.5, and Catalina 10.15.7. All of them showed similar results. We also tried another board that has the same design and we still got the same result.

Does anyone have any idea on how to fix this? Thanks in advance!
Logged

FTDI Community

  • Administrator
  • Hero Member
  • *****
  • Posts: 891
    • View Profile
Re: Ft_SetFlowControl Failed. FT245RL chip can't read.
« Reply #1 on: September 21, 2021, 03:36:32 PM »

Hello,

Have you unloaded the VCP driver? You need to in order to use the D2xx drivers.
See the Mac OS X Installation Guide for more information.

Best Regards
FTDI Community
« Last Edit: September 21, 2021, 04:26:58 PM by FTDI Community »
Logged

zyx

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Ft_SetFlowControl Failed. FT245RL chip can't read.
« Reply #2 on: September 21, 2021, 04:46:26 PM »

We have done that. In fact, on some of the computers we didn't install the VCP driver at all.
Logged

FTDI Community

  • Administrator
  • Hero Member
  • *****
  • Posts: 891
    • View Profile
Re: Ft_SetFlowControl Failed. FT245RL chip can't read.
« Reply #3 on: September 22, 2021, 10:26:33 AM »

Hi,
As per the installation guide, the VCP driver is part of the kernel in versions 10.9 and later so it is there by default   

Best Regards
FTDI Community
Logged

zyx

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Ft_SetFlowControl Failed. FT245RL chip can't read.
« Reply #4 on: September 22, 2021, 03:59:00 PM »

If you are talking about the AppleUSBFTDI driver, yes we've done that. Not doing that would give us a different error which was not as complicated as what we're facing now. We used either the D2XX helper or "kextunload" to do that and we also used "kextstat | grep FTDI" to double-check.
Logged

FTDI Community

  • Administrator
  • Hero Member
  • *****
  • Posts: 891
    • View Profile
Re: Ft_SetFlowControl Failed. FT245RL chip can't read.
« Reply #5 on: September 23, 2021, 03:48:01 PM »

The simple example requires a hardware loopback so would need a UART device. FT245R is a FIFO device so a loopback is not possible. Here's a description of the example:

Simple example to open a maximum of 4 devices - write some data then read it back.
Shows one method of using list devices also.
Assumes the devices have a loopback connector on them and they also have a serial number.

FT_SetFlowControl is also used for UART devices for UART flow control.

If you are trying to use the FT245R device see TN_167 FTDI FIFO Basics which should help you.
Logged