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
Hello,
i try to run the cypress examples, but i get a java.io.IOException ?
has someone a ideer whats wrong here.
Cannot run program "C:\Program Files\Cypress\EZ-USB FX3 SDK\1.0\firmware\serialif_examples\cyfxgpioapp\Debug\GpioApp.elf": Launching failed
java.io.IOException: Cannot run program "C:\Program Files\Cypress\EZ-USB FX3 SDK\1.0\firmware\serialif_examples\cyfxgpioapp\Debug\GpioApp.elf": Launching failed
at org.eclipse.cdt.utils.spawner.Spawner.exec(Spawner.java:251)
at org.eclipse.cdt.utils.spawner.Spawner.<init>(Spawner.java:59)
at org.eclipse.cdt.utils.spawner.ProcessFactory.exec(ProcessFactory.java:89)
at org.eclipse.cdt.launch.internal.LocalCDILaunchDelegate.exec(LocalCDILaunchDelegate.java:380)
at org.eclipse.cdt.launch.internal.LocalCDILaunchDelegate.runLocalApplication(LocalCDILaunchDelegate.java:95)
at org.eclipse.cdt.launch.internal.LocalCDILaunchDelegate.launch(LocalCDILaunchDelegate.java:69)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:853)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:703)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:866)
at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1069)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
another failture is, if i like to add debug configurations
eclipse: Run->Debug Configurations
i click on GDB Hardware Debugging and add new lunch configuration.
i get the following error: Problems occurred when invoking code from plug-in: "org.eclipse.jface".
java.lang.NoSuchMethodError: org.eclipse.cdt.debug.gdbjtag.ui.GDBJtagDSFDebuggerTab.scheduleUpdateJob()V
at org.eclipse.cdt.debug.gdbjtag.ui.GDBJtagDSFDebuggerTab.access$1(GDBJtagDSFDebuggerTab.java:1)
at org.eclipse.cdt.debug.gdbjtag.ui.GDBJtagDSFDebuggerTab$2.modifyText(GDBJtagDSFDebuggerTab.java:165)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:167)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1008)
at org.eclipse.swt.widgets.Text.wmCommandChild(Text.java:2526)
at org.eclipse.swt.widgets.Control.WM_COMMAND(Control.java:4082)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3949)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4619)
at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2314)
at org.eclipse.swt.widgets.Text.callWindowProc(Text.java:255)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4036)
at org.eclipse.swt.widgets.Text.windowProc(Text.java:2170)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4619)
at org.eclipse.swt.internal.win32.OS.SetWindowTextW(Native Method)
at org.eclipse.swt.internal.win32.OS.SetWindowText(OS.java:3265)
at org.eclipse.swt.widgets.Text.setText(Text.java:1961)
at org.eclipse.cdt.debug.gdbjtag.ui.GDBJtagDSFDebuggerTab.initializeFrom(GDBJtagDSFDebuggerTab.java:369)
at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupWrapper.initializeFrom(LaunchConfigurationTabGroupWrapper.java:201)
at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.displayInstanceTabs(LaunchConfigurationTabGroupViewer.java:802)
at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer$8.run(LaunchConfigurationTabGroupViewer.java:678)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.inputChanged(LaunchConfigurationTabGroupViewer.java:695)
at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.setInput0(LaunchConfigurationTabGroupViewer.java:657)
at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.setInput(LaunchConfigurationTabGroupViewer.java:633)
at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.handleLaunchConfigurationSelectionChanged(LaunchConfigurationsDialog.java:916)
at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog$3.selectionChanged(LaunchConfigurationsDialog.java:544)
at org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredViewer.java:864)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.runtime.Platform.run(Platform.java:888)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at org.eclipse.jface.viewers.StructuredViewer.firePostSelectionChanged(StructuredViewer.java:862)
at org.eclipse.jface.viewers.StructuredViewer.setSelection(StructuredViewer.java:1670)
at org.eclipse.jface.viewers.TreeViewer.setSelection(TreeViewer.java:1124)
at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationView.handleConfigurationAdded(LaunchConfigurationView.java:282)
at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationView.access$1(LaunchConfigurationView.java:272)
at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationView$2.run(LaunchConfigurationView.java:261)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3885)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3506)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.open(LaunchConfigurationsDialog.java:1065)
at org.eclipse.debug.ui.DebugUITools$1.run(DebugUITools.java:398)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.debug.ui.DebugUITools.openLaunchConfigurationDialogOnGroup(DebugUITools.java:406)
at org.eclipse.debug.ui.DebugUITools.openLaunchConfigurationDialogOnGroup(DebugUITools.java:340)
at org.eclipse.debug.ui.actions.OpenLaunchDialogAction.run(OpenLaunchDialogAction.java:81)
at org.eclipse.debug.ui.actions.OpenLaunchDialogAction.runWithEvent(OpenLaunchDialogAction.java:89)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:241)
at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3910)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3503)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
can some one help me please ? i hope.
best regards
kai
Show LessI have two development kits for the PSoC5 (the first touch kit, and the CY8C kit). Both of the development boards have an FX2LP controller on them, which can be used to program the PSoC. I'm assuming this is done by doing some sort of USB to JTAG conversion. Please excuse my question if it seems basic. I'm new to USB, so I would appreciate any help on this:
I want to use one mini-USB port both for programing (JTAG), and communications (e.g. UART, or something that shows up as a com-port on the computer). Is this possible with the FX2LP chip? I'm assuming the FX2LP is a specialized microcontroller that can be programmed to achieve any sort of USB conversions. Is this right? If it's not possible, can I somehow share the miniUSB port between the FX2LP and some sort of FTDI usb-serial chip? It would be great to do this without having to use a jumper or multiple miniUSB ports. Also, does cypress provide firmware for any of these kinds of applications?
thanks!
Show LessHi,
http://www.cypress.com/?rID=59674 is our application note on how to write USB host application in MAC OS. Looking for feedback on anything more that needs to added and any specific that needs more content on.
Feel free to post your feedbacks here.
Cheers,
Anand
Show LessHi all,
I'd like to use the CY7C67200 in our design. I saw a linux driver in the mainline.
What is the status of this driver in the mainline kernel ?
Is there a board which support the CY7C67200 in HPI mode ?
I'd like to find an example in order to include the support of the CY7C67200 in my BSP.
Regards
gregory
Show LessHi!
Here is a quite strange phenomenon which has been confusing me...
Things goes like this:
I feed the Slave FIFO with the external logic FPGA when a key is pressed.
Before the key is pressed down, FIFO_FULL_FLAG is high and FIFO_EMPTY_FLAG is low.
After the key is pressed, FIFO_FULL_FLAG is low and FIFO_EMPTY_FLAG is high. Obviously,it is normal.
However, when I access the data in the SLAVE FIFO through the control pannel, the FIFO_FULL_FLAG remains low and the FIFO_EMPTY_FLAG remains high. \
How can i fix it?
Show Lessi edit the bulkloop firmware,and edit the td_init() function as follows,but when i use cyconsole to see the pipe info,it shows
"pipe: 0 type:blk endpoint : 1 out maxpktsize:0x40
pipe:1 type:blk endpoint: 1 IN .................................
pipe:2 type:blk endpoint:2 OUT mxpktsize:0x200"
i just active ep2,but it seems that the result is not as i config.
does anywhere else need to be edited??????
p.s . : the firmware before i edit, config the ep1in ep1out and ep2.
void TD_Init(void)
{
CPUCS = ((CPUCS & ~bmCLKSPD) | bmCLKSPD1) ;
IFCONFIG = 0xeb;
EP1OUTCFG = 0x00;
SYNCDELAY;
EP1INCFG = 0x00;
SYNCDELAY;
EP2CFG = 0xA2;
SYNCDELAY;
EP4CFG = 0x00;
EP6CFG = 0x00;
SYNCDELAY;
EP8CFG = 0x00;
SYNCDELAY;
// reset all FIFOs
FIFORESET = 0x80;
SYNCDELAY; // see TRM section 15.14
FIFORESET = 0x02;
SYNCDELAY;
FIFORESET = 0x00;
// deactivate NAK-ALL
SYNCDELAY;
EP2FIFOCFG = 0x11;
SYNCDELAY;
EP2FIFOBCH = 0x10;
SYNCDELAY;
EP2FIFOBCL = 0x00;
SYNCDELAY;
PINFLAGSAB = 0x00;
SYNCDELAY;
PINFLAGSCD = 0x00;
SYNCDELAY;
SYNCDELAY;
EP2BCL = 0x80;
SYNCDELAY;
EP2BCL = 0x80;
SYNCDELAY;
Rwuen = TRUE; // Enable remote-wakeup
}
Show LessI have gotten the CyAPI.lib interface working for data transfers in both directions. Right now, it seems that the only way to know if data has been received from the USB peripheral is to poll the IN endpoint using XferData and then check the return value. I would like to have an interrupt or windows message to let me know when data has arrived so that the code doesn't waste time polling. Is there a way to do this?
Show LessHi,
I am using Xilinx ML605 board with Cypress CY7C67300. CY7C67300 is configured in standalone mode and communicate with Microblaze (on ML605 FPGA) over HPI. I am using slightly modified demo example de2_app that comes with CY3663 - EZ-OTG / EZ-Host Development Kit http://www.cypress.com/?rID=14316.
On PC side I use simple bulk write/read app. I am using this setup to transfer a chunk of data from FPGA to the PC.
My achieved bandwidth is 32 Kbytes/s using bulk endpoint with 64 Bytes packet size.
Is it best achievable score? Can I use greater packet size up to 512 Byte?
According to the document EZ-Host™ Programmable Embedded USB Host/Peripheral Controller (http://www.cypress.com/?rID=14164) 64 byte/packet is max packet size, and also throughputs over HPI is 16MB/s.
Best Regards,
Dragan
Show Less
I am trying to establish a communication channel between FX2LP and a FPGA using the Slave FIFO. I use EP4 for this purpose. The configuration is as follows:
1. EP2, Auto Out, 512 bytes, bulk, triple buffered
2. EP4, Manual Out, 512 bytes, bulk, double buffered
3. EP6, Auto In, 512 bytes, bulk, triple buffered
4. EP8, not used.
The slave FIFO is 16-bit wide. I am trying to send 52 bytes of data from FX2LP to FPGA via EP4 without the involvement of the host PC. Is that possible? I have tried many ways of coding, but the Empty flag of EP4, i.e. (EP2468STAT & 0x04) or (EP24FIFOFLAGS & 0x20), was still asserted after 52 bytes of data had been written into EP4 by FX2LP. As the FPGA had not been programmed to read data from EP4 yet, I would assume the Empty flag of EP4 would have gone off after one packat of data had been sent. So do I have to send the 52 bytes of data from the host PC?
Thanks for any help in advance.
Show LessHi!
For some reason,
I can't use FPGA in my project where I need to use 68013A to conduct USB data transfer.
I use STM32 instead of the FPGA as the control logic of CY7C68013A.
then , MUST I feed the pin IFCLK in frequency between 5MHz and 30MHz?
Looking forward to an instant reply!
Thank you!
Show Less