USB superspeed peripherals Forum Discussions
Hi all,
up to now we had worked with a FX3 DVK Board connected via Samtec J77 to a FPGA Board without problems.
Now with our custom board the FX3 does still successfully enumerate with Cypress 04b4:00f3 id on power up.
But then after we upload (any) firmware via USB (without error) at the end FX3 disconnects and never comes back!
Any ideas what could be the reason?
Best regards
Günter
Show LessDear Sirs,
I connected GPIF databus to LEDs for viewing data, and I wrote firmware to pass data on P-port (GPIFII). But there are not data. Use of CyU3PGpifWriteDataWords() API, sockets is unsuccessful. I just want drive data on databus now, but It doesn't work. I use Master Asynch mode without input signal. What is wrong?
Also, I tried RSKV's example GPIF_EXAMPLE2.zip, but when I program FX3 device, the device is not recognized, and usbview.exe doesn't see any device.
Show LessHi 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 Less