Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21607 Discussions

Help! Anyone knows how to send data from PC to DE2 board via USB?

Altera_Forum
Honored Contributor II
1,369 Views

Hi, I am currently working on a project which requires using the Teransic DE2 board as a USB flash key (ie: USB storage). I must be able to connect the DE2 board to the PC via a USB cable, and then send files from the PC into the DE2 board. 

 

The problem is I have no clue how I can create the USB interface to do so nor how to create a file system on the DE2 board, I tried looking at the specification of the ISP1362 controller and the DE2 demonstration of USB file sending, but to no success. 

 

Does anyone know a tutorial/guide/reference on a way how I can do this.
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
517 Views

Hello, 

 

you need to implement an USB mass storage device with ISP1362. As far as I see, there is no appropriate example with DE2 demonstration projects, only HID (human interface device) host and device examples. I've implemented mass storage device with other USB peripheral controllers from the scratch and found it rather complex. It implies among others understanding of the basic and class specific usb specs and the typical host behaviour, if the device shall be operated from the generic windows driver. 

 

After initial reading of the capacity, the storage device is accessed through usb by logical block number only. Thus a file system is only necessary for access on the embedded side. It's up to you to decide, how complex the file system has to be, e. g. if subdirectories are necessary. A minimum implementation could be by a single fixed file, preformatted to the storage device.  

 

I think, there are also mass storage example designs from NXP, at least for usb controllers similar to ISP1362. 

 

Good luck and Happy New Year! 

 

Frank
0 Kudos
Altera_Forum
Honored Contributor II
517 Views

also I believe terasic has some undocumented DLL files to connect to it's DE boards, possibly through USB-Blaster. 

better ask them.
0 Kudos
Reply