Altera_Forum
Honored Contributor
21 years agoprintf("Hello World \n\r")
To get nios2 to print a line and start a new at left boarder I find it necessary to do
printf(" Hello world \n\r"); \n alone only advances the line. \r gives the carriage return. In the hello_world examples \n is used, not \n\r. Have you seen the same? Why is this so? All the windows programs I have encountered needed only \n. I have tried it in the nios Eclipse debug console for serial IO and in the Hyper Terminal. My system is running in internal initialized ram and with "Small C library" and "Reduced device drivers". thanks,