USB superspeed peripherals Forum Discussions
I'm pretty new to all of this stuff, and am working on a project with the CYUSBKIT-003 EZ-USB FX3. I know that Eclipse is included in the SDK to use with programming this board, but I've never used an IDE before and have heard that Eclipse is not the best to start using in the beginning. Is it possible to use a different platform to program the FX3, or does it have to be Eclipse?
The main problem is that I am trying to create a GUI to control some code on the Eclipse board (which isn't on the board yet, but hopefully I can figure out something soon). I was able to figure out how to create a GUI on Visual Studios 2010, but I don't know how to bring it over to Eclipse (or if it's even possible). I've tried figuring out how to get some of the example programs to work in Eclipse, but I just keep running into problems. Working in VS2010 would be much easier for me, as I have already drafted some code there.
Any and all help/input is appreciated!Show Less
I have few questions regarding the FX3 Layout:
1) what is the minimal distance from signal to signal in GPIF II Interface? Can I use 8mil(0.2mm)?
2) In what range i have to length match the GPIF II interface? what is the largest mismatch?
3) If the larges signal length is 1in in GPIF II , do I have to use series resistor termination?
Best Regards.Show Less
I am trying to use CX3 as an USB_UART bridge to send incoming SPI data to host PC. Following are the paths.
1) SPI to CX3 Manual IN DMA (Incoming data)
2) CX3 to USB Manual OUT DMA (Outgoing data towards Host PC) (Bulk)
The time taken for reading from SPI to CX3 using DMA is approx. 4 ms for 256 bytes (My SPI clock is 512 kHZ). The time taken for transferring the data from CX3 to USB takes approx. 9.8 ms (for same 256 bytes).
Im losing data because of higher CX3 to USB serial latency compared to SPI counterpart . Is there any way to increase the throughput of this bulk transfer such a way that the time taken is always much lesser than the incoming SPI speed.
Attaching the projectShow Less
I'm new on this forum and new in development with the FX3.
I would like to do a FIFO between an ADC (ADS1274 from TI) and the FX3 to get data in the FX3. Because of the sampling frequency, I need to use the "Frame-Sync interface" of the ADS1274 because the SPI cannot reach the speed requirement.
I would like to use the GPIF II interface of the FX3 and the DMA to transfert data to USB and maybe later, to an SD card (with an FX3S).
I do not need to have input signal with the "Frame-Sync interface" to get data from the ADC, only some output signals. Everything I need to make a state machine is just some counters and a very basic logic which can be easily programmed into the FX3.
I tried to work a while with GPIF II Designer and it is like the only signal I can use to change the state are the input signals which means I would need to make an external logic to do my application. It it what my company did with our last generation card: some logic ICs that made the control signals. But all this logic could be made in a very simple way in the firmware and would not require a huge CPU load. So my questions are:
- Could I make a state machine based on soft variables instead of hardware input (with no complex operation)?
- Can I write some code (like a counter and when the loop is done X times, the state will change?)
- Finally, do I really need to keep my logic circuits for my application?
Sorry, this is the very first time I use the FX3 and make this king of state machine. I understand that a state machine will change its state according to input signal, but do they need to be signal input and not software variables?
Two cypress devices used in my system. one is CYUSB3014 and the other is CY7C68013. Can I use the same library for the SW develop to control the two device.Show Less
I have a sensor Aptina MT9V034 that is configured to run at 60 fps. I used a Cypress FX3 to control the sensor and communicate with an android application which uses UVCCam library.
I use the source code of AN75779 example which is compatible with UVC.
When using a software on pc to read the video from the camera it works fine without a problem.
However on my android application, after getting the frame of camera I do some image processing so my android application processes only around 30 fps (not fixed) and I get occasionally error code 71 which means CY_U3P_ERROR_INVALID_SEQUENCE after calling the function CyU3PDmaMultiChannelCommitBuffer. This error causes the frame sent by camera looks abnormally but until another error of invalid sequence occurs, the frame returns to normal.
As I understand the error is caused by the slow consumption of frame of my android application.
If that is the case which is the best solution to get rid of the error or to handle the error correctly so that I do not have to lower the frame rate of the sensor and the android application's slow consumption of frame doesn't affect the frame sent by the camera ?
Thank you very much.Show Less
I am developing a USB camera in Cx3 with OV5640(MIPI Interface).
CX3 USB camera connection with a PC preview to normal operation,
It does not work when connected to Android phone with VGA resolution. (Using Android USB APP. ex, Webeecam)
How do I modify the UVC-related sources?
And, ask if I can get a solution or provide relevant reference source.
HI,i am designing a type c power bank used cypress chip cypd 3121,and I have some question ， could you give me some guidance or suggestions ？
1. about the software " EZ -PD Configuration Utility " ：i want to create a new firmware for the power bank ， there are just active cable 、 display port 、 notebook 、 monitor 、 power adapter ， but i don't find the power bank item .just like the picture 1， so which one should i choose for power bank ？
2. about the software " PSoC Creator 3.3 "： the similar problem ，in the code example ， there is no cypd 3121 power bank code example ， just like the picture 2 ，so which one should i choose for cypd 3121 power bank ？
3.could you give me some design examples files or some helpful webs ？Show Less
I want your USB audio class example working for Linux platform (esp. Android phone) with the parameters below
a) 16kHZ Sampling Frequency
b) 16 bit per sample
c) Stereo mode
As per the last few questions posted, I have made the changes Cypress team asked to do me. Surprisingly, the audio streamed was not correct. The recorded audio when played back had breaking, looking like duplicated audio samples which made the actual sound content elongated.
Please help to sort out this issue. If this issue is reproduced at your end or is it just me getting this problem? I am really confused.
Below are the changes you asked me to do in the original UAC source
1) sampling frequency in audio format descriptor : 0x80, 0x3E, 0x00,
2) Transaction size in Endpoint descriptor for ISO streaming Audio data 0x20, 0x00,
3) Bytes per interval in Super speed endpoint companion descriptor: 0x20, 0x00,
4) in the cyfxuac.c file, change the macro definition to: CY_FX3_ISO_XFER_LEN (32)
NOTE:- SPI flash contains audio file flashed of same parameters aforementioned.Show Less