USB superspeed peripherals Forum Discussions
text.format{('custom.tabs.no.results')}
Hello,
I am working on CCG1 type-C USB controller and as per the document, we have the I2C data line to configure registers. But I couldn't find the slave address and I2C commands to communicate. Is there any document for the I2C commands for type-C USB controller?
Regards,
Sowmya
Show LessHi all,
I have a hardware question about data aquisition in FX3 design.
For example, I have an ADC which has two output: the ADC clock and parallel data which is synchronized to the clock. Since it is an external clock to CYUSB3014 chip, lets say the data rate is 100MS/s. How should I configure the CYUSB chip to read the data correctly? The another way to ask this question is: how to make sure the sampling time of the CYUSB (using GPIF II) is synchronized to the external ADC clock.
If the ADC clock is fixed to be 104MHz, then if I use a divider to generate a 52MHz clock to be the CYUSB reference clock, in this way, will the data acquisition time automatically synchronized to the ADC clock?
Thank you.
Show LessI'm using a code legacy of the streamer example from the SDK1.3
The BeginDataXfer/WaitForXfer/FinishDataXfer is working fine at high throughput (my PC read and process data at 2Gb/s). Now when I have a low throughput of data (<1Gb/s) due to a different FPGA operating mode, the functions WaitForXfer(hEvent, 500) returns 0. And I've tried several options : adding or removing the following functions EndP abort(), Pinvoke.WaitForSingleObject(), FinishDataXfer()... but I'm still stucked and the documentation of CyUSB.NET is not very clear. Help would be precious.
Config : My CYUSB3012 is connected to my FPGA with a 32-bits GPIF interface and dedicated partial flags for FPGA write to the CYUSB. HW Signals are OK (CYUSB & FPGA communicate together without any problem, oscilloscope checked). Library = cyUSB.dll v1.2.2.0.
NB : When I use the control center, I use BULKIN 0X81 Xfer Data-IN to get my data with low or high throughput without any problem.
Show LessHow do I access interrupts on INT# / CTL15 pin using C++?
I looked through the Eclipse C++ firmware examples but can't find any sample code which uses the INT# pin.
Thanks.
Show LessHello,
The function below has to return "CyFalse" instead of "CyTrue" to successfully transfer data.
CyBool_t
CyFxBulkLpApplnLPMRqtCB (
CyU3PUsbLinkPowerMode link_mode)
{
return CyFalse;
}
<Firmware API Guild> said :"The USB 3.0 host may request the FX3 device to switch the USB link to a low power state when the host has no more activity to perform." So, what does "no more activity" mean? Why is this request sent out from host? Thanks.
Show LessHello,
I am new with the Cypress EZ USB FX3. What I want to do is to send simple messages on the state of the board into the computer ( I want to use Tera Term for example and what I wanted to do is to use the BootLedBlink example and add a simple counter to the program just to show me how much time I clicked on the switch to light the led but I have no idea how to do this )
Would you please help me and tell me which function could send messages to the sceen ( is there a thing like printf ? I found "CyU3PDebugPrint" but I don't know how it works )
Help
Thank you in advance
Show LessI want to use FX3 to read and write files.I do not know how to set and whether i should embed some code?IS there anyone had done this?Can you give me some guiding ?
Show LessHi,
I was wondering if it possible to include two different GPIF interfaces into one FW application?
Basically it should work like that:
A command handler checks for commands. If "command 1" is received it shall load GPIF interface #1, if "command 2" is received it will load GPIF interface #2.
I will of course rename the state machines in the generated config headerfile in order to avoid name conflicts.
Just wondering if anybody has experiences with dynamically reconfiguring the GPIF interface ...
best, Rene
Show LessHi everyone,
I wrote a python wrap for CyAPI.h and build the wrap on VC++. (not sure whether this is related to my problem.) And I am using Fx3 streamer example device as well as bootloader device.
I create a new cyusb device instance by calling new CCyUSBDevice() from Python command line, I got an exception and forced to quit python. After some debugging I found out that the exception happened when constructor function tried to open the device. If I choose not to open the device, the instance is created successfully, and I can get the device number by DeviceCount().
I am running this on winxp virtual machine and windows 7 laptop. And I tried vc++ example codes, which have no problem creating and opening instances. So I assume this must be something related to my python wrap. But the calling codes are really simple. Please take a look at the following codes.
In wrap file:
static PyObject *
do_createInstance(PyObject *self, PyObject *args)
{
bool ret = False;
ret=call_createInstance();
return Py_BuildValue("O", ret?Py_True: Py_False);
}
In CPP file:
extern "C" bool
call_createInstance(void)
{
int devnum=0;
devHandler = new CCyUSBDevice(); //exception happens here.
devnum=devHandler->DeviceCount(); //if I set bOpen to False, I can get this line and get devnum=1.
if(0==devnum)
return FALSE;
return TRUE;
}
Why VC++ can open device correctly but my python wrap can not? They are eventually calling the same function.
Can someone help me to find the cause of the error? Thank you very much.
Show Less