Forum Discussion

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

nios2-terminal doesn't work but hyper terminal is working fine

I am following example AN459 which realized RS232 communication between FPGA and the windows desktop using UART.

I successfully get characters at computer end using hyper terminal. Then I wanted to use nios2 terminal in command shell, but it seemed this terminal couldn't catch anything.

The command I used to connect with nios2 terminal is:

nios2-terminal --uart --port=/dev/com1 --baud-rate=115200

I did close hyper terminal when I use nios2 terminal, and the COM settings were exactly the same as the hyper terminal.

Any suggestion is welcomed! thanks!

2 Replies

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

    Try only the basic command without parameters: nios2-terminal --uart

    Verify the answer is:

    nios2-terminal: connected to hardware target using UART on /dev/com1 at 115200 baud

    Also make your test without running Hyperterm before, nor any other program possibly using serial ports. Maybe nios2 terminal can't access com1 because it is already in use.

    You can even try with com2 or other, if you have spare ports.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    Try only the basic command without parameters: nios2-terminal --uart

    Verify the answer is:

    nios2-terminal: connected to hardware target using UART on /dev/com1 at 115200 baud

    Also make your test without running Hyperterm before, nor any other program possibly using serial ports. Maybe nios2 terminal can't access com1 because it is already in use.

    You can even try with com2 or other, if you have spare ports.

    --- Quote End ---

    Thanks Cris72. I did get the answer of "nios2-terminal: connected to hardware target using UART on /dev/com1 at 115200 baud" using only "nios2-terminal --uart". But still I couldn't get the char transferred and displayed on the same command shell window as the nios2-terminal.....

    This time I didn't start the hyper terminal at all. I started the computer and went directly to command shell :)