USB Forum Discussions
Browse the Community
USB low-full-high speed peripherals
Discussion forum regarding USB low-full-high speed peripherals topics.
USB hosts hubs transceivers
Discussion forum regarding USB hosts hubs and transceivers topics.
USB superspeed peripherals
Discussion forum regarding USB superspeed peripherals topics.
Featured Discussions
I am using the GPIF as a 32-bit Slave FIFO with 2-bit addressing. I would like to know if there is a way to determine if the GPIF interface goes "dry" or empty while waiting for data from the GPIF master.
Show LessHi
In USBTV, i have confused in i2c_hw.c.
I can see that sub_type variable is in DBG of I2CWrite function but (sub_type!=0) syntex is not existed in DBG.
If i not use DBG, what have default value to sub_type variable?
Also , how should i understand this syntex?
Could you please let me know?
Show LessHi,
I am trying to get SPI boot to work on the DVK board. I already have setup the PMODE pins to 1F0, to boot from SPI and on fail boot via USB. The Jumpers 101,102,103,104 are all set to [2<->3].
When I try to upload a firmware .img file through the Cypress Control Center, I can see on the lines SCK and SSN that the upload is in progress, but the SPIMISO and SPIMOSI lines are all the time low. The same issue I can see after I press the reset button on the FX3 DVK board. FX3 is trying to load data from the SPI flash. The SSN and SCK is working fine but the MOSI and MISO also always low.
The resistors R246 and R252 are both not on the board as described in the ...
CYUSB3KIT-001 EZ-USB FX3 Development Kit Guide, Doc. #: 001-70237 Rev. *B
.. document.
I also have the same result when I upload the firmware through j-link debugger. Is there a hardware failure or are the GPIO pins defect?
thanks,
lumpi
Show LessHi,
I've had a working FX2 application that sends back data from a device over a quad-buffered bulk IN endpoint (EP2) for the past year. On the host side I'm using libusb with the usb_bulk_read() command to read the EP:
int usb_bulk_read
(usb_dev_handle *dev, int ep, char *bytes, int size, int timeout);
If data in the device has not yet filled the FIFO, the above request times out (after a period of timeout milliseconds) and this is the way I always assumed it had to work.
Recently however, I've been in touch with another person who explained that upon a bulk read on their device, the device automatically sends NACK tokens until the device is ready; apparently avoiding the necessity of a time out.
Likewise, on http://www.beyondlogic.org/usbnutshell/usb4.shtml#Bulk it says:
IN: When the host is ready to receive bulk data it issues an IN Token. If the function receives the IN token with an error, it ignores the packet. If the token was received correctly, the function can either reply with a DATA packet containing the bulk data to be sent, or a stall packet indicating the endpoint has had a error or a NAK packet indicating to the host that the endpoint is working, but temporary has no data to send.
I bolded the key phrase. So there seems to be 3 conditions, not 2 (data or timeout (stall?)). Perhaps my endpoint is configured to respond to the host with a Stall while perhaps it's possible for me to respond with a NACK and have the host just repeatedly request the packet until data shows up?
Can anyone help me understand this, especially in the context of how I might configure the FX2 Endpoints to respond differently to a bulk read request?
Note that I've read over the TRM (not always getting every detail understood) and do see some brief discussion on the STALL bit which might be the key, but little explanation on how a Stall packet vs. NACK packet would be interpreted by the host when doing a bulk-read command...
Thanks!
Scott
Show LessHello All,
If I load the default configuration file provided by Cypress (when I installed the drivers) from the directory C:\Cypress\USB\CY4605-HX2LP\1.0\Software\Config_file\2_port.iic for CY7C65620 into the CY7C65630 part, will it function correctly?
Since CY7C65620 is 2-port hub and when the same config file is loaded into a 4-port hub part, will only 2 ports be enabled?
If a config file has already been loaded into a device using Primer.exe, how can I load different config file into the same device. When I use Blaster.exe to do a Read From EEPROM, I get a message " Cannot Open Device" and I cannot erase the EEPROM also using the blaster application.
Thank you for the support.
Show LessI am working to create firmware for USB Video class, and I am using the USB VideoClassBulk and the HD example to send uncompressed data. So far, I seem to be succesful in transmitting test patterns (using the DMA as the source), but when I use USB Device Viewer (from Visual Studio) to view the USB descriptors, I see some errors related to the Endpoint compansion descriptor. Here is the suspect code:
/* Video control status interrupt endpoint descriptor */
0x07, /* Descriptor size */
CY_U3P_USB_ENDPNT_DESCR, /* Endpoint descriptor type */
CY_FX_EP_CONTROL_STATUS, /* Endpoint address and description */
CY_U3P_USB_EP_INTR, /* Interrupt end point type */
0x00,0x04, /* Max packet size = 1024 bytes */
0x01, /* Servicing interval */
/* Super speed endpoint companion descriptor */
0x06, /* Descriptor size */
CY_U3P_SS_EP_COMPN_DESCR, /* SS endpoint companion descriptor type */
0x00, /* Max no. of packets in a Burst : 1 */
0x00, /* Mult.: Max number of packets : 1 */
0x00,0x04, /* Bytes per interval : 1024 */
This is what USB Device Viewer shows:
===>Endpoint Descriptor<===
bLength: 0x07
bDescriptorType: 0x05
bEndpointAddress: 0x82 -> Direction: IN - EndpointID: 2
bmAttributes: 0x03 -> Interrupt Transfer Type, Usage Type = Periodic
*!*ERROR: Endpoint Companion Descriptor missing
wMaxPacketSize: 0x0400
bInterval: 0x01
*!*CAUTION: Unknown bDescriptorSubtype
===>Descriptor Hex Dump<===
bLength: 0x06
bDescriptorType: 0x30
06 30 00 00 00 04
Any thoughts for why this is happening? I tried this with the supplied code, and I see the same error.
As I said, I am still getting video, so this is not a fatal error, but I get concerned when I see these things. Any ideas?
Thanks
MM
Show LessHey all -
I'm attempting to write an *.img file to the FX3 (sitting on the FX3 DVK board) from the command-line on a GNU/Linux system, and am receiving a return code of -9. I have a couple of questions:
1) Can bix, hex, ihx, etc., files be written to the FX3 RAM / EEPROM, as you could with the FX2, or do they need to be img files?
2) Are these the only instructions regarding how to write firmware directly to the FX3 RAM?
http://www.cypress.com/?app=forum&id=167&rID=53176
I would love to see a more in-depth instruction list, but that is the only thing I have been able to find so far.
3) Is there a location that I can look up the error codes, e.g., the '-9' that I am seeing now?
Thanks!
Cheers,
Ben
Show Lesshi
i use i2c_hw.c and i comment DBG, but error happened.. like this
//#define DBG
what am i do ? could you please check the code again?
I2C_HW.C(43): warning C236: '_I2CWrite': different length of parameter lists
I2C_HW.C(114): error C202: 'sub_type': undefined identifier
I2C_HW.C(116): error C202: 'sub_type': undefined identifier
I2C_HW.C(158): error C202: 'sub_type': undefined identifier
I2C_HW.C(168): error C202: 'sub_type': undefined identifier
I2C_HW.C(208): error C202: 'i': undefined identifier
I2C_HW.C(210): error C202: 'i': undefined identifier
Show LessHi.
I have some question about using i2c_hw.c form USBTV example.
1.As i know, i2c is need initalize firstly. can i use EZUSB_InitI2C?
2.If i use Device ID is 0x40 and Slave address is 0x63,these are need right shift (>>1) ?
3.Am i just replace from EZUSB_WriteI2C to I2CWrite?
Show Less