USB superspeed peripherals Forum Discussions
Hi All,
The firmware libraries and examples from all previously released versions of the FX3 SDK are archived at:
http://www.cypress.com/?rID=86575
Also, now you can roll back to older version of the FX3 SDK with the help of “Cypress Update Manager”, if required.
Thanks,
Sai Krishna.
Show Less
Hi,
My state machine (attached) seems to be a valid (at least build is ok) but when I try to view timing scenario created before after 5 seconds of freeze I get an error "Invalid state machine path for the simulation". Problem is in condition !DMA_RDY_TH1 from WRITE_DATA state, if I change it to FW_TRG simulation works ok. Similar problem was described here http://www.cypress.com/?app=forum&rID=72957 but got no responses.
Is this behaviour a GPIF2 Designer bug or it is an error in my state machine? Thank you.
Show LessHi,
I am trying to use FX3 in master mode to send/receive data to simple external bus. Bus has 8bit data (bidirectional), 7bit address (write-only from FX side) and WR/RD lines for simple toggle (also write-only from FX). FX will have 1 bulk endpoint for data writes, 1 bulk endpoint for data reads and 1 control endpoint for commands.
So I have created 2 START states, one for reading and another for writing (I plan to switch between them depending on command received). For writing I receive 2 bytes from PC via bulk endpoint in format <addr> <data> then put it to external bus using DR_ADDR (source: from thread socket), DR_DATA then toggle WR. For reading, after I receive command with address and number of bytes to read via control endpoint, I plan to manually program DATA_COUNT, then put desired address to bus using DR_ADDR (source: from register) then toggle RD then put received data to bulk endpoint via IN_DATA.
The problem is that when in read state I set DR_ADDR action to use register as a source, source in DR_ADDR action used in write state automatically changed too, but I need to use ThreadSocket as a source there. How can i solve this? Maybe I am on wrong way and different approach should be used? Thank you in advance.
Show LessHello,
I am trying to compile a very basic cpp project to make sure I have the environment setup, but I get an error message that lets me believe there would be an issue with the x64\CyAPI.lib.
Error Message:
Hello.
I have been trying to follow the steps to create the Example 1 in cpp from CyAPI.pdf.
I am using Visual Studio 2010 / Win 7 32bits / sdk 1.3 but run into the following issue.
I attached a rar version of my project so you can have more details.
please let me know what's wrong, I have double checked each step of the pdf and cannot manage to find the mistake
1>------ Build started: Project: Example1, Configuration: Debug Win32 ------
1>Build started 10/3/2013 1:28:29 PM.
1>InitializeBuildStatus:
1> Touching "Debug\Example1.unsuccessfulbuild".
1>GenerateTargetFrameworkMonikerAttribute:
1>Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
1>ClCompile:
1> All outputs are up-to-date.
1> All outputs are up-to-date.
1> All outputs are up-to-date.
1>CoreResGen:
1> All outputs are up-to-date.
1>ResourceCompile:
1> All outputs are up-to-date.
1>CyAPI.lib(CyAPI.obj) : error LNK2019: unresolved external symbol __imp__SetupDiDestroyDeviceInfoList@4 referenced in function "public: unsigned char __thiscall CCyUSBDevice::DeviceCount(void)" (?DeviceCount@CCyUSBDevice@@QAEEXZ)
1>CyAPI.lib(CyAPI.obj) : error LNK2019: unresolved external symbol __imp__SetupDiEnumDeviceInterfaces@20 referenced in function "public: unsigned char __thiscall CCyUSBDevice::DeviceCount(void)" (?DeviceCount@CCyUSBDevice@@QAEEXZ)
1>CyAPI.lib(CyAPI.obj) : error LNK2019: unresolved external symbol __imp__SetupDiGetClassDevsA@16 referenced in function "public: unsigned char __thiscall CCyUSBDevice::DeviceCount(void)" (?DeviceCount@CCyUSBDevice@@QAEEXZ)
1>CyAPI.lib(CyAPI.obj) : error LNK2019: unresolved external symbol __imp__SetupDiGetDeviceInterfaceDetailA@24 referenced in function "public: bool __thiscall CCyUSBDevice::CreateHandle(unsigned char)" (?CreateHandle@CCyUSBDevice@@QAE_NE@Z)
1>c:\Users\labuser\Documents\Visual Studio 2010\Projects\Example1\Debug\Example1.exe : fatal error LNK1120: 4 unresolved externals
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:00.53
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Hello.
I am having issues to run the Example1 from CyAPI.pdf.
I have included a copy of my project in the attachment.
Config: win7 32bits / visual studio 2010 / sdk 1.3
I would really appreciate any help or hint.
1>------ Build started: Project: Example1, Configuration: Debug Win32 ------
1>Build started 10/3/2013 1:28:29 PM.
1>InitializeBuildStatus:
1> Touching "Debug\Example1.unsuccessfulbuild".
1>GenerateTargetFrameworkMonikerAttribute:
1>Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
1>ClCompile:
1> All outputs are up-to-date.
1> All outputs are up-to-date.
1> All outputs are up-to-date.
1>CoreResGen:
1> All outputs are up-to-date.
1>ResourceCompile:
1> All outputs are up-to-date.
1>CyAPI.lib(CyAPI.obj) : error LNK2019: unresolved external symbol __imp__SetupDiDestroyDeviceInfoList@4 referenced in function "public: unsigned char __thiscall CCyUSBDevice::DeviceCount(void)" (?DeviceCount@CCyUSBDevice@@QAEEXZ)
1>CyAPI.lib(CyAPI.obj) : error LNK2019: unresolved external symbol __imp__SetupDiEnumDeviceInterfaces@20 referenced in function "public: unsigned char __thiscall CCyUSBDevice::DeviceCount(void)" (?DeviceCount@CCyUSBDevice@@QAEEXZ)
1>CyAPI.lib(CyAPI.obj) : error LNK2019: unresolved external symbol __imp__SetupDiGetClassDevsA@16 referenced in function "public: unsigned char __thiscall CCyUSBDevice::DeviceCount(void)" (?DeviceCount@CCyUSBDevice@@QAEEXZ)
1>CyAPI.lib(CyAPI.obj) : error LNK2019: unresolved external symbol __imp__SetupDiGetDeviceInterfaceDetailA@24 referenced in function "public: bool __thiscall CCyUSBDevice::CreateHandle(unsigned char)" (?CreateHandle@CCyUSBDevice@@QAE_NE@Z)
1>c:\Users\labuser\Documents\Visual Studio 2010\Projects\Example1\Debug\Example1.exe : fatal error LNK1120: 4 unresolved externals
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:00.53
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Hello.
I am having issues to run the Example1 from CyAPI.pdf.
I have included a copy of my project in the attachment.
Config: win7 32bits / visual studio 2010 / sdk 1.3
I would really appreciate any help or hint.
1>------ Build started: Project: Example1, Configuration: Debug Win32 ------
1>Build started 10/3/2013 1:28:29 PM.
1>InitializeBuildStatus:
1> Touching "Debug\Example1.unsuccessfulbuild".
1>GenerateTargetFrameworkMonikerAttribute:
1>Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
1>ClCompile:
1> All outputs are up-to-date.
1> All outputs are up-to-date.
1> All outputs are up-to-date.
1>CoreResGen:
1> All outputs are up-to-date.
1>ResourceCompile:
1> All outputs are up-to-date.
1>CyAPI.lib(CyAPI.obj) : error LNK2019: unresolved external symbol __imp__SetupDiDestroyDeviceInfoList@4 referenced in function "public: unsigned char __thiscall CCyUSBDevice::DeviceCount(void)" (?DeviceCount@CCyUSBDevice@@QAEEXZ)
1>CyAPI.lib(CyAPI.obj) : error LNK2019: unresolved external symbol __imp__SetupDiEnumDeviceInterfaces@20 referenced in function "public: unsigned char __thiscall CCyUSBDevice::DeviceCount(void)" (?DeviceCount@CCyUSBDevice@@QAEEXZ)
1>CyAPI.lib(CyAPI.obj) : error LNK2019: unresolved external symbol __imp__SetupDiGetClassDevsA@16 referenced in function "public: unsigned char __thiscall CCyUSBDevice::DeviceCount(void)" (?DeviceCount@CCyUSBDevice@@QAEEXZ)
1>CyAPI.lib(CyAPI.obj) : error LNK2019: unresolved external symbol __imp__SetupDiGetDeviceInterfaceDetailA@24 referenced in function "public: bool __thiscall CCyUSBDevice::CreateHandle(unsigned char)" (?CreateHandle@CCyUSBDevice@@QAE_NE@Z)
1>c:\Users\labuser\Documents\Visual Studio 2010\Projects\Example1\Debug\Example1.exe : fatal error LNK1120: 4 unresolved externals
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:00.53
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Hello
I am now using USB3.0 to transfer data. The FPGA control squences is that at first 500us FPGA do nothing to USB FX3 , and then transfer 128KBytes continuous data to PC, and then it follow the cycles.
But I found that the 500us void time pend my transfer. If I set the void time to 10us or less. The PC will get data without any problem. So why this problem happened.
I increase the value of the waitforxfer() parameter. But the problem is still there. thank you.
Show Lesshello:
I am using asynchronous function build my program,and found when I call the FinishDataXfer function I will get pending error,that's because befor I write data to FX3 I must wait for 10ms for other device control, but that's inevitable. I increase the parameter of the waitforxfer function, it's helpless.
Is delay time 10ms the reason leads to pending error?what can a developer do to recover from pending error, and how can I do to deal well with the cooperate between the PC program and FPGA program.
Show LessHi:
Recently I am using usb3.0 to transfer data of my camera. I always get the pending error at PC. I write some data to FX3 first, then FX3 get the data and set an I/O pin to low to reset fpga. Then I ask for 32 *8192 image data from bulk-in endpoint. But after the fpga reset it will delay another 10ms at first then it can write data to FX3. And finally I will get pending error at PC. The program function I use is BeginDataXfer/Waitfor..../Finish.... I set the parameter of waitforxfer function larger. But it doesn't work.
So I want ask how long will a pending error happened after I ask data at PC, if the data is not ready at FX3? And how to set this time.
Show Less