Forum Discussion
Altera_Forum
Honored Contributor
17 years agoDE2 board USB communication
Hello people,
I'm curious to know is there anyone who have experience with DE2 board USB communication ? There is some ISP1362 USB-OTG controller which must be appropriate configured in order to communicate with USB device plugged into DE2 USB connector. Does anybody worked with this controller using VHDL programming language ? Is there a lot of problem to configure ISP1362 USB-OTG controller ? Thank you very much, Bojan34 Replies
- Altera_Forum
Honored Contributor
hello
I am now working in a project which needs to make the DE2-70 board as a USB device and the host is the PC. I write some codes in vhdl to communicate with the ISP1362, because I can not to use the NIOS processor... When I try to probe the system, I found these problems: 1) If I connect both the blaster cable and the device cable to the pc or only the blaster, the host shows initially the blaster, then I download the firmware to the FPGA and the system do the Enumeration and initialization process and the ISP1362 is recognize by the host PC. But, if I disconnect the blaster cable, the system is not respond, then I reset the driver by the firmware and the device is doesn't show by the host. I am using the VISA USB Raw of National Instrument and its driver in the host. 2) If I work with both the blaster cable and the device cable connected, the system can transmit data from PC to device successful, but when I try to send data from device to host PC, it show me a timeout error. I check the firmware step by step and it apparently work correctly. Could you help me with these???? - Altera_Forum
Honored Contributor
Hi Koce,
to build up your USB communication you will have to configure your Philips ISP1362 USB-OTG controller from your VHDL code. Given that a simple Nios-II only takes a few procent of the Logic Elements on your DE2, it is probably the easiest to realize your USB communication via a Nios processor and using a JTAGUART. - Altera_Forum
Honored Contributor
Thank you anyway...
But there is no visible code for this examples, and USB controller is configured using Nios II processor. I want to use VHDL to configure controller. Regards, Bojan - Altera_Forum
Honored Contributor
There are a number of ways that you can communicate via USB on the DE2 board.
- You can set up a Nios-II architecture in SOPC and add a JTAGUART. You can use the JTAGUART to communicate from the Nios-II to your PC
- On the CD-ROM that goes with the DE2 there is an example DE2_USB_API in the "DE2_emonstrations" Folder.
- See the DE2_UserManual.pdf section 4.14 "Using USB Host and Device".