616
Discussion - Drivers / Re: FT_Write returning FT_OK but BytesWritten is 0
« on: August 26, 2019, 04:42:38 PM »
Hello Liam,
Which driver version and IC are you using?
Has BytesWritten been initialised correctly first? This would be good practise.
You could also try FT_Purge.
What are your timeouts set to in FT_SetTimeouts? Could it be that it's timing out before there is enough time to send the data?
Remember USB is non-deterministic. There can be lots happening on a USB bus or with the OS which can cause delays.
See the D2XX Programmer's Guide for more information.
Also AN232B-04 Data Throughput, Latency & Handshaking provides some useful information and applies to all FTDI devices.
Best Regards,
FTDI Community
Which driver version and IC are you using?
Has BytesWritten been initialised correctly first? This would be good practise.
You could also try FT_Purge.
What are your timeouts set to in FT_SetTimeouts? Could it be that it's timing out before there is enough time to send the data?
Remember USB is non-deterministic. There can be lots happening on a USB bus or with the OS which can cause delays.
See the D2XX Programmer's Guide for more information.
Also AN232B-04 Data Throughput, Latency & Handshaking provides some useful information and applies to all FTDI devices.
Best Regards,
FTDI Community