USB superspeed peripherals Forum Discussions
Hi, I have a question with CX3.
Does SPI support 3-wire communication in CX3?
Hello,
I’d like to be able with Visual Studio 2022 to compile the project fwdownload_fx3 included in EZ-USB™ FX3 SDK for Windows (x32) (exe) 1.3.4. The default path of this project is "C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\application\cpp\fwdownload_fx3".
The first error I faced when I tried to compile was:
Error RC1015 cannot open include file 'afxres.h'.
I found out that by installing C++ MFC it would fix this error. Now I’m facing an other error:
Error LNK2019 unresolved external symbol sprintf referenced in function "public: void __cdecl CCyUSBDevice::UsbdStatusString(unsigned long,char *)" (?UsbdStatusString@CCyUSBDevice@@QEAAXKPEAD@Z) FwDownloadApp C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\application\cpp\fwdownload_fx3\cyapi.lib(CyAPI.obj) 1
Could you please help me on this issue?
PS: I noticed that I have no trouble to compile all the projects in the C# folder C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\application\c_sharp by opening the sln files for VS2015.
Thank you very much and have a nice one.
Best regards,
François Delaplace
Show LessI have a USB2 HID device, when I do CyU3PUsbDoRemoteWakeup(); it does not wake up the computer in sleep mode. I see that the status is SUCCESS, but the computer does not wake up. Please advise.
UPDATE:
I noticed that this issue occurs only when going through a USB3 HUB -- but when I use the USB3 ports on the front of my computer, CyU3PUsbDoRemoteWakeup() does wake the computer up....
Why would this issue occur on a USB3 HUB? Please advise.
Show LessI have a USB HID device that I want to wake up when the computer wakes up. How do I check when the computer wakes up? Is there an event produced? I can wake up the computer using CyU3PUsbDoRemoteWakeup, but I don't know how to wake up the device if something else wakes up the computer.
Show LessI have a camera that transfer data using USB3.0 interface.
Which series of device can be used for the purpose?
If the device is not only used to receive data from the camera, but also process the frame, and response it by controlling the motor, which device satisfy this usage?
Show LessCould any series of peripheral device be the host and communicate other USB 3.0 equipment?
I'm trying to write an application to format the logs I have coming out of my FX3. Basically, every time a CyUSB device attaches, we create a new thread that repeatedly polls for new data and puts it in a queue that gets read on the main thread. These threads are each associated with a flag that indicates if the thread should terminate gracefully. This happens if a device is removed, for example. I use the deviceAttached and deviceRemoved events to handle devices adding or removing.
The situation I'm running into is that I receive a deviceRemoved event and request the thread to terminate gracefully using my flag. In the thread, even though the timeout on xferData is set to 1 second, the xferData function doesn't return, which means the thread doesn't read my flag, and thus doesn't terminate.
During normal operation, xferData terminates after a second like it should. It's just after the device is disconnected that it hangs.
Am I doing something wrong, or is there a workaround for this?
I've attached the solution if you'd like to try it out. usbMgr.cs is where the interesting parts are. UsbPoll is the thread body. removeDevice is the function that's trying to join the thread. If you wanted to try this out, you don't actually need your FX3 to transmit anything as long as it's using the PID, VID, and endpoint that I'm expecting.
I'm running into other issues getting xferData to actually receive data, but that's probably going to be a different post.
Show Less
My developer board is directly connect to host, I want to burning a image into my developer board. I use USB control center that provided by FX3 SDK suite. USB control center reported that programming of SPI FLASH Erase failed every time. I don't know where the problem is. I'm studing FX3 development. Please give me some help.
Show LessWe are using an CYUSB3014 FX3 for a sync slave FIFO that communicates over a CY_U3P_DMA_TYPE_AUTO channel to a USB serial interface.
After setting up the GPIF II slave FIFO the FX3 intermittently resets in the call to CyU3PGpifSMStart. The reset only happens if CyU3PPibRegisterCallback is called to register a callback function even though the callback function does nothing; it is literally empty.
The reset happens when something goes wrong starting the GPIF state machine. If the callback is not registered so the FX3 does not reset, communication over the USB interface fails.
When the CyU3PGpifSMStart call succeeds USB communication works and everything is fine.
What might be causing this reset and why would it be intermittent? How do I go about debugging?
We are using SDK version 1.3.4.
Show LessHi,
I've configured FLAGA to be Empty/Not Empty for Thread 0 during a read and Full/Not Full during a write. The timing diagrams in the "Designing with the EZ-USB FX3 Slave FIFO Interface" are a little confusing. Since the FlagA is shared, when is it asserted? For example, when a read cycle is initiated by asserting the address (2-bit in my case, "00"), the SLCS and the SLOE and the next cycle SLRD. Is the FLAG asserted after the SLRD goes active (low)? Also, the timing diagram shows the data valid 2 clock cycles after SLRD is this correct?
Thanks!
John
Show Less