USB superspeed peripherals Forum Discussions
Hi
I run AN75779 demo in usb device side and ensure there is a UVC device named FX3 in device manager in windows.But I failed to enumerate it using CyUSB API USBDeviceList .
The host code(Form1.cs)detail is as following:
public Form1()
{
InitializeComponent();
usbDevices = new USBDeviceList(CyConst.DEVICES_CYUSB);
usbDevices.DeviceAttached += new EventHandler(usbDevices_DeviceAttached);
usbDevices.DeviceRemoved += new EventHandler(usbDevices_DeviceRemoved);
setDevice();
}
public void setDevice()
{
int nCurSelection = 0;
if (cboDeviceConnected.Items.Count > 0)
{
nCurSelection = cboDeviceConnected.SelectedIndex;
cboDeviceConnected.Items.Clear();
}
int nDeviceList = usbDevices.Count; //here get 0
for (int nCount = 0; nCount < nDeviceList; nCount++)
{
USBDevice fxDevice = usbDevices[nCount];
String strmsg;
strmsg = "(0x" + fxDevice.VendorID.ToString("X4") + " - 0x" + fxDevice.ProductID.ToString("X4") + ") " + fxDevice.FriendlyName;
cboDeviceConnected.Items.Add(strmsg);
}
if (cboDeviceConnected.Items.Count > 0)
cboDeviceConnected.SelectedIndex = nCurSelection;
myDevice = usbDevices[cboDeviceConnected.SelectedIndex] as CyUSBDevice;
//StartBtn.Enabled = (myDevice != null);
if (myDevice != null)
Text = myDevice.FriendlyName;
else
Text = "C# UVC - no device";
}
private void cboDeviceConnected_SelectionChangeCommitted(object sender, EventArgs e)
{
setDevice();
}
As a contrast,I repower the FX3 board and it is a Cypress FX3 USB BootLoader Device in USB Control Center. At the time I run my host code and it can enumerate the bootloader device using USBDeviceList API.
I appreciate any help, thank you,
Attachment is my host code.
Show LessI'm using archlinux x86_64.
Tried all available 32-bit java versions (5-8), but still cannot run ezUsbSuite to debug my fx3.
nick /mnt/garbage/cypress_fx3/FX3_SDK_Linux_v1.3.3/eclipse $ ./ezUsbSuite --vm /usr/lib32/jvm/java32-7-jdk/bin/
OpenJDK 64-Bit Server VM warning: You have loaded library /mnt/garbage/cypress_fx3/FX3_SDK_Linux_v1.3.3/eclipse/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.200.v20140116-2212/eclipse_1508.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
EzUsbSuite:
JVM terminated. Exit code=13
/usr/bin/java
-jar /mnt/garbage/cypress_fx3/FX3_SDK_Linux_v1.3.3/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
-os linux
-ws gtk
-arch x86
-showsplash
-launcher /mnt/garbage/cypress_fx3/FX3_SDK_Linux_v1.3.3/eclipse/ezUsbSuite
-name EzUsbSuite
--launcher.library /mnt/garbage/cypress_fx3/FX3_SDK_Linux_v1.3.3/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.200.v20140116-2212/eclipse_1508.so
-startup /mnt/garbage/cypress_fx3/FX3_SDK_Linux_v1.3.3/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.overrideVmargs
-exitdata 156802a
--vm /usr/lib32/jvm/java32-7-jdk/bin/
-vm /usr/bin/java
-vmargs
-jar /mnt/garbage/cypress_fx3/FX3_SDK_Linux_v1.3.3/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
I've also tried to run "execstack -c .....", but no effect
Show LessHello, I try to connect the OV12895 to the CX3(denebola). I am Want to capture video at 1080p, 1-bit RAW data, over 4 - lane.
Here is my CX-3 configuration.
The issue is , I am not getting any data and GPIF and DMA callback functions are not called.
May be, I misunderstood the CX-3 configuration.
Please, Help me to resolve issue.
Thanks
Show LessDoes FX3 require a low pulse at reset pin when powering up? Can I tie the reset pin directly (or through a pull-up resistor) to the corresponding supply rail if I do not need hard reset after power-up sequence is completed?
Show LessHi,
Sorry about my newbie questions :
What are the actual steps to test the CYUSB3ACC-007 CPLD Accessory Board for the EZ-USB FX3 for Cypress SuperSpeed Explorer Kit ?
How to download the .bit file to the CPLD, and what is the app to launch to survey the 8 buttons on the CPLD board, how to communicate with the CPLD ? Is there anywhere the doc of GettingStartedWithCYUSB3ACC-007 ?
In AN65974 Designing with the EZ-USB FX3 Slave FIFO Interface.pdf, the example is for SP601, not for CYUSB3ACC-007 CPLD Accessory Board.
In the book "SuperSpeed Device Design by Example" by John Hyde, available on Amazon...
Where is ProgCPLD, where can I download the project files including the .c and .v Verilog and the .ucf files ?
Not sure how to flash the cpld by using Xilinx USB blaster, is it possible ? otherwise only ProgCPLD ?
Thank you so much for your help !!
Ce message a été modifié par : MH MH
Show LessWe are using EZ-USB FX3 as slave FIFO to connect FPGA. We know EZ USB SDK provide firmware project for this application, named SlaveFifoSync. The parameter "CY_FX_SLFIFO_GPIF_16_32BIT_CONF_SELECT" in cyfxslfifosync.h is "0", meaning 16bit GPIF data bus.
But In our design, We need 32bit GPIF data bus. When we change the parameter "CY_FX_SLFIFO_GPIF_16_32BIT_CONF_SELECT" value from "0" to "1", build project, and download .img file to board. The column on the left is blank even if project programming succeeded.
Show Less
I have simple scheme (see pic.) FX3 read 16 bit data from slave FPGA with embedded registers array.
I have made GPIF State Machine with GPIF designer (see pic.)
GPIF State Machine starts from state "START" and then I switch to state "RD_START" in Entry function SRamAppThread_Entry using CyU3PGpifSMSwitch (256, RD_START, 256, 0, 0);
In STATE6 is called interrupt callback function with code:
{
CyU3PDmaChannelSetWrapUp(&glChHandleSRamPtoU_48);
}
for (;
{
// code before
apiRetStatus = CyU3PGpifSMSwitch (256, RD_START, 256, 0, 0);
if(apiRetStatus != CY_U3P_SUCCESS){
CyU3PDebugPrint (CY_FX_DEBUG_PRIORITY, "CyU3PGpifSMSwitch failed, Error code = %d\r\n", apiRetStatus);
}
// code after
}
breakpoint set apiRetStatus = CyU3PGpifSMSwitch (256, RD_START, 256, 0, 0);
I want to read one 16 bit word, but I have "zero length" in Control Center window. When I try to read 2 words I haven't problem and I receive 2 words.
I cant read odd number of words. If I try to read odd number of words - N, I have N-1 words (even numer of words).
Were is my mistake
P.S.
/*------DMA P-Port config (AUTO mode)---------------------------------------------------------------------------------------------*/
dmaCfg.notification = 0;
dmaCfg.cb = NULL;
dmaCfg.prodSckId = CY_FX_PRODUCER_USB_SOCKET_4;
dmaCfg.consSckId = CY_FX_CONSUMER_PPORT_SOCKET;
dmaCfg.count = 1;
apiRetStatus = CyU3PDmaChannelCreate (&glChHandleSRamUtoP_48, CY_U3P_DMA_TYPE_AUTO, &dmaCfg);
if (apiRetStatus != CY_U3P_SUCCESS)
{
CyU3PDebugPrint (CY_FX_DEBUG_PRIORITY, "CyU3PDmaChannelCreate failed, Error code = %d\n", apiRetStatus);
CyFxAppErrorHandler(apiRetStatus);
}
dmaCfg.notification = 0;
dmaCfg.cb = NULL;
dmaCfg.prodSckId = CY_FX_PRODUCER_PPORT_SOCKET;
dmaCfg.consSckId = CY_FX_CONSUMER_USB_SOCKET_8;
dmaCfg.count = 1;
apiRetStatus = CyU3PDmaChannelCreate (&glChHandleSRamPtoU_48, CY_U3P_DMA_TYPE_AUTO, &dmaCfg);
if (apiRetStatus != CY_U3P_SUCCESS)
{
CyU3PDebugPrint (CY_FX_DEBUG_PRIORITY, "CyU3PDmaChannelconfig Failed, Error code = %d\n", apiRetStatus);
CyFxAppErrorHandler(apiRetStatus);
}
/*-------------------------------------------------------------------------------------------------------------------------*/
Show LessHi all,
My data flow like this:
I have a truble with configuration for tranfer the RAW16 data to PC.
I did't found there any avalible type of "enum CyU3PMipicsiDataFormat_t" for RAW16.
Show LessHello,
I have implemented CDC USB class in fx2lp.I have programmed to program->fx2->64k EEPROM.when its programmed to eeprom,its detecting as USB SERIAL PORT under COM PORT.
Again i need to program this fx2lp device,but its not detecting in the default control center.
what is the possibility to program this device again?
regards,
geetha.
Show Less