BRT Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

Welcome to the Bridgetek Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ Bridgetek Support

Please refer to our website for detailed information on all our products - Bridgetek - Bridging Technology

Author Topic: FT900-D2XX number of interfaces  (Read 147 times)

Mio

  • Newbie
  • *
  • Posts: 2
    • View Profile
FT900-D2XX number of interfaces
« on: February 11, 2020, 09:14:57 AM »

I found bug in FT900 - D2XX library. Problem is when I change number of interfaces. Problem is reproducible.

When I change number of interfaces in ft900_d2xx_default_config.inc it results in wrong number of interfaces in Win7 and finish as Win blue dead. Blue dead occur when I open device in device manager or use function FT_CreateDeviceInfoList in c++/qt application. Sometimes it occurs when I unconnected USB cable.

Detailed description:

Kit: MM900EV1B
FW: D2XX Example 1 without significant changes (added more info in debug output)
Driver: FTDI 2.12.28, (verified on 2.12.26)
Win7 64bit SP1

1.
I set (in D2XX Example 1) NumOfD2XXInterfaces to 1 and correct XORchecksum from function xorChecksum(const char str[], uint16_t length). Debug output show number of interfaces 1, but Win in device manager shows two "USB Serial Converter A" and "USB Serial Converter B". See in the image. "USB Serial Converter A" can be open normally and show all driver informations. But opening USB device "USB Serial Converter B" results in win blue dead.

2.
I set NumOfD2XXInterfaces to 2 and correct XORchecksum from function xorChecksum(const char str[], uint16_t length). Debug output show number of interfaces 2, but Win in device manager shows three "USB Serial Converter A", "USB Serial Converter B" and "USB Serial Converter C". "USB Serial Converter A" and "USB Serial Converter B" can be open normally and show all driver informations. But opening USB device "USB Serial Converter C" results in win blue dead.

3.
I set NumOfD2XXInterfaces to 3 and correct XORchecksum from function xorChecksum(const char str[], uint16_t length). Everything is fine.

4.
I set NumOfD2XXInterfaces to 0 and correct XORchecksum from function xorChecksum(const char str[], uint16_t length). D2XX_Init() gets error -5 as expected.


Note:
1. If the XORchecksum is incorrect, driver ignore NumOfD2XXInterfaces and shows always all 3 devices in win device manager
Logged

BRT Community

  • Administrator
  • Full Member
  • *****
  • Posts: 137
    • View Profile
Re: FT900-D2XX number of interfaces
« Reply #1 on: February 11, 2020, 04:39:46 PM »

Hello,

You have already contacted our support team with this issue.

Feel free to post any resolution here to help other community users.

Best Regards,
BRT Community
Logged

Mio

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: FT900-D2XX number of interfaces
« Reply #2 on: February 12, 2020, 10:34:53 AM »

Problem was, that I use only Eclipse to flash MCU (... Run Configurations > FT9XX Application Run > FT9XX RUN). Configuration file ft900_d2xx_default_config.inc was changed manually, i.e. I modify parameters NumOfD2XXInterfaces and XORchecksum.

When I used "FT9xx Programming Utility" to generate ft900_d2xx_default_config.inc and update MCU, everithing is fine. I cannot attach full FTDI support because of total and individual file size limit.
Logged