USB low-full-high speed peripherals Forum Discussions
text.format{('custom.tabs.no.results')}
Hi Community,
we are using a FX2 controller with a CMOS attached in bulk mode on Windows, mac and linux. In one application we have to use some kind of USB hub between our device and the PC. Due to some noise or other reasons this hub is creating occasionally USB stalls on the bulk endpoint. We can clear the stall condition via the `Reset()` function of the CyAPI.h on Windows. But this seems to re-enumerate the USB device on this port and the application needs to reconnect, which is very inconvenient and takes time. Is there a cleaner way to clear the stall/halt on a bulk endpoint without re-enumerating the devices?
Would appreciate any help on this. Couldn't find much Cypress documentation on USB stall matters.
Kind regards,
Eduard
Show LessWe manufacture our own hardware in house and we are using the cy64713 chip FX2LP. We have sofware developed for windows and mac. The softwae is written in java. We have created a JNI written in cpp that works with a java interface. I am having issues with the jni specifically in the writeUSB function. Currently we are using the IOKit, CoreFoundation, CoreServices, and the JNI.h thats located at
/Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/include
and
/Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/include/darwin
We are using Netbeans. I would love any advice on how to re write this code using libusb that cypress has shown in the SDK. I downloaded the FX3_SDK_MacOS_v1.3.3 and have been reading through the doc's.
We do not sell any of this software so i can show you source code etc...
This is the error dumb im getting...
JNI code here
https://bitbucket.org/snippets/partialdata/6L69r/ucs30interfacejni
Their must be an easier way to communicate with our hardware with a better JNI using libusb. I would utlimatly like to use a hid device not sure how to do that either so its cross platform.
Show LessIs there a Windows CE 6.0 driver for the CY7C65211 USB-Serial device? The data sheet mentions there is and the dev kit also but the dev kit software package does not contain a driver.
Show LessGood morning sir,
Please let me know the why they they interfaced DS2411P with cy7c68013a cypress usb controller in the below attached schematic.
Thank you,
VM
Show Less#ifdef ALLOCATE_EXTERN
#define EXTERN
#define _AT_ _at_
#else
#define EXTERN extern
#define _AT_ ;/ ## /
#endif
EXTERN xdata volatile BYTE GPIF_WAVE_DATA _AT_ 0xE400;
EXTERN xdata volatile BYTE RES_WAVEDATA_END _AT_ 0xE480;
// General Configuration
EXTERN xdata volatile BYTE CPUCS _AT_ 0xE600; // Control & Status
EXTERN xdata volatile BYTE IFCONFIG _AT_ 0xE601; // Interface Configuration
EXTERN xdata volatile BYTE PINFLAGSAB _AT_ 0xE602; // FIFO FLAGA and FLAGB Assignments
EXTERN xdata volatile BYTE PINFLAGSCD _AT_ 0xE603; // FIFO FLAGC and FLAGD Assignments
EXTERN xdata volatile BYTE FIFORESET _AT_ 0xE604; // Restore FIFOS to default state
I do not get it about "#define _AT_ ;/ ## /".If the file is first used or included,the ALLOCATE_EXTERN is not defined,the program will jump to "#define EXTERN extern".However ,"#define _AT_ ;/ ## /" will not make _AT_ function as the _at_ in keil.Somebody could explain this for me? Thank you so much.
Show LessGood 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 Less