Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
12 years ago

How to communicate with Nios using JTAG UART module.

Hi All,

I'd like to communicate with a nios system using a JTAG uart module, but I don't know which functions and libraries I have to use in nios C-program..

I have designed a system to glow the LED's depending on data sent from console.

printf() can be used to send data to the console. But i couldn't find any function which is similar to scanf() which reads data from console.

I have built my system using Qsys, now i'am writing a software application in C to read data from console and give it to the display.

please help.

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    It all depends on which OS you are running on the Nios II

    If you're running the basic HAL then if I remember right getchar() is the function you should be calling.