USB superspeed peripherals Forum Discussions
Hello 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 ==========
Hello,
I am trying to optimize the physical layout of a CYUSB3065 on a 4-layer PCB.
In the datasheet there are several balls marked as DNU (F1, F7, F8, F9, F10, G7, G8, G9, G10, H2, H3, H7, H9, H10, J1, J2, J3, J4, J10, K1, K2, K9, K10, K11, L10).
I was wondering if it is possible to connect them to other signals in order to pass through them when routing traces.
In other words, shall ALL these pads remain strictly unconnected? Maybe a subset can be freely connected?
Secondly, is it possible to take advantage of this approach with unused GPIO pads?
I suppose all unconfigured GPIOs will stay high-impedance during all stages (power-on, boot, run) or must I expect spurious transitions?
Thank you,
Nicola.
Show LessAny suggestions on FX3 design consultants. I want some help with a design for USB3-->FX3-->RGB via a custom GPIF II interface and state machine design.
I can handle the hardware and software side but need an experienced partner for the FX3 firmware development.
Thanks.
Show LessHello all,
where I can found latest CyUSB.net dll programmer's Reference manual?
Seem that 2018version is truly outdate!
For example - I can't found the description of other three methods:
only these are documented:
Show LessHello.
I found the LNK_PHY_TX_TRIM register.
Do you explain the meaning, default value, unit of each items?
1. PCS_TX_SWING_LOW
2. PCS_TX_SWING_FULL
3. PCS_TX_DEEMPH_6DB
4. PCS_TX_DEEMPH_3P5DB
Thank and Best regards.
Glenn.
Show LessHello All! I need make c++ application for interact with an external device via CYUSB3KIT-003.
In part 2.2 QuickStartGuide.pdf recomends create Windows forms aplication.
I can`t find instalation Visual Studio 2008 packet at Microsoft site.
I have instaled Visual Studio 2019. But it sims that Visual Studio 2019 hasn`t some way to create Windows forms application with c++ language.
Please help solve these issues.
Show LessHello,
Few days ago I was asking questions regarding the debug interface through USB.
Thread:Debug interface through USB for CX3 + Image sensor application
From this, I was able to create my own firmware based on the example given.
In the mean time, I created the sensor library and digged into the uvc descriptor.
I can successfully talk to my sensor and I'm not getting any mipi error while setting it up.
Since the board used is a custom one, I'm sadly not able to probe the Mipi lanes to make sure they are behaving correctly.
However, I'm using the config given by the sensor manufacturer (with clock and fps modified), which should contain a correct setup.
The objective here is to stream a |1280x800 30fps RAW10| and a |640x400 30fps RAW10| through an USB 2.1 HyperSpeed interface.
I've tried to follow couple of threads available on the forum to fix my issue and get the stream working, without success.
Since I'm completely new in this firmware development world, I'm probably missing something but I can't find out what..
I've attached the project, without the sensor library, any comments are welcome!
This would be my first implementation of an image sensor, you can't imagine how excited I will be if I could have a stream working!
Thanks for your help,
Greg
Show LessI would like to define constant at fixed location for FX3 so that when I analyze the image file, I can read its value at this known address.
From FX3 TRM, system address from 0x40000000 to 0x4007FFFF.
Something like this:
#define ID "0013" @ 0x40004000
How to code this?
Show Less