USB low-full-high speed peripherals Forum Discussions
I'm using Cypress FX2LP chip(CY7C68013A) on my board to communicate trough USB with Qt using CyAPI library. I Should read 1 KByte data every 100 ms(infinitive) and it should be possible to user to send special commands through buttons during data receiving. So i create another thread other than MainWindow and run it every 100 ms using a timer. My code is something like: Project.pro:
LIBS += -L$$PWD/CyAPI_lib_cpp -lCyAPI
my_thread.cpp:
CCyUSBDevice USBDevice; unsigned char xferBuffer_in[1024]; void my_thread::Receive_new_set_of_Data(){//Runs very 100 ms USBDevice.Open(0); bool is_ok=false; if(USBDevice.IsOpen()){ LONG length=1024; USBDevice.BulkInEndPt->TimeOut=30;// wait 30 ms at max is_ok=USBDevice.BulkInEndPt->XferData((PUCHAR)xferBuffer_in, length , (CCyIsoPktInfo*)0,false); } }
My problem is that when user removes USB between data receiving, it crashes and debugger stop at set time out line. How can i detect USB unplug? Is there any event for USB unplug?
Show LessHi there, i am working though the design example AN70938 for the bulk loop transfer. I have hooked up my FPGA board to the FX3 ez-usb3 device. I am ready to go, however i would like to be able to view the state machine of the GPIF2 for bulk loop transfers. The source file does not appear in AN70938 for the state machine. They should have the extension of cyfx. Does any one know what these have been left out of the examples and where they can be found?
Show Lesshi
i want use i2c of fx2lp. but i can not found i2c_hw.c could you please give to me ?
also i have questions
1. if i use EZUSB_READ or EZUSB_WRITE of EZUSB.LIB, am i need i2c_hw.c file?
2. can i use vendor command insted i2c function of i2c_hw.c? is this same work?
Show LessEvent though the newest fx3 sdk.
I can not found any api for cpp used to download firmware to fx2 device, but for dot net, I can use fx2Device class to download.
if I use fx3Device class to download firmware for cpp, the return code is 3, invalid signature.
How to download hex to ram for FX2 using cpp api from cypress fx3 sdk?
Show LessI would like to create a microcontroller based board which can expose itself on an ATA interface as an ATAPI device.
Are there any Cypress chips that would support or implement a microcontroller backed ATAPI device mode with an ATA bus connection to another computer like a PC?
Example:
An SoC Arm or 8051 microprocessor that behaves as if it were a tape drive, cdrom drive or other usable device when plugged into a PATA ribbon cable to a PC.
Show LessI made a board based with ug-293 and hsc-adc-evalcz from analog device.
When I connect to the board, the usb port does not recognize the usb board.
So I have several questions about this.
1. When I buy a new chip, do I have code this? Or it is coded?
1-1. If It is coded, how do I have to connect with PC? I connect the USB2.0 with D+, D- but there's none of the recognition of PC and new board.
1-2. If It is not coded, which pin do I have to connect to code?
Show LessHello,
I have inherited a sensor board/product that utilises a CY7C68013A to stream data from an FPGA over USB to a host. I have access to the design and firmware for it and have discovered already that it is configured as a Custom Vendor Class.
My current application requires that I use an M7 core MCU (ATSAME70) as a USB Host (Not a PC) which sends config commands and receives and processes the data from the sensor board via the CY7C68013A.
I have a .dll that runs on windows for it but am not sure how to progress with communicating with it from an embedded MCU.
My question;
-Does anyone have some sample code or applications notes on how to communicate with the CY7C68013A via MCU that is setup as a host?
I understand it may be a broad question, but I need to start somewhere and to date can only find details for Windows and MAC USB drivers.
Thanks in advance for any positive feedback and general guidance
Show LessHello.
I am working on modifying the code in Cypress example AN61345 to transfer data from the Altera FPGA to the Host.
I can not send it, please post an example.
I would like you to upload the 8051 firmware source and the Altera FPGA source.
Thank you.
Show Less
Is an ISO image of the CD-ROM which came with CY4610 or CY4611 available for download? I found the CY4611B ISO but that's not what I'm looking for.
CY4610 is (was) an EZ-USB FX Mass Storage reference design. CY4611 was similar for the EZ-USB FX2. Apparently the CY4611 CD includes CY4610-related files.
Also, was there a mass storage reference design for the original EZ-USB (non-FX)?
Show LessIf the FX2 device on FX2 board is powerd by external power, instead of the bus power. Assume FX2 board is power off and connected with the host PC. What is the state of D+ and D- at this time, will it be at high level and harm the FX2 device?
The same question also apply to the FX3 device. I hope to understand.
Show Less