USB low-full-high speed peripherals Forum Discussions
From your API:
5.3 CyGetSignature
This API retrieves the signature of the device firmware.
Description
This API retrieves the signature of the device firmware.
Parameters
Parameters Description
CY_HANDLE handle Valid device handle
UCHAR * pSignature Signature returned
Question: what value is pSignature? I have hunted through your CPP code and can't find it.
Show LessUsing Python to Interface to CY7C65211A UART with HID DLL
I need to use Python to program the Cy7C65211A USB Bridge
I will be using UART mode and SPI mode and want to use the HID interface and not the CDC Interface.
In other words: No Virtual Com Port Implementation
Are their any examples of this available?
Do I use this DLL?
C:/Program Files (x86)/Cypress/USB-Serial SDK/library/cyusbserial/x86/cyusbserial.dll
There are sooo many .dll files I need to get this confirmed.
Also, in the API Documentation section 3.2:
3.2 CY_RETURN_STATUS
CY_SUCCESS = 0 API returned successfully without any errors.
CY_ERROR_ACCESS_DENIED Access of the API is denied for the application
CY_ERROR_DRIVER_INIT_FAILED Driver initialisation failed
CY_ERROR_DEVICE_INFO_FETCH_FAILED Device information fetch failed
CY_ERROR_DRIVER_OPEN_FAILED Failed to open a device in the library
......
So we know the value if successful but what are the return values for all of the error conditions?
Show LessHi,
I am using CY7C65215A. It has 2 channels. I want to use just 1 I2C SCB0. I disabled other SCB1 from usb serial configuration utility.
Still when device plugged in I see 2 interfaces. I want to just see one interface "Vendor 1" . Is it possible?
Show Less
I am building a GPS RF receiver using a CY7C68013 chip to stream data to a computer. It is a modification of older design that uses GPIF mode.
Is it possible to reverse engineer the hardware connections to the chip from this file:
gr-gn3s/gpif.gpf at master · gnss-sdr/gr-gn3s · GitHub
Both radio chips (my one and old design one) use 2- or 4-bit wide bus and a single 16.3MHz clock signal. Data bus connection is obvious for me. I suspest that the clock signal should be connected to IFCLK pin, but I am not sure.
Can someone help me?
Show Lesshi, i have cypress CY7C68013A0128AXC can i connect to WIN 10 ? you have drivers for this ?
Hi,
My self shailesh.
I have attached product number and just want to verify weather it's cypress semi conductor product or not.
Because since 1 week I am trying to do the programming but some time I am getting Device Busy , Time out etc issues.
So to resolve that I did download HX3 Blaster Plus software for firm ware reset but unfortunately system could not detect it. I have connected through USB port.
Just for your reference I am using cyUsbSerial.dll for programming so please help me to resolve this issue because it really stuck everything at my side and unable to resolve the issues.
Here are the steps of programming which I have done in vc++
1) CyOpen((unsigned char)0, (unsigned char)0, &mHandle) -> Return CY_SUCCESS
2)
int Read(UCHAR slaveAddress7bit, UCHAR *buf, UINT32 len)
{
CY_I2C_DATA_CONFIG* dataConfig = new CY_I2C_DATA_CONFIG();
CY_DATA_BUFFER* readBuffer = new CY_DATA_BUFFER();
UCHAR *num = new UCHAR[len];
memset(num, 0, len);
dataConfig->slaveAddress = slaveAddress7bit;
dataConfig->isStopBit = (BOOL)TRUE;
dataConfig->isNakBit = (BOOL)TRUE;
readBuffer->buffer = num;
readBuffer->length = (UINT32)len;
CY_RETURN_STATUS cyReturnStatus = LTRead(mHandle, dataConfig, readBuffer, 5000U);
memcpy(buf, num, len);
delete num;
num = NULL;
readBuffer->buffer = NULL;
return (int)cyReturnStatus;
};
LTRead(CY_HANDLE handle, CY_I2C_DATA_CONFIG * dataConfig, CY_DATA_BUFFER * readBuffer, UINT32 timeout)
{
typedef CY_RETURN_STATUS(*pCyReadFn)(CY_HANDLE, CY_I2C_DATA_CONFIG*, CY_DATA_BUFFER*, UINT32);
{
pCyReadFn pCyRead;
pCyRead = (pCyReadFn)GetProcAddress(hinstLibcyusbserial, "CyI2cRead");
if (NULL != pCyRead)
{
return pCyRead(handle, dataConfig, readBuffer, timeout);
}
else
{
MessageBox(NULL, TEXT("CyI2cRead function not found"), TEXT("DLL ERROR"), MB_OK | MB_ICONERROR);
}
}
};
3)
int Write(UCHAR byteSlaveAddres7bit, UCHAR *buf, UINT32 len)
{
CY_I2C_DATA_CONFIG* dataConfig = new CY_I2C_DATA_CONFIG();
CY_DATA_BUFFER* writeBuffer = new CY_DATA_BUFFER();
UCHAR *num = new UCHAR[len];
memset(num, 0, len);
memcpy(num, buf, len);
dataConfig->slaveAddress = byteSlaveAddres7bit; //0x51
dataConfig->isStopBit = (BOOL)TRUE;
writeBuffer->length = (UINT32)len;
writeBuffer->buffer = num;
CY_RETURN_STATUS cyReturnStatus = LTWrite(mHandle, dataConfig, writeBuffer, 5000U);
delete num;
num = NULL;
writeBuffer->buffer = NULL;
return -1 * (int)cyReturnStatus;
};
CY_RETURN_STATUS LTWrite(CY_HANDLE handle, CY_I2C_DATA_CONFIG *dataConfig, CY_DATA_BUFFER *writeBuffer, UINT32 timeOut)
{
typedef CY_RETURN_STATUS(*pCyWriteFn)(CY_HANDLE, CY_I2C_DATA_CONFIG*, CY_DATA_BUFFER*, UINT32);
{
pCyWriteFn pCyWrite;
pCyWrite = (pCyWriteFn)GetProcAddress(hinstLibcyusbserial, "CyI2cWrite");
if (NULL != pCyWrite)
{
return pCyWrite(handle, dataConfig, writeBuffer, timeOut);
}
else
{
MessageBox(NULL, TEXT("CyI2cWrite function not found"), TEXT("DLL ERROR"), MB_OK | MB_ICONERROR);
}
}
};
// In Below Function , int num1 = Write((BYTE)27, writeBuffer, len1); ===> at this line execution some time getting CY_ERROR_I2C_DEVICE_BUSY and some time CY_ERROR_IO_TIMEOUT
// int num2 = Read((BYTE)27, readBuffer, len2); ===> at this line execution some time getting CY_ERROR_I2C_NAK_ERROR
I have updated my usb cabel , so many times restarted my hardware and my laptop. but every time only one out put from write -> CY_ERROR_I2C_DEVICE_BUSY
int GetLedOnOff( bool* outLedEnableRed,bool* outLedEnableGreen,bool* outLedEnableBlue)
{
int len1 = 1;
int len2 = 1;
BYTE *writeBuffer = new BYTE[1];
BYTE *readBuffer = new BYTE[1];
ZeroMemory(writeBuffer, (sizeof(BYTE) * 1));
ZeroMemory(readBuffer, (sizeof(BYTE) * 1));
InitLog(READ, READ_LED_ENABLE, (BYTE)27);
*outLedEnableRed = *outLedEnableGreen = *outLedEnableBlue = false;
writeBuffer[0] = (BYTE)83;
int num1 = Write((BYTE)27, writeBuffer, len1);
if (num1 < 0)
{
GetLog() += " (Fail)";
return num1;
}
int num2 = Read((BYTE)27, readBuffer, len2);
if (num2 < 0)
{
GetLog() += " (Fail)";
return num2;
}
*outLedEnableRed = ((int)readBuffer[0] & 1) == 1;
*outLedEnableGreen = ((int)readBuffer[0] & 2) == 2;
*outLedEnableBlue = ((int)readBuffer[0] & 4) == 4;
AppendLogRecv(readBuffer);
DeleteBuffer(readBuffer, writeBuffer);
return num2;// valuesBool{ outLedEnableRed,outLedEnableGreen,outLedEnableBlue,num2 };
//return num2;
};
So please help me to identify or resolve the issues.
Show LessWe use the CY7C65213-32LTXI for a terminal console of a Controller with Linux.
Console is running under Windows 10.
While debugging we connect and disconnect the USB-plug multiple times.
But sometimes - after a disconnect and connect - the CY7C65213 is damaged so we have to replace the controller.
This already happend to uns multiple times.
How can we aviod damaging in the future?
Any suggestions?
Many thanks in advance
Helmut
This is the circuit diagram:
Show Less
Hi,
Our software uses CyUSB.sys. We have signed this driver fo years, but with Windows 10, an additional signature required. Did Cypress signed by the Windows Hardware Developper Dashboard portal ? If yes where download the new CyUSB.sys ?
Regards,
Sebastien
Show LessHello
The customer is going to use the ControlCentor for FX2LP program writing, but The HOST PC is winodws10 x64.Is it possible to use the following Control Centor of SuiteUSB 3.4 for Windows10 x64?
Best Regards
MACNICA/Arai
Show Less