USB low-full-high speed peripherals Forum Discussions
i'm using a cy7c68013 to communicate with a fpga in the gpif model,my problem is that the fifo write wave can not be trigger. my progect has been attached .any one can help me ?thank you very much.
Show LessHi,
I'm trying to make a bulk transfer using the IOCTL Interface of the cyusb.sys driver with Delphi, but the DeviceIOControl Function always returns 87 (ERROR_INVALID_PARAMETER).
I'm using the following Code :
procedure NonEP0TransferOut(handle:THandle;endPointAddress:Byte; pBuffer:PBuffer; bufferSize:Word);
const cBufSize = 512;
var
singleTransfer:SINGLE_TRANSFER;
buffer : array[0..cBufSize+SizeOf(SINGLE_TRANSFER)-1] of Byte;
i : Integer;
dwBytes: DWORD;
begin
ZeroMemory(@singleTransfer, SizeOf(SINGLE_TRANSFER));
SingleTransfer.SetupPacket.ulTimeOut := 1000;
singleTransfer.ucEndpointAddress := endPointAddress;
singleTransfer.IsoPacketLength := 0;
singleTransfer.BufferOffset := SizeOf(SINGLE_TRANSFER);
singleTransfer.BufferLength := bufferSize;
dwBytes := 0;
Move(SingleTransfer,Buffer,SizeOf(SINGLE_TRANSFER));
for i := 0 to bufferSize-1 do begin
buffer[i+SizeOf(TSingleTransfernEP0)] := pBuffer^; // buffer direkt hinter den SINGLE_TRANFER record schreiben
end;
if not DeviceIoControl( handle,IOCTL_ADAPT_SEND_NON_EP0_TRANSFER,
@buffer, bufferSize+SizeOf(SINGLE_TRANSFER),
@buffer, bufferSize+SizeOf(SINGLE_TRANSFER),
dwBytes,nil) then
raise ECyUSBException.Create('Error #17 during nonEP0 control Transfer : ' + IntToStr(getLastError()));
end;
The SINGLE_TRANSFER structure seems to be correct. It works fine for EP0 Transfers. I also tried IOCTL_ADAPT_SEND_NON_EP0_DIRECT, which gives the same error. Can someone tell me what I'm doing wrong ?
regards
Simon Koops
Show Lessi am performing the data transfer of bulkendpoints continuously with out any delay. I am sending and receiving 8 bytes of data through the bulkend points.
after every 75 to 80 8 byte data transfer loop , I get the delay of 15 miliseconds. which is actually causing my data trasfer speed slow. other wise all tests take .3 miliseconds or 0 seconds.
can u tell me where is this 15 miliseconds coming from.
Thanks in advance
Show LessI am connecting a Cyclone III FPGA directly with FX2LP, but I am not sure which IO standard to choose on the FPGA side? The options in Altera Quartus II are: LVTTL-3.3V, LVCMOS-3.3V, LVTTL-3.0V, LVCMOS-3.0V, 2.5V, etc.. The IO banks of the FPGA are powered at 3.3V using the same power source as the FX2LP.
I have a FPGA program which seems to run correctly using the default 2.5V IO Standard. However, if I change the IO standard to LVCMOS-3.3V or LVTTL-3.3V (which should be the correct choice), the program does not seem to work.
Thanks for any suggestion in advance.
Show LessHi,
Im trying to change the drivers for our USB Devices (CY7C68013A) from EzUSB.sys to CyUSB.sys. I'm using Delphi 5, so I use the IOCTL Interface. Is there some more information about the IOCTL Interface than in CyUSB.pdf ?
Is it still possbile to use the IOCTL Ezusb Commands ?
How can I get a device Descriptor ?
I tried IOCTL_GET_DEVICE_DESCRIPTOR, but i always receive Error 87 (The parameter is incorrect.) (with GetLastError() )
I also tried IOCTL_Ezusb_GET_DEVICE_DESCRIPTOR, with the same result.
Several simple IOCTL_ADAPT commands do work, so the handle seems to be correct and the driver installed properly.
Can someone give me a hint please ?
regards
Show LessI am using cyc68013 development kit for my application of data transfer.
I am sending and receiving 8 bytes of buffer means length = 8.
I am using bulk end points.
the coding I am using in vc++ is here
UCHAR *outContext= USBDevice->BulkOutEndPt->BeginDataXfer((unsigned char *)buffer, length,&outOvLap);
UCHAR *inContext = USBDevice->BulkInEndPt->BeginDataXfer(inBuf, length,&inOvLap);
USBDevice->BulkInEndPt->WaitForXfer(&inOvLap,200);
with this coding I get the required speed say, my complete test run in 62 seconds, I have not used waitforxfer in sending data.
but when I used this coding in c#
outEndpoint.XferData(ref outData, ref xferLen);
inEndpoint.XferData(ref inData, ref xferLen);
my test run in 124 seconds. why
what is the difference between them.
and it is very hard to understand begindataxfer in c#.
please also I need virtual com port driver and hex for 68013 128axc.
Thanks in Advance.
Hi
I'm tried to perform a simple bulk transfer with CYconsole, device CY7C68013A.
I did this only with the Cyconsole without any firmware download. It Is correct?
The message from the console is "transfer failed".
Any suggest?
Another question..
When i download bulkloop.hex, after the download, Cyconcole do not detect the "new" device after renumerating; have i to change some drivers or cyusb.sys is correct?
Thanks for the answer.
Show LessHello,
I'm working with a Windows 7 64bit
I found in the website CySuiteUSB 3.4.6 and the Win7x64 CyUSB driver
I'm not able to see any device on Cyconsole
Do you have a 64 bit version of this program?
Regards
Show Less