Forum Discussion

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

IDE not sending anything over serial port

I have my FPGA & C program running fine with the JTAG UART. When I switch over to the real UART, the IDE doesn't actually send what I type out COM1.

I've verified that COM1 works OK with Hyperterm and a scope on the board. The IDE says "nios2-terminal: connected to hardware target using UART on /dev/com1 at 115200 baud" so it thinks it's trying to do the right thing.

Anyone ever see this before? Any ideas?

Thanks

Chris http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/blink.gif

4 Replies

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

    --- Quote Start ---

    originally posted by gomiboy@Nov 6 2006, 12:12 PM

    i have my fpga & c program running fine with the jtag uart. when i switch over to the real uart, the ide doesn&#39;t actually send what i type out com1.

    i&#39;ve verified that com1 works ok with hyperterm and a scope on the board. the ide says "nios2-terminal: connected to hardware target using uart on /dev/com1 at 115200 baud" so it thinks it&#39;s trying to do the right thing.

    anyone ever see this before? any ideas?

    thanks

    chris http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/blink.gif

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=19224)

    --- quote end ---

    --- Quote End ---

    Go into the syslib properties and make sure you have standard output, input, and error setup properly (i.e. not set to the JTAG UART still).
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I totally don&#39;t know why but that&#39;s how I walked around the similar problem.

    Open a HyperTerminal set to unused COM or if you have only one COM. Then Nios II file I/O will work on my side.

    In case you have only one COM and you&#39;ve tried opening HyperTerminal, you might want to use a serial monitor to check for more detail.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by badomen+nov 6 2006, 03:21 pm--><div class='quotetop'>quote (badomen @ nov 6 2006, 03:21 pm)</div>

    --- quote start ---

    <!--quotebegin-gomiboy@Nov 6 2006, 12:12 PM

    i have my fpga & c program running fine with the jtag uart. when i switch over to the real uart, the ide doesn&#39;t actually send what i type out com1.

    i&#39;ve verified that com1 works ok with hyperterm and a scope on the board. the ide says "nios2-terminal: connected to hardware target using uart on /dev/com1 at 115200 baud" so it thinks it&#39;s trying to do the right thing.

    anyone ever see this before? any ideas?

    thanks

    chris http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/blink.gif

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=19224)

    --- quote end ---

    --- Quote End ---

    Go into the syslib properties and make sure you have standard output, input, and error setup properly (i.e. not set to the JTAG UART still).

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=19226)</div>

    [/b]

    --- Quote End ---

    Thanks. They were all set to JTAG UART, so that was part of the problem.

    I also realized that the IDE terminal doesn&#39;t send any characters until you hit return. Running nios2-terminal from the shell sends characters immediately.

    Chris