USB low-full-high speed peripherals Forum Discussions
Hello,
While using a board using a cyusb3014 chip, I have a question about the debug interface in chapter 5.9, AN75779.
In general use,
When I download the firmware image to the I2C EEPROM, it appears on the FX3 on "other devices".
The update driver software changes the device to the Cypress FX3 USB Streamer Example and is available for normal use.
However,
If I change the device to the boot loader and download the same firmware back to I2C EEPROM,
the UVC camera retains the camera device, but the Cypress FX3 USB Streamer Example device is not maintained and is connected back to the FX3 on "other devices".
Is there a way to keep this as a Cypress FX3 USB Streamer Example? Even if firmware is downloaded again.
Thanks.
Hi,
I'm using CY7C65215-32LTXI in our design.
I have changed the configuration like following by using USB-Serial Configuration Utility.
Before:
SCB0
Mode:I2C
Protocol:Vendor
SCB1
Mode:SPI
Protocol:Vendor
After:
SCB0
Mode:UART
Protocol:CDC
SCB1
Mode:UART
Protocol:CDC
After this change, there have been no device detected by usb-serial configurariton utility. And also device manager could not detect com port.
Please tell me the way to back the configuration under this circumstance.
Thanks.
Show LessHello, I would like to ask how many slaves can be connected when the cy7c65211a chip uses SPI mode as the MASTER. Some of the data taken by my channel is old and distorted, I would like to ask what the reason is, hope to reply when you are free, thank you.
Show Lesshi,
When I used AN8716 firmware to send a message from the slave device to the master device on the CYUSB3KIT003 development board, the master device received an additional 4 bytes in the message header, but sending from the master device to the slave device was correct. The attachment shows the USB packet capture
Hello, I would like to ask. First, I set the Serial number of these three chips cy7c65211A to 001,002,003 respectively through the software "USB Serial Configuration Utility". VID and PID of these three chips are the same. Then open the device through PC using CyOpen function for operation; The programming idea of my PC computer is: after successfully turning on the device, by identifying different Serial numbers, the flashing frequency of the lamp with different Serial numbers is different, and the final result is found that the flashing frequency of the lamp is the same, what is the reason? Shouldn't the three cy7c65211A chips that should be connected all perform the same operation and access using API functions programmed via USB? When you have time to help answer, thank you, good luck with your work.
Show LessHi, I wrote a C# wrapper for the cyusbserial.dll and have a device configured as a spi *slave*. I can open the bridge and find ports, get the configuration and set the GPIO reliably. CyGetListofDevices(),CySetGpioValue(),CyOpen() all work perfectly.
In C# I have the following wrapper:
[DllImport("CyUSBSerial.dll")]
public unsafe static extern CY_RETURN_STATUS CySpiReadWrite([In] IntPtr hHandle, [In, Out] CY_DATA_BUFFER* readBuffer, [In, Out] CY_DATA_BUFFER* writeBuffer, [In] UInt32 timeout);
Initializing the buffer is interesting, as C# needs unsafe and fixed operations.
// write buffer creation
CY_DATA_BUFFER wBuffer = new CY_DATA_BUFFER();
wBuffer.transfercount = 0;
wBuffer.length = 8;
byte[] wArray = new byte[256];
unsafe
{
fixed (byte* w = &wArray[0])
{
wBuffer.buffer = w;
}
}
// read buffer creation
CY_DATA_BUFFER rBuffer = new CY_DATA_BUFFER();
rBuffer.transfercount = 0;
rBuffer.length = 8;
byte[] rArray = new byte[256];
unsafe
{
fixed (byte* r = &rArray[0])
{
rBuffer.buffer = r;
}
}
// call read/write
status = CySpiReadWrite(card.Handle, &rBuffer, &wBuffer, 10000);
When I call cySPpiReadWrite() to status usually returns with CY_ERROR_REQUEST_FAILED. What's funny is that I need to actually create a write buffer and pass it into CySpiReadWrite or I get CY_ERROR_INVALID_PARAMETER, even though I only want to receive data. Pass null into wBuffer causes the parameter error.
Th problem almost seems memory or garbage collection-related. Has anyone successfully made a C# interface for this?
Show Less你好,目前在使用CY7C65211A上的SPI传感器进行测试,使用提供的API函数发现写不了CS片选信号,只能读取CS片选信号,麻烦有空给个解答,谢谢,祝工作顺利。