FTDI Community

General Category => Discussion - Software => Topic started by: Mikexx on December 12, 2019, 05:27:26 PM

Title: Issue with FT4232 and serial coms
Post by: Mikexx on December 12, 2019, 05:27:26 PM
Using the FTDI supplied libraries I am using a delegate of the function FT_Write where the arguments are checked for being non-null.

If the processor attached to the ports of this FT4232 goes AWOL my application gets stuck in a loop. I assume the TX line must be stuck and high or low and producing a 'Break'. Either way the port is not accepting data.

An exception occurs and the following gets output to the  console:
  "Object reference not set to an instance of an object"

Is there a way of interrogating whether the device with the device associated with 'ftHandle' is accepting data?

Title: Re: Issue with FT4232 and serial coms
Post by: FTDI Community on December 13, 2019, 11:38:32 AM
Hello,

Would it be possible to see the section of code your application is getting stuck at?

You may want to look at the FT_Timeouts function in the API:
https://www.ftdichip.com/Support/Documents/ProgramGuides/D2XX_Programmer's_Guide(FT_000071).pdf (https://www.ftdichip.com/Support/Documents/ProgramGuides/D2XX_Programmer's_Guide(FT_000071).pdf)

Best Regards,
FTDI Community