How to use FlashyDemo in C++ program

Saxo/-L & Xylo/-EM/-L/-LM boards

How to use FlashyDemo in C++ program

Postby Pim » Tue Dec 02, 2008 10:53 pm

First of all: I know next to nothing about FPGAs or USB... I do know a little bit of C++ programming. Anyway, I am playing around with a Xylo-LM and FlashyD combination and I have a question.

I would like write a small program in C++ that can send a TriggerRequest packet to an FPGA programmed with the FlashyDemo bit-file and then receive a Data packet. The FX2 board documentation describes how these packets look like, but I don't know how to implement it. Should I just create such a struct and then send it to a FIFO using USB_BulkWrite? Which FIFO address should I have?
Pim
 
Posts: 8
Joined: Tue Dec 02, 2008 10:41 pm

Postby fpga4fun » Wed Dec 03, 2008 6:16 am

Look into the "StartupKit\FPGA Project - FlashyDemo" folder, it has the example source code.
fpga4fun
Site Admin
 
Posts: 837
Joined: Thu Sep 18, 2003 6:47 am

Postby Pim » Wed Dec 03, 2008 8:52 am

I don't have such a folder. I have:

ARM project - LED
ARM project - SPI
Documentation
FPGA Project - Ethernet
FPGA Project - FlashyMini
FPGA Project - LED
FPGA Project - Push-button
FPGA Project - SerialRxTx
FPGA Project - USB-2 (FX2) 1 - Blink leds
FPGA Project - USB-2 (FX2) 2 - Text LCD display
FPGA Project - USB-2 (FX2) 3 - Bidirectional communication
FPGA Project - USB-2 (FX2) 4 - SDRAM
Sample Files - ARM LPC
Sample Files - FPGA
Sample Files - I2C control
Sample Files - I2C EEPROM

The bit-file of FlashyDemo is in the "Sample Files - FPGA" folder, but this folder does not contain an example C++ source code.
Pim
 
Posts: 8
Joined: Tue Dec 02, 2008 10:41 pm

Postby fpga4fun » Wed Dec 03, 2008 4:24 pm

Make sure to download the latest startupkit files.
fpga4fun
Site Admin
 
Posts: 837
Joined: Thu Sep 18, 2003 6:47 am

Postby Pim » Wed Dec 03, 2008 5:39 pm

Where can I download them?
Pim
 
Posts: 8
Joined: Tue Dec 02, 2008 10:41 pm

Postby fpga4fun » Wed Dec 03, 2008 5:44 pm

From the same place you got the startupkit the first time.
Otherwise send us an email with your order info and we'll locate your order.
fpga4fun
Site Admin
 
Posts: 837
Joined: Thu Sep 18, 2003 6:47 am

Postby Pim » Thu Dec 04, 2008 9:48 am

I have send an email to jean [at] fpga4fun!
Pim
 
Posts: 8
Joined: Tue Dec 02, 2008 10:41 pm


Return to FX2 FPGA boards