Jump to content
  • 0

macOS: No way to use Waveforms when another FTDI device is connected


davorin

Question

Recently acquired two of those Digital Discoveries to use on macOS 10.12.6...

It works nicely, but only if you don't have any other FTDI device connected as well on the Mac...

Either it doesn't detect the device anymore, says that the discovery is busy, or crashes for example my self-built Mac or tells me "DptiEnableEx failed ERC: 0x3, Device opening after programming failed"

Haven't tested with two discoveries at once as the other one is in the office...

 

This is really a show stopper as we have many devices for hardware debugging where a USB serial adapter must be used.

 

 

Link to comment
Share on other sites

14 answers to this question

Recommended Posts

This happens for example with a HiFive-1 Arduino board...see attached screenshot which Vendor/Device ID it is using...

As soon I unplug the HiFive-1 board the device serial number is listed in the dialog in Waveforms 3.7.5....I can select then the device, and after that replug the HiFive-1 board.

 

 

Bildschirmfoto 2018-02-27 um 19.48.14.png

Link to comment
Share on other sites

@attila

Sorry I got busy with other projects and somehow forgot about this. I was able to replicate this behavior on my MAC by attaching the Digital Discovery and then a board with a blank FT2232H. If I attach the the board with the blank FT2232H first and then attach the Digital Discovery it works fine. I spent some time stepping through the debugger and during the enumeration process it gets to the point where it wants to open a handle to the device by serial number and that call fails with a device not found error code. I'm going to have to dig into this more tomorrow, but I suspect that it's due to a bug in the FTDI driver.

Link to comment
Share on other sites

@davorin

@attila

I managed to track this down. It's a bug in version 1.4.4 of the FTDI driver (D2XX library). If I attach a blank FT2232H device (equivalent of what's on the HiFive-1 board) and that device shows up in the device list before the Digital Discovery then the FT_OpenEx function of the D2XX library fails with a device not found error returned when we attempt to open the Digital Discovery. If I take the blank FT2232H device and use FT_Prog to set the serial number field to "1" (e.g. EEPROM no longer blank and serial number string no longer randomly generated by the device) then FT_OpenEx will successfully open a handle to the Digital Discovery, regardless of the order of the device's in the device list.

If I erase the FT2232H and put it back in the blank state I can get FT_OpenEx to fail again. After doing so, I removed version 1.4.4 of the FTDI driver and installed version 1.2.2 (the previous known working version). With version 1.2.2 this issue doesn't exist. Therefore this is a new bug that was introduced by FTDI when they released driver version 1.4.4. Unfortunately, there is no way for me to work around the bug. All I can do is reach out to FTDI and ask them to fix it. In the meantime my recommendation is that customers who experience this problem rollback to driver 1.2.2.

Thanks,
Michael

Link to comment
Share on other sites

Hmm..the only FTDI driver I see installed is the AppleUSBFTDI.kext version 5.0.0, no other FTDI driver is loaded besides the Digilent one...

Do you mean the 1.4.4 driver downloadable from the FTDI website? Never installed that one....and my Macbook Pro crashed just again using Waveforms under OSX and Arrow USB Blaster under VMWare 10.

 

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...