Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
21615 Discussions

Still searching for LCD example c-code (Linux) for Arria 10

Altera_Forum
Honored Contributor II
1,192 Views

Can somebody point me to an example Linux application that writes to the LCD on the Arria10 development board via the hard controller on the HPS? If not, how about a document that gets close? As I see it, the GSRD should have drivers ready to go, but I haven't found anything that explains how to do this.

0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
462 Views

Got my answer from Rocketboards forum... 

 

You can write to it very simply by just echoing text to it from the command line (this may be a helpful first step regardless of the end goal). Look in the /dev folder for the correct name but i believe it will always show up as ttyLCD0: 

echo “Testing LCD” > /dev/ttyLCD0 

 

From user space you can create code to open the same path and perform writes very similar to a file, such as : 

lcd_handle = open("/dev/ttyLCD0", write) 

fprintf(lcd_handle, “First Line\nSecod Line”)
0 Kudos
Reply