Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

Jtag Uart quirk

Altera_Forum
Honored Contributor II
1,813 Views

Is there a way to get the Eclipse debug console to kick out a CR,LF so I don't have to hit return twice for every prompt? 

 

thanks
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
567 Views

Hello tns1, 

 

What kind of prompt are you referring to here? By default the debug console is attached to standard in, standard out, and standard error. So printf("\n\r"); will send a carriage return and line feed to the debug console.
0 Kudos
Altera_Forum
Honored Contributor II
567 Views

I think Stephen meant to type printf("\r\n"); which would be more usual. 

I hope this stops anyone getting confused. 

But I think the OP was trying to make the debug console send a CRLF, not the code.
0 Kudos
Altera_Forum
Honored Contributor II
567 Views

Right, just look in hyperterm->properties->settings->ascii setup. Eclipse should have at least three settings: 

control of local echo, 

adding LF to outgoing CR, 

adding CR to incomming LF.
0 Kudos
Altera_Forum
Honored Contributor II
567 Views

Hello TNS1, 

 

Thanks for the clarification. I do not know of another way to make Eclipse do that, but I will add as an enhancement request to our Nios II product marketing team to add this feature to Nios II IDE.
0 Kudos
Reply