USB superspeed peripherals Forum Discussions
Hi
After I have created the CX3 project, configured all the parameters and saved them, why didn't the system automatically generate the cyu3imagesensor. c file.Where should I configure the image sensor, or where can I find cyu3imagesensor. c file?
Show LessI am looking for a way to take the output of a sensor with signals of 14 bit parallel data, pixel clock, LV and FV and i want to convert it to USB video preferably UVC. Data rate is slow, its 320x240 x 60 hz frame rate. It looks like the fx3 can do this with a fifo controller, this interface needs to be as compact as possible, there is no plans for an fpga hence no fifo control. Just wondering if the fx3 is capable of taking a constant stream, if it is, is there any example information, if it not able to, is there another part suggestion?
thanks,
Gerard
Show LessWorking on porting some windows code based on CyAPI for the FX3 to cyusb Linux library. Looking around the cyusb library I don't see a equivalent function to IsBootLoaderRunning(). Does one exist or is there a way I can use the existing cyusb functions to get the same information?
Thanks for any pointers
Show Lesshello,
I used the GPIF tool to design a state machine, and successfully generated a cyfxgpif2config.h file, but when I added this header file to my project, I got an error
What should I do to add this file to my project correctly?
Show LessIn AN75779, dual video streams are put into 16-bit-width GPIF bus, the high byte and low low one are used for different video channel individedly. It has many disadvantage. Is there a solution for dual video capture in single a chip without help of FPGA to combine them into a stream? the better is to put streams into different interface of USB PHY , or to put them into different channel of USB hub chip.
Show LessHi All,
I am setting cx3config.cycx, but I get some problem. The error show " Parallel output cannot finish within 1 line. Use faster Output Pixel clock and/or wider H-blanking."
How do I resolve the problem?
Show LessHello Cypress!
I've run into some really strange behaviour with my HID keyboard interface, it is essentially the same as the mouse interface example, but for some reason it works perfectly when in a USB2 connection, and on some USB3, it sometimes works, and it works perfectly on other USB3 connections (such as through my USB3 hub).
The times when it does not work, is as if the key is held down for an extended period of time, sometimes as long as 9 seconds. I have no idea what could cause this difference in behavior on different hosts.
I have tried: removing the check for failure to commit or get buffer, changing the servicing interval on the SS descriptor from the HID mouse example to a larger value, and I even tried changing the thread priority to the same as the driver level (I know this is not recommended but I was curious if the FX3 was getting hung up on a driver call) and these had no effect.
Writing this I will double check if the driver handler callback is perhaps resetting the USB thread separately. If this is the issue I will make a comment here.
What confuses me the most is that this is not an issue on all USB3, but only on some....
outBuf.buffer = 0;
outBuf.status = 0;
outBuf.size = 8;
outBuf.count = 8;
CyU3PDmaChannelReset (&KeyboardDMA);
CyU3PDmaChannelSetXfer (&KeyboardDMA, 0);
CyU3PBusyWait (2000);
while (i < to_type_len && to_type != '\0'){
status = CyU3PDmaChannelGetBuffer (&KeyboardDMA, &outBuf, 1000);
key_out = keyboard_output(to_type);
outBuf.buffer[0] = (uint8_t)((key_out >> 😎 & 0xff);
outBuf.buffer[1]=0x00;
outBuf.buffer[2]= (uint8_t)(key_out & 0xff);
outBuf.buffer[3]=0x00;outBuf.buffer[4]=0x00;outBuf.buffer[5]=0x00;
outBuf.buffer[6]=0x00;outBuf.buffer[7]=0x00;
status = CyU3PDmaChannelCommitBuffer (&KeyboardDMA, 8, 0);
CyU3PBusyWait (2000);
status = CyU3PDmaChannelGetBuffer (&KeyboardDMA, &outBuf, 1000);
outBuf.buffer[0]=0x00;outBuf.buffer[1]=0x00;
outBuf.buffer[2]=0x00;outBuf.buffer[3]=0x00;
outBuf.buffer[4]=0x00;outBuf.buffer[5]=0x00;
outBuf.buffer[6]=0x00;outBuf.buffer[7]=0x00;
status = CyU3PDmaChannelCommitBuffer (&KeyboardDMA, 8, 0);
if (status != CY_U3P_SUCCESS){
CyU3PDmaChannelReset (&KeyboardDMA);
CyU3PDmaChannelSetXfer (&KeyboardDMA, 0);
}
CyU3PBusyWait (2000);
i++;
}
Show LessHello All!
I am using Visual Studio 2019 to create a C ++ Windows Forms Application using the appropriate extension.
I made an application that displays an empty form.
Next I want to connect the CyAPI.lib library.
But as soon as I add #include <wtypes.h> at pointed place, I have gotten many errors.
I found that the reasons for the errors lie in the file "C:\Program Files(x86)\Windows Kits\10\Include\10.0.18362.0\um\ servprov.h"
I tried to solve this but couldn't find anything other than replacing * with ^ or other ways which didn't work or I couldn't understand ones.
Help me please!
CODE
#pragma once
#include <wtypes.h>
#include <dbt.h>
#include "CyAPI.h"
namespace CppCLRWinformsProjekt {
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
/// <summary>
/// Zusammenfassung fьr Form1
/// </summary>
public ref class Form1 : public System::Windows::Forms::Form
{
public:
Form1(void)
{
InitializeComponent();
//
//TODO: Konstruktorcode hier hinzufьgen.
//
}
protected:
/// <summary>
/// Verwendete Ressourcen bereinigen.
/// </summary>
~Form1()
{
if (components)
{
delete components;
}
}
private:
/// <summary>
/// Erforderliche Designervariable.
/// </summary>
System::ComponentModel::Container ^components;
#pragma region Windows Form Designer generated code
/// <summary>
/// Erforderliche Methode fьr die Designerunterstьtzung.
/// Der Inhalt der Methode darf nicht mit dem Code-Editor geдndert werden.
/// </summary>
void InitializeComponent(void)
{
this->components = gcnew System::ComponentModel::Container();
this->Size = System::Drawing::Size(300,300);
this->Text = L"Form1";
this->Padding = System::Windows::Forms::Padding(0);
this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
}
#pragma endregion
};
}
ERRORS:
Show Less1>------ Build started: Project: CppCLR_WinformsProjekt3, Configuration: Debug x64 ------
1>CppCLR_WinformsProjekt.cpp
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\servprov.h(91,81): error C3699: '*': cannot use this indirection on type 'IServiceProvider'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\servprov.h(91,81): message : compiler replacing '*' with '^' to continue parsing
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\servprov.h(98,9): error C2371: 'IServiceProvider': redefinition; different basic types
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\servprov.h(44): message : see declaration of 'IServiceProvider'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\servprov.h(115,41): error C2872: 'IServiceProvider': ambiguous symbol
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\servprov.h(98,9): message : could be 'IServiceProvider'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\servprov.h(44,19): message : or 'System::IServiceProvider'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\servprov.h(239,22): error C2872: 'IServiceProvider': ambiguous symbol
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\servprov.h(98,9): message : could be 'IServiceProvider'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\servprov.h(44,19): message : or 'System::IServiceProvider'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\servprov.h(249,32): error C2872: 'IServiceProvider': ambiguous symbol
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\servprov.h(98,9): message : could be 'IServiceProvider'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\servprov.h(44,19): message : or 'System::IServiceProvider'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\urlmon.h(6869,66): error C2872: 'IServiceProvider': ambiguous symbol
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\servprov.h(98,9): message : could be 'IServiceProvider'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\servprov.h(44,19): message : or 'System::IServiceProvider'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\urlmon.h(6871,62): error C2872: 'IServiceProvider': ambiguous symbol
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\servprov.h(98,9): message : could be 'IServiceProvider'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\servprov.h(44,19): message : or 'System::IServiceProvider'
1>Done building project "CppCLR_WinformsProjekt3.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========