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
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".
- 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
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
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
--- Quote Start --- 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. --- Quote End --- Implementing USB host mode without a processor is very difficult. USB was designed for a processor managing the host. I'm not sure you would find a hardware-only USB-host core. Such a core would probably need almost as much resources as a NIOS II processor, possibly even more. - Altera_Forum
Honored Contributor
Actually, I need very very simple USB communication: I need to receive via USB just one byte of command for my design. My design then will do some actions and will respond via USB with a few bytes. I use VHDL for desing programming.
Which is the best way to realize this ? If I well understood, I must use Nios II processor with some kind of assembly programming to configure ISP1362 USB controller ? Can I combine in one Quartus II project Nios II processor like a part of my design and VHDL programming for the rest of my desing? Thank you for your time and effort, Regards, Bojan - Altera_Forum
Honored Contributor
--- Quote Start --- If I well understood, I must use Nios II processor with some kind of assembly programming to configure ISP1362 USB controller ? --- Quote End --- The easiest is to use C code. --- Quote Start --- Can I combine in one Quartus II project Nios II processor like a part of my design and VHDL programming for the rest of my desing? --- Quote End --- Yes, you can! - Altera_Forum
Honored Contributor
Hello...
Now, i am doing my project to transfer image between host computer (PC) and FPGA DE2 Altera via USB and display it into monitor. I am still new in using NIOS II Processor. First, I try to buil project USB Device given in Altera CD-ROM (DE2_NIOS_DEVICE_LED.sof in DE2_Demonstrations folder). But, i found error when building project like below: "The software setting (STF) file associated with this project is damaged. This may be fixed by copying your source files into new C/C++ application project. For more details see the error log." What should i do? What is the meaning of copying source file into new C/C++ application project? Thank you - Altera_Forum
Honored Contributor
what's the type of project that you created?
C/C++ ? - Altera_Forum
Honored Contributor
Thank you for the help,
I've found the problem: there is a space in my directory path. I have to rename my folder name so that there is no space anymore on my path directory.