USB low-full-high speed peripherals Forum Discussions
Good morning all,
Am trying to transfer a data from cypress to fpga and transfer data in from fpga to cypress board. For this am reffering AN61345 application note of from cypress. We downloaded the sample source code mentioned in this application note.
We interconnected cypress board with FPGA board(spartan 3AN), then am dumping slave.hex file to cypress board using usb control center. Then we dumping fx2lp_slavefifo2b_loopback_fpga_top.bit by using xilinx platform cable. After both device get successfull programmed, we were using usb conntrol center, we following same procedure as given in AN61345 app note.
First we selecting bulk out endpoint (0x02), then am selecting transfer out button or transfer file out button (for 512_count.hex) to transfer data to FPGA board. Then am selecting bulk in endpoint(0X86) for getting data from fpga to cypress board.
But am getting error message as bulk in transfer failed with error code:997.
Please tell me how to solve this problem?
Regards
Vimala
Show LessI have been using CyAPI.lib (from Suite USB 3.4.7) successfully as part of a C++ program in Visual Studio 2010 and 2013, however I have recently upgraded to VS2015 and it is now producing linker errors regarding a _sprintf() function call within the lib file.
Has anyone found a solution or workaround for this or must I return to VS2013?
Many thanks,
Chris
Show LessI am following the docs on how to compile and get the examples to compile. I am not having any luck.
I am using mac book pro OS X El Capitan 10.11.1
g++ -o cyisowrite_test cyisowrite_test.c -l cyusb -l usb-1.0
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
In file included from cyisowrite_test.c:7:
./../include/cyusb.h:18:10: fatal error: 'libusb-1.0/libusb.h' file not found
#include <libusb-1.0/libusb.h>
^
1 error generated.
make: *** [all] Error 1
Show LessHello together
I developed a board with CY68013 hardware. I tried a small usb example (CyAPI, CyUSB-Driver) with c++ and it works very fine but now I would like to used Borland Delphi for a Win32 application.
Does anybody of you know a programming example using the CyUsb-Driver also in Delphi?
Thank you for your help an best regards
Gerhard
Show LessHi,
I notice the code which generated in GPIF Designer.
// Configure GPIF FlowStates registers for Wave 0 of WaveData
FLOWSTATE = FlowStates[ 0 ];
FLOWLOGIC = FlowStates[ 1 ];
FLOWEQ0CTL = FlowStates[ 2 ];
FLOWEQ1CTL = FlowStates[ 3 ];
FLOWHOLDOFF = FlowStates[ 4 ];
FLOWSTB = FlowStates[ 5 ];
FLOWSTBEDGE = FlowStates[ 6 ];
FLOWSTBHPERIOD = FlowStates[ 7 ];
I've no idea about this part.
Can you tell me what is the flow state? Are there any sections or chapter can explain it?
Show LessHello,
I get a problem with the CY7C68001 chip recently.It Could communicate with PC successfully before.But now,it doesn't work normally.PC Can't identify the device.The external controller is TI F2812 MCU.So I want to know whether the CY7C68001 chip is damaged .How to identify it from the pins or registers? Could anyone who has the similar experience give me advice.
thanks.
Show LessHi,
We are designing a system with the cypress USB chip in slave FIFO mode talking to a FPGA. the firmware is based on the AN61345 application note.
Its configured in in slave FIFO mode with EP2,4,6,8 using double buffering. In 8% of the cases, when the user application tries to send data packets, the cypress issues a NYET response. then the PING-NAK times out. Then the PC stops sending any more requests to the chip over the wire. We observed it with a USB protocol analyzer. When the cypress firmware enters this state it does not recover till we unplug it and plug it back in. Then communication resumes. We are completely lost on what would cause this. EP2 is OUT, EP4 is IN, EP6 is OUT, EP8 is IN. Its a self powered device but in firmware its configured as a bus powered device. I don't know what the impact of this is. Also, I had to disable the system going into "Sleep" mode to see if it worked. But it did not when the PC was powered on first and then the instrument was turned on.
We are completely confused what could be causing this error, and It needs to be fixed soon. Please help.
Thanks
Hi ,
I am having trouble with my system going into suspend and never coming out of it. I had to comment out the block in the main loop that handles TD_SUSPEND and TD_RESUME. I also have Rwuen set to False. In the current state sometimes during startup, the cypress firmware enters suspend mode and never comes out of it. Sometimes it enumerates as Unknown device.
I am really confused about how to safely handle a suspend and resume in the cypress firmware. I followed the AN61345 app note. My design does not have VBUS monitoring. The WAKEUP pin is tied to 3.3V. The FPGA is the master and the Cypress is the slave being run in slave FIFO mode using indexed flags. I am using all 4 endpoints 2,4,6,8 double buffered. AutoIn and Auto out enabled.
I really need someone from Cypress to take a look at my code and tell me what I am missing. I have read the Tech manuals several times and could not figure out what needs to be done.
Please help
Thanks
Victor Selvaraj
Show LessHello
I have a custom design with CY7C68013a controller. Most of the time the device including software is working well but sometimes it seems that the there is a startup problem.
The problem occurs at random. Sometimes, after power up (without connecting to a PC), it seems that the controller does not start
Sometimes the controller starts and after I connect the USB cable the controller it hangs
I am also able to set this hanging state if I put my finger to the D+ line of the USB.
I already checked:
Reset circuit
Oscillator (24Mhz) and 22 pf capacitors
power supply should be O.K.
AVCC is separated from VCC by inductor MLB-160808-0300PN
Does anybody have an idea what the problem could be please?
Friendly regards and thak you for your hints in advance
Geri