Intel® SoC FPGA Embedded Development Suite
Support for SoC FPGA Software Development, SoC FPGA HPS Architecture, HPS SoC Boot and Configuration, Operating Systems
506 Discussions

Cyclone 5 FPGA UART driver, and read/write functions.

ChrisBonser
Beginner
228 Views

I am using a Cyclone 5 MitySOM on the Critical link dev kit.  I am trying to setup a custom UART (RX, TX) lines from the FPGA GPIOs, not going through any external chip other than and FTDI connected to a PC.  I prefer to have this code in System Verilog.  I have found some example of source for the RX and TX transactions, but nothing on how they get integrated into the FGPA system.

 

Can you please provide me some detail, example code, etc. of how I can setup a custom UART (115200), that I can send Hello World to the PC and have it come out in a terminal window.  Want to use this for log/debugging as well as a simple menu system to process incoming commands to perform actions real time.

 

Thanks,


Chris

 

0 Kudos
3 Replies
BoonBengT_Intel
Moderator
179 Views

Hi @ChrisBonser,


Thank you for posting in Intel community forum and hope all is well.

We can work with the setup of transmitting data serially via TX GPIO by implementing it and work on the PC terminal which is FTDI USB-UART. For the FPGA GPIO pin assignment, assign the uart_tx to a GPIO pin connected to the FTDI tx line.


On the PC terminal side, perhaps using serial terminal like Putty, set the baud rate to 115200, 8 data bit, no parity and 1 stop bit following by selecting the com port. With that you can write some system verilog code to send hello world to the pc terminal.

Hope that clarify


Best Wishes

BB


0 Kudos
BoonBengT_Intel
Moderator
100 Views

Hi @ChrisBonser,


Greetings, just checking in to see if there is any further doubts in regards to this matter.

Hope your doubts have been clarified.


Best Wishes

BB


0 Kudos
BoonBengT_Intel
Moderator
72 Views

Hi @ChrisBonser,


Greetings, as we do not receive any further clarification/updates on the matter, hence would assume challenge are overcome. Please login to ‘ https://supporttickets.intel.com/s/?language=en_US’, view details of the desire request, and post a feed/response within the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support. The community users will be able to help you on your follow-up questions. For new queries, please feel free to open a new thread and we will be right with you. Pleasure having you here.


Best Wishes

BB


0 Kudos
Reply