Electronics > FPGA

Altera FPGA USB Communication

(1/1)

Eric_the_EE:
Hello All,
I need to create a serial communication line between my own C# based GUI (built in Visual Studio) and an Altera Arria V GT FPGA development board.
Using Altera's NIOS II and PI modules, it is easy enough to generate a UART from a NIOS II terminal application to the FPGA. However, I need this UART to transfer data from the FPGA to my own GUI, not the NIOS II terminal.

Has anyone done something like this before?

Thanks in advance for any help that can be offered.

Divvi:
Opening/Listening to a COM port from a C# application is fairly easy: http://www.codeproject.com/Articles/678025/Serial-Comms-in-Csharp-for-Beginners

Scrts:

--- Quote from: Eric_the_EE on March 01, 2016, 03:42:23 pm ---Hello All,
I need to create a serial communication line between my own C# based GUI (built in Visual Studio) and an Altera Arria V GT FPGA development board.
Using Altera's NIOS II and PI modules, it is easy enough to generate a UART from a NIOS II terminal application to the FPGA. However, I need this UART to transfer data from the FPGA to my own GUI, not the NIOS II terminal.

Has anyone done something like this before?

Thanks in advance for any help that can be offered.

--- End quote ---

First of all, you have JTAG UART, which will output the data to the console. You need to add a separate UART peripheral.
From there, you have two options:
1. Utilize your own routines to send data to UART peripheral register and read data from there
2. Go to Nios BSP options in Eclipse and select your UART peripheral as STDIN/STDOUT. In this case, your printf() will print to UART peripheral.

John_ITIC:
Your title mentions USB while your text says UART. These are different technologies. Which one do you want?

Navigation

[0] Message Index

There was an error while thanking
Thanking...
Go to full version