FTDI Community

General Category => Discussion - Software => Topic started by: rus-k on March 16, 2020, 10:40:36 AM

Title: C232HM under virtualbox
Post by: rus-k on March 16, 2020, 10:40:36 AM
I have C232HM adapter and connect it to my device in Ubuntu, which works inside virtualbox. I have problem with SPI_InitChannel. Basically I want to setup SPI latency but any value except 250-255 are very unstable. I've done the test: set all latencies from 255 to 1. In the beginning all is OK, but at latency ~245 I receive error 18, and in the end (latencies <10) I receive error 4. I have compiled libMPSSE, I have compiled ftd2xx driver and usb library. It seems that function Mid_SyncMPSSE fails because device doesn not answer in Mid_EmptyDeviceInputBuff.

I cannot say thet adapter does not work at all. I find it, I open channel to it. I am able to read and write. But I am not able to set speed.

If I run my test under normal Ubuntu (not inside virtualbox) then I receive no error at all. SPI_InitChannel set any latency I want. But under virtualbox it works unstable and I wander what else may work unstable.
Title: Re: C232HM under virtualbox
Post by: FTDI Community on March 17, 2020, 04:35:13 PM
Hello,

We cannot support any virtual type system. There can be all sorts of problems that are out of our control.

You can find our supported drivers here:

http://www.ftdichip.com/FTDrivers.htm (http://www.ftdichip.com/FTDrivers.htm)

If your target OS is Windows or Linux, please use it directly on that OS without any virtual machine.

Error 4 is FT_IO_ERROR.
Error 18 is FT_OTHER_ERROR.

Best Regards,
FTDI Community