Forum Discussion
Altera_Forum
Honored Contributor
19 years agoIDE 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.gif4 Replies
- Altera_Forum
Honored 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'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
<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
Honored Contributor
I totally don't know why but that'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've tried opening HyperTerminal, you might want to use a serial monitor to check for more detail. - Altera_Forum
Honored 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'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
<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't send any characters until you hit return. Running nios2-terminal from the shell sends characters immediately. Chris
- Altera_Forum
Honored Contributor
Really off topic here but when I run into uart issues I like using this program:
http://bray.velenje.cx/avr/terminal/ (http://bray.velenje.cx/avr/terminal/) You can script it and save off macros. It also shows you the status of the handshake lines which is handy when you are wondering "why isn't anything going out???".