FPGA, SoC, And CPLD Boards And Kits
FPGA Evaluation and Development Kits
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
5153 Discussions

[StartupKit_Xylo] USB program and FPGAConf

Altera_Forum
Honored Contributor II
1,179 Views

Hi eveyone, 

 

I use the Startup Kit for a Xylo FPGA Board EP1C3T100C8. 

I use the "FPGA Project - USB-2 (FX2) 1 - Blink leds" sample which allow you to blink LEDs via USB protocol... 

 

So I use FPGAConf Tool to program my board with the .rbf file created by Quartus II. 

I program the Boot PROM with my program => it works :) 

I use the C++ sample program to communicate with my board with USB (to blink LED) 

 

If I perform a "Configure FPGA" from FPGAConf and I launch the C++ program called "FX2_blinkleds.CyUSB.exe", it works ;) 

 

But If I power off the board then power up and I launch again the "FX2_blinkleds.CyUSB.exe" program, it does not work.... :( 

 

Or the program is stored in EEPROM so I might be loaded at power up... 

 

I'm sure that the program is correctly stored in EEPROM. I think there is a communication trouble with USB protocol... 

 

Have you got some suggestions ? 

 

PS : Sorry for my bad english (I'm French) :D 

 

Thanks you ! 

0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
183 Views

I don't know this kit, but the FPGAConf tool probably only uploads your design to the FGPA's SRAM, so you loose it when you turn the power off. What kin of configuration device is there on the board? Have a look in the documentation for a way to flash an FPGA configuration.

Altera_Forum
Honored Contributor II
183 Views

Hi Daixiwen, 

 

does fpgaconf might change usb interface during upload ? 

Because, I try another program which only blinks leds (without USB communication) and it works when I program it in the FGPA's SRAM (I use the button "Program Boot-PROM" of FPGAConf). So I can power off then power on my board and the program is still running :) 

 

But when I upload a program that use USB communication, it does not work... :( 

 

SO, I suppose there is something happening during the configuration of FPGA (button "Configure FPGA of FPGAConf) 

 

Yes, I have read the documentation that you can find here : 

http://www.knjn.com/docs/knjn%20fx2%20fpga%20boards.pdf 

 

Have you good an idea ? 

 

Thanks a lot !
Altera_Forum
Honored Contributor II
183 Views

Okay so it seems that the configuration is flashed correctly. I agree that it looks like the USB part on the board isn't initialized properly. Do you see the USB device on your PC, is it detected? 

SOrry I won't be able to help you a lot more on this, I'm not familiar with this kit or this USB chip.
Reply