Trenz Electronic GmbH Support Forum

Trenz Electronic Products => Trenz Electronic FPGA Modules => Topic started by: Tobias Benkhoff on June 22, 2015, 10:19:31 AM

Title: TE630 USB Data transfer
Post by: Tobias Benkhoff on June 22, 2015, 10:19:31 AM
Hello,

i have a TE630 Spartan6 LX75. With this device i want to read data from a A/D converter and for further signal processing i would like to send the data to my computer. (preferred via USB connection)
I downloaded the example files "Virtual COM port example project for Trenz Electronic TE0630 FPGA module.
This project implements communication between FPGA and Cypress FX2 USB microcontroller according Cypress application note AN58764"

The device is listed on my computer, so drivers a installed properly but i can not transmit data.
I have tried it with the cpp "executable-64" but error

can someone give me a hint how to solve the problem?
thank you
regards Tobias


Title: Re: TE630 USB Data transfer
Post by: Oleksandr Kiyenko on June 22, 2015, 11:05:01 AM
Hello Tobias

This project can use standard serial port driver with inf file from Cypress, so there is nothing from us in software part.
You can try to make looopback test with some terminal program, just to check that driver works.

Best regards
Oleksandr Kiyenko
Title: Re: TE630 USB Data transfer
Post by: Tobias Benkhoff on June 23, 2015, 02:20:46 PM
Thanks for your reply.

I guess the driver is not working correct. I have tried several terminal programs but the fpga is not listed as connected. I don't know how to get the fpga shown as a serial port.
Maybe I installed a wrong driver? But now I can not change it, cause windows allways says the currently installed version is the newest driver.

Best regards
Tobias
Title: Re: TE630 USB Data transfer
Post by: Thorsten Trenz on June 23, 2015, 04:14:23 PM
Hi,
did you follow the readme here for programming the FX2 EEProm?
https://github.com/Trenz-Electronic/FX2CDC/tree/master/vcom-cli

Best Regards
Thorsten Trenz
Title: Re: TE630 USB Data transfer
Post by: Tobias Benkhoff on June 23, 2015, 06:21:41 PM
Hello,
thanks a lot. Now it is shown as COM -Port.
I thought I have done that allready but either I used the wrong files or something else go messed up.
I used this files: https://github.com/Trenz-Electronic/TE-USB-Suite/tree/master/TE_USB_FX2.firmware/vcom-asyn (https://github.com/Trenz-Electronic/TE-USB-Suite/tree/master/TE_USB_FX2.firmware/vcom-asyn) they seem to be the same.

regards
Tobias
Title: Re: TE630 USB Data transfer
Post by: Tobias Benkhoff on June 29, 2015, 08:50:53 AM
Good morning,

I need some more help to configure the fpga. I have a few questions to the code example from your reference designs "vcom-TE0630".
Should this example transfer something to my computer? I am still trying to get the fpga to communicate with a computer and send data. As example I took the code from the reference design mentioned above.
But it does not work. I do not understand the flags (FlagA, flagB, flagC and flagD) they are configured as input ports but I don't know what signals they should get, to get the code running.

Thanks
Best regards
Tobias
Title: Re: TE630 USB Data transfer
Post by: Antti Lukats on June 29, 2015, 09:46:38 AM
https://github.com/Trenz-Electronic/TE-USB-Suite/tree/master/TE_USB_FX2.firmware/vcom-asyn

the meaning of the flags is explained at the end of page.
Title: Re: TE630 USB Data transfer
Post by: Antti Lukats on June 30, 2015, 10:16:41 AM
Hallo,

ALL and everything that you can download from this
https://github.com/Trenz-Electronic/TE-USB-Suite/tree/master/TE_USB_FX2.firmware/vcom-asyn

is only the FX2 "side" of the link, on that page there are no FPGA design for the FX2 FIFO interface.

please look here
https://github.com/Trenz-Electronic/TE063X-Reference-Designs/tree/master/vcom-TE0630

there are FPGA design that do something with the FX2 FIFO

Title: Re: TE630 USB Data transfer
Post by: JS on July 13, 2015, 01:34:33 AM
Hello Thomas, Did you manage the issue now?

Title: Re: TE630 USB Data transfer
Post by: Tobias Benkhoff on July 13, 2015, 08:53:30 AM
Yes, thank you. it is working now

regards Tobias