Hello.
I've encountered a strange behaviour of prinf function. The code is a simple "hello world" example:
It works and the result are two lines in console. But once i remove the second printf, it does not show up a line. When I run debug, it seem that processor executes something and does not even reach the main function. The QSys system is Nios(50MHz)+JTAG UART(50MHz)->clock bridge(50 to 143MHz)->SDRAM controller(143MHz), and timing constraints are met.Code:#include <stdio.h> int main() { printf("Hello 1\n"); printf("HELLO 2\n"); return 0; }
Just found out that it works if there is no \n symbol.


Reply With Quote

Bookmarks